diff options
Diffstat (limited to 'src/gui/WindowFactory.cpp')
-rw-r--r-- | src/gui/WindowFactory.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/WindowFactory.cpp b/src/gui/WindowFactory.cpp index 99c596dd..6c48d11d 100644 --- a/src/gui/WindowFactory.cpp +++ b/src/gui/WindowFactory.cpp @@ -116,6 +116,16 @@ WindowFactory::patch_window(SharedPtr<PatchModel> patch) } +PatchWindow* +WindowFactory::parent_patch_window(SharedPtr<NodeModel> node) +{ + if (!node) + return NULL; + + return patch_window(PtrCast<PatchModel>(node->parent())); +} + + NodeControlWindow* WindowFactory::control_window(SharedPtr<NodeModel> node) { |