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();
111 std::string filename;
121 bool next(Glib::ustring& name,
bool *is_set = 0);
122 bool set(
const Glib::ustring& name);
123 void save(
const Glib::ustring& name,
const std::string&
id,
const char **groups);
124 bool remove(
const Glib::ustring& name);
149 void add_plugin_preset_list(
PluginPresetList& l, UnitPresetList &presetnames);
150 void exit_handler(
bool otherthread);
151 void jack_client_changed();
152 string make_state_filename();
153 string make_default_state_filename();
154 static bool check_create_config_dir(
const Glib::ustring& dir);
156 friend class ::PosixSignals;
158 using GxSettingsBase::banks;
169 void auto_save_state();
170 void plugin_preset_list_load(
const PluginDef *pdef, UnitPresetList &presetnames);
171 void plugin_preset_list_set(
const PluginDef *pdef,
bool factory,
const Glib::ustring& name);
172 void plugin_preset_list_save(
const PluginDef *pdef,
const Glib::ustring& name);
173 void plugin_preset_list_remove(
const PluginDef *pdef,
const Glib::ustring& name);
174 void create_default_scratch_preset();
177 bool remove_rack_unit(
const std::string& unit,
bool stereo);
178 void insert_rack_unit(
const std::string& unit,
const std::string& before,
bool stereo);
179 Glib::RefPtr<Gio::File> uri_to_name_filename(
const Glib::ustring& uri, Glib::ustring& name, std::string& filename);
183 bool rename_bank(
const Glib::ustring& oldname, Glib::ustring& newname);
188 #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