┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.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/dolphinviewcontainer.h
parent402b4a5698f3d12d1848b298c38828d509abfd0d (diff)
Better separation of classes
Make obvious when actions trigger selection mode.
Diffstat (limited to 'src/dolphinviewcontainer.h')
-rw-r--r--src/dolphinviewcontainer.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h
index a0936efd3..9d5cec11f 100644
--- a/src/dolphinviewcontainer.h
+++ b/src/dolphinviewcontainer.h
@@ -9,7 +9,7 @@
#include "config-dolphin.h"
#include "dolphinurlnavigator.h"
-#include "selectionmode/selectionmodebottombar.h"
+#include "selectionmode/bottombar.h"
#include "views/dolphinview.h"
#include <KFileItem>
@@ -33,7 +33,9 @@ class QGridLayout;
class QUrl;
class DolphinSearchBox;
class DolphinStatusBar;
-class SelectionModeTopBar;
+namespace SelectionMode {
+ class TopBar;
+}
/**
* @short Represents a view for the directory content
@@ -135,7 +137,7 @@ public:
*/
void disconnectUrlNavigator();
- void setSelectionModeEnabled(bool enabled, KActionCollection *actionCollection = nullptr, SelectionModeBottomBar::Contents bottomBarContents = SelectionModeBottomBar::Contents::GeneralContents);
+ void setSelectionModeEnabled(bool enabled, KActionCollection *actionCollection = nullptr, SelectionMode::BottomBar::Contents bottomBarContents = SelectionMode::BottomBar::Contents::GeneralContents);
bool isSelectionModeEnabled() const;
/**
@@ -429,14 +431,14 @@ private:
KMessageWidget* m_messageWidget;
/// A bar shown at the top of the view to signify that selection mode is currently active.
- SelectionModeTopBar *m_selectionModeTopBar;
+ SelectionMode::TopBar *m_selectionModeTopBar;
DolphinView* m_view;
FilterBar* m_filterBar;
/// A bar shown at the bottom of the view whose contents depend on what the user is currently doing.
- SelectionModeBottomBar *m_selectionModeBottomBar;
+ SelectionMode::BottomBar *m_selectionModeBottomBar;
DolphinStatusBar* m_statusBar;
QTimer* m_statusBarTimer; // Triggers a delayed update