summaryrefslogtreecommitdiff
path: root/src/wx/screens_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-18 00:44:30 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-18 01:06:19 +0200
commit48329a8d7ed941b6706b3473608b00ede7f59dac (patch)
tree2693106bf4ae25dae590b071f01c9af24137f9d1 /src/wx/screens_panel.h
parentb46a2eb2ea4311ae5bdd13a2b0f209b493f81b12 (diff)
Add button to show only checked screens in the KDM creator (#2624).
Diffstat (limited to 'src/wx/screens_panel.h')
-rw-r--r--src/wx/screens_panel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h
index 65dfbdddb..80a7b3843 100644
--- a/src/wx/screens_panel.h
+++ b/src/wx/screens_panel.h
@@ -39,6 +39,7 @@ namespace dcpomatic {
class Cinema;
+class CheckBox;
class ScreensPanel : public wxPanel
@@ -66,7 +67,7 @@ private:
void remove_screen_clicked ();
void selection_changed_shim (wxTreeListEvent &);
void selection_changed ();
- void search_changed ();
+ void display_filter_changed();
void checkbox_changed (wxTreeListEvent& ev);
void item_activated(wxTreeListEvent& ev);
std::shared_ptr<Cinema> cinema_for_operation () const;
@@ -80,13 +81,16 @@ private:
void convert_to_lower(std::string& s);
bool matches_search(std::shared_ptr<const Cinema> cinema, std::string search);
std::list<std::shared_ptr<Cinema>> sorted_cinemas() const;
+ void setup_show_only_checked();
std::shared_ptr<Cinema> item_to_cinema (wxTreeListItem item) const;
std::shared_ptr<dcpomatic::Screen> item_to_screen (wxTreeListItem item) const;
boost::optional<wxTreeListItem> cinema_to_item (std::shared_ptr<Cinema> cinema) const;
boost::optional<wxTreeListItem> screen_to_item (std::shared_ptr<dcpomatic::Screen> screen) const;
+ wxBoxSizer* _overall_sizer;
wxSearchCtrl* _search;
+ CheckBox* _show_only_checked;
wxTreeListCtrl* _targets;
wxButton* _add_cinema;
wxButton* _edit_cinema;