Changeset 5116
- Timestamp:
- 12/16/10 12:19:54 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.DebugEngine/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DebugEngine/3.3/ExecutionStackView.Designer.cs
r5114 r5116 47 47 this.components = new System.ComponentModel.Container(); 48 48 this.treeView = new System.Windows.Forms.TreeView(); 49 this.imageList = new System.Windows.Forms.ImageList(this.components); 49 50 this.groupBox = new System.Windows.Forms.GroupBox(); 50 this.imageList = new System.Windows.Forms.ImageList(this.components);51 51 this.groupBox.SuspendLayout(); 52 52 this.SuspendLayout(); … … 54 54 // treeView 55 55 // 56 this.treeView.Dock = System.Windows.Forms.DockStyle.Fill; 56 this.treeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 57 | System.Windows.Forms.AnchorStyles.Left) 58 | System.Windows.Forms.AnchorStyles.Right))); 57 59 this.treeView.ImageIndex = 0; 58 60 this.treeView.ImageList = this.imageList; 59 this.treeView.Location = new System.Drawing.Point( 3, 16);61 this.treeView.Location = new System.Drawing.Point(6, 19); 60 62 this.treeView.Name = "treeView"; 61 63 this.treeView.SelectedImageIndex = 0; 62 64 this.treeView.ShowNodeToolTips = true; 63 this.treeView.Size = new System.Drawing.Size( 303, 261);65 this.treeView.Size = new System.Drawing.Size(297, 255); 64 66 this.treeView.TabIndex = 0; 65 67 this.treeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView_NodeMouseDoubleClick); 68 // 69 // imageList 70 // 71 this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 72 this.imageList.ImageSize = new System.Drawing.Size(16, 16); 73 this.imageList.TransparentColor = System.Drawing.Color.Transparent; 66 74 // 67 75 // groupBox … … 75 83 this.groupBox.TabStop = false; 76 84 this.groupBox.Text = "Execution Stack"; 77 //78 // imageList79 //80 this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;81 this.imageList.ImageSize = new System.Drawing.Size(16, 16);82 this.imageList.TransparentColor = System.Drawing.Color.Transparent;83 85 // 84 86 // ExecutionStackView -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContentView.Designer.cs
r5114 r5116 50 50 this.executionContextGroupBox = new System.Windows.Forms.GroupBox(); 51 51 this.executionContextTreeView = new System.Windows.Forms.TreeView(); 52 this.executionContextConextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); 53 this.showValueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52 54 this.executionContextImageList = new System.Windows.Forms.ImageList(this.components); 53 55 this.scopeGroupBox = new System.Windows.Forms.GroupBox(); … … 55 57 this.scopeImageList = new System.Windows.Forms.ImageList(this.components); 56 58 this.nameTextBox = new System.Windows.Forms.TextBox(); 57 this.contextLabel = new System.Windows.Forms.Label();58 this.atomicLabel = new System.Windows.Forms.Label();59 this.collectionLabel = new System.Windows.Forms.Label();60 59 this.parametersImageList = new System.Windows.Forms.ImageList(this.components); 61 this.executionContextConextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);62 this.showValueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();63 60 this.groupBox.SuspendLayout(); 64 61 this.splitContainer1.Panel1.SuspendLayout(); … … 66 63 this.splitContainer1.SuspendLayout(); 67 64 this.executionContextGroupBox.SuspendLayout(); 65 this.executionContextConextMenu.SuspendLayout(); 68 66 this.scopeGroupBox.SuspendLayout(); 69 this.executionContextConextMenu.SuspendLayout();70 67 this.SuspendLayout(); 71 68 // … … 74 71 this.groupBox.Controls.Add(this.splitContainer1); 75 72 this.groupBox.Controls.Add(this.nameTextBox); 76 this.groupBox.Controls.Add(this.contextLabel);77 this.groupBox.Controls.Add(this.atomicLabel);78 this.groupBox.Controls.Add(this.collectionLabel);79 73 this.groupBox.Dock = System.Windows.Forms.DockStyle.Fill; 80 74 this.groupBox.Location = new System.Drawing.Point(0, 0); … … 117 111 // executionContextTreeView 118 112 // 113 this.executionContextTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 114 | System.Windows.Forms.AnchorStyles.Left) 115 | System.Windows.Forms.AnchorStyles.Right))); 119 116 this.executionContextTreeView.ContextMenuStrip = this.executionContextConextMenu; 120 this.executionContextTreeView.Dock = System.Windows.Forms.DockStyle.Fill;121 117 this.executionContextTreeView.ImageIndex = 0; 122 118 this.executionContextTreeView.ImageList = this.executionContextImageList; 123 this.executionContextTreeView.Location = new System.Drawing.Point( 3, 16);119 this.executionContextTreeView.Location = new System.Drawing.Point(6, 19); 124 120 this.executionContextTreeView.Name = "executionContextTreeView"; 125 121 this.executionContextTreeView.SelectedImageIndex = 0; 126 122 this.executionContextTreeView.ShowNodeToolTips = true; 127 this.executionContextTreeView.Size = new System.Drawing.Size(23 6, 342);123 this.executionContextTreeView.Size = new System.Drawing.Size(230, 336); 128 124 this.executionContextTreeView.TabIndex = 0; 129 125 this.executionContextTreeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.executionContextTreeView_NodeMouseClick); 130 126 this.executionContextTreeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.executionContextTreeView_NodeMouseDoubleClick); 127 this.executionContextTreeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.executionContextTreeView_MouseDown); 128 // 129 // executionContextConextMenu 130 // 131 this.executionContextConextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 132 this.showValueToolStripMenuItem}); 133 this.executionContextConextMenu.Name = "executionContextConextMenu"; 134 this.executionContextConextMenu.Size = new System.Drawing.Size(173, 26); 135 this.executionContextConextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.executionContextConextMenu_Opening); 136 // 137 // showValueToolStripMenuItem 138 // 139 this.showValueToolStripMenuItem.Name = "showValueToolStripMenuItem"; 140 this.showValueToolStripMenuItem.Size = new System.Drawing.Size(172, 22); 141 this.showValueToolStripMenuItem.Text = "Show Actual Value"; 142 this.showValueToolStripMenuItem.ToolTipText = "Try to obtain the parameter\'s actual value in the current execution context and o" + 143 "pen it in a new view."; 144 this.showValueToolStripMenuItem.Click += new System.EventHandler(this.ShowValue_Click); 131 145 // 132 146 // executionContextImageList … … 149 163 // scopeTreeView 150 164 // 151 this.scopeTreeView.Dock = System.Windows.Forms.DockStyle.Fill; 165 this.scopeTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 166 | System.Windows.Forms.AnchorStyles.Left) 167 | System.Windows.Forms.AnchorStyles.Right))); 152 168 this.scopeTreeView.ImageIndex = 0; 153 169 this.scopeTreeView.ImageList = this.scopeImageList; 154 this.scopeTreeView.Location = new System.Drawing.Point( 3, 16);170 this.scopeTreeView.Location = new System.Drawing.Point(6, 19); 155 171 this.scopeTreeView.Name = "scopeTreeView"; 156 172 this.scopeTreeView.SelectedImageIndex = 0; 157 173 this.scopeTreeView.ShowNodeToolTips = true; 158 this.scopeTreeView.Size = new System.Drawing.Size(29 9, 342);174 this.scopeTreeView.Size = new System.Drawing.Size(293, 336); 159 175 this.scopeTreeView.TabIndex = 0; 160 176 this.scopeTreeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.scopeTreeView_NodeMouseDoubleClick); … … 174 190 this.nameTextBox.Name = "nameTextBox"; 175 191 this.nameTextBox.ReadOnly = true; 176 this.nameTextBox.Size = new System.Drawing.Size( 395, 20);192 this.nameTextBox.Size = new System.Drawing.Size(551, 20); 177 193 this.nameTextBox.TabIndex = 3; 178 194 this.nameTextBox.DoubleClick += new System.EventHandler(this.nameTextBox_DoubleClick); 179 //180 // contextLabel181 //182 this.contextLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));183 this.contextLabel.AutoSize = true;184 this.contextLabel.ForeColor = System.Drawing.SystemColors.ControlDark;185 this.contextLabel.Location = new System.Drawing.Point(407, 22);186 this.contextLabel.Name = "contextLabel";187 this.contextLabel.Size = new System.Drawing.Size(43, 13);188 this.contextLabel.TabIndex = 2;189 this.contextLabel.Text = "Context";190 //191 // atomicLabel192 //193 this.atomicLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));194 this.atomicLabel.AutoSize = true;195 this.atomicLabel.ForeColor = System.Drawing.SystemColors.ControlDark;196 this.atomicLabel.Location = new System.Drawing.Point(456, 22);197 this.atomicLabel.Name = "atomicLabel";198 this.atomicLabel.Size = new System.Drawing.Size(39, 13);199 this.atomicLabel.TabIndex = 1;200 this.atomicLabel.Text = "Atomic";201 //202 // collectionLabel203 //204 this.collectionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));205 this.collectionLabel.AutoSize = true;206 this.collectionLabel.ForeColor = System.Drawing.SystemColors.ControlDark;207 this.collectionLabel.Location = new System.Drawing.Point(501, 22);208 this.collectionLabel.Name = "collectionLabel";209 this.collectionLabel.Size = new System.Drawing.Size(53, 13);210 this.collectionLabel.TabIndex = 0;211 this.collectionLabel.Text = "Collection";212 195 // 213 196 // parametersImageList … … 216 199 this.parametersImageList.ImageSize = new System.Drawing.Size(16, 16); 217 200 this.parametersImageList.TransparentColor = System.Drawing.Color.Transparent; 218 //219 // executionContextConextMenu220 //221 this.executionContextConextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {222 this.showValueToolStripMenuItem});223 this.executionContextConextMenu.Name = "executionContextConextMenu";224 this.executionContextConextMenu.Size = new System.Drawing.Size(169, 48);225 this.executionContextConextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.executionContextConextMenu_Opening);226 //227 // showValueToolStripMenuItem228 //229 this.showValueToolStripMenuItem.Name = "showValueToolStripMenuItem";230 this.showValueToolStripMenuItem.Size = new System.Drawing.Size(168, 22);231 this.showValueToolStripMenuItem.Text = "show actual value";232 this.showValueToolStripMenuItem.ToolTipText = "Try to obtain the parameter\'s actual value in the current execution context and o" +233 "pen it in a new view.";234 this.showValueToolStripMenuItem.Click += new System.EventHandler(this.ShowValue_Click);235 201 // 236 202 // OperationContentView … … 247 213 this.splitContainer1.ResumeLayout(false); 248 214 this.executionContextGroupBox.ResumeLayout(false); 215 this.executionContextConextMenu.ResumeLayout(false); 249 216 this.scopeGroupBox.ResumeLayout(false); 250 this.executionContextConextMenu.ResumeLayout(false);251 217 this.ResumeLayout(false); 252 218 … … 257 223 private System.Windows.Forms.GroupBox groupBox; 258 224 private System.Windows.Forms.TextBox nameTextBox; 259 private System.Windows.Forms.Label contextLabel;260 private System.Windows.Forms.Label atomicLabel;261 private System.Windows.Forms.Label collectionLabel;262 225 private System.Windows.Forms.SplitContainer splitContainer1; 263 226 private System.Windows.Forms.TreeView scopeTreeView; -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContentView.cs
r5114 r5116 48 48 if (Content == null) { 49 49 nameTextBox.Text = ""; 50 contextLabel.ForeColor = SystemColors.ControlDark;51 atomicLabel.ForeColor = SystemColors.ControlDark;52 collectionLabel.ForeColor = SystemColors.ControlDark;53 50 scopeTreeView.Nodes.Clear(); 54 51 executionContextTreeView.Nodes.Clear(); 55 52 } else { 56 contextLabel.ForeColor = Content.IsContext ? Color.Black : SystemColors.ControlDark;57 atomicLabel.ForeColor = Content.IsAtomic ? Color.Black : SystemColors.ControlDark;58 collectionLabel.ForeColor = Content.IsCollection ? Color.Black : SystemColors.ControlDark;59 53 nameTextBox.Text = Content.Name; 60 54 UpdateScopeTree(); … … 63 57 } 64 58 65 private object GetParameterValue(IParameter param, IExecutionContext context ) {59 private object GetParameterValue(IParameter param, IExecutionContext context, out string actualName) { 66 60 param = (IParameter)param.Clone(); 67 61 param.ExecutionContext = context; … … 72 66 value = x.Message; 73 67 } 68 ILookupParameter lookupParam = param as ILookupParameter; 69 if (lookupParam != null) 70 actualName = lookupParam.ActualName; 71 else 72 actualName = null; 74 73 return value; 75 74 } … … 146 145 node.SelectedImageIndex = 0; 147 146 foreach (var param in executionContext.Parameters) { 148 TreeNode paramNode = node.Nodes.Add(string.Format("{0}={1}", 149 param.Name, GetParameterValue(param, executionContext))); 147 string actualName = null; 148 object value = GetParameterValue(param, executionContext, out actualName); 149 string label = actualName != null && actualName != param.Name ? 150 string.Format("{0}({1})={2}", param.Name, actualName, value) : 151 string.Format("{0}={1}", param.Name, value); 152 TreeNode paramNode = node.Nodes.Add(label); 150 153 paramNode.Tag = param; 151 154 executionContextTreeView.ImageList.Images.Add(param.ItemImage ?? VS2008ImageLibrary.Nothing); … … 180 183 private TreeNode selectedScopeNode = null; 181 184 private void executionContextTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { 185 scopeTreeView.BeginUpdate(); 182 186 if (selectedScopeNode != null) { 183 187 if (Content.IsAtomic && Content.AtomicOperation.Scope == selectedScopeNode.Tag) { … … 210 214 } 211 215 } 216 scopeTreeView.EndUpdate(); 212 217 } 213 218 … … 234 239 return; 235 240 IParameter param = executionContextTreeView.SelectedNode.Tag as IParameter; 241 string actualName = null; 236 242 if (param != null) 237 MainFormManager.MainForm.ShowContent(GetParameterValue(param, Content.ExecutionContext) as IContent); 238 } 239 240 #endregion 243 MainFormManager.MainForm.ShowContent(GetParameterValue(param, Content.ExecutionContext, out actualName) as IContent); 244 } 241 245 242 246 private void executionContextConextMenu_Opening(object sender, System.ComponentModel.CancelEventArgs e) { 243 247 IParameter param = executionContextTreeView.SelectedNode.Tag as IParameter; 248 string actualName = null; 244 249 if (param != null) 245 showValueToolStripMenuItem.Enabled = GetParameterValue(param, Content.ExecutionContext ) is IContent;250 showValueToolStripMenuItem.Enabled = GetParameterValue(param, Content.ExecutionContext, out actualName) is IContent; 246 251 else 247 252 e.Cancel = true; 248 253 } 249 254 255 private void executionContextTreeView_MouseDown(object sender, MouseEventArgs e) { 256 if (e.Button == System.Windows.Forms.MouseButtons.Right) 257 executionContextTreeView.SelectedNode = executionContextTreeView.GetNodeAt(e.Location); 258 } 259 260 #endregion 250 261 251 262 -
trunk/sources/HeuristicLab.DebugEngine/3.3/OperatorTraceView.Designer.cs
r5114 r5116 66 66 // listView 67 67 // 68 this.listView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 69 | System.Windows.Forms.AnchorStyles.Left) 70 | System.Windows.Forms.AnchorStyles.Right))); 68 71 this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 69 72 this.listViewColumnHeader}); 70 this.listView.Dock = System.Windows.Forms.DockStyle.Fill;71 73 this.listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; 72 74 this.listView.HideSelection = false; 73 this.listView.Location = new System.Drawing.Point( 3, 16);75 this.listView.Location = new System.Drawing.Point(6, 19); 74 76 this.listView.Name = "listView"; 75 77 this.listView.ShowItemToolTips = true; 76 this.listView.Size = new System.Drawing.Size(14 6, 470);78 this.listView.Size = new System.Drawing.Size(140, 464); 77 79 this.listView.SmallImageList = this.imageList; 78 80 this.listView.TabIndex = 0;
Note: See TracChangeset
for help on using the changeset viewer.