{
return _route;
}
+
+Gdk::Color
+AutomationTimeAxisView::color () const
+{
+ return gdk_color_from_rgb (_route->presentation_info().color());
+}
virtual void set_height (uint32_t, TrackHeightMode m = OnlySelf);
void set_samples_per_pixel (double);
std::string name() const { return _name; }
+ Gdk::Color color () const;
boost::shared_ptr<ARDOUR::Stripable> stripable() const;
ARDOUR::PresentationInfo const & presentation_info () const;
* AxisView defines the abstract base class for time-axis trackviews and routes.
*
*/
-class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr
+class AxisView : public virtual Selectable, public virtual PBD::ScopedConnectionList, public virtual ARDOUR::SessionHandlePtr
{
public:
- /** @return the track's own color */
- Gdk::Color color () const { return _color; }
-
ARDOUR::Session* session() const { return _session; }
virtual std::string name() const = 0;
+ virtual Gdk::Color color() const = 0;
sigc::signal<void> Hiding;
break;
}
}
+
+string
+MeterStrip::name () const
+{
+ return _route->name();
+}
+
+Gdk::Color
+MeterStrip::color () const
+{
+ return RouteUI::route_color ();
+}
class Style;
}
-class MeterStrip : public Gtk::VBox, public RouteUI
+class MeterStrip : public Gtk::VBox, public AxisView, public RouteUI
{
public:
MeterStrip (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>);
MeterStrip (int, ARDOUR::MeterType);
~MeterStrip ();
+ std::string name() const;
+ Gdk::Color color () const;
+
void set_session (ARDOUR::Session* s);
void fast_update ();
boost::shared_ptr<ARDOUR::Route> route() { return _route; }
return false;
}
+string
+MixerStrip::name() const
+{
+ if (_route) {
+ return _route->name();
+ }
+ return string();
+}
+
void
MixerStrip::set_route (boost::shared_ptr<Route> rt)
{
number_label.hide ();
}
}
+
+Gdk::Color
+MixerStrip::color () const
+{
+ return route_color ();
+}
+
bool
MixerStrip::marked_for_display () const
{
#include "pbd/fastlog.h"
+#include "axis_view.h"
#include "ardour_knob.h"
#include "route_ui.h"
#include "gain_meter.h"
class RouteGroupMenu;
class ArdourWindow;
-class MixerStrip : public RouteUI, public Gtk::EventBox
+class MixerStrip : public AxisView, public RouteUI, public Gtk::EventBox
{
public:
MixerStrip (Mixer_UI&, ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>, bool in_mixer = true);
MixerStrip (Mixer_UI&, ARDOUR::Session*, bool in_mixer = true);
~MixerStrip ();
+ std::string name() const;
+ Gdk::Color color () const;
bool marked_for_display () const;
bool set_marked_for_display (bool);
CatchDeletion (this);
}
+string
+RouteTimeAxisView::name() const
+{
+ if (_route) {
+ return _route->name();
+ }
+ return string();
+}
+
void
RouteTimeAxisView::post_construct ()
{
return _route;
}
+Gdk::Color
+RouteTimeAxisView::color () const
+{
+ return route_color ();
+}
+
bool
RouteTimeAxisView::marked_for_display () const
{
RouteTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
virtual ~RouteTimeAxisView ();
+ std::string name() const;
+ Gdk::Color color () const;
+ bool marked_for_display () const;
+ bool set_marked_for_display (bool);
+
void set_route (boost::shared_ptr<ARDOUR::Route>);
boost::shared_ptr<ARDOUR::Stripable> stripable() const;
boost::shared_ptr<AutomationTimeAxisView> automation_child(Evoral::Parameter param);
virtual Gtk::CheckMenuItem* automation_child_menu_item (Evoral::Parameter);
- std::string name() const;
StreamView* view() const { return _view; }
ARDOUR::RouteGroup* route_group() const;
boost::shared_ptr<ARDOUR::Playlist> playlist() const;
{
drop_all_slaves ();
}
+
+Gdk::Color
+VCAMasterStrip::color () const
+{
+ return gdk_color_from_rgb (_vca->presentation_info().color ());
+}
~VCAMasterStrip ();
std::string name() const;
+ Gdk::Color color () const;
std::string state_id() const { return "VCAMasterStrip"; }
boost::shared_ptr<ARDOUR::VCA> vca() const { return _vca; }
static PBD::Signal1<void,VCAMasterStrip*> CatchDeletion;
+
private:
boost::shared_ptr<ARDOUR::VCA> _vca;
GainMeter gain_meter;
{
return _vca;
}
+
+Gdk::Color
+VCATimeAxisView::color () const
+{
+ return gdk_color_from_rgb (_vca->presentation_info().color ());
+}
boost::shared_ptr<ARDOUR::VCA> vca() const { return _vca; }
std::string name() const;
+ Gdk::Color color () const;
std::string state_id() const;
bool selectable() const { return false; }