diff options
author | David Robillard <d@drobilla.net> | 2007-02-09 19:19:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-09 19:19:31 +0000 |
commit | 08f17274a717c74f8f3ea6621844c40e23c323f1 (patch) | |
tree | 954638ceffe7c067afaa25d60579e8f79b983b55 | |
parent | 1359e05f9864bf420095347e46531628d1e3d683 (diff) | |
download | patchage-08f17274a717c74f8f3ea6621844c40e23c323f1.tar.gz patchage-08f17274a717c74f8f3ea6621844c40e23c323f1.tar.bz2 patchage-08f17274a717c74f8f3ea6621844c40e23c323f1.zip |
Removed data type stuff from SLV2.
Reworked event system in FlowCanvas to use signals.
Added straight connections and arrowheads to FlowCanvas, Ellipse fixes.
git-svn-id: http://svn.drobilla.net/lad/patchage@293 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/PatchageModule.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/PatchageModule.h b/src/PatchageModule.h index f9f8d11..7c27d4e 100644 --- a/src/PatchageModule.h +++ b/src/PatchageModule.h @@ -74,6 +74,10 @@ public: virtual void load_location() { + boost::shared_ptr<FlowCanvas> canvas = _canvas.lock(); + if (!canvas) + return; + Coord loc = _app->state_manager()->get_module_location(_name, _type); //cerr << "******" << _name << " MOVING TO (" << loc.x << "," << loc.y << ")" << endl; @@ -81,8 +85,8 @@ public: if (loc.x != -1) move_to(loc.x, loc.y); else - move_to((_canvas.lock()->width()/2) - 100 + rand() % 400, - (_canvas.lock()->height()/2) - 100 + rand() % 400); + move_to((canvas->width()/2) - 100 + rand() % 400, + (canvas->height()/2) - 100 + rand() % 400); } void split() { |