#define DOLPHINVIEWACTIONHANDLER_H
#include "dolphin_export.h"
+#include "selectionmode/bottombar.h"
#include "views/dolphinview.h"
#include <QObject>
class DolphinView;
class KActionCollection;
class KFileItemList;
+namespace SelectionMode {
+ class ActionTextHelper;
+}
/**
* @short Handles all actions for DolphinView
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.
*/
void createDirectoryTriggered();
+ /** Used to request either entering or leaving of selection mode */
+ void selectionModeChangeTriggered(bool enabled, SelectionMode::BottomBar::Contents bottomBarContents = SelectionMode::BottomBar::Contents::GeneralContents);
+
private Q_SLOTS:
/**
* Emitted when the user requested a change of view mode
*/
void slotSortFoldersFirstChanged(bool foldersFirst);
+ /**
+ * Switches between showing hidden files last or not.
+ */
+ void toggleSortHiddenLast();
+
+ /**
+ * Updates the state of the 'Sort Hidden Last' action.
+ */
+ void slotSortHiddenLastChanged(bool hiddenLast);
+
/**
* Updates the state of the 'Sort by' actions.
*/
* 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.