summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-19 21:47:34 +0100
committerRobin Gareus <robin@gareus.org>2015-03-19 21:47:34 +0100
commitf1ce87a699c9cca17197b4f33bec5da163810d4f (patch)
treeb050b8ceeb6a2b23494da82cfb3f9d87cac9512f /gtk2_ardour/time_axis_view.h
parent6874bca886ad9778a7bedd78a25d56f0bd277cf3 (diff)
add API to select TAV height mode.
preparation for further Summary and Number of visible track count fixes. * “Only Self”: don’t resize child-views (old default) * “Total Height”: distribute height equally among all visible child [automation] lanes * “Height per Lane”: given height should be applied to all sub-views.
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r--gtk2_ardour/time_axis_view.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h
index 6827251472..baeeb2a92a 100644
--- a/gtk2_ardour/time_axis_view.h
+++ b/gtk2_ardour/time_axis_view.h
@@ -142,7 +142,13 @@ class TimeAxisView : public virtual AxisView
virtual void entered () {}
virtual void exited () {}
- virtual void set_height (uint32_t h);
+ enum TrackHeightMode {
+ OnlySelf,
+ TotalHeight,
+ HeightPerLane
+ };
+
+ virtual void set_height (uint32_t h, TrackHeightMode m = OnlySelf);
void set_height_enum (Height, bool apply_to_selection = false);
void reset_height();