diff options
author | David Robillard <d@drobilla.net> | 2009-02-27 17:22:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-27 17:22:00 +0000 |
commit | 35fe71915bb073f73f0717443546f47f6fcc79ba (patch) | |
tree | 3f0e0ae235b855cc57ee08a66cc52171dc9f9464 /src/gui/MachinaCanvas.cpp | |
parent | 2907c71054069302ecf8b29cf62bedf2dcccfa98 (diff) | |
download | machina-35fe71915bb073f73f0717443546f47f6fcc79ba.tar.gz machina-35fe71915bb073f73f0717443546f47f6fcc79ba.tar.bz2 machina-35fe71915bb073f73f0717443546f47f6fcc79ba.zip |
Build without eugene.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@1944 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/MachinaCanvas.cpp')
-rw-r--r-- | src/gui/MachinaCanvas.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index 26c805b..ba43b4e 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -18,11 +18,12 @@ #include <map> #include "raul/SharedPtr.hpp" #include "raul/TimeStamp.hpp" -#include "machina/Node.hpp" -#include "machina/Machine.hpp" #include "machina/Action.hpp" #include "machina/Edge.hpp" +#include "machina/Engine.hpp" #include "machina/LearnRequest.hpp" +#include "machina/Machine.hpp" +#include "machina/Node.hpp" #include "MachinaGUI.hpp" #include "MachinaCanvas.hpp" #include "NodeView.hpp" @@ -53,7 +54,7 @@ MachinaCanvas::node_clicked(WeakPtr<NodeView> item, GdkEventButton* event) // Middle click, learn if (event->button == 2) { - _app->machine()->learn(Machina::LearnRequest::create(_app->maid(), node->node())); + _app->engine()->machine()->learn(Machina::LearnRequest::create(_app->maid(), node->node())); return; } else if (event->button == 3) { SharedPtr<NodeView> last = _last_clicked.lock(); @@ -82,7 +83,7 @@ MachinaCanvas::canvas_event(GdkEvent* event) { static int last = 0; - SharedPtr<Machina::Machine> machine = _app->machine(); + SharedPtr<Machina::Machine> machine = _app->engine()->machine(); if (!machine) return false; |