-void
-MidiTimeAxisView::ensure_pan_views (bool show)
-{
- bool changed = false;
- for (list<boost::shared_ptr<AutomationTimeAxisView> >::iterator i = pan_tracks.begin(); i != pan_tracks.end(); ++i) {
- changed = true;
- (*i)->set_marked_for_display (false);
- }
- if (changed) {
- _route->gui_changed (X_("visible_tracks"), (void *) 0); /* EMIT_SIGNAL */
- }
- pan_tracks.clear();
-
- if (!_route->panner()) {
- return;
- }
-
- set<Evoral::Parameter> params = _route->panner()->what_can_be_automated();
- set<Evoral::Parameter>::iterator p;
-
- for (p = params.begin(); p != params.end(); ++p) {
- boost::shared_ptr<ARDOUR::AutomationControl> pan_control = _route->pannable()->automation_control(*p);
-
- if (pan_control->parameter().type() == NullAutomation) {
- error << "Pan control has NULL automation type!" << endmsg;
- continue;
- }
-
- if (automation_child (pan_control->parameter ()).get () == 0) {
-
- /* we don't already have an AutomationTimeAxisView for this parameter */
-
- std::string const name = _route->panner()->describe_parameter (pan_control->parameter ());
-
- boost::shared_ptr<AutomationTimeAxisView> t (
- new AutomationTimeAxisView (_session,
- _route,
- _route->pannable(),
- pan_control,
- pan_control->parameter (),
- _editor,
- *this,
- false,
- parent_canvas,
- name)
- );
-
- pan_tracks.push_back (t);
- add_automation_child (*p, t, show);
- } else {
- pan_tracks.push_back (automation_child (pan_control->parameter ()));
- }
- }
-}
-
-void
-MidiTimeAxisView::update_gain_track_visibility ()
-{
- bool const showit = gain_automation_item->get_active();
-
- if (showit != string_is_affirmative (gain_track->gui_property ("visible"))) {
- gain_track->set_marked_for_display (showit);
-
- /* now trigger a redisplay */
-
- if (!no_redraw) {
- _route->gui_changed (X_("visible_tracks"), (void *) 0); /* EMIT_SIGNAL */
- }
- }
-}
-
-void
-MidiTimeAxisView::update_pan_track_visibility ()
-{
- bool const showit = pan_automation_item->get_active();
- bool changed = false;
-
- for (list<boost::shared_ptr<AutomationTimeAxisView> >::iterator i = pan_tracks.begin(); i != pan_tracks.end(); ++i) {
- if ((*i)->set_marked_for_display (showit)) {
- changed = true;
- }
- }
-
- if (changed) {
- _route->gui_changed (X_("visible_tracks"), (void *) 0); /* EMIT_SIGNAL */
- }
-}
-