Changeset 7641
- Timestamp:
- 03/20/12 17:26:56 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r7558 r7641 264 264 <DependentUpon>EngineAlgorithmView.cs</DependentUpon> 265 265 </Compile> 266 <Compile Include="HeuristicOptimizationProblemView.cs">267 <SubType>UserControl</SubType>268 </Compile>269 <Compile Include="HeuristicOptimizationProblemView.Designer.cs">270 <DependentUpon>HeuristicOptimizationProblemView.cs</DependentUpon>271 </Compile>272 266 <Compile Include="Properties\AssemblyInfo.cs" /> 273 267 <Compile Include="ResultCollectionView.cs"> -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ProblemInstanceProviderView.cs
r7558 r7641 45 45 toolTip.SetToolTip(importButton, "Import a " + GetProblemType() + " instance from file."); 46 46 loadButton.Text = String.Empty; 47 loadButton.Image = VSImageLibrary. Checkout;47 loadButton.Image = VSImageLibrary.RefreshDocument; 48 48 toolTip.SetToolTip(loadButton, "Load the selected instance."); 49 49 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ProblemView.Designer.cs
r7259 r7641 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 this.problemInstanceSplitContainer = new System.Windows.Forms.SplitContainer(); 51 this.problemInstanceProviderViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 47 52 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).BeginInit(); 54 this.problemInstanceSplitContainer.Panel1.SuspendLayout(); 55 this.problemInstanceSplitContainer.Panel2.SuspendLayout(); 56 this.problemInstanceSplitContainer.SuspendLayout(); 48 57 this.SuspendLayout(); 58 // 59 // parameterCollectionView 60 // 61 this.parameterCollectionView.Location = new System.Drawing.Point(6, 27); 62 this.parameterCollectionView.Size = new System.Drawing.Size(501, 303); 49 63 // 50 64 // nameTextBox … … 52 66 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 53 67 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 68 this.nameTextBox.Location = new System.Drawing.Point(47, 1); 69 this.nameTextBox.Size = new System.Drawing.Size(438, 20); 70 // 71 // nameLabel 72 // 73 this.nameLabel.Location = new System.Drawing.Point(3, 6); 74 // 75 // infoLabel 76 // 77 this.infoLabel.Location = new System.Drawing.Point(491, 4); 78 // 79 // problemInstanceProviderComboBox 80 // 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 // libraryLabel 91 // 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 // libraryInfoButton 100 // 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 // problemInstanceSplitContainer 110 // 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 | System.Windows.Forms.AnchorStyles.Right))); 114 this.problemInstanceSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 115 this.problemInstanceSplitContainer.IsSplitterFixed = true; 116 this.problemInstanceSplitContainer.Location = new System.Drawing.Point(0, 0); 117 this.problemInstanceSplitContainer.Name = "problemInstanceSplitContainer"; 118 this.problemInstanceSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; 119 // 120 // problemInstanceSplitContainer.Panel1 121 // 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); 126 this.problemInstanceSplitContainer.Panel1MinSize = 10; 127 // 128 // problemInstanceSplitContainer.Panel2 129 // 130 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.nameLabel); 131 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.nameTextBox); 132 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.parameterCollectionView); 133 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.infoLabel); 134 this.problemInstanceSplitContainer.Size = new System.Drawing.Size(511, 363); 135 this.problemInstanceSplitContainer.SplitterDistance = 26; 136 this.problemInstanceSplitContainer.TabIndex = 13; 137 // 138 // problemInstanceProviderViewHost 139 // 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; 54 152 // 55 153 // ProblemView … … 57 155 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 58 156 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 157 this.Controls.Add(this.problemInstanceSplitContainer); 59 158 this.Name = "ProblemView"; 159 this.Size = new System.Drawing.Size(511, 363); 60 160 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 161 this.problemInstanceSplitContainer.Panel1.ResumeLayout(false); 162 this.problemInstanceSplitContainer.Panel1.PerformLayout(); 163 this.problemInstanceSplitContainer.Panel2.ResumeLayout(false); 164 this.problemInstanceSplitContainer.Panel2.PerformLayout(); 165 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).EndInit(); 166 this.problemInstanceSplitContainer.ResumeLayout(false); 61 167 this.ResumeLayout(false); 62 this.PerformLayout();63 168 64 169 } … … 66 171 #endregion 67 172 68 173 protected System.Windows.Forms.ComboBox problemInstanceProviderComboBox; 174 protected System.Windows.Forms.Label libraryLabel; 175 protected System.Windows.Forms.Button libraryInfoButton; 176 protected System.Windows.Forms.SplitContainer problemInstanceSplitContainer; 177 protected MainForm.WindowsForms.ViewHost problemInstanceProviderViewHost; 69 178 } 70 179 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ProblemView.cs
r7259 r7641 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Diagnostics; 25 using System.Linq; 26 using System.Windows.Forms; 27 using HeuristicLab.Common.Resources; 22 28 using HeuristicLab.Core.Views; 23 29 using HeuristicLab.MainForm; 30 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.Problems.Instances; 24 32 25 33 namespace HeuristicLab.Optimization.Views { … … 35 43 } 36 44 45 protected IProblemInstanceProvider SelectedProvider { 46 get { return (problemInstanceProviderComboBox.SelectedIndex >= 0 ? (IProblemInstanceProvider)problemInstanceProviderComboBox.SelectedItem : null); } 47 } 48 37 49 /// <summary> 38 50 /// Initializes a new instance of <see cref="ItemBaseView"/>. … … 40 52 public ProblemView() { 41 53 InitializeComponent(); 54 libraryInfoButton.Text = String.Empty; 55 libraryInfoButton.Image = VSImageLibrary.Internet; 42 56 } 43 57 44 58 protected override void OnContentChanged() { 45 59 base.OnContentChanged(); 60 if (Content == null) { 61 problemInstanceProviderComboBox.DataSource = null; 62 } else { 63 problemInstanceProviderComboBox.DisplayMember = "Name"; 64 problemInstanceProviderComboBox.DataSource = GetProblemInstanceProviders().ToList(); 65 problemInstanceSplitContainer.Panel1Collapsed = problemInstanceProviderComboBox.Items.Count <= 0; 66 67 } 68 SetEnabledStateOfControls(); 69 } 70 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.IsGenericType 104 && x.GetGenericTypeDefinition() == typeof(IProblemInstanceConsumer<>)); 105 106 if (consumerTypes.Any()) { 107 var instanceTypes = consumerTypes 108 .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 = toolTip 131 + Environment.NewLine + Environment.NewLine 132 + provider.ReferencePublication; 133 } 134 if (provider.WebLink != null) { 135 toolTip = toolTip 136 + Environment.NewLine 137 + provider.WebLink.ToString(); 138 } 139 140 return toolTip; 46 141 } 47 142 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.Designer.cs
r7259 r7641 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); 47 48 this.ImportButton = new System.Windows.Forms.Button(); 48 this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); 49 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).BeginInit(); 50 this.problemInstanceSplitContainer.Panel1.SuspendLayout(); 51 this.problemInstanceSplitContainer.Panel2.SuspendLayout(); 52 this.problemInstanceSplitContainer.SuspendLayout(); 49 53 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 50 54 this.SuspendLayout(); 51 55 // 56 // libraryInfoButton 57 // 58 this.libraryInfoButton.Location = new System.Drawing.Point(224, 1); 59 // 60 // problemInstanceSplitContainer 61 // 62 // 63 // problemInstanceSplitContainer.Panel2 64 // 65 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.ImportButton); 66 // 52 67 // parameterCollectionView 53 68 // 54 this.parameterCollectionView.Location = new System.Drawing.Point(3, 55); 55 this.parameterCollectionView.Size = new System.Drawing.Size(490, 279); 56 this.parameterCollectionView.TabIndex = 4; 69 this.parameterCollectionView.Location = new System.Drawing.Point(6, 56); 70 this.parameterCollectionView.Size = new System.Drawing.Size(501, 274); 57 71 // 58 72 // nameTextBox … … 60 74 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 61 75 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 62 this.nameTextBox.Size = new System.Drawing.Size(409, 20);63 //64 // infoLabel65 //66 this.infoLabel.Location = new System.Drawing.Point(474, 3);67 //68 // ImportButton69 //70 this.ImportButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)71 | System.Windows.Forms.AnchorStyles.Right)));72 this.ImportButton.Location = new System.Drawing.Point(0, 26);73 this.ImportButton.Name = "ImportButton";74 this.ImportButton.Size = new System.Drawing.Size(493, 23);75 this.ImportButton.TabIndex = 3;76 this.ImportButton.Text = "Import from CSV file";77 this.ImportButton.UseVisualStyleBackColor = true;78 this.ImportButton.Click += new System.EventHandler(this.ImportButton_Click);79 76 // 80 77 // openFileDialog … … 83 80 this.openFileDialog.Title = "Import data..."; 84 81 // 82 // ImportButton 83 // 84 this.ImportButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 85 | System.Windows.Forms.AnchorStyles.Right))); 86 this.ImportButton.Location = new System.Drawing.Point(6, 27); 87 this.ImportButton.Name = "ImportButton"; 88 this.ImportButton.Size = new System.Drawing.Size(501, 23); 89 this.ImportButton.TabIndex = 14; 90 this.ImportButton.Text = "Import from CSV file"; 91 this.ImportButton.UseVisualStyleBackColor = true; 92 this.ImportButton.Click += new System.EventHandler(this.ImportButton_Click); 93 // 85 94 // DataAnalysisProblemView 86 95 // 87 96 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 88 97 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 89 this.Controls.Add(this.ImportButton);90 98 this.Name = "DataAnalysisProblemView"; 91 this. Size = new System.Drawing.Size(493, 334);92 this. Controls.SetChildIndex(this.ImportButton, 0);93 this. Controls.SetChildIndex(this.infoLabel, 0);94 this. Controls.SetChildIndex(this.nameTextBox, 0);95 this.Controls.SetChildIndex(this.nameLabel, 0);96 this. Controls.SetChildIndex(this.parameterCollectionView, 0);99 this.problemInstanceSplitContainer.Panel1.ResumeLayout(false); 100 this.problemInstanceSplitContainer.Panel1.PerformLayout(); 101 this.problemInstanceSplitContainer.Panel2.ResumeLayout(false); 102 this.problemInstanceSplitContainer.Panel2.PerformLayout(); 103 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).EndInit(); 104 this.problemInstanceSplitContainer.ResumeLayout(false); 97 105 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 98 106 this.ResumeLayout(false); 99 this.PerformLayout();100 107 101 108 } … … 103 110 #endregion 104 111 112 private System.Windows.Forms.OpenFileDialog openFileDialog; 105 113 private System.Windows.Forms.Button ImportButton; 106 private System.Windows.Forms.OpenFileDialog openFileDialog;107 114 } 108 115 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r7500 r7641 257 257 <DependentUpon>RegressionSolutionScatterPlotView.cs</DependentUpon> 258 258 </Compile> 259 <Compile Include="DataAnalysisProblemView.cs"> 260 <SubType>UserControl</SubType> 261 </Compile> 262 <Compile Include="DataAnalysisProblemView.Designer.cs"> 263 <DependentUpon>DataAnalysisProblemView.cs</DependentUpon> 264 </Compile> 259 265 <None Include="HeuristicLab.snk" /> 260 266 <None Include="Plugin.cs.frame" /> 261 267 <None Include="Properties\AssemblyInfo.cs.frame" /> 262 <Compile Include="DataAnalysisProblemView.cs">263 <SubType>UserControl</SubType>264 </Compile>265 <Compile Include="DataAnalysisProblemView.Designer.cs">266 <DependentUpon>DataAnalysisProblemView.cs</DependentUpon>267 </Compile>268 268 <Compile Include="Properties\AssemblyInfo.cs" /> 269 269 </ItemGroup> -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/QuadraticAssignmentProblemView.Designer.cs
r7558 r7641 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.openFileDialog = new System.Windows.Forms.OpenFileDialog();48 47 this.tabControl = new System.Windows.Forms.TabControl(); 49 48 this.problemTabPage = new System.Windows.Forms.TabPage(); 50 49 this.visualizationTabPage = new System.Windows.Forms.TabPage(); 51 50 this.qapView = new HeuristicLab.Problems.QuadraticAssignment.Views.QAPVisualizationControl(); 51 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).BeginInit(); 52 this.problemInstanceSplitContainer.Panel1.SuspendLayout(); 53 this.problemInstanceSplitContainer.Panel2.SuspendLayout(); 54 this.problemInstanceSplitContainer.SuspendLayout(); 52 55 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 56 this.tabControl.SuspendLayout(); 57 this.problemTabPage.SuspendLayout(); 54 58 this.visualizationTabPage.SuspendLayout(); 55 59 this.SuspendLayout(); 56 60 // 61 // libraryInfoButton 62 // 63 this.libraryInfoButton.Location = new System.Drawing.Point(224, 1); 64 // 65 // problemInstanceSplitContainer 66 // 67 // 68 // problemInstanceSplitContainer.Panel2 69 // 70 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.tabControl); 71 // 57 72 // parameterCollectionView 58 73 // 59 this.parameterCollectionView.Location = new System.Drawing.Point( 8, 107);60 this.parameterCollectionView.Size = new System.Drawing.Size( 629, 375);74 this.parameterCollectionView.Location = new System.Drawing.Point(0, 3); 75 this.parameterCollectionView.Size = new System.Drawing.Size(497, 269); 61 76 // 62 77 // nameTextBox … … 64 79 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 65 80 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 66 this.nameTextBox.Location = new System.Drawing.Point(50, 29);67 this.nameTextBox.Size = new System.Drawing.Size(572, 20);68 //69 // nameLabel70 //71 this.nameLabel.Location = new System.Drawing.Point(3, 32);72 //73 // infoLabel74 //75 this.infoLabel.Location = new System.Drawing.Point(628, 32);76 //77 // openFileDialog78 //79 this.openFileDialog.FileName = "instance.dat";80 this.openFileDialog.Filter = "Dat files|*.dat|All files|*.*";81 81 // 82 82 // tabControl 83 83 // 84 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 85 | System.Windows.Forms.AnchorStyles.Left)86 | System.Windows.Forms.AnchorStyles.Right)));84 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 85 | System.Windows.Forms.AnchorStyles.Left) 86 | System.Windows.Forms.AnchorStyles.Right))); 87 87 this.tabControl.Controls.Add(this.problemTabPage); 88 88 this.tabControl.Controls.Add(this.visualizationTabPage); 89 this.tabControl.Location = new System.Drawing.Point(0, 55);89 this.tabControl.Location = new System.Drawing.Point(0, 29); 90 90 this.tabControl.Name = "tabControl"; 91 91 this.tabControl.SelectedIndex = 0; 92 this.tabControl.Size = new System.Drawing.Size( 647, 437);92 this.tabControl.Size = new System.Drawing.Size(511, 304); 93 93 this.tabControl.TabIndex = 8; 94 94 // 95 95 // problemTabPage 96 96 // 97 this.problemTabPage.Controls.Add(this.parameterCollectionView); 97 98 this.problemTabPage.Location = new System.Drawing.Point(4, 22); 98 99 this.problemTabPage.Name = "problemTabPage"; 99 100 this.problemTabPage.Padding = new System.Windows.Forms.Padding(3); 100 this.problemTabPage.Size = new System.Drawing.Size( 639, 411);101 this.problemTabPage.Size = new System.Drawing.Size(503, 278); 101 102 this.problemTabPage.TabIndex = 0; 102 103 this.problemTabPage.Text = "Problem"; … … 109 110 this.visualizationTabPage.Name = "visualizationTabPage"; 110 111 this.visualizationTabPage.Padding = new System.Windows.Forms.Padding(3); 111 this.visualizationTabPage.Size = new System.Drawing.Size( 639, 411);112 this.visualizationTabPage.Size = new System.Drawing.Size(503, 278); 112 113 this.visualizationTabPage.TabIndex = 1; 113 114 this.visualizationTabPage.Text = "Visualization"; … … 121 122 this.qapView.Location = new System.Drawing.Point(3, 3); 122 123 this.qapView.Name = "qapView"; 123 this.qapView.Size = new System.Drawing.Size( 633, 405);124 this.qapView.Size = new System.Drawing.Size(497, 272); 124 125 this.qapView.TabIndex = 0; 125 126 this.qapView.Weights = null; … … 129 130 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 130 131 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 131 this.Controls.Add(this.tabControl);132 132 this.Name = "QuadraticAssignmentProblemView"; 133 this. Size = new System.Drawing.Size(647, 492);134 this. Controls.SetChildIndex(this.tabControl, 0);135 this. Controls.SetChildIndex(this.infoLabel, 0);136 this. Controls.SetChildIndex(this.parameterCollectionView, 0);137 this.Controls.SetChildIndex(this.nameLabel, 0);138 this. Controls.SetChildIndex(this.nameTextBox, 0);133 this.problemInstanceSplitContainer.Panel1.ResumeLayout(false); 134 this.problemInstanceSplitContainer.Panel1.PerformLayout(); 135 this.problemInstanceSplitContainer.Panel2.ResumeLayout(false); 136 this.problemInstanceSplitContainer.Panel2.PerformLayout(); 137 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).EndInit(); 138 this.problemInstanceSplitContainer.ResumeLayout(false); 139 139 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 140 140 this.tabControl.ResumeLayout(false); 141 this.problemTabPage.ResumeLayout(false); 141 142 this.visualizationTabPage.ResumeLayout(false); 142 143 this.ResumeLayout(false); 143 this.PerformLayout();144 144 145 145 } … … 147 147 #endregion 148 148 149 private System.Windows.Forms.OpenFileDialog openFileDialog;150 149 private System.Windows.Forms.TabControl tabControl; 151 150 private System.Windows.Forms.TabPage problemTabPage; -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/QuadraticAssignmentProblemView.cs
r7558 r7641 29 29 [View("Quadratic Assignment Problem View")] 30 30 [Content(typeof(QuadraticAssignmentProblem), IsDefaultView = true)] 31 public sealed partial class QuadraticAssignmentProblemView : HeuristicOptimizationProblemView {31 public sealed partial class QuadraticAssignmentProblemView : ProblemView { 32 32 public new QuadraticAssignmentProblem Content { 33 33 get { return (QuadraticAssignmentProblem)base.Content; } -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
r7626 r7641 362 362 var weights = new DoubleMatrix(data.Weights); 363 363 var distances = new DoubleMatrix(data.Distances); 364 Name = data.Name; 365 Description = data.Description; 364 366 Load(weights, distances); 365 367 EvaluateAndLoadAssignment(data.BestKnownAssignment); … … 374 376 weights[i, (i + 1) % data.Dimension] = 1; 375 377 var distances = new DoubleMatrix(data.GetDistanceMatrix()); 378 Name = data.Name; 379 Description = data.Description; 376 380 Load(weights, distances); 377 381 EvaluateAndLoadAssignment(data.BestKnownTour); -
trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/TravelingSalesmanProblemView.Designer.cs
r7558 r7641 45 45 this.visualizationTabPage = new System.Windows.Forms.TabPage(); 46 46 this.pathTSPTourView = new HeuristicLab.Problems.TravelingSalesman.Views.PathTSPTourView(); 47 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).BeginInit(); 48 this.problemInstanceSplitContainer.Panel1.SuspendLayout(); 49 this.problemInstanceSplitContainer.Panel2.SuspendLayout(); 50 this.problemInstanceSplitContainer.SuspendLayout(); 47 51 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 48 52 this.tabControl.SuspendLayout(); … … 51 55 this.SuspendLayout(); 52 56 // 53 // problemInstanceProviderViewHost57 // libraryInfoButton 54 58 // 55 this.problemInstanceProviderViewHost.Size = new System.Drawing.Size(270, 21); 59 this.libraryInfoButton.Location = new System.Drawing.Point(224, 1); 60 // 61 // problemInstanceSplitContainer 62 // 63 // 64 // problemInstanceSplitContainer.Panel2 65 // 66 this.problemInstanceSplitContainer.Panel2.Controls.Add(this.tabControl); 56 67 // 57 68 // parameterCollectionView … … 60 71 this.parameterCollectionView.Dock = System.Windows.Forms.DockStyle.Fill; 61 72 this.parameterCollectionView.Location = new System.Drawing.Point(3, 3); 62 this.parameterCollectionView.Size = new System.Drawing.Size( 515, 332);73 this.parameterCollectionView.Size = new System.Drawing.Size(497, 274); 63 74 // 64 75 // nameTextBox … … 66 77 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 67 78 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 68 this.nameTextBox.Size = new System.Drawing.Size(454, 20);69 //70 // infoLabel71 //72 this.infoLabel.Location = new System.Drawing.Point(510, 35);73 79 // 74 80 // tabControl 75 81 // 76 82 this.tabControl.AllowDrop = true; 77 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 78 | System.Windows.Forms.AnchorStyles.Left)79 | System.Windows.Forms.AnchorStyles.Right)));83 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 84 | System.Windows.Forms.AnchorStyles.Left) 85 | System.Windows.Forms.AnchorStyles.Right))); 80 86 this.tabControl.Controls.Add(this.parametersTabPage); 81 87 this.tabControl.Controls.Add(this.visualizationTabPage); 82 this.tabControl.Location = new System.Drawing.Point(0, 58);88 this.tabControl.Location = new System.Drawing.Point(0, 27); 83 89 this.tabControl.Name = "tabControl"; 84 90 this.tabControl.SelectedIndex = 0; 85 this.tabControl.Size = new System.Drawing.Size(5 29, 364);91 this.tabControl.Size = new System.Drawing.Size(511, 306); 86 92 this.tabControl.TabIndex = 4; 87 93 // … … 92 98 this.parametersTabPage.Name = "parametersTabPage"; 93 99 this.parametersTabPage.Padding = new System.Windows.Forms.Padding(3); 94 this.parametersTabPage.Size = new System.Drawing.Size(5 21, 338);100 this.parametersTabPage.Size = new System.Drawing.Size(503, 280); 95 101 this.parametersTabPage.TabIndex = 0; 96 102 this.parametersTabPage.Text = "Parameters"; … … 103 109 this.visualizationTabPage.Name = "visualizationTabPage"; 104 110 this.visualizationTabPage.Padding = new System.Windows.Forms.Padding(3); 105 this.visualizationTabPage.Size = new System.Drawing.Size(5 21, 338);111 this.visualizationTabPage.Size = new System.Drawing.Size(503, 280); 106 112 this.visualizationTabPage.TabIndex = 1; 107 113 this.visualizationTabPage.Text = "Visualization"; … … 110 116 // pathTSPTourView 111 117 // 112 this.pathTSPTourView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 113 | System.Windows.Forms.AnchorStyles.Left)114 | System.Windows.Forms.AnchorStyles.Right)));118 this.pathTSPTourView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 119 | System.Windows.Forms.AnchorStyles.Left) 120 | System.Windows.Forms.AnchorStyles.Right))); 115 121 this.pathTSPTourView.Caption = "PathTSPTour View"; 116 122 this.pathTSPTourView.Content = null; … … 118 124 this.pathTSPTourView.Name = "pathTSPTourView"; 119 125 this.pathTSPTourView.ReadOnly = false; 120 this.pathTSPTourView.Size = new System.Drawing.Size( 509, 329);126 this.pathTSPTourView.Size = new System.Drawing.Size(491, 268); 121 127 this.pathTSPTourView.TabIndex = 0; 122 128 // … … 125 131 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 126 132 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 127 this.Controls.Add(this.tabControl);128 133 this.Name = "TravelingSalesmanProblemView"; 129 this.Size = new System.Drawing.Size(529, 422); 130 this.Controls.SetChildIndex(this.libraryInfoButton, 0); 131 this.Controls.SetChildIndex(this.libraryLabel, 0); 132 this.Controls.SetChildIndex(this.problemInstanceProviderComboBox, 0); 133 this.Controls.SetChildIndex(this.problemInstanceProviderViewHost, 0); 134 this.Controls.SetChildIndex(this.infoLabel, 0); 135 this.Controls.SetChildIndex(this.nameTextBox, 0); 136 this.Controls.SetChildIndex(this.tabControl, 0); 137 this.Controls.SetChildIndex(this.nameLabel, 0); 134 this.problemInstanceSplitContainer.Panel1.ResumeLayout(false); 135 this.problemInstanceSplitContainer.Panel1.PerformLayout(); 136 this.problemInstanceSplitContainer.Panel2.ResumeLayout(false); 137 this.problemInstanceSplitContainer.Panel2.PerformLayout(); 138 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceSplitContainer)).EndInit(); 139 this.problemInstanceSplitContainer.ResumeLayout(false); 138 140 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 139 141 this.tabControl.ResumeLayout(false); … … 141 143 this.visualizationTabPage.ResumeLayout(false); 142 144 this.ResumeLayout(false); 143 this.PerformLayout();144 145 145 146 } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/TravelingSalesmanProblemView.cs
r7558 r7641 31 31 [View("Traveling Salesman Problem View")] 32 32 [Content(typeof(TravelingSalesmanProblem), true)] 33 public sealed partial class TravelingSalesmanProblemView : HeuristicOptimizationProblemView {33 public sealed partial class TravelingSalesmanProblemView : ProblemView { 34 34 public new TravelingSalesmanProblem Content { 35 35 get { return (TravelingSalesmanProblem)base.Content; }
Note: See TracChangeset
for help on using the changeset viewer.