diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-11 13:05:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-11 13:05:00 +0100 |
| commit | c74d789ed75e87bccd094f45f082674f8f8d2f2f (patch) | |
| tree | 991e253800e7e4bb4136d52d86d90846f1656ae7 /src/wx/cinema_dialog.h | |
| parent | 304e32c0c9573b36171a2f6eddee6f7400874ed2 (diff) | |
Add UTC-3:30 timezone to cinema (#831).
Diffstat (limited to 'src/wx/cinema_dialog.h')
| -rw-r--r-- | src/wx/cinema_dialog.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/wx/cinema_dialog.h b/src/wx/cinema_dialog.h index a34935e51..2949d6c8c 100644 --- a/src/wx/cinema_dialog.h +++ b/src/wx/cinema_dialog.h @@ -27,11 +27,19 @@ class CinemaDialog : public wxDialog { public: - CinemaDialog (wxWindow *, std::string, std::string name = "", std::list<std::string> emails = std::list<std::string> (), int utc_offset = 0); + 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::list<std::string> emails () const; - int utc_offset () const; + int utc_offset_hour () const; + int utc_offset_minute () const; private: std::vector<std::string> get_emails () const; @@ -41,4 +49,19 @@ private: 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; }; |
