diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-10-26 21:01:14 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-10-26 21:01:14 +0000 |
commit | 51ab5ccabf432540ca935065f6c6f40a96f42dad (patch) | |
tree | a5f062738bcedc33cd55b176168d532e4cc6d189 /gtk2_ardour/ui_config.h | |
parent | ae3eb6e3f4f270a03ff297d1bbe7cd3f3a2159a9 (diff) |
new ArdourButton class, to start to provide more control over how our buttons work and appear; use ArdourButtons for monitor, solo isolate and solo safe buttons, and in the processor box; don't save UI config file (canvas colors) to the user's home dir unless one or more parameters were modified by the user
git-svn-id: svn://localhost/ardour2/branches/3.0@10311 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ui_config.h')
-rw-r--r-- | gtk2_ardour/ui_config.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/ui_config.h b/gtk2_ardour/ui_config.h index 09e8448831..f96659de76 100644 --- a/gtk2_ardour/ui_config.h +++ b/gtk2_ardour/ui_config.h @@ -74,7 +74,10 @@ class UIConfiguration : public PBD::Stateful UIConfiguration(); ~UIConfiguration(); - std::vector<UIConfigVariable<uint32_t> *> canvas_colors; + std::map<std::string,UIConfigVariable<uint32_t> *> canvas_colors; + + bool dirty () const; + void set_dirty (); int load_state (); int save_state (); @@ -86,6 +89,8 @@ class UIConfiguration : public PBD::Stateful void set_variables (const XMLNode&); void pack_canvasvars (); + uint32_t color_by_name (const std::string&); + sigc::signal<void,const char*> ParameterChanged; #undef UI_CONFIG_VARIABLE @@ -99,7 +104,7 @@ class UIConfiguration : public PBD::Stateful private: XMLNode& state (); - bool hack; + bool _dirty; }; #endif /* __ardour_ui_configuration_h__ */ |