/*
- 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> (),
+ int utc_offset_hour = 0,
+ int utc_offset_minute = 0
+ );
std::string name () const;
- std::string email () const;
-
+ std::list<std::string> emails () const;
+ int utc_offset_hour () const;
+ int utc_offset_minute () 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;
+ wxChoice* _utc_offset;
+
+ struct Offset
+ {
+ Offset (wxString n, int h, int m)
+ : name (n)
+ , hour (h)
+ , minute (m)
+ {}
+
+ wxString name;
+ int hour;
+ int minute;
+ };
+
+ std::vector<Offset> _offsets;
};