X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fghostregion.cc;h=edf1e0e139568607bc1fd86a850d2d6a4290d342;hb=9243298a7c0436cbdd216e3c5d4f3b90fe74cdf9;hp=dd7839612fe42f7332b7496106ffa72d746f8187;hpb=1380f4fafbdf7dcc5f6f699c57ebf53621f84078;p=ardour.git diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index dd7839612f..edf1e0e139 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ */ -#include +#include "evoral/Note.hpp" #include "ardour_ui.h" #include "automation_time_axis.h" #include "canvas-hit.h" @@ -29,10 +29,13 @@ #include "simplerect.h" #include "waveview.h" +using namespace std; using namespace Editing; using namespace ArdourCanvas; using namespace ARDOUR; +PBD::Signal1 GhostRegion::GoingAway; + GhostRegion::GhostRegion (ArdourCanvas::Group* parent, TimeAxisView& tv, TimeAxisView& source_tv, double initial_pos) : trackview (tv) , source_trackview (source_tv) @@ -110,7 +113,7 @@ AudioGhostRegion::set_samples_per_unit (double spu) { for (vector::iterator i = waves.begin(); i != waves.end(); ++i) { (*i)->property_samples_per_unit() = spu; - } + } } void @@ -123,7 +126,7 @@ AudioGhostRegion::set_height () GhostRegion::set_height(); ht = ((trackview.current_height()) / (double) waves.size()); - + for (n = 0, i = waves.begin(); i != waves.end(); ++i, ++n) { gdouble yoff = n * ht; (*i)->property_height() = ht; @@ -167,7 +170,7 @@ MidiGhostRegion::MidiGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, doub MidiGhostRegion::MidiGhostRegion(MidiStreamView& msv, TimeAxisView& source_tv, double initial_unit_pos) : GhostRegion(msv.midi_underlay_group, msv.trackview(), source_tv, initial_unit_pos) { - base_rect->lower_to_bottom(); + base_rect->lower_to_bottom(); } MidiGhostRegion::~MidiGhostRegion() @@ -214,7 +217,7 @@ MidiGhostRegion::Hit::x_changed() } void -MidiGhostRegion::set_samples_per_unit (double spu) +MidiGhostRegion::set_samples_per_unit (double /*spu*/) { } @@ -266,7 +269,7 @@ MidiGhostRegion::update_range() MidiGhostRegion::Note* note; uint8_t note_num; double y; - + for (EventList::iterator it = events.begin(); it != events.end(); ++it) { if ((note = dynamic_cast(*it)) != 0) { note_num = note->event->note()->note(); @@ -309,7 +312,7 @@ MidiGhostRegion::add_note(ArdourCanvas::CanvasNote* n) } void -MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* h) +MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* /*h*/) { //events.push_back(new Hit(h, group)); }