summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-09-28 23:45:01 +0100
committerCarl Hetherington <cth@carlh.net>2014-09-28 23:45:01 +0100
commit447b69c23dcf8f316f0d389e1cf2b78ec764fb82 (patch)
tree01e05aa40d408691f6dbb8168001cef8b95929f4 /src
parentdc439bf0943db18c90ab97a9a86336ec9885c2c3 (diff)
Another shortcut.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic.cc10
-rw-r--r--src/wx/film_editor.h3
2 files changed, 11 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 79f9144b5..e59892d92 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -127,7 +127,9 @@ enum {
ID_jobs_show_dcp,
ID_tools_hints,
ID_tools_encoding_servers,
- ID_tools_check_for_updates
+ ID_tools_check_for_updates,
+ /* IDs for shortcuts (with no associated menu item) */
+ ID_add_file
};
class Frame : public wxFrame
@@ -186,6 +188,12 @@ public:
Bind (wxEVT_CLOSE_WINDOW, boost::bind (&Frame::close, this, _1));
+ wxAcceleratorEntry accel[1];
+ accel[0].Set (wxACCEL_CTRL, static_cast<int>('A'), ID_add_file);
+ Bind (wxEVT_MENU, boost::bind (&FilmEditor::content_add_file_clicked, _film_editor), ID_add_file);
+ wxAcceleratorTable accel_table (1, accel);
+ SetAcceleratorTable (accel_table);
+
/* Use a panel as the only child of the Frame so that we avoid
the dark-grey background on Windows.
*/
diff --git a/src/wx/film_editor.h b/src/wx/film_editor.h
index 56e725113..ba9ff6fa0 100644
--- a/src/wx/film_editor.h
+++ b/src/wx/film_editor.h
@@ -68,6 +68,8 @@ public:
AudioContentList selected_audio_content ();
SubtitleContentList selected_subtitle_content ();
FFmpegContentList selected_ffmpeg_content ();
+
+ void content_add_file_clicked ();
private:
void make_dcp_panel ();
@@ -79,7 +81,6 @@ private:
void use_isdcf_name_toggled ();
void edit_isdcf_button_clicked ();
void content_selection_changed ();
- void content_add_file_clicked ();
void content_add_folder_clicked ();
void content_remove_clicked ();
void content_earlier_clicked ();