From 9a95319161d33c09ac31d6b4af03175ff66ab0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 15 Mar 2024 20:40:07 +0100 Subject: [PATCH] Move to ui --- src/app/CMakeLists.txt | 2 -- src/app/GUI/Dialogs/applyexpressiondialog.cpp | 2 +- src/app/GUI/Dialogs/durationrectsettingsdialog.cpp | 2 +- src/app/GUI/Dialogs/exportsvgdialog.cpp | 2 +- src/app/GUI/RenderWidgets/outputsettingsdialog.h | 2 +- src/app/GUI/Settings/canvassettingswidget.cpp | 2 +- src/ui/CMakeLists.txt | 2 ++ src/{app/GUI => ui/widgets}/twocolumnlayout.cpp | 0 src/{app/GUI => ui/widgets}/twocolumnlayout.h | 9 +++++++-- 9 files changed, 14 insertions(+), 9 deletions(-) rename src/{app/GUI => ui/widgets}/twocolumnlayout.cpp (100%) rename src/{app/GUI => ui/widgets}/twocolumnlayout.h (94%) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 4aec26fe2..96ba6e16b 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -203,7 +203,6 @@ set( GUI/timelinehighlightwidget.cpp GUI/timelinewidget.cpp GUI/timelinewrappernode.cpp - GUI/twocolumnlayout.cpp GUI/welcomedialog.cpp GUI/widgetstack.cpp GUI/ColorWidgets/colorlabel.cpp @@ -314,7 +313,6 @@ set( GUI/timelinehighlightwidget.h GUI/timelinewidget.h GUI/timelinewrappernode.h - GUI/twocolumnlayout.h GUI/welcomedialog.h GUI/widgetstack.h GUI/ColorWidgets/colorlabel.h diff --git a/src/app/GUI/Dialogs/applyexpressiondialog.cpp b/src/app/GUI/Dialogs/applyexpressiondialog.cpp index a9599952e..5ea054a19 100755 --- a/src/app/GUI/Dialogs/applyexpressiondialog.cpp +++ b/src/app/GUI/Dialogs/applyexpressiondialog.cpp @@ -28,7 +28,7 @@ #include #include -#include "GUI/twocolumnlayout.h" +#include "widgets/twocolumnlayout.h" #include "GUI/global.h" #include "canvas.h" #include "Private/document.h" diff --git a/src/app/GUI/Dialogs/durationrectsettingsdialog.cpp b/src/app/GUI/Dialogs/durationrectsettingsdialog.cpp index f951a1e61..9c9821880 100755 --- a/src/app/GUI/Dialogs/durationrectsettingsdialog.cpp +++ b/src/app/GUI/Dialogs/durationrectsettingsdialog.cpp @@ -24,7 +24,7 @@ // Fork of enve - Copyright (C) 2016-2020 Maurycy Liebner #include "durationrectsettingsdialog.h" -#include "../twocolumnlayout.h" +#include "widgets/twocolumnlayout.h" #include diff --git a/src/app/GUI/Dialogs/exportsvgdialog.cpp b/src/app/GUI/Dialogs/exportsvgdialog.cpp index 227a921ac..f5ba4456c 100755 --- a/src/app/GUI/Dialogs/exportsvgdialog.cpp +++ b/src/app/GUI/Dialogs/exportsvgdialog.cpp @@ -27,7 +27,7 @@ #include "canvas.h" #include "svgexporter.h" #include "GUI/edialogs.h" -#include "GUI/twocolumnlayout.h" +#include "widgets/twocolumnlayout.h" #include "appsupport.h" #include diff --git a/src/app/GUI/RenderWidgets/outputsettingsdialog.h b/src/app/GUI/RenderWidgets/outputsettingsdialog.h index 56f61e49a..af442ef86 100755 --- a/src/app/GUI/RenderWidgets/outputsettingsdialog.h +++ b/src/app/GUI/RenderWidgets/outputsettingsdialog.h @@ -34,7 +34,7 @@ #include #include #include "renderinstancesettings.h" -#include "GUI/twocolumnlayout.h" +#include "widgets/twocolumnlayout.h" #define COMPLIENCE FF_COMPLIANCE_NORMAL class OutputSettingsDialog : public QDialog { diff --git a/src/app/GUI/Settings/canvassettingswidget.cpp b/src/app/GUI/Settings/canvassettingswidget.cpp index cde39c59d..cc9280696 100644 --- a/src/app/GUI/Settings/canvassettingswidget.cpp +++ b/src/app/GUI/Settings/canvassettingswidget.cpp @@ -28,7 +28,7 @@ #include "Private/esettings.h" #include "labeledslider.h" #include "GUI/coloranimatorbutton.h" -#include "GUI/twocolumnlayout.h" +#include "widgets/twocolumnlayout.h" #include diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt index dcff72ea6..eeecb3c3f 100644 --- a/src/ui/CMakeLists.txt +++ b/src/ui/CMakeLists.txt @@ -42,6 +42,7 @@ set( widgets/ecombobox.cpp widgets/editablecombobox.cpp widgets/buttonbase.cpp + widgets/twocolumnlayout.cpp widgets/uilayout.cpp ) @@ -55,6 +56,7 @@ set( widgets/ecombobox.h widgets/editablecombobox.h widgets/toolbutton.h + widgets/twocolumnlayout.h widgets/uilayout.h widgets/vlabel.h ) diff --git a/src/app/GUI/twocolumnlayout.cpp b/src/ui/widgets/twocolumnlayout.cpp similarity index 100% rename from src/app/GUI/twocolumnlayout.cpp rename to src/ui/widgets/twocolumnlayout.cpp diff --git a/src/app/GUI/twocolumnlayout.h b/src/ui/widgets/twocolumnlayout.h similarity index 94% rename from src/app/GUI/twocolumnlayout.h rename to src/ui/widgets/twocolumnlayout.h index 90a83ceb1..51f1ee88d 100755 --- a/src/app/GUI/twocolumnlayout.h +++ b/src/ui/widgets/twocolumnlayout.h @@ -25,8 +25,13 @@ #ifndef TWOCOLUMNLAYOUT_H #define TWOCOLUMNLAYOUT_H + +#include "ui_global.h" + #include -class TwoColumnLayout : public QHBoxLayout { + +class UI_EXPORT TwoColumnLayout : public QHBoxLayout +{ public: TwoColumnLayout(); @@ -34,8 +39,8 @@ class TwoColumnLayout : public QHBoxLayout { void addWidgetToSecondColumn(QWidget *wid); void addPair(QWidget *column1, QWidget *column2); void addPair(QWidget *column1, QLayout *column2); - void addSpacing(const int size); + protected: QVBoxLayout *mLayout1 = nullptr; QVBoxLayout *mLayout2 = nullptr;