diff options
Diffstat (limited to 'src/gui/ControlPanel.hpp')
-rw-r--r-- | src/gui/ControlPanel.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/ControlPanel.hpp b/src/gui/ControlPanel.hpp index a657b8d2..3e5aa8b6 100644 --- a/src/gui/ControlPanel.hpp +++ b/src/gui/ControlPanel.hpp @@ -38,6 +38,8 @@ using namespace Ingen::Client; namespace GUI { +class App; + /** A group of controls for a node (or patch). * * Used by both NodeControlWindow and the main window (for patch controls). @@ -50,7 +52,7 @@ public: const Glib::RefPtr<Gtk::Builder>& xml); virtual ~ControlPanel(); - void init(SharedPtr<const NodeModel> node, uint32_t poly); + void init(App& app, SharedPtr<const NodeModel> node, uint32_t poly); Control* find_port(const Raul::Path& path) const; @@ -72,12 +74,11 @@ public: } private: - bool _callback_enabled; - - std::pair<int,int> _ideal_size; - + App* _app; + std::pair<int,int> _ideal_size; std::vector<Control*> _controls; Gtk::VBox* _control_box; + bool _callback_enabled; }; } // namespace GUI |