┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-02-11 12:34:48 +0000
committerDavid Faure <[email protected]>2008-02-11 12:34:48 +0000
commit45a1074b0a38f38cfebde8bb65d5a6520b2db3e8 (patch)
treea00ceea5593ffddf6fcf62cfdf52b7a733261d12 /src/dolphinpart.h
parent99a10f551dc171bf32c402326ab94c3608d0312a (diff)
Factorize all the view-related action handling to DolphinViewActionHandler, to remove code duplication between mainwindow and part, and to remove my code-splitting with the static createFooAction methods in the view.
svn path=/branches/KDE/4.0/kdebase/apps/; revision=773570
Diffstat (limited to 'src/dolphinpart.h')
-rw-r--r--src/dolphinpart.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/dolphinpart.h b/src/dolphinpart.h
index 797c34d71..795a7b194 100644
--- a/src/dolphinpart.h
+++ b/src/dolphinpart.h
@@ -22,6 +22,7 @@
#include <kparts/part.h>
#include <kparts/browserextension.h>
+class DolphinViewActionHandler;
class QActionGroup;
class KAction;
class KFileItemList;
@@ -111,11 +112,6 @@ private Q_SLOTS:
void updatePasteAction();
/**
- * Connected to the "move_to_trash" action; adds "shift means del" handling.
- */
- void slotTrashActivated(Qt::MouseButtons, Qt::KeyboardModifiers);
-
- /**
* Connected to all "Go" menu actions provided by DolphinPart
*/
void slotGoTriggered(QAction* action);
@@ -130,27 +126,6 @@ private Q_SLOTS:
*/
void slotProperties();
- /**
- * Opens the dialog for creating a directory. Is connected
- * with the key shortcut for "new directory" (F10).
- */
- void createDir();
-
- /** Updates the state of the 'Show preview' menu action. */
- void slotShowPreviewChanged();
-
- /** Updates the state of the 'Show hidden files' menu action. */
- void slotShowHiddenFilesChanged();
-
- /** Updates the state of the 'Categorized sorting' menu action. */
- void slotCategorizedSortingChanged();
-
- /** Updates the state of the 'Sort Ascending/Descending' action. */
- void slotSortOrderChanged(Qt::SortOrder);
-
- /** Updates the state of the 'Additional Information' actions. */
- void slotAdditionalInfoChanged();
-
private:
void createActions();
void createGoAction(const char* name, const char* iconName,
@@ -159,6 +134,7 @@ private:
private:
DolphinView* m_view;
+ DolphinViewActionHandler* m_actionHandler;
KDirLister* m_dirLister;
DolphinModel* m_dolphinModel;
DolphinSortFilterProxyModel* m_proxyModel;