示例#1
0
 public VEGASPythonManager(Vegas pyVegas,
                           vPythonForm vpWindowForm)
 {
     mvpWindowForm            = vpWindowForm;
     myVegas                  = pyVegas;
     PythonModuleImported     = null;
     PythonModuleImportedName = "";
 }
 public vPythonDockView(string name, vPythonForm vPF)
     : base(name)
 {
     this.vPF = vPF;
     this.SetStyle(ControlStyles.ContainerControl, true);
     //           this.AutoScroll = true;
     this.PersistDockWindowState = true;
     Controls.Add(this.vPF);
     DefaultFloatingSize = new System.Drawing.Size(vPF.Width, vPF.Height);
 }
示例#3
0
        public void InitializeVEGASPython(Vegas pyVegas,
                                          vPythonForm vpWindowForm)
        {
            if (vpWindowForm != null)
            {
                mvpWindowForm = vpWindowForm;
            }
            myVegas = pyVegas;

            mVegasPythonConfigData = VEGASPythonConfig.Read_config();
        }
示例#4
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");
            }
        }