Changeset 7664 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views
- Timestamp:
- 03/27/12 10:05:59 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Optimization.Views (added) merged: 7641,7646
- Property svn:mergeinfo changed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r7610 r7664 188 188 <SubType>UserControl</SubType> 189 189 </Compile> 190 <Compile Include="ProblemView. designer.cs">190 <Compile Include="ProblemView.Designer.cs"> 191 191 <DependentUpon>ProblemView.cs</DependentUpon> 192 192 </Compile> … … 305 305 <DependentUpon>EngineAlgorithmView.cs</DependentUpon> 306 306 </Compile> 307 <Compile Include="HeuristicOptimizationProblemView.cs">308 <SubType>UserControl</SubType>309 </Compile>310 <Compile Include="HeuristicOptimizationProblemView.Designer.cs">311 <DependentUpon>HeuristicOptimizationProblemView.cs</DependentUpon>312 </Compile>313 307 <Compile Include="Properties\AssemblyInfo.cs" /> 314 308 <Compile Include="ResultCollectionView.cs"> … … 330 324 </ItemGroup> 331 325 <ItemGroup> 326 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances.Views\3.4\HeuristicLab.Problems.Instances.Views-3.4.csproj"> 327 <Project>{1BFDCC58-E228-46DE-A36E-8503194B434D}</Project> 328 <Name>HeuristicLab.Problems.Instances.Views-3.4</Name> 329 </ProjectReference> 332 330 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> 333 331 <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project> 334 332 <Name>HeuristicLab.Problems.Instances-3.3</Name> 333 <Private>False</Private> 335 334 </ProjectReference> 336 335 </ItemGroup> -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/ProblemInstanceProviderView.cs
r7610 r7664 49 49 toolTip.SetToolTip(exportButton, "Export a " + GetProblemType() + " instance to a file."); 50 50 loadButton.Text = String.Empty; 51 loadButton.Image = VSImageLibrary. Checkout;51 loadButton.Image = VSImageLibrary.RefreshDocument; 52 52 toolTip.SetToolTip(loadButton, "Load the selected instance."); 53 53 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/ProblemView.Designer.cs
r7259 r7664 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.problemInstanceSplitContainer = new System.Windows.Forms.SplitContainer(); 48 this.problemInstanceConsumerView = new HeuristicLab.Problems.Instances.Views.ProblemInstanceConsumerView(); 47 49 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 50 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).BeginInit(); 51 this.problemInstanceSplitContainer.Panel1.SuspendLayout(); 52 this.problemInstanceSplitContainer.Panel2.SuspendLayout(); 53 this.problemInstanceSplitContainer.SuspendLayout(); 48 54 this.SuspendLayout(); 55 // 56 // parameterCollectionView 57 // 58 this.parameterCollectionView.Location = new System.Drawing.Point(6, 27); 59 this.parameterCollectionView.Size = new System.Drawing.Size(501, 303); 49 60 // 50 61 // nameTextBox … … 52 63 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 53 64 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 65 this.nameTextBox.Location = new System.Drawing.Point(47, 1); 66 this.nameTextBox.Size = new System.Drawing.Size(438, 20); 67 // 68 // nameLabel 69 // 70 this.nameLabel.Location = new System.Drawing.Point(3, 6); 71 // 72 // infoLabel 73 // 74 this.infoLabel.Location = new System.Drawing.Point(491, 4); 75 // 76 // problemInstanceSplitContainer 77 // 78 this.problemInstanceSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 79 | System.Windows.Forms.AnchorStyles.Left) 80 | System.Windows.Forms.AnchorStyles.Right))); 81 this.problemInstanceSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 82 this.problemInstanceSplitContainer.IsSplitterFixed = true; 83 this.problemInstanceSplitContainer.Location = new System.Drawing.Point(0, 0); 84 this.problemInstanceSplitContainer.Name = "problemInstanceSplitContainer"; 85 this.problemInstanceSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 86 // 87 // problemInstanceSplitContainer.Panel1 88 // 89 this.problemInstanceSplitContainer.Panel1.Controls.Add(this.problemInstanceConsumerView); 90 this.problemInstanceSplitContainer.Panel1MinSize = 10; 91 // 92 // problemInstanceSplitContainer.Panel2 93 // 94 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.nameLabel); 95 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.nameTextBox); 96 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.parameterCollectionView); 97 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.infoLabel); 98 this.problemInstanceSplitContainer.Size = new System.Drawing.Size(511, 363); 99 this.problemInstanceSplitContainer.SplitterDistance = 26; 100 this.problemInstanceSplitContainer.TabIndex = 13; 101 // 102 // problemInstanceConsumerView 103 // 104 this.problemInstanceConsumerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 105 | System.Windows.Forms.AnchorStyles.Left) 106 | System.Windows.Forms.AnchorStyles.Right))); 107 this.problemInstanceConsumerView.Caption = "ProblemInstanceProviderView"; 108 this.problemInstanceConsumerView.Content = null; 109 this.problemInstanceConsumerView.Location = new System.Drawing.Point(0, 0); 110 this.problemInstanceConsumerView.Name = "problemInstanceConsumerView"; 111 this.problemInstanceConsumerView.ReadOnly = false; 112 this.problemInstanceConsumerView.Size = new System.Drawing.Size(511, 25); 113 this.problemInstanceConsumerView.TabIndex = 0; 54 114 // 55 115 // ProblemView … … 57 117 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 58 118 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 119 this.Controls.Add(this.problemInstanceSplitContainer); 59 120 this.Name = "ProblemView"; 121 this.Size = new System.Drawing.Size(511, 363); 60 122 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 123 this.problemInstanceSplitContainer.Panel1.ResumeLayout(false); 124 this.problemInstanceSplitContainer.Panel2.ResumeLayout(false); 125 this.problemInstanceSplitContainer.Panel2.PerformLayout(); 126 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).EndInit(); 127 this.problemInstanceSplitContainer.ResumeLayout(false); 61 128 this.ResumeLayout(false); 62 this.PerformLayout();63 129 64 130 } … … 66 132 #endregion 67 133 68 134 protected System.Windows.Forms.SplitContainer problemInstanceSplitContainer; 135 protected HeuristicLab.Problems.Instances.Views.ProblemInstanceConsumerView problemInstanceConsumerView; 69 136 } 70 137 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/ProblemView.cs
r7259 r7664 20 20 #endregion 21 21 22 using System.Windows.Forms; 22 23 using HeuristicLab.Core.Views; 23 24 using HeuristicLab.MainForm; 25 using HeuristicLab.Problems.Instances; 24 26 25 27 namespace HeuristicLab.Optimization.Views { … … 44 46 protected override void OnContentChanged() { 45 47 base.OnContentChanged(); 48 //Check if IProblem implements IProblemInstancesConsumer interface 49 problemInstanceConsumerView.Content = (IProblemInstanceConsumer)Content; 50 problemInstanceSplitContainer.Panel1Collapsed = !problemInstanceConsumerView.ContainsProviders(); 51 SetEnabledStateOfControls(); 52 } 53 54 protected override void SetEnabledStateOfControls() { 55 base.SetEnabledStateOfControls(); 46 56 } 47 57 }
Note: See TracChangeset
for help on using the changeset viewer.