Add command "time/lead/both" which adds both lead in and out

Originally committed to SVN as r6742.
This commit is contained in:
Thomas Goyne 2012-05-02 22:42:31 +00:00
parent 8f3b027881
commit 5a067f56e4
1 changed files with 14 additions and 0 deletions

View File

@ -244,6 +244,19 @@ struct time_snap_scene : public validate_video_loaded {
} }
}; };
struct time_add_lead_both : public Command {
CMD_NAME("time/lead/both")
STR_MENU("Add lead in and out")
STR_DISP("Add lead in and out")
STR_HELP("Add lead in and out")
void operator()(agi::Context *c) {
if (AudioTimingController *tc = c->audioController->GetTimingController()) {
tc->AddLeadIn();
tc->AddLeadOut();
}
}
};
struct time_add_lead_in : public Command { struct time_add_lead_in : public Command {
CMD_NAME("time/lead/in") CMD_NAME("time/lead/in")
STR_MENU("Add lead in") STR_MENU("Add lead in")
@ -308,6 +321,7 @@ struct time_prev : public Command {
namespace cmd { namespace cmd {
void init_time() { void init_time() {
reg(new time_add_lead_both);
reg(new time_add_lead_in); reg(new time_add_lead_in);
reg(new time_add_lead_out); reg(new time_add_lead_out);
reg(new time_continuous_end); reg(new time_continuous_end);