From d80bbb83b77d3e1dcdc9bfd60f795c4c2cbb1ac9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Dec 2006 04:25:46 +0000 Subject: Repeated attaching/reattaching/etc/etc with Ingenuity. Fixed behaviour on closing last window (quit). git-svn-id: http://svn.drobilla.net/lad/ingen@221 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/WindowFactory.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/progs/ingenuity/WindowFactory.h') diff --git a/src/progs/ingenuity/WindowFactory.h b/src/progs/ingenuity/WindowFactory.h index 194f7319..2f844160 100644 --- a/src/progs/ingenuity/WindowFactory.h +++ b/src/progs/ingenuity/WindowFactory.h @@ -45,11 +45,13 @@ public: WindowFactory(); ~WindowFactory(); + size_t num_open_patch_windows(); + PatchWindow* patch_window(SharedPtr patch); NodeControlWindow* control_window(SharedPtr node); void present_patch(SharedPtr patch, - PatchWindow* preferred = NULL, + PatchWindow* preferred = NULL, SharedPtr patch = SharedPtr()); void present_controls(SharedPtr node); @@ -63,6 +65,8 @@ public: bool remove_patch_window(PatchWindow* win, GdkEventAny* ignored = NULL); + void clear(); + private: typedef std::map PatchWindowMap; typedef std::map ControlWindowMap; -- cgit v1.2.1