diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
commit | aaea166135ace01709f7e0be64f40be80f4107ec (patch) | |
tree | 0e794ef7a723e4aaf909b841a6816e405b4ceca1 /gtk2_ardour/ghostregion.h | |
parent | 1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff) |
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'gtk2_ardour/ghostregion.h')
-rw-r--r-- | gtk2_ardour/ghostregion.h | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h index 083f71b3e2..384127150a 100644 --- a/gtk2_ardour/ghostregion.h +++ b/gtk2_ardour/ghostregion.h @@ -21,19 +21,15 @@ #define __ardour_gtk_ghost_region_h__ #include <vector> -#include <libgnomecanvasmm.h> #include "pbd/signals.h" -#include "canvas.h" - -namespace Gnome { - namespace Canvas { - class CanvasNoteEvent; - class CanvasNote; - class CanvasHit; - class Diamond; - } + +namespace ArdourCanvas { + class WaveView; } +class NoteBase; +class Note; +class Hit; class MidiStreamView; class TimeAxisView; @@ -43,7 +39,7 @@ public: GhostRegion(ArdourCanvas::Group* parent, TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos); virtual ~GhostRegion(); - virtual void set_samples_per_unit(double spu) = 0; + virtual void set_frames_per_pixel (double) = 0; virtual void set_height(); virtual void set_colors(); @@ -57,7 +53,7 @@ public: /** TimeAxisView that we are a ghost for */ TimeAxisView& source_trackview; ArdourCanvas::Group* group; - ArdourCanvas::SimpleRect* base_rect; + ArdourCanvas::Rectangle* base_rect; static PBD::Signal1<void,GhostRegion*> CatchDeletion; }; @@ -66,7 +62,7 @@ class AudioGhostRegion : public GhostRegion { public: AudioGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos); - void set_samples_per_unit(double spu); + void set_frames_per_pixel (double); void set_height(); void set_colors(); @@ -75,13 +71,13 @@ public: class MidiGhostRegion : public GhostRegion { public: - class Event : public sigc::trackable { + class GhostEvent : public sigc::trackable { public: - Event(ArdourCanvas::CanvasNoteEvent *, ArdourCanvas::Group *); - ~Event (); + GhostEvent(::NoteBase *, ArdourCanvas::Group *); + virtual ~GhostEvent () {} - ArdourCanvas::CanvasNoteEvent* event; - ArdourCanvas::SimpleRect* rect; + NoteBase* event; + ArdourCanvas::Rectangle* rect; }; MidiGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos); @@ -91,22 +87,22 @@ public: MidiStreamView* midi_view(); void set_height(); - void set_samples_per_unit(double spu); + void set_frames_per_pixel (double spu); void set_colors(); void update_range(); - void add_note(ArdourCanvas::CanvasNote*); - void update_note (ArdourCanvas::CanvasNote *); - void remove_note (ArdourCanvas::CanvasNoteEvent *); + void add_note(Note*); + void update_note (Note*); + void remove_note (Note*); void clear_events(); private: - MidiGhostRegion::Event* find_event (ArdourCanvas::CanvasNoteEvent *); + MidiGhostRegion::Event* find_event (Note*); - typedef std::list<MidiGhostRegion::Event*> EventList; + typedef std::list<MidiGhostRegion::GhostEvent*> EventList; EventList events; EventList::iterator _optimization_iterator; }; |