mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
continued work on use of Metadata in various Configuration objects (GUI edition)
This commit is contained in:
parent
3c1c6e7b68
commit
26c09e6de3
5 changed files with 460 additions and 35 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <sstream>
|
||||
#include <ostream>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
|
@ -34,9 +35,10 @@
|
|||
#include "ardour/types.h" // required for operators used in pbd/configuration_variable.h
|
||||
#include "ardour/types_convert.h"
|
||||
|
||||
#include "pbd/configuration.h"
|
||||
#include "pbd/configuration_variable.h"
|
||||
#include "pbd/stateful.h"
|
||||
#include "pbd/xml++.h"
|
||||
#include "pbd/configuration_variable.h"
|
||||
|
||||
#include "gtkmm2ext/colors.h"
|
||||
#include "widgets/ui_config.h"
|
||||
|
|
@ -61,9 +63,10 @@ public:
|
|||
int load_defaults ();
|
||||
int load_color_theme (bool allow_own);
|
||||
|
||||
void map_parameters (boost::function<void (std::string)>&);
|
||||
int set_state (const XMLNode&, int version);
|
||||
XMLNode& get_state () const;
|
||||
XMLNode& get_variables (std::string) const;
|
||||
XMLNode& get_variables (std::string const &) const;
|
||||
void set_variables (const XMLNode&);
|
||||
|
||||
std::string color_file_name (bool use_my, bool with_version) const;
|
||||
|
|
@ -94,7 +97,6 @@ public:
|
|||
float get_ui_scale ();
|
||||
|
||||
sigc::signal<void, std::string> ParameterChanged;
|
||||
void map_parameters (boost::function<void (std::string)>&);
|
||||
|
||||
void parameter_changed (std::string);
|
||||
|
||||
|
|
@ -107,6 +109,8 @@ public:
|
|||
/** called after the GUI toolkit has been initialized. */
|
||||
UIConfiguration* post_gui_init ();
|
||||
|
||||
std::map<std::string,PBD::ConfigVariableBase*> _my_variables;
|
||||
|
||||
#undef UI_CONFIG_VARIABLE
|
||||
#define UI_CONFIG_VARIABLE(Type,var,name,value) \
|
||||
Type get_##var () const { return var.get(); } \
|
||||
|
|
@ -147,6 +151,8 @@ private:
|
|||
void colors_changed ();
|
||||
|
||||
uint32_t block_save;
|
||||
|
||||
void build_metadata ();
|
||||
};
|
||||
|
||||
#endif /* __ardour_ui_configuration_h__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue