summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-12 01:18:02 +0000
committerDavid Robillard <d@drobilla.net>2006-06-12 01:18:02 +0000
commit5818a04533e472820f6c6748b2f07d7d1ca5789a (patch)
tree484bda78e9635613fcd44560371ce86dd6a83f2a /src
parent699d3265031702602bdf4d6748b43ff14f2af72f (diff)
downloadingen-5818a04533e472820f6c6748b2f07d7d1ca5789a.tar.gz
ingen-5818a04533e472820f6c6748b2f07d7d1ca5789a.tar.bz2
ingen-5818a04533e472820f6c6748b2f07d7d1ca5789a.zip
Control windows working
git-svn-id: http://svn.drobilla.net/lad/grauph@31 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/progs/gtk/NodeController.cpp35
-rw-r--r--src/progs/gtk/NodeController.h3
2 files changed, 1 insertions, 37 deletions
diff --git a/src/progs/gtk/NodeController.cpp b/src/progs/gtk/NodeController.cpp
index 7965c35a..cc43015d 100644
--- a/src/progs/gtk/NodeController.cpp
+++ b/src/progs/gtk/NodeController.cpp
@@ -118,38 +118,6 @@ NodeController::create_module(OmFlowCanvas* canvas)
m_module->move_to(node_model()->x(), node_model()->y());
}
-/*
-void
-NodeController::add_to_store()
-{
- // Add self
- Store::instance().add_object(this);
-
- // Add ports
- for (list<PortModel*>::const_iterator i = node_model()->ports().begin();
- i != node_model()->ports().end(); ++i) {
- //GtkObjectController* const pc = (GtkObjectController*)((*i)->controller());
- assert((*i)->controller() != NULL);
- ((GtkObjectController*)((*i)->controller()))->add_to_store();
- }
-}
-
-
-void
-NodeController::remove_from_store()
-{
- // Remove ports
- for (list<PortModel*>::const_iterator i = node_model()->ports().begin();
- i != node_model()->ports().end(); ++i) {
- GtkObjectController* const pc = (GtkObjectController*)((*i)->controller());
- assert(pc != NULL);
- pc->remove_from_store();
- }
-
- // Remove self
- Store::instance().remove_object(this);
-}
-*/
void
NodeController::set_path(const Path& new_path)
@@ -389,12 +357,11 @@ NodeController::create_all_ports()
bool
NodeController::has_control_inputs()
{
-/*
for (PortModelList::const_iterator i = node_model()->ports().begin();
i != node_model()->ports().end(); ++i)
if ((*i)->is_input() && (*i)->is_control())
return true;
-*/
+
return false;
}
diff --git a/src/progs/gtk/NodeController.h b/src/progs/gtk/NodeController.h
index 2199a9d5..54c103b5 100644
--- a/src/progs/gtk/NodeController.h
+++ b/src/progs/gtk/NodeController.h
@@ -55,9 +55,6 @@ public:
virtual void destroy();
- /*virtual void add_to_store();
- virtual void remove_from_store();*/
-
virtual void metadata_update(const string& key, const string& value);
virtual void create_module(OmFlowCanvas* canvas);