ported functions to new node type
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <QCheckBox>
|
||||
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "undo/undo.h"
|
||||
|
||||
BoolField::BoolField(NodeIO *parent) :
|
||||
@@ -92,7 +92,7 @@ void BoolField::UpdateFromWidget(bool b)
|
||||
{
|
||||
KeyframeDataChange* kdc = new KeyframeDataChange(this);
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), b);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), b);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::undo_stack.push(kdc);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <QColor>
|
||||
|
||||
#include "ui/colorbutton.h"
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "undo/undo.h"
|
||||
|
||||
ColorField::ColorField(NodeIO* parent) :
|
||||
@@ -66,7 +66,7 @@ void ColorField::UpdateFromWidget(const QColor& c)
|
||||
{
|
||||
KeyframeDataChange* kdc = new KeyframeDataChange(this);
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), c);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), c);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::undo_stack.push(kdc);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "ui/comboboxex.h"
|
||||
#include "undo/undo.h"
|
||||
|
||||
@@ -86,7 +86,7 @@ void ComboField::UpdateFromWidget(int index)
|
||||
{
|
||||
KeyframeDataChange* kdc = new KeyframeDataChange(this);
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), items_.at(index).data);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), items_.at(index).data);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::undo_stack.push(kdc);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "doublefield.h"
|
||||
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "undo/undo.h"
|
||||
|
||||
DoubleField::DoubleField(NodeIO* parent) :
|
||||
@@ -139,7 +139,7 @@ void DoubleField::UpdateFromWidget(double d)
|
||||
kdc_ = new KeyframeDataChange(this);
|
||||
}
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), d);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), d);
|
||||
|
||||
if (!ls->IsDragging() && kdc_ != nullptr) {
|
||||
kdc_->SetNewKeyframes();
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <QDebug>
|
||||
|
||||
#include "ui/embeddedfilechooser.h"
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "undo/undo.h"
|
||||
|
||||
FileField::FileField(NodeIO* parent) :
|
||||
@@ -61,7 +61,7 @@ void FileField::UpdateFromWidget(const QString &s)
|
||||
{
|
||||
KeyframeDataChange* kdc = new KeyframeDataChange(this);
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), s);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), s);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::undo_stack.push(kdc);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <QDebug>
|
||||
|
||||
#include "ui/comboboxex.h"
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "undo/undo.h"
|
||||
|
||||
// NOTE/TODO: This shares a lot of similarity with ComboInput, and could probably be a derived class of it
|
||||
@@ -88,7 +88,7 @@ void FontField::UpdateFromWidget(const QString& s)
|
||||
{
|
||||
KeyframeDataChange* kdc = new KeyframeDataChange(this);
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), s);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), s);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::undo_stack.push(kdc);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <QtMath>
|
||||
#include <QDebug>
|
||||
|
||||
#include "nodes/oldeffectnode.h"
|
||||
#include "nodes/node.h"
|
||||
#include "ui/texteditex.h"
|
||||
#include "global/config.h"
|
||||
#include "undo/undo.h"
|
||||
@@ -94,7 +94,7 @@ void StringField::UpdateFromWidget(const QString &s)
|
||||
{
|
||||
KeyframeDataChange* kdc = new KeyframeDataChange(this);
|
||||
|
||||
SetValueAt(GetParentRow()->GetParentEffect()->Now(), s);
|
||||
SetValueAt(GetParentRow()->ParentNode()->Time(), s);
|
||||
|
||||
kdc->SetNewKeyframes();
|
||||
olive::undo_stack.push(kdc);
|
||||
|
||||
Reference in New Issue
Block a user