mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Rename combo_map variable to scale_points.
git-svn-id: svn://localhost/ardour2/branches/3.0@11742 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ed12f85c88
commit
6238ca5e72
2 changed files with 9 additions and 9 deletions
|
|
@ -496,13 +496,13 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
||||||
|
|
||||||
/* Build a combo box */
|
/* Build a combo box */
|
||||||
|
|
||||||
control_ui->combo_map = plugin->get_scale_points (port_index);
|
control_ui->scale_points = plugin->get_scale_points (port_index);
|
||||||
|
|
||||||
if (control_ui->combo_map) {
|
if (control_ui->scale_points) {
|
||||||
std::vector<std::string> labels;
|
std::vector<std::string> labels;
|
||||||
for (
|
for (
|
||||||
ARDOUR::Plugin::ScalePoints::const_iterator i = control_ui->combo_map->begin();
|
ARDOUR::Plugin::ScalePoints::const_iterator i = control_ui->scale_points->begin();
|
||||||
i != control_ui->combo_map->end();
|
i != control_ui->scale_points->end();
|
||||||
++i) {
|
++i) {
|
||||||
|
|
||||||
labels.push_back(i->first);
|
labels.push_back(i->first);
|
||||||
|
|
@ -744,8 +744,8 @@ GenericPluginUI::update_control_display (ControlUI* cui)
|
||||||
|
|
||||||
cui->ignore_change++;
|
cui->ignore_change++;
|
||||||
|
|
||||||
if (cui->combo && cui->combo_map) {
|
if (cui->combo && cui->scale_points) {
|
||||||
for (ARDOUR::Plugin::ScalePoints::iterator it = cui->combo_map->begin(); it != cui->combo_map->end(); ++it) {
|
for (ARDOUR::Plugin::ScalePoints::iterator it = cui->scale_points->begin(); it != cui->scale_points->end(); ++it) {
|
||||||
if (it->second == val) {
|
if (it->second == val) {
|
||||||
cui->combo->set_active_text(it->first);
|
cui->combo->set_active_text(it->first);
|
||||||
break;
|
break;
|
||||||
|
|
@ -787,9 +787,9 @@ GenericPluginUI::control_port_toggled (ControlUI* cui)
|
||||||
void
|
void
|
||||||
GenericPluginUI::control_combo_changed (ControlUI* cui)
|
GenericPluginUI::control_combo_changed (ControlUI* cui)
|
||||||
{
|
{
|
||||||
if (!cui->ignore_change && cui->combo_map) {
|
if (!cui->ignore_change && cui->scale_points) {
|
||||||
string value = cui->combo->get_active_text();
|
string value = cui->combo->get_active_text();
|
||||||
insert->automation_control (cui->parameter())->set_value ((*cui->combo_map)[value]);
|
insert->automation_control (cui->parameter())->set_value ((*cui->scale_points)[value]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
/* input */
|
/* input */
|
||||||
|
|
||||||
Gtk::ComboBoxText* combo;
|
Gtk::ComboBoxText* combo;
|
||||||
boost::shared_ptr<ARDOUR::Plugin::ScalePoints> combo_map;
|
boost::shared_ptr<ARDOUR::Plugin::ScalePoints> scale_points;
|
||||||
Gtk::ToggleButton* button;
|
Gtk::ToggleButton* button;
|
||||||
boost::shared_ptr<AutomationController> controller;
|
boost::shared_ptr<AutomationController> controller;
|
||||||
Gtkmm2ext::ClickBox* clickbox;
|
Gtkmm2ext::ClickBox* clickbox;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue