summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-20 16:30:54 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-20 16:30:54 +0000
commitce835adf99ec81ea182ac151f6e0d1cc3376d175 (patch)
treed529edaff1c75194fe41d70877db292d49217246 /src/tools
parentd324fc102df00d6dc62614938f78cf983a101dd4 (diff)
Add primitive hints dialogue box.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 1fea4fb1a..1d01e4da8 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -41,6 +41,7 @@
#include "wx/about_dialog.h"
#include "wx/kdm_dialog.h"
#include "wx/servers_list_dialog.h"
+#include "wx/hints_dialog.h"
#include "lib/film.h"
#include "lib/config.h"
#include "lib/util.h"
@@ -181,6 +182,7 @@ enum {
ID_jobs_make_kdms,
ID_jobs_send_dcp_to_tms,
ID_jobs_show_dcp,
+ ID_tools_hints,
ID_tools_encoding_servers,
};
@@ -219,6 +221,7 @@ setup_menu (wxMenuBar* m)
add_item (jobs_menu, _("S&how DCP"), ID_jobs_show_dcp, NEEDS_FILM | NOT_DURING_DCP_CREATION | NEEDS_DCP);
wxMenu* tools = new wxMenu;
+ add_item (tools, _("Hints..."), ID_tools_hints, 0);
add_item (tools, _("Encoding Servers..."), ID_tools_encoding_servers, 0);
wxMenu* help = new wxMenu;
@@ -258,6 +261,7 @@ public:
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::jobs_make_kdms, this), ID_jobs_make_kdms);
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::jobs_send_dcp_to_tms, this), ID_jobs_send_dcp_to_tms);
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::jobs_show_dcp, this), ID_jobs_show_dcp);
+ Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::tools_hints, this), ID_tools_hints);
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::tools_encoding_servers, this), ID_tools_encoding_servers);
Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::help_about, this), wxID_ABOUT);
@@ -479,6 +483,15 @@ private:
#endif
}
+ void tools_hints ()
+ {
+ if (!_hints_dialog) {
+ _hints_dialog = new HintsDialog (this, film);
+ }
+
+ _hints_dialog->Show ();
+ }
+
void tools_encoding_servers ()
{
if (!_servers_list_dialog) {
@@ -523,6 +536,7 @@ private:
ev.Skip ();
}
+ HintsDialog* _hints_dialog;
ServersListDialog* _servers_list_dialog;
};