Пример #1
0
 public PlayerBin()
 {
     this.Build();
     PlayerInit();
     vwin = new VolumeWindow();
     vwin.VolumeChanged += new VolumeChangedHandler(OnVolumeChanged);
     controlsbox.Visible = false;
     UnSensitive();
     timescale.Adjustment.PageIncrement = 0.01;
     timescale.Adjustment.StepIncrement = 0.0001;
     playbutton.CanFocus     = false;
     prevbutton.CanFocus     = false;
     nextbutton.CanFocus     = false;
     jumpspinbutton.CanFocus = false;
     detachbutton.CanFocus   = false;
     volumebutton.CanFocus   = false;
     timescale.CanFocus      = false;
     vscale1.CanFocus        = false;
     drawbutton.CanFocus     = false;
     seeksQueue            = new double[2];
     seeksQueue [0]        = -1;
     seeksQueue [1]        = -1;
     detachbutton.Clicked += (sender, e) => EmitDetach();
     seeker            = new Seeker();
     seeker.SeekEvent += HandleSeekEvent;
 }
Пример #2
0
        public PlayerView()
        {
            this.Build();

            closebuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-cancel-rec",
                                                            StyleConf.PlayerCapturerIconSize);
            drawbuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-draw",
                                                           StyleConf.PlayerCapturerIconSize);
            playbuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-play",
                                                           StyleConf.PlayerCapturerIconSize);
            pausebuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-pause",
                                                            StyleConf.PlayerCapturerIconSize);
            prevbuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-rw",
                                                           StyleConf.PlayerCapturerIconSize);
            nextbuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-ff",
                                                           StyleConf.PlayerCapturerIconSize);
            volumebuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-volume-hi",
                                                             StyleConf.PlayerCapturerIconSize);
            detachbuttonimage.Pixbuf = Helpers.Misc.LoadIcon("longomatch-control-detach",
                                                             StyleConf.PlayerCapturerIconSize);

            // Force tooltips to be translatable as there seems to be a bug in stetic
            // code generation for translatable tooltips.
            ratescale.TooltipMarkup      = Catalog.GetString("Playback speed");
            closebutton.TooltipMarkup    = Catalog.GetString("Close loaded event");
            drawbutton.TooltipMarkup     = Catalog.GetString("Draw frame");
            playbutton.TooltipMarkup     = Catalog.GetString("Play");
            pausebutton.TooltipMarkup    = Catalog.GetString("Pause");
            prevbutton.TooltipMarkup     = Catalog.GetString("Previous");
            nextbutton.TooltipMarkup     = Catalog.GetString("Next");
            jumpspinbutton.TooltipMarkup = Catalog.GetString("Jump in seconds. Hold the Shift key with the direction keys to activate it.");
            volumebutton.TooltipMarkup   = Catalog.GetString("Volume");
            detachbutton.TooltipMarkup   = Catalog.GetString("Detach window");

            vwin = new VolumeWindow();
            ConnectSignals();
            blackboard      = new Blackboard(new WidgetWrapper(blackboarddrawingarea));
            vbox3.NoShowAll = true;
            timescale.Adjustment.PageIncrement = 0.01;
            timescale.Adjustment.StepIncrement = 0.0001;
            LongoMatch.Gui.Helpers.Misc.SetFocus(vbox3, false);
            videowindow.CanFocus  = true;
            detachbutton.Clicked += (sender, e) => Config.EventsBroker.EmitDetach();
            ratescale.ModifyFont(FontDescription.FromString(Config.Style.Font + " 8"));
            controlsbox.HeightRequest = StyleConf.PlayerCapturerControlsHeight;

            Player = new PlayerController();
            Player.CamerasConfig = new List <CameraConfig> {
                new CameraConfig(0)
            };
            Player.Step = new Time {
                TotalSeconds = jumpspinbutton.ValueAsInt
            };
            Mode = PlayerViewOperationMode.Analysis;
            CreateWindows();
            ResetGui();
        }
Пример #3
0
 public PlayerBin()
 {
     this.Build();
     PlayerInit();
     vwin = new VolumeWindow();
     vwin.VolumeChanged += new VolumeChangedHandler(OnVolumeChanged);
     controlsbox.Visible = false;
     UnSensitive();
     timescale.Adjustment.PageIncrement = 0.01;
     timescale.Adjustment.StepIncrement = 0.0001;
     playbutton.CanFocus   = false;
     prevbutton.CanFocus   = false;
     nextbutton.CanFocus   = false;
     volumebutton.CanFocus = false;
     timescale.CanFocus    = false;
     vscale1.CanFocus      = false;
     drawbutton.CanFocus   = false;
     seeksQueue            = new double[2];
     seeksQueue [0]        = -1;
     seeksQueue [1]        = -1;
 }
Пример #4
0
 public PlayerBin()
 {
     this.Build();
     PlayerInit();
     vwin = new VolumeWindow();
     vwin.VolumeChanged += new VolumeChangedHandler(OnVolumeChanged);
     controlsbox.Visible = false;
     UnSensitive();
     timescale.Adjustment.PageIncrement = 0.01;
     timescale.Adjustment.StepIncrement = 0.0001;
     playbutton.CanFocus = false;
     prevbutton.CanFocus = false;
     nextbutton.CanFocus = false;
     volumebutton.CanFocus = false;
     timescale.CanFocus = false;
     vscale1.CanFocus = false;
     drawbutton.CanFocus = false;
     seeksQueue = new double[2];
     seeksQueue [0] = -1;
     seeksQueue [1] = -1;
 }
Пример #5
0
        public PlayerView()
        {
            this.Build ();

            closebuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-cancel-rec",
                StyleConf.PlayerCapturerIconSize);
            drawbuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-draw",
                StyleConf.PlayerCapturerIconSize);
            playbuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-play",
                StyleConf.PlayerCapturerIconSize);
            pausebuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-pause",
                StyleConf.PlayerCapturerIconSize);
            prevbuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-rw",
                StyleConf.PlayerCapturerIconSize);
            nextbuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-ff",
                StyleConf.PlayerCapturerIconSize);
            volumebuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-volume-hi",
                StyleConf.PlayerCapturerIconSize);
            detachbuttonimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-control-detach",
                StyleConf.PlayerCapturerIconSize);

            // Force tooltips to be translatable as there seems to be a bug in stetic
            // code generation for translatable tooltips.
            ratescale.TooltipMarkup = Catalog.GetString ("Playback speed");
            closebutton.TooltipMarkup = Catalog.GetString ("Close loaded event");
            drawbutton.TooltipMarkup = Catalog.GetString ("Draw frame");
            playbutton.TooltipMarkup = Catalog.GetString ("Play");
            pausebutton.TooltipMarkup = Catalog.GetString ("Pause");
            prevbutton.TooltipMarkup = Catalog.GetString ("Previous");
            nextbutton.TooltipMarkup = Catalog.GetString ("Next");
            jumpspinbutton.TooltipMarkup = Catalog.GetString ("Jump in seconds. Hold the Shift key with the direction keys to activate it.");
            volumebutton.TooltipMarkup = Catalog.GetString ("Volume");
            detachbutton.TooltipMarkup = Catalog.GetString ("Detach window");

            vwin = new VolumeWindow ();
            ConnectSignals ();
            blackboard = new Blackboard (new WidgetWrapper (blackboarddrawingarea));
            vbox3.NoShowAll = true;
            timescale.Adjustment.PageIncrement = 0.01;
            timescale.Adjustment.StepIncrement = 0.0001;
            LongoMatch.Gui.Helpers.Misc.SetFocus (vbox3, false);
            videowindow.CanFocus = true;
            detachbutton.Clicked += (sender, e) => Config.EventsBroker.EmitDetach ();
            ratescale.ModifyFont (FontDescription.FromString (Config.Style.Font + " 8"));
            controlsbox.HeightRequest = StyleConf.PlayerCapturerControlsHeight;

            Player = new PlayerController ();
            Player.CamerasConfig = new List<CameraConfig> { new CameraConfig (0) };
            Player.Step = new Time { TotalSeconds = jumpspinbutton.ValueAsInt };
            Mode = PlayerViewOperationMode.Analysis;
            CreateWindows ();
            ResetGui ();
        }