- Timestamp:
- 12/21/10 12:04:19 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.DebugEngine/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DebugEngine/3.3/ExecutionStackView.cs
r5114 r5146 81 81 treeView.ImageList.Images.Add(VS2008ImageLibrary.Method); 82 82 treeView.ImageList.Images.Add(VS2008ImageLibrary.Module); 83 treeView.ImageList.Images.Add(VS2008ImageLibrary.BreakpointActive); 83 84 int totalNodes = AddStackOperations(treeView.Nodes, ((IEnumerable<IOperation>)Content).Reverse()); 84 85 if (treeView.Nodes.Count > 0) … … 111 112 Utils.TypeName(atom.Operator), Environment.NewLine, 112 113 Utils.Wrap(atom.Operator.Description ?? atom.Operator.ItemDescription, 60)); 113 node.ImageIndex = 0; 114 node.SelectedImageIndex = 0; 115 if (atom.Operator.Breakpoint) 114 if (atom.Operator.Breakpoint) { 116 115 node.ForeColor = Color.Red; 116 node.ImageIndex = 2; 117 node.SelectedImageIndex = 2; 118 } else { 119 node.ImageIndex = 0; 120 node.SelectedImageIndex = 0; 121 } 117 122 count++; 118 123 } else if (op is OperationCollection) { -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContent.cs
r5114 r5146 20 20 #endregion 21 21 22 using System.Drawing; 22 23 using HeuristicLab.Common; 24 using HeuristicLab.Common.Resources; 23 25 using HeuristicLab.Core; 24 26 … … 31 33 public ExecutionContext ExecutionContext { get; private set; } 32 34 public string Name { get; private set; } 35 public Image Icon { get; private set; } 33 36 34 37 public OperationContent(IOperation operation) { … … 39 42 if (AtomicOperation != null) { 40 43 Name = Utils.Name(AtomicOperation); 44 if (AtomicOperation.Operator != null && AtomicOperation.Operator.Breakpoint) { 45 Icon = VS2008ImageLibrary.BreakpointActive; 46 } else { 47 Icon = VS2008ImageLibrary.Method; 48 } 41 49 } else if (Collection != null) { 42 50 Name = string.Format("{0} Operations", Collection.Count); 51 Icon = VS2008ImageLibrary.Module; 43 52 } else { 44 53 Name = ""; 54 Icon = VS2008ImageLibrary.Nothing; 45 55 } 46 56 } -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContentView.Designer.cs
r5116 r5146 58 58 this.nameTextBox = new System.Windows.Forms.TextBox(); 59 59 this.parametersImageList = new System.Windows.Forms.ImageList(this.components); 60 this.iconBox = new System.Windows.Forms.PictureBox(); 60 61 this.groupBox.SuspendLayout(); 61 62 this.splitContainer1.Panel1.SuspendLayout(); … … 65 66 this.executionContextConextMenu.SuspendLayout(); 66 67 this.scopeGroupBox.SuspendLayout(); 68 ((System.ComponentModel.ISupportInitialize)(this.iconBox)).BeginInit(); 67 69 this.SuspendLayout(); 68 70 // 69 71 // groupBox 70 72 // 73 this.groupBox.Controls.Add(this.iconBox); 71 74 this.groupBox.Controls.Add(this.splitContainer1); 72 75 this.groupBox.Controls.Add(this.nameTextBox); … … 187 190 | System.Windows.Forms.AnchorStyles.Right))); 188 191 this.nameTextBox.Cursor = System.Windows.Forms.Cursors.Default; 189 this.nameTextBox.Location = new System.Drawing.Point( 6, 19);192 this.nameTextBox.Location = new System.Drawing.Point(32, 19); 190 193 this.nameTextBox.Name = "nameTextBox"; 191 194 this.nameTextBox.ReadOnly = true; 192 this.nameTextBox.Size = new System.Drawing.Size(5 51, 20);195 this.nameTextBox.Size = new System.Drawing.Size(525, 20); 193 196 this.nameTextBox.TabIndex = 3; 194 197 this.nameTextBox.DoubleClick += new System.EventHandler(this.nameTextBox_DoubleClick); … … 199 202 this.parametersImageList.ImageSize = new System.Drawing.Size(16, 16); 200 203 this.parametersImageList.TransparentColor = System.Drawing.Color.Transparent; 204 // 205 // iconBox 206 // 207 this.iconBox.Location = new System.Drawing.Point(6, 19); 208 this.iconBox.Name = "iconBox"; 209 this.iconBox.Size = new System.Drawing.Size(20, 20); 210 this.iconBox.TabIndex = 5; 211 this.iconBox.TabStop = false; 201 212 // 202 213 // OperationContentView … … 215 226 this.executionContextConextMenu.ResumeLayout(false); 216 227 this.scopeGroupBox.ResumeLayout(false); 228 ((System.ComponentModel.ISupportInitialize)(this.iconBox)).EndInit(); 217 229 this.ResumeLayout(false); 218 230 … … 233 245 private System.Windows.Forms.ContextMenuStrip executionContextConextMenu; 234 246 private System.Windows.Forms.ToolStripMenuItem showValueToolStripMenuItem; 247 private System.Windows.Forms.PictureBox iconBox; 235 248 } 236 249 } -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContentView.cs
r5124 r5146 50 50 scopeTreeView.Nodes.Clear(); 51 51 executionContextTreeView.Nodes.Clear(); 52 iconBox.Image = null; 52 53 } else { 53 54 nameTextBox.Text = Content.Name; 54 55 UpdateScopeTree(); 55 56 UpdateExecutionContext(); 57 iconBox.Image = Content.Icon; 56 58 } 57 59 } -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperatorTraceView.cs
r5117 r5146 21 21 22 22 using System; 23 using System.Drawing; 23 24 using System.Windows.Forms; 24 25 using HeuristicLab.Collections; … … 77 78 listView.SmallImageList.Images.Add(VS2008ImageLibrary.Method); 78 79 listView.SmallImageList.Images.Add(VS2008ImageLibrary.Module); 80 listView.SmallImageList.Images.Add(VS2008ImageLibrary.BreakpointActive); 79 81 foreach (var item in Content) { 80 82 var viewItem = listView.Items.Add(item.Name ?? item.ItemName); … … 83 85 Utils.Wrap(item.Description, 60)); 84 86 viewItem.Tag = item; 85 viewItem.ImageIndex = item is CombinedOperator ? 1 : 0; 87 if (item.Breakpoint) { 88 viewItem.ForeColor = Color.Red; 89 viewItem.ImageIndex = 2; 90 } else { 91 viewItem.ImageIndex = item is CombinedOperator ? 1 : 0; 92 } 86 93 } 87 94 if (listView.Items.Count > 0) {
Note: See TracChangeset
for help on using the changeset viewer.