summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_view.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-08-29 21:21:48 +0000
committerDavid Robillard <d@drobilla.net>2006-08-29 21:21:48 +0000
commit82232f06ba3eea4a2b4342ad91fab552f4044402 (patch)
treed517cb47c017f51e2ecd9450624b86eb70d9f97b /gtk2_ardour/region_view.h
parent25d1670a61d19e795227b939a98be9cf5a050c67 (diff)
Merged with trunk R861
Possible new bugs - not very thoroughly tested, but at least functional at first glance git-svn-id: svn://localhost/ardour2/branches/midi@870 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_view.h')
-rw-r--r--gtk2_ardour/region_view.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/gtk2_ardour/region_view.h b/gtk2_ardour/region_view.h
index beb4f10d54..c7d113d17d 100644
--- a/gtk2_ardour/region_view.h
+++ b/gtk2_ardour/region_view.h
@@ -43,7 +43,7 @@ class RegionView : public TimeAxisViewItem
public:
RegionView (ArdourCanvas::Group* parent,
TimeAxisView& time_view,
- ARDOUR::Region& region,
+ boost::shared_ptr<ARDOUR::Region> region,
double samples_per_unit,
Gdk::Color& basic_color);
@@ -51,7 +51,7 @@ class RegionView : public TimeAxisViewItem
virtual void init (Gdk::Color& base_color, bool wait_for_data);
- ARDOUR::Region& region() const { return _region; }
+ boost::shared_ptr<ARDOUR::Region> region() const { return _region; }
bool is_valid() const { return valid; }
void set_valid (bool yn) { valid = yn; }
@@ -91,30 +91,12 @@ class RegionView : public TimeAxisViewItem
* to the TimeAxisViewItem parent class
*/
RegionView (ArdourCanvas::Group *,
- TimeAxisView&,
- ARDOUR::Region&,
- double samples_per_unit,
- Gdk::Color& basic_color,
- TimeAxisViewItem::Visibility);
+ TimeAxisView&,
+ boost::shared_ptr<ARDOUR::Region>,
+ double samples_per_unit,
+ Gdk::Color& basic_color,
+ TimeAxisViewItem::Visibility);
- ARDOUR::Region& _region;
-
- ArdourCanvas::Polygon* sync_mark; ///< polgyon for sync position
- ArdourCanvas::Text* no_wave_msg;
-
- RegionEditor *editor;
-
- vector<ControlPoint *> control_points;
- double current_visible_sync_position;
-
- bool valid; ///< see StreamView::redisplay_diskstream()
- double _pixel_width;
- double _height;
- bool in_destructor;
-
- bool wait_for_data;
- sigc::connection data_ready_connection;
-
virtual void region_resized (ARDOUR::Change);
void region_moved (void *);
virtual void region_muted ();
@@ -132,9 +114,27 @@ class RegionView : public TimeAxisViewItem
virtual void set_frame_color ();
virtual void reset_width_dependent_items (double pixel_width);
- vector<GhostRegion*> ghosts;
-
virtual void color_handler (ColorID, uint32_t) {}
+
+ boost::shared_ptr<ARDOUR::Region> _region;
+
+ ArdourCanvas::Polygon* sync_mark; ///< polgyon for sync position
+ ArdourCanvas::Text* no_wave_msg;
+
+ RegionEditor* editor;
+
+ vector<ControlPoint *> control_points;
+ double current_visible_sync_position;
+
+ bool valid; ///< see StreamView::redisplay_diskstream()
+ double _pixel_width;
+ double _height;
+ bool in_destructor;
+
+ bool wait_for_data;
+ sigc::connection data_ready_connection;
+
+ vector<GhostRegion*> ghosts;
};
#endif /* __gtk_ardour_region_view_h__ */