X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fghostregion.h;h=8a4a8284c0df964cb4a30b788503ce4026f662da;hb=234b06a18cf3e8c07bc44fb4f8c1218e17fb65f1;hp=e8271a8ad8aa6e947b69c16518198a89a51caf70;hpb=bebe2af95ad9999fdca719450dc2c70cfb849076;p=ardour.git diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h index e8271a8ad8..8a4a8284c0 100644 --- a/gtk2_ardour/ghostregion.h +++ b/gtk2_ardour/ghostregion.h @@ -32,11 +32,17 @@ class Note; class Hit; class MidiStreamView; class TimeAxisView; +class RegionView; class GhostRegion : public sigc::trackable { public: - GhostRegion(ArdourCanvas::Group* parent, TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos); + GhostRegion(RegionView& rv, + ArdourCanvas::Container* parent, + TimeAxisView& tv, + TimeAxisView& source_tv, + double initial_unit_pos); + virtual ~GhostRegion(); virtual void set_samples_per_pixel (double) = 0; @@ -48,19 +54,21 @@ public: guint source_track_color(unsigned char alpha = 0xff); bool is_automation_ghost(); + RegionView& parent_rv; /** TimeAxisView that is the AutomationTimeAxisView that we are on */ TimeAxisView& trackview; /** TimeAxisView that we are a ghost for */ TimeAxisView& source_trackview; - ArdourCanvas::Group* group; + ArdourCanvas::Container* group; ArdourCanvas::Rectangle* base_rect; - - static PBD::Signal1 CatchDeletion; }; class AudioGhostRegion : public GhostRegion { public: - AudioGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos); + AudioGhostRegion(RegionView& rv, + TimeAxisView& tv, + TimeAxisView& source_tv, + double initial_unit_pos); void set_samples_per_pixel (double); void set_height(); @@ -73,15 +81,23 @@ class MidiGhostRegion : public GhostRegion { public: class GhostEvent : public sigc::trackable { public: - GhostEvent(::NoteBase *, ArdourCanvas::Group *); + GhostEvent(::NoteBase *, ArdourCanvas::Container *); virtual ~GhostEvent (); - + NoteBase* event; - ArdourCanvas::Rectangle* rect; + ArdourCanvas::Item* item; }; - MidiGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos); - MidiGhostRegion(MidiStreamView& msv, TimeAxisView& source_tv, double initial_unit_pos); + MidiGhostRegion(RegionView& rv, + TimeAxisView& tv, + TimeAxisView& source_tv, + double initial_unit_pos); + + MidiGhostRegion(RegionView& rv, + MidiStreamView& msv, + TimeAxisView& source_tv, + double initial_unit_pos); + ~MidiGhostRegion(); MidiStreamView* midi_view();