Guitarix
|
#include <gx_parameter.h>
Public Member Functions | |
sigc::signal< void > & | signal_changed () |
bool | set (const Glib::RefPtr< Gio::File > &val) |
void | set_path (const string &path) |
const Glib::RefPtr< Gio::File > & | get () const |
virtual void | stdJSON_value () |
virtual bool | on_off_value () |
virtual void | writeJSON (gx_system::JsonWriter &jw) const |
virtual void | readJSON_value (gx_system::JsonParser &jp) |
virtual bool | compareJSON_value () |
virtual void | setJSON_value () |
FileParameter (const string &id, const string &filename, bool preset=false) | |
FileParameter (const string &id, bool preset=false) | |
FileParameter (gx_system::JsonParser &jp) | |
virtual void | serializeJSON (gx_system::JsonWriter &jw) |
void | set_standard (const string &filename) |
bool | is_equal (const Glib::RefPtr< Gio::File > &v) const |
bool | is_standard () const |
string | get_path () const |
string | get_directory_path () const |
string | get_parse_name () const |
string | get_display_name () const |
void | copy (const string &destination) const |
![]() | |
std::string | group_id () const |
Parameter (const string &id, const string &name, value_type vtp, ctrl_type ctp, bool preset, bool ctrl) | |
Parameter (gx_system::JsonParser &jp) | |
virtual | ~Parameter () |
bool | isUsed () const |
void | setUsed () |
void | dump (gx_system::JsonWriter *jw) |
const char * | get_typename () const |
bool | isFloat () const |
bool | isInt () const |
bool | isBool () const |
bool | isFile () const |
bool | isString () const |
ctrl_type | getControlType () const |
bool | isControllable () const |
bool | isInPreset () const |
bool | isSavable () const |
void | setSavable (bool v) |
const string & | id () const |
const string & | group () const |
string | l_group () const |
const string & | name () const |
string | l_name () const |
const string & | desc () const |
void | set_desc (const string &desc) |
string | l_desc () const |
void | set_log_display () |
bool | is_log_display () |
void | set_blocked (bool v) |
bool | get_blocked () |
void | set_midi_blocked (bool v) |
bool | get_midi_blocked () |
bool | operator== (const Parameter &p) const |
virtual bool | hasRange () const |
virtual float | getLowerAsFloat () const |
virtual float | getUpperAsFloat () const |
virtual float | getStepAsFloat () const |
virtual const value_pair * | getValueNames () const |
FloatParameter & | getFloat () |
IntParameter & | getInt () |
EnumParameter & | getEnum () |
BoolParameter & | getBool () |
FileParameter & | getFile () |
StringParameter & | getString () |
sigc::signal< void, float > & | signal_changed_float () |
sigc::signal< void, int > & | signal_changed_int () |
sigc::signal< void, bool > & | signal_changed_bool () |
sigc::signal< void, const Glib::ustring & > & | signal_changed_string () |
Protected Attributes | |
Glib::RefPtr< Gio::File > | value |
Glib::RefPtr< Gio::File > | std_value |
Glib::RefPtr< Gio::File > | json_value |
sigc::signal< void > | changed |
![]() | |
string | _id |
string | _name |
string | _group |
string | _desc |
enum value_type | v_type: 3 |
enum ctrl_type | c_type: 3 |
unsigned int | d_flags: 2 |
bool | save_in_preset: 1 |
bool | controllable: 1 |
bool | do_not_save: 1 |
bool | blocked: 1 |
bool | midi_blocked: 1 |
bool | used: 1 |
Additional Inherited Members | |
![]() | |
enum | ctrl_type { None, Continuous, Switch, Enum } |
enum | toggle_type { OnOff = 0, Constant = 1, _Count = 2 } |
![]() | |
static const char * | value_label (const value_pair &vp) |
![]() | |
enum | value_type { tp_float, tp_int, tp_bool, tp_file, tp_string, tp_special } |
enum | display_flags { dtp_normal, dtp_log = 1 } |
![]() | |
void | range_warning (float value, float lower, float upper) |
![]() | |
static gx_system::JsonParser & | jp_next (gx_system::JsonParser &jp, const char *key) |
Definition at line 384 of file gx_parameter.h.
|
inline |
Definition at line 401 of file gx_parameter.h.
|
inline |
Definition at line 405 of file gx_parameter.h.
gx_engine::FileParameter::FileParameter | ( | gx_system::JsonParser & | jp | ) |
Definition at line 1659 of file gx_paramtable.cpp.
|
virtual |
Implements gx_engine::Parameter.
Definition at line 1722 of file gx_paramtable.cpp.
void gx_engine::FileParameter::copy | ( | const string & | destination | ) | const |
Definition at line 1765 of file gx_paramtable.cpp.
|
inline |
Definition at line 394 of file gx_parameter.h.
string gx_engine::FileParameter::get_directory_path | ( | ) | const |
Definition at line 1753 of file gx_paramtable.cpp.
string gx_engine::FileParameter::get_display_name | ( | ) | const |
Definition at line 1761 of file gx_paramtable.cpp.
string gx_engine::FileParameter::get_parse_name | ( | ) | const |
Definition at line 1757 of file gx_paramtable.cpp.
string gx_engine::FileParameter::get_path | ( | ) | const |
Definition at line 1749 of file gx_paramtable.cpp.
Referenced by writeJSON().
bool gx_engine::FileParameter::is_equal | ( | const Glib::RefPtr< Gio::File > & | v | ) | const |
Definition at line 1734 of file gx_paramtable.cpp.
Referenced by set(), and set_path().
|
inline |
Definition at line 413 of file gx_parameter.h.
|
virtual |
Implements gx_engine::Parameter.
Definition at line 1709 of file gx_paramtable.cpp.
|
virtual |
Implements gx_engine::Parameter.
Definition at line 1717 of file gx_paramtable.cpp.
|
virtual |
Reimplemented from gx_engine::Parameter.
Definition at line 1651 of file gx_paramtable.cpp.
bool gx_engine::FileParameter::set | ( | const Glib::RefPtr< Gio::File > & | val | ) |
Definition at line 1687 of file gx_paramtable.cpp.
void gx_engine::FileParameter::set_path | ( | const string & | path | ) |
Definition at line 1678 of file gx_paramtable.cpp.
void gx_engine::FileParameter::set_standard | ( | const string & | filename | ) |
Definition at line 1696 of file gx_paramtable.cpp.
|
virtual |
Implements gx_engine::Parameter.
Definition at line 1726 of file gx_paramtable.cpp.
|
inline |
Definition at line 391 of file gx_parameter.h.
Referenced by gx_engine::GxMachineRemote::set_init_values().
|
virtual |
Implements gx_engine::Parameter.
Definition at line 1704 of file gx_paramtable.cpp.
|
virtual |
Implements gx_engine::Parameter.
Definition at line 1713 of file gx_paramtable.cpp.
|
protected |
Definition at line 389 of file gx_parameter.h.
Referenced by set(), set_path(), set_standard(), and stdJSON_value().
|
protected |
Definition at line 388 of file gx_parameter.h.
Referenced by compareJSON_value(), readJSON_value(), setJSON_value(), and stdJSON_value().
|
protected |
Definition at line 387 of file gx_parameter.h.
Referenced by FileParameter(), gx_engine::ParameterV< Glib::ustring >::serializeJSON(), set_standard(), and stdJSON_value().
|
protected |
Definition at line 386 of file gx_parameter.h.
Referenced by compareJSON_value(), copy(), FileParameter(), get_directory_path(), get_display_name(), get_parse_name(), get_path(), is_equal(), on_off_value(), gx_engine::ParameterV< Glib::ustring >::serializeJSON(), set(), set_path(), and set_standard().