projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow multiple recipients of KDM emails (#745).
[dcpomatic.git]
/
src
/
wx
/
cinema_dialog.h
diff --git
a/src/wx/cinema_dialog.h
b/src/wx/cinema_dialog.h
index 56beaa5bd1a8cb94d2d6b7af9f3245cd941f5ad8..7d27bd94b473492cfc8dd90fc605bf20f19a3977 100644
(file)
--- a/
src/wx/cinema_dialog.h
+++ b/
src/wx/cinema_dialog.h
@@
-17,18
+17,26
@@
*/
*/
-#include <wx/wx.h>
#include "table_dialog.h"
#include "table_dialog.h"
+#include "editable_list.h"
+#include "email_dialog.h"
+#include <wx/wx.h>
+#include <list>
+#include <vector>
-class CinemaDialog : public
Table
Dialog
+class CinemaDialog : public
wx
Dialog
{
public:
{
public:
- CinemaDialog (wxWindow *, std::string, std::string name = "", std::
string email = ""
);
+ CinemaDialog (wxWindow *, std::string, std::string name = "", std::
list<std::string> emails = std::list<std::string> ()
);
std::string name () const;
std::string name () const;
- std::
string email
() const;
+ std::
list<std::string> emails
() const;
private:
private:
+ std::vector<std::string> get_emails () const;
+ void set_emails (std::vector<std::string>);
+
wxTextCtrl* _name;
wxTextCtrl* _name;
- wxTextCtrl* _email;
+ EditableList<std::string, EmailDialog>* _email_list;
+ std::vector<std::string> _emails;
};
};