projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow removing the timespan name from the export-filename:
[ardour.git]
/
gtk2_ardour
/
editor_cursors.h
diff --git
a/gtk2_ardour/editor_cursors.h
b/gtk2_ardour/editor_cursors.h
index 0cc6eae5b80116e46511d18b8c0cf6b66dc2a9dc..f841f0c778eb5188fc704d7e34f79af24512d097 100644
(file)
--- a/
gtk2_ardour/editor_cursors.h
+++ b/
gtk2_ardour/editor_cursors.h
@@
-18,12
+18,18
@@
*/
#include "pbd/signals.h"
*/
#include "pbd/signals.h"
+#include "ardour/types.h"
+
+#include "canvas/arrow.h"
+#include "canvas/line.h"
+#include "canvas/types.h"
class Editor;
class EditorCursor {
public:
EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
class Editor;
class EditorCursor {
public:
EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
+ EditorCursor (Editor&);
~EditorCursor ();
void set_position (framepos_t);
~EditorCursor ();
void set_position (framepos_t);
@@
-32,21
+38,20
@@
class EditorCursor {
void show ();
void hide ();
void set_color (ArdourCanvas::Color);
void show ();
void hide ();
void set_color (ArdourCanvas::Color);
+ void set_sensitive (bool);
framepos_t current_frame () const {
return _current_frame;
}
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<void, framepos_t> PositionChanged;
}
PBD::Signal1<void, framepos_t> PositionChanged;
- private:
+ private:
Editor& _editor;
Editor& _editor;
- ArdourCanvas::Arrow _time_bars_canvas_item;
- ArdourCanvas::Line _track_canvas_item;
+ ArdourCanvas::Arrow* _track_canvas_item;
framepos_t _current_frame;
framepos_t _current_frame;
- double _length;
};
};