summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/WindowFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/ingenuity/WindowFactory.cpp')
-rw-r--r--src/progs/ingenuity/WindowFactory.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/progs/ingenuity/WindowFactory.cpp b/src/progs/ingenuity/WindowFactory.cpp
index 3b773227..14a7554f 100644
--- a/src/progs/ingenuity/WindowFactory.cpp
+++ b/src/progs/ingenuity/WindowFactory.cpp
@@ -25,6 +25,7 @@
#include "LoadPluginWindow.h"
#include "LoadPatchWindow.h"
#include "LoadRemotePatchWindow.h"
+#include "UploadPatchWindow.h"
#include "LoadSubpatchWindow.h"
#include "RenameWindow.h"
#include "NewSubpatchWindow.h"
@@ -36,6 +37,7 @@ WindowFactory::WindowFactory()
: _load_plugin_win(NULL)
, _load_patch_win(NULL)
, _load_remote_patch_win(NULL)
+, _upload_patch_win(NULL)
, _new_subpatch_win(NULL)
, _load_subpatch_win(NULL)
, _node_properties_win(NULL)
@@ -46,6 +48,7 @@ WindowFactory::WindowFactory()
xml->get_widget_derived("load_plugin_win", _load_plugin_win);
xml->get_widget_derived("load_patch_win", _load_patch_win);
xml->get_widget_derived("load_remote_patch_win", _load_remote_patch_win);
+ xml->get_widget_derived("upload_patch_win", _upload_patch_win);
xml->get_widget_derived("new_subpatch_win", _new_subpatch_win);
xml->get_widget_derived("load_subpatch_win", _load_subpatch_win);
xml->get_widget_derived("node_properties_win", _node_properties_win);
@@ -279,6 +282,18 @@ WindowFactory::present_load_remote_patch(SharedPtr<PatchModel> patch, MetadataMa
void
+WindowFactory::present_upload_patch(SharedPtr<PatchModel> patch)
+{
+ PatchWindowMap::iterator w = _patch_windows.find(patch->path());
+
+ if (w != _patch_windows.end())
+ _upload_patch_win->set_transient_for(*w->second);
+
+ _upload_patch_win->present(patch);
+}
+
+
+void
WindowFactory::present_new_subpatch(SharedPtr<PatchModel> patch, MetadataMap data)
{
PatchWindowMap::iterator w = _patch_windows.find(patch->path());