refactored some classes

This commit is contained in:
itsmattkc
2019-05-08 00:41:44 +10:00
parent 127a773c54
commit 9a13776b2c
133 changed files with 1698 additions and 1627 deletions
+2 -2
View File
@@ -22,10 +22,10 @@
#include <QCheckBox>
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "undo/undo.h"
BoolField::BoolField(EffectRow *parent) :
BoolField::BoolField(NodeIO *parent) :
EffectField(parent, EffectField::EFFECT_FIELD_BOOL)
{}
+1 -1
View File
@@ -35,7 +35,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
BoolField(EffectRow* parent);
BoolField(NodeIO* parent);
/**
* @brief Get the boolean value at a given timecode
+1 -1
View File
@@ -22,7 +22,7 @@
#include <QPushButton>
ButtonField::ButtonField(EffectRow *parent, const QString &string) :
ButtonField::ButtonField(NodeIO *parent, const QString &string) :
EffectField(parent, EffectField::EFFECT_FIELD_UI),
button_text_(string)
{}
+1 -1
View File
@@ -42,7 +42,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
ButtonField(EffectRow* parent, const QString& string);
ButtonField(NodeIO* parent, const QString& string);
/**
* @brief Set whether this pushbutton is checkable
+2 -2
View File
@@ -23,10 +23,10 @@
#include <QColor>
#include "ui/colorbutton.h"
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "undo/undo.h"
ColorField::ColorField(EffectRow* parent) :
ColorField::ColorField(NodeIO* parent) :
EffectField(parent, EffectField::EFFECT_FIELD_COLOR)
{}
+1 -1
View File
@@ -35,7 +35,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
ColorField(EffectRow* parent);
ColorField(NodeIO* parent);
/**
* @brief Get the color value at a given timecode
+2 -2
View File
@@ -22,11 +22,11 @@
#include <QDebug>
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "ui/comboboxex.h"
#include "undo/undo.h"
ComboField::ComboField(EffectRow* parent) :
ComboField::ComboField(NodeIO* parent) :
EffectField(parent, EffectField::EFFECT_FIELD_COMBO)
{}
+1 -1
View File
@@ -48,7 +48,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
ComboField(EffectRow* parent);
ComboField(NodeIO* parent);
/**
* @brief Add an item to this ComboField
+2 -2
View File
@@ -20,10 +20,10 @@
#include "doublefield.h"
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "undo/undo.h"
DoubleField::DoubleField(EffectRow* parent) :
DoubleField::DoubleField(NodeIO* parent) :
EffectField(parent, EffectField::EFFECT_FIELD_DOUBLE),
min_(qSNaN()),
max_(qSNaN()),
+1 -1
View File
@@ -39,7 +39,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
DoubleField(EffectRow* parent);
DoubleField(NodeIO* parent);
/**
* @brief Get double value at timecode
+2 -2
View File
@@ -23,10 +23,10 @@
#include <QDebug>
#include "ui/embeddedfilechooser.h"
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "undo/undo.h"
FileField::FileField(EffectRow* parent) :
FileField::FileField(NodeIO* parent) :
EffectField(parent, EffectField::EFFECT_FIELD_FILE)
{
// Set default value to an empty string
+1 -1
View File
@@ -36,7 +36,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
FileField(EffectRow* parent);
FileField(NodeIO* parent);
/**
* @brief Get the filename at the given timecode
+2 -2
View File
@@ -24,12 +24,12 @@
#include <QDebug>
#include "ui/comboboxex.h"
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "undo/undo.h"
// NOTE/TODO: This shares a lot of similarity with ComboInput, and could probably be a derived class of it
FontField::FontField(EffectRow* parent) :
FontField::FontField(NodeIO* parent) :
EffectField(parent, EffectField::EFFECT_FIELD_FONT)
{
font_list = QFontDatabase().families();
+1 -1
View File
@@ -37,7 +37,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
FontField(EffectRow* parent);
FontField(NodeIO* parent);
/**
* @brief Get the font family name at the given timecode
+1 -1
View File
@@ -22,7 +22,7 @@
#include <QLabel>
LabelField::LabelField(EffectRow *parent, const QString &string) :
LabelField::LabelField(NodeIO *parent, const QString &string) :
EffectField(parent, EffectField::EFFECT_FIELD_UI),
label_text_(string)
{}
+1 -1
View File
@@ -37,7 +37,7 @@ public:
/**
* @brief Reimplementation of EffectField::EffectField().
*/
LabelField(EffectRow* parent, const QString& string);
LabelField(NodeIO* parent, const QString& string);
/**
* @brief Reimplementation of EffectField::CreateWidget()
+2 -2
View File
@@ -23,12 +23,12 @@
#include <QtMath>
#include <QDebug>
#include "nodes/node.h"
#include "nodes/oldeffectnode.h"
#include "ui/texteditex.h"
#include "global/config.h"
#include "undo/undo.h"
StringField::StringField(EffectRow* parent, bool rich_text) :
StringField::StringField(NodeIO* parent, bool rich_text) :
EffectField(parent, EffectField::EFFECT_FIELD_STRING),
rich_text_(rich_text)
{
+1 -1
View File
@@ -39,7 +39,7 @@ public:
* Provides a setting for whether this StringField - and its attached TextEditEx objects - should operate in rich
* text or plain text mode, defaulting to rich text mode.
*/
StringField(EffectRow* parent, bool rich_text = true);
StringField(NodeIO* parent, bool rich_text = true);
/**
* @brief Get the string at the given timecode