[longomatch] Use customised Height for Periods timeline and the new style props.



commit 425c71cffbb8233c2a44b22066fc9be5e8c1f903
Author: Julien Moutte <julien fluendo com>
Date:   Wed Mar 11 23:28:39 2015 +0100

    Use customised Height for Periods timeline and the new style props.

 LongoMatch.Drawing/Widgets/CamerasTimeline.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/CamerasTimeline.cs b/LongoMatch.Drawing/Widgets/CamerasTimeline.cs
index 2a94fd8..e87c4b2 100644
--- a/LongoMatch.Drawing/Widgets/CamerasTimeline.cs
+++ b/LongoMatch.Drawing/Widgets/CamerasTimeline.cs
@@ -112,17 +112,16 @@ namespace LongoMatch.Drawing.Widgets
                void FillCanvas ()
                {
                        // Calculate height depending on number of cameras - 1 (for the main camera) + the 
line for periods
-                       widget.Height = Constants.TIMER_HEIGHT * fileSet.Count;
+                       widget.Height = StyleConf.TimelineCameraHeight * fileSet.Count;
 
                        // Add the timeline for periods
-                       PeriodsTimeline = new TimerTimeline (timers, true, NodeSelectionMode.All, true, 
duration, 0,
-                               Config.Style.PaletteBackground,
-                               Config.Style.PaletteBackgroundLight);
+                       PeriodsTimeline = new TimerTimeline (timers, true, NodeDraggingMode.All, true, 
duration, StyleConf.TimelineCameraHeight, 0,
+                               Config.Style.PaletteBackground, Config.Style.PaletteBackgroundLight);
                        AddTimeLine (PeriodsTimeline);
 
                        // And for the cameras
                        for (int i = 1; i < fileSet.Count; i++) {
-                               CameraTimeline cameraTimeLine = new CameraTimeline (fileSet [i], true, 
NodeSelectionMode.Segment, true, duration, i * StyleConf.TimelineCategoryHeight,
+                               CameraTimeline cameraTimeLine = new CameraTimeline (fileSet [i], false, true, 
duration, i * StyleConf.TimelineCameraHeight,
                                        Config.Style.PaletteBackground,
                                        Config.Style.PaletteBackgroundLight);
                                AddTimeLine (cameraTimeLine);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]