Guitarix
|
#include <gx_parameter.h>
Public Types | |
enum | ctrl_type { None , Continuous , Switch , Enum } |
enum | toggle_type { OnOff = 0 , Constant = 1 , Toggle = 2 , Commander = 3 , _Count = 4 } |
Public Member Functions | |
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 () |
virtual void | serializeJSON (gx_system::JsonWriter &jw) |
virtual void | trigger_changed () |
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) |
bool | isOutput () const |
void | setOutput (bool v) |
bool | isMaxlevel () const |
void | setMaxlevel (bool v) |
bool | isNoWarning () const |
void | setNoWarning (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 () const |
void | set_blocked (bool v) |
bool | get_blocked () const |
void | set_midi_blocked (bool v) |
bool | get_midi_blocked () const |
bool | operator== (const Parameter &p) const |
virtual void | stdJSON_value ()=0 |
virtual bool | on_off_value ()=0 |
virtual void | writeJSON (gx_system::JsonWriter &jw) const =0 |
virtual void | readJSON_value (gx_system::JsonParser &jp)=0 |
virtual void | setJSON_value ()=0 |
virtual bool | compareJSON_value ()=0 |
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 () |
Static Public Member Functions | |
static const char * | value_label (const value_pair &vp) |
Protected Types | |
enum | value_type { tp_float , tp_int , tp_bool , tp_file , tp_string , tp_special } |
enum | display_flags { dtp_normal , dtp_log = 1 } |
Protected Member Functions | |
void | range_warning (float value, float lower, float upper) |
Static Protected Member Functions | |
static gx_system::JsonParser & | jp_next (gx_system::JsonParser &jp, const char *key) |
Protected Attributes | |
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 | output: 1 |
bool | maxlevel: 1 |
bool | nowarn: 1 |
bool | used: 1 |
Private Member Functions | |
virtual bool | midi_set (float n, float high, float llimit, float ulimit) |
virtual bool | midi_set_bpm (float n, float high, float llimit, float ulimit) |
Friends | |
class | MidiController |
void | compare_parameter (const char *title, Parameter *p1, Parameter *p2, bool all) |
Definition at line 106 of file gx_parameter.h.
Enumerator | |
---|---|
None | |
Continuous | |
Switch | |
Enum |
Definition at line 108 of file gx_parameter.h.
|
protected |
Enumerator | |
---|---|
dtp_normal | |
dtp_log |
Definition at line 116 of file gx_parameter.h.
Enumerator | |
---|---|
OnOff | |
Constant | |
Toggle | |
Commander | |
_Count |
Definition at line 109 of file gx_parameter.h.
|
protected |
Enumerator | |
---|---|
tp_float | |
tp_int | |
tp_bool | |
tp_file | |
tp_string | |
tp_special |
Definition at line 115 of file gx_parameter.h.
|
inline |
Definition at line 136 of file gx_parameter.h.
gx_engine::Parameter::Parameter | ( | gx_system::JsonParser & | jp | ) |
|
virtual |
|
pure virtual |
Implemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::ParameterV< int >, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
inline |
Definition at line 189 of file gx_parameter.h.
Referenced by set_desc().
void gx_engine::Parameter::dump | ( | gx_system::JsonWriter * | jw | ) |
|
inline |
Definition at line 195 of file gx_parameter.h.
|
inline |
Definition at line 197 of file gx_parameter.h.
const char * gx_engine::Parameter::get_typename | ( | ) | const |
|
inline |
Definition at line 490 of file gx_parameter.h.
|
inline |
Definition at line 173 of file gx_parameter.h.
|
inline |
Definition at line 484 of file gx_parameter.h.
|
inline |
Definition at line 495 of file gx_parameter.h.
|
inline |
Definition at line 474 of file gx_parameter.h.
|
inline |
Definition at line 479 of file gx_parameter.h.
|
virtual |
Reimplemented in gx_engine::ParameterV< float >, and gx_engine::ParameterV< int >.
|
virtual |
Reimplemented in gx_engine::ParameterV< float >.
|
inline |
Definition at line 500 of file gx_parameter.h.
|
virtual |
Reimplemented in gx_engine::ParameterV< float >, and gx_engine::ParameterV< int >.
|
virtual |
Reimplemented in gx_engine::FloatEnumParameter, and gx_engine::EnumParameter.
|
inline |
Definition at line 185 of file gx_parameter.h.
|
inline |
Definition at line 135 of file gx_parameter.h.
|
virtual |
Reimplemented in gx_engine::ParameterV< float >, and gx_engine::ParameterV< int >.
|
inline |
Definition at line 184 of file gx_parameter.h.
Referenced by gx_engine::Plugin::id_box_visible(), gx_engine::Plugin::id_effect_post_pre(), gx_engine::Plugin::id_on_off(), gx_engine::Plugin::id_plug_visible(), and gx_engine::Plugin::id_position().
|
inline |
Definition at line 193 of file gx_parameter.h.
|
inline |
Definition at line 170 of file gx_parameter.h.
Referenced by getBool().
|
inline |
Definition at line 174 of file gx_parameter.h.
|
inline |
Definition at line 171 of file gx_parameter.h.
Referenced by getFile().
|
inline |
Definition at line 168 of file gx_parameter.h.
Referenced by getFloat().
|
inline |
Definition at line 175 of file gx_parameter.h.
|
inline |
Definition at line 169 of file gx_parameter.h.
Referenced by getInt().
|
inline |
Definition at line 180 of file gx_parameter.h.
|
inline |
Definition at line 182 of file gx_parameter.h.
|
inline |
Definition at line 178 of file gx_parameter.h.
|
inline |
Definition at line 176 of file gx_parameter.h.
|
inline |
Definition at line 172 of file gx_parameter.h.
Referenced by getString().
|
inline |
Definition at line 160 of file gx_parameter.h.
|
staticprotected |
|
inline |
Definition at line 191 of file gx_parameter.h.
|
inline |
Definition at line 186 of file gx_parameter.h.
|
inline |
Definition at line 188 of file gx_parameter.h.
|
privatevirtual |
Reimplemented in gx_engine::ParameterV< float >, gx_engine::ParameterV< int >, and gx_engine::ParameterV< bool >.
Referenced by gx_engine::MidiController::set().
|
privatevirtual |
Reimplemented in gx_engine::ParameterV< float >.
|
inline |
Definition at line 187 of file gx_parameter.h.
|
pure virtual |
Implemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::ParameterV< int >, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
inline |
Definition at line 198 of file gx_parameter.h.
|
protected |
|
pure virtual |
Implemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::FloatEnumParameter, gx_engine::ParameterV< int >, gx_engine::EnumParameter, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
virtual |
Reimplemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::FloatEnumParameter, gx_engine::ParameterV< int >, gx_engine::EnumParameter, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
inline |
Definition at line 194 of file gx_parameter.h.
|
inline |
Definition at line 190 of file gx_parameter.h.
|
inline |
Definition at line 192 of file gx_parameter.h.
|
inline |
Definition at line 196 of file gx_parameter.h.
|
pure virtual |
Implemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::ParameterV< int >, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
inline |
Definition at line 181 of file gx_parameter.h.
|
inline |
Definition at line 183 of file gx_parameter.h.
|
inline |
Definition at line 179 of file gx_parameter.h.
|
inline |
Definition at line 177 of file gx_parameter.h.
|
inline |
Definition at line 161 of file gx_parameter.h.
|
inline |
Definition at line 517 of file gx_parameter.h.
|
inline |
Definition at line 505 of file gx_parameter.h.
|
inline |
Definition at line 511 of file gx_parameter.h.
|
inline |
Definition at line 523 of file gx_parameter.h.
|
pure virtual |
Implemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::ParameterV< int >, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
virtual |
Reimplemented in gx_engine::ParameterV< float >, gx_engine::ParameterV< int >, gx_engine::ParameterV< bool >, and gx_engine::ParameterV< OscilloscopeInfo >.
Referenced by gx_engine::MidiController::trigger_changed().
|
inlinestatic |
Definition at line 210 of file gx_parameter.h.
|
pure virtual |
Implemented in gx_engine::ParameterV< GxSeqSettings >, gx_engine::ParameterV< GxJConvSettings >, gx_engine::ParameterV< float >, gx_engine::FloatEnumParameter, gx_engine::ParameterV< int >, gx_engine::EnumParameter, gx_engine::ParameterV< bool >, gx_engine::FileParameter, gx_engine::ParameterV< Glib::ustring >, and gx_engine::ParameterV< OscilloscopeInfo >.
|
friend |
Definition at line 113 of file gx_parameter.h.
|
protected |
Definition at line 118 of file gx_parameter.h.
Referenced by desc(), l_desc(), and set_desc().
|
protected |
Definition at line 118 of file gx_parameter.h.
|
protected |
Definition at line 117 of file gx_parameter.h.
Referenced by group_id(), and id().
|
protected |
Definition at line 118 of file gx_parameter.h.
|
protected |
Definition at line 125 of file gx_parameter.h.
Referenced by get_blocked(), and set_blocked().
|
protected |
Definition at line 120 of file gx_parameter.h.
Referenced by getControlType().
|
protected |
Definition at line 123 of file gx_parameter.h.
Referenced by isControllable().
|
protected |
Definition at line 121 of file gx_parameter.h.
Referenced by is_log_display(), and set_log_display().
|
protected |
Definition at line 124 of file gx_parameter.h.
Referenced by isSavable(), and setSavable().
|
protected |
Definition at line 128 of file gx_parameter.h.
Referenced by isMaxlevel(), and setMaxlevel().
|
protected |
Definition at line 126 of file gx_parameter.h.
Referenced by get_midi_blocked(), and set_midi_blocked().
|
protected |
Definition at line 129 of file gx_parameter.h.
Referenced by isNoWarning(), and setNoWarning().
|
protected |
Definition at line 127 of file gx_parameter.h.
Referenced by isOutput(), and setOutput().
|
protected |
Definition at line 122 of file gx_parameter.h.
Referenced by isInPreset().
|
protected |
Definition at line 130 of file gx_parameter.h.
|
protected |
Definition at line 119 of file gx_parameter.h.
Referenced by isBool(), isFile(), isFloat(), isInt(), and isString().