#include "gui_object.h"
#include "axis_view.h"
#include "utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace std;
using namespace Gtk;
list<Gdk::Color> AxisView::used_colors;
-AxisView::AxisView (ARDOUR::Session* sess)
- : SessionHandlePtr (sess)
+AxisView::AxisView ()
{
- _selected = false;
}
AxisView::~AxisView()
}
GUIObjectState&
-AxisView::gui_object_state()
+AxisView::gui_object_state()
{
return *ARDOUR_UI::instance()->gui_object_state;
}
+
+void
+AxisView::set_selected (bool yn)
+{
+ if (selected() == yn) {
+ return;
+ }
+
+ Selectable::set_selected (yn);
+
+ boost::shared_ptr<Stripable> s = stripable ();
+
+ if (s) {
+ s->presentation_info().set_selected (yn);
+ }
+}