- Timestamp:
- 06/21/12 18:02:33 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 27 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/AlgorithmView.Designer.cs
r7259 r8085 266 266 // 267 267 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 268 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;268 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 269 269 this.Controls.Add(this.tabControl); 270 270 this.Name = "AlgorithmView"; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/BatchRunView.Designer.cs
r7259 r8085 230 230 // 231 231 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 232 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;232 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 233 233 this.Controls.Add(this.repetitionsNumericUpDown); 234 234 this.Controls.Add(this.repetitionsLabel); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.Designer.cs
r7259 r8085 270 270 // 271 271 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 272 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;272 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 273 273 this.Name = "EngineAlgorithmView"; 274 274 this.Size = new System.Drawing.Size(713, 549); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ExperimentListView.Designer.cs
r7259 r8085 163 163 // 164 164 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 165 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;165 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 166 166 this.Controls.Add(this.tabControl); 167 167 this.Name = "ExperimentView"; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.Designer.cs
r7274 r8085 269 269 // 270 270 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 271 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;271 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 272 272 this.Controls.Add(this.optimizersGroupBox); 273 273 this.Name = "ExperimentTreeView"; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ExperimentView.Designer.cs
r7259 r8085 161 161 // 162 162 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 163 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;163 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 164 164 this.Controls.Add(this.tabControl); 165 165 this.Name = "ExperimentView"; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r7646 r8085 99 99 </PropertyGroup> 100 100 <ItemGroup> 101 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 102 <Private>False</Private> 103 </Reference> 101 104 <Reference Include="Microsoft.CSharp" /> 102 105 <Reference Include="System" /> … … 115 118 <Reference Include="System.Data" /> 116 119 <Reference Include="System.Xml" /> 117 <Reference Include="WeifenLuo.WinFormsUI.Docking-2.3.1, Version=2.3.1.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86" /> 120 <Reference Include="WeifenLuo.WinFormsUI.Docking-2.3.1, Version=2.3.1.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86"> 121 <Private>False</Private> 122 </Reference> 118 123 </ItemGroup> 119 124 <ItemGroup> … … 138 143 </Compile> 139 144 <Compile Include="Plugin.cs" /> 140 <Compile Include="ProblemInstanceProviderView.cs">141 <SubType>UserControl</SubType>142 </Compile>143 <Compile Include="ProblemInstanceProviderView.Designer.cs">144 <DependentUpon>ProblemInstanceProviderView.cs</DependentUpon>145 </Compile>146 145 <Compile Include="ProblemView.cs"> 147 146 <SubType>UserControl</SubType> … … 251 250 <Compile Include="RunView.Designer.cs"> 252 251 <DependentUpon>RunView.cs</DependentUpon> 252 </Compile> 253 <Compile Include="RunCollectionViews\RunCollectionDataTableView.cs"> 254 <SubType>UserControl</SubType> 255 </Compile> 256 <Compile Include="RunCollectionViews\RunCollectionDataTableView.Designer.cs"> 257 <DependentUpon>RunCollectionDataTableView.cs</DependentUpon> 253 258 </Compile> 254 259 <Compile Include="UserDefinedAlgorithmView.cs"> … … 281 286 <None Include="HeuristicLab.snk" /> 282 287 <None Include="Properties\AssemblyInfo.cs.frame" /> 283 </ItemGroup>284 <ItemGroup>285 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">286 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>287 <Name>HeuristicLab.Collections-3.3</Name>288 <Private>False</Private>289 </ProjectReference>290 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">291 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>292 <Name>HeuristicLab.Common.Resources-3.3</Name>293 <Private>False</Private>294 </ProjectReference>295 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">296 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>297 <Name>HeuristicLab.Common-3.3</Name>298 <Private>False</Private>299 </ProjectReference>300 <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj">301 <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project>302 <Name>HeuristicLab.Core.Views-3.3</Name>303 <Private>False</Private>304 </ProjectReference>305 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">306 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>307 <Name>HeuristicLab.Core-3.3</Name>308 <Private>False</Private>309 </ProjectReference>310 <ProjectReference Include="..\..\HeuristicLab.Data.Views\3.3\HeuristicLab.Data.Views-3.3.csproj">311 <Project>{72104A0B-90E7-42F3-9ABE-9BBBADD4B943}</Project>312 <Name>HeuristicLab.Data.Views-3.3</Name>313 <Private>False</Private>314 </ProjectReference>315 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">316 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>317 <Name>HeuristicLab.Data-3.3</Name>318 <Private>False</Private>319 </ProjectReference>320 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.3\HeuristicLab.MainForm.WindowsForms-3.3.csproj">321 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project>322 <Name>HeuristicLab.MainForm.WindowsForms-3.3</Name>323 <Private>False</Private>324 </ProjectReference>325 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.3\HeuristicLab.MainForm-3.3.csproj">326 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project>327 <Name>HeuristicLab.MainForm-3.3</Name>328 <Private>False</Private>329 </ProjectReference>330 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">331 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>332 <Name>HeuristicLab.Optimization-3.3</Name>333 <Private>False</Private>334 </ProjectReference>335 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">336 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>337 <Name>HeuristicLab.Persistence-3.3</Name>338 <Private>False</Private>339 </ProjectReference>340 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">341 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>342 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>343 <Private>False</Private>344 </ProjectReference>345 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">346 <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project>347 <Name>HeuristicLab.Problems.Instances-3.3</Name>348 <Private>False</Private>349 </ProjectReference>350 <ProjectReference Include="..\..\HeuristicLab.Visualization.ChartControlsExtensions\3.3\HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj">351 <Project>{315BDA09-3F4F-49B3-9790-B37CFC1C5750}</Project>352 <Name>HeuristicLab.Visualization.ChartControlsExtensions-3.3</Name>353 <Private>False</Private>354 </ProjectReference>355 288 </ItemGroup> 356 289 <ItemGroup> … … 371 304 </BootstrapperPackage> 372 305 </ItemGroup> 306 <ItemGroup> 307 <ProjectReference Include="..\..\HeuristicLab.Analysis.Views\3.3\HeuristicLab.Analysis.Views-3.3.csproj"> 308 <Project>{76945D76-CA61-4147-9DC2-0ACDCDDF87F9}</Project> 309 <Name>HeuristicLab.Analysis.Views-3.3</Name> 310 <Private>False</Private> 311 </ProjectReference> 312 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 313 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> 314 <Name>HeuristicLab.Collections-3.3</Name> 315 <Private>False</Private> 316 </ProjectReference> 317 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj"> 318 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project> 319 <Name>HeuristicLab.Common.Resources-3.3</Name> 320 <Private>False</Private> 321 </ProjectReference> 322 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 323 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> 324 <Name>HeuristicLab.Common-3.3</Name> 325 <Private>False</Private> 326 </ProjectReference> 327 <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj"> 328 <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project> 329 <Name>HeuristicLab.Core.Views-3.3</Name> 330 <Private>False</Private> 331 </ProjectReference> 332 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 333 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> 334 <Name>HeuristicLab.Core-3.3</Name> 335 <Private>False</Private> 336 </ProjectReference> 337 <ProjectReference Include="..\..\HeuristicLab.Data.Views\3.3\HeuristicLab.Data.Views-3.3.csproj"> 338 <Project>{72104A0B-90E7-42F3-9ABE-9BBBADD4B943}</Project> 339 <Name>HeuristicLab.Data.Views-3.3</Name> 340 <Private>False</Private> 341 </ProjectReference> 342 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj"> 343 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 344 <Name>HeuristicLab.Data-3.3</Name> 345 <Private>False</Private> 346 </ProjectReference> 347 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.3\HeuristicLab.MainForm.WindowsForms-3.3.csproj"> 348 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project> 349 <Name>HeuristicLab.MainForm.WindowsForms-3.3</Name> 350 <Private>False</Private> 351 </ProjectReference> 352 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.3\HeuristicLab.MainForm-3.3.csproj"> 353 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project> 354 <Name>HeuristicLab.MainForm-3.3</Name> 355 <Private>False</Private> 356 </ProjectReference> 357 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 358 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 359 <Name>HeuristicLab.Optimization-3.3</Name> 360 <Private>False</Private> 361 </ProjectReference> 362 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> 363 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> 364 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 365 <Private>False</Private> 366 </ProjectReference> 367 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances.Views\3.3\HeuristicLab.Problems.Instances.Views-3.3.csproj"> 368 <Project>{B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}</Project> 369 <Name>HeuristicLab.Problems.Instances.Views-3.3</Name> 370 <Private>False</Private> 371 </ProjectReference> 372 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> 373 <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project> 374 <Name>HeuristicLab.Problems.Instances-3.3</Name> 375 <Private>False</Private> 376 </ProjectReference> 377 <ProjectReference Include="..\..\HeuristicLab.Visualization.ChartControlsExtensions\3.3\HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj"> 378 <Project>{315BDA09-3F4F-49B3-9790-B37CFC1C5750}</Project> 379 <Name>HeuristicLab.Visualization.ChartControlsExtensions-3.3</Name> 380 <Private>False</Private> 381 </ProjectReference> 382 </ItemGroup> 373 383 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 374 384 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/IOptimizerView.Designer.cs
r7259 r8085 135 135 // 136 136 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 137 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;137 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 138 138 this.Controls.Add(this.startButton); 139 139 this.Controls.Add(this.executionTimeTextBox); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/OptimizerListView.Designer.cs
r7259 r8085 46 46 private void InitializeComponent() { 47 47 components = new System.ComponentModel.Container(); 48 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;48 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 49 49 } 50 50 -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/Plugin.cs.frame
r7558 r8085 28 28 [Plugin("HeuristicLab.Optimization.Views", "3.3.6.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Optimization.Views-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] 30 31 [PluginDependency("HeuristicLab.Collections", "3.3")] 31 32 [PluginDependency("HeuristicLab.Common", "3.3")] … … 39 40 [PluginDependency("HeuristicLab.Optimization", "3.3")] 40 41 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 42 [PluginDependency("HeuristicLab.Problems.Instances.Views", "3.3")] 41 43 [PluginDependency("HeuristicLab.Visualization.ChartControlsExtensions","3.3")] 42 44 public class HeuristicLabOptimizationViewsPlugin : PluginBase { -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ProblemView.Designer.cs
r7641 r8085 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.problemInstanceProviderComboBox = new System.Windows.Forms.ComboBox();48 this.libraryLabel = new System.Windows.Forms.Label();49 this.libraryInfoButton = new System.Windows.Forms.Button();50 47 this.problemInstanceSplitContainer = new System.Windows.Forms.SplitContainer(); 51 this. problemInstanceProviderViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();48 this.ProblemInstanceConsumerViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 52 49 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 50 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).BeginInit(); … … 77 74 this.infoLabel.Location = new System.Drawing.Point(491, 4); 78 75 // 79 // problemInstanceProviderComboBox80 //81 this.problemInstanceProviderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;82 this.problemInstanceProviderComboBox.FormattingEnabled = true;83 this.problemInstanceProviderComboBox.Location = new System.Drawing.Point(47, 2);84 this.problemInstanceProviderComboBox.Name = "problemInstanceProviderComboBox";85 this.problemInstanceProviderComboBox.Size = new System.Drawing.Size(171, 21);86 this.problemInstanceProviderComboBox.TabIndex = 13;87 this.problemInstanceProviderComboBox.SelectedIndexChanged += new System.EventHandler(this.problemInstanceProviderComboBox_SelectedIndexChanged);88 this.problemInstanceProviderComboBox.DataSourceChanged += new System.EventHandler(this.comboBox_DataSourceChanged);89 //90 // libraryLabel91 //92 this.libraryLabel.AutoSize = true;93 this.libraryLabel.Location = new System.Drawing.Point(3, 6);94 this.libraryLabel.Name = "libraryLabel";95 this.libraryLabel.Size = new System.Drawing.Size(41, 13);96 this.libraryLabel.TabIndex = 12;97 this.libraryLabel.Text = "Library:";98 //99 // libraryInfoButton100 //101 this.libraryInfoButton.Location = new System.Drawing.Point(224, 1);102 this.libraryInfoButton.Name = "libraryInfoButton";103 this.libraryInfoButton.Size = new System.Drawing.Size(26, 23);104 this.libraryInfoButton.TabIndex = 14;105 this.libraryInfoButton.Text = "Info";106 this.libraryInfoButton.UseVisualStyleBackColor = true;107 this.libraryInfoButton.Click += new System.EventHandler(this.libraryInfoButton_Click);108 //109 76 // problemInstanceSplitContainer 110 77 // 111 this.problemInstanceSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 112 | System.Windows.Forms.AnchorStyles.Left)113 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))); 114 81 this.problemInstanceSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 115 82 this.problemInstanceSplitContainer.IsSplitterFixed = true; … … 120 87 // problemInstanceSplitContainer.Panel1 121 88 // 122 this.problemInstanceSplitContainer.Panel1.Controls.Add(this.problemInstanceProviderViewHost); 123 this.problemInstanceSplitContainer.Panel1.Controls.Add(this.problemInstanceProviderComboBox); 124 this.problemInstanceSplitContainer.Panel1.Controls.Add(this.libraryInfoButton); 125 this.problemInstanceSplitContainer.Panel1.Controls.Add(this.libraryLabel); 89 this.problemInstanceSplitContainer.Panel1.Controls.Add(this.ProblemInstanceConsumerViewHost); 126 90 this.problemInstanceSplitContainer.Panel1MinSize = 10; 127 91 // … … 136 100 this.problemInstanceSplitContainer.TabIndex = 13; 137 101 // 138 // problemInstanceProviderViewHost102 // ProblemInstanceConsumerViewHost 139 103 // 140 this.problemInstanceProviderViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 141 | System.Windows.Forms.AnchorStyles.Right))); 142 this.problemInstanceProviderViewHost.Caption = "View"; 143 this.problemInstanceProviderViewHost.Content = null; 144 this.problemInstanceProviderViewHost.Enabled = false; 145 this.problemInstanceProviderViewHost.Location = new System.Drawing.Point(256, 3); 146 this.problemInstanceProviderViewHost.Name = "problemInstanceProviderViewHost"; 147 this.problemInstanceProviderViewHost.ReadOnly = false; 148 this.problemInstanceProviderViewHost.Size = new System.Drawing.Size(251, 22); 149 this.problemInstanceProviderViewHost.TabIndex = 15; 150 this.problemInstanceProviderViewHost.ViewsLabelVisible = false; 151 this.problemInstanceProviderViewHost.ViewType = null; 104 this.ProblemInstanceConsumerViewHost.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.ProblemInstanceConsumerViewHost.Caption = "ProblemInstanceConsumerView"; 108 this.ProblemInstanceConsumerViewHost.Content = null; 109 this.ProblemInstanceConsumerViewHost.Enabled = false; 110 this.ProblemInstanceConsumerViewHost.Location = new System.Drawing.Point(0, 1); 111 this.ProblemInstanceConsumerViewHost.Name = "ProblemInstanceConsumerViewHost"; 112 this.ProblemInstanceConsumerViewHost.ReadOnly = false; 113 this.ProblemInstanceConsumerViewHost.Size = new System.Drawing.Size(511, 23); 114 this.ProblemInstanceConsumerViewHost.TabIndex = 0; 115 this.ProblemInstanceConsumerViewHost.ViewsLabelVisible = false; 116 this.ProblemInstanceConsumerViewHost.ViewType = null; 152 117 // 153 118 // ProblemView 154 119 // 155 120 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 156 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;121 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 157 122 this.Controls.Add(this.problemInstanceSplitContainer); 158 123 this.Name = "ProblemView"; … … 160 125 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 161 126 this.problemInstanceSplitContainer.Panel1.ResumeLayout(false); 162 this.problemInstanceSplitContainer.Panel1.PerformLayout();163 127 this.problemInstanceSplitContainer.Panel2.ResumeLayout(false); 164 128 this.problemInstanceSplitContainer.Panel2.PerformLayout(); … … 171 135 #endregion 172 136 173 protected System.Windows.Forms.ComboBox problemInstanceProviderComboBox;174 protected System.Windows.Forms.Label libraryLabel;175 protected System.Windows.Forms.Button libraryInfoButton;176 137 protected System.Windows.Forms.SplitContainer problemInstanceSplitContainer; 177 protected MainForm.WindowsForms.ViewHost problemInstanceProviderViewHost;138 protected HeuristicLab.MainForm.WindowsForms.ViewHost ProblemInstanceConsumerViewHost; 178 139 } 179 140 } -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ProblemView.cs
r7641 r8085 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Diagnostics;25 24 using System.Linq; 26 25 using System.Windows.Forms; 27 using HeuristicLab.Common.Resources;28 26 using HeuristicLab.Core.Views; 29 27 using HeuristicLab.MainForm; 30 using HeuristicLab.PluginInfrastructure;31 28 using HeuristicLab.Problems.Instances; 29 using HeuristicLab.Problems.Instances.Views; 32 30 33 31 namespace HeuristicLab.Optimization.Views { … … 38 36 [Content(typeof(IProblem), true)] 39 37 public partial class ProblemView : ParameterizedNamedItemView { 38 39 private static Type neededViewType = typeof(ProblemInstanceConsumerView); 40 40 41 public new IProblem Content { 41 42 get { return (IProblem)base.Content; } 42 43 set { base.Content = value; } 43 }44 45 protected IProblemInstanceProvider SelectedProvider {46 get { return (problemInstanceProviderComboBox.SelectedIndex >= 0 ? (IProblemInstanceProvider)problemInstanceProviderComboBox.SelectedItem : null); }47 44 } 48 45 … … 52 49 public ProblemView() { 53 50 InitializeComponent(); 54 libraryInfoButton.Text = String.Empty;55 libraryInfoButton.Image = VSImageLibrary.Internet;56 51 } 57 52 58 53 protected override void OnContentChanged() { 59 54 base.OnContentChanged(); 60 if (Content == null) { 61 problemInstanceProviderComboBox.DataSource = null; 55 IProblemInstanceConsumer consumer = Content as IProblemInstanceConsumer; 56 if (consumer != null) { 57 IEnumerable<Type> viewTypes = MainFormManager.GetViewTypes(consumer.GetType(), true); 58 Type genericView = viewTypes.Where(x => x.IsSubclassOf(neededViewType)).First(); 59 ProblemInstanceConsumerViewHost.ViewType = genericView; 60 ProblemInstanceConsumerViewHost.Content = consumer; 61 ProblemInstanceConsumerView view = (ProblemInstanceConsumerView)ProblemInstanceConsumerViewHost.ActiveView; 62 problemInstanceSplitContainer.Panel1Collapsed = !view.ProblemInstanceProviders.Any(); 62 63 } else { 63 problemInstanceProviderComboBox.DisplayMember = "Name"; 64 problemInstanceProviderComboBox.DataSource = GetProblemInstanceProviders().ToList(); 65 problemInstanceSplitContainer.Panel1Collapsed = problemInstanceProviderComboBox.Items.Count <= 0; 66 64 problemInstanceSplitContainer.Panel1Collapsed = true; 67 65 } 68 66 SetEnabledStateOfControls(); 69 67 } 70 68 71 protected override void SetEnabledStateOfControls() {72 base.SetEnabledStateOfControls();73 problemInstanceProviderComboBox.Enabled = !ReadOnly && !Locked && Content != null && problemInstanceProviderComboBox.Items.Count > 0;74 libraryInfoButton.Enabled = SelectedProvider != null && SelectedProvider.WebLink != null;75 }76 77 protected virtual void problemInstanceProviderComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {78 if (problemInstanceProviderComboBox.SelectedIndex >= 0) {79 dynamic provider = SelectedProvider;80 dynamic consumer = Content;81 provider.Consumer = consumer;82 problemInstanceProviderViewHost.Content = SelectedProvider;83 SetTooltip();84 }85 SetEnabledStateOfControls();86 }87 88 private void comboBox_DataSourceChanged(object sender, EventArgs e) {89 var comboBox = (ComboBox)sender;90 if (comboBox.DataSource == null)91 comboBox.Items.Clear();92 }93 94 protected virtual void libraryInfoButton_Click(object sender, EventArgs e) {95 if (problemInstanceProviderComboBox.SelectedIndex >= 0) {96 if (SelectedProvider != null && SelectedProvider.WebLink != null)97 Process.Start(SelectedProvider.WebLink.ToString());98 }99 }100 101 protected virtual IEnumerable<IProblemInstanceProvider> GetProblemInstanceProviders() {102 var consumerTypes = Content.GetType().GetInterfaces()103 .Where(x => x.IsGenericType104 && x.GetGenericTypeDefinition() == typeof(IProblemInstanceConsumer<>));105 106 if (consumerTypes.Any()) {107 var instanceTypes = consumerTypes108 .Select(x => x.GetGenericArguments().First())109 .Select(x => typeof(IProblemInstanceProvider<>).MakeGenericType(x));110 111 foreach (var type in instanceTypes) {112 foreach (var provider in ApplicationManager.Manager.GetInstances(type))113 yield return (IProblemInstanceProvider)provider;114 }115 }116 }117 118 protected virtual void SetTooltip() {119 toolTip.SetToolTip(problemInstanceProviderComboBox, GetProviderToolTip());120 if (SelectedProvider.WebLink != null)121 toolTip.SetToolTip(libraryInfoButton, "Browse to " + SelectedProvider.WebLink.ToString());122 else toolTip.SetToolTip(libraryInfoButton, "Library does not have a web reference.");123 }124 125 protected virtual string GetProviderToolTip() {126 var provider = SelectedProvider;127 string toolTip = provider.Name;128 129 if (!String.IsNullOrEmpty(provider.ReferencePublication)) {130 toolTip = toolTip131 + Environment.NewLine + Environment.NewLine132 + provider.ReferencePublication;133 }134 if (provider.WebLink != null) {135 toolTip = toolTip136 + Environment.NewLine137 + provider.WebLink.ToString();138 }139 140 return toolTip;141 }142 69 } 143 70 } -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.Designer.cs
r7259 r8085 46 46 private void InitializeComponent() { 47 47 components = new System.ComponentModel.Container(); 48 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;48 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 49 49 } 50 50 -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ResultValueView.Designer.cs
r7259 r8085 81 81 // 82 82 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 83 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;83 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 84 84 this.Controls.Add(this.infoLabel); 85 85 this.Controls.Add(this.viewHost); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/ResultView.Designer.cs
r7259 r8085 127 127 // 128 128 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 129 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;129 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 130 130 this.Controls.Add(this.valueGroupBox); 131 131 this.Controls.Add(this.dataTypeLabel); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionColumnConstraintView.Designer.cs
r7469 r8085 118 118 // 119 119 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 120 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;120 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 121 121 this.Controls.Add(this.cmbConstraintColumn); 122 122 this.Controls.Add(this.chbActive); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionComparisonConstraintView.Designer.cs
r7469 r8085 71 71 // 72 72 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 73 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;73 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 74 74 this.Controls.Add(this.txtConstraintData); 75 75 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionConstraintCollectionView.Designer.cs
r7469 r8085 46 46 private void InitializeComponent() { 47 47 components = new System.ComponentModel.Container(); 48 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;48 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 49 49 } 50 50 -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionContentConstraintView.Designer.cs
r7469 r8085 76 76 // 77 77 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 78 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;78 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 79 79 this.Controls.Add(this.runsView); 80 80 this.Controls.Add(this.chbActive); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionEqualityConstraintView.Designer.cs
r7469 r8085 61 61 // 62 62 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 63 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;63 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 64 64 this.Controls.Add(this.txtConstraintData); 65 65 this.Name = "RunCollectionEqualityConstraintView"; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionTypeCompatibilityConstraintView.Designer.cs
r7469 r8085 63 63 // 64 64 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 65 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;65 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 66 66 this.Controls.Add(this.cmbType); 67 67 this.Name = "RunCollectionTypeCompatibilityConstraintView"; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionModifierListView.Designer.cs
r7259 r8085 48 48 private void InitializeComponent() { 49 49 components = new System.ComponentModel.Container(); 50 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;50 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 51 51 this.evaluateButton = new System.Windows.Forms.Button(); 52 52 this.SuspendLayout(); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.Designer.cs
r7469 r8085 209 209 // 210 210 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 211 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;211 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 212 212 this.BackColor = System.Drawing.SystemColors.Window; 213 213 this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.Designer.cs
r7469 r8085 329 329 // 330 330 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 331 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;331 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 332 332 this.BackColor = System.Drawing.SystemColors.Window; 333 333 this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/RunView.Designer.cs
r7259 r8085 247 247 // 248 248 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 249 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;249 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 250 250 this.Controls.Add(this.colorArea); 251 251 this.Controls.Add(this.showDetailsCheckBox); -
branches/GP-MoveOperators/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs
r7259 r8085 141 141 // 142 142 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 143 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode. Font;143 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 144 144 this.Name = "UserDefinedAlgorithmView"; 145 145 this.engineTabPage.ResumeLayout(false);
Note: See TracChangeset
for help on using the changeset viewer.