X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreens_panel.h;h=80a7b38433ba8a32514a3a47a011198859fab975;hb=d95211bd43a7948751fcbddbb115d1dd551f8943;hp=bdbac5141d3dd1e675c0cd72e75c92c2d5d33e27;hpb=93664a46e226aad6cfb71749e3a83904102ea896;p=dcpomatic.git diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index bdbac5141..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_for_operation () const; @@ -78,15 +79,18 @@ private: void clear_and_re_add(); void config_changed(Config::Property); void convert_to_lower(std::string& s); - bool matches_search(std::shared_ptr cinema, std::string lower_case_search); + bool matches_search(std::shared_ptr cinema, std::string search); std::list> sorted_cinemas() const; + void setup_show_only_checked(); std::shared_ptr item_to_cinema (wxTreeListItem item) const; std::shared_ptr item_to_screen (wxTreeListItem item) const; boost::optional cinema_to_item (std::shared_ptr cinema) const; boost::optional screen_to_item (std::shared_ptr screen) const; + wxBoxSizer* _overall_sizer; wxSearchCtrl* _search; + CheckBox* _show_only_checked; wxTreeListCtrl* _targets; wxButton* _add_cinema; wxButton* _edit_cinema;