Changeset 12205 for branches/NewItemDialog
- Timestamp:
- 03/16/15 15:02:22 (10 years ago)
- Location:
- branches/NewItemDialog/HeuristicLab.Optimizer/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs
r12203 r12205 75 75 this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; 76 76 this.okButton.Enabled = false; 77 this.okButton.Location = new System.Drawing.Point(456, 409);77 this.okButton.Location = new System.Drawing.Point(456, 502); 78 78 this.okButton.Name = "okButton"; 79 79 this.okButton.Size = new System.Drawing.Size(75, 23); … … 87 87 this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 88 88 this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 89 this.cancelButton.Location = new System.Drawing.Point(537, 409);89 this.cancelButton.Location = new System.Drawing.Point(537, 502); 90 90 this.cancelButton.Name = "cancelButton"; 91 91 this.cancelButton.Size = new System.Drawing.Size(75, 23); … … 120 120 // 121 121 this.splitContainer.Panel2.Controls.Add(this.descriptionGroupBox); 122 this.splitContainer.Size = new System.Drawing.Size(600, 391);123 this.splitContainer.SplitterDistance = 258;122 this.splitContainer.Size = new System.Drawing.Size(600, 484); 123 this.splitContainer.SplitterDistance = 373; 124 124 this.splitContainer.TabIndex = 0; 125 125 this.splitContainer.TabStop = false; … … 134 134 this.availableItemsGroupBox.Name = "availableItemsGroupBox"; 135 135 this.availableItemsGroupBox.Padding = new System.Windows.Forms.Padding(3, 15, 3, 3); 136 this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 258);136 this.availableItemsGroupBox.Size = new System.Drawing.Size(600, 373); 137 137 this.availableItemsGroupBox.TabIndex = 5; 138 138 this.availableItemsGroupBox.TabStop = false; … … 162 162 this.typesTreeView.SelectedImageIndex = 0; 163 163 this.typesTreeView.ShowNodeToolTips = true; 164 this.typesTreeView.Size = new System.Drawing.Size(588, 211);164 this.typesTreeView.Size = new System.Drawing.Size(588, 326); 165 165 this.typesTreeView.TabIndex = 2; 166 166 this.typesTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.itemsTreeView_AfterSelect); … … 182 182 this.descriptionGroupBox.Location = new System.Drawing.Point(0, 0); 183 183 this.descriptionGroupBox.Name = "descriptionGroupBox"; 184 this.descriptionGroupBox.Size = new System.Drawing.Size(600, 1 29);184 this.descriptionGroupBox.Size = new System.Drawing.Size(600, 107); 185 185 this.descriptionGroupBox.TabIndex = 1; 186 186 this.descriptionGroupBox.TabStop = false; … … 219 219 this.descriptionTextBox.ReadOnly = true; 220 220 this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 221 this.descriptionTextBox.Size = new System.Drawing.Size(588, 77);221 this.descriptionTextBox.Size = new System.Drawing.Size(588, 55); 222 222 this.descriptionTextBox.TabIndex = 0; 223 223 this.descriptionTextBox.TabStop = false; … … 227 227 this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 228 228 this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn; 229 this.expandAllButton.Location = new System.Drawing.Point(12, 409);229 this.expandAllButton.Location = new System.Drawing.Point(12, 502); 230 230 this.expandAllButton.Name = "expandAllButton"; 231 231 this.expandAllButton.Size = new System.Drawing.Size(23, 23); … … 239 239 this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 240 240 this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut; 241 this.collapseAllButton.Location = new System.Drawing.Point(41, 409);241 this.collapseAllButton.Location = new System.Drawing.Point(41, 502); 242 242 this.collapseAllButton.Name = "collapseAllButton"; 243 243 this.collapseAllButton.Size = new System.Drawing.Size(23, 23); … … 252 252 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 253 253 this.CancelButton = this.cancelButton; 254 this.ClientSize = new System.Drawing.Size(624, 444);254 this.ClientSize = new System.Drawing.Size(624, 537); 255 255 this.Controls.Add(this.splitContainer); 256 256 this.Controls.Add(this.cancelButton); -
branches/NewItemDialog/HeuristicLab.Optimizer/3.3/NewItemDialog.cs
r12203 r12205 70 70 imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Class); // default icon 71 71 imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Namespace); // plugins 72 imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Interface); // interfacesitemsListView.SmallImageList = new ImageList();73 imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Template); // generic types74 72 75 73 foreach (var category in categories) { … … 82 80 foreach (var creatable in category) { 83 81 string name = ItemAttribute.GetName(creatable); 84 string version = ItemAttribute.GetVersion(creatable).ToString();85 string description = ItemAttribute.GetDescription(creatable);86 82 87 83 var itemNode = new TreeNode(name) { … … 89 85 Tag = creatable 90 86 }; 87 categoryNode.Nodes.Add(itemNode); 88 var image = ItemAttribute.GetImage(creatable); 89 if (image != null) { 90 imageList.Images.Add(image); 91 itemNode.ImageIndex = imageList.Images.Count - 1; 92 } 91 93 itemNode.SelectedImageIndex = itemNode.ImageIndex; 92 categoryNode.Nodes.Add(itemNode);93 94 /*95 ListViewItem item = new ListViewItem(new string[] { name, version, description }, group);96 item.ImageIndex = 0;97 Image image = ItemAttribute.GetImage(creatable);98 if (image != null) {99 itemsListView.SmallImageList.Images.Add(image);100 item.ImageIndex = itemsListView.SmallImageList.Images.Count - 1;101 }102 item.Tag = creatable;103 itemsListView.Items.Add(item);*/104 94 } 105 95 if (categoryNode.Nodes.Count > 0)
Note: See TracChangeset
for help on using the changeset viewer.