boost::optional<wxTreeListItem> add_screen (std::shared_ptr<Cinema>, std::shared_ptr<dcpomatic::Screen>);
void add_cinema_clicked ();
void edit_cinema_clicked ();
boost::optional<wxTreeListItem> add_screen (std::shared_ptr<Cinema>, std::shared_ptr<dcpomatic::Screen>);
void add_cinema_clicked ();
void edit_cinema_clicked ();
void search_changed ();
void checkbox_changed (wxTreeListEvent& ev);
boost::optional<std::pair<wxTreeListItem, std::shared_ptr<Cinema>>> cinema_for_operation () const;
void search_changed ();
void checkbox_changed (wxTreeListEvent& ev);
boost::optional<std::pair<wxTreeListItem, std::shared_ptr<Cinema>>> cinema_for_operation () const;
typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<Cinema>>> Cinemas;
typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<dcpomatic::Screen>>> Screens;
typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<Cinema>>> Cinemas;
typedef std::vector<std::pair<wxTreeListItem, std::shared_ptr<dcpomatic::Screen>>> Screens;
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;
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;
- class Comparator : public wxTreeListItemComparator
- {
- public:
- Comparator ();
- ~Comparator ();
-
- int Compare (wxTreeListCtrl* tree_list, unsigned, wxTreeListItem a, wxTreeListItem b) override;
-
- private:
- UCollator* _collator;
- };
-
- Comparator _comparator;
+ UCollator* _collator = nullptr;