summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/NodeModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-12-21 03:32:55 +0000
committerDavid Robillard <d@drobilla.net>2007-12-21 03:32:55 +0000
commit39dbfbaf661bfec067d02b26bbc04608d74413c6 (patch)
tree11b3d8948b881f3272b944a483466dd1b57fdbf9 /src/libs/gui/NodeModule.hpp
parent3efacf8a4ac1b0c90b544f41881596ff91f37efa (diff)
downloadingen-39dbfbaf661bfec067d02b26bbc04608d74413c6.tar.gz
ingen-39dbfbaf661bfec067d02b26bbc04608d74413c6.tar.bz2
ingen-39dbfbaf661bfec067d02b26bbc04608d74413c6.zip
Fix SLV2 GUI sketchiness, repeated embedding/unembedding/pop-up/window destroy, etc.
Break out LV2 GUI stuff to a separate class, SharedPtr it up, spiffify, etc. git-svn-id: http://svn.drobilla.net/lad/ingen@993 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/NodeModule.hpp')
-rw-r--r--src/libs/gui/NodeModule.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/gui/NodeModule.hpp b/src/libs/gui/NodeModule.hpp
index dcfd97dd..d73b4529 100644
--- a/src/libs/gui/NodeModule.hpp
+++ b/src/libs/gui/NodeModule.hpp
@@ -69,6 +69,7 @@ protected:
void show_control_window();
bool popup_gui();
+ void on_gui_window_close();
void rename();
void set_variable(const std::string& key, const Atom& value);
@@ -86,10 +87,11 @@ protected:
SharedPtr<NodeModel> _node;
NodeMenu* _menu;
- SLV2UIInstance _slv2_ui;
- Gtk::Widget* _gui;
- Gnome::Canvas::Widget* _gui_item;
+ SharedPtr<PluginUI> _plugin_ui;
+ Gtk::Widget* _gui_widget;
Gtk::Container* _gui_container;
+ Gnome::Canvas::Widget* _gui_item; ///< iff embedded
+ Gtk::Window* _gui_window; ///< iff popped up
int _last_gui_request_width;
int _last_gui_request_height;
};