┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.h
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2022-04-28 22:55:28 +0200
committerFelix Ernst <[email protected]>2022-08-14 14:42:40 +0000
commit2e588733c759cccd2d86e34a3a394b9a8ab0c800 (patch)
treedac34800b35fde72e7ee0dd1492586f89f1094a7 /src/dolphinviewcontainer.h
parent78cffd2979a6ed87e044fcb024cf4fdfc5c7cb3d (diff)
Improve naming consistency and leave mode on Escape
Diffstat (limited to 'src/dolphinviewcontainer.h')
-rw-r--r--src/dolphinviewcontainer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h
index 9d5cec11f..3ff575970 100644
--- a/src/dolphinviewcontainer.h
+++ b/src/dolphinviewcontainer.h
@@ -137,7 +137,20 @@ public:
*/
void disconnectUrlNavigator();
+ /**
+ * Sets a selection mode that is useful for quick and easy selecting or deselecting of files.
+ * This method is the central authority about enabling or disabling selection mode:
+ * All other classes that want to enable or disable selection mode should trigger a call of this method.
+ *
+ * This method sets the selection mode for the view of this viewContainer and sets the visibility of the
+ * selection mode top and bottom bar which also belong to this viewContainer.
+ *
+ * @param enabled Whether to enable or disable selection mode.
+ * @param actionCollection The collection of actions from which the actions on the bottom bar are retrieved.
+ * @param bottomBarContents The contents the bar is supposed to show after this call.
+ */
void setSelectionModeEnabled(bool enabled, KActionCollection *actionCollection = nullptr, SelectionMode::BottomBar::Contents bottomBarContents = SelectionMode::BottomBar::Contents::GeneralContents);
+ /** @see setSelectionModeEnabled() */
bool isSelectionModeEnabled() const;
/**