summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/MultiView.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-07-11 23:11:53 -0600
committerAndreas Kling <kling@serenityos.org>2020-07-13 19:49:34 +0200
commitd4c6ae826383bdd0363904628a5b352cc8784b78 (patch)
tree289a36aa05c26e1fcb761412f74c1c743f85c5a0 /Libraries/LibGUI/MultiView.h
parentf266f0e880c88eeca2b25b9b7ac648049b5db512 (diff)
downloadserenity-d4c6ae826383bdd0363904628a5b352cc8784b78.zip
LibGUI: Add ability to disable multiselect for views
Diffstat (limited to 'Libraries/LibGUI/MultiView.h')
-rw-r--r--Libraries/LibGUI/MultiView.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibGUI/MultiView.h b/Libraries/LibGUI/MultiView.h
index 53d8d0a382..d7dbe6ea49 100644
--- a/Libraries/LibGUI/MultiView.h
+++ b/Libraries/LibGUI/MultiView.h
@@ -103,10 +103,14 @@ public:
Action& view_as_columns_action() { return *m_view_as_columns_action; }
#endif
+ bool is_multi_select() const { return m_multi_select; }
+ void set_multi_select(bool);
+
private:
MultiView();
void build_actions();
+ void apply_multi_select();
ViewMode m_view_mode { Invalid };
int m_model_column { 0 };
@@ -126,6 +130,8 @@ private:
#endif
OwnPtr<ActionGroup> m_view_type_action_group;
+
+ bool m_multi_select { true };
};
}