diff options
author | David Robillard <d@drobilla.net> | 2010-12-18 19:23:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-18 19:23:09 +0000 |
commit | 2b5adf2b6c8c5fa44fec0a09c351a8b4954d06d4 (patch) | |
tree | 397270f19e309e49fce1e372f4f029f3667e9321 /src/gui | |
parent | 4fcb110d5ff7cf834e305c12023006caa0bce3bd (diff) | |
download | machina-2b5adf2b6c8c5fa44fec0a09c351a8b4954d06d4.tar.gz machina-2b5adf2b6c8c5fa44fec0a09c351a8b4954d06d4.tar.bz2 machina-2b5adf2b6c8c5fa44fec0a09c351a8b4954d06d4.zip |
Remove LearnRequest from public engine API.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2763 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/MachinaCanvas.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index 680da66..dc80f52 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -16,18 +16,20 @@ */ #include <map> + #include "raul/SharedPtr.hpp" #include "raul/TimeStamp.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 "EdgeView.hpp" #include "MachinaCanvas.hpp" +#include "MachinaGUI.hpp" #include "NodeView.hpp" -#include "EdgeView.hpp" using namespace Raul; using namespace FlowCanvas; @@ -54,7 +56,7 @@ MachinaCanvas::node_clicked(WeakPtr<NodeView> item, GdkEventButton* event) // Middle click, learn if (event->button == 2) { - _app->engine()->machine()->learn(Machina::LearnRequest::create(_app->maid(), node->node())); + _app->engine()->machine()->learn(_app->maid(), node->node()); return; } else if (event->button == 3) { SharedPtr<NodeView> last = _last_clicked.lock(); |