예제 #1
0
 void HandleSampleWebBrowserCmdInvoked(Object sender, EventArgs args)
 {
     if (!myVegas.ActivateDockView("SampleWebBrowser"))
     {
         SampleWebBrowser dockView = new SampleWebBrowser();
         dockView.AutoLoadCommand = mySampleWebBrowserCommand;
         myVegas.LoadDockView(dockView);
     }
 }
예제 #2
0
파일: Main.cs 프로젝트: REVENGE977/VEGASRPC
 void loadDummyDocker(Vegas vegas)
 {
     // because VEGAS API is stupid and only allows to listen on app close through a docked control
     // so we make a super tiny one where nobody can see it and we win
     dummyDocker.AppWindowClosed        += (a, b) => { Shutdown(); };
     dummyDocker.DefaultDockWindowStyle  = DockWindowStyle.Detached;
     dummyDocker.DefaultFloatingSize     = new System.Drawing.Size(1, 1);
     dummyDocker.DefaultFloatingLocation = new System.Drawing.Point(2, 2);
     vegas.LoadDockView(dummyDocker);
 }
예제 #3
0
 private void ProjectSearchReplace_Invoked(object sender, EventArgs e)
 {
     if (!myVegas.ActivateDockView(ProjectSearchStrings.WindowTitle))
     {
         var searchForm = new FormSearchReplace {
             AutoLoadCommand = ProjectSearchReplaceCommand
         };
         myVegas.LoadDockView(searchForm);
     }
 }
예제 #4
0
        void HandleInvoked(Object sender, EventArgs args)
        {
            if (!myVegas.ActivateDockView("LipSyncApp"))
            {
                myControl      = new LipSyncUserControl(myVegas);
                myControl.Dock = System.Windows.Forms.DockStyle.Fill;

                DockableControl dockView = new DockableControl("LipSyncApp");
                dockView.AutoLoadCommand        = myCommand;
                dockView.PersistDockWindowState = true;
                dockView.DefaultFloatingSize    = new Size(540, 480);
                dockView.DefaultDockWindowStyle = DockWindowStyle.Docked;
                dockView.Dock = System.Windows.Forms.DockStyle.Fill;
                dockView.Controls.Add(myControl);
                myVegas.LoadDockView(dockView);
            }
        }
예제 #5
0
        void vPythonWindowCommand_Invoked(object sender, EventArgs e)
        {
            // if not already active
            if (!vegas.ActivateDockView(vPythonWindowMName))
            {
                // let's create controls
                vPythonForm vPF = new vPythonForm(vegas);
                // create dockable view with controls
                vPythonView = new vPythonDockView(vPythonWindowMName, vPF);
                vPythonView.PersistDockWindowState = true;
                vPythonView.AutoLoadCommand        = vPythonWindowCommand;
                vPythonView.MinimumSize            = new System.Drawing.Size(300, 400);

                //vPythonView.vPF.setPythonView(vPythonView, vPythonWindowMName);

                vegas.LoadDockView(vPythonView);
                //               System.Diagnostics.Debug.WriteLine("vPython Window created");
            }
        }
예제 #6
0
 private void RegionPlayerCommand_Invoked(object sender, EventArgs e)
 {
     if (!myVegas.ActivateDockView(Strings.RegionPlayerWindowTitle))
     {
         var player = new FormRegionPlayer {
             AutoLoadCommand = RegionPlayerCommand, PersistDockWindowState = true
         };
         myVegas.LoadDockView(player);
     }
     else
     {
         IDockView ctrl;
         myVegas.FindDockView(Strings.RegionPlayerWindowTitle, out ctrl);
         if (ctrl != null)
         {
             ctrl.InvokeLoaded();
         }
     }
 }
예제 #7
0
 private void MediaManagerCommand_Invoked(object sender, EventArgs e)
 {
     if (!myVegas.ActivateDockView(Strings.WindowTitle))
     {
         if (mediamanagerform == null)
         {
             mediamanagerform = new FormMediaManager {
                 AutoLoadCommand = MediaManagerCommand, PersistDockWindowState = true, MyVegas = myVegas
             };
         }
         myVegas.LoadDockView(mediamanagerform);
         mediamanagerform.PopulateMediaListItems();
     }
     else
     {
         IDockView ctrl;
         myVegas.FindDockView(Strings.WindowTitle, out ctrl);
         if (ctrl != null)
         {
             ctrl.InvokeLoaded();
         }
     }
 }
        void HandleInvoked(Object sender, EventArgs args)
        {
            if (!myVegas.ActivateDockView(Config.DisplayExtensionName))
            {
                DockableControl            dockView = new DockableControl(Config.DisplayExtensionName);
                System.Windows.Forms.Label label    = new System.Windows.Forms.Label();

                fromRightBtn          = new Button();
                fromRightBtn.Location = new System.Drawing.Point(3, 156);
                fromRightBtn.Name     = "fromRightBtn";
                fromRightBtn.Size     = new System.Drawing.Size(123, 23);
                fromRightBtn.TabIndex = 0;
                fromRightBtn.Text     = "From Right";
                fromRightBtn.Click   += pushRightClick;
                fromRightBtn.UseVisualStyleBackColor = true;
                dockView.Controls.Add(fromRightBtn);

                fromLeftBtn          = new Button();
                fromLeftBtn.Location = new System.Drawing.Point(3, 185);
                fromLeftBtn.Name     = "fromLeftBtn";
                fromLeftBtn.Size     = new System.Drawing.Size(123, 23);
                fromLeftBtn.TabIndex = 1;
                fromLeftBtn.Text     = "From Left";
                fromLeftBtn.Click   += pushLeftClick;
                fromLeftBtn.UseVisualStyleBackColor = true;
                dockView.Controls.Add(fromLeftBtn);

                label1          = new System.Windows.Forms.Label();
                label1.AutoSize = true;
                label1.Location = new System.Drawing.Point(4, 137);
                label1.Name     = "label1";
                label1.Size     = new System.Drawing.Size(49, 13);
                label1.TabIndex = 2;
                label1.Text     = "Direction";
                dockView.Controls.Add(label1);

                offsetTrackBar               = new TrackBar();
                offsetTrackBar.Location      = new System.Drawing.Point(3, 89);
                offsetTrackBar.Name          = "trackBar";
                offsetTrackBar.Size          = new System.Drawing.Size(123, 45);
                offsetTrackBar.TabIndex      = 3;
                offsetTrackBar.Maximum       = Config.splitOffsetMaximum;
                offsetTrackBar.Minimum       = Config.splitOffsetMinimum;
                offsetTrackBar.Value         = Config.splitOffset;
                offsetTrackBar.TickFrequency = 100;
                offsetTrackBar.Scroll       += OffsetTrackBar_ValueChanged;
                dockView.Controls.Add(offsetTrackBar);

                numericUpDown               = new System.Windows.Forms.NumericUpDown();
                numericUpDown.Location      = new System.Drawing.Point(5, 66);
                numericUpDown.Name          = "numericUpDown";
                numericUpDown.Size          = new System.Drawing.Size(119, 20);
                numericUpDown.TabIndex      = 8;
                numericUpDown.Maximum       = Config.splitOffsetMaximum;
                numericUpDown.Minimum       = Config.splitOffsetMinimum;
                numericUpDown.Value         = Config.splitOffset;
                numericUpDown.ValueChanged += NumericUpDown_ValueChanged;
                dockView.Controls.Add(numericUpDown);

                label2          = new System.Windows.Forms.Label();
                label2.AutoSize = true;
                label2.Location = new System.Drawing.Point(4, 50);
                label2.Name     = "label2";
                label2.Size     = new System.Drawing.Size(75, 13);
                label2.TabIndex = 4;
                label2.Text     = "Transition (ms)";
                dockView.Controls.Add(label2);

                label3          = new System.Windows.Forms.Label();
                label3.AutoSize = true;
                label3.Location = new System.Drawing.Point(4, 10);
                label3.Name     = "label3";
                label3.Size     = new System.Drawing.Size(113, 13);
                label3.TabIndex = 6;
                label3.Text     = "PushBlurTransition 0.1";
                dockView.Controls.Add(label3);

                linkLabel          = new LinkLabel();
                linkLabel.AutoSize = true;
                linkLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
                linkLabel.Location = new System.Drawing.Point(3, 254);
                linkLabel.Name     = "linkLabel";
                linkLabel.Size     = new System.Drawing.Size(108, 12);
                linkLabel.TabIndex = 7;
                linkLabel.TabStop  = true;
                linkLabel.Click   += LinkLabel_Click;
                linkLabel.Text     = "github.com/KLEEEEEER";
                dockView.Controls.Add(linkLabel);

                dockView.DefaultFloatingSize = new System.Drawing.Size(145, 308);
                dockView.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
                dockView.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

                myVegas.LoadDockView(dockView);
            }
        }