X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fscreens_panel.h;h=7a075bf49069008aa599d30bed2991653f3b0464;hp=8c818f441b2a7050af1c62fa026a74b623fd1c1e;hb=9c17e94cac5e9d48fe170b8e5288cb764d8145ad;hpb=896a5eca680cf6b0605d10523cfc88bfeb4c9810 diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index 8c818f441..7a075bf49 100644 --- a/src/wx/screens_panel.h +++ b/src/wx/screens_panel.h @@ -52,7 +52,7 @@ public: private: void add_cinemas (); - boost::optional add_cinema (std::shared_ptr); + boost::optional add_cinema (std::shared_ptr, wxTreeListItem previous); boost::optional add_screen (std::shared_ptr, std::shared_ptr); void add_cinema_clicked (); void edit_cinema_clicked (); @@ -67,6 +67,7 @@ private: boost::optional>> cinema_for_operation () const; void set_screen_checked (wxTreeListItem item, bool checked); void setup_cinema_checked_state (wxTreeListItem screen); + int compare (std::string const& utf8_a, std::string const& utf8_b); typedef std::vector>> Cinemas; typedef std::vector>> Screens; @@ -106,17 +107,5 @@ private: bool _ignore_selection_change = false; bool _ignore_check_change = false; - 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; };