From ac1d6d135bda8d739fdb8bf564f89c38b664c097 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Oct 2011 03:08:06 +0000 Subject: De-singleton-ify GUI. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3584 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.hpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/gui/Port.hpp') diff --git a/src/gui/Port.hpp b/src/gui/Port.hpp index 788baa0e..f1c4b80a 100644 --- a/src/gui/Port.hpp +++ b/src/gui/Port.hpp @@ -33,6 +33,8 @@ using Ingen::Client::PortModel; namespace GUI { +class App; + /** A Port on an Module. * * \ingroup GUI @@ -41,6 +43,7 @@ class Port : public FlowCanvas::Port { public: static Port* create( + App& app, FlowCanvas::Module& module, SharedPtr pm, bool human_name, @@ -62,10 +65,11 @@ public: ArtVpathDash* dash(); private: - Port(FlowCanvas::Module& module, + Port(App& app, + FlowCanvas::Module& module, SharedPtr pm, const std::string& name, - bool flip=false); + bool flip = false); void property_changed(const Raul::URI& key, const Raul::Atom& value); @@ -74,9 +78,10 @@ private: static ArtVpathDash* _dash; + App& _app; WeakPtr _port_model; - bool _pressed; - bool _flipped; + bool _pressed : 1; + bool _flipped : 1; }; } // namespace GUI -- cgit v1.2.1