summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view_item.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-02-13 18:16:10 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-02-13 18:18:19 -0500
commite9e08f59ce109323e4e0581a31e598f9f2995571 (patch)
treef68cfc72e1e927e3590b072bef01e51715114222 /gtk2_ardour/time_axis_view_item.h
parent08b86fda5c1b8b36c976cd5f33f58dabe13d8024 (diff)
fix up details of time axis view item drawing.
* remove top and bottom edges - rely on track edges for that. * move right edge of time axis view items 1 pixel right to get a much nicer effect when splitting regions. the end line and start line of two adjacent regions are now on the same pixel. * adjust audio region view components to be properly placed. still need to do ghost regions and MIDI regions
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.h')
-rw-r--r--gtk2_ardour/time_axis_view_item.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view_item.h b/gtk2_ardour/time_axis_view_item.h
index 60ff519216..ff35373995 100644
--- a/gtk2_ardour/time_axis_view_item.h
+++ b/gtk2_ardour/time_axis_view_item.h
@@ -114,6 +114,20 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
static double NAME_HIGHLIGHT_SIZE;
static double NAME_HIGHLIGHT_THRESH;
+ /* if this is 1.0, we move the right boundary
+ of the item frame so that it is 1 pixel
+ after the end of the item. This gives nice
+ effects when splitting items.
+
+ if this is zero, the right edge coincides
+ with the end of the item, and things don't
+ look so nice.
+
+ this exists to allow easy debugging of the
+ two scenarios.
+ */
+ static const double RIGHT_EDGE_SHIFT;
+
/**
* Emitted when this Group has been removed.
* This is different to the CatchDeletion signal in that this signal