m_container(container),
m_selectionManager(0),
m_autoScroller(0),
- m_extensionsFactory(0),
m_url(url),
m_childUrl(),
m_font(),
updateDecorationSize(dolphinView->showPreview());
- m_extensionsFactory = new ViewExtensionsFactory(this, controller);
+ new ViewExtensionsFactory(this, controller);
}
DolphinColumnView::~DolphinColumnView()
class KFileItem;
class KFileItemList;
class SelectionManager;
-class ViewExtensionsFactory;
/**
* Represents one column inside the DolphinColumnViewContainer.
DolphinColumnViewContainer* m_container;
SelectionManager* m_selectionManager;
DolphinViewAutoScroller* m_autoScroller;
- ViewExtensionsFactory* m_extensionsFactory;
KUrl m_url; // URL of the directory that is shown
KUrl m_childUrl; // URL of the next column that is shown
m_controller(controller),
m_selectionManager(0),
m_autoScroller(0),
- m_extensionsFactory(0),
m_expandableFoldersAction(0),
m_font(),
m_decorationSize(),
connect(m_expandableFoldersAction, SIGNAL(toggled(bool)),
this, SLOT(setFoldersExpandable(bool)));
- m_extensionsFactory = new ViewExtensionsFactory(this, controller);
+ new ViewExtensionsFactory(this, controller);
}
DolphinDetailsView::~DolphinDetailsView()
class SelectionManager;
class DolphinSortFilterProxyModel;
class DolphinViewAutoScroller;
-class ViewExtensionsFactory;
/**
* @brief Represents the details view which shows the name, size,
DolphinController* m_controller;
SelectionManager* m_selectionManager;
DolphinViewAutoScroller* m_autoScroller;
- ViewExtensionsFactory* m_extensionsFactory;
QAction* m_expandableFoldersAction;
QFont m_font;
m_selectionManager(0),
m_autoScroller(0),
m_categoryDrawer(0),
- m_extensionsFactory(0),
m_font(),
m_decorationSize(),
m_decorationPosition(QStyleOptionViewItem::Top),
connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)),
this, SLOT(slotGlobalSettingsChanged(int)));
- m_extensionsFactory = new ViewExtensionsFactory(this, controller);
+ new ViewExtensionsFactory(this, controller);
}
DolphinIconsView::~DolphinIconsView()
class DolphinCategoryDrawer;
class DolphinSortFilterProxyModel;
class DolphinViewAutoScroller;
-class ViewExtensionsFactory;
/**
* @brief Represents the view, where each item is shown as an icon.
SelectionManager* m_selectionManager;
DolphinViewAutoScroller* m_autoScroller;
DolphinCategoryDrawer* m_categoryDrawer;
- ViewExtensionsFactory* m_extensionsFactory;
QFont m_font;
QSize m_decorationSize;
class ToolTipManager;
class QAbstractItemView;
+/**
+ * @brief Responsible for creating extensions like tooltips and previews
+ * that are available in all view implementations.
+ *
+ * Each view implementation (iconsview, detailsview, columnview) must
+ * instantiate an instance of this class to assure having
+ * a common behavior that is independent from the custom functionality of
+ * a view implementation.
+ */
class ViewExtensionsFactory : public QObject
{
Q_OBJECT