summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-08 03:56:42 +0000
committerDavid Robillard <d@drobilla.net>2007-02-08 03:56:42 +0000
commit4dadc006c0cc54ad51b9ff330766915bbda933bc (patch)
tree628c844b9b2a185a86bb2cef689b295337bbc9fb /src/progs/ingenuity
parentf8a5209e101db5b0fa2dfcc1893009f4876802e2 (diff)
downloadingen-4dadc006c0cc54ad51b9ff330766915bbda933bc.tar.gz
ingen-4dadc006c0cc54ad51b9ff330766915bbda933bc.tar.bz2
ingen-4dadc006c0cc54ad51b9ff330766915bbda933bc.zip
Circular nodes in FlowCanvas, related necessary redesign work and changes for API update.
Beginnings of a Machina GUI. git-svn-id: http://svn.drobilla.net/lad/ingen@290 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity')
-rw-r--r--src/progs/ingenuity/PatchCanvas.cpp18
-rw-r--r--src/progs/ingenuity/PatchCanvas.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp
index f3ea971a..c15ba4b8 100644
--- a/src/progs/ingenuity/PatchCanvas.cpp
+++ b/src/progs/ingenuity/PatchCanvas.cpp
@@ -108,7 +108,7 @@ PatchCanvas::build()
// Create pseudo modules for ports (ports on this canvas, not on our module)
for (PortModelList::const_iterator i = _patch->ports().begin();
i != _patch->ports().end(); ++i) {
- add_module(PatchPortModule::create(shared_this, *i));
+ add_item(PatchPortModule::create(shared_this, *i));
}
// Create connections
@@ -127,16 +127,16 @@ PatchCanvas::add_node(SharedPtr<NodeModel> nm)
SharedPtr<PatchModel> pm = PtrCast<PatchModel>(nm);
if (pm)
- add_module(SubpatchModule::create(shared_this, pm));
+ add_item(SubpatchModule::create(shared_this, pm));
else
- add_module(NodeModule::create(shared_this, nm));
+ add_item(NodeModule::create(shared_this, nm));
}
void
PatchCanvas::remove_node(SharedPtr<NodeModel> nm)
{
- remove_module(nm->path().name()); // should cut all references
+ remove_item(nm->path().name()); // should cut all references
}
@@ -146,14 +146,14 @@ PatchCanvas::add_port(SharedPtr<PortModel> pm)
boost::shared_ptr<PatchCanvas> shared_this =
boost::dynamic_pointer_cast<PatchCanvas>(shared_from_this());
- add_module(PatchPortModule::create(shared_this, pm));
+ add_item(PatchPortModule::create(shared_this, pm));
}
void
PatchCanvas::remove_port(SharedPtr<PortModel> pm)
{
- remove_module(pm->path().name()); // should cut all references
+ remove_item(pm->path().name()); // should cut all references
}
@@ -286,7 +286,7 @@ PatchCanvas::disconnect(boost::shared_ptr<LibFlowCanvas::Connectable> src_port,
bool
PatchCanvas::canvas_event(GdkEvent* event)
{
- assert(event != NULL);
+ assert(event);
switch (event->type) {
@@ -315,7 +315,7 @@ PatchCanvas::canvas_event(GdkEvent* event)
void
PatchCanvas::destroy_selection()
{
- for (list<boost::shared_ptr<Module> >::iterator m = _selected_modules.begin(); m != _selected_modules.end(); ++m) {
+ for (list<boost::shared_ptr<Item> >::iterator m = _selected_items.begin(); m != _selected_items.end(); ++m) {
boost::shared_ptr<NodeModule> module = boost::dynamic_pointer_cast<NodeModule>(*m);
if (module) {
App::instance().engine()->destroy(module->node()->path());
@@ -335,7 +335,7 @@ PatchCanvas::copy_selection()
Serializer serializer;
serializer.start_to_string();
- for (list<boost::shared_ptr<Module> >::iterator m = _selected_modules.begin(); m != _selected_modules.end(); ++m) {
+ for (list<boost::shared_ptr<Item> >::iterator m = _selected_items.begin(); m != _selected_items.end(); ++m) {
boost::shared_ptr<NodeModule> module = boost::dynamic_pointer_cast<NodeModule>(*m);
if (module) {
serializer.serialize(module->node());
diff --git a/src/progs/ingenuity/PatchCanvas.h b/src/progs/ingenuity/PatchCanvas.h
index 16c00d6d..56b463eb 100644
--- a/src/progs/ingenuity/PatchCanvas.h
+++ b/src/progs/ingenuity/PatchCanvas.h
@@ -56,7 +56,7 @@ public:
boost::shared_ptr<NodeModule> find_module(const string& name) {
return boost::dynamic_pointer_cast<NodeModule>(
- FlowCanvas::get_module(name));
+ FlowCanvas::get_item(name));
}
void build();