summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-20 10:40:24 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-20 10:40:24 +0100
commit69a7c253174091d12b0efb37f2a4ac5e61dfaa3a (patch)
tree908b8498fa02309b147c6fc37ccaaf9b8469e518 /src/wx
parent2b7db93970b37c9b21d4eff0c6d2955502ec7098 (diff)
Add select-all.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/content_panel.cc8
-rw-r--r--src/wx/content_panel.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index d54f3dc6b..96d3cd251 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -655,6 +655,14 @@ ContentPanel::set_selection (ContentList cl)
check_selection ();
}
+
+void
+ContentPanel::select_all ()
+{
+ set_selection (_film->content());
+}
+
+
void
ContentPanel::film_content_changed (int property)
{
diff --git a/src/wx/content_panel.h b/src/wx/content_panel.h
index 124fd6b94..70568ccc0 100644
--- a/src/wx/content_panel.h
+++ b/src/wx/content_panel.h
@@ -75,6 +75,7 @@ public:
void set_general_sensitivity (bool s);
void set_selection (std::weak_ptr<Content>);
void set_selection (ContentList cl);
+ void select_all ();
void film_changed (Film::Property p);
void film_content_changed (int p);