- Timestamp:
- 11/10/14 04:24:04 (10 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3
- Files:
-
- 2 added
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/MessagePortView.Designer.cs
r11527 r11530 21 21 22 22 namespace HeuristicLab.Core.Networks.Views { 23 partial class GenericPortView {23 partial class MessagePortView { 24 24 /// <summary> 25 25 /// Required designer variable. … … 190 190 this.logMessagesCheckBox.CheckedChanged += new System.EventHandler(this.logMessagesCheckBox_CheckedChanged); 191 191 // 192 // GenericPortView192 // MessagePortView 193 193 // 194 194 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; … … 197 197 this.Controls.Add(this.connectedPortGroupBox); 198 198 this.Controls.Add(this.splitContainer); 199 this.Name = " GenericPortView";199 this.Name = "MessagePortView"; 200 200 this.Controls.SetChildIndex(this.splitContainer, 0); 201 201 this.Controls.SetChildIndex(this.nameLabel, 0); -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/MessagePortView.cs
r11529 r11530 26 26 27 27 namespace HeuristicLab.Core.Networks.Views { 28 [View(" GenericPort View")]29 [Content(typeof( GenericPort), true)]30 [Content(typeof(I GenericPort), false)]31 public partial class GenericPortView : PortView {28 [View("MessagePort View")] 29 [Content(typeof(MessagePort), true)] 30 [Content(typeof(IMessagePort), false)] 31 public partial class MessagePortView : PortView { 32 32 protected NetworkItemSelectorDialog networkItemSelectorDialog; 33 33 34 public new I GenericPort Content {35 get { return (I GenericPort)base.Content; }34 public new IMessagePort Content { 35 get { return (IMessagePort)base.Content; } 36 36 set { base.Content = value; } 37 37 } 38 38 39 public GenericPortView() {39 public MessagePortView() { 40 40 InitializeComponent(); 41 41 errorProvider.SetIconAlignment(connectedPortView, ErrorIconAlignment.MiddleRight); … … 128 128 root, 129 129 Content.ConnectedPort, 130 typeof(I ConnectedPort)130 typeof(IMessagePort) 131 131 ); 132 132 133 133 if (networkItemSelectorDialog.ShowDialog(this) == DialogResult.OK) { 134 Content.ConnectedPort = networkItemSelectorDialog.NetworkItemSelector.SelectedNetworkItem as I ConnectedPort;134 Content.ConnectedPort = networkItemSelectorDialog.NetworkItemSelector.SelectedNetworkItem as IMessagePort; 135 135 } 136 136 } … … 145 145 protected virtual void connectedPortView_DragEnterOver(object sender, DragEventArgs e) { 146 146 e.Effect = DragDropEffects.None; 147 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as I ConnectedPort;147 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IMessagePort; 148 148 149 149 if (!ReadOnly && (data != null) && (Content.CanConnectToPort(data))) { … … 153 153 protected virtual void connectedPortView_DragDrop(object sender, DragEventArgs e) { 154 154 if (e.Effect != DragDropEffects.None) { 155 var port = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as I ConnectedPort;155 var port = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IMessagePort; 156 156 Content.ConnectedPort = port; 157 157 } 158 158 } 159 159 protected virtual void cloneConnectedPortParametersButton_Click(object sender, EventArgs e) { 160 Content.Clone ConnectedPortParameters();160 Content.CloneParametersFromPort(Content.ConnectedPort); 161 161 } 162 162 protected virtual void logMessagesCheckBox_CheckedChanged(object sender, EventArgs e) { -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NetworkView.Designer.cs
r11526 r11530 46 46 private void InitializeComponent() { 47 47 this.nodeCollectionView = new HeuristicLab.Core.Networks.Views.NodeCollectionView(); 48 this.tabControl = new HeuristicLab.MainForm.WindowsForms.DragOverTabControl(); 49 this.nodesTabPage = new System.Windows.Forms.TabPage(); 50 this.portsTabPage = new System.Windows.Forms.TabPage(); 51 this.portCollectionView = new HeuristicLab.Core.Networks.Views.PortCollectionView(); 48 52 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 this.tabControl.SuspendLayout(); 54 this.nodesTabPage.SuspendLayout(); 55 this.portsTabPage.SuspendLayout(); 49 56 this.SuspendLayout(); 50 57 // … … 53 60 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 54 61 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 55 this.nameTextBox.Location = new System.Drawing.Point(69, 0);56 this.nameTextBox.Size = new System.Drawing.Size(551, 20);57 //58 // infoLabel59 //60 this.infoLabel.Location = new System.Drawing.Point(626, 3);61 62 // 62 63 // nodeCollectionView 63 64 // 64 this.nodeCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)65 | System.Windows.Forms.AnchorStyles.Left)66 | System.Windows.Forms.AnchorStyles.Right)));67 65 this.nodeCollectionView.Caption = "NodeCollection View"; 68 66 this.nodeCollectionView.Content = null; 69 this.nodeCollectionView.Location = new System.Drawing.Point(6, 26); 67 this.nodeCollectionView.Dock = System.Windows.Forms.DockStyle.Fill; 68 this.nodeCollectionView.Location = new System.Drawing.Point(3, 3); 70 69 this.nodeCollectionView.Name = "nodeCollectionView"; 71 70 this.nodeCollectionView.ReadOnly = false; 72 71 this.nodeCollectionView.ShowDetails = true; 73 this.nodeCollectionView.Size = new System.Drawing.Size(639, 491); 74 this.nodeCollectionView.TabIndex = 3; 72 this.nodeCollectionView.Size = new System.Drawing.Size(631, 459); 73 this.nodeCollectionView.TabIndex = 0; 74 // 75 // tabControl 76 // 77 this.tabControl.AllowDrop = true; 78 this.tabControl.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.tabControl.Controls.Add(this.nodesTabPage); 82 this.tabControl.Controls.Add(this.portsTabPage); 83 this.tabControl.Location = new System.Drawing.Point(0, 26); 84 this.tabControl.Name = "tabControl"; 85 this.tabControl.SelectedIndex = 0; 86 this.tabControl.Size = new System.Drawing.Size(645, 491); 87 this.tabControl.TabIndex = 3; 88 // 89 // nodesTabPage 90 // 91 this.nodesTabPage.Controls.Add(this.nodeCollectionView); 92 this.nodesTabPage.Location = new System.Drawing.Point(4, 22); 93 this.nodesTabPage.Name = "nodesTabPage"; 94 this.nodesTabPage.Padding = new System.Windows.Forms.Padding(3); 95 this.nodesTabPage.Size = new System.Drawing.Size(637, 465); 96 this.nodesTabPage.TabIndex = 0; 97 this.nodesTabPage.Text = "Nodes"; 98 this.nodesTabPage.UseVisualStyleBackColor = true; 99 // 100 // portsTabPage 101 // 102 this.portsTabPage.Controls.Add(this.portCollectionView); 103 this.portsTabPage.Location = new System.Drawing.Point(4, 22); 104 this.portsTabPage.Name = "portsTabPage"; 105 this.portsTabPage.Padding = new System.Windows.Forms.Padding(3); 106 this.portsTabPage.Size = new System.Drawing.Size(637, 465); 107 this.portsTabPage.TabIndex = 1; 108 this.portsTabPage.Text = "Ports"; 109 this.portsTabPage.UseVisualStyleBackColor = true; 110 // 111 // portCollectionView 112 // 113 this.portCollectionView.Caption = "PortCollection View"; 114 this.portCollectionView.Content = null; 115 this.portCollectionView.Dock = System.Windows.Forms.DockStyle.Fill; 116 this.portCollectionView.Location = new System.Drawing.Point(3, 3); 117 this.portCollectionView.Name = "portCollectionView"; 118 this.portCollectionView.ReadOnly = false; 119 this.portCollectionView.ShowDetails = true; 120 this.portCollectionView.Size = new System.Drawing.Size(631, 459); 121 this.portCollectionView.TabIndex = 0; 75 122 // 76 123 // NetworkView 77 124 // 78 125 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 79 this.Controls.Add(this. nodeCollectionView);126 this.Controls.Add(this.tabControl); 80 127 this.Name = "NetworkView"; 81 this.Size = new System.Drawing.Size(645, 517);82 128 this.Controls.SetChildIndex(this.nameLabel, 0); 83 129 this.Controls.SetChildIndex(this.nameTextBox, 0); 84 130 this.Controls.SetChildIndex(this.infoLabel, 0); 85 this.Controls.SetChildIndex(this. nodeCollectionView, 0);131 this.Controls.SetChildIndex(this.tabControl, 0); 86 132 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 133 this.tabControl.ResumeLayout(false); 134 this.nodesTabPage.ResumeLayout(false); 135 this.portsTabPage.ResumeLayout(false); 87 136 this.ResumeLayout(false); 88 137 this.PerformLayout(); … … 93 142 94 143 protected NodeCollectionView nodeCollectionView; 144 protected MainForm.WindowsForms.DragOverTabControl tabControl; 145 protected System.Windows.Forms.TabPage nodesTabPage; 146 protected System.Windows.Forms.TabPage portsTabPage; 147 protected PortCollectionView portCollectionView; 95 148 96 149 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NetworkView.cs
r11528 r11530 50 50 base.OnContentChanged(); 51 51 nodeCollectionView.Content = Content == null ? null : Content.Nodes; 52 portCollectionView.Content = Content == null ? null : Content.Ports; 52 53 } 53 54 … … 55 56 base.SetEnabledStateOfControls(); 56 57 nodeCollectionView.Enabled = Content != null; 58 portCollectionView.Enabled = Content != null; 57 59 } 58 60 } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/UserDefinedNetworkView.cs
r11529 r11530 40 40 base.OnContentChanged(); 41 41 nodeCollectionView.Content = Content == null ? null : Content.Nodes; 42 portCollectionView.Content = Content == null ? null : Content.Ports; 42 43 } 43 44 } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/HeuristicLab.Optimization.Networks.Views-3.3.csproj
r11529 r11530 91 91 </ItemGroup> 92 92 <ItemGroup> 93 <Compile Include="Core.Networks.Views\GenericPortView.cs">94 <SubType>UserControl</SubType>95 </Compile>96 <Compile Include="Core.Networks.Views\GenericPortView.Designer.cs">97 <DependentUpon>GenericPortView.cs</DependentUpon>98 </Compile>99 93 <Compile Include="Core.Networks.Views\MessageCollectionView.cs"> 100 94 <SubType>UserControl</SubType> … … 103 97 <DependentUpon>MessageCollectionView.cs</DependentUpon> 104 98 </Compile> 99 <Compile Include="Core.Networks.Views\MessagePortView.cs"> 100 <SubType>UserControl</SubType> 101 </Compile> 102 <Compile Include="Core.Networks.Views\MessagePortView.Designer.cs"> 103 <DependentUpon>MessagePortView.cs</DependentUpon> 104 </Compile> 105 105 <Compile Include="Core.Networks.Views\MessageValueCollectionView.cs"> 106 106 <SubType>UserControl</SubType> … … 192 192 <Compile Include="Core.Networks.Views\UserDefinedNetworkView.Designer.cs"> 193 193 <DependentUpon>UserDefinedNetworkView.cs</DependentUpon> 194 </Compile> 195 <Compile Include="Core.Networks.Views\UserDefinedMessagePortView.cs"> 196 <SubType>UserControl</SubType> 197 </Compile> 198 <Compile Include="Core.Networks.Views\UserDefinedMessagePortView.Designer.cs"> 199 <DependentUpon>UserDefinedMessagePortView.cs</DependentUpon> 194 200 </Compile> 195 201 <Compile Include="Core.Networks.Views\UserDefinedNodeView.cs"> -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Operators.Views/HookOperatorView.cs
r11526 r11530 76 76 protected virtual void portView_DragEnterOver(object sender, DragEventArgs e) { 77 77 e.Effect = DragDropEffects.None; 78 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as I GenericPort;78 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IMessagePort; 79 79 80 80 if (!ReadOnly && (data != null)) { … … 84 84 protected virtual void portView_DragDrop(object sender, DragEventArgs e) { 85 85 if (e.Effect != DragDropEffects.None) { 86 var port = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as I GenericPort;86 var port = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IMessagePort; 87 87 Content.Port = port; 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.