vastly improved multithreaded loading and annchor point gizmo

This commit is contained in:
itsmattkc
2018-12-15 00:09:14 +11:00
parent 2fa7a638d5
commit 7a2a2af8ec
15 changed files with 292 additions and 153 deletions
+14 -13
View File
@@ -220,6 +220,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->actionCu_t, SIGNAL(triggered(bool)), this, SLOT(cut()));
connect(ui->actionCop_y, SIGNAL(triggered(bool)), this, SLOT(copy()));
connect(ui->action_Paste, SIGNAL(triggered(bool)), this, SLOT(paste()));
connect(ui->actionProject, SIGNAL(triggered(bool)), this, SLOT(new_project()));
}
MainWindow::~MainWindow() {
@@ -418,7 +419,19 @@ void MainWindow::copy() {
void MainWindow::paste() {
if ((panel_timeline->focused() || panel_effect_controls->is_focused()) && sequence != NULL) {
panel_timeline->paste(false);
}
}
}
void MainWindow::new_project() {
if (can_close_project()) {
panel_effect_controls->clear_effects(true);
undo_stack.clear();
project_url.clear();
panel_project->new_project();
updateTitle("");
update_ui(false);
panel_project->source_table->update();
}
}
void MainWindow::on_actionSplit_at_Playhead_triggered()
@@ -516,18 +529,6 @@ void MainWindow::on_action_Open_Project_triggered()
}
}
void MainWindow::on_actionProject_triggered()
{
if (can_close_project()) {
panel_effect_controls->clear_effects(true);
undo_stack.clear();
project_url.clear();
panel_project->new_project();
updateTitle("");
update_ui(false);
}
}
void MainWindow::on_actionSave_Project_As_triggered()
{
save_project_as();