projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Collator for recipients search (#2426).
[dcpomatic.git]
/
src
/
wx
/
recipients_panel.h
diff --git
a/src/wx/recipients_panel.h
b/src/wx/recipients_panel.h
index d224eed1b98251c71c2ae9c8f668ae73118fbcad..6e1f1408ffb6603dd5b821501f5918d1e4bd8dc3 100644
(file)
--- a/
src/wx/recipients_panel.h
+++ b/
src/wx/recipients_panel.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2015-202
0
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2015-202
1
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,19
+18,23
@@
*/
*/
+
+#include "lib/collator.h"
#include "lib/dkdm_recipient.h"
#include "lib/dkdm_recipient.h"
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
-#include <wx/wx.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/srchctrl.h>
#include <wx/treectrl.h>
#include <wx/srchctrl.h>
#include <wx/treectrl.h>
-DCPOMATIC_ENABLE_WARNINGS
+#include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
#include <boost/signals2.hpp>
#include <list>
#include <map>
#include <boost/signals2.hpp>
#include <list>
#include <map>
+
class DKDMRecipient;
class DKDMRecipient;
+
class RecipientsPanel : public wxPanel
{
public:
class RecipientsPanel : public wxPanel
{
public:
@@
-39,7
+43,7
@@
public:
void setup_sensitivity ();
void setup_sensitivity ();
- std::list<std::shared_ptr<DKDMRecipient>
> recipients () const;
+ std::list<std::shared_ptr<DKDMRecipient>> recipients () const;
boost::signals2::signal<void ()> RecipientsChanged;
private:
boost::signals2::signal<void ()> RecipientsChanged;
private:
@@
-59,9
+63,11
@@
private:
wxButton* _remove_recipient;
wxTreeItemId _root;
wxButton* _remove_recipient;
wxTreeItemId _root;
- typedef std::map<wxTreeItemId, std::shared_ptr<DKDMRecipient>
> RecipientMap;
+ typedef std::map<wxTreeItemId, std::shared_ptr<DKDMRecipient>> RecipientMap;
RecipientMap _recipients;
RecipientMap _selected;
bool _ignore_selection_change;
RecipientMap _recipients;
RecipientMap _selected;
bool _ignore_selection_change;
+
+ Collator _collator;
};
};