Guitarix
gx_system::GxSettingsBase Class Reference

#include <gx_json.h>

Inheritance diagram for gx_system::GxSettingsBase:
Collaboration diagram for gx_system::GxSettingsBase:

Public Member Functions

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)
 
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)
 

Protected Member Functions

bool loadsetting (PresetFile *p, const Glib::ustring &name)
 
void loadstate ()
 
void set_io (AbstractStateIO *st, AbstractPresetIO *pr)
 

Protected Attributes

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 459 of file gx_json.h.

Constructor & Destructor Documentation

gx_system::GxSettingsBase::GxSettingsBase ( gx_engine::EngineControl seq_)

Definition at line 1704 of file gx_json.cpp.

gx_system::GxSettingsBase::~GxSettingsBase ( )

Definition at line 1716 of file gx_json.cpp.

Member Function Documentation

void gx_system::GxSettingsBase::append ( PresetFile pf,
const Glib::ustring &  src,
PresetFile pftgt,
const Glib::ustring &  name 
)

Definition at line 1830 of file gx_json.cpp.

Referenced by insert_after(), and gx_engine::GxMachine::pf_append().

bool gx_system::GxSettingsBase::convert_preset ( PresetFile pf)

Definition at line 1940 of file gx_json.cpp.

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

void gx_system::GxSettingsBase::erase_preset ( const Glib::ustring &  name)
void gx_system::GxSettingsBase::erase_preset ( PresetFile pf,
const Glib::ustring &  name 
)

Definition at line 1925 of file gx_json.cpp.

const Glib::ustring& gx_system::GxSettingsBase::get_current_bank ( )
inline
PresetFile* gx_system::GxSettingsBase::get_current_bank_file ( )
inline
const Glib::ustring& gx_system::GxSettingsBase::get_current_name ( )
inline
void gx_system::GxSettingsBase::insert_after ( PresetFile pf,
const Glib::ustring &  src,
PresetFile pftgt,
const Glib::ustring &  pos,
const Glib::ustring &  name 
)

Definition at line 1868 of file gx_json.cpp.

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

void gx_system::GxSettingsBase::insert_before ( PresetFile pf,
const Glib::ustring &  src,
PresetFile pftgt,
const Glib::ustring &  pos,
const Glib::ustring &  name 
)

Definition at line 1848 of file gx_json.cpp.

Referenced by insert_after(), and gx_engine::GxMachine::pf_insert_before().

void gx_system::GxSettingsBase::load_preset ( PresetFile pf,
const Glib::ustring &  name 
)
bool gx_system::GxSettingsBase::loadsetting ( PresetFile p,
const Glib::ustring &  name 
)
protected

Definition at line 1719 of file gx_json.cpp.

Referenced by gx_preset::GxSettings::auto_save_state(), load_preset(), and loadstate().

void gx_system::GxSettingsBase::loadstate ( )
protected

Definition at line 1799 of file gx_json.cpp.

bool gx_system::GxSettingsBase::remove_bank ( const Glib::ustring &  bank)

Definition at line 1985 of file gx_json.cpp.

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

bool gx_system::GxSettingsBase::rename_bank ( const Glib::ustring &  oldname,
const Glib::ustring &  newname,
const std::string &  newfile 
)

Definition at line 1973 of file gx_json.cpp.

bool gx_system::GxSettingsBase::rename_preset ( PresetFile pf,
const Glib::ustring &  oldname,
const Glib::ustring &  newname 
)

Definition at line 1995 of file gx_json.cpp.

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

void gx_system::GxSettingsBase::reorder_preset ( PresetFile pf,
const std::vector< Glib::ustring > &  neworder 
)

Definition at line 1902 of file gx_json.cpp.

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

void gx_system::GxSettingsBase::save ( PresetFile pf,
const Glib::ustring &  name 
)
void gx_system::GxSettingsBase::save_to_state ( bool  preserve_preset = false)
void gx_system::GxSettingsBase::set_io ( AbstractStateIO st,
AbstractPresetIO pr 
)
inlineprotected

Definition at line 473 of file gx_json.h.

Referenced by gx_preset::GxSettings::GxSettings().

void gx_system::GxSettingsBase::set_source_to_state ( )

Definition at line 1811 of file gx_json.cpp.

Referenced by erase_preset(), remove_bank(), and save_to_state().

void gx_system::GxSettingsBase::set_statefilename ( const std::string &  fn)
inline

Definition at line 484 of file gx_json.h.

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

sigc::signal<void>& gx_system::GxSettingsBase::signal_presetlist_changed ( )
inline
sigc::signal<void>& gx_system::GxSettingsBase::signal_selection_changed ( )
inline

Member Data Documentation

Glib::ustring gx_system::GxSettingsBase::current_bank
protected
Glib::ustring gx_system::GxSettingsBase::current_name
protected
AbstractPresetIO* gx_system::GxSettingsBase::preset_io
protected

Definition at line 462 of file gx_json.h.

Referenced by convert_preset(), load_preset(), loadsetting(), and save().

sigc::signal<void> gx_system::GxSettingsBase::presetlist_changed
protected
sigc::signal<void> gx_system::GxSettingsBase::selection_changed
protected
gx_engine::EngineControl& gx_system::GxSettingsBase::seq
protected

Definition at line 467 of file gx_json.h.

Referenced by convert_preset(), load_preset(), loadsetting(), and loadstate().

AbstractStateIO* gx_system::GxSettingsBase::state_io
protected

Definition at line 461 of file gx_json.h.

Referenced by convert_preset(), loadsetting(), and save_to_state().

StateFile gx_system::GxSettingsBase::statefile
protected

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