mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 11:27:45 +01:00
Add playhead and editcursor to ardour.colors and remove hard coded colors
git-svn-id: svn://localhost/ardour2/trunk@1561 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d778a2494a
commit
934c2ec367
5 changed files with 12 additions and 5 deletions
|
|
@ -98,3 +98,6 @@ cTrimHandleLockedStart 0.92 0.06 0.06 0.16
|
|||
cTrimHandleLockedEnd 0.92 0.06 0.06 0.16
|
||||
cTrimHandleStart 0.10 0.00 1.00 0.27
|
||||
cTrimHandleEnd 0.10 0.00 1.00 0.27
|
||||
cEditCursor 0.20 0.20 1.00 11.00
|
||||
cPlayHead 1.00 0.00 0.00 1.00
|
||||
|
||||
|
|
|
|||
|
|
@ -101,3 +101,6 @@ COLORID(cTrimHandleLockedStart)
|
|||
COLORID(cTrimHandleLockedEnd)
|
||||
COLORID(cTrimHandleStart)
|
||||
COLORID(cTrimHandleEnd)
|
||||
COLORID(cEditCursor)
|
||||
COLORID(cPlayHead)
|
||||
|
||||
|
|
|
|||
|
|
@ -610,7 +610,7 @@ class Editor : public PublicEditor
|
|||
nframes_t current_frame;
|
||||
double length;
|
||||
|
||||
Cursor (Editor&, const string& color, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
|
||||
Cursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
|
||||
~Cursor ();
|
||||
|
||||
void set_position (nframes_t);
|
||||
|
|
|
|||
|
|
@ -263,8 +263,10 @@ Editor::initialize_canvas ()
|
|||
double time_width = FLT_MAX/frames_per_unit;
|
||||
time_canvas.set_scroll_region(0.0, 0.0, time_width, time_height);
|
||||
|
||||
edit_cursor = new Cursor (*this, "blue", &Editor::canvas_edit_cursor_event);
|
||||
playhead_cursor = new Cursor (*this, "red", &Editor::canvas_playhead_cursor_event);
|
||||
edit_cursor = new Cursor (*this, &Editor::canvas_edit_cursor_event);
|
||||
edit_cursor->canvas_item.property_fill_color_rgba() = color_map[cEditCursor];
|
||||
playhead_cursor = new Cursor (*this, &Editor::canvas_playhead_cursor_event);
|
||||
playhead_cursor->canvas_item.property_fill_color_rgba() = color_map[cPlayHead];
|
||||
|
||||
initial_ruler_update_required = true;
|
||||
track_canvas.signal_size_allocate().connect (mem_fun(*this, &Editor::track_canvas_allocate));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ using namespace ARDOUR;
|
|||
using namespace PBD;
|
||||
using namespace Gtk;
|
||||
|
||||
Editor::Cursor::Cursor (Editor& ed, const string& color, bool (Editor::*callbck)(GdkEvent*,ArdourCanvas::Item*))
|
||||
Editor::Cursor::Cursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,ArdourCanvas::Item*))
|
||||
: editor (ed),
|
||||
canvas_item (*editor.cursor_group),
|
||||
length(1.0)
|
||||
|
|
@ -42,7 +42,6 @@ Editor::Cursor::Cursor (Editor& ed, const string& color, bool (Editor::*callbck)
|
|||
points.push_back(Gnome::Art::Point(1.0, 0.0));
|
||||
|
||||
canvas_item.property_points() = points;
|
||||
canvas_item.property_fill_color() = color; //.c_str());
|
||||
canvas_item.property_width_pixels() = 1;
|
||||
canvas_item.property_first_arrowhead() = TRUE;
|
||||
canvas_item.property_last_arrowhead() = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue