Guitarix
gx_preset::GxSettings Class Reference

#include <gx_preset.h>

Inheritance diagram for gx_preset::GxSettings:
Collaboration diagram for gx_preset::GxSettings:

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::ParamMapget_param () const
 
gx_system::CmdlineOptionsget_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_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::PresetFilebank_insert_uri (const Glib::ustring &uri, bool move)
 
gx_system::PresetFilebank_insert_content (const Glib::ustring &uri, const std::string content)
 
gx_system::PresetFilebank_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 ()
 
PresetFileget_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

- 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
AbstractStateIOstate_io
 
AbstractPresetIOpreset_io
 
StateFile statefile
 
PresetBanks banks
 
Glib::ustring current_bank
 
Glib::ustring current_name
 
gx_engine::EngineControlseq
 
sigc::signal< void > selection_changed
 
sigc::signal< void > presetlist_changed
 

Detailed Description

Definition at line 137 of file gx_preset.h.

Constructor & Destructor Documentation

◆ GxSettings()

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 858 of file gx_preset.cpp.

◆ ~GxSettings()

gx_preset::GxSettings::~GxSettings ( )

Definition at line 886 of file gx_preset.cpp.

Member Function Documentation

◆ auto_save_state()

void gx_preset::GxSettings::auto_save_state ( )

Definition at line 891 of file gx_preset.cpp.

Referenced by ~GxSettings(), and PosixSignals::~PosixSignals().

◆ bank_insert_content()

gx_system::PresetFile * gx_preset::GxSettings::bank_insert_content ( const Glib::ustring &  uri,
const std::string  content 
)

Definition at line 1047 of file gx_preset.cpp.

◆ bank_insert_new()

gx_system::PresetFile * gx_preset::GxSettings::bank_insert_new ( const Glib::ustring &  name)

Definition at line 1075 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::bank_insert_new().

◆ bank_insert_uri()

gx_system::PresetFile * gx_preset::GxSettings::bank_insert_uri ( const Glib::ustring &  uri,
bool  move 
)

Definition at line 1014 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::bank_insert_uri().

◆ check_settings_dir()

bool gx_preset::GxSettings::check_settings_dir ( gx_system::CmdlineOptions opt,
bool *  need_new_preset 
)
static

Definition at line 1096 of file gx_preset.cpp.

◆ create_default_scratch_preset()

void gx_preset::GxSettings::create_default_scratch_preset ( )

Definition at line 970 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::create_default_scratch_preset().

◆ disable_autosave()

void gx_preset::GxSettings::disable_autosave ( bool  v)
inline

◆ get_auto_save_state()

bool gx_preset::GxSettings::get_auto_save_state ( )
inline

Definition at line 168 of file gx_preset.h.

Referenced by PosixSignals::~PosixSignals().

◆ get_options()

gx_system::CmdlineOptions& gx_preset::GxSettings::get_options ( ) const
inline

Definition at line 165 of file gx_preset.h.

Referenced by GxService::send_rack_changed().

◆ get_param()

gx_engine::ParamMap& gx_preset::GxSettings::get_param ( ) const
inline

Definition at line 164 of file gx_preset.h.

Referenced by GxService::GxService(), and GxService::send_rack_changed().

◆ get_rack_unit_order()

std::vector<std::string>& gx_preset::GxSettings::get_rack_unit_order ( bool  stereo)
inline

◆ insert_rack_unit()

void gx_preset::GxSettings::insert_rack_unit ( const std::string &  unit,
const std::string &  before,
bool  stereo 
)

Definition at line 994 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::insert_rack_unit().

◆ loadstate()

void gx_preset::GxSettings::loadstate ( )

Definition at line 1172 of file gx_preset.cpp.

Referenced by auto_save_state(), and gx_engine::GxMachine::loadstate().

◆ plugin_preset_list_load()

void gx_preset::GxSettings::plugin_preset_list_load ( const PluginDef pdef,
UnitPresetList presetnames 
)

Definition at line 1214 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::plugin_preset_list_load().

◆ plugin_preset_list_remove()

void gx_preset::GxSettings::plugin_preset_list_remove ( const PluginDef pdef,
const Glib::ustring &  name 
)

Definition at line 1233 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::plugin_preset_list_remove().

◆ plugin_preset_list_save()

void gx_preset::GxSettings::plugin_preset_list_save ( const PluginDef pdef,
const Glib::ustring &  name 
)

Definition at line 1229 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::plugin_preset_list_save().

◆ plugin_preset_list_set()

void gx_preset::GxSettings::plugin_preset_list_set ( const PluginDef pdef,
bool  factory,
const Glib::ustring &  name 
)

Definition at line 1224 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::plugin_preset_list_set().

◆ remove_rack_unit()

bool gx_preset::GxSettings::remove_rack_unit ( const std::string &  unit,
bool  stereo 
)

Definition at line 984 of file gx_preset.cpp.

Referenced by insert_rack_unit(), and gx_engine::GxMachine::remove_rack_unit().

◆ rename_bank()

bool gx_preset::GxSettings::rename_bank ( const Glib::ustring &  oldname,
Glib::ustring &  newname 
)

Definition at line 1089 of file gx_preset.cpp.

Referenced by gx_engine::GxMachine::rename_bank().

◆ signal_rack_unit_order_changed()

sigc::signal<void,bool>& gx_preset::GxSettings::signal_rack_unit_order_changed ( )
inline

◆ uri_to_name_filename()

Glib::RefPtr< Gio::File > gx_preset::GxSettings::uri_to_name_filename ( const Glib::ustring &  uri,
Glib::ustring &  name,
std::string &  filename 
)

Definition at line 1004 of file gx_preset.cpp.

Referenced by bank_insert_content(), and bank_insert_uri().

Friends And Related Function Documentation

◆ ::PosixSignals

friend class ::PosixSignals
friend

Definition at line 157 of file gx_preset.h.


The documentation for this class was generated from the following files: