┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinviewactionhandler.h
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2021-05-13 16:49:27 +0000
committerNate Graham <[email protected]>2021-05-13 16:49:27 +0000
commit53a778c1ebab4473da8ae7b18fd2f2ac75b9690a (patch)
tree070949ff96d109a090337ba9d95ef4ddd45c8dcc /src/views/dolphinviewactionhandler.h
parent4d9ea4261a1f24e299595b897ea790eab1748fe9 (diff)
Re-arrange the contents of the hamburger menu
To improve usability, the entries in the hamburger menu are changed. Maybe the biggest fault of the previous menu contents were that there were too many actions. The new menu contents are composed of all the actions which are necessary to use Dolphin and those which are very useful and should be of interest for most users. Some menu contents change depending on the state of the application. We can be more bold in only showing what really seems necessary because this commit activates the special sub-menu of KHamburgerMenu that helps users discover all further features of Dolphin. The hamburger menu is from now on also added to the context menus in the view when both the menu bar and toolbar are hidden. This allows users to hide both of them and still use all features of Dolphin.
Diffstat (limited to 'src/views/dolphinviewactionhandler.h')
-rw-r--r--src/views/dolphinviewactionhandler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/views/dolphinviewactionhandler.h b/src/views/dolphinviewactionhandler.h
index 23b4e5f1a..3f73153ea 100644
--- a/src/views/dolphinviewactionhandler.h
+++ b/src/views/dolphinviewactionhandler.h
@@ -19,6 +19,7 @@ class QAction;
class QActionGroup;
class DolphinView;
class KActionCollection;
+class KFileItemList;
/**
* @short Handles all actions for DolphinView
@@ -211,6 +212,13 @@ private Q_SLOTS:
*/
void slotCopyPath();
+ /**
+ * Changes the name of the menu that contains basic actions like "Copy", "Rename", ...
+ * The name is changed to something like "Actions for 3 Selected Items" to be extra
+ * explicit of how these basic actions are used.
+ */
+ void slotSelectionChanged(const KFileItemList& selection);
+
private:
/**
* Create all the actions.