diff options
author | Robin Gareus <robin@gareus.org> | 2015-07-23 13:23:47 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-07-23 17:58:40 +0200 |
commit | e1f168de110322e7024dfa334b97f3b433907ae1 (patch) | |
tree | bd700545929b7aa5ec95c69b88a5a4e983845547 /gtk2_ardour/editor_drag.cc | |
parent | 2cc64168d379790eb3d162cd59b7f1a8effb4156 (diff) |
rename Marker class
Classes are in the global namespace.
OSX has a flat namespace and OSX32bit/Carbon has a Marker too.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 0877a8b4be..d17ee4b3a2 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -3657,7 +3657,7 @@ MarkerDrag::MarkerDrag (Editor* e, ArdourCanvas::Item* i) { DEBUG_TRACE (DEBUG::Drags, "New MarkerDrag\n"); - _marker = reinterpret_cast<Marker*> (_item->get_data ("marker")); + _marker = reinterpret_cast<ArdourMarker*> (_item->get_data ("marker")); assert (_marker); _points.push_back (ArdourCanvas::Duple (0, 0)); @@ -3671,7 +3671,7 @@ MarkerDrag::~MarkerDrag () } } -MarkerDrag::CopiedLocationMarkerInfo::CopiedLocationMarkerInfo (Location* l, Marker* m) +MarkerDrag::CopiedLocationMarkerInfo::CopiedLocationMarkerInfo (Location* l, ArdourMarker* m) { location = new Location (*l); markers.push_back (m); @@ -3713,7 +3713,7 @@ MarkerDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor) case Selection::Extend: { Locations::LocationList ll; - list<Marker*> to_add; + list<ArdourMarker*> to_add; framepos_t s, e; _editor->selection->markers.range (s, e); s = min (_marker->position(), s); @@ -3828,17 +3828,17 @@ MarkerDrag::motion (GdkEvent* event, bool) switch (_marker->type()) { - case Marker::SessionStart: - case Marker::RangeStart: - case Marker::LoopStart: - case Marker::PunchIn: + case ArdourMarker::SessionStart: + case ArdourMarker::RangeStart: + case ArdourMarker::LoopStart: + case ArdourMarker::PunchIn: f_delta = newframe - copy_location->start(); break; - case Marker::SessionEnd: - case Marker::RangeEnd: - case Marker::LoopEnd: - case Marker::PunchOut: + case ArdourMarker::SessionEnd: + case ArdourMarker::RangeEnd: + case ArdourMarker::LoopEnd: + case ArdourMarker::PunchOut: f_delta = newframe - copy_location->end(); break; default: @@ -4018,7 +4018,7 @@ MarkerDrag::aborted (bool movement_occured) /* move all markers to their original location */ - for (vector<Marker*>::iterator m = x->markers.begin(); m != x->markers.end(); ++m) { + for (vector<ArdourMarker*>::iterator m = x->markers.begin(); m != x->markers.end(); ++m) { bool is_start; Location * location = _editor->find_location_from_marker (*m, is_start); |