Go to the documentation of this file.
25 #ifndef SRC_HEADERS_GX_PRESET_H_
26 #define SRC_HEADERS_GX_PRESET_H_
38 std::vector<std::string>
mono;
39 std::vector<std::string>
stereo;
55 std::map<std::string,UnitPosition> m;
57 void set_show(
const std::string& s,
bool v) { m[s].show = v; }
58 void set_visible(
const std::string& s,
bool v) { m[s].visible = v; }
59 void set_position(
const std::string& s,
int v) { m[s].position = v; }
60 void set_pp(
const std::string& s,
bool v) { m[s].pp = v; }
62 bool empty() {
return m.empty(); }
78 bool midi_in_preset();
112 std::string filename;
122 bool next(Glib::ustring& name,
bool *is_set = 0);
123 bool set(
const Glib::ustring& name);
124 void save(
const Glib::ustring& name,
const std::string&
id,
const char **groups);
125 bool remove(
const Glib::ustring& name);
151 void exit_handler(
bool otherthread);
152 void jack_client_changed();
153 string make_state_filename();
154 string make_default_state_filename();
155 static bool check_create_config_dir(
const Glib::ustring& dir);
157 friend class ::PosixSignals;
158 Glib::ustring sync_name;
159 void preset_sync_start();
160 static void *preset_sync_run(
void *p);
162 void preset_sync_set();
163 void on_get_sequencer_pos();
164 Glib::Dispatcher set_preset;
165 Glib::Dispatcher get_sequencer_p;
166 volatile int sequencer_max;
167 volatile int sequencer_pos;
169 using GxSettingsBase::banks;
190 void insert_rack_unit(
const std::string& unit,
const std::string& before,
bool stereo);
191 Glib::RefPtr<Gio::File>
uri_to_name_filename(
const Glib::ustring& uri, Glib::ustring& name, std::string& filename);
195 bool rename_bank(
const Glib::ustring& oldname, Glib::ustring& newname);
200 #endif // SRC_HEADERS_GX_PRESET_H_
void plugin_preset_list_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
void insert_rack_unit(const std::string &unit, const std::string &before, bool stereo)
bool remove(const Glib::ustring &name)
Glib::RefPtr< Gio::File > uri_to_name_filename(const Glib::ustring &uri, Glib::ustring &name, std::string &filename)
void set_visible(const std::string &s, bool v)
std::vector< std::string > stereo
void read_state(gx_system::JsonParser &jp, const gx_system::SettingsFileHeader &)
void set_show(const std::string &s, bool v)
void set_pp(const std::string &s, bool v)
void copy_preset(gx_system::JsonParser &jp, const gx_system::SettingsFileHeader &, gx_system::JsonWriter &jw)
bool next(Glib::ustring &name, bool *is_set=0)
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)
void plugin_preset_list_save(const PluginDef *pdef, const Glib::ustring &name)
void plugin_preset_list_load(const PluginDef *pdef, UnitPresetList &presetnames)
bool set(const Glib::ustring &name)
void read_preset(gx_system::JsonParser &jp, const gx_system::SettingsFileHeader &)
void plugin_preset_list_remove(const PluginDef *pdef, const Glib::ustring &name)
gx_engine::ParamMap & get_param() const
std::vector< PluginPresetEntry > UnitPresetList
void plugin_preset_list_sync_set(const PluginDef *pdef, bool factory, const Glib::ustring &name)
gx_system::PresetFile * bank_insert_uri(const Glib::ustring &uri, bool move)
gx_system::PresetFile * bank_insert_new(const Glib::ustring &name)
gx_system::PresetFile * bank_insert_content(const Glib::ustring &uri, const std::string content)
void get_list(std::vector< std::string > &l, bool stereo, gx_engine::ParamMap ¶m)
void disable_autosave(bool v)
static bool check_settings_dir(gx_system::CmdlineOptions &opt, bool *need_new_preset)
void save(const Glib::ustring &name, const std::string &id, const char **groups)
void read_online(gx_system::JsonParser &jp)
bool rename_bank(const Glib::ustring &oldname, Glib::ustring &newname)
PresetIO(gx_engine::MidiControllerList &mctrl, gx_engine::ConvolverAdapter &cvr, gx_engine::ParamMap ¶m, gx_system::CmdlineOptions &opt, UnitRacks &rack_units)
void set_position(const std::string &s, int v)
void create_default_scratch_preset()
void write_state(gx_system::JsonWriter &jw, bool preserve_preset)
std::vector< std::string > mono
std::vector< std::string > & get_rack_unit_order(bool stereo)
gx_system::CmdlineOptions & get_options() const
bool get_auto_save_state()
sigc::signal< void, bool > rack_unit_order_changed
list< Parameter * > paramlist
void write_preset(gx_system::JsonWriter &jw)
gx_engine::EngineControl & seq
bool remove_rack_unit(const std::string &unit, bool stereo)
PluginPresetEntry(const Glib::ustring &name_, bool is_set_)
sigc::signal< void, bool > & signal_rack_unit_order_changed()
PluginPresetList(const std::string &fname, gx_engine::ParamMap &pmap, gx_engine::MidiControllerList &mctrl_)