node socket UI

This commit is contained in:
itsmattkc
2019-04-11 11:48:20 +10:00
parent 358d1ba16a
commit 1285d70c62
14 changed files with 103 additions and 11 deletions
+2
View File
@@ -6,6 +6,8 @@ BoolInput::BoolInput(Effect* parent, const QString& id, const QString& name, boo
BoolField* bool_field = new BoolField(this);
connect(bool_field, SIGNAL(Toggled(bool)), this, SIGNAL(Toggled(bool)));
AddField(bool_field);
AddNodeInput(olive::nodes::kBoolean);
}
bool BoolInput::GetBoolAt(double timecode)
+2
View File
@@ -4,6 +4,8 @@ ColorInput::ColorInput(Effect* parent, const QString& id, const QString& name, b
EffectRow(parent, id, name, savable, keyframable)
{
AddField(new ColorField(this));
AddNodeInput(olive::nodes::kColor);
}
QColor ColorInput::GetColorAt(double timecode)
+2
View File
@@ -6,6 +6,8 @@ ComboInput::ComboInput(Effect* parent, const QString& id, const QString& name, b
ComboField* combo_field = new ComboField(this);
connect(combo_field, SIGNAL(DataChanged(const QVariant&)), this, SIGNAL(DataChanged(const QVariant&)));
AddField(combo_field);
AddNodeInput(olive::nodes::kCombo);
}
void ComboInput::AddItem(const QString &text, const QVariant &data)
+2
View File
@@ -4,6 +4,8 @@ FileInput::FileInput(Effect* parent, const QString& id, const QString& name, boo
EffectRow(parent, id, name, savable, keyframable)
{
AddField(new FileField(this));
AddNodeInput(olive::nodes::kFile);
}
QString FileInput::GetFileAt(double timecode)
+2
View File
@@ -4,6 +4,8 @@ FontInput::FontInput(Effect* parent, const QString& id, const QString& name, boo
EffectRow(parent, id, name, savable, keyframable)
{
AddField(new FontField(this));
AddNodeInput(olive::nodes::kFont);
}
QString FontInput::GetFontAt(double timecode)
+2
View File
@@ -4,6 +4,8 @@ StringInput::StringInput(Effect* parent, const QString& id, const QString& name,
EffectRow(parent, id, name, savable, keyframable)
{
AddField(new StringField(this, rich_text));
AddNodeInput(olive::nodes::kString);
}
QString StringInput::GetStringAt(double timecode)
+11
View File
@@ -14,6 +14,17 @@ VecInput::VecInput(Effect* parent, const QString& id, const QString& name, int v
for (int i=0;i<values_;i++) {
AddField(new DoubleField(this));
}
AddNodeInput(olive::nodes::kFloat);
if (values > 1) {
AddNodeInput(olive::nodes::kVec2);
}
if (values > 2) {
AddNodeInput(olive::nodes::kVec3);
}
if (values > 3) {
AddNodeInput(olive::nodes::kVec4);
}
}
void VecInput::SetMinimum(double minimum)