made timeline in/out toggleable

This commit is contained in:
itsmattkc
2019-01-11 01:33:02 +11:00
parent 0b0aaa3218
commit 1a0464179d
13 changed files with 40 additions and 13 deletions
+10 -1
View File
@@ -245,6 +245,7 @@ void MainWindow::make_new_menu(QMenu *parent) {
void MainWindow::make_inout_menu(QMenu *parent) {
parent->addAction("Set In Point", this, SLOT(set_in_point()), QKeySequence("I"));
parent->addAction("Set Out Point", this, SLOT(set_out_point()), QKeySequence("O"));
parent->addAction("Enable/Disable In/Out Point", this, SLOT(enable_inout()));
parent->addSeparator();
parent->addAction("Reset In Point", this, SLOT(clear_in()));
parent->addAction("Reset Out Point", this, SLOT(clear_out()));
@@ -1258,7 +1259,15 @@ void MainWindow::ripple_delete_inout()
{
if (panel_timeline->focused()) {
panel_timeline->delete_in_out(true);
}
}
}
void MainWindow::enable_inout() {
if (panel_timeline->focused() || panel_sequence_viewer->is_focused()) {
panel_sequence_viewer->toggle_enable_inout();
} else if (panel_footage_viewer->is_focused()) {
panel_footage_viewer->toggle_enable_inout();
}
}
void MainWindow::set_tsa_default() {