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/time_axis_view_item.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/time_axis_view_item.h')
-rw-r--r-- | gtk2_ardour/time_axis_view_item.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/time_axis_view_item.h b/gtk2_ardour/time_axis_view_item.h index 97e7a73745..4425313cba 100644 --- a/gtk2_ardour/time_axis_view_item.h +++ b/gtk2_ardour/time_axis_view_item.h @@ -28,6 +28,7 @@ #include "selectable.h" #include "simplerect.h" #include "canvas.h" +#include "shared_ptrs.h" class TimeAxisView; @@ -188,7 +189,7 @@ class TimeAxisViewItem : public Selectable * * @return the timeAxisView that this item is placed upon */ - TimeAxisView& get_time_axis_view() ; + TimeAxisViewPtr get_time_axis_view() ; //---------------------------------------------------------------------------------------// // ui methods & data @@ -239,7 +240,7 @@ class TimeAxisViewItem : public Selectable /** * Returns the time axis that this item is upon */ - TimeAxisView& get_trackview() const { return trackview; } + TimeAxisViewPtr get_trackview() const { return trackview; } /** * Sets the samples per unit of this item. @@ -341,7 +342,7 @@ class TimeAxisViewItem : public Selectable * @param start the start point of this item * @param duration the duration of this item */ - TimeAxisViewItem(const std::string & it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color const & base_color, + TimeAxisViewItem(const std::string & it_name, ArdourCanvas::Group& parent, TimeAxisViewPtr tv, double spu, Gdk::Color const & base_color, nframes_t start, nframes_t duration, bool recording = false, Visibility v = Visibility (0)); TimeAxisViewItem (const TimeAxisViewItem& other); @@ -385,7 +386,7 @@ class TimeAxisViewItem : public Selectable static gint idle_remove_this_item(TimeAxisViewItem* item, void* src) ; /** The time axis that this item is upon */ - TimeAxisView& trackview ; + TimeAxisViewPtr trackview ; /** indicates whether this item is locked to its current position */ bool position_locked ; |