summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-12-14 15:47:45 +0100
committerRobin Gareus <robin@gareus.org>2019-12-14 15:51:09 +0100
commitb2071bd8ed5307451f3df77dfd94a855aeb256f5 (patch)
tree558c2aa9e2a9faf510e8251ce786b921474a33db /gtk2_ardour/processor_box.cc
parent93180ceea90e597828ea7473b8e181950df66427 (diff)
Use InlineControl Port Property
This replaces the special case of showing send-level controls inline in the mixer-strip with a generic Controllable::InlineControl property.
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r--gtk2_ardour/processor_box.cc20
1 files changed, 3 insertions, 17 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index 5caa426646..c1d67cffca 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -1035,7 +1035,8 @@ ProcessorEntry::Control::set_state (XMLNode const * node)
set_visible (visible);
}
} else {
- set_visible (false);
+ boost::shared_ptr<AutomationControl> c = _control.lock ();
+ set_visible (c && (c->flags () & Controllable::InlineControl));
}
}
@@ -2896,19 +2897,8 @@ ProcessorBox::add_processor_to_display (boost::weak_ptr<Processor> p)
boost::shared_ptr<UnknownProcessor> stub = boost::dynamic_pointer_cast<UnknownProcessor> (processor);
//faders and meters are not deletable, copy/paste-able, so they shouldn't be selectable
- if (!send && !plugin_insert && !ext && !stub)
+ if (!send && !plugin_insert && !ext && !stub) {
e->set_selectable(false);
-
- bool mark_send_visible = false;
- if (send && _parent_strip) {
- /* show controls of new sends by default */
- GUIObjectState& st = _parent_strip->gui_object_state ();
- XMLNode* strip = st.get_or_add_node (_parent_strip->state_id ());
- assert (strip);
- /* check if state exists, if not it must be a new send */
- if (!st.get_node(strip, e->state_id())) {
- mark_send_visible = true;
- }
}
/* Set up this entry's state from the GUIObjectState */
@@ -2917,10 +2907,6 @@ ProcessorBox::add_processor_to_display (boost::weak_ptr<Processor> p)
e->set_control_state (proc);
}
- if (mark_send_visible) {
- e->show_all_controls ();
- }
-
if (plugin_insert
#ifdef MIXBUS
&& !plugin_insert->plugin(0)->is_channelstrip()