summaryrefslogtreecommitdiffstats
path: root/src/gui/WindowFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/WindowFactory.cpp')
-rw-r--r--src/gui/WindowFactory.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/gui/WindowFactory.cpp b/src/gui/WindowFactory.cpp
index fe3e2053..adcdd131 100644
--- a/src/gui/WindowFactory.cpp
+++ b/src/gui/WindowFactory.cpp
@@ -22,7 +22,6 @@
#include "LoadPatchWindow.hpp"
#include "LoadPluginWindow.hpp"
#include "NewSubpatchWindow.hpp"
-#include "NodeControlWindow.hpp"
#include "PropertiesWindow.hpp"
#include "PatchView.hpp"
#include "PatchWindow.hpp"
@@ -63,11 +62,6 @@ WindowFactory::~WindowFactory()
for (PatchWindowMap::iterator i = _patch_windows.begin();
i != _patch_windows.end(); ++i)
delete i->second;
-
- for (ControlWindowMap::iterator i = _control_windows.begin();
- i != _control_windows.end(); ++i)
- delete i->second;
-
}
void
@@ -78,12 +72,6 @@ WindowFactory::clear()
delete i->second;
_patch_windows.clear();
-
- for (ControlWindowMap::iterator i = _control_windows.begin();
- i != _control_windows.end(); ++i)
- delete i->second;
-
- _control_windows.clear();
}
/** Returns the number of Patch windows currently visible.
@@ -131,14 +119,6 @@ WindowFactory::parent_patch_window(SharedPtr<const NodeModel> node)
return patch_window(PtrCast<PatchModel>(node->parent()));
}
-NodeControlWindow*
-WindowFactory::control_window(SharedPtr<const NodeModel> node)
-{
- ControlWindowMap::iterator w = _control_windows.find(node->path());
-
- return (w == _control_windows.end()) ? NULL : w->second;
-}
-
/** Present a PatchWindow for a Patch.
*
* If @a preferred is not NULL, it will be set to display @a patch if the patch
@@ -207,49 +187,6 @@ WindowFactory::remove_patch_window(PatchWindow* win, GdkEventAny* ignored)
}
void
-WindowFactory::present_controls(SharedPtr<const NodeModel> node)
-{
- NodeControlWindow* win = control_window(node);
-
- if (win) {
- win->present();
- } else {
- win = new_control_window(node);
- win->present();
- }
-}
-
-NodeControlWindow*
-WindowFactory::new_control_window(SharedPtr<const NodeModel> node)
-{
- uint32_t poly = 1;
- if (node->polyphonic() && node->parent())
- poly = ((PatchModel*)node->parent().get())->internal_poly();
-
- NodeControlWindow* win = new NodeControlWindow(_app, node, poly);
-
- _control_windows[node->path()] = win;
-
- win->signal_delete_event().connect(sigc::bind<0>(
- sigc::mem_fun(this, &WindowFactory::remove_control_window), win));
-
- return win;
-}
-
-bool
-WindowFactory::remove_control_window(NodeControlWindow* win, GdkEventAny* ignored)
-{
- ControlWindowMap::iterator w = _control_windows.find(win->node()->path());
-
- assert((*w).second == win);
- _control_windows.erase(w);
-
- delete win;
-
- return true;
-}
-
-void
WindowFactory::present_load_plugin(SharedPtr<const PatchModel> patch,
GraphObject::Properties data)
{