#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"
}
_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);
_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 &)
+{
+
+}
void add_cinema (boost::shared_ptr<Cinema>);
void add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<Screen>);
void targets_selection_changed (wxCommandEvent &);
+ void new_cinema_clicked (wxCommandEvent &);
+ void new_screen_clicked (wxCommandEvent &);
wxTreeCtrl* _targets;
wxButton* _new_cinema;
--- /dev/null
+/*
+ Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "new_cinema_dialog.h"
+
+NewCinemaDialog::NewCinemaDialog (wxWindow* parent)
+ : wxDialog (parent, wxID_ANY, _("New Cinema"))
+{
+
+}
--- /dev/null
+/*
+ Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <wx/wx.h>
+
+class NewCinemaDialog : public wxDialog
+{
+public:
+ NewCinemaDialog (wxWindow *);
+
+};
job_manager_view.cc
job_wrapper.cc
kdm_dialog.cc
+ new_cinema_dialog.cc
new_film_dialog.cc
properties_dialog.cc
server_dialog.cc