summaryrefslogtreecommitdiff
path: root/src/wx/screens_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-18 01:10:24 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-18 22:50:23 +0100
commit2ec526747aceb1055f6733342732ace7567f4fbc (patch)
tree4476be5fe2d70a37a04d1aa92a2bc44d63de6b51 /src/wx/screens_panel.h
parent3498b9638cae0a4d793f2d71bb757124b5fd9141 (diff)
Also keep maps the other way around.
Diffstat (limited to 'src/wx/screens_panel.h')
-rw-r--r--src/wx/screens_panel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h
index 78023264a..a00e5d39f 100644
--- a/src/wx/screens_panel.h
+++ b/src/wx/screens_panel.h
@@ -71,6 +71,8 @@ private:
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;
wxSearchCtrl* _search;
wxTreeListCtrl* _targets;
@@ -88,6 +90,8 @@ private:
std::map<wxTreeListItem, std::shared_ptr<Cinema>> _item_to_cinema;
std::map<wxTreeListItem, std::shared_ptr<dcpomatic::Screen>> _item_to_screen;
+ std::map<std::shared_ptr<Cinema>, wxTreeListItem> _cinema_to_item;
+ std::map<std::shared_ptr<dcpomatic::Screen>, wxTreeListItem> _screen_to_item;
bool _ignore_selection_change;