- Timestamp:
- 11/02/14 03:03:21 (10 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3
- Files:
-
- 2 added
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/### obsolete/ServiceParameterView.cs
r11500 r11519 112 112 typeSelectorDialog = new TypeSelectorDialog(); 113 113 typeSelectorDialog.Caption = "Select Value"; 114 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);115 114 } 115 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true); 116 116 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { 117 117 try { -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/AlgorithmNodeView.Designer.cs
r11409 r11519 34 34 /// </summary> 35 35 private void InitializeComponent() { 36 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AlgorithmNodeView)); 36 37 this.portCollectionView = new HeuristicLab.Optimization.Networks.Views.PortCollectionView(); 37 38 this.tabControl = new HeuristicLab.MainForm.WindowsForms.DragOverTabControl(); … … 42 43 this.clearAlgorithmButton = new System.Windows.Forms.Button(); 43 44 this.setAlgorithmButton = new System.Windows.Forms.Button(); 45 this.runsTabPage = new System.Windows.Forms.TabPage(); 46 this.runCollectionView = new HeuristicLab.Optimization.Views.RunCollectionView(); 44 47 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 45 48 this.tabControl.SuspendLayout(); … … 47 50 this.algorithmTabPage.SuspendLayout(); 48 51 this.algorithmPanel.SuspendLayout(); 52 this.runsTabPage.SuspendLayout(); 49 53 this.SuspendLayout(); 50 54 // … … 56 60 // portCollectionView 57 61 // 58 this.portCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 59 | System.Windows.Forms.AnchorStyles.Left) 62 this.portCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 63 | System.Windows.Forms.AnchorStyles.Left) 60 64 | System.Windows.Forms.AnchorStyles.Right))); 61 65 this.portCollectionView.Caption = "PortCollection View"; … … 70 74 // tabControl 71 75 // 72 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 73 | System.Windows.Forms.AnchorStyles.Left) 76 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) 74 79 | System.Windows.Forms.AnchorStyles.Right))); 75 80 this.tabControl.Controls.Add(this.portsTabPage); 76 81 this.tabControl.Controls.Add(this.algorithmTabPage); 82 this.tabControl.Controls.Add(this.runsTabPage); 77 83 this.tabControl.Location = new System.Drawing.Point(0, 26); 78 84 this.tabControl.Name = "tabControl"; … … 108 114 // 109 115 this.algorithmPanel.AllowDrop = true; 110 this.algorithmPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 111 | System.Windows.Forms.AnchorStyles.Left) 116 this.algorithmPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 117 | System.Windows.Forms.AnchorStyles.Left) 112 118 | System.Windows.Forms.AnchorStyles.Right))); 113 119 this.algorithmPanel.Controls.Add(this.algorithmViewHost); … … 153 159 this.setAlgorithmButton.UseVisualStyleBackColor = true; 154 160 this.setAlgorithmButton.Click += new System.EventHandler(this.setAlgorithmButton_Click); 161 // 162 // runsTabPage 163 // 164 this.runsTabPage.Controls.Add(this.runCollectionView); 165 this.runsTabPage.Location = new System.Drawing.Point(4, 22); 166 this.runsTabPage.Name = "runsTabPage"; 167 this.runsTabPage.Size = new System.Drawing.Size(637, 465); 168 this.runsTabPage.TabIndex = 2; 169 this.runsTabPage.Text = "Runs"; 170 this.runsTabPage.UseVisualStyleBackColor = true; 171 // 172 // runCollectionView 173 // 174 this.runCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 175 | System.Windows.Forms.AnchorStyles.Left) 176 | System.Windows.Forms.AnchorStyles.Right))); 177 this.runCollectionView.Caption = "RunCollection View"; 178 this.runCollectionView.Content = null; 179 this.runCollectionView.Location = new System.Drawing.Point(3, 3); 180 this.runCollectionView.Name = "runCollectionView"; 181 this.runCollectionView.ReadOnly = false; 182 this.runCollectionView.Size = new System.Drawing.Size(631, 459); 183 this.runCollectionView.TabIndex = 0; 155 184 // 156 185 // AlgorithmNodeView … … 168 197 this.algorithmTabPage.ResumeLayout(false); 169 198 this.algorithmPanel.ResumeLayout(false); 199 this.runsTabPage.ResumeLayout(false); 170 200 this.ResumeLayout(false); 171 201 this.PerformLayout(); … … 183 213 protected System.Windows.Forms.TabPage algorithmTabPage; 184 214 protected MainForm.WindowsForms.ViewHost algorithmViewHost; 215 protected System.Windows.Forms.TabPage runsTabPage; 216 protected Optimization.Views.RunCollectionView runCollectionView; 185 217 186 218 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/AlgorithmNodeView.cs
r11452 r11519 64 64 portCollectionView.Content = null; 65 65 algorithmViewHost.Content = null; 66 runCollectionView.Content = null; 66 67 } else { 67 68 portCollectionView.Content = Content.Ports; 68 69 algorithmViewHost.ViewType = null; 69 70 algorithmViewHost.Content = Content.Algorithm; 71 runCollectionView.Content = Content.Runs; 70 72 } 71 73 } … … 77 79 clearAlgorithmButton.Enabled = Content != null && Content.Algorithm != null && !ReadOnly; 78 80 algorithmPanel.Enabled = Content != null; 81 runCollectionView.Enabled = Content != null && !ReadOnly; 79 82 } 80 83 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/GenericPortView.Designer.cs
r11501 r11519 43 43 this.portParameterCollectionView = new HeuristicLab.Optimization.Networks.Views.PortParameterCollectionView(); 44 44 this.messageCollectionView = new HeuristicLab.Optimization.Networks.Views.MessageCollectionView(); 45 this.logMessagesCheckBox = new System.Windows.Forms.CheckBox(); 45 46 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 46 47 this.connectedPortGroupBox.SuspendLayout(); … … 79 80 this.setConnectedPortButton.Size = new System.Drawing.Size(24, 24); 80 81 this.setConnectedPortButton.TabIndex = 0; 82 this.toolTip.SetToolTip(this.setConnectedPortButton, "Set Connected Port"); 81 83 this.setConnectedPortButton.UseVisualStyleBackColor = true; 82 84 this.setConnectedPortButton.Click += new System.EventHandler(this.setConnectedPortButton_Click); … … 89 91 this.clearConnectedPortButton.Size = new System.Drawing.Size(24, 24); 90 92 this.clearConnectedPortButton.TabIndex = 1; 93 this.toolTip.SetToolTip(this.clearConnectedPortButton, "Remove Connected Port"); 91 94 this.clearConnectedPortButton.UseVisualStyleBackColor = true; 92 95 this.clearConnectedPortButton.Click += new System.EventHandler(this.clearConnectedPortButton_Click); … … 146 149 // splitContainer.Panel2 147 150 // 151 this.splitContainer.Panel2.Controls.Add(this.logMessagesCheckBox); 148 152 this.splitContainer.Panel2.Controls.Add(this.messageCollectionView); 149 153 this.splitContainer.Size = new System.Drawing.Size(645, 435); … … 174 178 this.messageCollectionView.Size = new System.Drawing.Size(645, 213); 175 179 this.messageCollectionView.TabIndex = 0; 180 // 181 // logMessagesCheckBox 182 // 183 this.logMessagesCheckBox.AutoSize = true; 184 this.logMessagesCheckBox.Location = new System.Drawing.Point(156, 24); 185 this.logMessagesCheckBox.Name = "logMessagesCheckBox"; 186 this.logMessagesCheckBox.Size = new System.Drawing.Size(95, 17); 187 this.logMessagesCheckBox.TabIndex = 1; 188 this.logMessagesCheckBox.Text = "&Log Messages"; 189 this.logMessagesCheckBox.UseVisualStyleBackColor = true; 190 this.logMessagesCheckBox.CheckedChanged += new System.EventHandler(this.logMessagesCheckBox_CheckedChanged); 176 191 // 177 192 // GenericPortView … … 194 209 this.splitContainer.Panel1.ResumeLayout(false); 195 210 this.splitContainer.Panel2.ResumeLayout(false); 211 this.splitContainer.Panel2.PerformLayout(); 196 212 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); 197 213 this.splitContainer.ResumeLayout(false); … … 212 228 protected PortParameterCollectionView portParameterCollectionView; 213 229 protected MessageCollectionView messageCollectionView; 230 protected System.Windows.Forms.CheckBox logMessagesCheckBox; 214 231 215 232 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/GenericPortView.cs
r11501 r11519 52 52 53 53 protected override void DeregisterContentEvents() { 54 Content.InterfaceChanged -= Content_InterfaceChanged;55 54 Content.ConnectedPortChanged -= Content_ConnectedPortChanged; 55 Content.PortConnectionValidChanged -= Content_PortConnectionValidChanged; 56 Content.LogMessagesChanged -= Content_LogMessagesChanged; 56 57 base.DeregisterContentEvents(); 57 58 } 58 59 protected override void RegisterContentEvents() { 59 60 base.RegisterContentEvents(); 60 Content.InterfaceChanged += Content_InterfaceChanged;61 61 Content.ConnectedPortChanged += Content_ConnectedPortChanged; 62 Content.PortConnectionValidChanged += Content_PortConnectionValidChanged; 63 Content.LogMessagesChanged += Content_LogMessagesChanged; 62 64 } 63 65 … … 66 68 connectedPortView.Content = Content == null ? null : Content.ConnectedPort; 67 69 portParameterCollectionView.Content = Content == null ? null : Content.Parameters; 70 logMessagesCheckBox.Checked = Content == null ? false : Content.LogMessages; 68 71 messageCollectionView.Content = Content == null ? null : Content.Messages; 69 72 errorProvider.SetError(connectedPortView, ((Content == null) || Content.PortConnectionValid) ? string.Empty : "Port connection is not valid"); … … 78 81 portParameterCollectionView.Enabled = Content != null && !ReadOnly; 79 82 cloneConnectedPortParametersButton.Enabled = Content != null && Content.ConnectedPort != null && !ReadOnly; 83 logMessagesCheckBox.Enabled = Content != null && !ReadOnly; 80 84 messageCollectionView.Enabled = Content != null && !ReadOnly; 81 85 } … … 90 94 } 91 95 } 92 protected virtual void Content_ InterfaceChanged(object sender, EventArgs e) {96 protected virtual void Content_PortConnectionValidChanged(object sender, EventArgs e) { 93 97 if (InvokeRequired) 94 Invoke(new EventHandler(Content_ InterfaceChanged), sender, e);98 Invoke(new EventHandler(Content_PortConnectionValidChanged), sender, e); 95 99 else { 96 100 errorProvider.SetError(connectedPortView, Content.PortConnectionValid ? string.Empty : "Port connection is not valid"); 101 } 102 } 103 protected virtual void Content_LogMessagesChanged(object sender, EventArgs e) { 104 if (InvokeRequired) 105 Invoke(new EventHandler(Content_LogMessagesChanged), sender, e); 106 else { 107 logMessagesCheckBox.Checked = Content.LogMessages; 97 108 } 98 109 } … … 148 159 Content.CloneConnectedPortParameters(); 149 160 } 161 protected virtual void logMessagesCheckBox_CheckedChanged(object sender, EventArgs e) { 162 Content.LogMessages = logMessagesCheckBox.Checked; 163 } 150 164 } 151 165 } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/HeuristicLab.Optimization.Networks.Views-3.3.csproj
r11501 r11519 151 151 <DependentUpon>ClientNodeView.cs</DependentUpon> 152 152 </Compile> 153 <Compile Include="AlgorithmServiceNodeView.cs">154 <SubType>UserControl</SubType>155 </Compile>156 <Compile Include="AlgorithmServiceNodeView.Designer.cs">157 <DependentUpon>AlgorithmServiceNodeView.cs</DependentUpon>158 </Compile>159 153 <Compile Include="GenericPortView.cs"> 160 154 <SubType>UserControl</SubType> … … 180 174 <Compile Include="GenericNodeView.Designer.cs"> 181 175 <DependentUpon>GenericNodeView.cs</DependentUpon> 176 </Compile> 177 <Compile Include="HookOperatorView.cs"> 178 <SubType>UserControl</SubType> 179 </Compile> 180 <Compile Include="HookOperatorView.Designer.cs"> 181 <DependentUpon>HookOperatorView.cs</DependentUpon> 182 182 </Compile> 183 183 <Compile Include="ParameterizedPortView.cs"> … … 306 306 <Name>HeuristicLab.MainForm-3.3</Name> 307 307 </ProjectReference> 308 <ProjectReference Include="..\..\HeuristicLab.Operators.Views\3.3\HeuristicLab.Operators.Views-3.3.csproj"> 309 <Project>{c49cb749-8b24-4628-8003-e86475749410}</Project> 310 <Name>HeuristicLab.Operators.Views-3.3</Name> 311 </ProjectReference> 312 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 313 <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project> 314 <Name>HeuristicLab.Operators-3.3</Name> 315 </ProjectReference> 308 316 <ProjectReference Include="..\..\HeuristicLab.Optimization.Networks\3.3\HeuristicLab.Optimization.Networks-3.3.csproj"> 309 317 <Project>{7cf51332-0e37-447c-8017-82a258c59ef2}</Project> -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Plugin.cs.frame
r11463 r11519 36 36 [PluginDependency("HeuristicLab.MainForm", "3.3")] 37 37 [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")] 38 [PluginDependency("HeuristicLab.Operators", "3.3")] 39 [PluginDependency("HeuristicLab.Operators.Views", "3.3")] 38 40 [PluginDependency("HeuristicLab.Optimization", "3.3")] 39 41 [PluginDependency("HeuristicLab.Optimization.Views", "3.3")] -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/PortParameterView.cs
r11500 r11519 119 119 typeSelectorDialog = new TypeSelectorDialog(); 120 120 typeSelectorDialog.Caption = "Select Default Value"; 121 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);122 121 } 122 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true); 123 123 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { 124 124 try {
Note: See TracChangeset
for help on using the changeset viewer.