diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-09 13:39:45 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-09 13:39:45 +0000 |
commit | 4297071b3f7360b17d81ef9cf36b8d75d46d2818 (patch) | |
tree | 13cbb169cfcf79a2e845d8860f0f98e192f3a8d3 /gtk2_ardour/selection.h | |
parent | 0f8031da06e131595b3625169f9687c1a1ab2f3a (diff) |
Use shared_ptr for the TimeAxisView hierarchy.
git-svn-id: svn://localhost/ardour2/branches/3.0@5339 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.h')
-rw-r--r-- | gtk2_ardour/selection.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gtk2_ardour/selection.h b/gtk2_ardour/selection.h index 6107e2970a..ea36de246f 100644 --- a/gtk2_ardour/selection.h +++ b/gtk2_ardour/selection.h @@ -97,7 +97,7 @@ class Selection : public sigc::trackable void dump_region_layers(); - bool selected (TimeAxisView*); + bool selected (TimeAxisViewPtr); bool selected (RegionView*); bool selected (Marker*); @@ -105,11 +105,11 @@ class Selection : public sigc::trackable void add (std::list<Selectable*>&); void toggle (std::list<Selectable*>&); - void set (TimeAxisView*); - void set (const std::list<TimeAxisView*>&); + void set (TimeAxisViewPtr); + void set (const std::list<TimeAxisViewPtr>&); void set (RegionView*, bool also_clear_tracks = true); void set (std::vector<RegionView*>&); - long set (TimeAxisView*, nframes_t, nframes_t); + long set (TimeAxisViewPtr, nframes_t, nframes_t); void set (boost::shared_ptr<Evoral::ControlList>); void set (boost::shared_ptr<ARDOUR::Playlist>); void set (const std::list<boost::shared_ptr<ARDOUR::Playlist> >&); @@ -117,8 +117,8 @@ class Selection : public sigc::trackable void set (Marker*); void set (const RegionSelection&); - void toggle (TimeAxisView*); - void toggle (const std::list<TimeAxisView*>&); + void toggle (TimeAxisViewPtr); + void toggle (const std::list<TimeAxisViewPtr>&); void toggle (RegionView*); void toggle (std::vector<RegionView*>&); long toggle (nframes_t, nframes_t); @@ -128,8 +128,8 @@ class Selection : public sigc::trackable void toggle (const std::vector<AutomationSelectable*>&); void toggle (Marker*); - void add (TimeAxisView*); - void add (const std::list<TimeAxisView*>&); + void add (TimeAxisViewPtr); + void add (const std::list<TimeAxisViewPtr>&); void add (RegionView*); void add (std::vector<RegionView*>&); long add (nframes_t, nframes_t); @@ -140,8 +140,9 @@ class Selection : public sigc::trackable void add (const std::list<Marker*>&); void add (const RegionSelection&); - void remove (TimeAxisView*); - void remove (const std::list<TimeAxisView*>&); + void remove (TimeAxisViewPtr); + void remove (const std::list<TimeAxisViewPtr>&); + void remove (boost::weak_ptr<TimeAxisView>); void remove (RegionView*); void remove (uint32_t selection_id); void remove (nframes_t, nframes_t); |