auto id = _targets->InsertItem(_targets->GetRootItem(), previous, std_to_wx(cinema->name));
- _cinemas.push_back(make_pair(id, cinema));
_item_to_cinema[id] = cinema;
_cinema_to_item[cinema] = id;
auto id = _targets->AppendItem(*item, std_to_wx(screen->name));
- _screens.push_back(make_pair(id, screen));
_item_to_screen[id] = screen;
_screen_to_item[screen] = id;
ScreensPanel::search_changed ()
{
_targets->DeleteAllItems ();
- _cinemas.clear ();
- _screens.clear ();
_item_to_cinema.clear ();
_cinema_to_item.clear ();
void setup_cinema_checked_state (wxTreeListItem screen);
int compare (std::string const& utf8_a, std::string const& utf8_b);
- typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<Cinema>>> Cinemas;
- typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<dcpomatic::Screen>>> Screens;
-
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;
wxButton* _edit_screen;
wxButton* _remove_screen;
- Cinemas _cinemas;
- Screens _screens;
-
/* We want to be able to search (and so remove selected things from the view)
* but not deselect them, so we maintain lists of selected cinemas and screens.
*/