Use the ICU library to sort cinemas rather than strcoll() (part of #2208).
[dcpomatic.git] / src / wx / screens_panel.h
index c0b90dfcf08237d9fa80a96cfb873d962fdcc336..4b7a801413a5c3e3d5b80c5a17ce1b241dcc3c29 100644 (file)
@@ -36,6 +36,7 @@ namespace dcpomatic {
 
 
 class Cinema;
+class UCollator;
 
 
 class ScreensPanel : public wxPanel
@@ -90,10 +91,13 @@ private:
        class Comparator : public wxTreeListItemComparator
        {
        public:
-               int Compare (wxTreeListCtrl* tree_list, unsigned, wxTreeListItem a, wxTreeListItem b) override
-               {
-                       return strcoll(wx_to_std(tree_list->GetItemText(a)).c_str(), wx_to_std(tree_list->GetItemText(b)).c_str());
-               }
+               Comparator ();
+               ~Comparator ();
+
+               int Compare (wxTreeListCtrl* tree_list, unsigned, wxTreeListItem a, wxTreeListItem b) override;
+
+       private:
+               UCollator* _collator;
        };
 
        Comparator _comparator;