Guitarix
|
#include <gx_preset.h>
Public Member Functions | |
GxSettings (gx_system::CmdlineOptions &opt, gx_jack::GxJack &jack, gx_engine::ConvolverAdapter &cvr, gx_engine::MidiStandardControllers &mstdctr, gx_engine::MidiControllerList &mctrl, gx_engine::ModuleSequencer &seq) | |
~GxSettings () | |
gx_engine::ParamMap & | get_param () const |
gx_system::CmdlineOptions & | get_options () const |
void | loadstate () |
bool | get_auto_save_state () |
void | disable_autosave (bool v) |
void | disable_save_on_exit (bool v) |
void | auto_save_state () |
void | plugin_preset_list_load (const PluginDef *pdef, UnitPresetList &presetnames) |
void | plugin_preset_list_sync_set (const PluginDef *pdef, bool factory, const Glib::ustring &name) |
void | plugin_preset_list_set (const PluginDef *pdef, bool factory, const Glib::ustring &name) |
void | plugin_preset_list_save (const PluginDef *pdef, const Glib::ustring &name) |
void | plugin_preset_list_remove (const PluginDef *pdef, const Glib::ustring &name) |
void | create_default_scratch_preset () |
std::vector< std::string > & | get_rack_unit_order (bool stereo) |
sigc::signal< void, bool > & | signal_rack_unit_order_changed () |
bool | remove_rack_unit (const std::string &unit, bool stereo) |
void | insert_rack_unit (const std::string &unit, const std::string &before, bool stereo) |
Glib::RefPtr< Gio::File > | uri_to_name_filename (const Glib::ustring &uri, Glib::ustring &name, std::string &filename) |
gx_system::PresetFile * | bank_insert_uri (const Glib::ustring &uri, bool move, int position=0) |
gx_system::PresetFile * | bank_insert_content (const Glib::ustring &uri, const std::string content, int position=0) |
gx_system::PresetFile * | bank_insert_new (const Glib::ustring &name) |
bool | rename_bank (const Glib::ustring &oldname, Glib::ustring &newname) |
Public Member Functions inherited from gx_system::GxSettingsBase | |
sigc::signal< void > & | signal_selection_changed () |
sigc::signal< void > & | signal_presetlist_changed () |
GxSettingsBase (gx_engine::EngineControl &seq_) | |
~GxSettingsBase () | |
const Glib::ustring & | get_current_bank () |
PresetFile * | get_current_bank_file () |
const Glib::ustring & | get_current_name () |
void | set_statefilename (const std::string &fn) |
void | save_to_state (bool preserve_preset=false) |
void | set_source_to_state () |
void | erase_preset (const Glib::ustring &name) |
bool | setting_is_preset () |
bool | convert_preset (PresetFile &pf) |
void | reorder_preset (PresetFile &pf, const std::vector< Glib::ustring > &neworder) |
void | erase_preset (PresetFile &pf, const Glib::ustring &name) |
void | save (PresetFile &pf, const Glib::ustring &name) |
void | append (PresetFile &pf, const Glib::ustring &src, PresetFile &pftgt, const Glib::ustring &name) |
void | insert_before (PresetFile &pf, const Glib::ustring &src, PresetFile &pftgt, const Glib::ustring &pos, const Glib::ustring &name) |
void | insert_after (PresetFile &pf, const Glib::ustring &src, PresetFile &pftgt, const Glib::ustring &pos, const Glib::ustring &name) |
void | load_preset (PresetFile *pf, const Glib::ustring &name) |
bool | rename_bank (const Glib::ustring &oldname, const Glib::ustring &newname, const std::string &newfile) |
bool | remove_bank (const Glib::ustring &bank) |
bool | rename_preset (PresetFile &pf, const Glib::ustring &oldname, const Glib::ustring &newname) |
Static Public Member Functions | |
static bool | check_settings_dir (gx_system::CmdlineOptions &opt, bool *need_new_preset) |
Private Member Functions | |
void | add_plugin_preset_list (PluginPresetList &l, UnitPresetList &presetnames) |
void | exit_handler (bool otherthread) |
void | jack_client_changed () |
string | make_state_filename () |
string | make_default_state_filename () |
void | preset_sync_start () |
void * | sync_run () |
void | preset_sync_set () |
void | on_get_sequencer_pos () |
Static Private Member Functions | |
static bool | check_create_config_dir (const Glib::ustring &dir) |
static void * | preset_sync_run (void *p) |
Private Attributes | |
gx_engine::ParamMap & | param |
gx_preset::PresetIO | preset_io |
gx_preset::StateIO | state_io |
bool | state_loaded |
bool | no_autosave |
bool | no_save_on_exit |
gx_jack::GxJack & | jack |
gx_engine::MidiControllerList & | mctrl |
gx_system::CmdlineOptions & | options |
gx_engine::StringParameter & | preset_parameter |
gx_engine::StringParameter & | bank_parameter |
UnitRacks | rack_units |
Glib::ustring | sync_name |
Glib::Dispatcher | set_preset |
Glib::Dispatcher | get_sequencer_p |
volatile int | sequencer_max |
volatile int | sequencer_pos |
Static Private Attributes | |
static GxSettings * | instance |
Friends | |
class | ::PosixSignals |
Additional Inherited Members | |
Protected Member Functions inherited from gx_system::GxSettingsBase | |
bool | loadsetting (PresetFile *p, const Glib::ustring &name) |
void | loadstate () |
void | set_io (AbstractStateIO *st, AbstractPresetIO *pr) |
Protected Attributes inherited from gx_system::GxSettingsBase | |
AbstractStateIO * | state_io |
AbstractPresetIO * | preset_io |
StateFile | statefile |
PresetBanks | banks |
Glib::ustring | current_bank |
Glib::ustring | current_name |
gx_engine::EngineControl & | seq |
sigc::signal< void > | selection_changed |
sigc::signal< void > | presetlist_changed |
Definition at line 140 of file gx_preset.h.
gx_preset::GxSettings::GxSettings | ( | gx_system::CmdlineOptions & | opt, |
gx_jack::GxJack & | jack, | ||
gx_engine::ConvolverAdapter & | cvr, | ||
gx_engine::MidiStandardControllers & | mstdctr, | ||
gx_engine::MidiControllerList & | mctrl, | ||
gx_engine::ModuleSequencer & | seq | ||
) |
gx_preset::GxSettings::~GxSettings | ( | ) |
|
private |
void gx_preset::GxSettings::auto_save_state | ( | ) |
gx_system::PresetFile * gx_preset::GxSettings::bank_insert_content | ( | const Glib::ustring & | uri, |
const std::string | content, | ||
int | position = 0 |
||
) |
gx_system::PresetFile * gx_preset::GxSettings::bank_insert_new | ( | const Glib::ustring & | name | ) |
gx_system::PresetFile * gx_preset::GxSettings::bank_insert_uri | ( | const Glib::ustring & | uri, |
bool | move, | ||
int | position = 0 |
||
) |
|
staticprivate |
|
static |
void gx_preset::GxSettings::create_default_scratch_preset | ( | ) |
|
inline |
Definition at line 186 of file gx_preset.h.
|
inline |
Definition at line 187 of file gx_preset.h.
|
private |
|
inline |
Definition at line 185 of file gx_preset.h.
|
inline |
Definition at line 182 of file gx_preset.h.
|
inline |
Definition at line 181 of file gx_preset.h.
|
inline |
Definition at line 195 of file gx_preset.h.
void gx_preset::GxSettings::insert_rack_unit | ( | const std::string & | unit, |
const std::string & | before, | ||
bool | stereo | ||
) |
|
private |
void gx_preset::GxSettings::loadstate | ( | ) |
|
private |
|
private |
|
private |
void gx_preset::GxSettings::plugin_preset_list_load | ( | const PluginDef * | pdef, |
UnitPresetList & | presetnames | ||
) |
void gx_preset::GxSettings::plugin_preset_list_remove | ( | const PluginDef * | pdef, |
const Glib::ustring & | name | ||
) |
void gx_preset::GxSettings::plugin_preset_list_save | ( | const PluginDef * | pdef, |
const Glib::ustring & | name | ||
) |
void gx_preset::GxSettings::plugin_preset_list_set | ( | const PluginDef * | pdef, |
bool | factory, | ||
const Glib::ustring & | name | ||
) |
void gx_preset::GxSettings::plugin_preset_list_sync_set | ( | const PluginDef * | pdef, |
bool | factory, | ||
const Glib::ustring & | name | ||
) |
|
staticprivate |
|
private |
|
private |
bool gx_preset::GxSettings::remove_rack_unit | ( | const std::string & | unit, |
bool | stereo | ||
) |
bool gx_preset::GxSettings::rename_bank | ( | const Glib::ustring & | oldname, |
Glib::ustring & | newname | ||
) |
|
inline |
Definition at line 196 of file gx_preset.h.
|
private |
Glib::RefPtr< Gio::File > gx_preset::GxSettings::uri_to_name_filename | ( | const Glib::ustring & | uri, |
Glib::ustring & | name, | ||
std::string & | filename | ||
) |
|
friend |
Definition at line 161 of file gx_preset.h.
|
private |
Definition at line 152 of file gx_preset.h.
|
private |
Definition at line 172 of file gx_preset.h.
|
staticprivate |
Definition at line 160 of file gx_preset.h.
|
private |
Definition at line 148 of file gx_preset.h.
|
private |
Definition at line 149 of file gx_preset.h.
|
private |
Definition at line 146 of file gx_preset.h.
Referenced by disable_autosave(), and get_auto_save_state().
|
private |
Definition at line 147 of file gx_preset.h.
Referenced by disable_save_on_exit().
|
private |
Definition at line 150 of file gx_preset.h.
Referenced by get_options().
|
private |
Definition at line 142 of file gx_preset.h.
Referenced by get_param().
|
private |
Definition at line 143 of file gx_preset.h.
|
private |
Definition at line 151 of file gx_preset.h.
|
private |
Definition at line 153 of file gx_preset.h.
Referenced by get_rack_unit_order(), and signal_rack_unit_order_changed().
|
private |
Definition at line 173 of file gx_preset.h.
|
private |
Definition at line 174 of file gx_preset.h.
|
private |
Definition at line 171 of file gx_preset.h.
|
private |
Definition at line 144 of file gx_preset.h.
|
private |
Definition at line 145 of file gx_preset.h.
|
private |
Definition at line 165 of file gx_preset.h.