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/Configuration.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui/Configuration.hpp') diff --git a/src/gui/Configuration.hpp b/src/gui/Configuration.hpp index 6fe922d3..94bff71c 100644 --- a/src/gui/Configuration.hpp +++ b/src/gui/Configuration.hpp @@ -19,7 +19,9 @@ #define INGEN_GUI_CONFIGURATION_HPP #include + #include + #include "raul/SharedPtr.hpp" namespace Ingen { namespace Client { class PortModel; } } @@ -29,6 +31,7 @@ using std::string; namespace Ingen { namespace GUI { +class App; class Port; /** Singleton state manager for the entire app. @@ -41,7 +44,7 @@ class Port; class Configuration { public: - Configuration(); + Configuration(App& app); ~Configuration(); void load_settings(string filename = ""); @@ -60,6 +63,8 @@ public: void set_name_style(NameStyle s) { _name_style = s; } private: + App& _app; + /** Most recent patch folder shown in open dialog */ string _patch_folder; -- cgit v1.2.1