Convert commands to structs to eliminate a line of boilerplate per command

Originally committed to SVN as r5197.
This commit is contained in:
Thomas Goyne 2011-01-16 07:15:32 +00:00
parent 9779eacbf1
commit 583aed4533
14 changed files with 131 additions and 262 deletions

View file

@ -62,8 +62,7 @@ namespace cmd {
/// @{ /// @{
/// Launch about dialogue. /// Launch about dialogue.
class app_about: public Command { struct app_about : public Command {
public:
CMD_NAME("app/about") CMD_NAME("app/about")
STR_MENU("&About..") STR_MENU("&About..")
STR_DISP("About") STR_DISP("About")
@ -76,8 +75,7 @@ public:
/// Display audio and subtitles. /// Display audio and subtitles.
class app_display_audio_subs: public Command { struct app_display_audio_subs : public Command {
public:
CMD_NAME("app/display/audio_subs") CMD_NAME("app/display/audio_subs")
STR_MENU("Audio+Subs View") STR_MENU("Audio+Subs View")
STR_DISP("Audio+Subs View") STR_DISP("Audio+Subs View")
@ -90,8 +88,7 @@ public:
/// Display audio, video and subtitles. /// Display audio, video and subtitles.
class app_display_full: public Command { struct app_display_full : public Command {
public:
CMD_NAME("app/display/full") CMD_NAME("app/display/full")
STR_MENU("Full view") STR_MENU("Full view")
STR_DISP("Full view") STR_DISP("Full view")
@ -104,8 +101,7 @@ public:
/// Display subtitles only. /// Display subtitles only.
class app_display_subs: public Command { struct app_display_subs : public Command {
public:
CMD_NAME("app/display/subs") CMD_NAME("app/display/subs")
STR_MENU("Subs Only View") STR_MENU("Subs Only View")
STR_DISP("Subs Only View") STR_DISP("Subs Only View")
@ -118,8 +114,7 @@ public:
/// Display video and subtitles only. /// Display video and subtitles only.
class app_display_video_subs: public Command { struct app_display_video_subs : public Command {
public:
CMD_NAME("app/display/video_subs") CMD_NAME("app/display/video_subs")
STR_MENU("Video+Subs View") STR_MENU("Video+Subs View")
STR_DISP("Video+Subs View") STR_DISP("Video+Subs View")
@ -132,8 +127,7 @@ public:
/// Exit the application. /// Exit the application.
class app_exit: public Command { struct app_exit : public Command {
public:
CMD_NAME("app/exit") CMD_NAME("app/exit")
STR_MENU("E&xit") STR_MENU("E&xit")
STR_DISP("Exit") STR_DISP("Exit")
@ -146,8 +140,7 @@ public:
/// Select Aegisub interface language /// Select Aegisub interface language
class app_language: public Command { struct app_language : public Command {
public:
CMD_NAME("app/language") CMD_NAME("app/language")
STR_MENU("&Language...") STR_MENU("&Language...")
STR_DISP("Language") STR_DISP("Language")
@ -177,8 +170,7 @@ public:
/// Event log. /// Event log.
class app_log: public Command { struct app_log : public Command {
public:
CMD_NAME("app/log") CMD_NAME("app/log")
STR_MENU("&Log window...") STR_MENU("&Log window...")
STR_DISP("Log window") STR_DISP("Log window")
@ -191,8 +183,7 @@ public:
/// Open a new application window. /// Open a new application window.
class app_new_window: public Command { struct app_new_window : public Command {
public:
CMD_NAME("app/new_window") CMD_NAME("app/new_window")
STR_MENU("New Window") STR_MENU("New Window")
STR_DISP("New Window") STR_DISP("New Window")
@ -205,8 +196,7 @@ public:
/// Configure Aegisub. /// Configure Aegisub.
class app_options: public Command { struct app_options : public Command {
public:
CMD_NAME("app/options") CMD_NAME("app/options")
STR_MENU("&Options..") STR_MENU("&Options..")
STR_DISP("Options") STR_DISP("Options")
@ -223,8 +213,7 @@ public:
/// Check to see if there is a new version of Aegisub available. /// Check to see if there is a new version of Aegisub available.
class app_updates: public Command { struct app_updates : public Command {
public:
CMD_NAME("app/updates") CMD_NAME("app/updates")
STR_MENU("&Check for Updates..") STR_MENU("&Check for Updates..")
STR_DISP("Check for Updates") STR_DISP("Check for Updates")

View file

@ -55,8 +55,7 @@ namespace cmd {
/// Closes the currently open audio file. /// Closes the currently open audio file.
class audio_close: public Command { struct audio_close : public Command {
public:
CMD_NAME("audio/close") CMD_NAME("audio/close")
STR_MENU("&Close Audio") STR_MENU("&Close Audio")
STR_DISP("Close Audio") STR_DISP("Close Audio")
@ -69,8 +68,7 @@ public:
/// Opens an audio file. /// Opens an audio file.
class audio_open: public Command { struct audio_open : public Command {
public:
CMD_NAME("audio/open") CMD_NAME("audio/open")
STR_MENU("&Open Audio File..") STR_MENU("&Open Audio File..")
STR_DISP("Open Audio File") STR_DISP("Open Audio File")
@ -91,8 +89,7 @@ public:
/// Open a 150 minutes blank audio clip, for debugging. /// Open a 150 minutes blank audio clip, for debugging.
class audio_open_blank: public Command { struct audio_open_blank : public Command {
public:
CMD_NAME("audio/open/blank") CMD_NAME("audio/open/blank")
STR_MENU("Open 2h30 Blank Audio") STR_MENU("Open 2h30 Blank Audio")
STR_DISP("Open 2h30 Blank Audio") STR_DISP("Open 2h30 Blank Audio")
@ -105,8 +102,7 @@ public:
/// Open a 150 minutes noise-filled audio clip, for debugging. /// Open a 150 minutes noise-filled audio clip, for debugging.
class audio_open_noise: public Command { struct audio_open_noise : public Command {
public:
CMD_NAME("audio/open/noise") CMD_NAME("audio/open/noise")
STR_MENU("Open 2h30 Noise Audio") STR_MENU("Open 2h30 Noise Audio")
STR_DISP("Open 2h30 Noise Audio") STR_DISP("Open 2h30 Noise Audio")
@ -119,8 +115,7 @@ public:
/// Opens the audio from the current video file. /// Opens the audio from the current video file.
class audio_open_video: public Command { struct audio_open_video : public Command {
public:
CMD_NAME("audio/open/video") CMD_NAME("audio/open/video")
STR_MENU("Open Audio from &Video") STR_MENU("Open Audio from &Video")
STR_DISP("Open Audio from Video") STR_DISP("Open Audio from Video")
@ -133,8 +128,7 @@ public:
/// Display audio as a frequency-power spectrograph. /// Display audio as a frequency-power spectrograph.
class audio_view_spectrum: public Command { struct audio_view_spectrum : public Command {
public:
CMD_NAME("audio/view/spectrum") CMD_NAME("audio/view/spectrum")
STR_MENU("Spectrum Display") STR_MENU("Spectrum Display")
STR_DISP("Spectrum Display") STR_DISP("Spectrum Display")
@ -147,8 +141,7 @@ public:
/// Display audio as a linear amplitude graph. /// Display audio as a linear amplitude graph.
class audio_view_waveform: public Command { struct audio_view_waveform : public Command {
public:
CMD_NAME("audio/view/waveform") CMD_NAME("audio/view/waveform")
STR_MENU("Waveform Display") STR_MENU("Waveform Display")
STR_DISP("Waveform Display") STR_DISP("Waveform Display")

View file

@ -56,8 +56,7 @@ namespace cmd {
/// Open automation manager. /// Open automation manager.
class am_manager: public Command { struct am_manager : public Command {
public:
CMD_NAME("am/manager") CMD_NAME("am/manager")
STR_MENU("&Automation..") STR_MENU("&Automation..")
STR_DISP("Automation") STR_DISP("Automation")

View file

@ -57,8 +57,7 @@ namespace cmd {
/// Copy subtitles. /// Copy subtitles.
class edit_line_copy: public Command { struct edit_line_copy : public Command {
public:
CMD_NAME("edit/line/copy") CMD_NAME("edit/line/copy")
STR_MENU("Copy Lines") STR_MENU("Copy Lines")
STR_DISP("Copy Lines") STR_DISP("Copy Lines")
@ -75,8 +74,7 @@ public:
/// Cut subtitles. /// Cut subtitles.
class edit_line_cut: public Command { struct edit_line_cut: public Command {
public:
CMD_NAME("edit/line/cut") CMD_NAME("edit/line/cut")
STR_MENU("Cut Lines") STR_MENU("Cut Lines")
STR_DISP("Cut Lines") STR_DISP("Cut Lines")
@ -93,8 +91,7 @@ public:
/// Delete currently selected lines. /// Delete currently selected lines.
class edit_line_delete: public Command { struct edit_line_delete : public Command {
public:
CMD_NAME("edit/line/delete") CMD_NAME("edit/line/delete")
STR_MENU("Delete Lines") STR_MENU("Delete Lines")
STR_DISP("Delete Lines") STR_DISP("Delete Lines")
@ -107,8 +104,7 @@ public:
/// Duplicate the selected lines. /// Duplicate the selected lines.
class edit_line_duplicate: public Command { struct edit_line_duplicate : public Command {
public:
CMD_NAME("edit/line/duplicate") CMD_NAME("edit/line/duplicate")
STR_MENU("&Duplicate Lines") STR_MENU("&Duplicate Lines")
STR_DISP("Duplicate Lines") STR_DISP("Duplicate Lines")
@ -122,8 +118,7 @@ public:
/// Duplicate lines and shift by one frame. /// Duplicate lines and shift by one frame.
class edit_line_duplicate_shift: public Command { struct edit_line_duplicate_shift : public Command {
public:
CMD_NAME("edit/line/duplicate/shift") CMD_NAME("edit/line/duplicate/shift")
STR_MENU("&Duplicate and Shift by 1 Frame") STR_MENU("&Duplicate and Shift by 1 Frame")
STR_DISP("Duplicate and Shift by 1 Frame") STR_DISP("Duplicate and Shift by 1 Frame")
@ -137,8 +132,7 @@ public:
/// Joins selected lines in a single one, as karaoke. /// Joins selected lines in a single one, as karaoke.
class edit_line_join_as_karaoke: public Command { struct edit_line_join_as_karaoke : public Command {
public:
CMD_NAME("edit/line/join/as_karaoke") CMD_NAME("edit/line/join/as_karaoke")
STR_MENU("As &Karaoke") STR_MENU("As &Karaoke")
STR_DISP("As Karaoke") STR_DISP("As Karaoke")
@ -152,8 +146,7 @@ public:
/// Joins selected lines in a single one, concatenating text together. /// Joins selected lines in a single one, concatenating text together.
class edit_line_join_concatenate: public Command { struct edit_line_join_concatenate : public Command {
public:
CMD_NAME("edit/line/join/concatenate") CMD_NAME("edit/line/join/concatenate")
STR_MENU("&Concatenate") STR_MENU("&Concatenate")
STR_DISP("Concatenate") STR_DISP("Concatenate")
@ -167,8 +160,7 @@ public:
/// Joins selected lines in a single one, keeping text of first and discarding remaining. /// Joins selected lines in a single one, keeping text of first and discarding remaining.
class edit_line_join_keep_first: public Command { struct edit_line_join_keep_first : public Command {
public:
CMD_NAME("edit/line/join/keep_first") CMD_NAME("edit/line/join/keep_first")
STR_MENU("Keep &First") STR_MENU("Keep &First")
STR_DISP("Keep First") STR_DISP("Keep First")
@ -182,8 +174,7 @@ public:
/// Paste subtitles. /// Paste subtitles.
class edit_line_paste: public Command { struct edit_line_paste : public Command {
public:
CMD_NAME("edit/line/paste") CMD_NAME("edit/line/paste")
STR_MENU("Paste Lines") STR_MENU("Paste Lines")
STR_DISP("Paste Lines") STR_DISP("Paste Lines")
@ -200,8 +191,7 @@ public:
/// Paste subtitles over others. /// Paste subtitles over others.
class edit_line_paste_over: public Command { struct edit_line_paste_over : public Command {
public:
CMD_NAME("edit/line/paste/over") CMD_NAME("edit/line/paste/over")
STR_MENU("Paste Lines Over..") STR_MENU("Paste Lines Over..")
STR_DISP("Paste Lines Over") STR_DISP("Paste Lines Over")
@ -214,8 +204,7 @@ public:
/// Recombine subtitles when they have been split and merged. /// Recombine subtitles when they have been split and merged.
class edit_line_recombine: public Command { struct edit_line_recombine : public Command {
public:
CMD_NAME("edit/line/recombine") CMD_NAME("edit/line/recombine")
STR_MENU("Recombine Lines") STR_MENU("Recombine Lines")
STR_DISP("Recombine Lines") STR_DISP("Recombine Lines")
@ -228,8 +217,7 @@ public:
/// Uses karaoke timing to split line into multiple smaller lines. /// Uses karaoke timing to split line into multiple smaller lines.
class edit_line_split_by_karaoke: public Command { struct edit_line_split_by_karaoke : public Command {
public:
CMD_NAME("edit/line/split/by_karaoke") CMD_NAME("edit/line/split/by_karaoke")
STR_MENU("Split Lines (by karaoke)") STR_MENU("Split Lines (by karaoke)")
STR_DISP("Split Lines (by karaoke)") STR_DISP("Split Lines (by karaoke)")
@ -251,8 +239,7 @@ public:
/// Swaps the two selected lines. /// Swaps the two selected lines.
class edit_line_swap: public Command { struct edit_line_swap : public Command {
public:
CMD_NAME("edit/line/swap") CMD_NAME("edit/line/swap")
STR_MENU("Swap Lines") STR_MENU("Swap Lines")
STR_DISP("Swap Lines") STR_DISP("Swap Lines")
@ -266,8 +253,7 @@ public:
/// Redoes last action. /// Redoes last action.
class edit_redo: public Command { struct edit_redo : public Command {
public:
CMD_NAME("edit/redo") CMD_NAME("edit/redo")
STR_MENU("&Redo") STR_MENU("&Redo")
STR_DISP("Redo") STR_DISP("Redo")
@ -281,8 +267,7 @@ public:
/// Find and replace words in subtitles. /// Find and replace words in subtitles.
class edit_search_replace: public Command { struct edit_search_replace : public Command {
public:
CMD_NAME("edit/search_replace") CMD_NAME("edit/search_replace")
STR_MENU("Search and &Replace..") STR_MENU("Search and &Replace..")
STR_DISP("Search and Replace") STR_DISP("Search and Replace")
@ -296,8 +281,7 @@ public:
/// Undoes last action. /// Undoes last action.
class edit_undo: public Command { struct edit_undo : public Command {
public:
CMD_NAME("edit/undo") CMD_NAME("edit/undo")
STR_MENU("&Undo") STR_MENU("&Undo")
STR_DISP("Undo") STR_DISP("Undo")

View file

@ -55,8 +55,7 @@ namespace cmd {
/// Move to the next subtitle line. /// Move to the next subtitle line.
class grid_line_next: public Command { struct grid_line_next : public Command {
public:
CMD_NAME("grid/line/next") CMD_NAME("grid/line/next")
STR_MENU("Next Line") STR_MENU("Next Line")
STR_DISP("Next Line") STR_DISP("Next Line")
@ -69,8 +68,7 @@ public:
/// Move to the previous line. /// Move to the previous line.
class grid_line_prev: public Command { struct grid_line_prev : public Command {
public:
CMD_NAME("grid/line/prev") CMD_NAME("grid/line/prev")
STR_MENU("Previous Line") STR_MENU("Previous Line")
STR_DISP("Previous Line") STR_DISP("Previous Line")
@ -83,8 +81,7 @@ public:
/// Cycle through tag hiding modes. /// Cycle through tag hiding modes.
class grid_tag_cycle_hiding: public Command { struct grid_tag_cycle_hiding : public Command {
public:
CMD_NAME("grid/tag/cycle_hiding") CMD_NAME("grid/tag/cycle_hiding")
STR_MENU("Cycle Tag Hiding") STR_MENU("Cycle Tag Hiding")
STR_DISP("Cycle Tag Hiding") STR_DISP("Cycle Tag Hiding")
@ -113,8 +110,7 @@ public:
/// Hide override tags in the subtitle grid. /// Hide override tags in the subtitle grid.
class grid_tags_hide: public Command { struct grid_tags_hide : public Command {
public:
CMD_NAME("grid/tags/hide") CMD_NAME("grid/tags/hide")
STR_MENU("Hide Tags") STR_MENU("Hide Tags")
STR_DISP("Hide Tags") STR_DISP("Hide Tags")
@ -128,8 +124,7 @@ public:
/// Show full override tags in the subtitle grid. /// Show full override tags in the subtitle grid.
class grid_tags_show: public Command { struct grid_tags_show : public Command {
public:
CMD_NAME("grid/tags/show") CMD_NAME("grid/tags/show")
STR_MENU("Show Tags") STR_MENU("Show Tags")
STR_DISP("Show Tags") STR_DISP("Show Tags")
@ -143,8 +138,7 @@ public:
/// Replace override tags in the subtitle grid with a simplified placeholder. /// Replace override tags in the subtitle grid with a simplified placeholder.
class grid_tags_simplify: public Command { struct grid_tags_simplify : public Command {
public:
CMD_NAME("grid/tags/simplify") CMD_NAME("grid/tags/simplify")
STR_MENU("Simplify Tags") STR_MENU("Simplify Tags")
STR_DISP("Simplify Tags") STR_DISP("Simplify Tags")

View file

@ -57,8 +57,7 @@ namespace cmd {
/// Visit Aegisub's bug tracker. /// Visit Aegisub's bug tracker.
class help_bugs: public Command { struct help_bugs : public Command {
public:
CMD_NAME("help/bugs") CMD_NAME("help/bugs")
STR_MENU("&Bug Tracker..") STR_MENU("&Bug Tracker..")
STR_DISP("Bug Tracker") STR_DISP("Bug Tracker")
@ -80,8 +79,7 @@ public:
/// Help topics. /// Help topics.
class help_contents: public Command { struct help_contents : public Command {
public:
CMD_NAME("help/contents") CMD_NAME("help/contents")
STR_MENU("&Contents..") STR_MENU("&Contents..")
STR_DISP("Contents") STR_DISP("Contents")
@ -94,8 +92,7 @@ public:
/// Resource files. /// Resource files.
class help_files: public Command { struct help_files : public Command {
public:
CMD_NAME("help/files") CMD_NAME("help/files")
STR_MENU("&All Files") STR_MENU("&All Files")
STR_DISP("All Files") STR_DISP("All Files")
@ -113,8 +110,7 @@ public:
/// Visit Aegisub's forums. /// Visit Aegisub's forums.
class help_forums: public Command { struct help_forums : public Command {
public:
CMD_NAME("help/forums") CMD_NAME("help/forums")
STR_MENU("&Forums..") STR_MENU("&Forums..")
STR_DISP("Forums") STR_DISP("Forums")
@ -127,8 +123,7 @@ public:
/// Visit Aegisub's official IRC channel. /// Visit Aegisub's official IRC channel.
class help_irc: public Command { struct help_irc : public Command {
public:
CMD_NAME("help/irc") CMD_NAME("help/irc")
STR_MENU("&IRC Channel..") STR_MENU("&IRC Channel..")
STR_DISP("IRC Channel") STR_DISP("IRC Channel")
@ -141,8 +136,7 @@ public:
/// Visit Aegisub's official website. /// Visit Aegisub's official website.
class help_website: public Command { struct help_website : public Command {
public:
CMD_NAME("help/website") CMD_NAME("help/website")
STR_MENU("&Website..") STR_MENU("&Website..")
STR_DISP("Website") STR_DISP("Website")

View file

@ -55,8 +55,7 @@ namespace cmd {
/// Closes the currently open keyframes list. /// Closes the currently open keyframes list.
class keyframe_close: public Command { struct keyframe_close : public Command {
public:
CMD_NAME("keyframe/close") CMD_NAME("keyframe/close")
STR_MENU("Close Keyframes") STR_MENU("Close Keyframes")
STR_DISP("Close Keyframes") STR_DISP("Close Keyframes")
@ -69,8 +68,7 @@ public:
/// Opens a keyframe list file. /// Opens a keyframe list file.
class keyframe_open: public Command { struct keyframe_open : public Command {
public:
CMD_NAME("keyframe/open") CMD_NAME("keyframe/open")
STR_MENU("Open Keyframes..") STR_MENU("Open Keyframes..")
STR_DISP("Open Keyframes") STR_DISP("Open Keyframes")
@ -94,8 +92,7 @@ public:
/// Saves the current keyframe list. /// Saves the current keyframe list.
class keyframe_save: public Command { struct keyframe_save : public Command {
public:
CMD_NAME("keyframe/save") CMD_NAME("keyframe/save")
STR_MENU("Save Keyframes..") STR_MENU("Save Keyframes..")
STR_DISP("Save Keyframes") STR_DISP("Save Keyframes")

View file

@ -49,8 +49,7 @@ namespace cmd {
/// Audio manipulation. /// Audio manipulation.
class main_audio: public Command { struct main_audio : public Command {
public:
CMD_NAME("main/audio") CMD_NAME("main/audio")
STR_MENU("Audio") STR_MENU("Audio")
STR_DISP("Audio") STR_DISP("Audio")
@ -61,8 +60,7 @@ public:
}; };
/// Automation manipulation and scripts. /// Automation manipulation and scripts.
class main_automation: public Command { struct main_automation : public Command {
public:
CMD_NAME("main/automation") CMD_NAME("main/automation")
STR_MENU("Automation") STR_MENU("Automation")
STR_DISP("Automation") STR_DISP("Automation")
@ -76,8 +74,7 @@ public:
/// Editing operations. /// Editing operations.
class main_edit: public Command { struct main_edit : public Command {
public:
CMD_NAME("main/edit") CMD_NAME("main/edit")
STR_MENU("&Edit") STR_MENU("&Edit")
STR_DISP("Edit") STR_DISP("Edit")
@ -88,8 +85,7 @@ public:
}; };
/// Sort lines by column. /// Sort lines by column.
class main_edit_sort_lines: public Command { struct main_edit_sort_lines : public Command {
public:
CMD_NAME("main/edit/sort lines") CMD_NAME("main/edit/sort lines")
STR_MENU("Sort Lines") STR_MENU("Sort Lines")
STR_DISP("Sort Lines") STR_DISP("Sort Lines")
@ -101,8 +97,7 @@ public:
/// Operations on subtitles. /// Operations on subtitles.
class main_file: public Command { struct main_file : public Command {
public:
CMD_NAME("main/file") CMD_NAME("main/file")
STR_MENU("&File") STR_MENU("&File")
STR_DISP("File") STR_DISP("File")
@ -114,8 +109,7 @@ public:
/// Help options. /// Help options.
class main_help: public Command { struct main_help : public Command {
public:
CMD_NAME("main/help") CMD_NAME("main/help")
STR_MENU("Help") STR_MENU("Help")
STR_DISP("Help") STR_DISP("Help")
@ -127,8 +121,7 @@ public:
/// Subtitle manipulation. /// Subtitle manipulation.
class main_main_subtitle: public Command { struct main_main_subtitle : public Command {
public:
CMD_NAME("main/subtitle") CMD_NAME("main/subtitle")
STR_MENU("&Subtitle") STR_MENU("&Subtitle")
STR_DISP("Subtitle") STR_DISP("Subtitle")
@ -139,8 +132,7 @@ public:
}; };
/// Insert lines into currently active subtitle file. /// Insert lines into currently active subtitle file.
class main_subtitle_insert_lines: public Command { struct main_subtitle_insert_lines : public Command {
public:
CMD_NAME("main/subtitle/insert lines") CMD_NAME("main/subtitle/insert lines")
STR_MENU("&Insert Lines") STR_MENU("&Insert Lines")
STR_DISP("Insert Lines") STR_DISP("Insert Lines")
@ -152,8 +144,7 @@ public:
/// Sort lines by column. /// Sort lines by column.
class main_subtitle_sort_lines: public Command { struct main_subtitle_sort_lines : public Command {
public:
CMD_NAME("main/subtitle/sort lines") CMD_NAME("main/subtitle/sort lines")
STR_MENU("Sort Lines") STR_MENU("Sort Lines")
STR_DISP("Sort Lines") STR_DISP("Sort Lines")
@ -165,8 +156,7 @@ public:
/// Merge 2 or more lines together. /// Merge 2 or more lines together.
class main_subtitle_join_lines: public Command { struct main_subtitle_join_lines : public Command {
public:
CMD_NAME("main/subtitle/join lines") CMD_NAME("main/subtitle/join lines")
STR_MENU("Join Lines") STR_MENU("Join Lines")
STR_DISP("Join Lines") STR_DISP("Join Lines")
@ -178,8 +168,7 @@ public:
/// Time manipulation. /// Time manipulation.
class main_timing: public Command { struct main_timing : public Command {
public:
CMD_NAME("main/timing") CMD_NAME("main/timing")
STR_MENU("&Timing") STR_MENU("&Timing")
STR_DISP("Timing") STR_DISP("Timing")
@ -191,8 +180,7 @@ public:
/// Make time continous. /// Make time continous.
class main_timing_make_times_continous: public Command { struct main_timing_make_times_continous : public Command {
public:
CMD_NAME("main/timing/make times continous") CMD_NAME("main/timing/make times continous")
STR_MENU("Make Times Continous") STR_MENU("Make Times Continous")
STR_DISP("Make Times Continous") STR_DISP("Make Times Continous")
@ -204,8 +192,7 @@ public:
/// Video operations. /// Video operations.
class main_video: public Command { struct main_video : public Command {
public:
CMD_NAME("main/video") CMD_NAME("main/video")
STR_MENU("&Video") STR_MENU("&Video")
STR_DISP("Video") STR_DISP("Video")
@ -230,8 +217,7 @@ public Command { public:
/// Set zoom level. /// Set zoom level.
class main_video_set_zoom: public Command { struct main_video_set_zoom : public Command {
public:
CMD_NAME("main/video/set zoom") CMD_NAME("main/video/set zoom")
STR_MENU("Set Zoom") STR_MENU("Set Zoom")
STR_DISP("Set Zoom") STR_DISP("Set Zoom")
@ -243,8 +229,7 @@ public:
/// View options. /// View options.
class main_view: public Command { struct main_view : public Command {
public:
CMD_NAME("main/view") CMD_NAME("main/view")
STR_MENU("View") STR_MENU("View")
STR_DISP("View") STR_DISP("View")

View file

@ -54,8 +54,7 @@ namespace cmd {
/// Open recent audio. /// Open recent audio.
class recent_audio: public Command { struct recent_audio : public Command {
public:
CMD_NAME("recent/audio") CMD_NAME("recent/audio")
STR_MENU("Recent") STR_MENU("Recent")
STR_DISP("Recent") STR_DISP("Recent")
@ -68,8 +67,7 @@ public:
/// Recent keyframes. /// Recent keyframes.
class recent_keyframe: public Command { struct recent_keyframe : public Command {
public:
CMD_NAME("recent/keyframe") CMD_NAME("recent/keyframe")
STR_MENU("Recent") STR_MENU("Recent")
STR_DISP("Recent") STR_DISP("Recent")
@ -82,8 +80,7 @@ public:
/// Recently opened subtitles. /// Recently opened subtitles.
class recent_subtitle: public Command { struct recent_subtitle : public Command {
public:
CMD_NAME("recent/subtitle") CMD_NAME("recent/subtitle")
STR_MENU("Recent") STR_MENU("Recent")
STR_DISP("Recent") STR_DISP("Recent")
@ -97,8 +94,7 @@ public:
/// Recent timecodes. /// Recent timecodes.
class recent_timecode: public Command { struct recent_timecode : public Command {
public:
CMD_NAME("recent/timecode") CMD_NAME("recent/timecode")
STR_MENU("Recent") STR_MENU("Recent")
STR_DISP("Recent") STR_DISP("Recent")
@ -112,8 +108,7 @@ public:
/// Recently opened videos. /// Recently opened videos.
class recent_video: public Command { struct recent_video : public Command {
public:
CMD_NAME("recent/video") CMD_NAME("recent/video")
STR_MENU("Recent") STR_MENU("Recent")
STR_DISP("Recent") STR_DISP("Recent")

View file

@ -68,8 +68,7 @@ namespace cmd {
/// Open the attachment list. /// Open the attachment list.
class subtitle_attachment: public Command { struct subtitle_attachment : public Command {
public:
CMD_NAME("subtitle/attachment") CMD_NAME("subtitle/attachment")
STR_MENU("&Attachments..") STR_MENU("&Attachments..")
STR_DISP("Attachments") STR_DISP("Attachments")
@ -83,8 +82,7 @@ public:
/// Find words in subtitles. /// Find words in subtitles.
class subtitle_find: public Command { struct subtitle_find : public Command {
public:
CMD_NAME("subtitle/find") CMD_NAME("subtitle/find")
STR_MENU("&Find..") STR_MENU("&Find..")
STR_DISP("Find") STR_DISP("Find")
@ -98,8 +96,7 @@ public:
/// Find next match of last word. /// Find next match of last word.
class subtitle_find_next: public Command { struct subtitle_find_next : public Command {
public:
CMD_NAME("subtitle/find/next") CMD_NAME("subtitle/find/next")
STR_MENU("Find Next") STR_MENU("Find Next")
STR_DISP("Find Next") STR_DISP("Find Next")
@ -130,8 +127,7 @@ static void insert_subtitle_at_video(agi::Context *c, bool after) {
} }
/// Inserts a line after current. /// Inserts a line after current.
class subtitle_insert_after: public Command { struct subtitle_insert_after : public Command {
public:
CMD_NAME("subtitle/insert/after") CMD_NAME("subtitle/insert/after")
STR_MENU("&After Current") STR_MENU("&After Current")
STR_DISP("After Current") STR_DISP("After Current")
@ -165,8 +161,7 @@ public:
}; };
/// Inserts a line after current, starting at video time. /// Inserts a line after current, starting at video time.
class subtitle_insert_after_videotime: public Command { struct subtitle_insert_after_videotime : public Command {
public:
CMD_NAME("subtitle/insert/after/videotime") CMD_NAME("subtitle/insert/after/videotime")
STR_MENU("After Current, at Video Time") STR_MENU("After Current, at Video Time")
STR_DISP("After Current, at Video Time") STR_DISP("After Current, at Video Time")
@ -179,8 +174,7 @@ public:
/// Inserts a line before current. /// Inserts a line before current.
class subtitle_insert_before: public Command { struct subtitle_insert_before : public Command {
public:
CMD_NAME("subtitle/insert/before") CMD_NAME("subtitle/insert/before")
STR_MENU("&Before Current") STR_MENU("&Before Current")
STR_DISP("Before Current") STR_DISP("Before Current")
@ -217,8 +211,7 @@ public:
/// Inserts a line before current, starting at video time. /// Inserts a line before current, starting at video time.
class subtitle_insert_before_videotime: public Command { struct subtitle_insert_before_videotime : public Command {
public:
CMD_NAME("subtitle/insert/before/videotime") CMD_NAME("subtitle/insert/before/videotime")
STR_MENU("Before Current, at Video Time") STR_MENU("Before Current, at Video Time")
STR_DISP("Before Current, at Video Time") STR_DISP("Before Current, at Video Time")
@ -231,8 +224,7 @@ public:
/// New subtitles. /// New subtitles.
class subtitle_new: public Command { struct subtitle_new : public Command {
public:
CMD_NAME("subtitle/new") CMD_NAME("subtitle/new")
STR_MENU("&New Subtitles") STR_MENU("&New Subtitles")
STR_DISP("New Subtitles") STR_DISP("New Subtitles")
@ -245,8 +237,7 @@ public:
/// Opens a subtitles file. /// Opens a subtitles file.
class subtitle_open: public Command { struct subtitle_open : public Command {
public:
CMD_NAME("subtitle/open") CMD_NAME("subtitle/open")
STR_MENU("&Open Subtitles..") STR_MENU("&Open Subtitles..")
STR_DISP("Open Subtitles") STR_DISP("Open Subtitles")
@ -265,8 +256,7 @@ public:
/// Opens a subtitles file with a specific charset. /// Opens a subtitles file with a specific charset.
class subtitle_open_charset: public Command { struct subtitle_open_charset : public Command {
public:
CMD_NAME("subtitle/open/charset") CMD_NAME("subtitle/open/charset")
STR_MENU("&Open Subtitles with Charset..") STR_MENU("&Open Subtitles with Charset..")
STR_DISP("Open Subtitles with Charset") STR_DISP("Open Subtitles with Charset")
@ -290,8 +280,7 @@ public:
/// Opens the subtitles from the current video file. /// Opens the subtitles from the current video file.
class subtitle_open_video: public Command { struct subtitle_open_video : public Command {
public:
CMD_NAME("subtitle/open/video") CMD_NAME("subtitle/open/video")
STR_MENU("Open Subtitles from &Video") STR_MENU("Open Subtitles from &Video")
STR_DISP("Open Subtitles from Video") STR_DISP("Open Subtitles from Video")
@ -304,8 +293,7 @@ public:
/// Open script properties window. /// Open script properties window.
class subtitle_properties: public Command { struct subtitle_properties : public Command {
public:
CMD_NAME("subtitle/properties") CMD_NAME("subtitle/properties")
STR_MENU("&Properties..") STR_MENU("&Properties..")
STR_DISP("Properties") STR_DISP("Properties")
@ -320,8 +308,7 @@ public:
/// Saves subtitles. /// Saves subtitles.
class subtitle_save: public Command { struct subtitle_save : public Command {
public:
CMD_NAME("subtitle/save") CMD_NAME("subtitle/save")
STR_MENU("&Save Subtitles") STR_MENU("&Save Subtitles")
STR_DISP("Save Subtitles") STR_DISP("Save Subtitles")
@ -334,8 +321,7 @@ public:
/// Saves subtitles with another name. /// Saves subtitles with another name.
class subtitle_save_as: public Command { struct subtitle_save_as : public Command {
public:
CMD_NAME("subtitle/save/as") CMD_NAME("subtitle/save/as")
STR_MENU("Save Subtitles as..") STR_MENU("Save Subtitles as..")
STR_DISP("Save Subtitles as") STR_DISP("Save Subtitles as")
@ -348,8 +334,7 @@ public:
/// Selects all lines that are currently visible on video frame. /// Selects all lines that are currently visible on video frame.
class subtitle_select_visiblek: public Command { struct subtitle_select_visiblek : public Command {
public:
CMD_NAME("subtitle/select/visible") CMD_NAME("subtitle/select/visible")
STR_MENU("Select Visible") STR_MENU("Select Visible")
STR_DISP("Select Visible") STR_DISP("Select Visible")
@ -363,8 +348,7 @@ public:
/// Open spell checker. /// Open spell checker.
class subtitle_spellcheck: public Command { struct subtitle_spellcheck : public Command {
public:
CMD_NAME("subtitle/spellcheck") CMD_NAME("subtitle/spellcheck")
STR_MENU("Spe&ll Checker..") STR_MENU("Spe&ll Checker..")
STR_DISP("Spell Checker") STR_DISP("Spell Checker")
@ -379,8 +363,7 @@ public:
/// ///
class subtitle_tags_show: public Command { struct subtitle_tags_show : public Command {
public:
CMD_NAME("subtitle/tags/show") CMD_NAME("subtitle/tags/show")
STR_MENU("XXX: No idea") STR_MENU("XXX: No idea")
STR_DISP("XXX: No idea") STR_DISP("XXX: No idea")

View file

@ -57,8 +57,7 @@ namespace cmd {
/// Changes times of subs so end times begin on next's start time. /// Changes times of subs so end times begin on next's start time.
class time_continous_end: public Command { struct time_continous_end : public Command {
public:
CMD_NAME("time/continous/end") CMD_NAME("time/continous/end")
STR_MENU("Change &End") STR_MENU("Change &End")
STR_DISP("Change End") STR_DISP("Change End")
@ -72,8 +71,7 @@ public:
/// Changes times of subs so start times begin on previous's end time. /// Changes times of subs so start times begin on previous's end time.
class time_continous_start: public Command { struct time_continous_start : public Command {
public:
CMD_NAME("time/continous/start") CMD_NAME("time/continous/start")
STR_MENU("Change &Start") STR_MENU("Change &Start")
STR_DISP("Change Start") STR_DISP("Change Start")
@ -88,8 +86,7 @@ public:
/// Shift selection so first selected line starts at current frame. /// Shift selection so first selected line starts at current frame.
class time_frame_current: public Command { struct time_frame_current : public Command {
public:
CMD_NAME("time/frame/current") CMD_NAME("time/frame/current")
STR_MENU("Shift to Current Frame") STR_MENU("Shift to Current Frame")
STR_DISP("Shift to Current Frame") STR_DISP("Shift to Current Frame")
@ -123,8 +120,7 @@ public:
/// Shift subtitles by time or frames. /// Shift subtitles by time or frames.
class time_shift: public Command { struct time_shift : public Command {
public:
CMD_NAME("time/shift") CMD_NAME("time/shift")
STR_MENU("S&hift Times..") STR_MENU("S&hift Times..")
STR_DISP("Shift Times") STR_DISP("Shift Times")
@ -139,8 +135,7 @@ public:
/// Set end of selected subtitles to current video frame. /// Set end of selected subtitles to current video frame.
class time_snap_end_video: public Command { struct time_snap_end_video : public Command {
public:
CMD_NAME("time/snap/end_video") CMD_NAME("time/snap/end_video")
STR_MENU("Snap End to Video") STR_MENU("Snap End to Video")
STR_DISP("Snap End to Video") STR_DISP("Snap End to Video")
@ -153,8 +148,7 @@ public:
/// Shift selected subtitles so first selected starts at this frame. /// Shift selected subtitles so first selected starts at this frame.
class time_snap_frame: public Command { struct time_snap_frame : public Command {
public:
CMD_NAME("time/snap/frame") CMD_NAME("time/snap/frame")
STR_MENU("Shift Subtitles to Frame") STR_MENU("Shift Subtitles to Frame")
STR_DISP("Shift Subtitles to Frame") STR_DISP("Shift Subtitles to Frame")
@ -183,8 +177,7 @@ public:
/// Set start and end of subtitles to the keyframes around current video frame. /// Set start and end of subtitles to the keyframes around current video frame.
class time_snap_scene: public Command { struct time_snap_scene : public Command {
public:
CMD_NAME("time/snap/scene") CMD_NAME("time/snap/scene")
STR_MENU("Snap to Scene") STR_MENU("Snap to Scene")
STR_DISP("Snap to Scene") STR_DISP("Snap to Scene")
@ -239,8 +232,7 @@ public:
/// Set start of selected subtitles to current video frame. /// Set start of selected subtitles to current video frame.
class time_snap_start_video: public Command { struct time_snap_start_video : public Command {
public:
CMD_NAME("time/snap/start_video") CMD_NAME("time/snap/start_video")
STR_MENU("Snap Start to Video") STR_MENU("Snap Start to Video")
STR_DISP("Snap Start to Video") STR_DISP("Snap Start to Video")
@ -253,8 +245,7 @@ public:
/// Sort all subtitles by their end times. /// Sort all subtitles by their end times.
class time_sort_end: public Command { struct time_sort_end : public Command {
public:
CMD_NAME("time/sort/end") CMD_NAME("time/sort/end")
STR_MENU("&End Time") STR_MENU("&End Time")
STR_DISP("End Time") STR_DISP("End Time")
@ -268,8 +259,7 @@ public:
/// Sort all subtitles by their start times. /// Sort all subtitles by their start times.
class time_sort_start: public Command { struct time_sort_start : public Command {
public:
CMD_NAME("time/sort/start") CMD_NAME("time/sort/start")
STR_MENU("&Start Time") STR_MENU("&Start Time")
STR_DISP("Start Time") STR_DISP("Start Time")
@ -283,8 +273,7 @@ public:
/// Sort all subtitles by their style names. /// Sort all subtitles by their style names.
class time_sort_style: public Command { struct time_sort_style : public Command {
public:
CMD_NAME("time/sort/style") CMD_NAME("time/sort/style")
STR_MENU("St&yle Name") STR_MENU("St&yle Name")
STR_DISP("Style Name") STR_DISP("Style Name")

View file

@ -56,8 +56,7 @@ namespace cmd {
/// Closes the currently open timecodes file. /// Closes the currently open timecodes file.
class timecode_close: public Command { struct timecode_close : public Command {
public:
CMD_NAME("timecode/close") CMD_NAME("timecode/close")
STR_MENU("Close Timecodes File") STR_MENU("Close Timecodes File")
STR_DISP("Close Timecodes File") STR_DISP("Close Timecodes File")
@ -70,8 +69,7 @@ public:
/// Opens a VFR timecodes v1 or v2 file. /// Opens a VFR timecodes v1 or v2 file.
class timecode_open: public Command { struct timecode_open : public Command {
public:
CMD_NAME("timecode/open") CMD_NAME("timecode/open")
STR_MENU("Open Timecodes File..") STR_MENU("Open Timecodes File..")
STR_DISP("Open Timecodes File") STR_DISP("Open Timecodes File")
@ -90,8 +88,7 @@ public:
/// Saves a VFR timecodes v2 file. /// Saves a VFR timecodes v2 file.
class timecode_save: public Command { struct timecode_save : public Command {
public:
CMD_NAME("timecode/save") CMD_NAME("timecode/save")
STR_MENU("Save Timecodes File..") STR_MENU("Save Timecodes File..")
STR_DISP("Save Timecodes File") STR_DISP("Save Timecodes File")

View file

@ -64,8 +64,7 @@ namespace cmd {
/// Launch ASSDraw3 tool for vector drawing. /// Launch ASSDraw3 tool for vector drawing.
class tool_assdraw: public Command { struct tool_assdraw : public Command {
public:
CMD_NAME("tool/assdraw") CMD_NAME("tool/assdraw")
STR_MENU("ASSDraw3...") STR_MENU("ASSDraw3...")
STR_DISP("ASSDraw3") STR_DISP("ASSDraw3")
@ -77,8 +76,7 @@ public:
}; };
/// Saves a copy of subtitles with processing applied to it. /// Saves a copy of subtitles with processing applied to it.
class tool_export: public Command { struct tool_export : public Command {
public:
CMD_NAME("tool/export") CMD_NAME("tool/export")
STR_MENU("Export Subtitles..") STR_MENU("Export Subtitles..")
STR_DISP("Export Subtitles") STR_DISP("Export Subtitles")
@ -92,8 +90,7 @@ public:
/// Open fonts collector. /// Open fonts collector.
class tool_font_collector: public Command { struct tool_font_collector : public Command {
public:
CMD_NAME("tool/font_collector") CMD_NAME("tool/font_collector")
STR_MENU("&Fonts Collector..") STR_MENU("&Fonts Collector..")
STR_DISP("Fonts Collector") STR_DISP("Fonts Collector")
@ -107,8 +104,7 @@ public:
/// Selects lines based on defined criterea. /// Selects lines based on defined criterea.
class tool_line_select: public Command { struct tool_line_select : public Command {
public:
CMD_NAME("tool/line/select") CMD_NAME("tool/line/select")
STR_MENU("Select Lines..") STR_MENU("Select Lines..")
STR_DISP("Select Lines") STR_DISP("Select Lines")
@ -122,8 +118,7 @@ public:
/// Changes resolution and modifies subtitles to conform to change. /// Changes resolution and modifies subtitles to conform to change.
class tool_resampleres: public Command { struct tool_resampleres : public Command {
public:
CMD_NAME("tool/resampleres") CMD_NAME("tool/resampleres")
STR_MENU("Resample Resolution..") STR_MENU("Resample Resolution..")
STR_DISP("Resample Resolution") STR_DISP("Resample Resolution")
@ -137,8 +132,7 @@ public:
/// Open styling assistant. /// Open styling assistant.
class tool_style_assistant: public Command { struct tool_style_assistant : public Command {
public:
CMD_NAME("tool/style/assistant") CMD_NAME("tool/style/assistant")
STR_MENU("St&yling Assistant..") STR_MENU("St&yling Assistant..")
STR_DISP("Styling Assistant") STR_DISP("Styling Assistant")
@ -153,8 +147,7 @@ public:
/// Open styles manager. /// Open styles manager.
class tool_style_manager: public Command { struct tool_style_manager : public Command {
public:
CMD_NAME("tool/style/manager") CMD_NAME("tool/style/manager")
STR_MENU("&Styles Manager..") STR_MENU("&Styles Manager..")
STR_DISP("Styles Manager") STR_DISP("Styles Manager")
@ -168,8 +161,7 @@ public:
/// Open Kanji timer. /// Open Kanji timer.
class tool_time_kanji: public Command { struct tool_time_kanji : public Command {
public:
CMD_NAME("tool/time/kanji") CMD_NAME("tool/time/kanji")
STR_MENU("Kanji Timer..") STR_MENU("Kanji Timer..")
STR_DISP("Kanji Timer") STR_DISP("Kanji Timer")
@ -182,8 +174,7 @@ public:
/// Launch timing post-processor. /// Launch timing post-processor.
class tool_time_postprocess: public Command { struct tool_time_postprocess : public Command {
public:
CMD_NAME("tool/time/postprocess") CMD_NAME("tool/time/postprocess")
STR_MENU("Timing Post-Processor..") STR_MENU("Timing Post-Processor..")
STR_DISP("Timing Post-Processor") STR_DISP("Timing Post-Processor")
@ -196,8 +187,7 @@ public:
/// Open translation assistant. /// Open translation assistant.
class tool_translation_assistant: public Command { struct tool_translation_assistant : public Command {
public:
CMD_NAME("tool/translation_assistant") CMD_NAME("tool/translation_assistant")
STR_MENU("&Translation Assistant..") STR_MENU("&Translation Assistant..")
STR_DISP("Translation Assistant") STR_DISP("Translation Assistant")

View file

@ -64,8 +64,7 @@ namespace cmd {
/// Forces video to 2.35 aspect ratio. /// Forces video to 2.35 aspect ratio.
class video_aspect_cinematic: public Command { struct video_aspect_cinematic : public Command {
public:
CMD_NAME("video/aspect/cinematic") CMD_NAME("video/aspect/cinematic")
STR_MENU("&Cinematic (2.35)") STR_MENU("&Cinematic (2.35)")
STR_DISP("Cinematic (235)") STR_DISP("Cinematic (235)")
@ -80,8 +79,7 @@ public:
/// Forces video to a custom aspect ratio. /// Forces video to a custom aspect ratio.
class video_aspect_custom: public Command { struct video_aspect_custom : public Command {
public:
CMD_NAME("video/aspect/custom") CMD_NAME("video/aspect/custom")
STR_MENU("Custom..") STR_MENU("Custom..")
STR_DISP("Custom") STR_DISP("Custom")
@ -138,8 +136,7 @@ public:
/// Leave video on original aspect ratio. /// Leave video on original aspect ratio.
class video_aspect_default: public Command { struct video_aspect_default : public Command {
public:
CMD_NAME("video/aspect/default") CMD_NAME("video/aspect/default")
STR_MENU("&Default") STR_MENU("&Default")
STR_DISP("Default") STR_DISP("Default")
@ -155,8 +152,7 @@ public:
/// Forces video to 4:3 aspect ratio. /// Forces video to 4:3 aspect ratio.
class video_aspect_full: public Command { struct video_aspect_full : public Command {
public:
CMD_NAME("video/aspect/full") CMD_NAME("video/aspect/full")
STR_MENU("&Fullscreen (4:3)") STR_MENU("&Fullscreen (4:3)")
STR_DISP("Fullscreen (4:3)") STR_DISP("Fullscreen (4:3)")
@ -171,8 +167,7 @@ public:
/// Forces video to 16:9 aspect ratio. /// Forces video to 16:9 aspect ratio.
class video_aspect_wide: public Command { struct video_aspect_wide : public Command {
public:
CMD_NAME("video/aspect/wide") CMD_NAME("video/aspect/wide")
STR_MENU("&Widescreen (16:9)") STR_MENU("&Widescreen (16:9)")
STR_DISP("Widescreen (16:9)") STR_DISP("Widescreen (16:9)")
@ -187,8 +182,7 @@ public:
/// Closes the currently open video file. /// Closes the currently open video file.
class video_close: public Command { struct video_close : public Command {
public:
CMD_NAME("video/close") CMD_NAME("video/close")
STR_MENU("&Close Video") STR_MENU("&Close Video")
STR_DISP("Close Video") STR_DISP("Close Video")
@ -202,8 +196,7 @@ public:
/// Detach video, displaying it in a separate Window. /// Detach video, displaying it in a separate Window.
class video_detach: public Command { struct video_detach : public Command {
public:
CMD_NAME("video/detach") CMD_NAME("video/detach")
STR_MENU("Detach Video") STR_MENU("Detach Video")
STR_DISP("Detach Video") STR_DISP("Detach Video")
@ -216,8 +209,7 @@ public:
/// Shows video details. /// Shows video details.
class video_details: public Command { struct video_details : public Command {
public:
CMD_NAME("video/details") CMD_NAME("video/details")
STR_MENU("Show Video Details..") STR_MENU("Show Video Details..")
STR_DISP("Show Video Details") STR_DISP("Show Video Details")
@ -231,8 +223,7 @@ public:
/// ///
class video_focus_seek: public Command { struct video_focus_seek : public Command {
public:
CMD_NAME("video/focus_seek") CMD_NAME("video/focus_seek")
STR_MENU("XXX: no idea") STR_MENU("XXX: no idea")
STR_DISP("XXX: no idea") STR_DISP("XXX: no idea")
@ -252,8 +243,7 @@ public:
/// Seek to the next frame. /// Seek to the next frame.
class video_frame_next: public Command { struct video_frame_next : public Command {
public:
CMD_NAME("video/frame/next") CMD_NAME("video/frame/next")
STR_MENU("Next Frame") STR_MENU("Next Frame")
STR_DISP("Next Frame") STR_DISP("Next Frame")
@ -266,8 +256,7 @@ public:
/// Play video. /// Play video.
class video_frame_play: public Command { struct video_frame_play : public Command {
public:
CMD_NAME("video/frame/play") CMD_NAME("video/frame/play")
STR_MENU("Play") STR_MENU("Play")
STR_DISP("Play") STR_DISP("Play")
@ -280,8 +269,7 @@ public:
/// Seek to the previous frame. /// Seek to the previous frame.
class video_frame_prev: public Command { struct video_frame_prev : public Command {
public:
CMD_NAME("video/frame/prev") CMD_NAME("video/frame/prev")
STR_MENU("Previous Frame") STR_MENU("Previous Frame")
STR_DISP("Previous Frame") STR_DISP("Previous Frame")
@ -294,8 +282,7 @@ public:
/// Jump to frame or time. /// Jump to frame or time.
class video_jump: public Command { struct video_jump : public Command {
public:
CMD_NAME("video/jump") CMD_NAME("video/jump")
STR_MENU("&Jump to..") STR_MENU("&Jump to..")
STR_DISP("Jump to") STR_DISP("Jump to")
@ -312,8 +299,7 @@ public:
/// Jumps the video to the end frame of current subtitle. /// Jumps the video to the end frame of current subtitle.
class video_jump_end: public Command { struct video_jump_end : public Command {
public:
CMD_NAME("video/jump/end") CMD_NAME("video/jump/end")
STR_MENU("Jump Video to End") STR_MENU("Jump Video to End")
STR_DISP("Jump Video to End") STR_DISP("Jump Video to End")
@ -326,8 +312,7 @@ public:
/// Jumps the video to the start frame of current subtitle. /// Jumps the video to the start frame of current subtitle.
class video_jump_start: public Command { struct video_jump_start : public Command {
public:
CMD_NAME("video/jump/start") CMD_NAME("video/jump/start")
STR_MENU("Jump Video to Start") STR_MENU("Jump Video to Start")
STR_DISP("Jump Video to Start") STR_DISP("Jump Video to Start")
@ -340,8 +325,7 @@ public:
/// Opens a video file. /// Opens a video file.
class video_open: public Command { struct video_open : public Command {
public:
CMD_NAME("video/open") CMD_NAME("video/open")
STR_MENU("&Open Video..") STR_MENU("&Open Video..")
STR_DISP("Open Video") STR_DISP("Open Video")
@ -361,8 +345,7 @@ public:
/// Opens a video clip with solid colour. /// Opens a video clip with solid colour.
class video_open_dummy: public Command { struct video_open_dummy : public Command {
public:
CMD_NAME("video/open/dummy") CMD_NAME("video/open/dummy")
STR_MENU("Use Dummy Video..") STR_MENU("Use Dummy Video..")
STR_DISP("Use Dummy Video") STR_DISP("Use Dummy Video")
@ -378,8 +361,7 @@ public:
/// Show a mask over the video. /// Show a mask over the video.
class video_show_overscan: public Command { struct video_show_overscan : public Command {
public:
CMD_NAME("video/show_overscan") CMD_NAME("video/show_overscan")
STR_MENU("Show Overscan Mask") STR_MENU("Show Overscan Mask")
STR_DISP("Show Overscan Mask") STR_DISP("Show Overscan Mask")
@ -441,8 +423,7 @@ public:
/// Zoom video in. /// Zoom video in.
class video_zoom_in: public Command { struct video_zoom_in : public Command {
public:
CMD_NAME("video/zoom/in") CMD_NAME("video/zoom/in")
STR_MENU("Zoom In") STR_MENU("Zoom In")
STR_DISP("Zoom In") STR_DISP("Zoom In")
@ -455,8 +436,7 @@ public:
/// Zoom video out. /// Zoom video out.
class video_zoom_out: public Command { struct video_zoom_out : public Command {
public:
CMD_NAME("video/zoom/out") CMD_NAME("video/zoom/out")
STR_MENU("Zoom Out") STR_MENU("Zoom Out")
STR_DISP("Zoom Out") STR_DISP("Zoom Out")