13
0

add a new canvas-based cursor for mapping

This commit is contained in:
Paul Davis 2023-02-26 12:49:18 -07:00
parent d61a741e4b
commit 5e01503a56
2 changed files with 11 additions and 0 deletions

View File

@ -1060,6 +1060,8 @@ private:
ArdourCanvas::Rectangle* cue_marker_bar;
ArdourCanvas::Line* ruler_separator;
ArdourCanvas::Arc* mapping_cursor;
void toggle_cue_behavior ();
Gtk::Label minsec_label;

View File

@ -35,6 +35,7 @@
#include "pbd/error.h"
#include "canvas/arc.h"
#include "canvas/canvas.h"
#include "canvas/rectangle.h"
#include "canvas/pixbuf.h"
@ -188,6 +189,14 @@ Editor::initialize_canvas ()
mapping_bar->set_outline(false);
mapping_bar->set_outline_what(ArdourCanvas::Rectangle::BOTTOM);
mapping_cursor = new ArdourCanvas::Arc (mapping_group);
mapping_cursor->set_fill (false);
mapping_cursor->set_outline (true);
mapping_cursor->set_outline_color (0xff0000ff);
mapping_cursor->set_radius (timebar_height);
mapping_cursor->set_arc (360);
mapping_cursor->hide ();
range_marker_bar = new ArdourCanvas::Rectangle (range_marker_group, ArdourCanvas::Rect (0.0, timebar_top, ArdourCanvas::COORD_MAX, timebar_btm));
CANVAS_DEBUG_NAME (range_marker_bar, "Range Marker Bar");