Inheritance: TimelineObject
Ejemplo n.º 1
0
        protected override void FillCanvas()
        {
            TimelineObject tl;
            int i = 0;

            tl = new TimerTimeline (project.Periods.Select (p => p as Timer).ToList (),
                true, NodeDraggingMode.All, false, duration,
                i * StyleConf.TimelineCategoryHeight,
                VASDrawing.Utils.ColorForRow (i), App.Current.Style.PaletteBackgroundDark);
            AddTimeline (tl, null);
            PeriodsTimeline = tl as TimerTimeline;
            i++;

            foreach (Timer t in project.Timers) {
                tl = new TimerTimeline (new List<Timer> { t }, false, NodeDraggingMode.All, false, duration,
                    i * StyleConf.TimelineCategoryHeight,
                    VASDrawing.Utils.ColorForRow (i), App.Current.Style.PaletteBackgroundDark);
                AddTimeline (tl, t);
            }

            foreach (EventType type in project.EventTypes) {
                List<TimelineEvent> timelineEventList = project.EventsByType (type);
                var timelineEventLongoMatchList = new List<TimelineEvent> ();
                timelineEventList.ForEach (x => timelineEventLongoMatchList.Add (x));
                tl = new SportCategoryTimeline (project as ProjectLongoMatch, timelineEventLongoMatchList, duration,
                    i * StyleConf.TimelineCategoryHeight,
                    VASDrawing.Utils.ColorForRow (i), playsFilter);
                AddTimeline (tl, type);
                i++;
            }
            UpdateVisibleCategories ();
            Update ();
            HeightRequest = Objects.Count * StyleConf.TimelineCategoryHeight;
        }
Ejemplo n.º 2
0
        public void ShowMenu(Project project, Timer timer, Time time,
		                      TimerTimeline timertimeline)
        {
            this.timer = timer;
            this.time = time;
            this.project = project;
            this.timertimeline = timertimeline;
            delitem.Visible = project != null && timer != null;
            Popup ();
        }
Ejemplo n.º 3
0
        void FillCanvas()
        {
            // Calculate height depending on number of cameras - 1 (for the main camera) + the line for periods
            widget.Height = StyleConf.TimelineCameraHeight * fileSet.Count;

            // Add the timeline for periods
            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], false, true, duration, i * StyleConf.TimelineCameraHeight,
                                                    Config.Style.PaletteBackground,
                                                    Config.Style.PaletteBackgroundLight);
                AddTimeLine (cameraTimeLine);
            }
            Update ();
        }
Ejemplo n.º 4
0
 void FillCanvas(List<Timer> timers)
 {
     timertimeline = new TimerTimeline (timers, true, NodeDraggingMode.All, true, duration, 0,
         App.Current.Style.PaletteBackground,
         App.Current.Style.PaletteBackgroundLight);
     foreach (Timer t in timers) {
         this.timers [t] = timertimeline;
     }
     AddObject (timertimeline);
     Update ();
 }
Ejemplo n.º 5
0
        void FillCanvas()
        {
            TimelineObject tl;
            int i = 0;

            tl = new TimerTimeline (project.Periods.Select (p => p as Timer).ToList (),
                true, NodeDraggingMode.All, false, duration,
                i * StyleConf.TimelineCategoryHeight,
                Utils.ColorForRow (i), Config.Style.PaletteBackgroundDark);
            AddTimeline (tl, null);
            PeriodsTimeline = tl as TimerTimeline;
            i++;

            foreach (Timer t in project.Timers) {
                tl = new TimerTimeline (new List<Timer> { t }, false, NodeDraggingMode.All, false, duration,
                    i * StyleConf.TimelineCategoryHeight,
                    Utils.ColorForRow (i), Config.Style.PaletteBackgroundDark);
                AddTimeline (tl, t);
            }

            foreach (EventType type in project.EventTypes) {
                tl = new CategoryTimeline (project, project.EventsByType (type), duration,
                    i * StyleConf.TimelineCategoryHeight,
                    Utils.ColorForRow (i), playsFilter);
                AddTimeline (tl, type);
                i++;
            }
            UpdateVisibleCategories ();
            Update ();
        }
Ejemplo n.º 6
0
 void FillCanvas(List<Timer> timers)
 {
     widget.Height = Constants.TIMER_HEIGHT;
     timertimeline = new TimerTimeline (timers, true, NodeDraggingMode.All, true, duration, 0,
         Config.Style.PaletteBackground,
         Config.Style.PaletteBackgroundLight);
     foreach (Timer t in timers) {
         this.timers [t] = timertimeline;
     }
     AddObject (timertimeline);
     Update ();
 }