summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-06 13:29:21 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-06 13:29:21 +0000
commitdfa88d5ad8760d10c15864d01aae9eb8222060ea (patch)
treeeeb1d4387b437088d3117856df9f7789add91e98 /src/wx/kdm_dialog.cc
parentd093a5268e64af44bc55aec06d4c9b8efca6d9d6 (diff)
Stub new cinema dialog.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-rw-r--r--src/wx/kdm_dialog.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index ba478f7d5..519317dcc 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -22,6 +22,7 @@
#include <wx/timectrl.h>
#include "lib/cinema.h"
#include "kdm_dialog.h"
+#include "new_cinema_dialog.h"
#include "wx_util.h"
#ifdef __WXMSW__
#include "dir_picker_ctrl.h"
@@ -94,6 +95,8 @@ KDMDialog::KDMDialog (wxWindow* parent)
}
_targets->Connect (wxID_ANY, wxEVT_COMMAND_TREE_SEL_CHANGED, wxCommandEventHandler (KDMDialog::targets_selection_changed), 0, this);
+ _new_cinema->Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (KDMDialog::new_cinema_clicked), 0, this);
+ _new_screen->Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (KDMDialog::new_screen_clicked), 0, this);
_new_screen->Enable (false);
@@ -138,3 +141,17 @@ KDMDialog::add_screen (shared_ptr<Cinema> c, shared_ptr<Screen> s)
_screens[_targets->AppendItem (i->first, std_to_wx (s->name))] = s;
}
+
+void
+KDMDialog::new_cinema_clicked (wxCommandEvent &)
+{
+ NewCinemaDialog* d = new NewCinemaDialog (this);
+ d->ShowModal ();
+ d->Destroy ();
+}
+
+void
+KDMDialog::new_screen_clicked (wxCommandEvent &)
+{
+
+}