public PlayerScreen(IScreenHandler _screenHandler) { log.Debug("Constructing a PlayerScreen."); m_ScreenHandler = _screenHandler; m_UniqueId = System.Guid.NewGuid(); m_PlayerScreenUI = new PlayerScreenUserInterface(m_FrameServer, this); }
public CommandDeleteEndOfTrack(PlayerScreenUserInterface _psui, Metadata _Metadata, long _iTimeStamp) { m_psui = _psui; m_Metadata = _Metadata; m_Track = m_Metadata.ExtraDrawings[m_Metadata.SelectedExtraDrawing] as Track; m_iTimeStamp = _iTimeStamp; }
public formKeyframeComments(PlayerScreenUserInterface _psui) { InitializeComponent(); RefreshUICulture(); m_bUserActivated = false; m_psui = _psui; }
public CommandDeleteEndOfTrack(PlayerScreenUserInterface _psui, Metadata _Metadata, long _iTimeStamp) { m_psui = _psui; m_Metadata = _Metadata; m_iTrackIndex = m_Metadata.SelectedTrack; m_iTimeStamp = _iTimeStamp; }
public CommandDeleteTrack(PlayerScreenUserInterface _psui, Metadata _Metadata) { m_psui = _psui; m_Metadata = _Metadata; m_iTrackIndex = m_Metadata.SelectedTrack; m_iTotalTracks = m_Metadata.Tracks.Count; m_Track = m_Metadata.Tracks[m_iTrackIndex]; }
public CommandDeleteChrono(PlayerScreenUserInterface _psui, Metadata _Metadata) { m_psui = _psui; m_Metadata = _Metadata; m_iChronoIndex = m_Metadata.SelectedChrono; m_iTotalChronos = m_Metadata.Chronos.Count; m_Chrono = m_Metadata.Chronos[m_iChronoIndex]; }
public PlayerScreen() { log.Debug("Constructing a PlayerScreen."); historyStack = new HistoryStack(); frameServer = new FrameServerPlayer(historyStack); view = new PlayerScreenUserInterface(frameServer, drawingToolbarPresenter); BindCommands(); }
public CommandDeleteKeyframe(PlayerScreenUserInterface _psui, Metadata _Metadata, long _iFramePosition) { m_psui = _psui; m_iFramePosition = _iFramePosition; m_Metadata = _Metadata; int iIndex = GetKeyframeIndex(); if (iIndex >= 0) { m_Keyframe = m_Metadata[iIndex]; } }
public formRafaleExport(PlayerScreenUserInterface _psui, Metadata _metadata, string _FullPath, Int64 _iSelDuration, double _tsps) { m_PlayerScreenUserInterface = _psui; m_Metadata = _metadata; m_FullPath = _FullPath; m_iSelectionDuration = _iSelDuration; m_fTimestampsPerSeconds = _tsps; m_fDurationInSeconds = m_iSelectionDuration / m_fTimestampsPerSeconds; m_iEstimatedTotal = 0; InitializeComponent(); SetupUICulture(); SetupData(); }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } m_psui = null; } base.Dispose(disposing); }
public CommandModifyChrono(PlayerScreenUserInterface _psui, Metadata _Metadata, DrawingChrono.ChronoModificationType _modifType, long _newValue) { // In the special case of Countdown toggle, the new value will be 0 -> false, true otherwise . m_psui = _psui; m_Metadata = _Metadata; m_iChronoIndex = m_Metadata.SelectedChrono; m_iNewValue = _newValue; m_ModifType = _modifType; // old values m_iStartCountingTimestamp = m_Metadata.Chronos[m_iChronoIndex].TimeStart; m_iStopCountingTimestamp = m_Metadata.Chronos[m_iChronoIndex].TimeStop; m_iInvisibleTimestamp = m_Metadata.Chronos[m_iChronoIndex].TimeInvisible; m_bCountdown = m_Metadata.Chronos[m_iChronoIndex].CountDown; }
public FormRafaleExport(PlayerScreenUserInterface playerScreenUserInterface, Metadata metadata, string fullPath, VideoInfo info) { this.playerScreenUserInterface = playerScreenUserInterface; this.metadata = metadata; this.fullPath = fullPath; this.info = info; frameInterval = metadata.UserInterval; totalFrames = (int)((metadata.SelectionEnd - metadata.SelectionStart) / metadata.AverageTimeStampsPerFrame) + 1; maxDecimationFrames = totalFrames / 2; maxDecimationFrames = Math.Min(limitDecimationFrames, maxDecimationFrames); InitializeComponent(); SetupUICulture(); Populate(); }
public formRafaleExport(PlayerScreenUserInterface _psui, Metadata _metadata, string _FullPath, Int64 _iSelDuration, double _tsps, double _fps) { m_PlayerScreenUserInterface = _psui; m_Metadata = _metadata; m_FullPath = _FullPath; m_iSelectionDuration = _iSelDuration; m_fTimestampsPerSeconds = _tsps; m_fDurationInSeconds = m_iSelectionDuration / m_fTimestampsPerSeconds; m_fFramesPerSeconds = _fps; m_ResourceManager = new ResourceManager("Kinovea.ScreenManager.Languages.ScreenManagerLang", Assembly.GetExecutingAssembly()); m_iEstimatedTotal = 0; InitializeComponent(); SetupUICulture(); SetupData(); }
public FormFramesExport(PlayerScreenUserInterface _psui, string _FilePath, long _iIntervalTimeStamps, bool _bKeyframesOnly, int _iEstimatedTotal) { InitializeComponent(); m_psui = _psui; m_FilePath = _FilePath; m_iIntervalTimeStamps = _iIntervalTimeStamps; m_bKeyframesOnly = _bKeyframesOnly; m_iEstimatedTotal = _iEstimatedTotal; this.Text = " " + ScreenManagerLang.FormFramesExport_Title; labelInfos.Text = ScreenManagerLang.FormFramesExport_Infos + " 0 / ~?"; progressBar.Minimum = 0; progressBar.Maximum = 100; progressBar.Step = 1; progressBar.Style = ProgressBarStyle.Blocks; progressBar.Value = 0; Application.Idle += new EventHandler(this.IdleDetector); }
public formFramesExport(PlayerScreenUserInterface _psui, string _FilePath, Int64 _iIntervalTimeStamps, bool _bBlendDrawings, bool _bKeyframesOnly, int _iEstimatedTotal) { InitializeComponent(); m_psui = _psui; m_FilePath = _FilePath; m_iIntervalTimeStamps = _iIntervalTimeStamps; m_bBlendDrawings = _bBlendDrawings; m_bKeyframesOnly = _bKeyframesOnly; m_iEstimatedTotal = _iEstimatedTotal; m_ResourceManager = new ResourceManager("Kinovea.ScreenManager.Languages.ScreenManagerLang", Assembly.GetExecutingAssembly()); this.Text = " " + m_ResourceManager.GetString("FormFramesExport_Title", Thread.CurrentThread.CurrentUICulture); labelInfos.Text = m_ResourceManager.GetString("FormFramesExport_Infos", Thread.CurrentThread.CurrentUICulture) + " 0 / ~?"; progressBar.Minimum = 0; progressBar.Maximum = 100; progressBar.Step = 1; progressBar.Style = ProgressBarStyle.Blocks; progressBar.Value = 0; Application.Idle += new EventHandler(this.IdleDetector); }
public CommandDeleteTrack(PlayerScreenUserInterface _psui, Metadata _Metadata) { m_psui = _psui; m_Metadata = _Metadata; m_Track = m_Metadata.ExtraDrawings[m_Metadata.SelectedExtraDrawing] as Track; }
public CommandAddKeyframe(PlayerScreenUserInterface _psui, Metadata _Metadata, long _iFramePosition) { m_psui = _psui; m_iFramePosition = _iFramePosition; m_Metadata = _Metadata; }
public CommandDeleteChrono(PlayerScreenUserInterface _psui, Metadata _Metadata) { m_psui = _psui; m_Metadata = _Metadata; m_Chrono = m_Metadata.ExtraDrawings[m_Metadata.SelectedExtraDrawing] as DrawingChrono; }