diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-05 19:39:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-05 19:39:16 +0000 |
commit | 5a39bf595c737dbb36666a9e718ac267e9131380 (patch) | |
tree | 12219a08eec7305a135eafff4210a037ff5f8804 /gtk2_ardour/selection.h | |
parent | caeb564748e7ece1025f55f005fe5591795ec234 (diff) |
export range markers patch (revisited), change selection model, copy-drag tempo+meter marker patch
git-svn-id: svn://localhost/trunk/ardour2@349 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.h')
-rw-r--r-- | gtk2_ardour/selection.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/gtk2_ardour/selection.h b/gtk2_ardour/selection.h index ffda6a0b0f..ebeda1aea7 100644 --- a/gtk2_ardour/selection.h +++ b/gtk2_ardour/selection.h @@ -21,6 +21,8 @@ #ifndef __ardour_gtk_selection_h__ #define __ardour_gtk_selection_h__ +#include <vector> + #include <sigc++/signal.h> #include "time_selection.h" @@ -35,6 +37,14 @@ class TimeAxisView; class AudioRegionView; class Selectable; +namespace ARDOUR { + class Region; + class AudioRegion; + class Playlist; + class Redirect; + class AutomationList; +} + class Selection : public sigc::trackable { public: @@ -43,6 +53,12 @@ class Selection : public sigc::trackable Range = 0x2 }; + enum Operation { + Set, + Toggle, + Extend + }; + TrackSelection tracks; AudioRegionSelection audio_regions; TimeSelection time; @@ -88,6 +104,16 @@ class Selection : public sigc::trackable void set (ARDOUR::Redirect*); void set (AutomationSelectable*); + void toggle (TimeAxisView*); + void toggle (const list<TimeAxisView*>&); + void toggle (AudioRegionView*); + void toggle (std::vector<AudioRegionView*>&); + long toggle (jack_nframes_t, jack_nframes_t); + void toggle (ARDOUR::AutomationList*); + void toggle (ARDOUR::Playlist*); + void toggle (const list<ARDOUR::Playlist*>&); + void toggle (ARDOUR::Redirect*); + void add (TimeAxisView*); void add (const list<TimeAxisView*>&); void add (AudioRegionView*); @@ -97,7 +123,7 @@ class Selection : public sigc::trackable void add (ARDOUR::Playlist*); void add (const list<ARDOUR::Playlist*>&); void add (ARDOUR::Redirect*); - + void remove (TimeAxisView*); void remove (const list<TimeAxisView*>&); void remove (AudioRegionView*); @@ -126,7 +152,7 @@ class Selection : public sigc::trackable private: uint32_t next_time_id; - void add (vector<AutomationSelectable*>&); + void add (std::vector<AutomationSelectable*>&); }; bool operator==(const Selection& a, const Selection& b); |