diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-06 02:09:08 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-06 02:09:08 +0000 |
| commit | d093a5268e64af44bc55aec06d4c9b8efca6d9d6 (patch) | |
| tree | 8b15d250012d2b3fc2a86890361ce3af22d73d87 /src/tools | |
| parent | 49936cb957f0d57310f05a7b17c7ab52c95e94d4 (diff) | |
Some work on KDM UI.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dvdomatic.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index d5dca2ab4..cfdd03a30 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -31,6 +31,7 @@ #include "wx/new_film_dialog.h" #include "wx/properties_dialog.h" #include "wx/wx_ui_signaller.h" +#include "wx/kdm_dialog.h" #include "lib/film.h" #include "lib/format.h" #include "lib/config.h" @@ -137,6 +138,7 @@ enum { ID_file_quit, ID_edit_preferences, ID_jobs_make_dcp, + ID_jobs_make_kdms, ID_jobs_send_dcp_to_tms, ID_jobs_examine_content, ID_jobs_make_dcp_from_existing_transcode, @@ -161,6 +163,7 @@ setup_menu (wxMenuBar* m) wxMenu* jobs = new wxMenu; add_item (jobs, "&Make DCP", ID_jobs_make_dcp, NEEDS_FILM); + add_item (jobs, "Make &KDMs...", ID_jobs_make_kdms, NEEDS_FILM); add_item (jobs, "&Send DCP to TMS", ID_jobs_send_dcp_to_tms, NEEDS_FILM); jobs->AppendSeparator (); add_item (jobs, "&Examine content", ID_jobs_examine_content, NEEDS_FILM); @@ -199,6 +202,7 @@ public: Connect (ID_file_quit, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::file_quit)); Connect (ID_edit_preferences, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::edit_preferences)); Connect (ID_jobs_make_dcp, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_make_dcp)); + Connect (ID_jobs_make_kdms, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_make_kdms)); Connect (ID_jobs_send_dcp_to_tms, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_send_dcp_to_tms)); Connect (ID_jobs_examine_content, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_examine_content)); Connect (ID_jobs_make_dcp_from_existing_transcode, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_make_dcp_from_existing_transcode)); @@ -330,6 +334,13 @@ public: { JobWrapper::make_dcp (this, film, true); } + + void jobs_make_kdms (wxCommandEvent &) + { + KDMDialog* d = new KDMDialog (this); + d->ShowModal (); + d->Destroy (); + } void jobs_make_dcp_from_existing_transcode (wxCommandEvent &) { |
