diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-23 22:03:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-23 22:03:35 +0000 |
| commit | 377979a5f00c3c2b0dd0ca95e2b9371f4739658f (patch) | |
| tree | ff3f5a0fc723447003fdce5a9d8768a52f815c1a /src/wx/screens_panel.h | |
| parent | 1c2f5d29c129028f9ae5b4b064a06dfa1c1c1214 (diff) | |
Add search button to screens panel.
Diffstat (limited to 'src/wx/screens_panel.h')
| -rw-r--r-- | src/wx/screens_panel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index 6cfff0a60..829208880 100644 --- a/src/wx/screens_panel.h +++ b/src/wx/screens_panel.h @@ -18,6 +18,7 @@ */ #include <wx/wx.h> +#include <wx/srchctrl.h> #include <wx/treectrl.h> #include <boost/shared_ptr.hpp> #include <list> @@ -38,6 +39,7 @@ public: boost::signals2::signal<void ()> ScreensChanged; private: + void add_cinemas (); void add_cinema (boost::shared_ptr<Cinema>); void add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<Screen>); void add_cinema_clicked (); @@ -49,7 +51,9 @@ private: std::list<std::pair<wxTreeItemId, boost::shared_ptr<Cinema> > > selected_cinemas () const; std::list<std::pair<wxTreeItemId, boost::shared_ptr<Screen> > > selected_screens () const; void selection_changed (wxTreeEvent &); + void search_changed (); + wxSearchCtrl* _search; wxTreeCtrl* _targets; wxButton* _add_cinema; wxButton* _edit_cinema; @@ -60,4 +64,7 @@ private: wxTreeItemId _root; std::map<wxTreeItemId, boost::shared_ptr<Cinema> > _cinemas; std::map<wxTreeItemId, boost::shared_ptr<Screen> > _screens; + std::list<boost::shared_ptr<Cinema> > _selected_cinemas; + std::list<boost::shared_ptr<Screen> > _selected_screens; + bool _ignore_selection_change; }; |
