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 | 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) |
gx_system::PresetFile * | bank_insert_content (const Glib::ustring &uri, const std::string content) |
gx_system::PresetFile * | bank_insert_new (const Glib::ustring &name) |
bool | rename_bank (const Glib::ustring &oldname, Glib::ustring &newname) |
![]() | |
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) |
void | load_online_presets () |
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) |
Friends | |
class | ::PosixSignals |
Additional Inherited Members | |
![]() | |
bool | loadsetting (PresetFile *p, const Glib::ustring &name) |
void | loadstate () |
void | set_io (AbstractStateIO *st, AbstractPresetIO *pr) |
![]() | |
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 137 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 | ||
) |
Definition at line 862 of file gx_preset.cpp.
gx_preset::GxSettings::~GxSettings | ( | ) |
Definition at line 897 of file gx_preset.cpp.
void gx_preset::GxSettings::auto_save_state | ( | ) |
Definition at line 902 of file gx_preset.cpp.
Referenced by ~GxSettings(), and PosixSignals::~PosixSignals().
gx_system::PresetFile * gx_preset::GxSettings::bank_insert_content | ( | const Glib::ustring & | uri, |
const std::string | content | ||
) |
Definition at line 1058 of file gx_preset.cpp.
gx_system::PresetFile * gx_preset::GxSettings::bank_insert_new | ( | const Glib::ustring & | name | ) |
Definition at line 1086 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::bank_insert_new().
gx_system::PresetFile * gx_preset::GxSettings::bank_insert_uri | ( | const Glib::ustring & | uri, |
bool | move | ||
) |
Definition at line 1025 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::bank_insert_uri().
|
static |
Definition at line 1107 of file gx_preset.cpp.
void gx_preset::GxSettings::create_default_scratch_preset | ( | ) |
Definition at line 981 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::create_default_scratch_preset().
|
inline |
Definition at line 179 of file gx_preset.h.
Referenced by gx_engine::GxMachine::disable_autosave(), and PosixSignals::~PosixSignals().
|
inline |
Definition at line 178 of file gx_preset.h.
Referenced by PosixSignals::~PosixSignals().
|
inline |
Definition at line 175 of file gx_preset.h.
Referenced by GxService::send_rack_changed().
|
inline |
Definition at line 174 of file gx_preset.h.
Referenced by GxService::GxService(), and GxService::send_rack_changed().
|
inline |
Definition at line 187 of file gx_preset.h.
Referenced by gx_engine::GxMachine::get_rack_unit_order(), and GxService::send_rack_changed().
void gx_preset::GxSettings::insert_rack_unit | ( | const std::string & | unit, |
const std::string & | before, | ||
bool | stereo | ||
) |
Definition at line 1005 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::insert_rack_unit().
void gx_preset::GxSettings::loadstate | ( | ) |
Definition at line 1183 of file gx_preset.cpp.
Referenced by auto_save_state(), and gx_engine::GxMachine::loadstate().
void gx_preset::GxSettings::plugin_preset_list_load | ( | const PluginDef * | pdef, |
UnitPresetList & | presetnames | ||
) |
Definition at line 1225 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::plugin_preset_list_load().
void gx_preset::GxSettings::plugin_preset_list_remove | ( | const PluginDef * | pdef, |
const Glib::ustring & | name | ||
) |
Definition at line 1284 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::plugin_preset_list_remove().
void gx_preset::GxSettings::plugin_preset_list_save | ( | const PluginDef * | pdef, |
const Glib::ustring & | name | ||
) |
Definition at line 1280 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::plugin_preset_list_save().
void gx_preset::GxSettings::plugin_preset_list_set | ( | const PluginDef * | pdef, |
bool | factory, | ||
const Glib::ustring & | name | ||
) |
Definition at line 1275 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::plugin_preset_list_set().
void gx_preset::GxSettings::plugin_preset_list_sync_set | ( | const PluginDef * | pdef, |
bool | factory, | ||
const Glib::ustring & | name | ||
) |
Definition at line 1264 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::plugin_preset_list_sync_set().
bool gx_preset::GxSettings::remove_rack_unit | ( | const std::string & | unit, |
bool | stereo | ||
) |
Definition at line 995 of file gx_preset.cpp.
Referenced by insert_rack_unit(), and gx_engine::GxMachine::remove_rack_unit().
bool gx_preset::GxSettings::rename_bank | ( | const Glib::ustring & | oldname, |
Glib::ustring & | newname | ||
) |
Definition at line 1100 of file gx_preset.cpp.
Referenced by gx_engine::GxMachine::rename_bank().
|
inline |
Definition at line 188 of file gx_preset.h.
Referenced by GxService::GxService(), GxService::send_rack_changed(), and gx_engine::GxMachine::signal_rack_unit_order_changed().
Glib::RefPtr< Gio::File > gx_preset::GxSettings::uri_to_name_filename | ( | const Glib::ustring & | uri, |
Glib::ustring & | name, | ||
std::string & | filename | ||
) |
Definition at line 1015 of file gx_preset.cpp.
Referenced by bank_insert_content(), and bank_insert_uri().
|
friend |
Definition at line 157 of file gx_preset.h.