fixed status message

This commit is contained in:
itsmattkc
2019-01-11 13:41:20 +11:00
parent 007d4017f3
commit 0a48a84e22
3 changed files with 33 additions and 33 deletions
+23 -22
View File
@@ -91,8 +91,9 @@ void MainWindow::setup_layout(bool reset) {
layout()->update();
}
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
MainWindow::MainWindow(QWidget *parent, const QString &an) :
QMainWindow(parent),
appName(an)
{
enable_launch_with_project = false;
@@ -245,10 +246,10 @@ 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()));
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()));
parent->addAction("Clear In/Out Point", this, SLOT(clear_inout()), QKeySequence("G"));
}
@@ -1217,19 +1218,19 @@ void MainWindow::set_out_point() {
}
void MainWindow::clear_in() {
if (panel_timeline->focused() || panel_sequence_viewer->is_focused()) {
panel_sequence_viewer->clear_in();
} else if (panel_footage_viewer->is_focused()) {
panel_footage_viewer->clear_in();
}
if (panel_timeline->focused() || panel_sequence_viewer->is_focused()) {
panel_sequence_viewer->clear_in();
} else if (panel_footage_viewer->is_focused()) {
panel_footage_viewer->clear_in();
}
}
void MainWindow::clear_out() {
if (panel_timeline->focused() || panel_sequence_viewer->is_focused()) {
panel_sequence_viewer->clear_out();
} else if (panel_footage_viewer->is_focused()) {
panel_footage_viewer->clear_out();
}
if (panel_timeline->focused() || panel_sequence_viewer->is_focused()) {
panel_sequence_viewer->clear_out();
} else if (panel_footage_viewer->is_focused()) {
panel_footage_viewer->clear_out();
}
}
void MainWindow::clear_inout() {
@@ -1259,15 +1260,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();
}
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() {