Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/10 00:26:13 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • implemented reviewers' comments on version r2917.
Location:
trunk/sources/HeuristicLab.Core.Views/3.3
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/HeuristicLab.Core.Views-3.3.csproj

    r2917 r2947  
    285285    </ProjectReference>
    286286  </ItemGroup>
    287   <ItemGroup>
    288     <EmbeddedResource Include="OperatorGraphView.resx">
    289       <DependentUpon>OperatorGraphView.cs</DependentUpon>
    290     </EmbeddedResource>
    291   </ItemGroup>
    292287  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    293288  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemCollectionView.cs

    r2917 r2947  
    6565      return item;
    6666    }
     67    protected override ListViewItem CreateListViewItem(T item) {
     68      ListViewItem listViewItem = base.CreateListViewItem(item);
     69      listViewItem.ToolTipText = item.ItemName + ": " + item.Description;
     70      return listViewItem;
     71    }
    6772    protected override void AddListViewItem(ListViewItem listViewItem) {
    6873      ListViewItemDictionary.Add((T)listViewItem.Tag, listViewItem);
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.Designer.cs

    r2924 r2947  
    5151      this.splitContainer = new System.Windows.Forms.SplitContainer();
    5252      this.graphGroupBox = new System.Windows.Forms.GroupBox();
    53       this.viewHost = new HeuristicLab.Core.Views.ViewHost();
     53      this.operatorTreeView = new HeuristicLab.Core.Views.OperatorTreeView();
    5454      this.operatorsContextMenuStrip.SuspendLayout();
    5555      this.splitContainer.Panel1.SuspendLayout();
     
    112112                  | System.Windows.Forms.AnchorStyles.Left)
    113113                  | System.Windows.Forms.AnchorStyles.Right)));
    114       this.graphGroupBox.Controls.Add(this.viewHost);
     114      this.graphGroupBox.Controls.Add(this.operatorTreeView);
    115115      this.graphGroupBox.Location = new System.Drawing.Point(3, 3);
    116116      this.graphGroupBox.Name = "graphGroupBox";
     
    120120      this.graphGroupBox.Text = "Operator Graph";
    121121      //
    122       // viewHost
     122      // operatorTreeView
    123123      //
    124       this.viewHost.Content = null;
    125       this.viewHost.Dock = System.Windows.Forms.DockStyle.Fill;
    126       this.viewHost.Location = new System.Drawing.Point(3, 16);
    127       this.viewHost.Name = "viewHost";
    128       this.viewHost.Size = new System.Drawing.Size(596, 189);
    129       this.viewHost.TabIndex = 0;
     124      this.operatorTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     125                  | System.Windows.Forms.AnchorStyles.Left)
     126                  | System.Windows.Forms.AnchorStyles.Right)));
     127      this.operatorTreeView.Caption = "Operator";
     128      this.operatorTreeView.Content = null;
     129      this.operatorTreeView.Location = new System.Drawing.Point(6, 19);
     130      this.operatorTreeView.Name = "operatorTreeView";
     131      this.operatorTreeView.Size = new System.Drawing.Size(590, 183);
     132      this.operatorTreeView.TabIndex = 0;
    130133      //
    131134      // OperatorGraphView
     
    152155    protected System.Windows.Forms.SplitContainer splitContainer;
    153156    protected System.Windows.Forms.GroupBox graphGroupBox;
    154     private ViewHost viewHost;
     157    private OperatorTreeView operatorTreeView;
    155158  }
    156159}
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs

    r2917 r2947  
    4949      InitializeComponent();
    5050      Caption = "Operator Graph";
    51       this.viewHost.ViewType = typeof(OperatorTreeView);
    5251    }
    5352    /// <summary>
     
    8988      operatorsView.Content = null;
    9089      operatorsView.Enabled = false;
    91       viewHost.Content = null;
    92       viewHost.Enabled = false;
     90      operatorTreeView.Content = null;
     91      operatorTreeView.Enabled = false;
    9392
    9493      if (Content != null) {
     
    9796        operatorsView.Enabled = true;
    9897        MarkInitialOperator();
    99         viewHost.Content = Content.InitialOperator;
    100         viewHost.Enabled = true;
     98        operatorTreeView.Content = Content.InitialOperator;
     99        operatorTreeView.Enabled = true;
    101100      }
    102101    }
     
    140139      else {
    141140        MarkInitialOperator();
    142         viewHost.Content = Content.InitialOperator;
     141        operatorTreeView.Content = Content.InitialOperator;
    143142      }
    144143    }
Note: See TracChangeset for help on using the changeset viewer.