X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmarker.h;h=becc809a742c4114ac98cd9f9c0b897951b608de;hb=a5ae129a066747901ff1ed95368729b63cb6a70d;hp=daa44bf0faf8e8c06b4852d825d2c17ea4382385;hpb=c14f6c59dbb3d163d901a1da169c7838ed39ea04;p=ardour.git diff --git a/gtk2_ardour/marker.h b/gtk2_ardour/marker.h index daa44bf0fa..becc809a74 100644 --- a/gtk2_ardour/marker.h +++ b/gtk2_ardour/marker.h @@ -38,7 +38,11 @@ namespace ARDOUR { class PublicEditor; -class Marker : public sigc::trackable +/** Location Marker + * + * Editor ruler representation of a location marker or range on the timeline. + */ +class ArdourMarker : public sigc::trackable { public: enum Type { @@ -56,12 +60,12 @@ class Marker : public sigc::trackable }; - Marker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, Type, + ArdourMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, Type, framepos_t frame = 0, bool handle_events = true); - virtual ~Marker (); + virtual ~ArdourMarker (); - static PBD::Signal1 CatchDeletion; + static PBD::Signal1 CatchDeletion; static void setup_sizes (const double timebar_height); @@ -129,11 +133,11 @@ class Marker : public sigc::trackable private: /* disallow copy construction */ - Marker (Marker const &); - Marker & operator= (Marker const &); + ArdourMarker (ArdourMarker const &); + ArdourMarker & operator= (ArdourMarker const &); }; -class TempoMarker : public Marker +class TempoMarker : public ArdourMarker { public: TempoMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, ARDOUR::TempoSection&); @@ -141,11 +145,12 @@ class TempoMarker : public Marker ARDOUR::TempoSection& tempo() const { return _tempo; } + void update_height_mark (const double& ratio); private: ARDOUR::TempoSection& _tempo; }; -class MeterMarker : public Marker +class MeterMarker : public ArdourMarker { public: MeterMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, ARDOUR::MeterSection&);