Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/02/14 03:03:21 (10 years ago)
Author:
swagner
Message:

#2205: Worked on optimization networks

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  
    112112        typeSelectorDialog = new TypeSelectorDialog();
    113113        typeSelectorDialog.Caption = "Select Value";
    114         typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);
    115114      }
     115      typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);
    116116      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    117117        try {
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/AlgorithmNodeView.Designer.cs

    r11409 r11519  
    3434    /// </summary>
    3535    private void InitializeComponent() {
     36      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AlgorithmNodeView));
    3637      this.portCollectionView = new HeuristicLab.Optimization.Networks.Views.PortCollectionView();
    3738      this.tabControl = new HeuristicLab.MainForm.WindowsForms.DragOverTabControl();
     
    4243      this.clearAlgorithmButton = new System.Windows.Forms.Button();
    4344      this.setAlgorithmButton = new System.Windows.Forms.Button();
     45      this.runsTabPage = new System.Windows.Forms.TabPage();
     46      this.runCollectionView = new HeuristicLab.Optimization.Views.RunCollectionView();
    4447      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    4548      this.tabControl.SuspendLayout();
     
    4750      this.algorithmTabPage.SuspendLayout();
    4851      this.algorithmPanel.SuspendLayout();
     52      this.runsTabPage.SuspendLayout();
    4953      this.SuspendLayout();
    5054      //
     
    5660      // portCollectionView
    5761      //
    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)
    6064            | System.Windows.Forms.AnchorStyles.Right)));
    6165      this.portCollectionView.Caption = "PortCollection View";
     
    7074      // tabControl
    7175      //
    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)
    7479            | System.Windows.Forms.AnchorStyles.Right)));
    7580      this.tabControl.Controls.Add(this.portsTabPage);
    7681      this.tabControl.Controls.Add(this.algorithmTabPage);
     82      this.tabControl.Controls.Add(this.runsTabPage);
    7783      this.tabControl.Location = new System.Drawing.Point(0, 26);
    7884      this.tabControl.Name = "tabControl";
     
    108114      //
    109115      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)
    112118            | System.Windows.Forms.AnchorStyles.Right)));
    113119      this.algorithmPanel.Controls.Add(this.algorithmViewHost);
     
    153159      this.setAlgorithmButton.UseVisualStyleBackColor = true;
    154160      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;
    155184      //
    156185      // AlgorithmNodeView
     
    168197      this.algorithmTabPage.ResumeLayout(false);
    169198      this.algorithmPanel.ResumeLayout(false);
     199      this.runsTabPage.ResumeLayout(false);
    170200      this.ResumeLayout(false);
    171201      this.PerformLayout();
     
    183213    protected System.Windows.Forms.TabPage algorithmTabPage;
    184214    protected MainForm.WindowsForms.ViewHost algorithmViewHost;
     215    protected System.Windows.Forms.TabPage runsTabPage;
     216    protected Optimization.Views.RunCollectionView runCollectionView;
    185217
    186218
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/AlgorithmNodeView.cs

    r11452 r11519  
    6464        portCollectionView.Content = null;
    6565        algorithmViewHost.Content = null;
     66        runCollectionView.Content = null;
    6667      } else {
    6768        portCollectionView.Content = Content.Ports;
    6869        algorithmViewHost.ViewType = null;
    6970        algorithmViewHost.Content = Content.Algorithm;
     71        runCollectionView.Content = Content.Runs;
    7072      }
    7173    }
     
    7779      clearAlgorithmButton.Enabled = Content != null && Content.Algorithm != null && !ReadOnly;
    7880      algorithmPanel.Enabled = Content != null;
     81      runCollectionView.Enabled = Content != null && !ReadOnly;
    7982    }
    8083
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/GenericPortView.Designer.cs

    r11501 r11519  
    4343      this.portParameterCollectionView = new HeuristicLab.Optimization.Networks.Views.PortParameterCollectionView();
    4444      this.messageCollectionView = new HeuristicLab.Optimization.Networks.Views.MessageCollectionView();
     45      this.logMessagesCheckBox = new System.Windows.Forms.CheckBox();
    4546      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    4647      this.connectedPortGroupBox.SuspendLayout();
     
    7980      this.setConnectedPortButton.Size = new System.Drawing.Size(24, 24);
    8081      this.setConnectedPortButton.TabIndex = 0;
     82      this.toolTip.SetToolTip(this.setConnectedPortButton, "Set Connected Port");
    8183      this.setConnectedPortButton.UseVisualStyleBackColor = true;
    8284      this.setConnectedPortButton.Click += new System.EventHandler(this.setConnectedPortButton_Click);
     
    8991      this.clearConnectedPortButton.Size = new System.Drawing.Size(24, 24);
    9092      this.clearConnectedPortButton.TabIndex = 1;
     93      this.toolTip.SetToolTip(this.clearConnectedPortButton, "Remove Connected Port");
    9194      this.clearConnectedPortButton.UseVisualStyleBackColor = true;
    9295      this.clearConnectedPortButton.Click += new System.EventHandler(this.clearConnectedPortButton_Click);
     
    146149      // splitContainer.Panel2
    147150      //
     151      this.splitContainer.Panel2.Controls.Add(this.logMessagesCheckBox);
    148152      this.splitContainer.Panel2.Controls.Add(this.messageCollectionView);
    149153      this.splitContainer.Size = new System.Drawing.Size(645, 435);
     
    174178      this.messageCollectionView.Size = new System.Drawing.Size(645, 213);
    175179      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);
    176191      //
    177192      // GenericPortView
     
    194209      this.splitContainer.Panel1.ResumeLayout(false);
    195210      this.splitContainer.Panel2.ResumeLayout(false);
     211      this.splitContainer.Panel2.PerformLayout();
    196212      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
    197213      this.splitContainer.ResumeLayout(false);
     
    212228    protected PortParameterCollectionView portParameterCollectionView;
    213229    protected MessageCollectionView messageCollectionView;
     230    protected System.Windows.Forms.CheckBox logMessagesCheckBox;
    214231
    215232
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/GenericPortView.cs

    r11501 r11519  
    5252
    5353    protected override void DeregisterContentEvents() {
    54       Content.InterfaceChanged -= Content_InterfaceChanged;
    5554      Content.ConnectedPortChanged -= Content_ConnectedPortChanged;
     55      Content.PortConnectionValidChanged -= Content_PortConnectionValidChanged;
     56      Content.LogMessagesChanged -= Content_LogMessagesChanged;
    5657      base.DeregisterContentEvents();
    5758    }
    5859    protected override void RegisterContentEvents() {
    5960      base.RegisterContentEvents();
    60       Content.InterfaceChanged += Content_InterfaceChanged;
    6161      Content.ConnectedPortChanged += Content_ConnectedPortChanged;
     62      Content.PortConnectionValidChanged += Content_PortConnectionValidChanged;
     63      Content.LogMessagesChanged += Content_LogMessagesChanged;
    6264    }
    6365
     
    6668      connectedPortView.Content = Content == null ? null : Content.ConnectedPort;
    6769      portParameterCollectionView.Content = Content == null ? null : Content.Parameters;
     70      logMessagesCheckBox.Checked = Content == null ? false : Content.LogMessages;
    6871      messageCollectionView.Content = Content == null ? null : Content.Messages;
    6972      errorProvider.SetError(connectedPortView, ((Content == null) || Content.PortConnectionValid) ? string.Empty : "Port connection is not valid");
     
    7881      portParameterCollectionView.Enabled = Content != null && !ReadOnly;
    7982      cloneConnectedPortParametersButton.Enabled = Content != null && Content.ConnectedPort != null && !ReadOnly;
     83      logMessagesCheckBox.Enabled = Content != null && !ReadOnly;
    8084      messageCollectionView.Enabled = Content != null && !ReadOnly;
    8185    }
     
    9094      }
    9195    }
    92     protected virtual void Content_InterfaceChanged(object sender, EventArgs e) {
     96    protected virtual void Content_PortConnectionValidChanged(object sender, EventArgs e) {
    9397      if (InvokeRequired)
    94         Invoke(new EventHandler(Content_InterfaceChanged), sender, e);
     98        Invoke(new EventHandler(Content_PortConnectionValidChanged), sender, e);
    9599      else {
    96100        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;
    97108      }
    98109    }
     
    148159      Content.CloneConnectedPortParameters();
    149160    }
     161    protected virtual void logMessagesCheckBox_CheckedChanged(object sender, EventArgs e) {
     162      Content.LogMessages = logMessagesCheckBox.Checked;
     163    }
    150164  }
    151165}
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/HeuristicLab.Optimization.Networks.Views-3.3.csproj

    r11501 r11519  
    151151      <DependentUpon>ClientNodeView.cs</DependentUpon>
    152152    </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>
    159153    <Compile Include="GenericPortView.cs">
    160154      <SubType>UserControl</SubType>
     
    180174    <Compile Include="GenericNodeView.Designer.cs">
    181175      <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>
    182182    </Compile>
    183183    <Compile Include="ParameterizedPortView.cs">
     
    306306      <Name>HeuristicLab.MainForm-3.3</Name>
    307307    </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>
    308316    <ProjectReference Include="..\..\HeuristicLab.Optimization.Networks\3.3\HeuristicLab.Optimization.Networks-3.3.csproj">
    309317      <Project>{7cf51332-0e37-447c-8017-82a258c59ef2}</Project>
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Plugin.cs.frame

    r11463 r11519  
    3636  [PluginDependency("HeuristicLab.MainForm", "3.3")]
    3737  [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")]
     38  [PluginDependency("HeuristicLab.Operators", "3.3")]
     39  [PluginDependency("HeuristicLab.Operators.Views", "3.3")]
    3840  [PluginDependency("HeuristicLab.Optimization", "3.3")]
    3941  [PluginDependency("HeuristicLab.Optimization.Views", "3.3")]
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/PortParameterView.cs

    r11500 r11519  
    119119        typeSelectorDialog = new TypeSelectorDialog();
    120120        typeSelectorDialog.Caption = "Select Default Value";
    121         typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);
    122121      }
     122      typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);
    123123      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    124124        try {
Note: See TracChangeset for help on using the changeset viewer.