mirror of https://github.com/odrling/Aegisub
Remove entirely superfluous doxygen comments in commands
This commit is contained in:
parent
51d516979b
commit
3a852f102d
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file app.cpp
|
|
||||||
/// @brief app/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include <wx/msgdlg.h>
|
#include <wx/msgdlg.h>
|
||||||
|
@ -61,10 +56,6 @@
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
|
|
||||||
/// @defgroup cmd-app Application related
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
/// Launch about dialogue.
|
|
||||||
struct app_about : public Command {
|
struct app_about : public Command {
|
||||||
CMD_NAME("app/about")
|
CMD_NAME("app/about")
|
||||||
STR_MENU("&About")
|
STR_MENU("&About")
|
||||||
|
@ -76,8 +67,6 @@ struct app_about : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Display audio and subtitles.
|
|
||||||
struct app_display_audio_subs : public Command {
|
struct app_display_audio_subs : public Command {
|
||||||
CMD_NAME("app/display/audio_subs")
|
CMD_NAME("app/display/audio_subs")
|
||||||
STR_MENU("&Audio+Subs View")
|
STR_MENU("&Audio+Subs View")
|
||||||
|
@ -98,8 +87,6 @@ struct app_display_audio_subs : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Display audio, video and subtitles.
|
|
||||||
struct app_display_full : public Command {
|
struct app_display_full : public Command {
|
||||||
CMD_NAME("app/display/full")
|
CMD_NAME("app/display/full")
|
||||||
STR_MENU("&Full view")
|
STR_MENU("&Full view")
|
||||||
|
@ -120,8 +107,6 @@ struct app_display_full : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Display subtitles only.
|
|
||||||
struct app_display_subs : public Command {
|
struct app_display_subs : public Command {
|
||||||
CMD_NAME("app/display/subs")
|
CMD_NAME("app/display/subs")
|
||||||
STR_MENU("S&ubs Only View")
|
STR_MENU("S&ubs Only View")
|
||||||
|
@ -138,8 +123,6 @@ struct app_display_subs : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Display video and subtitles only.
|
|
||||||
struct app_display_video_subs : public Command {
|
struct app_display_video_subs : public Command {
|
||||||
CMD_NAME("app/display/video_subs")
|
CMD_NAME("app/display/video_subs")
|
||||||
STR_MENU("&Video+Subs View")
|
STR_MENU("&Video+Subs View")
|
||||||
|
@ -160,8 +143,6 @@ struct app_display_video_subs : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Exit the application.
|
|
||||||
struct app_exit : public Command {
|
struct app_exit : public Command {
|
||||||
CMD_NAME("app/exit")
|
CMD_NAME("app/exit")
|
||||||
STR_MENU("E&xit")
|
STR_MENU("E&xit")
|
||||||
|
@ -173,8 +154,6 @@ struct app_exit : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Select Aegisub interface language
|
|
||||||
struct app_language : public Command {
|
struct app_language : public Command {
|
||||||
CMD_NAME("app/language")
|
CMD_NAME("app/language")
|
||||||
STR_MENU("&Language...")
|
STR_MENU("&Language...")
|
||||||
|
@ -199,7 +178,6 @@ struct app_language : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Event log.
|
|
||||||
struct app_log : public Command {
|
struct app_log : public Command {
|
||||||
CMD_NAME("app/log")
|
CMD_NAME("app/log")
|
||||||
STR_MENU("&Log window")
|
STR_MENU("&Log window")
|
||||||
|
@ -211,8 +189,6 @@ struct app_log : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Open a new application window.
|
|
||||||
struct app_new_window : public Command {
|
struct app_new_window : public Command {
|
||||||
CMD_NAME("app/new_window")
|
CMD_NAME("app/new_window")
|
||||||
STR_MENU("New &Window")
|
STR_MENU("New &Window")
|
||||||
|
@ -224,8 +200,6 @@ struct app_new_window : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Configure Aegisub.
|
|
||||||
struct app_options : public Command {
|
struct app_options : public Command {
|
||||||
CMD_NAME("app/options")
|
CMD_NAME("app/options")
|
||||||
STR_MENU("&Options...")
|
STR_MENU("&Options...")
|
||||||
|
@ -241,7 +215,6 @@ struct app_options : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle global override hotkeys (aka medusa mode).
|
|
||||||
struct app_toggle_global_hotkeys : public Command {
|
struct app_toggle_global_hotkeys : public Command {
|
||||||
CMD_NAME("app/toggle/global_hotkeys")
|
CMD_NAME("app/toggle/global_hotkeys")
|
||||||
STR_MENU("Toggle global hotkey overrides")
|
STR_MENU("Toggle global hotkey overrides")
|
||||||
|
@ -259,7 +232,6 @@ struct app_toggle_global_hotkeys : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle the main toolbar
|
|
||||||
struct app_toggle_toolbar : public Command {
|
struct app_toggle_toolbar : public Command {
|
||||||
CMD_NAME("app/toggle/toolbar")
|
CMD_NAME("app/toggle/toolbar")
|
||||||
STR_HELP("Toggle the main toolbar")
|
STR_HELP("Toggle the main toolbar")
|
||||||
|
@ -281,7 +253,6 @@ struct app_toggle_toolbar : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Check to see if there is a new version of Aegisub available.
|
|
||||||
struct app_updates : public Command {
|
struct app_updates : public Command {
|
||||||
CMD_NAME("app/updates")
|
CMD_NAME("app/updates")
|
||||||
STR_MENU("&Check for Updates...")
|
STR_MENU("&Check for Updates...")
|
||||||
|
@ -293,7 +264,6 @@ struct app_updates : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file audio.cpp
|
|
||||||
/// @brief audio/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -64,10 +59,6 @@ namespace {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @defgroup cmd-audio Audio commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
/// Closes the currently open audio file.
|
|
||||||
struct audio_close : public validate_audio_open {
|
struct audio_close : public validate_audio_open {
|
||||||
CMD_NAME("audio/close")
|
CMD_NAME("audio/close")
|
||||||
STR_MENU("&Close Audio")
|
STR_MENU("&Close Audio")
|
||||||
|
@ -79,8 +70,6 @@ struct audio_close : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Opens an audio file.
|
|
||||||
struct audio_open : public Command {
|
struct audio_open : public Command {
|
||||||
CMD_NAME("audio/open")
|
CMD_NAME("audio/open")
|
||||||
STR_MENU("&Open Audio File...")
|
STR_MENU("&Open Audio File...")
|
||||||
|
@ -104,8 +93,6 @@ struct audio_open : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Open a 150 minutes blank audio clip, for debugging.
|
|
||||||
struct audio_open_blank : public Command {
|
struct audio_open_blank : public Command {
|
||||||
CMD_NAME("audio/open/blank")
|
CMD_NAME("audio/open/blank")
|
||||||
STR_MENU("Open 2h30 Blank Audio")
|
STR_MENU("Open 2h30 Blank Audio")
|
||||||
|
@ -122,8 +109,6 @@ struct audio_open_blank : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Open a 150 minutes noise-filled audio clip, for debugging.
|
|
||||||
struct audio_open_noise : public Command {
|
struct audio_open_noise : public Command {
|
||||||
CMD_NAME("audio/open/noise")
|
CMD_NAME("audio/open/noise")
|
||||||
STR_MENU("Open 2h30 Noise Audio")
|
STR_MENU("Open 2h30 Noise Audio")
|
||||||
|
@ -140,8 +125,6 @@ struct audio_open_noise : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Opens the audio from the current video file.
|
|
||||||
struct audio_open_video : public Command {
|
struct audio_open_video : public Command {
|
||||||
CMD_NAME("audio/open/video")
|
CMD_NAME("audio/open/video")
|
||||||
STR_MENU("Open Audio from &Video")
|
STR_MENU("Open Audio from &Video")
|
||||||
|
@ -164,8 +147,6 @@ struct audio_open_video : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Display audio as a frequency-power spectrograph.
|
|
||||||
struct audio_view_spectrum : public Command {
|
struct audio_view_spectrum : public Command {
|
||||||
CMD_NAME("audio/view/spectrum")
|
CMD_NAME("audio/view/spectrum")
|
||||||
STR_MENU("&Spectrum Display")
|
STR_MENU("&Spectrum Display")
|
||||||
|
@ -182,8 +163,6 @@ struct audio_view_spectrum : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Display audio as a linear amplitude graph.
|
|
||||||
struct audio_view_waveform : public Command {
|
struct audio_view_waveform : public Command {
|
||||||
CMD_NAME("audio/view/waveform")
|
CMD_NAME("audio/view/waveform")
|
||||||
STR_MENU("&Waveform Display")
|
STR_MENU("&Waveform Display")
|
||||||
|
@ -200,7 +179,6 @@ struct audio_view_waveform : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Save the audio for the selected lines.
|
|
||||||
struct audio_save_clip : public Command {
|
struct audio_save_clip : public Command {
|
||||||
CMD_NAME("audio/save/clip")
|
CMD_NAME("audio/save/clip")
|
||||||
STR_MENU("Create audio clip")
|
STR_MENU("Create audio clip")
|
||||||
|
@ -228,7 +206,6 @@ struct audio_save_clip : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play the current audio selection
|
|
||||||
struct audio_play_current_selection : public validate_audio_open {
|
struct audio_play_current_selection : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/current")
|
CMD_NAME("audio/play/current")
|
||||||
STR_MENU("Play current audio selection")
|
STR_MENU("Play current audio selection")
|
||||||
|
@ -241,7 +218,6 @@ struct audio_play_current_selection : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play the current line
|
|
||||||
struct audio_play_current_line : public validate_audio_open {
|
struct audio_play_current_line : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/line")
|
CMD_NAME("audio/play/line")
|
||||||
STR_MENU("Play current line")
|
STR_MENU("Play current line")
|
||||||
|
@ -256,7 +232,6 @@ struct audio_play_current_line : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play the current audio selection
|
|
||||||
struct audio_play_selection : public validate_audio_open {
|
struct audio_play_selection : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/selection")
|
CMD_NAME("audio/play/selection")
|
||||||
STR_MENU("Play audio selection")
|
STR_MENU("Play audio selection")
|
||||||
|
@ -269,7 +244,6 @@ struct audio_play_selection : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play the current audio selection or stop audio playback
|
|
||||||
struct audio_play_toggle : public validate_audio_open {
|
struct audio_play_toggle : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/toggle")
|
CMD_NAME("audio/play/toggle")
|
||||||
STR_MENU("Play audio selection or stop")
|
STR_MENU("Play audio selection or stop")
|
||||||
|
@ -286,7 +260,6 @@ struct audio_play_toggle : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Stop playing audio
|
|
||||||
struct audio_stop : public Command {
|
struct audio_stop : public Command {
|
||||||
CMD_NAME("audio/stop")
|
CMD_NAME("audio/stop")
|
||||||
STR_MENU("Stop playing")
|
STR_MENU("Stop playing")
|
||||||
|
@ -304,7 +277,6 @@ struct audio_stop : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play 500 ms before the selected audio range
|
|
||||||
struct audio_play_before : public validate_audio_open {
|
struct audio_play_before : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/selection/before")
|
CMD_NAME("audio/play/selection/before")
|
||||||
STR_MENU("Play 500 ms before selection")
|
STR_MENU("Play 500 ms before selection")
|
||||||
|
@ -318,7 +290,6 @@ struct audio_play_before : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play 500 ms after the selected audio range
|
|
||||||
struct audio_play_after : public validate_audio_open {
|
struct audio_play_after : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/selection/after")
|
CMD_NAME("audio/play/selection/after")
|
||||||
STR_MENU("Play 500 ms after selection")
|
STR_MENU("Play 500 ms after selection")
|
||||||
|
@ -332,7 +303,6 @@ struct audio_play_after : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play the last 500 ms of the audio range
|
|
||||||
struct audio_play_end : public validate_audio_open {
|
struct audio_play_end : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/selection/end")
|
CMD_NAME("audio/play/selection/end")
|
||||||
STR_MENU("Play last 500 ms of selection")
|
STR_MENU("Play last 500 ms of selection")
|
||||||
|
@ -346,7 +316,6 @@ struct audio_play_end : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play the first 500 ms of the audio range
|
|
||||||
struct audio_play_begin : public validate_audio_open {
|
struct audio_play_begin : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/selection/begin")
|
CMD_NAME("audio/play/selection/begin")
|
||||||
STR_MENU("Play first 500 ms of selection")
|
STR_MENU("Play first 500 ms of selection")
|
||||||
|
@ -362,7 +331,6 @@ struct audio_play_begin : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play from the beginning of the audio range to the end of the file
|
|
||||||
struct audio_play_to_end : public validate_audio_open {
|
struct audio_play_to_end : public validate_audio_open {
|
||||||
CMD_NAME("audio/play/to_end")
|
CMD_NAME("audio/play/to_end")
|
||||||
STR_MENU("Play from selection start to end of file")
|
STR_MENU("Play from selection start to end of file")
|
||||||
|
@ -375,8 +343,6 @@ struct audio_play_to_end : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit any pending audio timing changes
|
|
||||||
/// @todo maybe move to time?
|
|
||||||
struct audio_commit : public validate_audio_open {
|
struct audio_commit : public validate_audio_open {
|
||||||
CMD_NAME("audio/commit")
|
CMD_NAME("audio/commit")
|
||||||
STR_MENU("Commit")
|
STR_MENU("Commit")
|
||||||
|
@ -393,8 +359,6 @@ struct audio_commit : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit any pending audio timing changes
|
|
||||||
/// @todo maybe move to time?
|
|
||||||
struct audio_commit_default : public validate_audio_open {
|
struct audio_commit_default : public validate_audio_open {
|
||||||
CMD_NAME("audio/commit/default")
|
CMD_NAME("audio/commit/default")
|
||||||
STR_MENU("Commit and use default timing for next line")
|
STR_MENU("Commit and use default timing for next line")
|
||||||
|
@ -410,8 +374,6 @@ struct audio_commit_default : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit any pending audio timing changes and move to the next line
|
|
||||||
/// @todo maybe move to time?
|
|
||||||
struct audio_commit_next : public validate_audio_open {
|
struct audio_commit_next : public validate_audio_open {
|
||||||
CMD_NAME("audio/commit/next")
|
CMD_NAME("audio/commit/next")
|
||||||
STR_MENU("Commit and move to next line")
|
STR_MENU("Commit and move to next line")
|
||||||
|
@ -427,8 +389,6 @@ struct audio_commit_next : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit any pending audio timing changes and stay on the current line
|
|
||||||
/// @todo maybe move to time?
|
|
||||||
struct audio_commit_stay : public validate_audio_open {
|
struct audio_commit_stay : public validate_audio_open {
|
||||||
CMD_NAME("audio/commit/stay")
|
CMD_NAME("audio/commit/stay")
|
||||||
STR_MENU("Commit and stay on current line")
|
STR_MENU("Commit and stay on current line")
|
||||||
|
@ -441,7 +401,6 @@ struct audio_commit_stay : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Scroll the audio display to the current selection
|
|
||||||
struct audio_go_to : public validate_audio_open {
|
struct audio_go_to : public validate_audio_open {
|
||||||
CMD_NAME("audio/go_to")
|
CMD_NAME("audio/go_to")
|
||||||
STR_MENU("Go to selection")
|
STR_MENU("Go to selection")
|
||||||
|
@ -453,7 +412,6 @@ struct audio_go_to : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Scroll the audio display left
|
|
||||||
struct audio_scroll_left : public validate_audio_open {
|
struct audio_scroll_left : public validate_audio_open {
|
||||||
CMD_NAME("audio/scroll/left")
|
CMD_NAME("audio/scroll/left")
|
||||||
STR_MENU("Scroll left")
|
STR_MENU("Scroll left")
|
||||||
|
@ -465,8 +423,6 @@ struct audio_scroll_left : public validate_audio_open {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Scroll the audio display right
|
|
||||||
struct audio_scroll_right : public validate_audio_open {
|
struct audio_scroll_right : public validate_audio_open {
|
||||||
CMD_NAME("audio/scroll/right")
|
CMD_NAME("audio/scroll/right")
|
||||||
STR_MENU("Scroll right")
|
STR_MENU("Scroll right")
|
||||||
|
@ -482,7 +438,6 @@ static inline void toggle(const char *opt) {
|
||||||
OPT_SET(opt)->SetBool(!OPT_GET(opt)->GetBool());
|
OPT_SET(opt)->SetBool(!OPT_GET(opt)->GetBool());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Toggle autoscrolling the audio display to the selected line when switch lines
|
|
||||||
struct audio_autoscroll : public Command {
|
struct audio_autoscroll : public Command {
|
||||||
CMD_NAME("audio/opt/autoscroll")
|
CMD_NAME("audio/opt/autoscroll")
|
||||||
STR_MENU("Auto scroll audio display to selected line")
|
STR_MENU("Auto scroll audio display to selected line")
|
||||||
|
@ -499,7 +454,6 @@ struct audio_autoscroll : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle automatically committing changes made in the audio display
|
|
||||||
struct audio_autocommit : public Command {
|
struct audio_autocommit : public Command {
|
||||||
CMD_NAME("audio/opt/autocommit")
|
CMD_NAME("audio/opt/autocommit")
|
||||||
STR_MENU("Automatically commit all changes")
|
STR_MENU("Automatically commit all changes")
|
||||||
|
@ -516,7 +470,6 @@ struct audio_autocommit : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle automatically advancing to the next line after a commit
|
|
||||||
struct audio_autonext : public Command {
|
struct audio_autonext : public Command {
|
||||||
CMD_NAME("audio/opt/autonext")
|
CMD_NAME("audio/opt/autonext")
|
||||||
STR_MENU("Auto go to next line on commit")
|
STR_MENU("Auto go to next line on commit")
|
||||||
|
@ -533,7 +486,6 @@ struct audio_autonext : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle spectrum analyzer mode
|
|
||||||
struct audio_toggle_spectrum : public Command {
|
struct audio_toggle_spectrum : public Command {
|
||||||
CMD_NAME("audio/opt/spectrum")
|
CMD_NAME("audio/opt/spectrum")
|
||||||
STR_MENU("Spectrum analyzer mode")
|
STR_MENU("Spectrum analyzer mode")
|
||||||
|
@ -550,7 +502,6 @@ struct audio_toggle_spectrum : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle linked vertical zoom and volume
|
|
||||||
struct audio_vertical_link : public Command {
|
struct audio_vertical_link : public Command {
|
||||||
CMD_NAME("audio/opt/vertical_link")
|
CMD_NAME("audio/opt/vertical_link")
|
||||||
STR_MENU("Link vertical zoom and volume sliders")
|
STR_MENU("Link vertical zoom and volume sliders")
|
||||||
|
@ -567,7 +518,6 @@ struct audio_vertical_link : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle karaoke mode
|
|
||||||
struct audio_karaoke : public Command {
|
struct audio_karaoke : public Command {
|
||||||
CMD_NAME("audio/karaoke")
|
CMD_NAME("audio/karaoke")
|
||||||
STR_MENU("Toggle karaoke mode")
|
STR_MENU("Toggle karaoke mode")
|
||||||
|
@ -583,8 +533,6 @@ struct audio_karaoke : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
|
|
|
@ -29,14 +29,8 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file automation.cpp
|
|
||||||
/// @brief am/ (automation) commands
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include "../auto4_base.h"
|
#include "../auto4_base.h"
|
||||||
|
@ -53,8 +47,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-am Automation commands
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
struct reload_all : public Command {
|
struct reload_all : public Command {
|
||||||
CMD_NAME("am/reload")
|
CMD_NAME("am/reload")
|
||||||
|
@ -110,7 +102,6 @@ struct meta : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
|
|
|
@ -12,10 +12,6 @@
|
||||||
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
/// @file command.cpp
|
|
||||||
/// @brief Command system base file.
|
|
||||||
/// @ingroup command
|
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file edit.cpp
|
|
||||||
/// @brief edit/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -76,8 +71,6 @@
|
||||||
namespace {
|
namespace {
|
||||||
using namespace boost::adaptors;
|
using namespace boost::adaptors;
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-edit Editing commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
struct validate_sel_nonempty : public Command {
|
struct validate_sel_nonempty : public Command {
|
||||||
CMD_TYPE(COMMAND_VALIDATE)
|
CMD_TYPE(COMMAND_VALIDATE)
|
||||||
|
@ -165,7 +158,6 @@ T get_value(boost::ptr_vector<AssDialogueBlock> const& blocks, int blockn, T ini
|
||||||
return initial;
|
return initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the block index in the text of the position
|
|
||||||
int block_at_pos(std::string const& text, int pos) {
|
int block_at_pos(std::string const& text, int pos) {
|
||||||
int n = 0;
|
int n = 0;
|
||||||
int max = text.size() - 1;
|
int max = text.size() - 1;
|
||||||
|
@ -446,7 +438,6 @@ struct edit_font : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Find and replace words in subtitles.
|
|
||||||
struct edit_find_replace : public Command {
|
struct edit_find_replace : public Command {
|
||||||
CMD_NAME("edit/find_replace")
|
CMD_NAME("edit/find_replace")
|
||||||
STR_MENU("Find and R&eplace...")
|
STR_MENU("Find and R&eplace...")
|
||||||
|
@ -510,7 +501,6 @@ static void delete_lines(agi::Context *c, wxString const& commit_message) {
|
||||||
c->selectionController->SetSelectionAndActive(sel, new_active);
|
c->selectionController->SetSelectionAndActive(sel, new_active);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Copy subtitles.
|
|
||||||
struct edit_line_copy : public validate_sel_nonempty {
|
struct edit_line_copy : public validate_sel_nonempty {
|
||||||
CMD_NAME("edit/line/copy")
|
CMD_NAME("edit/line/copy")
|
||||||
STR_MENU("&Copy Lines")
|
STR_MENU("&Copy Lines")
|
||||||
|
@ -533,7 +523,6 @@ struct edit_line_copy : public validate_sel_nonempty {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Cut subtitles.
|
|
||||||
struct edit_line_cut: public validate_sel_nonempty {
|
struct edit_line_cut: public validate_sel_nonempty {
|
||||||
CMD_NAME("edit/line/cut")
|
CMD_NAME("edit/line/cut")
|
||||||
STR_MENU("Cu&t Lines")
|
STR_MENU("Cu&t Lines")
|
||||||
|
@ -550,7 +539,6 @@ struct edit_line_cut: public validate_sel_nonempty {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Delete currently selected lines.
|
|
||||||
struct edit_line_delete : public validate_sel_nonempty {
|
struct edit_line_delete : public validate_sel_nonempty {
|
||||||
CMD_NAME("edit/line/delete")
|
CMD_NAME("edit/line/delete")
|
||||||
STR_MENU("De&lete Lines")
|
STR_MENU("De&lete Lines")
|
||||||
|
@ -611,7 +599,6 @@ static void duplicate_lines(agi::Context *c, Func&& shift) {
|
||||||
c->selectionController->SetSelectionAndActive(new_sel, new_active);
|
c->selectionController->SetSelectionAndActive(new_sel, new_active);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Duplicate the selected lines.
|
|
||||||
struct edit_line_duplicate : public validate_sel_nonempty {
|
struct edit_line_duplicate : public validate_sel_nonempty {
|
||||||
CMD_NAME("edit/line/duplicate")
|
CMD_NAME("edit/line/duplicate")
|
||||||
STR_MENU("&Duplicate Lines")
|
STR_MENU("&Duplicate Lines")
|
||||||
|
@ -623,7 +610,6 @@ struct edit_line_duplicate : public validate_sel_nonempty {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Duplicate lines and shift by one frame.
|
|
||||||
struct edit_line_duplicate_shift : public Command {
|
struct edit_line_duplicate_shift : public Command {
|
||||||
CMD_NAME("edit/line/duplicate/shift")
|
CMD_NAME("edit/line/duplicate/shift")
|
||||||
STR_MENU("D&uplicate and Shift by 1 Frame")
|
STR_MENU("D&uplicate and Shift by 1 Frame")
|
||||||
|
@ -698,7 +684,6 @@ static void combine_concat(AssDialogue *first, AssDialogue *second) {
|
||||||
|
|
||||||
static void combine_drop(AssDialogue *, AssDialogue *) { }
|
static void combine_drop(AssDialogue *, AssDialogue *) { }
|
||||||
|
|
||||||
/// Joins selected lines in a single one, as karaoke.
|
|
||||||
struct edit_line_join_as_karaoke : public validate_sel_multiple {
|
struct edit_line_join_as_karaoke : public validate_sel_multiple {
|
||||||
CMD_NAME("edit/line/join/as_karaoke")
|
CMD_NAME("edit/line/join/as_karaoke")
|
||||||
STR_MENU("As &Karaoke")
|
STR_MENU("As &Karaoke")
|
||||||
|
@ -710,8 +695,6 @@ struct edit_line_join_as_karaoke : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Joins selected lines in a single one, concatenating text together.
|
|
||||||
struct edit_line_join_concatenate : public validate_sel_multiple {
|
struct edit_line_join_concatenate : public validate_sel_multiple {
|
||||||
CMD_NAME("edit/line/join/concatenate")
|
CMD_NAME("edit/line/join/concatenate")
|
||||||
STR_MENU("&Concatenate")
|
STR_MENU("&Concatenate")
|
||||||
|
@ -723,8 +706,6 @@ struct edit_line_join_concatenate : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Joins selected lines in a single one, keeping text of first and discarding remaining.
|
|
||||||
struct edit_line_join_keep_first : public validate_sel_multiple {
|
struct edit_line_join_keep_first : public validate_sel_multiple {
|
||||||
CMD_NAME("edit/line/join/keep_first")
|
CMD_NAME("edit/line/join/keep_first")
|
||||||
STR_MENU("Keep &First")
|
STR_MENU("Keep &First")
|
||||||
|
@ -767,7 +748,6 @@ static bool try_paste_lines(agi::Context *c) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Paste subtitles.
|
|
||||||
struct edit_line_paste : public Command {
|
struct edit_line_paste : public Command {
|
||||||
CMD_NAME("edit/line/paste")
|
CMD_NAME("edit/line/paste")
|
||||||
STR_MENU("&Paste Lines")
|
STR_MENU("&Paste Lines")
|
||||||
|
@ -799,7 +779,6 @@ struct edit_line_paste : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Paste subtitles over others.
|
|
||||||
struct edit_line_paste_over : public Command {
|
struct edit_line_paste_over : public Command {
|
||||||
CMD_NAME("edit/line/paste/over")
|
CMD_NAME("edit/line/paste/over")
|
||||||
STR_MENU("Paste Lines &Over...")
|
STR_MENU("Paste Lines &Over...")
|
||||||
|
@ -892,7 +871,6 @@ bool check_end(AssDialogue *d1, AssDialogue *d2) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Recombine subtitles when they have been split and merged.
|
|
||||||
struct edit_line_recombine : public validate_sel_multiple {
|
struct edit_line_recombine : public validate_sel_multiple {
|
||||||
CMD_NAME("edit/line/recombine")
|
CMD_NAME("edit/line/recombine")
|
||||||
STR_MENU("Recom&bine Lines")
|
STR_MENU("Recom&bine Lines")
|
||||||
|
@ -968,8 +946,6 @@ struct edit_line_recombine : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Uses karaoke timing to split line into multiple smaller lines.
|
|
||||||
struct edit_line_split_by_karaoke : public validate_sel_nonempty {
|
struct edit_line_split_by_karaoke : public validate_sel_nonempty {
|
||||||
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)")
|
||||||
|
@ -1022,7 +998,6 @@ struct edit_line_split_preserve : public validate_sel_nonempty {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Redoes last action.
|
|
||||||
struct edit_redo : public Command {
|
struct edit_redo : public Command {
|
||||||
CMD_NAME("edit/redo")
|
CMD_NAME("edit/redo")
|
||||||
STR_HELP("Redo last undone action")
|
STR_HELP("Redo last undone action")
|
||||||
|
@ -1048,7 +1023,6 @@ struct edit_redo : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Undoes last action.
|
|
||||||
struct edit_undo : public Command {
|
struct edit_undo : public Command {
|
||||||
CMD_NAME("edit/undo")
|
CMD_NAME("edit/undo")
|
||||||
STR_HELP("Undo last action")
|
STR_HELP("Undo last action")
|
||||||
|
@ -1135,7 +1109,6 @@ struct edit_insert_original : public Command {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_edit() {
|
void init_edit() {
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file grid.cpp
|
|
||||||
/// @brief grid/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -51,10 +46,7 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-grid Subtitle grid commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
/// Move to the next subtitle line.
|
|
||||||
struct grid_line_next : public Command {
|
struct grid_line_next : public Command {
|
||||||
CMD_NAME("grid/line/next")
|
CMD_NAME("grid/line/next")
|
||||||
STR_MENU("Next Line")
|
STR_MENU("Next Line")
|
||||||
|
@ -66,7 +58,6 @@ struct grid_line_next : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Move to the next subtitle line, creating it if needed
|
|
||||||
struct grid_line_next_create : public Command {
|
struct grid_line_next_create : public Command {
|
||||||
CMD_NAME("grid/line/next/create")
|
CMD_NAME("grid/line/next/create")
|
||||||
STR_MENU("Next Line")
|
STR_MENU("Next Line")
|
||||||
|
@ -94,7 +85,6 @@ struct grid_line_next_create : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Move to the previous line.
|
|
||||||
struct grid_line_prev : public Command {
|
struct grid_line_prev : public Command {
|
||||||
CMD_NAME("grid/line/prev")
|
CMD_NAME("grid/line/prev")
|
||||||
STR_MENU("Previous Line")
|
STR_MENU("Previous Line")
|
||||||
|
@ -106,7 +96,6 @@ struct grid_line_prev : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all subtitles by their actor names
|
|
||||||
struct grid_sort_actor : public Command {
|
struct grid_sort_actor : public Command {
|
||||||
CMD_NAME("grid/sort/actor")
|
CMD_NAME("grid/sort/actor")
|
||||||
STR_MENU("&Actor Name")
|
STR_MENU("&Actor Name")
|
||||||
|
@ -127,7 +116,6 @@ struct validate_sel_multiple : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all selected subtitles by their actor names
|
|
||||||
struct grid_sort_actor_selected : public validate_sel_multiple {
|
struct grid_sort_actor_selected : public validate_sel_multiple {
|
||||||
CMD_NAME("grid/sort/actor/selected")
|
CMD_NAME("grid/sort/actor/selected")
|
||||||
STR_MENU("&Actor Name")
|
STR_MENU("&Actor Name")
|
||||||
|
@ -140,7 +128,6 @@ struct grid_sort_actor_selected : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all subtitles by their effects
|
|
||||||
struct grid_sort_effect : public Command {
|
struct grid_sort_effect : public Command {
|
||||||
CMD_NAME("grid/sort/effect")
|
CMD_NAME("grid/sort/effect")
|
||||||
STR_MENU("&Effect")
|
STR_MENU("&Effect")
|
||||||
|
@ -153,7 +140,6 @@ struct grid_sort_effect : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all selected subtitles by their effects
|
|
||||||
struct grid_sort_effect_selected : public validate_sel_multiple {
|
struct grid_sort_effect_selected : public validate_sel_multiple {
|
||||||
CMD_NAME("grid/sort/effect/selected")
|
CMD_NAME("grid/sort/effect/selected")
|
||||||
STR_MENU("&Effect")
|
STR_MENU("&Effect")
|
||||||
|
@ -166,7 +152,6 @@ struct grid_sort_effect_selected : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all subtitles by their end times.
|
|
||||||
struct grid_sort_end : public Command {
|
struct grid_sort_end : public Command {
|
||||||
CMD_NAME("grid/sort/end")
|
CMD_NAME("grid/sort/end")
|
||||||
STR_MENU("&End Time")
|
STR_MENU("&End Time")
|
||||||
|
@ -179,7 +164,6 @@ struct grid_sort_end : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all selected subtitles by their end times.
|
|
||||||
struct grid_sort_end_selected : public validate_sel_multiple {
|
struct grid_sort_end_selected : public validate_sel_multiple {
|
||||||
CMD_NAME("grid/sort/end/selected")
|
CMD_NAME("grid/sort/end/selected")
|
||||||
STR_MENU("&End Time")
|
STR_MENU("&End Time")
|
||||||
|
@ -192,7 +176,6 @@ struct grid_sort_end_selected : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all subtitles by their layer number.
|
|
||||||
struct grid_sort_layer : public Command {
|
struct grid_sort_layer : public Command {
|
||||||
CMD_NAME("grid/sort/layer")
|
CMD_NAME("grid/sort/layer")
|
||||||
STR_MENU("&Layer")
|
STR_MENU("&Layer")
|
||||||
|
@ -205,7 +188,6 @@ struct grid_sort_layer : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all selected subtitles by their layer number.
|
|
||||||
struct grid_sort_layer_selected : public validate_sel_multiple {
|
struct grid_sort_layer_selected : public validate_sel_multiple {
|
||||||
CMD_NAME("grid/sort/layer/selected")
|
CMD_NAME("grid/sort/layer/selected")
|
||||||
STR_MENU("&Layer")
|
STR_MENU("&Layer")
|
||||||
|
@ -218,7 +200,6 @@ struct grid_sort_layer_selected : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all subtitles by their start times.
|
|
||||||
struct grid_sort_start : public Command {
|
struct grid_sort_start : public Command {
|
||||||
CMD_NAME("grid/sort/start")
|
CMD_NAME("grid/sort/start")
|
||||||
STR_MENU("&Start Time")
|
STR_MENU("&Start Time")
|
||||||
|
@ -231,7 +212,6 @@ struct grid_sort_start : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all selected subtitles by their start times.
|
|
||||||
struct grid_sort_start_selected : public validate_sel_multiple {
|
struct grid_sort_start_selected : public validate_sel_multiple {
|
||||||
CMD_NAME("grid/sort/start/selected")
|
CMD_NAME("grid/sort/start/selected")
|
||||||
STR_MENU("&Start Time")
|
STR_MENU("&Start Time")
|
||||||
|
@ -244,7 +224,6 @@ struct grid_sort_start_selected : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all subtitles by their style names
|
|
||||||
struct grid_sort_style : public Command {
|
struct grid_sort_style : public Command {
|
||||||
CMD_NAME("grid/sort/style")
|
CMD_NAME("grid/sort/style")
|
||||||
STR_MENU("St&yle Name")
|
STR_MENU("St&yle Name")
|
||||||
|
@ -257,7 +236,6 @@ struct grid_sort_style : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Sort all selected subtitles by their style names
|
|
||||||
struct grid_sort_style_selected : public validate_sel_multiple {
|
struct grid_sort_style_selected : public validate_sel_multiple {
|
||||||
CMD_NAME("grid/sort/style/selected")
|
CMD_NAME("grid/sort/style/selected")
|
||||||
STR_MENU("St&yle Name")
|
STR_MENU("St&yle Name")
|
||||||
|
@ -270,7 +248,6 @@ struct grid_sort_style_selected : public validate_sel_multiple {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Cycle through tag hiding modes.
|
|
||||||
struct grid_tag_cycle_hiding : public Command {
|
struct grid_tag_cycle_hiding : public Command {
|
||||||
CMD_NAME("grid/tag/cycle_hiding")
|
CMD_NAME("grid/tag/cycle_hiding")
|
||||||
STR_MENU("Cycle Tag Hiding Mode")
|
STR_MENU("Cycle Tag Hiding Mode")
|
||||||
|
@ -295,8 +272,6 @@ struct grid_tag_cycle_hiding : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Hide override tags in the subtitle grid.
|
|
||||||
struct grid_tags_hide : public Command {
|
struct grid_tags_hide : public Command {
|
||||||
CMD_NAME("grid/tags/hide")
|
CMD_NAME("grid/tags/hide")
|
||||||
STR_MENU("&Hide Tags")
|
STR_MENU("&Hide Tags")
|
||||||
|
@ -313,8 +288,6 @@ struct grid_tags_hide : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Show full override tags in the subtitle grid.
|
|
||||||
struct grid_tags_show : public Command {
|
struct grid_tags_show : public Command {
|
||||||
CMD_NAME("grid/tags/show")
|
CMD_NAME("grid/tags/show")
|
||||||
STR_MENU("Sh&ow Tags")
|
STR_MENU("Sh&ow Tags")
|
||||||
|
@ -331,8 +304,6 @@ struct grid_tags_show : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Replace override tags in the subtitle grid with a simplified placeholder.
|
|
||||||
struct grid_tags_simplify : public Command {
|
struct grid_tags_simplify : public Command {
|
||||||
CMD_NAME("grid/tags/simplify")
|
CMD_NAME("grid/tags/simplify")
|
||||||
STR_MENU("S&implify Tags")
|
STR_MENU("S&implify Tags")
|
||||||
|
@ -370,7 +341,6 @@ static bool move_one(T begin, T end, U const& to_move, int step) {
|
||||||
return move_count > 0;
|
return move_count > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Move the selected lines up one row
|
|
||||||
struct grid_move_up : public Command {
|
struct grid_move_up : public Command {
|
||||||
CMD_NAME("grid/move/up")
|
CMD_NAME("grid/move/up")
|
||||||
STR_MENU("Move line up")
|
STR_MENU("Move line up")
|
||||||
|
@ -388,7 +358,6 @@ struct grid_move_up : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Move the selected lines down one row
|
|
||||||
struct grid_move_down : public Command {
|
struct grid_move_down : public Command {
|
||||||
CMD_NAME("grid/move/down")
|
CMD_NAME("grid/move/down")
|
||||||
STR_MENU("Move line down")
|
STR_MENU("Move line down")
|
||||||
|
@ -406,7 +375,6 @@ struct grid_move_down : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Swaps the two selected lines.
|
|
||||||
struct grid_swap : public Command {
|
struct grid_swap : public Command {
|
||||||
CMD_NAME("grid/swap")
|
CMD_NAME("grid/swap")
|
||||||
STR_MENU("Swap Lines")
|
STR_MENU("Swap Lines")
|
||||||
|
@ -428,7 +396,6 @@ struct grid_swap : public Command {
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_grid() {
|
void init_grid() {
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file help.cpp
|
|
||||||
/// @brief help/ commands
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -49,10 +44,7 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-help Help commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
/// Visit Aegisub's bug tracker.
|
|
||||||
struct help_bugs : public Command {
|
struct help_bugs : public Command {
|
||||||
CMD_NAME("help/bugs")
|
CMD_NAME("help/bugs")
|
||||||
STR_MENU("&Bug Tracker...")
|
STR_MENU("&Bug Tracker...")
|
||||||
|
@ -73,8 +65,6 @@ struct help_bugs : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Help topics.
|
|
||||||
struct help_contents : public Command {
|
struct help_contents : public Command {
|
||||||
CMD_NAME("help/contents")
|
CMD_NAME("help/contents")
|
||||||
STR_MENU("&Contents")
|
STR_MENU("&Contents")
|
||||||
|
@ -87,7 +77,6 @@ struct help_contents : public Command {
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
/// Resource files.
|
|
||||||
struct help_files : public Command {
|
struct help_files : public Command {
|
||||||
CMD_NAME("help/files")
|
CMD_NAME("help/files")
|
||||||
STR_MENU("All Fil&es")
|
STR_MENU("All Fil&es")
|
||||||
|
@ -100,7 +89,6 @@ struct help_files : public Command {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Visit Aegisub's forums.
|
|
||||||
struct help_forums : public Command {
|
struct help_forums : public Command {
|
||||||
CMD_NAME("help/forums")
|
CMD_NAME("help/forums")
|
||||||
STR_MENU("&Forums")
|
STR_MENU("&Forums")
|
||||||
|
@ -112,8 +100,6 @@ struct help_forums : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Visit Aegisub's official IRC channel.
|
|
||||||
struct help_irc : public Command {
|
struct help_irc : public Command {
|
||||||
CMD_NAME("help/irc")
|
CMD_NAME("help/irc")
|
||||||
STR_MENU("&IRC Channel")
|
STR_MENU("&IRC Channel")
|
||||||
|
@ -125,7 +111,6 @@ struct help_irc : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open the manual page for Visual Typesetting.
|
|
||||||
struct help_video : public Command {
|
struct help_video : public Command {
|
||||||
CMD_NAME("help/video")
|
CMD_NAME("help/video")
|
||||||
STR_MENU("&Visual Typesetting")
|
STR_MENU("&Visual Typesetting")
|
||||||
|
@ -137,7 +122,6 @@ struct help_video : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Visit Aegisub's official website.
|
|
||||||
struct help_website : public Command {
|
struct help_website : public Command {
|
||||||
CMD_NAME("help/website")
|
CMD_NAME("help/website")
|
||||||
STR_MENU("&Website")
|
STR_MENU("&Website")
|
||||||
|
@ -149,7 +133,6 @@ struct help_website : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_help() {
|
void init_help() {
|
||||||
|
|
|
@ -12,10 +12,6 @@
|
||||||
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
/// @file icon.h
|
|
||||||
/// @brief Icon for commands.
|
|
||||||
/// @ingroup command
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file keyframe.cpp
|
|
||||||
/// @brief keyframe/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -47,10 +42,7 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-keyframed Keyframe commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
/// Closes the currently open keyframes list.
|
|
||||||
struct keyframe_close : public Command {
|
struct keyframe_close : public Command {
|
||||||
CMD_NAME("keyframe/close")
|
CMD_NAME("keyframe/close")
|
||||||
STR_MENU("Close Keyframes")
|
STR_MENU("Close Keyframes")
|
||||||
|
@ -67,7 +59,6 @@ struct keyframe_close : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Opens a keyframe list file.
|
|
||||||
struct keyframe_open : public Command {
|
struct keyframe_open : public Command {
|
||||||
CMD_NAME("keyframe/open")
|
CMD_NAME("keyframe/open")
|
||||||
STR_MENU("Open Keyframes...")
|
STR_MENU("Open Keyframes...")
|
||||||
|
@ -86,7 +77,6 @@ struct keyframe_open : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Saves the current keyframe list.
|
|
||||||
struct keyframe_save : public Command {
|
struct keyframe_save : public Command {
|
||||||
CMD_NAME("keyframe/save")
|
CMD_NAME("keyframe/save")
|
||||||
STR_MENU("Save Keyframes...")
|
STR_MENU("Save Keyframes...")
|
||||||
|
@ -105,7 +95,6 @@ struct keyframe_save : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_keyframe() {
|
void init_keyframe() {
|
||||||
|
|
|
@ -27,11 +27,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file recent.cpp
|
|
||||||
/// @brief recent/ commands, rebuild MRU-based lists.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -51,8 +46,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-recent MRU (Most Recently Used) commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
COMMAND_GROUP(recent_audio, "recent/audio", _("Recent"), _("Recent"), _("Open recent audio"));
|
COMMAND_GROUP(recent_audio, "recent/audio", _("Recent"), _("Recent"), _("Open recent audio"));
|
||||||
COMMAND_GROUP(recent_keyframes, "recent/keyframe", _("Recent"), _("Recent"), _("Open recent keyframes"));
|
COMMAND_GROUP(recent_keyframes, "recent/keyframe", _("Recent"), _("Recent"), _("Open recent keyframes"));
|
||||||
|
@ -122,8 +115,6 @@ struct recent_video_entry : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @class mru_wrapper
|
|
||||||
/// @brief Wrapper class for mru commands to
|
|
||||||
template<class T>
|
template<class T>
|
||||||
class mru_wrapper : public T {
|
class mru_wrapper : public T {
|
||||||
int id;
|
int id;
|
||||||
|
@ -136,7 +127,6 @@ public:
|
||||||
mru_wrapper(int id) : id(id) , full_name(T::name() + std::to_string(id)) { }
|
mru_wrapper(int id) : id(id) , full_name(T::name() + std::to_string(id)) { }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_recent() {
|
void init_recent() {
|
||||||
|
@ -146,7 +136,6 @@ namespace cmd {
|
||||||
reg(agi::util::make_unique<recent_timecodes>());
|
reg(agi::util::make_unique<recent_timecodes>());
|
||||||
reg(agi::util::make_unique<recent_video>());
|
reg(agi::util::make_unique<recent_video>());
|
||||||
|
|
||||||
/// @todo 16 is an implementation detail that maybe needs to be exposed
|
|
||||||
for (int i = 0; i < 16; ++i) {
|
for (int i = 0; i < 16; ++i) {
|
||||||
reg(agi::util::make_unique<mru_wrapper<recent_audio_entry>>(i));
|
reg(agi::util::make_unique<mru_wrapper<recent_audio_entry>>(i));
|
||||||
reg(agi::util::make_unique<mru_wrapper<recent_keyframes_entry>>(i));
|
reg(agi::util::make_unique<mru_wrapper<recent_keyframes_entry>>(i));
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file subtitle.cpp
|
|
||||||
/// @brief subtitle/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -65,8 +60,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-subtitle Subtitle commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
struct validate_nonempty_selection : public Command {
|
struct validate_nonempty_selection : public Command {
|
||||||
CMD_TYPE(COMMAND_VALIDATE)
|
CMD_TYPE(COMMAND_VALIDATE)
|
||||||
|
@ -82,7 +75,6 @@ struct validate_nonempty_selection_video_loaded : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open the attachment list.
|
|
||||||
struct subtitle_attachment : public Command {
|
struct subtitle_attachment : public Command {
|
||||||
CMD_NAME("subtitle/attachment")
|
CMD_NAME("subtitle/attachment")
|
||||||
STR_MENU("A&ttachments...")
|
STR_MENU("A&ttachments...")
|
||||||
|
@ -95,8 +87,6 @@ struct subtitle_attachment : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Find words in subtitles.
|
|
||||||
struct subtitle_find : public Command {
|
struct subtitle_find : public Command {
|
||||||
CMD_NAME("subtitle/find")
|
CMD_NAME("subtitle/find")
|
||||||
STR_MENU("&Find...")
|
STR_MENU("&Find...")
|
||||||
|
@ -109,7 +99,6 @@ struct subtitle_find : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Find next match of last word.
|
|
||||||
struct subtitle_find_next : public Command {
|
struct subtitle_find_next : public Command {
|
||||||
CMD_NAME("subtitle/find/next")
|
CMD_NAME("subtitle/find/next")
|
||||||
STR_MENU("Find &Next")
|
STR_MENU("Find &Next")
|
||||||
|
@ -141,7 +130,6 @@ static void insert_subtitle_at_video(agi::Context *c, bool after) {
|
||||||
c->selectionController->SetSelectionAndActive(sel, def);
|
c->selectionController->SetSelectionAndActive(sel, def);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Inserts a line after current.
|
|
||||||
struct subtitle_insert_after : public validate_nonempty_selection {
|
struct subtitle_insert_after : public validate_nonempty_selection {
|
||||||
CMD_NAME("subtitle/insert/after")
|
CMD_NAME("subtitle/insert/after")
|
||||||
STR_MENU("&After Current")
|
STR_MENU("&After Current")
|
||||||
|
@ -178,7 +166,6 @@ struct subtitle_insert_after : public validate_nonempty_selection {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Inserts a line after current, starting at video time.
|
|
||||||
struct subtitle_insert_after_videotime : public validate_nonempty_selection_video_loaded {
|
struct subtitle_insert_after_videotime : public validate_nonempty_selection_video_loaded {
|
||||||
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")
|
||||||
|
@ -190,8 +177,6 @@ struct subtitle_insert_after_videotime : public validate_nonempty_selection_vide
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Inserts a line before current.
|
|
||||||
struct subtitle_insert_before : public validate_nonempty_selection {
|
struct subtitle_insert_before : public validate_nonempty_selection {
|
||||||
CMD_NAME("subtitle/insert/before")
|
CMD_NAME("subtitle/insert/before")
|
||||||
STR_MENU("&Before Current")
|
STR_MENU("&Before Current")
|
||||||
|
@ -225,8 +210,6 @@ struct subtitle_insert_before : public validate_nonempty_selection {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Inserts a line before current, starting at video time.
|
|
||||||
struct subtitle_insert_before_videotime : public validate_nonempty_selection_video_loaded {
|
struct subtitle_insert_before_videotime : public validate_nonempty_selection_video_loaded {
|
||||||
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")
|
||||||
|
@ -238,8 +221,6 @@ struct subtitle_insert_before_videotime : public validate_nonempty_selection_vid
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// New subtitles.
|
|
||||||
struct subtitle_new : public Command {
|
struct subtitle_new : public Command {
|
||||||
CMD_NAME("subtitle/new")
|
CMD_NAME("subtitle/new")
|
||||||
STR_MENU("&New Subtitles")
|
STR_MENU("&New Subtitles")
|
||||||
|
@ -252,8 +233,6 @@ struct subtitle_new : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Opens a subtitles file.
|
|
||||||
struct subtitle_open : public Command {
|
struct subtitle_open : public Command {
|
||||||
CMD_NAME("subtitle/open")
|
CMD_NAME("subtitle/open")
|
||||||
STR_MENU("&Open Subtitles...")
|
STR_MENU("&Open Subtitles...")
|
||||||
|
@ -282,7 +261,6 @@ struct subtitle_open_autosave : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Opens a subtitles file with a specific charset.
|
|
||||||
struct subtitle_open_charset : public Command {
|
struct subtitle_open_charset : public Command {
|
||||||
CMD_NAME("subtitle/open/charset")
|
CMD_NAME("subtitle/open/charset")
|
||||||
STR_MENU("Open Subtitles with &Charset...")
|
STR_MENU("Open Subtitles with &Charset...")
|
||||||
|
@ -302,7 +280,6 @@ struct subtitle_open_charset : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Opens the subtitles from the current video file.
|
|
||||||
struct subtitle_open_video : public Command {
|
struct subtitle_open_video : public Command {
|
||||||
CMD_NAME("subtitle/open/video")
|
CMD_NAME("subtitle/open/video")
|
||||||
STR_MENU("Open Subtitles from &Video")
|
STR_MENU("Open Subtitles from &Video")
|
||||||
|
@ -320,8 +297,6 @@ struct subtitle_open_video : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Open script properties window.
|
|
||||||
struct subtitle_properties : public Command {
|
struct subtitle_properties : public Command {
|
||||||
CMD_NAME("subtitle/properties")
|
CMD_NAME("subtitle/properties")
|
||||||
STR_MENU("&Properties...")
|
STR_MENU("&Properties...")
|
||||||
|
@ -357,7 +332,6 @@ static void save_subtitles(agi::Context *c, agi::fs::path filename) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Saves subtitles.
|
|
||||||
struct subtitle_save : public Command {
|
struct subtitle_save : public Command {
|
||||||
CMD_NAME("subtitle/save")
|
CMD_NAME("subtitle/save")
|
||||||
STR_MENU("&Save Subtitles")
|
STR_MENU("&Save Subtitles")
|
||||||
|
@ -374,8 +348,6 @@ struct subtitle_save : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Saves subtitles with another name.
|
|
||||||
struct subtitle_save_as : public Command {
|
struct subtitle_save_as : public Command {
|
||||||
CMD_NAME("subtitle/save/as")
|
CMD_NAME("subtitle/save/as")
|
||||||
STR_MENU("Save Subtitles &as...")
|
STR_MENU("Save Subtitles &as...")
|
||||||
|
@ -387,7 +359,6 @@ struct subtitle_save_as : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Selects all dialogue lines
|
|
||||||
struct subtitle_select_all : public Command {
|
struct subtitle_select_all : public Command {
|
||||||
CMD_NAME("subtitle/select/all")
|
CMD_NAME("subtitle/select/all")
|
||||||
STR_MENU("Select &All")
|
STR_MENU("Select &All")
|
||||||
|
@ -403,7 +374,6 @@ struct subtitle_select_all : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Selects all lines that are currently visible on video frame.
|
|
||||||
struct subtitle_select_visible : public Command {
|
struct subtitle_select_visible : public Command {
|
||||||
CMD_NAME("subtitle/select/visible")
|
CMD_NAME("subtitle/select/visible")
|
||||||
STR_MENU("Select Visible")
|
STR_MENU("Select Visible")
|
||||||
|
@ -438,8 +408,6 @@ struct subtitle_select_visible : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Open spell checker.
|
|
||||||
struct subtitle_spellcheck : public Command {
|
struct subtitle_spellcheck : public Command {
|
||||||
CMD_NAME("subtitle/spellcheck")
|
CMD_NAME("subtitle/spellcheck")
|
||||||
STR_MENU("Spell &Checker...")
|
STR_MENU("Spell &Checker...")
|
||||||
|
@ -453,8 +421,6 @@ struct subtitle_spellcheck : public Command {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_subtitle() {
|
void init_subtitle() {
|
||||||
reg(agi::util::make_unique<subtitle_attachment>());
|
reg(agi::util::make_unique<subtitle_attachment>());
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file time.cpp
|
|
||||||
/// @brief time/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -83,9 +78,6 @@ namespace {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @defgroup cmd-time Time manipulation commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
static void adjoin_lines(agi::Context *c, bool set_start) {
|
static void adjoin_lines(agi::Context *c, bool set_start) {
|
||||||
auto sel = c->selectionController->GetSelectedSet();
|
auto sel = c->selectionController->GetSelectedSet();
|
||||||
AssDialogue *prev = nullptr;
|
AssDialogue *prev = nullptr;
|
||||||
|
@ -114,7 +106,6 @@ static void adjoin_lines(agi::Context *c, bool set_start) {
|
||||||
c->ass->Commit(_("adjoin"), AssFile::COMMIT_DIAG_TIME);
|
c->ass->Commit(_("adjoin"), AssFile::COMMIT_DIAG_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Changes times of subs so end times begin on next's start time.
|
|
||||||
struct time_continuous_end : public validate_adjoinable {
|
struct time_continuous_end : public validate_adjoinable {
|
||||||
CMD_NAME("time/continuous/end")
|
CMD_NAME("time/continuous/end")
|
||||||
STR_MENU("Change &End")
|
STR_MENU("Change &End")
|
||||||
|
@ -126,7 +117,6 @@ struct time_continuous_end : public validate_adjoinable {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Changes times of subs so start times begin on previous's end time.
|
|
||||||
struct time_continuous_start : public validate_adjoinable {
|
struct time_continuous_start : public validate_adjoinable {
|
||||||
CMD_NAME("time/continuous/start")
|
CMD_NAME("time/continuous/start")
|
||||||
STR_MENU("Change &Start")
|
STR_MENU("Change &Start")
|
||||||
|
@ -138,8 +128,6 @@ struct time_continuous_start : public validate_adjoinable {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Shift selection so that the active line starts at current frame.
|
|
||||||
struct time_frame_current : public validate_video_loaded {
|
struct time_frame_current : public validate_video_loaded {
|
||||||
CMD_NAME("time/frame/current")
|
CMD_NAME("time/frame/current")
|
||||||
STR_MENU("Shift to &Current Frame")
|
STR_MENU("Shift to &Current Frame")
|
||||||
|
@ -166,8 +154,6 @@ struct time_frame_current : public validate_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Shift subtitles by time or frames.
|
|
||||||
struct time_shift : public Command {
|
struct time_shift : public Command {
|
||||||
CMD_NAME("time/shift")
|
CMD_NAME("time/shift")
|
||||||
STR_MENU("S&hift Times...")
|
STR_MENU("S&hift Times...")
|
||||||
|
@ -197,7 +183,6 @@ static void snap_subs_video(agi::Context *c, bool set_start) {
|
||||||
c->ass->Commit(_("timing"), AssFile::COMMIT_DIAG_TIME);
|
c->ass->Commit(_("timing"), AssFile::COMMIT_DIAG_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set end of selected subtitles to current video frame.
|
|
||||||
struct time_snap_end_video : public validate_video_loaded {
|
struct time_snap_end_video : public validate_video_loaded {
|
||||||
CMD_NAME("time/snap/end_video")
|
CMD_NAME("time/snap/end_video")
|
||||||
STR_MENU("Snap &End to Video")
|
STR_MENU("Snap &End to Video")
|
||||||
|
@ -209,7 +194,6 @@ struct time_snap_end_video : public validate_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Set start and end of subtitles to the keyframes around current video frame.
|
|
||||||
struct time_snap_scene : public validate_video_loaded {
|
struct time_snap_scene : public validate_video_loaded {
|
||||||
CMD_NAME("time/snap/scene")
|
CMD_NAME("time/snap/scene")
|
||||||
STR_MENU("Snap to S&cene")
|
STR_MENU("Snap to S&cene")
|
||||||
|
@ -356,7 +340,6 @@ struct time_start_decrease : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Set start of selected subtitles to current video frame.
|
|
||||||
struct time_snap_start_video : public validate_video_loaded {
|
struct time_snap_start_video : public validate_video_loaded {
|
||||||
CMD_NAME("time/snap/start_video")
|
CMD_NAME("time/snap/start_video")
|
||||||
STR_MENU("Snap &Start to Video")
|
STR_MENU("Snap &Start to Video")
|
||||||
|
@ -368,7 +351,6 @@ struct time_snap_start_video : public validate_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Switch to the next timeable thing (line or syllable)
|
|
||||||
struct time_next : public Command {
|
struct time_next : public Command {
|
||||||
CMD_NAME("time/next")
|
CMD_NAME("time/next")
|
||||||
STR_MENU("Next Line")
|
STR_MENU("Next Line")
|
||||||
|
@ -380,7 +362,6 @@ struct time_next : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Switch to the previous timeable thing (line or syllable)
|
|
||||||
struct time_prev : public Command {
|
struct time_prev : public Command {
|
||||||
CMD_NAME("time/prev")
|
CMD_NAME("time/prev")
|
||||||
STR_MENU("Previous Line")
|
STR_MENU("Previous Line")
|
||||||
|
@ -393,8 +374,6 @@ struct time_prev : public Command {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_time() {
|
void init_time() {
|
||||||
reg(agi::util::make_unique<time_add_lead_both>());
|
reg(agi::util::make_unique<time_add_lead_both>());
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file timecode.cpp
|
|
||||||
/// @brief timecode/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -47,10 +42,7 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-timecode Timecode commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
/// Closes the currently open timecodes file.
|
|
||||||
struct timecode_close : public Command {
|
struct timecode_close : public Command {
|
||||||
CMD_NAME("timecode/close")
|
CMD_NAME("timecode/close")
|
||||||
STR_MENU("Close Timecodes File")
|
STR_MENU("Close Timecodes File")
|
||||||
|
@ -67,8 +59,6 @@ struct timecode_close : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// Opens a VFR timecodes v1 or v2 file.
|
|
||||||
struct timecode_open : public Command {
|
struct timecode_open : public Command {
|
||||||
CMD_NAME("timecode/open")
|
CMD_NAME("timecode/open")
|
||||||
STR_MENU("Open Timecodes File...")
|
STR_MENU("Open Timecodes File...")
|
||||||
|
@ -83,7 +73,6 @@ struct timecode_open : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Saves a VFR timecodes v2 file.
|
|
||||||
struct timecode_save : public Command {
|
struct timecode_save : public Command {
|
||||||
CMD_NAME("timecode/save")
|
CMD_NAME("timecode/save")
|
||||||
STR_MENU("Save Timecodes File...")
|
STR_MENU("Save Timecodes File...")
|
||||||
|
@ -103,7 +92,6 @@ struct timecode_save : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_timecode() {
|
void init_timecode() {
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file tool.cpp
|
|
||||||
/// @brief tool/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -63,11 +58,7 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-tool Various tool and utilities
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
|
|
||||||
/// Launch ASSDraw3 tool for vector drawing.
|
|
||||||
struct tool_assdraw : public Command {
|
struct tool_assdraw : public Command {
|
||||||
CMD_NAME("tool/assdraw")
|
CMD_NAME("tool/assdraw")
|
||||||
STR_MENU("ASSDraw3...")
|
STR_MENU("ASSDraw3...")
|
||||||
|
@ -79,7 +70,6 @@ struct tool_assdraw : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Saves a copy of subtitles with processing applied to it.
|
|
||||||
struct tool_export : public Command {
|
struct tool_export : public Command {
|
||||||
CMD_NAME("tool/export")
|
CMD_NAME("tool/export")
|
||||||
STR_MENU("&Export Subtitles...")
|
STR_MENU("&Export Subtitles...")
|
||||||
|
@ -92,7 +82,6 @@ struct tool_export : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open fonts collector.
|
|
||||||
struct tool_font_collector : public Command {
|
struct tool_font_collector : public Command {
|
||||||
CMD_NAME("tool/font_collector")
|
CMD_NAME("tool/font_collector")
|
||||||
STR_MENU("&Fonts Collector...")
|
STR_MENU("&Fonts Collector...")
|
||||||
|
@ -104,7 +93,6 @@ struct tool_font_collector : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Selects lines based on defined criteria.
|
|
||||||
struct tool_line_select : public Command {
|
struct tool_line_select : public Command {
|
||||||
CMD_NAME("tool/line/select")
|
CMD_NAME("tool/line/select")
|
||||||
STR_MENU("S&elect Lines...")
|
STR_MENU("S&elect Lines...")
|
||||||
|
@ -116,7 +104,6 @@ struct tool_line_select : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Changes resolution and modifies subtitles to conform to change.
|
|
||||||
struct tool_resampleres : public Command {
|
struct tool_resampleres : public Command {
|
||||||
CMD_NAME("tool/resampleres")
|
CMD_NAME("tool/resampleres")
|
||||||
STR_MENU("&Resample Resolution...")
|
STR_MENU("&Resample Resolution...")
|
||||||
|
@ -131,7 +118,6 @@ struct tool_resampleres : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open styling assistant.
|
|
||||||
struct tool_style_assistant : public Command {
|
struct tool_style_assistant : public Command {
|
||||||
CMD_NAME("tool/style/assistant")
|
CMD_NAME("tool/style/assistant")
|
||||||
STR_MENU("St&yling Assistant...")
|
STR_MENU("St&yling Assistant...")
|
||||||
|
@ -151,7 +137,6 @@ struct tool_styling_assistant_validator : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit changes and move to the next line.
|
|
||||||
struct tool_styling_assistant_commit : public tool_styling_assistant_validator {
|
struct tool_styling_assistant_commit : public tool_styling_assistant_validator {
|
||||||
CMD_NAME("tool/styling_assistant/commit")
|
CMD_NAME("tool/styling_assistant/commit")
|
||||||
STR_MENU("&Accept changes")
|
STR_MENU("&Accept changes")
|
||||||
|
@ -163,7 +148,6 @@ struct tool_styling_assistant_commit : public tool_styling_assistant_validator {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit changes and stay on the current line.
|
|
||||||
struct tool_styling_assistant_preview : public tool_styling_assistant_validator {
|
struct tool_styling_assistant_preview : public tool_styling_assistant_validator {
|
||||||
CMD_NAME("tool/styling_assistant/preview")
|
CMD_NAME("tool/styling_assistant/preview")
|
||||||
STR_MENU("&Preview changes")
|
STR_MENU("&Preview changes")
|
||||||
|
@ -175,7 +159,6 @@ struct tool_styling_assistant_preview : public tool_styling_assistant_validator
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open styles manager.
|
|
||||||
struct tool_style_manager : public Command {
|
struct tool_style_manager : public Command {
|
||||||
CMD_NAME("tool/style/manager")
|
CMD_NAME("tool/style/manager")
|
||||||
STR_MENU("&Styles Manager...")
|
STR_MENU("&Styles Manager...")
|
||||||
|
@ -187,7 +170,6 @@ struct tool_style_manager : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open Kanji timer.
|
|
||||||
struct tool_time_kanji : public Command {
|
struct tool_time_kanji : public Command {
|
||||||
CMD_NAME("tool/time/kanji")
|
CMD_NAME("tool/time/kanji")
|
||||||
STR_MENU("&Kanji Timer...")
|
STR_MENU("&Kanji Timer...")
|
||||||
|
@ -199,7 +181,6 @@ struct tool_time_kanji : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Launch timing post-processor.
|
|
||||||
struct tool_time_postprocess : public Command {
|
struct tool_time_postprocess : public Command {
|
||||||
CMD_NAME("tool/time/postprocess")
|
CMD_NAME("tool/time/postprocess")
|
||||||
STR_MENU("&Timing Post-Processor...")
|
STR_MENU("&Timing Post-Processor...")
|
||||||
|
@ -211,7 +192,6 @@ struct tool_time_postprocess : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Open translation assistant.
|
|
||||||
struct tool_translation_assistant : public Command {
|
struct tool_translation_assistant : public Command {
|
||||||
CMD_NAME("tool/translation_assistant")
|
CMD_NAME("tool/translation_assistant")
|
||||||
STR_MENU("&Translation Assistant...")
|
STR_MENU("&Translation Assistant...")
|
||||||
|
@ -237,7 +217,6 @@ struct tool_translation_assistant_validator : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit changes and move to the next line.
|
|
||||||
struct tool_translation_assistant_commit : public tool_translation_assistant_validator {
|
struct tool_translation_assistant_commit : public tool_translation_assistant_validator {
|
||||||
CMD_NAME("tool/translation_assistant/commit")
|
CMD_NAME("tool/translation_assistant/commit")
|
||||||
STR_MENU("&Accept changes")
|
STR_MENU("&Accept changes")
|
||||||
|
@ -249,7 +228,6 @@ struct tool_translation_assistant_commit : public tool_translation_assistant_val
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Commit changes and stay on the current line.
|
|
||||||
struct tool_translation_assistant_preview : public tool_translation_assistant_validator {
|
struct tool_translation_assistant_preview : public tool_translation_assistant_validator {
|
||||||
CMD_NAME("tool/translation_assistant/preview")
|
CMD_NAME("tool/translation_assistant/preview")
|
||||||
STR_MENU("&Preview changes")
|
STR_MENU("&Preview changes")
|
||||||
|
@ -261,7 +239,6 @@ struct tool_translation_assistant_preview : public tool_translation_assistant_va
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Move to the next line without committing changes.
|
|
||||||
struct tool_translation_assistant_next : public tool_translation_assistant_validator {
|
struct tool_translation_assistant_next : public tool_translation_assistant_validator {
|
||||||
CMD_NAME("tool/translation_assistant/next")
|
CMD_NAME("tool/translation_assistant/next")
|
||||||
STR_MENU("&Next Line")
|
STR_MENU("&Next Line")
|
||||||
|
@ -273,7 +250,6 @@ struct tool_translation_assistant_next : public tool_translation_assistant_valid
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Move to the previous line without committing changes.
|
|
||||||
struct tool_translation_assistant_prev : public tool_translation_assistant_validator {
|
struct tool_translation_assistant_prev : public tool_translation_assistant_validator {
|
||||||
CMD_NAME("tool/translation_assistant/prev")
|
CMD_NAME("tool/translation_assistant/prev")
|
||||||
STR_MENU("&Previous Line")
|
STR_MENU("&Previous Line")
|
||||||
|
@ -286,7 +262,6 @@ struct tool_translation_assistant_prev : public tool_translation_assistant_valid
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Insert the untranslated text.
|
|
||||||
struct tool_translation_assistant_insert : public tool_translation_assistant_validator {
|
struct tool_translation_assistant_insert : public tool_translation_assistant_validator {
|
||||||
CMD_NAME("tool/translation_assistant/insert_original")
|
CMD_NAME("tool/translation_assistant/insert_original")
|
||||||
STR_MENU("&Insert Original")
|
STR_MENU("&Insert Original")
|
||||||
|
@ -297,7 +272,6 @@ struct tool_translation_assistant_insert : public tool_translation_assistant_val
|
||||||
c->dialog->Get<DialogTranslation>()->InsertOriginal();
|
c->dialog->Get<DialogTranslation>()->InsertOriginal();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_tool() {
|
void init_tool() {
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file video.cpp
|
|
||||||
/// @brief video/ commands.
|
|
||||||
/// @ingroup command
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -74,8 +69,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-video Video commands.
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
struct validator_video_loaded : public Command {
|
struct validator_video_loaded : public Command {
|
||||||
CMD_TYPE(COMMAND_VALIDATE)
|
CMD_TYPE(COMMAND_VALIDATE)
|
||||||
|
@ -91,7 +84,6 @@ struct validator_video_attached : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Forces video to 2.35 aspect ratio.
|
|
||||||
struct video_aspect_cinematic : public validator_video_loaded {
|
struct video_aspect_cinematic : public validator_video_loaded {
|
||||||
CMD_NAME("video/aspect/cinematic")
|
CMD_NAME("video/aspect/cinematic")
|
||||||
STR_MENU("&Cinematic (2.35)")
|
STR_MENU("&Cinematic (2.35)")
|
||||||
|
@ -110,7 +102,6 @@ struct video_aspect_cinematic : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Forces video to a custom aspect ratio.
|
|
||||||
struct video_aspect_custom : public validator_video_loaded {
|
struct video_aspect_custom : public validator_video_loaded {
|
||||||
CMD_NAME("video/aspect/custom")
|
CMD_NAME("video/aspect/custom")
|
||||||
STR_MENU("C&ustom...")
|
STR_MENU("C&ustom...")
|
||||||
|
@ -154,7 +145,6 @@ struct video_aspect_custom : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Leave video on original aspect ratio.
|
|
||||||
struct video_aspect_default : public validator_video_loaded {
|
struct video_aspect_default : public validator_video_loaded {
|
||||||
CMD_NAME("video/aspect/default")
|
CMD_NAME("video/aspect/default")
|
||||||
STR_MENU("&Default")
|
STR_MENU("&Default")
|
||||||
|
@ -173,7 +163,6 @@ struct video_aspect_default : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Forces video to 4:3 aspect ratio.
|
|
||||||
struct video_aspect_full : public validator_video_loaded {
|
struct video_aspect_full : public validator_video_loaded {
|
||||||
CMD_NAME("video/aspect/full")
|
CMD_NAME("video/aspect/full")
|
||||||
STR_MENU("&Fullscreen (4:3)")
|
STR_MENU("&Fullscreen (4:3)")
|
||||||
|
@ -192,7 +181,6 @@ struct video_aspect_full : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Forces video to 16:9 aspect ratio.
|
|
||||||
struct video_aspect_wide : public validator_video_loaded {
|
struct video_aspect_wide : public validator_video_loaded {
|
||||||
CMD_NAME("video/aspect/wide")
|
CMD_NAME("video/aspect/wide")
|
||||||
STR_MENU("&Widescreen (16:9)")
|
STR_MENU("&Widescreen (16:9)")
|
||||||
|
@ -211,7 +199,6 @@ struct video_aspect_wide : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Closes the currently open video file.
|
|
||||||
struct video_close : public validator_video_loaded {
|
struct video_close : public validator_video_loaded {
|
||||||
CMD_NAME("video/close")
|
CMD_NAME("video/close")
|
||||||
STR_MENU("&Close Video")
|
STR_MENU("&Close Video")
|
||||||
|
@ -223,7 +210,6 @@ struct video_close : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Copy the current coordinates of the mouse over the video to the clipboard.
|
|
||||||
struct video_copy_coordinates : public validator_video_loaded {
|
struct video_copy_coordinates : public validator_video_loaded {
|
||||||
CMD_NAME("video/copy_coordinates")
|
CMD_NAME("video/copy_coordinates")
|
||||||
STR_MENU("Copy coordinates to Clipboard")
|
STR_MENU("Copy coordinates to Clipboard")
|
||||||
|
@ -254,7 +240,6 @@ struct video_cycle_subtitles_provider : public cmd::Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Detach video, displaying it in a separate Window.
|
|
||||||
struct video_detach : public validator_video_loaded {
|
struct video_detach : public validator_video_loaded {
|
||||||
CMD_NAME("video/detach")
|
CMD_NAME("video/detach")
|
||||||
STR_MENU("&Detach Video")
|
STR_MENU("&Detach Video")
|
||||||
|
@ -274,7 +259,6 @@ struct video_detach : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Shows video details.
|
|
||||||
struct video_details : public validator_video_loaded {
|
struct video_details : public validator_video_loaded {
|
||||||
CMD_NAME("video/details")
|
CMD_NAME("video/details")
|
||||||
STR_MENU("Show &Video Details")
|
STR_MENU("Show &Video Details")
|
||||||
|
@ -287,7 +271,6 @@ struct video_details : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle focus between the video slider and other things
|
|
||||||
struct video_focus_seek : public validator_video_loaded {
|
struct video_focus_seek : public validator_video_loaded {
|
||||||
CMD_NAME("video/focus_seek")
|
CMD_NAME("video/focus_seek")
|
||||||
STR_MENU("Toggle video slider focus")
|
STR_MENU("Toggle video slider focus")
|
||||||
|
@ -306,7 +289,6 @@ struct video_focus_seek : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Copy the current video frame to the clipboard, with subtitles
|
|
||||||
struct video_frame_copy : public validator_video_loaded {
|
struct video_frame_copy : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/copy")
|
CMD_NAME("video/frame/copy")
|
||||||
STR_MENU("Copy image to Clipboard")
|
STR_MENU("Copy image to Clipboard")
|
||||||
|
@ -318,7 +300,6 @@ struct video_frame_copy : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Copy the current video frame to the clipboard, without subtitles
|
|
||||||
struct video_frame_copy_raw : public validator_video_loaded {
|
struct video_frame_copy_raw : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/copy/raw")
|
CMD_NAME("video/frame/copy/raw")
|
||||||
STR_MENU("Copy image to Clipboard (no subtitles)")
|
STR_MENU("Copy image to Clipboard (no subtitles)")
|
||||||
|
@ -330,7 +311,6 @@ struct video_frame_copy_raw : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Seek to the next frame.
|
|
||||||
struct video_frame_next : public validator_video_loaded {
|
struct video_frame_next : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/next")
|
CMD_NAME("video/frame/next")
|
||||||
STR_MENU("Next Frame")
|
STR_MENU("Next Frame")
|
||||||
|
@ -342,7 +322,6 @@ struct video_frame_next : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Seek to the next subtitle boundary.
|
|
||||||
struct video_frame_next_boundary : public validator_video_loaded {
|
struct video_frame_next_boundary : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/next/boundary")
|
CMD_NAME("video/frame/next/boundary")
|
||||||
STR_MENU("Next Boundary")
|
STR_MENU("Next Boundary")
|
||||||
|
@ -372,7 +351,6 @@ struct video_frame_next_boundary : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Seek to the next keyframe.
|
|
||||||
struct video_frame_next_keyframe : public validator_video_loaded {
|
struct video_frame_next_keyframe : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/next/keyframe")
|
CMD_NAME("video/frame/next/keyframe")
|
||||||
STR_MENU("Next Keyframe")
|
STR_MENU("Next Keyframe")
|
||||||
|
@ -387,7 +365,6 @@ struct video_frame_next_keyframe : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Fast jump forward
|
|
||||||
struct video_frame_next_large : public validator_video_loaded {
|
struct video_frame_next_large : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/next/large")
|
CMD_NAME("video/frame/next/large")
|
||||||
STR_MENU("Fast jump forward")
|
STR_MENU("Fast jump forward")
|
||||||
|
@ -401,7 +378,6 @@ struct video_frame_next_large : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Seek to the previous frame.
|
|
||||||
struct video_frame_prev : public validator_video_loaded {
|
struct video_frame_prev : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/prev")
|
CMD_NAME("video/frame/prev")
|
||||||
STR_MENU("Previous Frame")
|
STR_MENU("Previous Frame")
|
||||||
|
@ -413,7 +389,6 @@ struct video_frame_prev : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Seek to the previous subtitle boundary.
|
|
||||||
struct video_frame_prev_boundary : public validator_video_loaded {
|
struct video_frame_prev_boundary : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/prev/boundary")
|
CMD_NAME("video/frame/prev/boundary")
|
||||||
STR_MENU("Previous Boundary")
|
STR_MENU("Previous Boundary")
|
||||||
|
@ -443,7 +418,6 @@ struct video_frame_prev_boundary : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Seek to the previous keyframe.
|
|
||||||
struct video_frame_prev_keyframe : public validator_video_loaded {
|
struct video_frame_prev_keyframe : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/prev/keyframe")
|
CMD_NAME("video/frame/prev/keyframe")
|
||||||
STR_MENU("Previous Keyframe")
|
STR_MENU("Previous Keyframe")
|
||||||
|
@ -466,7 +440,6 @@ struct video_frame_prev_keyframe : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Fast jump backwards
|
|
||||||
struct video_frame_prev_large : public validator_video_loaded {
|
struct video_frame_prev_large : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/prev/large")
|
CMD_NAME("video/frame/prev/large")
|
||||||
STR_MENU("Fast jump backwards")
|
STR_MENU("Fast jump backwards")
|
||||||
|
@ -518,7 +491,6 @@ static void save_snapshot(agi::Context *c, bool raw) {
|
||||||
GetImage(*c->videoController->GetFrame(c->videoController->GetFrameN(), raw)).SaveFile(to_wx(path), wxBITMAP_TYPE_PNG);
|
GetImage(*c->videoController->GetFrame(c->videoController->GetFrameN(), raw)).SaveFile(to_wx(path), wxBITMAP_TYPE_PNG);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Save the current video frame, with subtitles (if any)
|
|
||||||
struct video_frame_save : public validator_video_loaded {
|
struct video_frame_save : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/save")
|
CMD_NAME("video/frame/save")
|
||||||
STR_MENU("Save PNG snapshot")
|
STR_MENU("Save PNG snapshot")
|
||||||
|
@ -530,7 +502,6 @@ struct video_frame_save : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Save the current video frame, without subtitles
|
|
||||||
struct video_frame_save_raw : public validator_video_loaded {
|
struct video_frame_save_raw : public validator_video_loaded {
|
||||||
CMD_NAME("video/frame/save/raw")
|
CMD_NAME("video/frame/save/raw")
|
||||||
STR_MENU("Save PNG snapshot (no subtitles)")
|
STR_MENU("Save PNG snapshot (no subtitles)")
|
||||||
|
@ -542,7 +513,6 @@ struct video_frame_save_raw : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Jump to frame or time.
|
|
||||||
struct video_jump : public validator_video_loaded {
|
struct video_jump : public validator_video_loaded {
|
||||||
CMD_NAME("video/jump")
|
CMD_NAME("video/jump")
|
||||||
STR_MENU("&Jump to...")
|
STR_MENU("&Jump to...")
|
||||||
|
@ -558,7 +528,6 @@ struct video_jump : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Jumps the video to the end frame of current subtitle.
|
|
||||||
struct video_jump_end : public validator_video_loaded {
|
struct video_jump_end : public validator_video_loaded {
|
||||||
CMD_NAME("video/jump/end")
|
CMD_NAME("video/jump/end")
|
||||||
STR_MENU("Jump Video to &End")
|
STR_MENU("Jump Video to &End")
|
||||||
|
@ -572,7 +541,6 @@ struct video_jump_end : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Jumps the video to the start frame of current subtitle.
|
|
||||||
struct video_jump_start : public validator_video_loaded {
|
struct video_jump_start : public validator_video_loaded {
|
||||||
CMD_NAME("video/jump/start")
|
CMD_NAME("video/jump/start")
|
||||||
STR_MENU("Jump Video to &Start")
|
STR_MENU("Jump Video to &Start")
|
||||||
|
@ -585,7 +553,6 @@ struct video_jump_start : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Opens a video file.
|
|
||||||
struct video_open : public Command {
|
struct video_open : public Command {
|
||||||
CMD_NAME("video/open")
|
CMD_NAME("video/open")
|
||||||
STR_MENU("&Open Video...")
|
STR_MENU("&Open Video...")
|
||||||
|
@ -601,7 +568,6 @@ struct video_open : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Opens a video clip with solid colour.
|
|
||||||
struct video_open_dummy : public Command {
|
struct video_open_dummy : public Command {
|
||||||
CMD_NAME("video/open/dummy")
|
CMD_NAME("video/open/dummy")
|
||||||
STR_MENU("&Use Dummy Video...")
|
STR_MENU("&Use Dummy Video...")
|
||||||
|
@ -615,7 +581,6 @@ struct video_open_dummy : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Toggle autoscrolling video when the active line changes
|
|
||||||
struct video_opt_autoscroll : public Command {
|
struct video_opt_autoscroll : public Command {
|
||||||
CMD_NAME("video/opt/autoscroll")
|
CMD_NAME("video/opt/autoscroll")
|
||||||
STR_MENU("Toggle autoscroll of video")
|
STR_MENU("Toggle autoscroll of video")
|
||||||
|
@ -632,7 +597,6 @@ struct video_opt_autoscroll : public Command {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play video.
|
|
||||||
struct video_play : public validator_video_loaded {
|
struct video_play : public validator_video_loaded {
|
||||||
CMD_NAME("video/play")
|
CMD_NAME("video/play")
|
||||||
STR_MENU("Play")
|
STR_MENU("Play")
|
||||||
|
@ -644,7 +608,6 @@ struct video_play : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Play video for the active line.
|
|
||||||
struct video_play_line : public validator_video_loaded {
|
struct video_play_line : public validator_video_loaded {
|
||||||
CMD_NAME("video/play/line")
|
CMD_NAME("video/play/line")
|
||||||
STR_MENU("Play line")
|
STR_MENU("Play line")
|
||||||
|
@ -656,7 +619,6 @@ struct video_play_line : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Show a mask over the video.
|
|
||||||
struct video_show_overscan : public validator_video_loaded {
|
struct video_show_overscan : public validator_video_loaded {
|
||||||
CMD_NAME("video/show_overscan")
|
CMD_NAME("video/show_overscan")
|
||||||
STR_MENU("Show &Overscan Mask")
|
STR_MENU("Show &Overscan Mask")
|
||||||
|
@ -674,7 +636,6 @@ struct video_show_overscan : public validator_video_loaded {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Set zoom to 100%.
|
|
||||||
class video_zoom_100: public validator_video_attached {
|
class video_zoom_100: public validator_video_attached {
|
||||||
public:
|
public:
|
||||||
CMD_NAME("video/zoom/100")
|
CMD_NAME("video/zoom/100")
|
||||||
|
@ -693,7 +654,6 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Stop video playback
|
|
||||||
class video_stop: public validator_video_loaded {
|
class video_stop: public validator_video_loaded {
|
||||||
public:
|
public:
|
||||||
CMD_NAME("video/stop")
|
CMD_NAME("video/stop")
|
||||||
|
@ -706,7 +666,6 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Set zoom to 200%.
|
|
||||||
class video_zoom_200: public validator_video_attached {
|
class video_zoom_200: public validator_video_attached {
|
||||||
public:
|
public:
|
||||||
CMD_NAME("video/zoom/200")
|
CMD_NAME("video/zoom/200")
|
||||||
|
@ -725,7 +684,6 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Set zoom to 50%.
|
|
||||||
class video_zoom_50: public validator_video_attached {
|
class video_zoom_50: public validator_video_attached {
|
||||||
public:
|
public:
|
||||||
CMD_NAME("video/zoom/50")
|
CMD_NAME("video/zoom/50")
|
||||||
|
@ -744,7 +702,6 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Zoom video in.
|
|
||||||
struct video_zoom_in : public validator_video_attached {
|
struct video_zoom_in : public validator_video_attached {
|
||||||
CMD_NAME("video/zoom/in")
|
CMD_NAME("video/zoom/in")
|
||||||
STR_MENU("Zoom In")
|
STR_MENU("Zoom In")
|
||||||
|
@ -756,7 +713,6 @@ struct video_zoom_in : public validator_video_attached {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Zoom video out.
|
|
||||||
struct video_zoom_out : public validator_video_attached {
|
struct video_zoom_out : public validator_video_attached {
|
||||||
CMD_NAME("video/zoom/out")
|
CMD_NAME("video/zoom/out")
|
||||||
STR_MENU("Zoom Out")
|
STR_MENU("Zoom Out")
|
||||||
|
@ -769,8 +725,6 @@ struct video_zoom_out : public validator_video_attached {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_video() {
|
void init_video() {
|
||||||
reg(agi::util::make_unique<video_aspect_cinematic>());
|
reg(agi::util::make_unique<video_aspect_cinematic>());
|
||||||
|
|
|
@ -14,11 +14,6 @@
|
||||||
//
|
//
|
||||||
// Aegisub Project http://www.aegisub.org/
|
// Aegisub Project http://www.aegisub.org/
|
||||||
|
|
||||||
/// @file vis_tool.cpp
|
|
||||||
/// @brief Visual typesetting tools commands
|
|
||||||
/// @ingroup command visual_ui
|
|
||||||
///
|
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -39,8 +34,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
using cmd::Command;
|
using cmd::Command;
|
||||||
/// @defgroup cmd-visual Visual typesetting tools commands
|
|
||||||
/// @{
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
struct visual_tool_command : public Command {
|
struct visual_tool_command : public Command {
|
||||||
|
@ -109,8 +102,6 @@ namespace {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_visual_tools() {
|
void init_visual_tools() {
|
||||||
reg(agi::util::make_unique<visual_mode_cross>());
|
reg(agi::util::make_unique<visual_mode_cross>());
|
||||||
|
|
Loading…
Reference in New Issue