separated setting time and processing node functions

This commit is contained in:
itsmattkc
2019-08-27 23:38:24 +10:00
parent 35db54075d
commit b9ce02a0ec
29 changed files with 146 additions and 109 deletions
@@ -91,7 +91,7 @@ void NodeParamViewWidgetBridge::CreateWidgets()
footage_combobox->SetRoot(pp->project()->root());
// Use multiple values
footage_combobox->SetFootage(Node::ValueToPtr<Footage>(base_input->get_value(Now())));
footage_combobox->SetFootage(Node::ValueToPtr<Footage>(base_input->get_value()));
connect(footage_combobox, SIGNAL(FootageChanged(Footage*)), this, SLOT(WidgetCallback()));
// End test code
@@ -103,12 +103,6 @@ void NodeParamViewWidgetBridge::CreateWidgets()
}
}
rational NodeParamViewWidgetBridge::Now()
{
// FIXME: Actually implement this
return 0;
}
void NodeParamViewWidgetBridge::WidgetCallback()
{
foreach (NodeInput* input, inputs_) {
@@ -155,7 +149,7 @@ void NodeParamViewWidgetBridge::WidgetCallback()
{
// Widget is a FootageComboBox
FootageComboBox* footage_combobox = static_cast<FootageComboBox*>(sender());
input->set_value(Now(), Node::PtrToValue(footage_combobox->SelectedFootage()));
input->set_value(Node::PtrToValue(footage_combobox->SelectedFootage()));
break;
}
}
@@ -22,8 +22,6 @@ private:
void CreateWidgets();
rational Now();
private slots:
void WidgetCallback();
};