From dfa88d5ad8760d10c15864d01aae9eb8222060ea Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Jan 2013 13:29:21 +0000 Subject: Stub new cinema dialog. --- src/wx/kdm_dialog.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/wx/kdm_dialog.cc') 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 #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 c, shared_ptr 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 &) +{ + +} -- cgit v1.2.3