separated setting time and processing node functions
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user