Ardour  9.0-pre0-582-g084a23a80d
UIConfiguration Class Reference

#include <ui_config.h>

Inheritance diagram for UIConfiguration:
[legend]

Public Types

typedef std::map< std::string, Gtkmm2ext::ColorColors
 
typedef std::map< std::string, std::string > ColorAliases
 
typedef std::map< std::string, Gtkmm2ext::SVAModifierModifiers
 
- Public Types inherited from PBD::Configuration
typedef std::vector< std::string > Metadata
 

Public Member Functions

void load_rc_file (bool themechange, bool allow_own=true)
 
int load_state ()
 
int save_state ()
 
int load_defaults ()
 
int load_color_theme (bool allow_own)
 
void map_parameters (std::function< void(std::string)> &)
 
int set_state (const XMLNode &, int version)
 
XMLNodeget_state () const
 
XMLNodeget_variables (std::string const &) const
 
void set_variables (const XMLNode &)
 
std::string color_file_name (bool use_my, bool with_version, bool fallback=false) const
 
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)
 
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::SVAModifier modifier (const std::string &) const
 
void reset_dpi ()
 
float get_ui_scale ()
 
void parameter_changed (std::string)
 
int pre_gui_init ()
 
UIConfigurationpost_gui_init ()
 
- Public Member Functions inherited from ArdourWidgets::UIConfigurationBase
virtual bool get_all_floating_windows_are_dialogs () const =0
 
virtual bool get_widget_prelight () const =0
 
virtual Pango::FontDescription get_NormalFont () const =0
 
virtual Pango::FontDescription get_SmallFont () const =0
 
virtual Pango::FontDescription get_NormalMonospaceFont () const =0
 
virtual Pango::FontDescription get_SmallMonospaceFont () const =0
 
virtual Pango::FontDescription get_ArdourSmallFont () const =0
 
- Public Member Functions inherited from PBD::Configuration
 Configuration ()
 
virtual ~Configuration ()
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 

Static Public Member Functions

static UIConfigurationinstance ()
 
static void build_metadata ()
 
static std::string color_to_hex_string (Gtkmm2ext::Color c)
 
static std::string color_to_hex_string_no_alpha (Gtkmm2ext::Color c)
 
- Static Public Member Functions inherited from ArdourWidgets::UIConfigurationBase
static UIConfigurationBaseinstance ()
 
- Static Public Member Functions inherited from PBD::Configuration
static Metadata const * get_metadata (std::string const &)
 

Public Attributes

Colors colors
 
ColorAliases color_aliases
 
Modifiers modifiers
 
sigc::signal< void, std::string > ParameterChanged
 
std::map< std::string, PBD::ConfigVariableBase * > _my_variables
 
- Public Attributes inherited from ArdourWidgets::UIConfigurationBase
sigc::signal< void > DPIReset
 
sigc::signal< void > ColorsChanged
 
- Public Attributes inherited from PBD::Configuration
PBD::Signal< void(std::string)> ParameterChanged
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 

Static Public Attributes

static std::string color_file_suffix
 
- Static Public Attributes inherited from PBD::Configuration
static std::map< std::string, Metadataall_metadata
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 

Private Member Functions

 UIConfiguration ()
 
 ~UIConfiguration ()
 
XMLNodestate () const
 
int store_color_theme ()
 
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 &)
 
void colors_changed ()
 

Private Attributes

bool _dirty
 
bool aliases_modified
 
bool colors_modified
 
bool modifiers_modified
 
uint32_t block_save
 

Additional Inherited Members

- Protected Member Functions inherited from ArdourWidgets::UIConfigurationBase
virtual ~UIConfigurationBase ()
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 
- Static Protected Attributes inherited from ArdourWidgets::UIConfigurationBase
static UIConfigurationBase_instance
 

Detailed Description

Definition at line 46 of file gtk2_ardour/ui_config.h.

Member Typedef Documentation

◆ ColorAliases

typedef std::map<std::string, std::string> UIConfiguration::ColorAliases

Definition at line 74 of file gtk2_ardour/ui_config.h.

◆ Colors

typedef std::map<std::string, Gtkmm2ext::Color> UIConfiguration::Colors

Definition at line 73 of file gtk2_ardour/ui_config.h.

◆ Modifiers

typedef std::map<std::string, Gtkmm2ext::SVAModifier> UIConfiguration::Modifiers

Definition at line 75 of file gtk2_ardour/ui_config.h.

Constructor & Destructor Documentation

◆ UIConfiguration()

UIConfiguration::UIConfiguration ( )
private

◆ ~UIConfiguration()

UIConfiguration::~UIConfiguration ( )
private

Member Function Documentation

◆ build_metadata()

void UIConfiguration::build_metadata ( )
static

Definition at line 4 of file configuration_metadata.inc.h.

◆ color()

Gtkmm2ext::Color UIConfiguration::color ( const std::string &  ,
bool *  failed = 0 
) const
virtual

◆ color_file_name()

std::string UIConfiguration::color_file_name ( bool  use_my,
bool  with_version,
bool  fallback = false 
) const

◆ color_mod() [1/2]

Gtkmm2ext::Color UIConfiguration::color_mod ( const Gtkmm2ext::Color color,
std::string const &  modifier 
) const

◆ color_mod() [2/2]

Gtkmm2ext::Color UIConfiguration::color_mod ( std::string const &  color,
std::string const &  modifier 
) const

◆ color_to_hex_string()

static std::string UIConfiguration::color_to_hex_string ( Gtkmm2ext::Color  c)
static

◆ color_to_hex_string_no_alpha()

static std::string UIConfiguration::color_to_hex_string_no_alpha ( Gtkmm2ext::Color  c)
static

◆ colors_changed()

void UIConfiguration::colors_changed ( )
private

◆ get_state()

XMLNode& UIConfiguration::get_state ( ) const
virtual

Implements PBD::Configuration.

◆ get_ui_scale()

float UIConfiguration::get_ui_scale ( )
virtual

◆ get_variables()

XMLNode& UIConfiguration::get_variables ( std::string const &  ) const
virtual

Implements PBD::Configuration.

◆ instance()

static UIConfiguration& UIConfiguration::instance ( )
static

◆ load_color_aliases()

void UIConfiguration::load_color_aliases ( XMLNode const &  )
private

◆ load_color_file()

int UIConfiguration::load_color_file ( std::string const &  )
private

◆ load_color_theme()

int UIConfiguration::load_color_theme ( bool  allow_own)

◆ load_colors()

void UIConfiguration::load_colors ( XMLNode const &  )
private

◆ load_defaults()

int UIConfiguration::load_defaults ( )

◆ load_modifiers()

void UIConfiguration::load_modifiers ( XMLNode const &  )
private

◆ load_rc_file()

void UIConfiguration::load_rc_file ( bool  themechange,
bool  allow_own = true 
)

◆ load_state()

int UIConfiguration::load_state ( )

◆ map_parameters()

void UIConfiguration::map_parameters ( std::function< void(std::string)> &  )
virtual

Implements PBD::Configuration.

◆ modifier()

Gtkmm2ext::SVAModifier UIConfiguration::modifier ( const std::string &  ) const

◆ parameter_changed()

void UIConfiguration::parameter_changed ( std::string  )

◆ post_gui_init()

UIConfiguration* UIConfiguration::post_gui_init ( )

called after the GUI toolkit has been initialized.

◆ pre_gui_init()

int UIConfiguration::pre_gui_init ( )

called before initializing any part of the GUI. Sets up any runtime environment required to make the GUI work in specific ways.

◆ quantized()

Gtkmm2ext::Color UIConfiguration::quantized ( Gtkmm2ext::Color  ) const

◆ reset_dpi()

void UIConfiguration::reset_dpi ( )

◆ reset_gtk_theme()

void UIConfiguration::reset_gtk_theme ( )
private

◆ save_state()

int UIConfiguration::save_state ( )

◆ set_alias()

void UIConfiguration::set_alias ( std::string const &  name,
std::string const &  alias 
)

◆ set_color()

void UIConfiguration::set_color ( const std::string &  name,
Gtkmm2ext::Color   
)

◆ set_modifier()

void UIConfiguration::set_modifier ( std::string const &  ,
Gtkmm2ext::SVAModifier  svam 
)

◆ set_state()

int UIConfiguration::set_state ( const XMLNode ,
int  version 
)
virtual

Implements PBD::Configuration.

◆ set_variables()

void UIConfiguration::set_variables ( const XMLNode )
virtual

Implements PBD::Configuration.

◆ state()

XMLNode& UIConfiguration::state ( ) const
private

◆ store_color_theme()

int UIConfiguration::store_color_theme ( )
private

Member Data Documentation

◆ _dirty

bool UIConfiguration::_dirty
private

Definition at line 139 of file gtk2_ardour/ui_config.h.

◆ _my_variables

std::map<std::string,PBD::ConfigVariableBase*> UIConfiguration::_my_variables

Definition at line 111 of file gtk2_ardour/ui_config.h.

◆ aliases_modified

bool UIConfiguration::aliases_modified
private

Definition at line 140 of file gtk2_ardour/ui_config.h.

◆ block_save

uint32_t UIConfiguration::block_save
private

Definition at line 152 of file gtk2_ardour/ui_config.h.

◆ color_aliases

ColorAliases UIConfiguration::color_aliases

Definition at line 78 of file gtk2_ardour/ui_config.h.

◆ color_file_suffix

std::string UIConfiguration::color_file_suffix
static

Definition at line 55 of file gtk2_ardour/ui_config.h.

◆ colors

Colors UIConfiguration::colors

Definition at line 77 of file gtk2_ardour/ui_config.h.

◆ colors_modified

bool UIConfiguration::colors_modified
private

Definition at line 141 of file gtk2_ardour/ui_config.h.

◆ modifiers

Modifiers UIConfiguration::modifiers

Definition at line 79 of file gtk2_ardour/ui_config.h.

◆ modifiers_modified

bool UIConfiguration::modifiers_modified
private

Definition at line 142 of file gtk2_ardour/ui_config.h.

◆ ParameterChanged

sigc::signal<void, std::string> UIConfiguration::ParameterChanged

Definition at line 98 of file gtk2_ardour/ui_config.h.


The documentation for this class was generated from the following files: