diff options
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 4e76c87c2..aef541a89 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -37,6 +37,7 @@ #include <QListView> #include <QWidget> +class KToggleAction; class DolphinController; class KDirLister; class KFileItemDelegate; @@ -319,6 +320,29 @@ public: */ void calculateItemCount(int& fileCount, int& folderCount); + /** + * Returns the "switch to icons mode" action. + * This code is here to share it between the mainwindow and the part + */ + static KToggleAction* iconsModeAction(KActionCollection* collection); + + /** + * Returns the "switch to details mode" action. + * This code is here to share it between the mainwindow and the part + */ + static KToggleAction* detailsModeAction(KActionCollection* collection); + + /** + * Returns the "switch to columns mode" action. + * This code is here to share it between the mainwindow and the part + */ + static KToggleAction* columnsModeAction(KActionCollection* collection); + + /** + * Returns the action name corresponding to the current view mode + */ + QString currentViewModeActionName() const; + public slots: /** * Changes the directory to \a url. If the current directory is equal to @@ -603,4 +627,7 @@ private: KUrl m_rootUrl; }; +/// Allow using DolphinView::Mode in QVariant +Q_DECLARE_METATYPE(DolphinView::Mode) + #endif // DOLPHINVIEW_H |
