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
This commit is contained in:
parent
8938ed396a
commit
bc8910a3f0
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue