X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_cursors.h;h=4b8b4b67dac0a0e98d17b0afa61ca767b37590ea;hb=927a33c5f3a0f67adea222aad34bbf435c61f6ca;hp=50958d1ac02235ca5745cd189f38a98f501d6b59;hpb=e8fc8aa992f7fad798935de227e2a15d0a075c71;p=ardour.git diff --git a/gtk2_ardour/editor_cursors.h b/gtk2_ardour/editor_cursors.h index 50958d1ac0..4b8b4b67da 100644 --- a/gtk2_ardour/editor_cursors.h +++ b/gtk2_ardour/editor_cursors.h @@ -17,6 +17,9 @@ */ +#ifndef __gtk_ardour_editor_cursors_h__ +#define __gtk_ardour_editor_cursors_h__ + #include "pbd/signals.h" #include "ardour/types.h" @@ -26,32 +29,35 @@ class Editor; -class EditorCursor { - public: - EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); - ~EditorCursor (); +class EditorCursor +{ +public: + EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); + EditorCursor (Editor&); + ~EditorCursor (); - void set_position (framepos_t); + void set_position (samplepos_t); void show (); void hide (); - void set_color (ArdourCanvas::Color); + void set_color (Gtkmm2ext::Color); void set_sensitive (bool); - framepos_t current_frame () const { - return _current_frame; + samplepos_t current_sample () const { + return _current_sample; } ArdourCanvas::Arrow& track_canvas_item () { return *_track_canvas_item; } - PBD::Signal1 PositionChanged; + PBD::Signal1 PositionChanged; - private: +private: Editor& _editor; ArdourCanvas::Arrow* _track_canvas_item; - framepos_t _current_frame; - double _length; + samplepos_t _current_sample; }; + +#endif // __gtk_ardour_editor_cursors_h__