- Timestamp:
- 12/16/15 17:04:35 (8 years ago)
- Location:
- branches/PerformanceComparison
- Files:
-
- 3 added
- 18 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison
- Property svn:ignore
-
old new 2 2 *.suo 3 3 *.user 4 .git 5 .gitignore
-
- Property svn:ignore
-
branches/PerformanceComparison/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
-
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.Designer.cs
r12012 r13475 50 50 this.engineViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 51 51 this.operatorGraphTabPage = new System.Windows.Forms.TabPage(); 52 this.openOperatorGraphButton = new System.Windows.Forms.Button(); 53 this.newOperatorGraphButton = new System.Windows.Forms.Button(); 54 this.operatorGraphViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 52 this.operatorGraphViewHost = new HeuristicLab.Core.Views.BreadcrumbViewHost(); 55 53 this.tabControl.SuspendLayout(); 56 54 this.parametersTabPage.SuspendLayout(); … … 219 217 // operatorGraphTabPage 220 218 // 221 this.operatorGraphTabPage.Controls.Add(this.openOperatorGraphButton);222 this.operatorGraphTabPage.Controls.Add(this.newOperatorGraphButton);223 219 this.operatorGraphTabPage.Controls.Add(this.operatorGraphViewHost); 224 220 this.operatorGraphTabPage.Location = new System.Drawing.Point(4, 22); … … 229 225 this.operatorGraphTabPage.UseVisualStyleBackColor = true; 230 226 // 231 // openOperatorGraphButton232 //233 this.openOperatorGraphButton.Enabled = false;234 this.openOperatorGraphButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Open;235 this.openOperatorGraphButton.Location = new System.Drawing.Point(33, 3);236 this.openOperatorGraphButton.Name = "openOperatorGraphButton";237 this.openOperatorGraphButton.Size = new System.Drawing.Size(24, 24);238 this.openOperatorGraphButton.TabIndex = 1;239 this.toolTip.SetToolTip(this.openOperatorGraphButton, "Open Operator Graph");240 this.openOperatorGraphButton.UseVisualStyleBackColor = true;241 //242 // newOperatorGraphButton243 //244 this.newOperatorGraphButton.Enabled = false;245 this.newOperatorGraphButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.NewDocument;246 this.newOperatorGraphButton.Location = new System.Drawing.Point(3, 3);247 this.newOperatorGraphButton.Name = "newOperatorGraphButton";248 this.newOperatorGraphButton.Size = new System.Drawing.Size(24, 24);249 this.newOperatorGraphButton.TabIndex = 1;250 this.toolTip.SetToolTip(this.newOperatorGraphButton, "New Operator Graph");251 this.newOperatorGraphButton.UseVisualStyleBackColor = true;252 //253 227 // operatorGraphViewHost 254 228 // … … 258 232 this.operatorGraphViewHost.Caption = "View"; 259 233 this.operatorGraphViewHost.Content = null; 234 this.operatorGraphViewHost.EnableBreadcrumbs = true; 260 235 this.operatorGraphViewHost.Enabled = false; 261 this.operatorGraphViewHost.Location = new System.Drawing.Point( 3, 33);236 this.operatorGraphViewHost.Location = new System.Drawing.Point(6, 6); 262 237 this.operatorGraphViewHost.Name = "operatorGraphViewHost"; 263 238 this.operatorGraphViewHost.ReadOnly = true; 264 this.operatorGraphViewHost.Size = new System.Drawing.Size(699, 431); 239 this.operatorGraphViewHost.ShowSingle = true; 240 this.operatorGraphViewHost.Size = new System.Drawing.Size(693, 455); 265 241 this.operatorGraphViewHost.TabIndex = 0; 266 242 this.operatorGraphViewHost.ViewsLabelVisible = true; … … 295 271 protected HeuristicLab.MainForm.WindowsForms.ViewHost engineViewHost; 296 272 protected System.Windows.Forms.TabPage operatorGraphTabPage; 297 protected HeuristicLab.MainForm.WindowsForms.ViewHost operatorGraphViewHost; 298 protected System.Windows.Forms.Button openOperatorGraphButton; 299 protected System.Windows.Forms.Button newOperatorGraphButton; 273 protected HeuristicLab.Core.Views.BreadcrumbViewHost operatorGraphViewHost; 300 274 301 275 } -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs
r12012 r13475 95 95 base.SetEnabledStateOfControls(); 96 96 engineViewHost.Enabled = Content != null; 97 newOperatorGraphButton.Enabled = false;98 openOperatorGraphButton.Enabled = false;99 97 operatorGraphViewHost.Enabled = Content != null; 100 98 operatorGraphViewHost.ReadOnly = true; -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.Designer.cs
r12012 r13475 51 51 this.CollapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52 52 this.CollapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 53 this.EditNodeLabelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();54 53 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 55 54 this.optimizersGroupBox.SuspendLayout(); … … 165 164 this.treeView.ImageIndex = 0; 166 165 this.treeView.ImageList = this.imageList; 167 this.treeView.LabelEdit = true;166 this.treeView.LabelEdit = false; 168 167 this.treeView.Location = new System.Drawing.Point(4, 34); 169 168 this.treeView.Name = "optimizerTreeView"; … … 220 219 // 221 220 this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 222 this.EditNodeLabelToolStripMenuItem,223 221 this.ExpandToolStripMenuItem, 224 222 this.ExpandAllToolStripMenuItem, … … 255 253 this.CollapseAllToolStripMenuItem.Text = "Collapse All"; 256 254 this.CollapseAllToolStripMenuItem.Click += new System.EventHandler(this.CollapseAllToolStripMenuItem_Click); 257 //258 // EditNodeLabelToolStripMenuItem259 //260 this.EditNodeLabelToolStripMenuItem.Name = "EditNodeLabelToolStripMenuItem";261 this.EditNodeLabelToolStripMenuItem.Size = new System.Drawing.Size(119, 22);262 this.EditNodeLabelToolStripMenuItem.Text = "Edit Name";263 this.EditNodeLabelToolStripMenuItem.Click += new System.EventHandler(this.EditNodeLabelToolStripMenuItem_Click);264 255 265 256 // … … 300 291 private System.Windows.Forms.ToolStripMenuItem CollapseToolStripMenuItem; 301 292 private System.Windows.Forms.ToolStripMenuItem CollapseAllToolStripMenuItem; 302 private System.Windows.Forms.ToolStripMenuItem EditNodeLabelToolStripMenuItem;303 293 304 294 } -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs
r12012 r13475 664 664 ExpandToolStripMenuItem.Enabled = ExpandToolStripMenuItem.Visible = !toolStripMenuNode.IsExpanded && toolStripMenuNode.Nodes.Count > 0; 665 665 CollapseToolStripMenuItem.Enabled = CollapseToolStripMenuItem.Visible = toolStripMenuNode.IsExpanded; 666 EditNodeLabelToolStripMenuItem.Enabled = EditNodeLabelToolStripMenuItem.Visible = !Locked && !ReadOnly && toolStripMenuNode.Tag != null && toolStripMenuNode.Tag is INamedItem && ((INamedItem)toolStripMenuNode.Tag).CanChangeName;667 666 } else { 668 667 ExpandToolStripMenuItem.Enabled = ExpandToolStripMenuItem.Visible = false; 669 668 CollapseToolStripMenuItem.Enabled = CollapseToolStripMenuItem.Visible = false; 670 EditNodeLabelToolStripMenuItem.Enabled = EditNodeLabelToolStripMenuItem.Visible = false;671 669 } 672 670 ExpandAllToolStripMenuItem.Enabled = ExpandAllToolStripMenuItem.Visible = !treeView.Nodes.OfType<TreeNode>().All(x => TreeNodeIsFullyExpanded(x)); … … 687 685 private void CollapseAllToolStripMenuItem_Click(object sender, EventArgs e) { 688 686 treeView.CollapseAll(); 689 }690 private void EditNodeLabelToolStripMenuItem_Click(object sender, EventArgs e) {691 if (toolStripMenuNode != null) {692 if (!toolStripMenuNode.IsEditing) toolStripMenuNode.BeginEdit();693 }694 687 } 695 688 -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r12804 r13475 150 150 <Private>False</Private> 151 151 </Reference> 152 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 153 <SpecificVersion>False</SpecificVersion> 154 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 155 <Private>False</Private> 156 </Reference> 152 157 <Reference Include="HeuristicLab.Parameters-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 153 158 <SpecificVersion>False</SpecificVersion> … … 344 349 <DependentUpon>RunCollectionEqualityConstraintView.cs</DependentUpon> 345 350 </Compile> 351 <Compile Include="RunCollectionViews\RunCollectionIteratedSamplingView.cs"> 352 <SubType>UserControl</SubType> 353 </Compile> 354 <Compile Include="RunCollectionViews\RunCollectionIteratedSamplingView.Designer.cs"> 355 <DependentUpon>RunCollectionIteratedSamplingView.cs</DependentUpon> 356 </Compile> 346 357 <Compile Include="RunCollectionViews\RunCollectionRLDView.cs"> 347 358 <SubType>UserControl</SubType> … … 379 390 <Compile Include="TimeLimitRunView.Designer.cs"> 380 391 <DependentUpon>TimeLimitRunView.cs</DependentUpon> 392 </Compile> 393 <Compile Include="ThresholdTerminatorView.cs"> 394 <SubType>UserControl</SubType> 395 </Compile> 396 <Compile Include="ThresholdTerminatorView.Designer.cs"> 397 <DependentUpon>ThresholdTerminatorView.cs</DependentUpon> 381 398 </Compile> 382 399 <Compile Include="UserDefinedAlgorithmView.cs"> … … 447 464 <EmbeddedResource Include="CreateNewSingleEncodingDialog.resx"> 448 465 <DependentUpon>CreateNewSingleEncodingDialog.cs</DependentUpon> 466 </EmbeddedResource> 467 <EmbeddedResource Include="RunCollectionViews\RunCollectionIteratedSamplingView.resx"> 468 <DependentUpon>RunCollectionIteratedSamplingView.cs</DependentUpon> 449 469 </EmbeddedResource> 450 470 </ItemGroup> -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/Plugin.cs.frame
r12753 r13475 26 26 /// Plugin class for HeuristicLab.Optimization.Views plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Optimization.Views", "3.3.1 2.$WCREV$")]28 [Plugin("HeuristicLab.Optimization.Views", "3.3.13.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Optimization.Views-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/Properties/AssemblyInfo.cs.frame
r12753 r13475 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.1 2.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.13.$WCREV$")] -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r12813 r13475 248 248 matrix[5, i] = seriesValues.StandardDeviation(); 249 249 matrix[6, i] = seriesValues.Variance(); 250 matrix[7, i] = seriesValues. Percentile(0.25);251 matrix[8, i] = seriesValues. Percentile(0.75);250 matrix[7, i] = seriesValues.Quantile(0.25); 251 matrix[8, i] = seriesValues.Quantile(0.75); 252 252 } 253 253 statisticsMatrixView.Content = matrix; -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionChartAggregationView.cs
r12692 r13475 80 80 return; 81 81 } 82 UpdateDataTableComboBox(); // will trigger AddRuns 83 } 84 private void Content_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IRun> e) { 85 if (suppressUpdates) return; 86 if (InvokeRequired) { 87 Invoke(new CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved), sender, e); 88 return; 89 } 90 RemoveRuns(e.Items); 82 91 UpdateDataTableComboBox(); 83 92 UpdateDataRowComboBox(); 84 AddRuns(e.Items); 85 } 86 private void Content_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IRun> e) { 87 if (suppressUpdates) return; 88 if (InvokeRequired) { 89 Invoke(new CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved), sender, e); 90 return; 91 } 93 RebuildCombinedDataTable(); 94 } 95 private void Content_CollectionReset(object sender, CollectionItemsChangedEventArgs<IRun> e) { 96 if (suppressUpdates) return; 97 if (InvokeRequired) { 98 Invoke(new CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset), sender, e); 99 return; 100 } 101 RemoveRuns(e.OldItems); 92 102 UpdateDataTableComboBox(); 93 103 UpdateDataRowComboBox(); 94 RemoveRuns(e.Items); 95 } 96 private void Content_CollectionReset(object sender, CollectionItemsChangedEventArgs<IRun> e) { 97 if (suppressUpdates) return; 98 if (InvokeRequired) { 99 Invoke(new CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset), sender, e); 100 return; 101 } 102 UpdateDataTableComboBox(); 103 UpdateDataRowComboBox(); 104 RemoveRuns(e.OldItems); 105 AddRuns(e.Items); 104 RebuildCombinedDataTable(); 106 105 } 107 106 private void Content_AlgorithmNameChanged(object sender, EventArgs e) { … … 117 116 suppressUpdates = Content.UpdateOfRunsInProgress; 118 117 if (!suppressUpdates) { 118 foreach (var run in runMapping) 119 DeregisterRunEvents(run.Key); 120 runMapping.Clear(); 121 combinedDataTable.Rows.Clear(); 119 122 UpdateDataTableComboBox(); 120 UpdateDataRowComboBox();121 UpdateRuns(Content);122 123 } 123 124 } -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionRLDView.cs
r12956 r13475 463 463 ertTableView.DataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells); 464 464 } 465 466 467 465 #endregion 468 466 -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
r12692 r13475 25 25 using System.Linq; 26 26 using System.Windows.Forms; 27 using HeuristicLab.Collections; 27 28 using HeuristicLab.Core; 28 29 using HeuristicLab.Data.Views; … … 122 123 123 124 protected override void UpdateColumnHeaders() { 124 HashSet<string> visibleColumnNames = new HashSet<string>(dataGridView.Columns.OfType<DataGridViewColumn>() 125 .Where(c => c.Visible && !string.IsNullOrEmpty(c.HeaderText)).Select(c => c.HeaderText)); 126 125 string[] colNames = base.Content.ColumnNames.ToArray(); 126 int colCount = colNames.Length; 127 127 for (int i = 0; i < dataGridView.ColumnCount; i++) { 128 if (i < base.Content.ColumnNames.Count())129 dataGridView.Columns[i].HeaderText = base.Content.ColumnNames.ElementAt(i);128 if (i < colCount) 129 dataGridView.Columns[i].HeaderText = colNames[i]; 130 130 else 131 131 dataGridView.Columns[i].HeaderText = "Column " + (i + 1); 132 } 133 134 HashSet<string> visibleColumnNames = new HashSet<string>( 135 dataGridView.Columns.OfType<DataGridViewColumn>() 136 .Where(c => c.Visible) 137 .Where(c => !string.IsNullOrEmpty(c.HeaderText)) 138 .Where(c => !IsConstant(c.HeaderText)) 139 .Select(c => c.HeaderText)); 140 141 for (int i = 0; i < dataGridView.ColumnCount; i++) { 132 142 dataGridView.Columns[i].Visible = visibleColumnNames.Count == 0 || visibleColumnNames.Contains(dataGridView.Columns[i].HeaderText); 133 143 } 144 } 145 146 // returns true when all values in the column are the same (missing values are included in the count) 147 private bool IsConstant(string columnName) { 148 Func<IRun, string, string> GetStringValue = (IRun r, string colName) => { 149 // also include missing values in the count 150 IItem v = null; 151 if (r.Parameters.TryGetValue(colName, out v)) return v.ToString(); 152 if (r.Results.TryGetValue(colName, out v)) return v.ToString(); 153 return string.Empty; 154 }; 155 156 var firstRun = Content.First(); 157 string firstValue = GetStringValue(firstRun, columnName); 158 return Content.Skip(1).All(run => firstValue == GetStringValue(run, columnName)); 134 159 } 135 160 -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.cs
r12692 r13475 389 389 return; 390 390 ReadOnly = true; 391 391 392 try { 393 RunCollection.UpdateOfRunsInProgress = true; 392 394 RunCollection.Modify(); 393 395 } finally { 394 396 ReadOnly = false; 397 RunCollection.UpdateOfRunsInProgress = false; 395 398 } 396 399 } -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/TimeLimitRunView.Designer.cs
r12627 r13475 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/TimeLimitRunView.cs
r12627 r13475 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs
r12012 r13475 65 65 // 66 66 this.engineViewHost.Size = new System.Drawing.Size(693, 402); 67 //68 // openOperatorGraphButton69 //70 this.toolTip.SetToolTip(this.openOperatorGraphButton, "Open Operator Graph");71 this.openOperatorGraphButton.Click += new System.EventHandler(openOperatorGraphButton_Click);72 //73 // newOperatorGraphButton74 //75 this.toolTip.SetToolTip(this.newOperatorGraphButton, "New Operator Graph");76 this.newOperatorGraphButton.Click += new System.EventHandler(newOperatorGraphButton_Click);77 67 // 78 68 // tabControl -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.cs
r12012 r13475 57 57 base.SetEnabledStateOfControls(); 58 58 globalScopeView.Enabled = Content != null; 59 newOperatorGraphButton.Enabled = Content != null && !ReadOnly;60 openOperatorGraphButton.Enabled = Content != null && !ReadOnly;61 59 operatorGraphViewHost.ReadOnly = Content == null || ReadOnly; 62 }63 64 private void newOperatorGraphButton_Click(object sender, EventArgs e) {65 Content.OperatorGraph = new OperatorGraph();66 }67 private void openOperatorGraphButton_Click(object sender, EventArgs e) {68 openFileDialog.Title = "Open Operator Graph";69 if (openFileDialog.ShowDialog(this) == DialogResult.OK) {70 newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = false;71 operatorGraphViewHost.Enabled = false;72 73 ContentManager.LoadAsync(openFileDialog.FileName, delegate(IStorableContent content, Exception error) {74 try {75 if (error != null) throw error;76 OperatorGraph operatorGraph = content as OperatorGraph;77 if (operatorGraph == null)78 MessageBox.Show(this, "The selected file does not contain an operator graph.", "Invalid File", MessageBoxButtons.OK, MessageBoxIcon.Error);79 else80 Content.OperatorGraph = operatorGraph;81 }82 catch (Exception ex) {83 ErrorHandling.ShowErrorDialog(this, ex);84 }85 finally {86 Invoke(new Action(delegate() {87 operatorGraphViewHost.Enabled = true;88 newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = true;89 }));90 }91 });92 }93 60 } 94 61 }
Note: See TracChangeset
for help on using the changeset viewer.