mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Move UIConfiguration Singleton into UIConfiguration header
This removes the direct dependence on ardour_ui.h from 39 files
This commit is contained in:
parent
45d487f16e
commit
6b019a4953
84 changed files with 726 additions and 712 deletions
|
|
@ -37,11 +37,12 @@
|
|||
|
||||
class UIConfiguration : public PBD::Stateful
|
||||
{
|
||||
public:
|
||||
private:
|
||||
UIConfiguration();
|
||||
~UIConfiguration();
|
||||
|
||||
static UIConfiguration* instance() { return _instance; }
|
||||
public:
|
||||
static UIConfiguration& instance();
|
||||
|
||||
void load_rc_file (bool themechange, bool allow_own = true);
|
||||
|
||||
|
|
@ -76,14 +77,14 @@ class UIConfiguration : public PBD::Stateful
|
|||
ArdourCanvas::HSV color_hsv (const std::string&) const;
|
||||
ArdourCanvas::SVAModifier modifier (const std::string&) const;
|
||||
|
||||
static sigc::signal<void> ColorsChanged;
|
||||
sigc::signal<void> ColorsChanged;
|
||||
|
||||
void reset_dpi ();
|
||||
void set_pango_fontsize ();
|
||||
|
||||
float get_ui_scale ();
|
||||
|
||||
static sigc::signal<void> DPIReset;
|
||||
sigc::signal<void> DPIReset;
|
||||
|
||||
sigc::signal<void,std::string> ParameterChanged;
|
||||
void map_parameters (boost::function<void (std::string)>&);
|
||||
|
|
@ -130,8 +131,6 @@ class UIConfiguration : public PBD::Stateful
|
|||
bool colors_modified;
|
||||
bool modifiers_modified;
|
||||
|
||||
static UIConfiguration* _instance;
|
||||
|
||||
int store_color_theme ();
|
||||
void load_color_aliases (XMLNode const &);
|
||||
void load_colors (XMLNode const &);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue