internal static void BuildImportDropDown(ToolStripSpringComboBox importComboBox) { importComboBox.FlatCombo.BeginUpdate(); var currentNodes = importComboBox.Items.OfType<MemberTreeNode>().ToList(); importComboBox.Items.Clear(); if (ASContext.Context.CurrentModel != null && Settings.ShowImportedClasses) { // Remove not needed imports var importModels = ASContext.Context.CurrentModel.Imports.OfType<MemberModel>().ToList(); var existingNodes = currentNodes.Where(n => importModels.Any(m => m.Type == n.Model.Type)); var newNodes = importModels.Where(importModel => !importModel.Type.EndsWith(".*") && !existingNodes.Any(importNode => importNode.Model.Type == importModel.Type)) .Select(importModel => ASContext.Context.ResolveType(importModel.Type, ASContext.Context.CurrentModel)) .Where(classModel => classModel != null && !classModel.IsVoid() && classModel.InFile != null) .Select(classModel => GetClassTreeNode(classModel, false, true)); var importNodes = existingNodes.Concat(newNodes).ToList(); // Apply member sort if (_memberSort != null) importNodes.Sort(_memberSort); importComboBox.Items.AddRange(importNodes.ToArray()); } importComboBox.FlatCombo.EndUpdate(); }
internal static void BuildClassDropDown(ToolStripSpringComboBox classComboBox) { classComboBox.FlatCombo.BeginUpdate(); classComboBox.Items.Clear(); if (ASContext.Context.CurrentModel != null) { var classNodes = new List<MemberTreeNode>(); var classNames = new List<string>(); // Add all the classes from this file foreach (ClassModel classModel in ASContext.Context.CurrentModel.Classes) { MemberTreeNode node = GetClassTreeNode(classModel, false, false); classNodes.Add(node); if (Settings.ShowSuperClasses) { var extendClassModel = classModel.Extends; while (!IsRootType(extendClassModel)) { // Have we already added this class? Multiple classes could extend the same base. if (classNames.Contains(extendClassModel.QualifiedName)) break; classNames.Add(extendClassModel.QualifiedName); classNodes.Add(GetClassTreeNode(extendClassModel, true, false)); extendClassModel = extendClassModel.Extends; } } } // Apply member sort if (_memberSort != null) classNodes.Sort(_memberSort); classComboBox.Items.AddRange(classNodes.ToArray()); } classComboBox.FlatCombo.EndUpdate(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Browser)); this.toolStrip = new System.Windows.Forms.ToolStrip(); this.backButton = new System.Windows.Forms.ToolStripButton(); this.forwardButton = new System.Windows.Forms.ToolStripButton(); this.refreshButton = new System.Windows.Forms.ToolStripButton(); this.addressComboBox = new System.Windows.Forms.ToolStripSpringComboBox(); this.goButton = new System.Windows.Forms.ToolStripButton(); this.webBrowser = new FlashDevelop.Controls.WebBrowserEx(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.backButton, this.forwardButton, this.refreshButton, this.addressComboBox, this.goButton}); this.toolStrip.Location = new System.Drawing.Point(0, 0); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(2, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(620, 25); this.toolStrip.TabIndex = 3; // // backButton // this.backButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.backButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.backButton.Enabled = false; this.backButton.Image = ((System.Drawing.Image)(resources.GetObject("backButton.Image"))); this.backButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.backButton.Name = "backButton"; this.backButton.Size = new System.Drawing.Size(23, 22); this.backButton.Text = "Back"; this.backButton.Click += new System.EventHandler(this.BackButtonClick); // // forwardButton // this.forwardButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.forwardButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.forwardButton.Enabled = false; this.forwardButton.Image = ((System.Drawing.Image)(resources.GetObject("forwardButton.Image"))); this.forwardButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.forwardButton.Name = "forwardButton"; this.forwardButton.Size = new System.Drawing.Size(23, 22); this.forwardButton.Text = "Forward"; this.forwardButton.Click += new System.EventHandler(this.ForwardButtonClick); // // refreshButton // this.refreshButton.Margin = new System.Windows.Forms.Padding(0, 1, 1, 1); this.refreshButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.refreshButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshButton.Image"))); this.refreshButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.refreshButton.Name = "refreshButton"; this.refreshButton.Size = new System.Drawing.Size(23, 22); this.refreshButton.Text = "Refresh"; this.refreshButton.Click += new System.EventHandler(this.RefreshButtonClick); // // addressComboBox // this.addressComboBox.Name = "addressComboBox"; this.addressComboBox.Size = new System.Drawing.Size(450, 21); this.addressComboBox.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.addressComboBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.AddressComboBoxKeyPress); this.addressComboBox.SelectedIndexChanged += new System.EventHandler(this.AddressComboBoxSelectedIndexChanged); // // goButton // this.goButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.goButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.goButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.goButton.Image = ((System.Drawing.Image)(resources.GetObject("goButton.Image"))); this.goButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.goButton.Name = "goButton"; this.goButton.Size = new System.Drawing.Size(23, 22); this.goButton.Text = "Go"; this.goButton.Click += new System.EventHandler(this.BrowseButtonClick); // // webBrowser // this.webBrowser.AllowWebBrowserDrop = true; this.webBrowser.ScriptErrorsSuppressed = true; this.webBrowser.WebBrowserShortcutsEnabled = false; this.webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; this.webBrowser.Location = new System.Drawing.Point(0, 25); this.webBrowser.Name = "webBrowser"; this.webBrowser.Size = new System.Drawing.Size(620, 375); this.webBrowser.TabIndex = 2; this.webBrowser.CanGoForwardChanged += new System.EventHandler(this.WebBrowserPropertyUpdated); this.webBrowser.CanGoBackChanged += new System.EventHandler(this.WebBrowserPropertyUpdated); this.webBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.WebBrowserNavigated); this.webBrowser.DocumentTitleChanged += new System.EventHandler(this.WebBrowserDocumentTitleChanged); this.webBrowser.NewWindow += new System.ComponentModel.CancelEventHandler(this.WebBrowserNewWindow); // // Browser // this.Controls.Add(this.webBrowser); this.Controls.Add(this.toolStrip); this.Name = "Browser"; this.Size = new System.Drawing.Size(620, 400); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Browser)); this.toolStrip = new System.Windows.Forms.ToolStrip(); this.backButton = new System.Windows.Forms.ToolStripButton(); this.forwardButton = new System.Windows.Forms.ToolStripButton(); this.refreshButton = new System.Windows.Forms.ToolStripButton(); this.addressComboBox = new System.Windows.Forms.ToolStripSpringComboBox(); this.goButton = new System.Windows.Forms.ToolStripButton(); this.webBrowser = new FlashDevelop.Controls.WebBrowserEx(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.backButton, this.forwardButton, this.refreshButton, this.addressComboBox, this.goButton }); this.toolStrip.Location = new System.Drawing.Point(0, 0); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(2, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(620, 26); this.toolStrip.TabIndex = 3; // // backButton // this.backButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.backButton.Enabled = false; this.backButton.Image = ((System.Drawing.Image)(resources.GetObject("backButton.Image"))); this.backButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.backButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.backButton.Name = "backButton"; this.backButton.Size = new System.Drawing.Size(23, 21); this.backButton.Text = "Back"; this.backButton.Click += new System.EventHandler(this.BackButtonClick); // // forwardButton // this.forwardButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.forwardButton.Enabled = false; this.forwardButton.Image = ((System.Drawing.Image)(resources.GetObject("forwardButton.Image"))); this.forwardButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.forwardButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.forwardButton.Name = "forwardButton"; this.forwardButton.Size = new System.Drawing.Size(23, 21); this.forwardButton.Text = "Forward"; this.forwardButton.Click += new System.EventHandler(this.ForwardButtonClick); // // refreshButton // this.refreshButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.refreshButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshButton.Image"))); this.refreshButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.refreshButton.Margin = new System.Windows.Forms.Padding(0, 1, 1, 1); this.refreshButton.Name = "refreshButton"; this.refreshButton.Size = new System.Drawing.Size(23, 21); this.refreshButton.Text = "Refresh"; this.refreshButton.Click += new System.EventHandler(this.RefreshButtonClick); // // addressComboBox // this.addressComboBox.Name = "addressComboBox"; this.addressComboBox.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.addressComboBox.Size = new System.Drawing.Size(490, 23); this.addressComboBox.DropDown += new System.EventHandler(this.addressComboBox_DropDown); this.addressComboBox.SelectedIndexChanged += new System.EventHandler(this.AddressComboBoxSelectedIndexChanged); this.addressComboBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.AddressComboBoxKeyPress); // // goButton // this.goButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.goButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.goButton.Image = ((System.Drawing.Image)(resources.GetObject("goButton.Image"))); this.goButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.goButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.goButton.Name = "goButton"; this.goButton.Size = new System.Drawing.Size(23, 21); this.goButton.Text = "Go"; this.goButton.Click += new System.EventHandler(this.BrowseButtonClick); // // webBrowser // this.webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; this.webBrowser.Location = new System.Drawing.Point(0, 26); this.webBrowser.Name = "webBrowser"; this.webBrowser.ScriptErrorsSuppressed = true; this.webBrowser.Size = new System.Drawing.Size(620, 374); this.webBrowser.TabIndex = 2; this.webBrowser.WebBrowserShortcutsEnabled = false; this.webBrowser.CanGoBackChanged += new System.EventHandler(this.WebBrowserPropertyUpdated); this.webBrowser.CanGoForwardChanged += new System.EventHandler(this.WebBrowserPropertyUpdated); this.webBrowser.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser_DocumentCompleted); this.webBrowser.DocumentTitleChanged += new System.EventHandler(this.WebBrowserDocumentTitleChanged); this.webBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.WebBrowserNavigated); this.webBrowser.NewWindow += new System.ComponentModel.CancelEventHandler(this.WebBrowserNewWindow); // // Browser // this.Controls.Add(this.webBrowser); this.Controls.Add(this.toolStrip); this.Name = "Browser"; this.Size = new System.Drawing.Size(620, 400); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.watcher = new System.IO.FileSystemWatcher(); this.modifiedHeader = new System.Windows.Forms.ColumnHeader(); this.typeHeader = new System.Windows.Forms.ColumnHeader(); this.fileView = new System.Windows.Forms.ListViewEx(); this.fileHeader = new System.Windows.Forms.ColumnHeader(); this.sizeHeader = new System.Windows.Forms.ColumnHeader(); this.folderBrowserDialog = new Ookii.Dialogs.VistaFolderBrowserDialog(); this.toolStrip = new PluginCore.Controls.ToolStripEx(); this.selectedPath = new System.Windows.Forms.ToolStripSpringComboBox(); this.syncronizeButton = new System.Windows.Forms.ToolStripButton(); this.browseButton = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.watcher)).BeginInit(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // watcher // this.watcher.EnableRaisingEvents = true; this.watcher.NotifyFilter = ((System.IO.NotifyFilters)((System.IO.NotifyFilters.FileName | System.IO.NotifyFilters.DirectoryName))); this.watcher.SynchronizingObject = this; this.watcher.Renamed += new System.IO.RenamedEventHandler(this.WatcherRenamed); this.watcher.Deleted += new System.IO.FileSystemEventHandler(this.WatcherChanged); this.watcher.Created += new System.IO.FileSystemEventHandler(this.WatcherChanged); this.watcher.Changed += new System.IO.FileSystemEventHandler(this.WatcherChanged); // // modifiedHeader // this.modifiedHeader.Text = "Modified"; this.modifiedHeader.Width = 120; // // typeHeader // this.typeHeader.Text = "Type"; // // fileView // this.fileView.AllowDrop = true; this.fileView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.fileView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.fileHeader, this.sizeHeader, this.typeHeader, this.modifiedHeader}); this.fileView.Dock = System.Windows.Forms.DockStyle.Fill; this.fileView.LabelEdit = true; this.fileView.Name = "fileView"; this.fileView.Size = new System.Drawing.Size(278, 327); this.fileView.TabIndex = 5; this.fileView.FullRowSelect = true; this.fileView.UseCompatibleStateImageBehavior = false; this.fileView.View = System.Windows.Forms.View.Details; this.fileView.ItemActivate += new System.EventHandler(this.FileViewItemActivate); this.fileView.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.FileViewAfterLabelEdit); this.fileView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.FileViewMouseUp); this.fileView.DragDrop += new System.Windows.Forms.DragEventHandler(this.FileViewDragDrop); this.fileView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.FileViewColumnClick); this.fileView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.FileViewKeyUp); this.fileView.BeforeLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.FileViewBeforeLabelEdit); this.fileView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.FileViewDragItems); this.fileView.DragOver += new System.Windows.Forms.DragEventHandler(this.FileViewDragOver); // // fileHeader // this.fileHeader.Text = "Files"; this.fileHeader.Width = 190; // // sizeHeader // this.sizeHeader.Text = "Size"; this.sizeHeader.Width = 55; // // folderBrowserDialog // this.folderBrowserDialog.Description = "Open a folder to list the files in the folder"; this.folderBrowserDialog.RootFolder = System.Environment.SpecialFolder.MyComputer; // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.Dock = System.Windows.Forms.DockStyle.Top; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.selectedPath, this.syncronizeButton, this.browseButton}); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(1, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(278, 26); this.toolStrip.Stretch = true; this.toolStrip.TabIndex = 6; // // selectedPath // this.selectedPath.Name = "selectedPath"; this.selectedPath.Size = new System.Drawing.Size(200, 22); this.selectedPath.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.selectedPath.FlatCombo.SelectedIndexChanged += new System.EventHandler(this.SelectedPathSelectedIndexChanged); this.selectedPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SelectedPathKeyDown); // // syncronizeButton // this.syncronizeButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.syncronizeButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.syncronizeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.syncronizeButton.Name = "syncronizeButton"; this.syncronizeButton.Size = new System.Drawing.Size(23, 22); this.syncronizeButton.Text = "Synchronize"; this.syncronizeButton.Click += new System.EventHandler(this.SynchronizeView); // // browseButton // this.browseButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.browseButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.browseButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.browseButton.Name = "browseButton"; this.browseButton.Size = new System.Drawing.Size(23, 22); this.browseButton.Text = "Browse"; this.browseButton.Click += new System.EventHandler(this.BrowseButtonClick); // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.fileView); this.Controls.Add(this.toolStrip); this.Size = new System.Drawing.Size(280, 352); ((System.ComponentModel.ISupportInitialize)(this.watcher)).EndInit(); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.toolStrip = new PluginCore.Controls.ToolStripEx(); this.toggleButton = new System.Windows.Forms.ToolStripButton(); this.topMostButton = new System.Windows.Forms.ToolStripButton(); this.clearFilterButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); this.viewLabel = new System.Windows.Forms.ToolStripLabel(); this.logComboBox = new System.Windows.Forms.ToolStripComboBoxEx(); this.filterLabel = new System.Windows.Forms.ToolStripLabel(); this.filterComboBox = new System.Windows.Forms.ToolStripSpringComboBox(); this.logTextBox = new System.Windows.Forms.RichTextBox(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toggleButton, this.topMostButton, this.toolStripSeparator, this.viewLabel, this.logComboBox, this.filterLabel, this.filterComboBox, this.clearFilterButton }); this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; this.toolStrip.Location = new System.Drawing.Point(1, 0); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(1, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(683, 30); this.toolStrip.TabIndex = 1; // // toggleButton // this.toggleButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toggleButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toggleButton.Margin = new System.Windows.Forms.Padding(1); this.toggleButton.Name = "toggleButton"; this.toggleButton.Size = new System.Drawing.Size(23, 26); this.toggleButton.Click += new System.EventHandler(this.ToggleButtonClick); // // clearFilterButton // this.clearFilterButton.Enabled = true; this.clearFilterButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.clearFilterButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.clearFilterButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.clearFilterButton.Name = "clearFilterButton"; this.clearFilterButton.Size = new System.Drawing.Size(23, 26); this.clearFilterButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.clearFilterButton.Click += new System.EventHandler(this.ClearFilterButtonClick); // // topMostButton // this.topMostButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.topMostButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.topMostButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.topMostButton.Name = "topMostButton"; this.topMostButton.Size = new System.Drawing.Size(23, 26); this.topMostButton.Click += new System.EventHandler(this.TopMostButtonClick); // // toolStripSeparator // this.toolStripSeparator.Name = "toolStripSeparator"; this.toolStripSeparator.Size = new System.Drawing.Size(6, 28); // // viewLabel // this.viewLabel.Margin = new System.Windows.Forms.Padding(2, 1, 0, 1); this.viewLabel.Name = "viewLabel"; this.viewLabel.Size = new System.Drawing.Size(44, 25); this.viewLabel.Text = "View:"; // // logComboBox // this.logComboBox.Enabled = false; this.logComboBox.Items.AddRange(new Object[] { TextHelper.GetString("Label.FlashLog"), TextHelper.GetString("Label.PolicyLog") }); this.logComboBox.Name = "logComboBox"; this.logComboBox.Size = new System.Drawing.Size(120, 28); this.logComboBox.SelectedIndex = 0; this.logComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.logComboBox.FlatCombo.SelectedIndexChanged += new System.EventHandler(this.LogComboBoxIndexChanged); // // filterLabel // this.filterLabel.Margin = new System.Windows.Forms.Padding(2, 1, 0, 1); this.filterLabel.Name = "filterLabel"; this.filterLabel.Size = new System.Drawing.Size(45, 25); this.filterLabel.Text = "Filter:"; // // filterComboBox // this.filterComboBox.Enabled = true; this.filterComboBox.Name = "filterComboBox"; this.filterComboBox.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.filterComboBox.Size = new System.Drawing.Size(50, 28); this.filterComboBox.TextChanged += new System.EventHandler(this.FilterTextBoxTextChanged); // // logTextBox // this.logTextBox.BackColor = System.Drawing.SystemColors.Window; this.logTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; this.logTextBox.DetectUrls = false; this.logTextBox.Dock = System.Windows.Forms.DockStyle.Fill; this.logTextBox.Font = new System.Drawing.Font("Courier New", 8.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.logTextBox.Location = new System.Drawing.Point(1, 30); this.logTextBox.Name = "logTextBox"; this.logTextBox.ReadOnly = true; this.logTextBox.Size = new System.Drawing.Size(683, 322); this.logTextBox.TabIndex = 0; this.logTextBox.Text = ""; this.logTextBox.WordWrap = false; // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.logTextBox); this.Controls.Add(this.toolStrip); this.Size = new System.Drawing.Size(685, 352); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.listView = new System.Windows.Forms.ListView(); this.columnLine = new System.Windows.Forms.ColumnHeader(); this.columnText = new System.Windows.Forms.ColumnHeader(); this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(); this.removeBookmarksItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip = new PluginCore.Controls.ToolStripEx(); this.searchButton = new System.Windows.Forms.ToolStripButton(); this.searchBox = new System.Windows.Forms.ToolStripSpringComboBox(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.contextMenuStrip.SuspendLayout(); this.toolStrip.SuspendLayout(); this.statusStrip.SuspendLayout(); this.SuspendLayout(); // // listView // this.listView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnLine, this.columnText}); this.listView.LabelWrap = false; this.listView.GridLines = true; this.listView.ShowItemToolTips = true; this.listView.ContextMenuStrip = this.contextMenuStrip; this.listView.Dock = System.Windows.Forms.DockStyle.Fill; this.listView.FullRowSelect = true; this.listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Clickable; this.listView.HideSelection = false; this.listView.Name = "listView"; this.listView.Size = new System.Drawing.Size(298, 324); this.listView.TabIndex = 0; this.listView.UseCompatibleStateImageBehavior = false; this.listView.View = System.Windows.Forms.View.Details; this.listView.DoubleClick += new System.EventHandler(this.ListViewDoubleClick); this.listView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ListViewKeyUp); // // columnLine // this.columnLine.Text = "Line"; this.columnLine.Width = 55; // // columnText // this.columnText.Text = "Text"; this.columnText.Width = 250; // // contextMenuStrip // this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.removeBookmarksItem}); this.contextMenuStrip.Name = "contextMenuStrip"; this.contextMenuStrip.Size = new System.Drawing.Size(176, 26); this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripOpening); // // removeBookmarksItem // this.removeBookmarksItem.Name = "removeBookmarksItem"; this.removeBookmarksItem.Size = new System.Drawing.Size(175, 22); this.removeBookmarksItem.Text = "Remove Bookmarks"; this.removeBookmarksItem.Click += new System.EventHandler(this.RemoveBookmarksItemClick); // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.Dock = System.Windows.Forms.DockStyle.Top; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.searchButton, this.searchBox}); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(1, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(298, 26); this.toolStrip.Stretch = true; this.toolStrip.TabIndex = 1; // // searchButton // this.searchButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.searchButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.searchButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.searchButton.Name = "searchButton"; this.searchButton.Size = new System.Drawing.Size(23, 22); this.searchButton.ToolTipText = "Search And Add Bookmarks"; this.searchButton.Click += new System.EventHandler(this.SearchButtonClick); // // searchBox // this.searchBox.MaxLength = 200; this.searchBox.Name = "searchBox"; this.searchBox.Size = new System.Drawing.Size(200, 22); this.searchBox.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.searchBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.SearchBoxKeyUp); // // statusStrip // this.statusStrip.BackColor = System.Drawing.SystemColors.Info; this.statusStrip.Dock = System.Windows.Forms.DockStyle.Top; this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusLabel}); this.statusStrip.Location = new System.Drawing.Point(0, 25); this.statusStrip.Name = "statusStrip"; this.statusStrip.Size = new System.Drawing.Size(300, 22); this.statusStrip.SizingGrip = false; this.statusStrip.TabIndex = 2; this.statusStrip.Visible = false; // // statusLabel // this.statusLabel.Name = "statusLabel"; this.statusLabel.Size = new System.Drawing.Size(0, 17); this.statusLabel.Padding = new Padding(0, 2, 0, 0); // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.listView); this.Controls.Add(this.statusStrip); this.Controls.Add(this.toolStrip); this.Size = new System.Drawing.Size(300, 350); this.contextMenuStrip.ResumeLayout(false); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.statusStrip.ResumeLayout(false); this.statusStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.listView = new System.Windows.Forms.ListViewEx(); this.columnLine = new System.Windows.Forms.ColumnHeader(); this.columnText = new System.Windows.Forms.ColumnHeader(); this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(); this.removeBookmarksItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip = new PluginCore.Controls.ToolStripEx(); this.searchButton = new System.Windows.Forms.ToolStripButton(); this.searchBox = new System.Windows.Forms.ToolStripSpringComboBox(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.contextMenuStrip.SuspendLayout(); this.toolStrip.SuspendLayout(); this.statusStrip.SuspendLayout(); this.SuspendLayout(); // // listView // this.listView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnLine, this.columnText }); this.listView.LabelWrap = false; this.listView.GridLines = true; this.listView.ShowItemToolTips = true; this.listView.ContextMenuStrip = this.contextMenuStrip; this.listView.Dock = System.Windows.Forms.DockStyle.Fill; this.listView.FullRowSelect = true; this.listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Clickable; this.listView.HideSelection = false; this.listView.Name = "listView"; this.listView.Size = new System.Drawing.Size(298, 324); this.listView.TabIndex = 0; this.listView.UseCompatibleStateImageBehavior = false; this.listView.View = System.Windows.Forms.View.Details; this.listView.DoubleClick += new System.EventHandler(this.ListViewDoubleClick); this.listView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ListViewKeyUp); // // columnLine // this.columnLine.Text = "Line"; this.columnLine.Width = 55; // // columnText // this.columnText.Text = "Text"; this.columnText.Width = 250; // // contextMenuStrip // this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.removeBookmarksItem }); this.contextMenuStrip.Name = "contextMenuStrip"; this.contextMenuStrip.Size = new System.Drawing.Size(176, 26); this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripOpening); // // removeBookmarksItem // this.removeBookmarksItem.Name = "removeBookmarksItem"; this.removeBookmarksItem.Size = new System.Drawing.Size(175, 22); this.removeBookmarksItem.Text = "Remove Bookmarks"; this.removeBookmarksItem.Click += new System.EventHandler(this.RemoveBookmarksItemClick); // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.Dock = System.Windows.Forms.DockStyle.Top; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.searchButton, this.searchBox }); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(1, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(298, 26); this.toolStrip.Stretch = true; this.toolStrip.TabIndex = 1; // // searchButton // this.searchButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.searchButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.searchButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.searchButton.Name = "searchButton"; this.searchButton.Size = new System.Drawing.Size(23, 22); this.searchButton.ToolTipText = "Search And Add Bookmarks"; this.searchButton.Click += new System.EventHandler(this.SearchButtonClick); // // searchBox // this.searchBox.FlatCombo.MaxLength = 200; this.searchBox.Name = "searchBox"; this.searchBox.Size = new System.Drawing.Size(200, 22); this.searchBox.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.searchBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.SearchBoxKeyUp); // // statusStrip // this.statusStrip.BackColor = System.Drawing.SystemColors.Info; this.statusStrip.Dock = System.Windows.Forms.DockStyle.Top; this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusLabel }); this.statusStrip.Location = new System.Drawing.Point(0, 25); this.statusStrip.Name = "statusStrip"; this.statusStrip.Size = new System.Drawing.Size(300, 22); this.statusStrip.SizingGrip = false; this.statusStrip.TabIndex = 2; this.statusStrip.Visible = false; // // statusLabel // this.statusLabel.Name = "statusLabel"; this.statusLabel.Size = new System.Drawing.Size(0, 17); this.statusLabel.Padding = new Padding(0, 2, 0, 0); // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.listView); this.Controls.Add(this.statusStrip); this.Controls.Add(this.toolStrip); this.Size = new System.Drawing.Size(300, 350); this.contextMenuStrip.ResumeLayout(false); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.statusStrip.ResumeLayout(false); this.statusStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { contextMenu = new NavigationBarContextMenu(_settings); importComboBox = new ToolStripSpringComboBox(); classComboBox = new ToolStripSpringComboBox(); memberComboBox = new ToolStripSpringComboBox(); updateTimer = new Timer(); SuspendLayout(); // importComboBox importComboBox.FlatCombo.DrawMode = DrawMode.OwnerDrawFixed; importComboBox.FlatStyle = FlatStyle.System; importComboBox.DropDownStyle = ComboBoxStyle.DropDownList; importComboBox.FlatCombo.MaxDropDownItems = 25; importComboBox.Name = "importComboBox"; importComboBox.FlatCombo.DrawItem += ItemRenderer.ComboBox_DrawItem; importComboBox.FlatCombo.SelectionChangeCommitted += new EventHandler(comboBox_SelectionChangeCommitted); importComboBox.KeyPress += SearchHelper.ComboBox_KeyPress; importComboBox.FlatCombo.DropDownClosed += new EventHandler(comboBox_DropDownClosed); // classComboBox classComboBox.FlatCombo.DrawMode = DrawMode.OwnerDrawFixed; classComboBox.FlatStyle = FlatStyle.System; classComboBox.DropDownStyle = ComboBoxStyle.DropDownList; classComboBox.FlatCombo.MaxDropDownItems = 25; classComboBox.Name = "classComboBox"; classComboBox.FlatCombo.DrawItem += ItemRenderer.ComboBox_DrawItem; classComboBox.FlatCombo.SelectionChangeCommitted += new EventHandler(comboBox_SelectionChangeCommitted); classComboBox.KeyPress += SearchHelper.ComboBox_KeyPress; classComboBox.FlatCombo.DropDownClosed += new EventHandler(comboBox_DropDownClosed); // memberComboBox memberComboBox.FlatCombo.DrawMode = DrawMode.OwnerDrawFixed; memberComboBox.FlatStyle = FlatStyle.System; memberComboBox.DropDownStyle = ComboBoxStyle.DropDownList; memberComboBox.FlatCombo.MaxDropDownItems = 25; memberComboBox.Name = "memberComboBox"; memberComboBox.FlatCombo.DrawItem += ItemRenderer.ComboBox_DrawItem; memberComboBox.FlatCombo.SelectionChangeCommitted += new EventHandler(comboBox_SelectionChangeCommitted); memberComboBox.KeyPress += SearchHelper.ComboBox_KeyPress; memberComboBox.FlatCombo.DropDownClosed += new EventHandler(comboBox_DropDownClosed); // updateTimer updateTimer.Interval = 500; updateTimer.Tick += new EventHandler(updateTimer_Tick); // NavigationBar CanOverflow = false; ContextMenuStrip = contextMenu; Dock = DockStyle.Top; GripStyle = ToolStripGripStyle.Hidden; Items.AddRange(new ToolStripItem[] { importComboBox, classComboBox, memberComboBox }); Name = "NavigationBar"; Padding = new Padding(0, ScaleHelper.Scale(1), 0, ScaleHelper.Scale(1)); Stretch = true; Visible = false; ResumeLayout(false); }
internal static void BuildMemberDropDown(ToolStripSpringComboBox classComboBox, ToolStripSpringComboBox memberComboBox) { memberComboBox.FlatCombo.BeginUpdate(); memberComboBox.Items.Clear(); if (ASContext.Context.CurrentModel != null) { ClassTreeNode classTreeNode = classComboBox.SelectedItem as ClassTreeNode; ClassModel classModel = (classTreeNode != null) ? (ClassModel)classTreeNode.Model : null; MemberList members = (classModel != null) ? classModel.Members : ASContext.Context.CurrentModel.Members; var memberNodes = members.OfType<MemberModel>() .Select(m => GetMemberTreeNode(m, null)) .Where(mn => mn != null); // Add inherited members if applicable if (Settings.ShowInheritedMembers && classModel != null) memberNodes = memberNodes.Concat(GetInheritedMembers(classModel.Extends)); // Apply member sort if (_memberSort != null) memberNodes = memberNodes.OrderBy(n => n, _memberSort); memberComboBox.Items.AddRange(memberNodes.ToArray()); } memberComboBox.FlatCombo.EndUpdate(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.watcher = new System.IO.FileSystemWatcher(); this.modifiedHeader = new System.Windows.Forms.ColumnHeader(); this.typeHeader = new System.Windows.Forms.ColumnHeader(); this.fileView = new System.Windows.Forms.ListView(); this.fileHeader = new System.Windows.Forms.ColumnHeader(); this.sizeHeader = new System.Windows.Forms.ColumnHeader(); this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); this.toolStrip = new System.Windows.Forms.ToolStrip(); this.selectedPath = new System.Windows.Forms.ToolStripSpringComboBox(); this.syncronizeButton = new System.Windows.Forms.ToolStripButton(); this.browseButton = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.watcher)).BeginInit(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // watcher // this.watcher.EnableRaisingEvents = true; this.watcher.NotifyFilter = ((System.IO.NotifyFilters)((System.IO.NotifyFilters.FileName | System.IO.NotifyFilters.DirectoryName))); this.watcher.SynchronizingObject = this; this.watcher.Renamed += new System.IO.RenamedEventHandler(this.WatcherRenamed); this.watcher.Deleted += new System.IO.FileSystemEventHandler(this.WatcherChanged); this.watcher.Created += new System.IO.FileSystemEventHandler(this.WatcherChanged); this.watcher.Changed += new System.IO.FileSystemEventHandler(this.WatcherChanged); // // modifiedHeader // this.modifiedHeader.Text = "Modified"; this.modifiedHeader.Width = 120; // // typeHeader // this.typeHeader.Text = "Type"; // // fileView // this.fileView.AllowDrop = true; this.fileView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.fileView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.fileHeader, this.sizeHeader, this.typeHeader, this.modifiedHeader }); this.fileView.Dock = System.Windows.Forms.DockStyle.Fill; this.fileView.LabelEdit = true; this.fileView.Name = "fileView"; this.fileView.Size = new System.Drawing.Size(278, 327); this.fileView.TabIndex = 5; this.fileView.UseCompatibleStateImageBehavior = false; this.fileView.View = System.Windows.Forms.View.Details; this.fileView.ItemActivate += new System.EventHandler(this.FileViewItemActivate); this.fileView.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.FileViewAfterLabelEdit); this.fileView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.FileViewMouseUp); this.fileView.DragDrop += new System.Windows.Forms.DragEventHandler(this.FileViewDragDrop); this.fileView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.FileViewColumnClick); this.fileView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.FileViewKeyUp); this.fileView.BeforeLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.FileViewBeforeLabelEdit); this.fileView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.FileViewDragItems); this.fileView.DragOver += new System.Windows.Forms.DragEventHandler(this.FileViewDragOver); // // fileHeader // this.fileHeader.Text = "Files"; this.fileHeader.Width = 190; // // sizeHeader // this.sizeHeader.Text = "Size"; this.sizeHeader.Width = 55; // // folderBrowserDialog // this.folderBrowserDialog.Description = "Open a folder to list the files in the folder"; this.folderBrowserDialog.RootFolder = System.Environment.SpecialFolder.MyComputer; // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.Dock = System.Windows.Forms.DockStyle.Top; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.selectedPath, this.syncronizeButton, this.browseButton }); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(1, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(278, 26); this.toolStrip.Stretch = true; this.toolStrip.TabIndex = 6; // // selectedPath // this.selectedPath.Name = "selectedPath"; this.selectedPath.Size = new System.Drawing.Size(200, 22); this.selectedPath.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.selectedPath.SelectedIndexChanged += new System.EventHandler(this.SelectedPathSelectedIndexChanged); this.selectedPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SelectedPathKeyDown); // // syncronizeButton // this.syncronizeButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.syncronizeButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.syncronizeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.syncronizeButton.Name = "syncronizeButton"; this.syncronizeButton.Size = new System.Drawing.Size(23, 22); this.syncronizeButton.Text = "Synchronize"; this.syncronizeButton.Click += new System.EventHandler(this.SynchronizeView); // // browseButton // this.browseButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.browseButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.browseButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.browseButton.Name = "browseButton"; this.browseButton.Size = new System.Drawing.Size(23, 22); this.browseButton.Text = "Browse"; this.browseButton.Click += new System.EventHandler(this.BrowseButtonClick); // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.fileView); this.Controls.Add(this.toolStrip); this.Size = new System.Drawing.Size(280, 352); ((System.ComponentModel.ISupportInitialize)(this.watcher)).EndInit(); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }