Exemple #1
0
        public SynchronizationWidget()
        {
            this.Build();

            zoomscale.CanFocus         = false;
            zoomscale.Adjustment.Lower = 0;
            zoomscale.Adjustment.Upper = 100;

            zoomoutimage.Image = App.Current.ResourcesLocator.LoadIcon("vas-zoom-out", 14);
            zoominimage.Image  = App.Current.ResourcesLocator.LoadIcon("vas-zoom-in", 14);

            timerule            = new Timerule(new WidgetWrapper(timerulearea));
            timerule.AutoUpdate = true;
            camerasTimeline     = new CamerasTimelineView(new WidgetWrapper(timelinearea));
            camerasLabels       = new CamerasLabelsView(new WidgetWrapper(labelsarea));

            // Set some sane defaults
            labels_vbox.WidthRequest = Sizes.TimelineLabelsWidth;
            // We need to align the timerule and the beginning of labels list
            timerulearea.HeightRequest = Sizes.TimelineCameraHeight;

            menu = new PeriodsMenu();

            videoPlayerView = App.Current.GUIToolkit.GetPlayerView();
            videoplayerbox.PackStart(videoPlayerView as Widget, true, true, 0);
            videoplayerbox.ShowAll();

            Helpers.Misc.SetFocus(this, false);
            Bind();
        }
Exemple #2
0
        public SynchronizationWidget()
        {
            this.Build();

            zoomscale.CanFocus         = false;
            zoomscale.Adjustment.Lower = 0;
            zoomscale.Adjustment.Upper = 100;

            zoomoutimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-zoom-out", 14);
            zoominimage.Pixbuf  = Helpers.Misc.LoadIcon("longomatch-zoom-in", 14);

            // Only main cam has audio for now
            main_cam_audio_button_image.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-volume-hi", IconSize.Button);
            sec_cam_audio_button_image.Pixbuf  = Helpers.Misc.LoadIcon("longomatch-control-volume-off", IconSize.Button);
            main_cam_audio_button.Active       = true;
            sec_cam_audio_button.Active        = false;

            // We control visibility of those widgets, they are hidden at startup
            sec_cam_vbox.NoShowAll           = true;
            sec_cam_didactic_label.NoShowAll = true;

            timerule        = new Timerule(new WidgetWrapper(timerulearea));
            camerasTimeline = new CamerasTimeline(new WidgetWrapper(timelinearea));
            camerasLabels   = new CamerasLabels(new WidgetWrapper(labelsarea));

            // Set some sane defaults
            labels_vbox.WidthRequest = StyleConf.TimelineLabelsWidth;
            // We need to align the timerule and the beginning of labels list
            timerulearea.HeightRequest = StyleConf.TimelineCameraHeight;

            main_cam_label.ModifyFont(FontDescription.FromString(Config.Style.Font + " bold 14"));
            sec_cam_label.ModifyFont(FontDescription.FromString(Config.Style.Font + " bold 14"));

            main_cam_playerbin.Mode = PlayerViewOperationMode.Synchronization;
            sec_cam_playerbin.Mode  = PlayerViewOperationMode.Synchronization;

            ConnectSignals();

            LongoMatch.Gui.Helpers.Misc.SetFocus(this, false);

            menu = new PeriodsMenu();
        }
Exemple #3
0
        public Timeline()
        {
            this.Build();
            this.timerule = new Timerule(new WidgetWrapper(timerulearea));
            this.timeline = new PlaysTimeline(new WidgetWrapper(timelinearea));
            this.labels   = new TimelineLabels(new WidgetWrapper(labelsarea));

            focusbuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-dash-center-view", Gtk.IconSize.Menu, 0);

            focusbutton.CanFocus        = false;
            focusbutton.Clicked        += HandleFocusClicked;
            focusscale.CanFocus         = false;
            focusscale.Adjustment.Lower = 0;
            focusscale.Adjustment.Upper = 12;
            focusscale.ValueChanged    += HandleValueChanged;
            timerulearea.HeightRequest  = LongoMatch.Drawing.Constants.TIMERULE_HEIGHT;
            leftbox.WidthRequest        = StyleConf.TimelineLabelsWidth;
            labelsarea.SizeRequested   += (o, args) => {
                leftbox.WidthRequest = args.Requisition.Width;
            };
            hbox1.HeightRequest = LongoMatch.Drawing.Constants.TIMERULE_HEIGHT;
            scrolledwindow1.Vadjustment.ValueChanged += HandleScrollEvent;
            scrolledwindow1.Hadjustment.ValueChanged += HandleScrollEvent;
            timeoutID = 0;

            zoominimage.Pixbuf  = LongoMatch.Gui.Helpers.Misc.LoadIcon("longomatch-zoom-in", 14);
            zoomoutimage.Pixbuf = LongoMatch.Gui.Helpers.Misc.LoadIcon("longomatch-zoom-out", 14);

            // Synchronize the zoom widget height with scrolledwindow's scrollbar's.
            scrolledwindow1.HScrollbar.SizeAllocated += (object o, SizeAllocatedArgs args) => {
                int spacing = (int)scrolledwindow1.StyleGetProperty("scrollbar-spacing");
                zoomhbox.HeightRequest = args.Allocation.Height + spacing;
            };

            menu        = new PlaysMenu();
            periodsmenu = new PeriodsMenu();
        }
Exemple #4
0
 public Timeline() : base()
 {
     periodsmenu = new PeriodsMenu();
     menu        = new SportsPlaysMenu();
     ((LMPlaysTimeline)timeline).ShowPeriodsMenuEvent += HandleShowTimerMenuEvent;
 }