┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinviewactionhandler.h
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2022-04-24 13:18:30 +0200
committerFelix Ernst <[email protected]>2022-08-14 14:42:40 +0000
commit8e55f2c2409fd6ca9ebc66a6568f4d3bcbef7576 (patch)
treeabc2aa68ceb8f79addf0f74615e91efa08a44172 /src/views/dolphinviewactionhandler.h
parent402b4a5698f3d12d1848b298c38828d509abfd0d (diff)
Better separation of classes
Make obvious when actions trigger selection mode.
Diffstat (limited to 'src/views/dolphinviewactionhandler.h')
-rw-r--r--src/views/dolphinviewactionhandler.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/views/dolphinviewactionhandler.h b/src/views/dolphinviewactionhandler.h
index f35512a5f..5c7475fdb 100644
--- a/src/views/dolphinviewactionhandler.h
+++ b/src/views/dolphinviewactionhandler.h
@@ -10,7 +10,7 @@
#define DOLPHINVIEWACTIONHANDLER_H
#include "dolphin_export.h"
-#include "selectionmode/selectionmodebottombar.h"
+#include "selectionmode/bottombar.h"
#include "views/dolphinview.h"
#include <QObject>
@@ -21,6 +21,9 @@ class QActionGroup;
class DolphinView;
class KActionCollection;
class KFileItemList;
+namespace SelectionMode {
+ class ActionTextHelper;
+}
/**
* @short Handles all actions for DolphinView
@@ -41,7 +44,7 @@ class DOLPHIN_EXPORT DolphinViewActionHandler : public QObject
Q_OBJECT
public:
- explicit DolphinViewActionHandler(KActionCollection* collection, QObject* parent);
+ explicit DolphinViewActionHandler(KActionCollection* collection, SelectionMode::ActionTextHelper* actionTextHelper, QObject* parent);
/**
* Sets the view that this action handler should work on.
@@ -85,7 +88,7 @@ Q_SIGNALS:
void createDirectoryTriggered();
/** Used to request selection mode */
- void setSelectionMode(bool enabled, SelectionModeBottomBar::Contents bottomBarContents = SelectionModeBottomBar::Contents::GeneralContents);
+ void setSelectionMode(bool enabled, SelectionMode::BottomBar::Contents bottomBarContents = SelectionMode::BottomBar::Contents::GeneralContents);
private Q_SLOTS:
/**
@@ -238,7 +241,7 @@ private:
* Create all the actions.
* This is called only once (by the constructor)
*/
- void createActions();
+ void createActions(SelectionMode::ActionTextHelper *actionTextHelper);
/**
* Creates an action-group out of all roles from KFileItemModel.