コード例 #1
0
        public ClassBrowserPad()
        {
            instance = this;
            classBrowserTreeView.Dock         = DockStyle.Fill;
            classBrowserTreeView.ImageList    = ClassBrowserIconService.ImageList;
            classBrowserTreeView.AfterSelect += new TreeViewEventHandler(ClassBrowserTreeViewAfterSelect);

            contentPanel.Controls.Add(classBrowserTreeView);

            searchStrip           = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Searchbar");
            searchStrip.Stretch   = true;
            searchStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            contentPanel.Controls.Add(searchStrip);

            toolStrip           = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Toolbar");
            toolStrip.Stretch   = true;
            toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            contentPanel.Controls.Add(toolStrip);

            ProjectService.SolutionLoaded        += ProjectServiceSolutionChanged;
            ProjectService.ProjectItemAdded      += ProjectServiceSolutionChanged;
            ProjectService.ProjectItemRemoved    += ProjectServiceSolutionChanged;
            ProjectService.ProjectAdded          += ProjectServiceSolutionChanged;    // rebuild view when project is added to solution
            ProjectService.SolutionFolderRemoved += ProjectServiceSolutionChanged;    // rebuild view when project is removed from solution
            ProjectService.SolutionClosed        += ProjectServiceSolutionClosed;

            ParserService.ParseInformationUpdated += new ParseInformationEventHandler(ParserServiceParseInformationUpdated);

            AmbienceService.AmbienceChanged += new EventHandler(AmbienceServiceAmbienceChanged);
            if (ProjectService.OpenSolution != null)
            {
                ProjectServiceSolutionChanged(null, null);
            }
            UpdateToolbars();
        }
コード例 #2
0
		public ClassBrowserPad()
		{
			instance = this;
			classBrowserTreeView.Dock         = DockStyle.Fill;
			classBrowserTreeView.ImageList    = ClassBrowserIconService.ImageList;
			classBrowserTreeView.AfterSelect += new TreeViewEventHandler(ClassBrowserTreeViewAfterSelect);
			
			contentPanel.Controls.Add(classBrowserTreeView);
			
			searchStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Searchbar");
			searchStrip.Stretch   = true;
			searchStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			contentPanel.Controls.Add(searchStrip);
			
			toolStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Toolbar");
			toolStrip.Stretch   = true;
			toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			contentPanel.Controls.Add(toolStrip);
			
			ProjectService.SolutionLoaded += ProjectServiceSolutionChanged;
			ProjectService.ProjectItemAdded += ProjectServiceSolutionChanged;
			ProjectService.ProjectItemRemoved += ProjectServiceSolutionChanged;
			ProjectService.ProjectAdded += ProjectServiceSolutionChanged; // rebuild view when project is added to solution
			ProjectService.SolutionFolderRemoved += ProjectServiceSolutionChanged; // rebuild view when project is removed from solution
			ProjectService.SolutionClosed += ProjectServiceSolutionClosed;
			
			ParserService.ParseInformationUpdated += new ParseInformationEventHandler(ParserServiceParseInformationUpdated);
			
			AmbienceService.AmbienceChanged += new EventHandler(AmbienceServiceAmbienceChanged);
			if (ProjectService.OpenSolution != null) {
				ProjectServiceSolutionChanged(null, null);
			}
			UpdateToolbars();
		}
コード例 #3
0
        public ClassBrowserPad()
        {
            instance = this;
            classBrowserTreeView.Dock = DockStyle.Fill;
            // we need to create a copy of the image list because adding image to
            // ClassBrowserIconService.ImageList is not allowed, but the ExtTreeView sometimes
            // does add images to its image list.
            classBrowserTreeView.ImageList = new ImageList();
            classBrowserTreeView.ImageList.Images.AddRange(ClassBrowserIconService.ImageList.Images.Cast <System.Drawing.Image>().ToArray());
            classBrowserTreeView.AfterSelect += new TreeViewEventHandler(ClassBrowserTreeViewAfterSelect);

            contentPanel.Controls.Add(classBrowserTreeView);

            searchStrip           = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Searchbar");
            searchStrip.Stretch   = true;
            searchStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            contentPanel.Controls.Add(searchStrip);

            toolStrip           = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Toolbar");
            toolStrip.Stretch   = true;
            toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            contentPanel.Controls.Add(toolStrip);

            ProjectService.SolutionLoaded        += ProjectServiceSolutionChanged;
            ProjectService.ProjectItemAdded      += ProjectServiceSolutionChanged;
            ProjectService.ProjectItemRemoved    += ProjectServiceSolutionChanged;
            ProjectService.ProjectAdded          += ProjectServiceSolutionChanged;    // rebuild view when project is added to solution
            ProjectService.SolutionFolderRemoved += ProjectServiceSolutionChanged;    // rebuild view when project is removed from solution
            ProjectService.SolutionClosed        += ProjectServiceSolutionClosed;

            ParserService.ParseInformationUpdated += ParserServiceParseInformationUpdated;

            AmbienceService.AmbienceChanged += new EventHandler(AmbienceServiceAmbienceChanged);
            if (ProjectService.OpenSolution != null)
            {
                ProjectServiceSolutionChanged(null, null);
            }
            UpdateToolbars();
        }
コード例 #4
0
ファイル: ClassBrowser.cs プロジェクト: lisiynos/pascalabcnet
		public ClassBrowserPad()
		{
			instance = this;
			classBrowserTreeView.Dock         = DockStyle.Fill;
			// we need to create a copy of the image list because adding image to
			// ClassBrowserIconService.ImageList is not allowed, but the ExtTreeView sometimes
			// does add images to its image list.
			classBrowserTreeView.ImageList    = new ImageList();
			classBrowserTreeView.ImageList.Images.AddRange(ClassBrowserIconService.ImageList.Images.Cast<System.Drawing.Image>().ToArray());
			classBrowserTreeView.AfterSelect += new TreeViewEventHandler(ClassBrowserTreeViewAfterSelect);
			
			contentPanel.Controls.Add(classBrowserTreeView);
			
			searchStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Searchbar");
			searchStrip.Stretch   = true;
			searchStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			contentPanel.Controls.Add(searchStrip);
			
			toolStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ClassBrowser/Toolbar");
			toolStrip.Stretch   = true;
			toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			contentPanel.Controls.Add(toolStrip);
			
			ProjectService.SolutionLoaded += ProjectServiceSolutionChanged;
			ProjectService.ProjectItemAdded += ProjectServiceSolutionChanged;
			ProjectService.ProjectItemRemoved += ProjectServiceSolutionChanged;
			ProjectService.ProjectAdded += ProjectServiceSolutionChanged; // rebuild view when project is added to solution
			ProjectService.SolutionFolderRemoved += ProjectServiceSolutionChanged; // rebuild view when project is removed from solution
			ProjectService.SolutionClosed += ProjectServiceSolutionClosed;
			
			ParserService.ParseInformationUpdated += ParserServiceParseInformationUpdated;
			
			AmbienceService.AmbienceChanged += new EventHandler(AmbienceServiceAmbienceChanged);
			if (ProjectService.OpenSolution != null) {
				ProjectServiceSolutionChanged(null, null);
			}
			UpdateToolbars();
		}