summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-03-05 15:34:56 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-03-05 15:34:56 +0000
commit62c4e8188457c8e0da9eb98202a5bc2a07c9250b (patch)
tree1b027475599d9adf9350b0f393c48db1af61d770 /gtk2_ardour/region_view.cc
parentf0c6bdfb8421c3d7c3f05f80df30caed54e9444d (diff)
new design for region dragging; make add route dialog float over the correct window(s); try to remove confusion from different export dialogs regarding file/directory requirements ; minor cleanups
git-svn-id: svn://localhost/ardour2/trunk@1555 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r--gtk2_ardour/region_view.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc
index 5e3a612654..3e6921aab9 100644
--- a/gtk2_ardour/region_view.cc
+++ b/gtk2_ardour/region_view.cc
@@ -67,7 +67,6 @@ RegionView::RegionView (ArdourCanvas::Group* parent,
TimeAxisViewItem::ShowFrame))
, _region (r)
, sync_mark(0)
- , no_wave_msg(0)
, editor(0)
, current_visible_sync_position(0.0)
, valid(false)
@@ -78,6 +77,19 @@ RegionView::RegionView (ArdourCanvas::Group* parent,
{
}
+RegionView::RegionView (const RegionView& other)
+ : TimeAxisViewItem (other)
+{
+ /* derived concrete type will call init () */
+
+ _region = other._region;
+ editor = other.editor;
+ current_visible_sync_position = other.current_visible_sync_position;
+ valid = false;
+ _pixel_width = other._pixel_width;
+ _height = other._height;
+}
+
RegionView::RegionView (ArdourCanvas::Group* parent,
TimeAxisView& tv,
boost::shared_ptr<ARDOUR::Region> r,
@@ -87,7 +99,6 @@ RegionView::RegionView (ArdourCanvas::Group* parent,
: TimeAxisViewItem (r->name(), *parent, tv, spu, basic_color, r->position(), r->length(), visibility)
, _region (r)
, sync_mark(0)
- , no_wave_msg(0)
, editor(0)
, current_visible_sync_position(0.0)
, valid(false)
@@ -101,7 +112,6 @@ RegionView::RegionView (ArdourCanvas::Group* parent,
void
RegionView::init (Gdk::Color& basic_color, bool wfd)
{
- editor = 0;
valid = true;
in_destructor = false;
_height = 0;