mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
add a distinct Marker type enum for cue markers
Plan is to change the shape before this is considered done; for now it uses the same shape as a regular marker
This commit is contained in:
parent
c916d3d952
commit
41ade3b024
3 changed files with 19 additions and 2 deletions
|
|
@ -167,6 +167,8 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, guint3
|
|||
* \ |
|
||||
* MH,MH
|
||||
*
|
||||
* Cue:
|
||||
* ben: put your shape here :)
|
||||
*/
|
||||
|
||||
switch (type) {
|
||||
|
|
@ -268,6 +270,20 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, guint3
|
|||
_label_offset = 0.0;
|
||||
break;
|
||||
|
||||
case Cue:
|
||||
/* ben: new shape needed here */
|
||||
points = new ArdourCanvas::Points ();
|
||||
|
||||
points->push_back (ArdourCanvas::Duple (0.0, 0.0));
|
||||
points->push_back (ArdourCanvas::Duple ( M6, 0.0));
|
||||
points->push_back (ArdourCanvas::Duple ( M6, MH * .4));
|
||||
points->push_back (ArdourCanvas::Duple ( M3, MH));
|
||||
points->push_back (ArdourCanvas::Duple (0.0, MH * .4));
|
||||
points->push_back (ArdourCanvas::Duple (0.0, 0.0));
|
||||
|
||||
_shift = 3;
|
||||
_label_offset = 10.0;
|
||||
break;
|
||||
}
|
||||
|
||||
_position = pos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue