25#ifndef SRC_HEADERS_GX_PRESET_H_
26#define SRC_HEADERS_GX_PRESET_H_
41 std::vector<std::string>
mono;
58 std::map<std::string,UnitPosition>
m;
60 void set_show(
const std::string& s,
bool v) {
m[s].show = v; }
61 void set_visible(
const std::string& s,
bool v) {
m[s].visible = v; }
63 void set_pp(
const std::string& s,
bool v) {
m[s].pp = v; }
125 bool next(Glib::ustring& name,
bool *is_set = 0);
126 bool set(
const Glib::ustring& name);
127 void save(
const Glib::ustring& name,
const std::string&
id,
const char **groups);
161 friend class ::PosixSignals;
163 friend class ::GxNsmHandler;
176 using GxSettingsBase::banks;
199 Glib::RefPtr<Gio::File>
uri_to_name_filename(
const Glib::ustring& uri, Glib::ustring& name, std::string& filename);
203 bool rename_bank(
const Glib::ustring& oldname, Glib::ustring& newname);
gx_engine::StringParameter & bank_parameter
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)
sigc::signal< void, bool > & signal_rack_unit_order_changed()
static bool check_create_config_dir(const Glib::ustring &dir)
gx_system::PresetFile * bank_insert_content(const Glib::ustring &uri, const std::string content, int position=0)
static bool check_settings_dir(gx_system::CmdlineOptions &opt, bool *need_new_preset)
void disable_autosave(bool v)
gx_engine::StringParameter & preset_parameter
string make_state_filename()
Glib::RefPtr< Gio::File > uri_to_name_filename(const Glib::ustring &uri, Glib::ustring &name, std::string &filename)
gx_system::CmdlineOptions & get_options() const
void on_get_sequencer_pos()
volatile int sequencer_max
std::vector< std::string > & get_rack_unit_order(bool stereo)
gx_engine::ParamMap & param
void add_plugin_preset_list(PluginPresetList &l, UnitPresetList &presetnames)
gx_system::PresetFile * bank_insert_uri(const Glib::ustring &uri, bool move, int position=0)
gx_system::CmdlineOptions & options
volatile int sequencer_pos
bool get_auto_save_state()
void insert_rack_unit(const std::string &unit, const std::string &before, bool stereo)
gx_preset::PresetIO preset_io
void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring &name)
void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring &name)
void create_default_scratch_preset()
void jack_client_changed()
Glib::Dispatcher set_preset
void disable_save_on_exit(bool v)
gx_system::PresetFile * bank_insert_new(const Glib::ustring &name)
static void * preset_sync_run(void *p)
static GxSettings * instance
gx_engine::MidiControllerList & mctrl
void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_engine::ParamMap & get_param() const
bool remove_rack_unit(const std::string &unit, bool stereo)
void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_preset::StateIO state_io
void exit_handler(bool otherthread)
string make_default_state_filename()
bool rename_bank(const Glib::ustring &oldname, Glib::ustring &newname)
Glib::Dispatcher get_sequencer_p
void plugin_preset_list_load(const PluginDef *pdef, UnitPresetList &presetnames)
PluginPresetEntry(const Glib::ustring &name_, bool is_set_)
void save(const Glib::ustring &name, const std::string &id, const char **groups)
void write_values(gx_system::JsonWriter &jw, std::string id, const char **groups)
PluginPresetList(const std::string &fname, gx_engine::ParamMap &pmap, gx_engine::MidiControllerList &mctrl_)
bool set(const Glib::ustring &name)
gx_engine::ParamMap & pmap
bool remove(const Glib::ustring &name)
bool next(Glib::ustring &name, bool *is_set=0)
gx_engine::MidiControllerList & mctrl
void write_preset(gx_system::JsonWriter &jw) override
gx_engine::ParamMap & param
void fixup_parameters(const gx_system::SettingsFileHeader &head)
gx_engine::paramlist plist
void copy_preset(gx_system::JsonParser &jp, const gx_system::SettingsFileHeader &, gx_system::JsonWriter &jw) override
void write_parameters(gx_system::JsonWriter &w, bool preset)
static string try_replace_param_value(const std::string &id, const std::string &v_id, bool &found)
PresetIO(gx_engine::MidiControllerList &mctrl, gx_engine::ParamMap ¶m, gx_system::CmdlineOptions &opt, UnitRacks &rack_units)
void commit_midi_feedback(gx_engine::Parameter *p)
bool convert_old(gx_system::JsonParser &jp)
gx_engine::MidiControllerList & mctrl
void read_intern(gx_system::JsonParser &jp, bool *has_midi, const gx_system::SettingsFileHeader &head)
gx_engine::ControllerArray * m
void write_intern(gx_system::JsonWriter &w, bool write_midi)
void commit_preset() override
void collectRackOrder(gx_engine::Parameter *p, gx_system::JsonParser &jp, UnitsCollector &u)
gx_system::CmdlineOptions & opt
void read_parameters(gx_system::JsonParser &jp, bool preset)
void read_preset(gx_system::JsonParser &jp, const gx_system::SettingsFileHeader &) override
void read_state(gx_system::JsonParser &jp, const gx_system::SettingsFileHeader &) override
void commit_state() override
StateIO(gx_engine::MidiControllerList &mctrl, gx_engine::ParamMap ¶m, gx_engine::MidiStandardControllers &mstdctr, gx_jack::GxJack &jack, gx_system::CmdlineOptions &opt, UnitRacks &rack_units)
gx_engine::MidiStandardControllers & midi_std_control
void write_state(gx_system::JsonWriter &jw, bool preserve_preset) override
sigc::signal< void, bool > rack_unit_order_changed
std::vector< std::string > mono
std::vector< std::string > stereo
void set_pp(const std::string &s, bool v)
void set_show(const std::string &s, bool v)
std::map< std::string, UnitPosition > m
void set_position(const std::string &s, int v)
void set_visible(const std::string &s, bool v)
void get_list(std::vector< std::string > &l, bool stereo, gx_engine::ParamMap ¶m)
gx_engine::EngineControl & seq
list< Parameter * > paramlist
std::vector< PluginPresetEntry > UnitPresetList