25 #ifndef SRC_HEADERS_GX_PRESET_H_ 26 #define SRC_HEADERS_GX_PRESET_H_ 38 std::vector<std::string>
mono;
50 UnitPosition(): show(false), visible(false), position(-1), pp(-1) {}
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);
150 void add_plugin_preset_list(
PluginPresetList& l, UnitPresetList &presetnames);
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;
180 void auto_save_state();
181 void plugin_preset_list_load(
const PluginDef *pdef, UnitPresetList &presetnames);
182 void plugin_preset_list_sync_set(
const PluginDef *pdef,
bool factory,
const Glib::ustring& name);
183 void plugin_preset_list_set(
const PluginDef *pdef,
bool factory,
const Glib::ustring& name);
184 void plugin_preset_list_save(
const PluginDef *pdef,
const Glib::ustring& name);
185 void plugin_preset_list_remove(
const PluginDef *pdef,
const Glib::ustring& name);
186 void create_default_scratch_preset();
189 bool remove_rack_unit(
const std::string& unit,
bool stereo);
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 set_pp(const std::string &s, bool v)
CmdConnection::msg_type start
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)
std::vector< PluginPresetEntry > UnitPresetList
sigc::signal< void, bool > rack_unit_order_changed
std::vector< std::string > mono
PluginPresetEntry(const Glib::ustring &name_, bool is_set_)
gx_system::CmdlineOptions & get_options() const
std::vector< std::string > stereo
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 & get_param() const