aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/MachinaCanvas.cpp6
-rw-r--r--src/gui/MachinaGUI.cpp5
-rw-r--r--src/gui/NodeView.cpp4
3 files changed, 11 insertions, 4 deletions
diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp
index 7a26ef0..627eb09 100644
--- a/src/gui/MachinaCanvas.cpp
+++ b/src/gui/MachinaCanvas.cpp
@@ -133,7 +133,11 @@ MachinaCanvas::on_new_object(SPtr<client::ClientObject> object)
object->get(uris.machina_head_id).get_int32());
if (!tail || !head) {
- std::cerr << "Invalid arc" << std::endl;
+ std::cerr << "Invalid arc "
+ << object->get(uris.machina_tail_id).get_int32()
+ << " => "
+ << object->get(uris.machina_head_id).get_int32()
+ << std::endl;
return;
}
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index 376f42e..d963217 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -543,7 +543,6 @@ MachinaGUI::menu_import_midi()
dialog.hide();
machine->activate();
machine->reset(NULL, machine->time());
- //_canvas->build(machine, _menu_view_labels->get_active());
_engine->driver()->set_machine(machine);
_controller->announce(machine);
} else {
@@ -663,7 +662,7 @@ MachinaGUI::record_toggled()
_engine->driver()->start_record(_step_record_checkbutton->get_active());
} else if (_engine->driver()->recording()) {
_engine->driver()->finish_record();
- //_canvas->build(_engine->machine(), _menu_view_labels->get_active());
+ _controller->announce(_engine->machine());
update_toolbar();
}
}
@@ -676,7 +675,7 @@ MachinaGUI::stop_clicked()
if (_engine->driver()->recording()) {
_engine->driver()->stop();
_engine->machine()->deactivate();
- //_canvas->build(_engine->machine(), _menu_view_labels->get_active());
+ _controller->announce(_engine->machine());
} else {
_engine->driver()->stop();
_engine->machine()->deactivate();
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp
index 674531c..552bd21 100644
--- a/src/gui/NodeView.cpp
+++ b/src/gui/NodeView.cpp
@@ -47,6 +47,10 @@ NodeView::NodeView(Gtk::Window* window,
node->signal_property.connect(
sigc::mem_fun(this, &NodeView::on_property));
+
+ for (const auto& p : node->properties()) {
+ on_property(p.first, p.second);
+ }
}
bool