Control windows working
git-svn-id: http://svn.drobilla.net/lad@31 a436a847-0d15-0410-975c-d299462d15a1
This commit is contained in:
parent
6ca0377ab3
commit
0bb0e10b1c
|
@ -118,38 +118,6 @@ NodeController::create_module(OmFlowCanvas* canvas)
|
||||||
m_module->move_to(node_model()->x(), node_model()->y());
|
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
|
void
|
||||||
NodeController::set_path(const Path& new_path)
|
NodeController::set_path(const Path& new_path)
|
||||||
|
@ -389,12 +357,11 @@ NodeController::create_all_ports()
|
||||||
bool
|
bool
|
||||||
NodeController::has_control_inputs()
|
NodeController::has_control_inputs()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
for (PortModelList::const_iterator i = node_model()->ports().begin();
|
for (PortModelList::const_iterator i = node_model()->ports().begin();
|
||||||
i != node_model()->ports().end(); ++i)
|
i != node_model()->ports().end(); ++i)
|
||||||
if ((*i)->is_input() && (*i)->is_control())
|
if ((*i)->is_input() && (*i)->is_control())
|
||||||
return true;
|
return true;
|
||||||
*/
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,9 +55,6 @@ public:
|
||||||
|
|
||||||
virtual void destroy();
|
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 metadata_update(const string& key, const string& value);
|
||||||
|
|
||||||
virtual void create_module(OmFlowCanvas* canvas);
|
virtual void create_module(OmFlowCanvas* canvas);
|
||||||
|
|
Loading…
Reference in New Issue