diff options
Diffstat (limited to 'src/viewextensionsfactory.h')
| -rw-r--r-- | src/viewextensionsfactory.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/viewextensionsfactory.h b/src/viewextensionsfactory.h new file mode 100644 index 000000000..dd819249b --- /dev/null +++ b/src/viewextensionsfactory.h @@ -0,0 +1,59 @@ +/*************************************************************************** + * Copyright (C) 2009 by Peter Penz <[email protected]> * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * + ***************************************************************************/ + +#ifndef VIEWEXTENSIONSFACTORY_H +#define VIEWEXTENSIONSFACTORY_H + +#include <QObject> + +class DolphinController; +class KFilePreviewGenerator; +class ToolTipManager; +class QAbstractItemView; + +class ViewExtensionsFactory : public QObject +{ + Q_OBJECT + + public: + explicit ViewExtensionsFactory(QAbstractItemView* view, + DolphinController* controller); + virtual ~ViewExtensionsFactory(); + + private slots: + /** + * Tells the preview generator to update all icons. + */ + void updateIcons(); + + /** + * Tells the preview generator to cancel all pending previews. + */ + void cancelPreviews(); + + void slotShowPreviewChanged(); + + private: + DolphinController* m_controller; + ToolTipManager* m_toolTipManager; + KFilePreviewGenerator* m_previewGenerator; +}; + +#endif + |
