Inheritance: ISomeCommonEditorOperations
Exemplo n.º 1
0
        public MainForm(string[] commandLineArgs)
        {
            InitializeComponent();
            CustomLayout();

            logic = new EditorLogic(videoShitbox, vidkaPreviewPlayer);
            fastPlayerWrapper = new VidkaFastPreviewPlayerWrapper(vidkaFastPreviewPlayer, vidkaPreviewPlayer, this);
            videoShitbox.setLogic(logic);
            videoShitbox.GuessWhoIsConsole(txtConsole);
            vidkaFastPreviewPlayer.SetFileMapping(logic.FileMapping);

            openFirstFile = commandLineArgs.FirstOrDefault();
        }
Exemplo n.º 2
0
 public void setLogic(EditorLogic logic)
 {
     Logic = logic;
     if (isControlLoaded)
         Logic.UiInitialized();
     // .... these are all the classes that draw shit on in the VideoShitbox control
     vidkaDrawOps = new DrawOpsCollection(new DrawOp[] {
         new Draw0Canvas(Logic, imageMan),
         new Draw0Axis(Logic, imageMan),
         new DrawVideoClips(Logic, imageMan),
         new DrawAudioClips(Logic, imageMan),
         new DrawRenderBreakups(Logic, imageMan),
         new DrawVideoAudioAligns(Logic, imageMan),
         new DrawVideoAudioLinkage(Logic, imageMan),
         new DrawVideoHover(Logic, imageMan),
         new DrawAudioHover(Logic, imageMan),
         new DrawCurFrameMarker(Logic, imageMan),
         new DrawOriginalVideo(Logic, imageMan),
         new DrawOriginalAudio(Logic, imageMan),
         new DrawDraggySeparately(Logic, imageMan),
     });
     Invalidate();
 }