X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faudio_time_axis.cc;h=d06a4c53e33ffe0aa908dc02453b0bf30df13bb2;hb=7e4f261853574a979865bddc94770600588f551e;hp=40c35d7cba0cfef3d83432024da73eb18d4890ba;hpb=52d67203a10d3223f9f283fb56803b7979a0c2bd;p=ardour.git diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc index 40c35d7cba..d06a4c53e3 100644 --- a/gtk2_ardour/audio_time_axis.cc +++ b/gtk2_ardour/audio_time_axis.cc @@ -42,7 +42,6 @@ #include "ardour/panner_shell.h" #include "ardour_button.h" -#include "ardour_ui.h" #include "audio_time_axis.h" #include "automation_line.h" #include "enums.h" @@ -56,7 +55,7 @@ #include "audio_streamview.h" #include "utils.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace ARDOUR; @@ -66,7 +65,7 @@ using namespace Gtk; using namespace Editing; AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session* sess, ArdourCanvas::Canvas& canvas) - : AxisView(sess) + : SessionHandlePtr (sess) , RouteTimeAxisView(ed, sess, canvas) { } @@ -117,7 +116,7 @@ AudioTimeAxisView::set_route (boost::shared_ptr rt) if (_route->panner_shell()) { _route->panner_shell()->Changed.connect (*this, invalidator (*this), - boost::bind (&AudioTimeAxisView::ensure_pan_views, this, false), gui_context()); + boost::bind (&AudioTimeAxisView::ensure_pan_views, this, false), gui_context()); } /* map current state of the route */ @@ -184,14 +183,14 @@ AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool AutomationTracks::iterator existing = _automation_tracks.find (param); if (existing != _automation_tracks.end()) { - + /* automation track created because we had existing data for * the processor, but visibility may need to be controlled * since it will have been set visible by default. */ existing->second->set_marked_for_display (show); - + if (!no_redraw) { request_redraw (); } @@ -208,8 +207,8 @@ AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool create_trim_automation_child (param, show); } else if (param.type() == PanWidthAutomation || - param.type() == PanElevationAutomation || - param.type() == PanAzimuthAutomation) { + param.type() == PanElevationAutomation || + param.type() == PanAzimuthAutomation) { ensure_pan_views (show); @@ -220,7 +219,7 @@ AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool } else if (param.type() == MuteAutomation) { create_mute_automation_child (param, show); - + } else { error << "AudioTimeAxisView: unknown automation child " << EventTypeMap::instance().to_symbol(param) << endmsg; @@ -308,7 +307,7 @@ AudioTimeAxisView::update_control_names () } } - if (get_selected()) { + if (selected()) { controls_ebox.set_name (controls_base_selected_name); time_axis_frame.set_name (controls_base_selected_name); } else {