add some meaning to the otherwise useless clock tooltips
[ardour.git] / gtk2_ardour / ui_config.h
index 09e844883161653f5ecd7c942d86256b41a49e51..f96659de76a661a60a2e00744392f3c06fca9494 100644 (file)
@@ -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__ */