summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeControlWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-22 03:08:06 +0000
committerDavid Robillard <d@drobilla.net>2011-10-22 03:08:06 +0000
commitac1d6d135bda8d739fdb8bf564f89c38b664c097 (patch)
treed750da79dd88b64ab2a88cca1651c2a5a240bd72 /src/gui/NodeControlWindow.cpp
parent143968e38cc2f058dd7c500e984904a39864d652 (diff)
downloadingen-ac1d6d135bda8d739fdb8bf564f89c38b664c097.tar.gz
ingen-ac1d6d135bda8d739fdb8bf564f89c38b664c097.tar.bz2
ingen-ac1d6d135bda8d739fdb8bf564f89c38b664c097.zip
De-singleton-ify GUI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3584 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeControlWindow.cpp')
-rw-r--r--src/gui/NodeControlWindow.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/NodeControlWindow.cpp b/src/gui/NodeControlWindow.cpp
index 97f81e69..2af13b98 100644
--- a/src/gui/NodeControlWindow.cpp
+++ b/src/gui/NodeControlWindow.cpp
@@ -33,7 +33,8 @@ namespace GUI {
/** Create a node control window and load a new ControlPanel for it.
*/
-NodeControlWindow::NodeControlWindow(SharedPtr<const NodeModel> node,
+NodeControlWindow::NodeControlWindow(App& app,
+ SharedPtr<const NodeModel> node,
uint32_t poly)
: _node(node)
, _position_stored(false)
@@ -53,7 +54,7 @@ NodeControlWindow::NodeControlWindow(SharedPtr<const NodeModel> node,
show_all_children();
_control_panel->reparent(*this);
- _control_panel->init(_node, poly);
+ _control_panel->init(app, _node, poly);
_control_panel->show();
resize();
@@ -63,7 +64,8 @@ NodeControlWindow::NodeControlWindow(SharedPtr<const NodeModel> node,
/** Create a node control window and with an existing ControlPanel.
*/
-NodeControlWindow::NodeControlWindow(SharedPtr<const NodeModel> node,
+NodeControlWindow::NodeControlWindow(App& app,
+ SharedPtr<const NodeModel> node,
ControlPanel* panel)
: _node(node)
, _control_panel(panel)