28 tp_scale,
tp_scale_log,
tp_toggle,
tp_enum,
tp_display,
tp_display_toggle,
tp_none,
tp_int,
tp_enabled,
tp_atom,
43 inline void sf(
int f) { set_flags |= f; }
51 inline bool is_set(
int f)
const {
return set_flags & f; }
52 inline void unset(
int f) { set_flags &= ~f; }
65 inline bool has_enumkey(
int k) {
return enumdict.find(k) != enumdict.end(); }
67 inline std::map<int, Glib::ustring>::iterator
find_enum(
int k) {
return enumdict.find(k); }
68 inline void erase_enum(
int k) { enumdict.erase(enumdict.find(k)); }
69 inline std::map<int, Glib::ustring>::iterator
enum_end() {
return enumdict.end(); }
94 static const int SR = 44100;
100 void set_default(
float value, Glib::ustring label);
109 bool check_changed(
const PortDesc& vp)
const;
110 Glib::ustring get_enum(
int idx);
162 bool check_changed();
163 bool _i_check_has_settings();
164 void check_has_settings();
165 int set_active(
bool v);
167 void set_add_wet_dry_controller(
bool v);
168 void set_stereo_to_mono(
bool v);
170 void set_category(
const std::vector<Glib::ustring>& s);
171 void set_default(
int idx,
float value,
const Glib::ustring& label);
172 void set_state(
const Glib::ustring& fname);
175 PluginDesc(LilvWorld *world,
const LilvPlugin* plugin,
int tp_, std::vector<PortDesc*>& ctrl_ports_);
213 bool feature_is_supported(
const char* uri);
214 static void get_preset_values(
const char* port_symbol,
void* user_data,
const void* value, uint32_t size, uint32_t type);
215 static void set_preset_values(Glib::ustring port_symbol,
LV2Preset* pdata, Glib::ustring value);
217 static void add_plugin(
const LADSPA_Descriptor& desc, pluginmap& d,
const std::string& path,
int index);
218 static void load_defs(
const std::string& path, pluginmap& d);
219 static void set_instances(
const char *uri, pluginmap& d, std::vector<Glib::ustring>& label,
220 std::vector<unsigned long>& not_found, std::set<unsigned long>& seen);
221 static void descend(
const char *uri, pluginmap& d,
222 std::vector<unsigned long>& not_found, std::set<unsigned long>& seen,
223 std::vector<Glib::ustring>& base);
235 using std::vector<PluginDesc*>::begin;
236 using std::vector<PluginDesc*>::end;
void set_enumvalue(int k, const Glib::ustring &v)
int LADSPA_PortRangeHintDescriptor
LilvNode * lv2_connectionOptional
static std::string make_key(unsigned long unique_id)
const Glib::ustring & get_name()
LilvNode * lv2_OutputPort
friend bool operator!=(const ChangeableValues &v1, const ChangeableValues &v2)
LilvNode * lv2_ControlPort
std::map< int, Glib::ustring >::iterator enum_end()
void serializeJSON(gx_system::JsonWriter &jw)
int get_excl_flags(DisplayType tp) const
std::vector< PortDesc * > ctrl_ports
std::string ladspa_category
const Glib::ustring & get_name()
std::vector< PortDesc * > ctrl_ports
Glib::ustring deduced_category
bool has_settings(DisplayType tp) const
LADSPA_PortRangeHintDescriptor hint_desc
void set_tp(DisplayType v)
std::string to_string(const T &t)
Glib::ustring MasterLabel
void set_name(const Glib::ustring &nm)
std::map< int, Glib::ustring > enumdict
const LilvPlugins * lv2_plugins
bool enumkey_changed(int k)
std::map< std::string, PluginDesc * > pluginmap
std::map< int, Glib::ustring >::iterator find_enum(int k)