コード例 #1
0
ファイル: Workspace.cs プロジェクト: itsbth/GLuaR
        /// <summary>
        /// Creates a new Environment class
        /// </summary>
        /// <param name="sdm">The docking manager used by GLua</param>
        /// <param name="tStrip">Tab context menu</param>
        /// <param name="eStrip">Edit control context menu</param>
        /// <param name="pStrip">Project node context menu</param>
        /// <param name="cStrip">Code node context menu</param>
        /// <param name="fStrip">Folder node context menu</param>
        /// <param name="code">Code provider for code completion</param>
        public Workspace(DockContainer sdm, ContextMenuStrip tStrip, ContextMenuStrip eStrip, ContextMenuStrip pStrip,
                         ContextMenuStrip cStrip, ContextMenuStrip fStrip, ImageList images)
        {
            // set all the values
            Manager = sdm;
            ImageList = images;

            _explorer = new ProjectExplorer(this);
            TreeView = _explorer.tvFiles;
            ImageList = _explorer.imgList;
            _explorer.Show(sdm, DockState.DockLeft); //, DockState.DockLeft);

            _bug = new WebWindow("http://code.google.com/p/gluar/issues/list") {TabText = "Bug Reporter"};

            TabStrip = tStrip;
            EditStrip = eStrip;
            ProjectStrip = _explorer.projectMenu;
            CodeStrip = _explorer.fileMenu;
            FolderStrip = _explorer.folderMenu;

            // used to set the right clicked node as the current node
            //treeView.NodeMouseClick += new TreeNodeMouseClickEventHandler(treeView_NodeMouseClick);

            // Taken out by Marine
            // !  Put back in by VoiDeD
            // load the code database and settings
            _code = CodeProvider.Load(Application.StartupPath + "\\code.db");

            _obj = new ObjectBrowser(_code, images, this);

            // Taken out by Marine
            // Get working in next version
            //settings = Settings.Load( Application.StartupPath + "\\data\\settings.xml" );
        }
コード例 #2
0
ファイル: ObjectBrowser.cs プロジェクト: itsbth/GLuaR
 private void wb_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.ToString() != "about:blank")
     {
         WebWindow ww = new WebWindow(e.Url.ToString());
         ww.Show(myWorkspace.Manager);
         e.Cancel = true;
     }
 }