X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_cursors.h;h=b8ad2e51acf8641c31b3a4f8c0e7966805b1aa9f;hb=63ea7b6516dbd7554d1eff6c98de50cf61fc9a72;hp=a58a46bd5d3965788466d6aa05dab5e51a3c3e0e;hpb=9a8ee11f6532c73320f76b10aabec68081c9ebf4;p=ardour.git diff --git a/gtk2_ardour/editor_cursors.h b/gtk2_ardour/editor_cursors.h index a58a46bd5d..b8ad2e51ac 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" @@ -27,8 +31,9 @@ class Editor; class EditorCursor { public: - EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); - ~EditorCursor (); + EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); + EditorCursor (Editor&); + ~EditorCursor (); void set_position (framepos_t); @@ -36,21 +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 () { - return _track_canvas_item; + ArdourCanvas::Arrow& track_canvas_item () { + return *_track_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__