summaryrefslogtreecommitdiff
path: root/src/wx/cinema_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-27 01:50:00 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-29 22:51:18 +0100
commit068291b7233b01573863d7fb5eda2a82883c748d (patch)
tree1bca551006315fd234b2408e1be47fcd2970916d /src/wx/cinema_dialog.cc
parent1863fff137bda1c0d3702a845cc79afbfc8c74c4 (diff)
Add free-text notes field to cinemas and screens.
Diffstat (limited to 'src/wx/cinema_dialog.cc')
-rw-r--r--src/wx/cinema_dialog.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/wx/cinema_dialog.cc b/src/wx/cinema_dialog.cc
index df56b9cbe..debc06795 100644
--- a/src/wx/cinema_dialog.cc
+++ b/src/wx/cinema_dialog.cc
@@ -37,7 +37,7 @@ column (string s)
return s;
}
-CinemaDialog::CinemaDialog (wxWindow* parent, wxString title, string name, list<string> emails, int utc_offset_hour, int utc_offset_minute)
+CinemaDialog::CinemaDialog (wxWindow* parent, wxString title, string name, list<string> emails, string notes, int utc_offset_hour, int utc_offset_minute)
: wxDialog (parent, wxID_ANY, title)
{
wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
@@ -56,6 +56,11 @@ CinemaDialog::CinemaDialog (wxWindow* parent, wxString title, string name, list<
sizer->Add (_utc_offset, wxGBPosition (r, 1));
++r;
+ add_label_to_sizer (sizer, this, _("Notes"), true, wxGBPosition (r, 0));
+ _notes = new wxTextCtrl (this, wxID_ANY, std_to_wx (notes), wxDefaultPosition, wxSize (500, -1));
+ sizer->Add (_notes, wxGBPosition (r, 1));
+ ++r;
+
add_label_to_sizer (sizer, this, _("Email addresses for KDM delivery"), false, wxGBPosition (r, 0), wxGBSpan (1, 2));
++r;
@@ -166,3 +171,9 @@ CinemaDialog::utc_offset_minute () const
return _offsets[sel].minute;
}
+
+string
+CinemaDialog::notes () const
+{
+ return wx_to_std (_notes->GetValue ());
+}