25 #ifndef SRC_HEADERS_GX_PRESET_H_ 26 #define SRC_HEADERS_GX_PRESET_H_ 41 std::vector<std::string>
mono;
53 UnitPosition(): show(false), visible(false), position(-1), pp(-1) {}
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; }
62 void set_position(
const std::string& s,
int v) { m[s].position = v; }
63 void set_pp(
const std::string& s,
bool v) { m[s].pp = v; }
65 bool empty() {
return m.empty(); }
80 bool midi_in_preset();
93 void commit_preset()
override;
96 static string try_replace_param_value(
const std::string&
id,
const std::string& v_id,
bool& found);
109 void commit_state()
override;
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);
128 bool remove(
const Glib::ustring& name);
153 void add_plugin_preset_list(
PluginPresetList& l, UnitPresetList &presetnames);
154 void exit_handler(
bool otherthread);
155 void jack_client_changed();
156 string make_state_filename();
157 string make_default_state_filename();
158 static bool check_create_config_dir(
const Glib::ustring& dir);
160 friend class ::PosixSignals;
162 friend class ::GxNsmHandler;
165 void preset_sync_start();
166 static void *preset_sync_run(
void *p);
168 void preset_sync_set();
169 void on_get_sequencer_pos();
175 using GxSettingsBase::banks;
186 void auto_save_state();
187 void plugin_preset_list_load(
const PluginDef *pdef, UnitPresetList &presetnames);
188 void plugin_preset_list_sync_set(
const PluginDef *pdef,
bool factory,
const Glib::ustring& name);
189 void plugin_preset_list_set(
const PluginDef *pdef,
bool factory,
const Glib::ustring& name);
190 void plugin_preset_list_save(
const PluginDef *pdef,
const Glib::ustring& name);
191 void plugin_preset_list_remove(
const PluginDef *pdef,
const Glib::ustring& name);
192 void create_default_scratch_preset();
195 bool remove_rack_unit(
const std::string& unit,
bool stereo);
196 void insert_rack_unit(
const std::string& unit,
const std::string& before,
bool stereo);
197 Glib::RefPtr<Gio::File> uri_to_name_filename(
const Glib::ustring& uri, Glib::ustring& name, std::string& filename);
199 gx_system::PresetFile* bank_insert_content(
const Glib::ustring& uri,
const std::string content,
int position = 0);
201 bool rename_bank(
const Glib::ustring& oldname, Glib::ustring& newname);
206 #endif // SRC_HEADERS_GX_PRESET_H_ void set_pp(const std::string &s, bool v)
void set_show(const std::string &s, bool v)
void disable_autosave(bool v)
list< Parameter * > paramlist
void set_visible(const std::string &s, bool v)
std::vector< std::string > & get_rack_unit_order(bool stereo)
gx_system::CmdlineOptions & opt
std::vector< PluginPresetEntry > UnitPresetList
gx_engine::ControllerArray * m
volatile int sequencer_pos
sigc::signal< void, bool > rack_unit_order_changed
std::vector< std::string > mono
gx_preset::StateIO state_io
gx_system::CmdlineOptions & options
PluginPresetEntry(const Glib::ustring &name_, bool is_set_)
gx_system::CmdlineOptions & get_options() const
Glib::Dispatcher get_sequencer_p
static GxSettings * instance
std::vector< std::string > stereo
gx_engine::MidiStandardControllers & midi_std_control
gx_engine::MidiControllerList & mctrl
std::map< std::string, UnitPosition > m
bool get_auto_save_state()
sigc::signal< void, bool > & signal_rack_unit_order_changed()
void set_position(const std::string &s, int v)
gx_engine::ParamMap & param
gx_engine::StringParameter & bank_parameter
gx_engine::paramlist plist
volatile int sequencer_max
Glib::Dispatcher set_preset
gx_preset::PresetIO preset_io
gx_engine::ParamMap & param
gx_engine::StringParameter & preset_parameter
gx_engine::MidiControllerList & mctrl
gx_engine::ParamMap & get_param() const
gx_engine::MidiControllerList & mctrl
gx_engine::ParamMap & pmap