summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_cursors.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-04 00:32:52 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-04 00:32:52 -0400
commitaaea166135ace01709f7e0be64f40be80f4107ec (patch)
tree0e794ef7a723e4aaf909b841a6816e405b4ceca1 /gtk2_ardour/editor_cursors.h
parent1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff)
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'gtk2_ardour/editor_cursors.h')
-rw-r--r--gtk2_ardour/editor_cursors.h34
1 files changed, 23 insertions, 11 deletions
diff --git a/gtk2_ardour/editor_cursors.h b/gtk2_ardour/editor_cursors.h
index 2e2c654bd1..0cc6eae5b8 100644
--- a/gtk2_ardour/editor_cursors.h
+++ b/gtk2_ardour/editor_cursors.h
@@ -22,19 +22,31 @@
class Editor;
class EditorCursor {
-public:
- Editor& editor;
- ArdourCanvas::Points points;
- ArdourCanvas::Line canvas_item;
- framepos_t current_frame;
- double length;
-
- EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
- ~EditorCursor ();
+ public:
+ EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
+ ~EditorCursor ();
void set_position (framepos_t);
- void set_length (double units);
- void set_y_axis (double position);
+
+
+ void show ();
+ void hide ();
+ void set_color (ArdourCanvas::Color);
+
+ framepos_t current_frame () const {
+ return _current_frame;
+ }
+
+ ArdourCanvas::Line& track_canvas_item () {
+ return _track_canvas_item;
+ }
PBD::Signal1<void, framepos_t> PositionChanged;
+
+ private:
+ Editor& _editor;
+ ArdourCanvas::Arrow _time_bars_canvas_item;
+ ArdourCanvas::Line _track_canvas_item;
+ framepos_t _current_frame;
+ double _length;
};