Merged with trunk R1393.
[ardour.git] / gtk2_ardour / automation_selectable.h
1 #ifndef __ardour_gtk_automation_selectable_h__
2 #define __ardour_gtk_automation_selectable_h__
3
4 #include <ardour/types.h>
5 #include "selectable.h"
6
7 class TimeAxisView;
8
9 struct AutomationSelectable : public Selectable
10 {
11     nframes_t start;
12     nframes_t end;
13     double low_fract;
14     double high_fract;
15     TimeAxisView& track;
16
17     AutomationSelectable (nframes_t s, nframes_t e, double l, double h, TimeAxisView& atv)
18             : start (s), end (e), low_fract (l), high_fract (h), track (atv) {}
19
20     bool operator== (const AutomationSelectable& other) {
21             return start == other.start &&
22                     end == other.end &&
23                     low_fract == other.low_fract &&
24                     high_fract == other.high_fract &&
25                     &track == &other.track;
26     }
27 };
28
29 #endif /* __ardour_gtk_automation_selectable_h__ */