From d7f2c35beb184ba2be97f92372d2ef8598a88ab4 Mon Sep 17 00:00:00 2001 From: itmuckel Date: Fri, 6 May 2022 00:50:06 +0200 Subject: [PATCH] Cruft removal --- gtk2_ardour/ui_config.cc | 6 ----- gtk2_ardour/ui_config.h | 58 +++++++++++++++++++--------------------- 2 files changed, 28 insertions(+), 36 deletions(-) diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index bd17e85b42..3e613a8272 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -21,19 +21,14 @@ */ #include -#include -#include #include #include #include /* for snprintf, grrr */ #include #include -#include "pbd/gstdio_compat.h" #include -#include - #include // for fontmap resolution control for GnomeCanvas #include // for fontmap resolution control for GnomeCanvas @@ -54,7 +49,6 @@ #include "ardour/utils.h" #include "ardour/types_convert.h" -#include "gtkmm2ext/rgb_macros.h" #include "gtkmm2ext/gtk_ui.h" #include "canvas/text.h" diff --git a/gtk2_ardour/ui_config.h b/gtk2_ardour/ui_config.h index eec56010bb..bb526986a4 100644 --- a/gtk2_ardour/ui_config.h +++ b/gtk2_ardour/ui_config.h @@ -46,11 +46,11 @@ class UIConfiguration : public ArdourWidgets::UIConfigurationBase { private: - UIConfiguration(); - ~UIConfiguration(); + UIConfiguration (); + ~UIConfiguration (); public: - static UIConfiguration& instance(); + static UIConfiguration& instance (); static std::string color_file_suffix; @@ -61,42 +61,40 @@ public: int load_defaults (); int load_color_theme (bool allow_own); - int set_state (const XMLNode&, int version); + int set_state (const XMLNode&, int version); XMLNode& get_state () const; XMLNode& get_variables (std::string) const; - void set_variables (const XMLNode&); + void set_variables (const XMLNode&); - std::string color_file_name (bool use_my, bool with_version) const; + std::string color_file_name (bool use_my, bool with_version) const; - typedef std::map Colors; - typedef std::map ColorAliases; - typedef std::map Modifiers; + typedef std::map Colors; + typedef std::map ColorAliases; + typedef std::map Modifiers; - Colors colors; - ColorAliases color_aliases; - Modifiers modifiers; + Colors colors; + ColorAliases color_aliases; + Modifiers modifiers; - void set_alias (std::string const & name, std::string const & alias); + void set_alias (std::string const& name, std::string const& alias); void set_color (const std::string& name, Gtkmm2ext::Color); - void set_modifier (std::string const &, Gtkmm2ext::SVAModifier svam); + void set_modifier (std::string const&, Gtkmm2ext::SVAModifier svam); - std::string color_as_alias (Gtkmm2ext::Color c); Gtkmm2ext::Color quantized (Gtkmm2ext::Color) const; - Gtkmm2ext::Color color (const std::string&, bool* failed = 0) const; - Gtkmm2ext::Color color_mod (std::string const & color, std::string const & modifier) const; - Gtkmm2ext::Color color_mod (const Gtkmm2ext::Color& color, std::string const & modifier) const; - Gtkmm2ext::HSV color_hsv (const std::string&) const; + Gtkmm2ext::Color color (const std::string&, bool* failed = 0) const; + Gtkmm2ext::Color color_mod (std::string const& color, std::string const& modifier) const; + Gtkmm2ext::Color color_mod (const Gtkmm2ext::Color& color, std::string const& modifier) const; Gtkmm2ext::SVAModifier modifier (const std::string&) const; static std::string color_to_hex_string (Gtkmm2ext::Color c); static std::string color_to_hex_string_no_alpha (Gtkmm2ext::Color c); - void reset_dpi (); + void reset_dpi (); float get_ui_scale (); - sigc::signal ParameterChanged; - void map_parameters (boost::function&); + sigc::signal ParameterChanged; + void map_parameters (boost::function&); void parameter_changed (std::string); @@ -134,17 +132,17 @@ private: #undef CANVAS_FONT_VARIABLE XMLNode& state () const; - bool _dirty; - bool aliases_modified; - bool colors_modified; - bool modifiers_modified; + bool _dirty; + bool aliases_modified; + bool colors_modified; + bool modifiers_modified; int store_color_theme (); - void load_color_aliases (XMLNode const &); - void load_colors (XMLNode const &); - void load_modifiers (XMLNode const &); + void load_color_aliases (XMLNode const&); + void load_colors (XMLNode const&); + void load_modifiers (XMLNode const&); void reset_gtk_theme (); - int load_color_file (std::string const &); + int load_color_file (std::string const&); void colors_changed (); uint32_t block_save;