diff --git a/mainwindow.cpp b/mainwindow.cpp
index 9e01514f6..7bb462e35 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -47,7 +47,9 @@ void MainWindow::setup_layout() {
addDockWidget(Qt::TopDockWidgetArea, panel_project);
addDockWidget(Qt::TopDockWidgetArea, panel_effect_controls);
addDockWidget(Qt::TopDockWidgetArea, panel_viewer);
- addDockWidget(Qt::BottomDockWidgetArea, panel_timeline);
+ addDockWidget(Qt::BottomDockWidgetArea, panel_timeline);
+
+ resizeDocks({panel_project}, {40}, Qt::Horizontal);
}
MainWindow::MainWindow(QWidget *parent) :
@@ -84,7 +86,6 @@ MainWindow::MainWindow(QWidget *parent) :
setWindowTitle("Olive (August 2018 | Alpha)");
statusBar()->showMessage("Welcome to Olive");
- ui->centralWidget->setMaximumSize(0, 0);
setDockNestingEnabled(true);
// TODO maybe replace these with non-pointers later on?
@@ -398,42 +399,42 @@ void MainWindow::on_actionDeselect_All_triggered()
}
}
-void MainWindow::on_actionGo_to_start_triggered()
-{
- if (panel_timeline->focused() || panel_viewer->hasFocus()) {
- panel_timeline->go_to_start();
- }
-}
-
void MainWindow::on_actionReset_to_default_layout_triggered()
{
setup_layout();
}
+void MainWindow::on_actionGo_to_start_triggered()
+{
+ if (panel_timeline->focused() || panel_viewer->hasFocus() || panel_effect_controls->keyframe_focus()) {
+ panel_timeline->go_to_start();
+ }
+}
+
void MainWindow::on_actionPrevious_Frame_triggered()
{
- if (panel_timeline->focused() || panel_viewer->hasFocus()) {
+ if (panel_timeline->focused() || panel_viewer->hasFocus() || panel_effect_controls->keyframe_focus()) {
panel_timeline->previous_frame();
}
}
void MainWindow::on_actionNext_Frame_triggered()
{
- if (panel_timeline->focused() || panel_viewer->hasFocus()) {
+ if (panel_timeline->focused() || panel_viewer->hasFocus() || panel_effect_controls->keyframe_focus()) {
panel_timeline->next_frame();
}
}
void MainWindow::on_actionGo_to_End_triggered()
{
- if (panel_timeline->focused() || panel_viewer->hasFocus()) {
+ if (panel_timeline->focused() || panel_viewer->hasFocus() || panel_effect_controls->keyframe_focus()) {
panel_timeline->go_to_end();
}
}
void MainWindow::on_actionPlay_Pause_triggered()
{
- if (panel_timeline->focused() || panel_viewer->hasFocus()) {
+ if (panel_timeline->focused() || panel_viewer->hasFocus() || panel_effect_controls->keyframe_focus()) {
panel_timeline->toggle_play();
}
}
diff --git a/mainwindow.ui b/mainwindow.ui
index 14579a075..7fa42b5c3 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -17,7 +17,20 @@
:/icons/full-icon.png:/icons/full-icon.png
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+