mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +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
|
|
@ -122,7 +122,7 @@ Editor::add_new_location_internal (Location* location)
|
||||||
lam->start = new ArdourMarker (*this, *cd_marker_group, color, location->name(), ArdourMarker::Mark, location->start());
|
lam->start = new ArdourMarker (*this, *cd_marker_group, color, location->name(), ArdourMarker::Mark, location->start());
|
||||||
group = cd_marker_group;
|
group = cd_marker_group;
|
||||||
} else if (location->is_cue_marker() && ruler_cue_marker_action->get_active()) {
|
} else if (location->is_cue_marker() && ruler_cue_marker_action->get_active()) {
|
||||||
lam->start = new ArdourMarker (*this, *cue_marker_group, color, location->name(), ArdourMarker::Mark, location->start());
|
lam->start = new ArdourMarker (*this, *cue_marker_group, color, location->name(), ArdourMarker::Cue, location->start());
|
||||||
group = cue_marker_group;
|
group = cue_marker_group;
|
||||||
} else {
|
} else {
|
||||||
lam->start = new ArdourMarker (*this, *marker_group, color, location->name(), ArdourMarker::Mark, location->start());
|
lam->start = new ArdourMarker (*this, *marker_group, color, location->name(), ArdourMarker::Mark, location->start());
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,8 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, guint3
|
||||||
* \ |
|
* \ |
|
||||||
* MH,MH
|
* MH,MH
|
||||||
*
|
*
|
||||||
|
* Cue:
|
||||||
|
* ben: put your shape here :)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
@ -268,6 +270,20 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, guint3
|
||||||
_label_offset = 0.0;
|
_label_offset = 0.0;
|
||||||
break;
|
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;
|
_position = pos;
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,8 @@ public:
|
||||||
LoopEnd,
|
LoopEnd,
|
||||||
PunchIn,
|
PunchIn,
|
||||||
PunchOut,
|
PunchOut,
|
||||||
RegionCue
|
RegionCue,
|
||||||
|
Cue
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue