GenericUI: replace if() by assert()
[ardour.git] / gtk2_ardour / editor_cursors.h
index 9eab63452b72e6193f8e1ebb63e433976547eba7..f841f0c778eb5188fc704d7e34f79af24512d097 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "pbd/signals.h"
+#include "ardour/types.h"
 
 #include "canvas/arrow.h"
 #include "canvas/line.h"
@@ -28,6 +29,7 @@ class Editor;
 class EditorCursor {
   public:
         EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
+        EditorCursor (Editor&);
        ~EditorCursor ();
 
        void set_position (framepos_t);
@@ -36,6 +38,7 @@ class EditorCursor {
        void show ();
        void hide ();
        void set_color (ArdourCanvas::Color);
+       void set_sensitive (bool);
 
        framepos_t current_frame () const {
                return _current_frame;
@@ -47,9 +50,8 @@ class EditorCursor {
 
        PBD::Signal1<void, framepos_t> PositionChanged;
 
-  private:     
+  private:
        Editor&               _editor;
        ArdourCanvas::Arrow*  _track_canvas_item;
        framepos_t            _current_frame;
-       double                _length;
 };