Skip to content

Commit

Permalink
Move to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 15, 2024
1 parent 3b8e30b commit 9a95319
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/Dialogs/applyexpressiondialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <QDialogButtonBox>
#include <QLabel>

#include "GUI/twocolumnlayout.h"
#include "widgets/twocolumnlayout.h"
#include "GUI/global.h"
#include "canvas.h"
#include "Private/document.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/Dialogs/durationrectsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// Fork of enve - Copyright (C) 2016-2020 Maurycy Liebner

#include "durationrectsettingsdialog.h"
#include "../twocolumnlayout.h"
#include "widgets/twocolumnlayout.h"

#include <QDialogButtonBox>

Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/Dialogs/exportsvgdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <QVBoxLayout>
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/RenderWidgets/outputsettingsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <QGroupBox>
#include <QCheckBox>
#include "renderinstancesettings.h"
#include "GUI/twocolumnlayout.h"
#include "widgets/twocolumnlayout.h"
#define COMPLIENCE FF_COMPLIANCE_NORMAL

class OutputSettingsDialog : public QDialog {
Expand Down
2 changes: 1 addition & 1 deletion src/app/GUI/Settings/canvassettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "Private/esettings.h"
#include "labeledslider.h"
#include "GUI/coloranimatorbutton.h"
#include "GUI/twocolumnlayout.h"
#include "widgets/twocolumnlayout.h"

#include <QLabel>

Expand Down
2 changes: 2 additions & 0 deletions src/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ set(
widgets/ecombobox.cpp
widgets/editablecombobox.cpp
widgets/buttonbase.cpp
widgets/twocolumnlayout.cpp
widgets/uilayout.cpp
)

Expand All @@ -55,6 +56,7 @@ set(
widgets/ecombobox.h
widgets/editablecombobox.h
widgets/toolbutton.h
widgets/twocolumnlayout.h
widgets/uilayout.h
widgets/vlabel.h
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,22 @@

#ifndef TWOCOLUMNLAYOUT_H
#define TWOCOLUMNLAYOUT_H

#include "ui_global.h"

#include <QHBoxLayout>
class TwoColumnLayout : public QHBoxLayout {

class UI_EXPORT TwoColumnLayout : public QHBoxLayout
{
public:
TwoColumnLayout();

void addWidgetToFirstColumn(QWidget *wid);
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;
Expand Down

0 comments on commit 9a95319

Please sign in to comment.