X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_cursors.h;h=7b739e5a53ee99e1633b90049657e77a17d0866e;hb=2c7cb9065f6303c64baf4eb5dbb64db56a587d40;hp=4a2d20e8f88833010c2289d35f077564a48e8a56;hpb=8c9749e42faf7808034ed8b7afce4a2fe6dc6f33;p=ardour.git diff --git a/gtk2_ardour/editor_cursors.h b/gtk2_ardour/editor_cursors.h index 4a2d20e8f8..7b739e5a53 100644 --- a/gtk2_ardour/editor_cursors.h +++ b/gtk2_ardour/editor_cursors.h @@ -17,7 +17,11 @@ */ +#ifndef __gtk_ardour_editor_cursors_h__ +#define __gtk_ardour_editor_cursors_h__ + #include "pbd/signals.h" +#include "ardour/types.h" #include "canvas/arrow.h" #include "canvas/line.h" @@ -28,6 +32,7 @@ class Editor; class EditorCursor { public: EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); + EditorCursor (Editor&); ~EditorCursor (); void set_position (framepos_t); @@ -36,25 +41,22 @@ class EditorCursor { void show (); void hide (); void set_color (ArdourCanvas::Color); + void set_sensitive (bool); framepos_t current_frame () const { return _current_frame; } - ArdourCanvas::Line& track_canvas_item () { + ArdourCanvas::Arrow& track_canvas_item () { return *_track_canvas_item; } - ArdourCanvas::Arrow& time_bar_canvas_item () { - return *_time_bars_canvas_item; - } - PBD::Signal1 PositionChanged; - private: + private: Editor& _editor; - ArdourCanvas::Arrow* _time_bars_canvas_item; - ArdourCanvas::Line* _track_canvas_item; + ArdourCanvas::Arrow* _track_canvas_item; framepos_t _current_frame; - double _length; }; + +#endif // __gtk_ardour_editor_cursors_h__