diff options
Diffstat (limited to 'src/wx/kdm_dialog.cc')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 17 |
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 &) +{ + +} |
