Tidy up ScreensPanel code a bit.
[dcpomatic.git] / src / wx / cinema_dialog.h
index 02520eea985fd473df543c53aeaf9e7656793f83..7d27bd94b473492cfc8dd90fc605bf20f19a3977 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
+#include "table_dialog.h"
+#include "editable_list.h"
+#include "email_dialog.h"
 #include <wx/wx.h>
+#include <list>
+#include <vector>
 
 class CinemaDialog : public wxDialog
 {
 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 email () const;
-       
+       std::list<std::string> emails () const;
+
 private:
+       std::vector<std::string> get_emails () const;
+       void set_emails (std::vector<std::string>);
+
        wxTextCtrl* _name;
-       wxTextCtrl* _email;
+       EditableList<std::string, EmailDialog>* _email_list;
+       std::vector<std::string> _emails;
 };