Changeset 12393 for trunk/sources/HeuristicLab.Optimizer
- Timestamp:
- 05/19/15 16:26:42 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimizer/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs
r12305 r12393 51 51 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 52 52 this.searchLabel = new System.Windows.Forms.Label(); 53 this.expandAllButton = new System.Windows.Forms.Button();54 this.collapseAllButton = new System.Windows.Forms.Button();55 53 this.searchTextBox = new System.Windows.Forms.TextBox(); 56 54 this.clearSearchButton = new System.Windows.Forms.Button(); … … 59 57 this.typesTreeView = new System.Windows.Forms.TreeView(); 60 58 this.imageList = new System.Windows.Forms.ImageList(this.components); 59 this.descriptionSplitContainer = new System.Windows.Forms.SplitContainer(); 61 60 this.itemGroupBox = new System.Windows.Forms.GroupBox(); 62 61 this.itemDescriptionTextBox = new System.Windows.Forms.TextBox(); … … 70 69 this.collapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 71 70 this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 72 this.descriptionSplitContainer = new System.Windows.Forms.SplitContainer();73 71 this.searchTextBox.SuspendLayout(); 74 72 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); … … 77 75 this.splitContainer.SuspendLayout(); 78 76 this.availableItemsGroupBox.SuspendLayout(); 79 this.itemGroupBox.SuspendLayout();80 this.pluginDescriptionGroupBox.SuspendLayout();81 this.contextMenuStrip.SuspendLayout();82 77 ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).BeginInit(); 83 78 this.descriptionSplitContainer.Panel1.SuspendLayout(); 84 79 this.descriptionSplitContainer.Panel2.SuspendLayout(); 85 80 this.descriptionSplitContainer.SuspendLayout(); 81 this.itemGroupBox.SuspendLayout(); 82 this.pluginDescriptionGroupBox.SuspendLayout(); 83 this.contextMenuStrip.SuspendLayout(); 86 84 this.SuspendLayout(); 87 85 // … … 118 116 this.searchLabel.TabIndex = 0; 119 117 this.toolTip.SetToolTip(this.searchLabel, "Enter string to search for items"); 120 //121 // expandAllButton122 //123 this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));124 this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn;125 this.expandAllButton.Location = new System.Drawing.Point(12, 587);126 this.expandAllButton.Name = "expandAllButton";127 this.expandAllButton.Size = new System.Drawing.Size(23, 23);128 this.expandAllButton.TabIndex = 0;129 this.expandAllButton.TabStop = false;130 this.toolTip.SetToolTip(this.expandAllButton, "Expand all nodes.");131 this.expandAllButton.UseVisualStyleBackColor = true;132 this.expandAllButton.Click += new System.EventHandler(this.expandAllButton_Click);133 //134 // collapseAllButton135 //136 this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));137 this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut;138 this.collapseAllButton.Location = new System.Drawing.Point(41, 587);139 this.collapseAllButton.Name = "collapseAllButton";140 this.collapseAllButton.Size = new System.Drawing.Size(23, 23);141 this.collapseAllButton.TabIndex = 0;142 this.collapseAllButton.TabStop = false;143 this.toolTip.SetToolTip(this.collapseAllButton, "Collapse all nodes.");144 this.collapseAllButton.UseVisualStyleBackColor = true;145 this.collapseAllButton.Click += new System.EventHandler(this.collapseAllButton_Click);146 118 // 147 119 // searchTextBox … … 240 212 this.imageList.TransparentColor = System.Drawing.Color.Transparent; 241 213 // 214 // descriptionSplitContainer 215 // 216 this.descriptionSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; 217 this.descriptionSplitContainer.Location = new System.Drawing.Point(0, 0); 218 this.descriptionSplitContainer.Name = "descriptionSplitContainer"; 219 this.descriptionSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 220 // 221 // descriptionSplitContainer.Panel1 222 // 223 this.descriptionSplitContainer.Panel1.Controls.Add(this.itemGroupBox); 224 // 225 // descriptionSplitContainer.Panel2 226 // 227 this.descriptionSplitContainer.Panel2.Controls.Add(this.pluginDescriptionGroupBox); 228 this.descriptionSplitContainer.Size = new System.Drawing.Size(600, 192); 229 this.descriptionSplitContainer.SplitterDistance = 81; 230 this.descriptionSplitContainer.TabIndex = 1; 231 this.descriptionSplitContainer.TabStop = false; 232 // 242 233 // itemGroupBox 243 234 // … … 353 344 this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click); 354 345 // 355 // descriptionSplitContainer356 //357 this.descriptionSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;358 this.descriptionSplitContainer.Location = new System.Drawing.Point(0, 0);359 this.descriptionSplitContainer.Name = "descriptionSplitContainer";360 this.descriptionSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;361 //362 // descriptionSplitContainer.Panel1363 //364 this.descriptionSplitContainer.Panel1.Controls.Add(this.itemGroupBox);365 //366 // descriptionSplitContainer.Panel2367 //368 this.descriptionSplitContainer.Panel2.Controls.Add(this.pluginDescriptionGroupBox);369 this.descriptionSplitContainer.Size = new System.Drawing.Size(600, 192);370 this.descriptionSplitContainer.SplitterDistance = 81;371 this.descriptionSplitContainer.TabIndex = 1;372 this.descriptionSplitContainer.TabStop = false;373 //374 346 // NewItemDialog 375 347 // … … 381 353 this.Controls.Add(this.cancelButton); 382 354 this.Controls.Add(this.okButton); 383 this.Controls.Add(this.expandAllButton);384 this.Controls.Add(this.collapseAllButton);385 355 this.MaximizeBox = false; 386 356 this.MinimizeBox = false; … … 400 370 this.availableItemsGroupBox.ResumeLayout(false); 401 371 this.availableItemsGroupBox.PerformLayout(); 372 this.descriptionSplitContainer.Panel1.ResumeLayout(false); 373 this.descriptionSplitContainer.Panel2.ResumeLayout(false); 374 ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).EndInit(); 375 this.descriptionSplitContainer.ResumeLayout(false); 402 376 this.itemGroupBox.ResumeLayout(false); 403 377 this.itemGroupBox.PerformLayout(); … … 405 379 this.pluginDescriptionGroupBox.PerformLayout(); 406 380 this.contextMenuStrip.ResumeLayout(false); 407 this.descriptionSplitContainer.Panel1.ResumeLayout(false);408 this.descriptionSplitContainer.Panel2.ResumeLayout(false);409 ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).EndInit();410 this.descriptionSplitContainer.ResumeLayout(false);411 381 this.ResumeLayout(false); 412 382 … … 424 394 private System.Windows.Forms.TreeView typesTreeView; 425 395 private System.Windows.Forms.ImageList imageList; 426 private System.Windows.Forms.Button expandAllButton;427 private System.Windows.Forms.Button collapseAllButton;428 396 private System.Windows.Forms.GroupBox availableItemsGroupBox; 429 397 private System.Windows.Forms.GroupBox pluginDescriptionGroupBox; -
trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.cs
r12305 r12393 336 336 } 337 337 338 private void expandAllButton_Click(object sender, EventArgs e) {339 typesTreeView.ExpandAll();340 }341 private void collapseAllButton_Click(object sender, EventArgs e) {342 typesTreeView.CollapseAll();343 }344 345 338 private TreeNode toolStripMenuNode = null; 346 339 private void typesTreeView_MouseDown(object sender, MouseEventArgs e) { … … 398 391 var selectedNode = typesTreeView.SelectedNode; 399 392 400 if (selectedNode == null) { // nothing selected => select first or last393 if (selectedNode == null) { // nothing selected => select first 401 394 if (e.KeyCode == Keys.Down) typesTreeView.SelectedNode = FirstVisibleNode; 402 if (e.KeyCode == Keys.Up) typesTreeView.SelectedNode = LastVisibleNode;403 395 } else { 404 if (e.KeyCode == Keys.Down )405 typesTreeView.SelectedNode = selectedNode.NextVisibleNode ?? FirstVisibleNode; // select next or cycle to first406 if (e.KeyCode == Keys.Up )407 typesTreeView.SelectedNode = selectedNode.PrevVisibleNode ?? LastVisibleNode; // select prev or cycle to last396 if (e.KeyCode == Keys.Down && selectedNode.NextVisibleNode != null) 397 typesTreeView.SelectedNode = selectedNode.NextVisibleNode; 398 if (e.KeyCode == Keys.Up && selectedNode.PrevVisibleNode != null) 399 typesTreeView.SelectedNode = selectedNode.PrevVisibleNode; 408 400 } 409 401 e.Handled = true;
Note: See TracChangeset
for help on using the changeset viewer.