diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-18 00:57:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-18 22:50:23 +0100 |
| commit | 3498b9638cae0a4d793f2d71bb757124b5fd9141 (patch) | |
| tree | 3457559826c4ee261841874ee254537a48d646ab /src/wx/screens_panel.h | |
| parent | a6f2b7b15a4d80c9bcd763765fc7ccd7407f6820 (diff) | |
Keep maps of wxTreeListItem to Cinema/Screen.
Diffstat (limited to 'src/wx/screens_panel.h')
| -rw-r--r-- | src/wx/screens_panel.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index 4b7a80141..78023264a 100644 --- a/src/wx/screens_panel.h +++ b/src/wx/screens_panel.h @@ -69,8 +69,8 @@ private: typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<Cinema>>> Cinemas; typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<dcpomatic::Screen>>> Screens; - Cinemas::iterator cinema_by_tree_list_item (wxTreeListItem item); - Screens::const_iterator screen_by_tree_list_item (wxTreeListItem item) const; + std::shared_ptr<Cinema> item_to_cinema (wxTreeListItem item) const; + std::shared_ptr<dcpomatic::Screen> item_to_screen (wxTreeListItem item) const; wxSearchCtrl* _search; wxTreeListCtrl* _targets; @@ -86,6 +86,9 @@ private: Cinemas _selected_cinemas; Screens _selected_screens; + std::map<wxTreeListItem, std::shared_ptr<Cinema>> _item_to_cinema; + std::map<wxTreeListItem, std::shared_ptr<dcpomatic::Screen>> _item_to_screen; + bool _ignore_selection_change; class Comparator : public wxTreeListItemComparator |
