X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faxis_view.h;h=4ae8f8d46e597ce0e15818c0d615f96e06336834;hb=aa60114843f4990ef93ba83974501495ddda358b;hp=5fc6917b7497dffdbbffe1bfa8cb0028e66cb751;hpb=209d967b1bb80a9735d690d8f4f0455ecb9970ca;p=ardour.git diff --git a/gtk2_ardour/axis_view.h b/gtk2_ardour/axis_view.h index 5fc6917b74..4ae8f8d46e 100644 --- a/gtk2_ardour/axis_view.h +++ b/gtk2_ardour/axis_view.h @@ -22,9 +22,13 @@ #define __ardour_gtk_axis_view_h__ #include -#include + +#include +#include + #include #include "prompter.h" +#include "selectable.h" namespace ARDOUR { class Session; @@ -34,7 +38,7 @@ namespace ARDOUR { * AxisView defines the abstract base class for time-axis trackviews and routes. * */ -class AxisView : public SigC::Object +class AxisView : public virtual Selectable { public: /** @@ -42,18 +46,12 @@ class AxisView : public SigC::Object * * @return the current Track Color */ - Gdk_Color color() const { return _color; } + Gdk::Color color() const { return _color; } ARDOUR::Session& session() const { return _session; } virtual string name() const = 0; - virtual void set_selected (bool yn) { - if (yn != _selected) { - _selected = yn; - } - } - virtual bool marked_for_display() const { return _marked_for_display; } virtual void set_marked_for_display (bool yn) { @@ -62,9 +60,8 @@ class AxisView : public SigC::Object } } - virtual bool selected() const { return _selected; } - SigC::Signal0 Hiding; - SigC::Signal0 GoingAway; + sigc::signal Hiding; + sigc::signal GoingAway; protected: @@ -77,18 +74,16 @@ class AxisView : public SigC::Object * * @return the unique random color. */ - static GdkColor unique_random_color(); + static Gdk::Color unique_random_color(); ARDOUR::Session& _session; - Gdk_Color _color; + Gdk::Color _color; - static list used_colors; + static list used_colors; Gtk::Label name_label; - bool _selected; - bool _marked_for_display; }; /* class AxisView */