Add 'controls' item to plugin insert context menu to always show Ardour generated controls for plugin, even if the plugin has a GUI. In particular, this gives you UI access to presets and the other handy stuff ardour sticks at the top, for inherently broken external UIs which don't allow Ardour to add such things.

Fix crash related to scale points when showing plugin UIs.

Fix packing of scrolled generic plugin UI so the controls expand (rather than leaving a ton of wasted empty space and using unnecessary scroll bars).


git-svn-id: svn://localhost/ardour2/branches/3.0@9551 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard
2011-05-18 05:00:44 +00:00
parent 424b3479de
commit 041c882143
7 changed files with 126 additions and 66 deletions

View File

@@ -57,7 +57,7 @@ class PluginInsert : public Processor
void activate ();
void deactivate ();
void flush ();
void flush ();
int set_block_size (pframes_t nframes);
@@ -83,13 +83,13 @@ class PluginInsert : public Processor
void set_value (double val);
double get_value (void) const;
XMLNode& get_state();
XMLNode& get_state();
double user_to_ui (double) const;
double ui_to_user (double) const;
double plugin_to_ui (double) const;
double plugin_to_user (double) const;
private:
double user_to_plugin (double) const;
@@ -158,7 +158,7 @@ class PluginInsert : public Processor
void set_automatable ();
void control_list_automation_state_changed (Evoral::Parameter, AutoState);
void set_parameter_state_2X (const XMLNode& node, int version);
void set_control_ids (const XMLNode&, int version);
void set_control_ids (const XMLNode&, int version);
int32_t count_for_configuration (ChanCount in, ChanCount out) const;