mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Use combo box for plugin controls for ports marked as
lv2:enumeration. git-svn-id: svn://localhost/ardour2/branches/3.0@11745 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0af622521b
commit
21a0b7ace0
3 changed files with 16 additions and 2 deletions
|
|
@ -518,8 +518,12 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
*/
|
||||
int const steps = desc.integer_step ? (desc.upper - desc.lower + 1) / desc.step : 0;
|
||||
|
||||
if (control_ui->scale_points && steps && control_ui->scale_points->size() == steps) {
|
||||
/* There is a label for each possible value of this input, so build a combo box */
|
||||
if (control_ui->scale_points && ((steps && control_ui->scale_points->size() == steps) || desc.enumeration)) {
|
||||
|
||||
/* Either:
|
||||
* a) There is a label for each possible value of this input, or
|
||||
* b) This port is marked as being an enumeration.
|
||||
*/
|
||||
|
||||
std::vector<std::string> labels;
|
||||
for (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue