Changeset 13573


Ignore:
Timestamp:
01/28/16 18:31:54 (4 years ago)
Author:
gkronber
Message:

#2569: added ParameterizedItemView

Location:
trunk/sources/HeuristicLab.Core.Views/3.3
Files:
1 edited
2 copied

Legend:

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

    r13014 r13573  
    164164    <Compile Include="NestingLevelErrorControl.Designer.cs">
    165165      <DependentUpon>NestingLevelErrorControl.cs</DependentUpon>
     166    </Compile>
     167    <Compile Include="ParameterizedItemView.cs">
     168      <SubType>UserControl</SubType>
     169    </Compile>
     170    <Compile Include="ParameterizedItemView.Designer.cs">
     171      <DependentUpon>ParameterizedItemView.cs</DependentUpon>
    166172    </Compile>
    167173    <Compile Include="Plugin.cs" />
  • trunk/sources/HeuristicLab.Core.Views/3.3/ParameterizedItemView.Designer.cs

    r13494 r13573  
    2121
    2222namespace HeuristicLab.Core.Views {
    23   partial class ParameterizedNamedItemView {
     23  partial class ParameterizedItemView {
    2424    /// <summary>
    2525    /// Required designer variable.
     
    4646    private void InitializeComponent() {
    4747      this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView();
    48       ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    4948      this.SuspendLayout();
    50       //
    51       // nameTextBox
    52       //
    53       this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    54       this.errorProvider.SetIconPadding(this.nameTextBox, 2);
    55       this.nameTextBox.Location = new System.Drawing.Point(59, 0);
    56       this.nameTextBox.Size = new System.Drawing.Size(406, 20);
    57       //
    58       // infoLabel
    59       //
    60       this.infoLabel.Location = new System.Drawing.Point(471, 3);
    6149      //
    6250      // parameterCollectionView
    6351      //
    64       this.parameterCollectionView.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)));
     52      this.parameterCollectionView.AllowEditingOfHiddenParameters = true;
     53      this.parameterCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     54            | System.Windows.Forms.AnchorStyles.Left)
     55            | System.Windows.Forms.AnchorStyles.Right)));
    6756      this.parameterCollectionView.Caption = "ParameterCollection View";
    6857      this.parameterCollectionView.Content = null;
    69       this.parameterCollectionView.Location = new System.Drawing.Point(0, 26);
     58      this.parameterCollectionView.Location = new System.Drawing.Point(0, 0);
    7059      this.parameterCollectionView.Name = "parameterCollectionView";
    7160      this.parameterCollectionView.ReadOnly = false;
    72       this.parameterCollectionView.Size = new System.Drawing.Size(490, 327);
    73       this.parameterCollectionView.TabIndex = 3;
     61      this.parameterCollectionView.ShowDetails = true;
     62      this.parameterCollectionView.Size = new System.Drawing.Size(490, 353);
     63      this.parameterCollectionView.TabIndex = 0;
    7464      //
    75       // ParameterizedNamedItemView
     65      // ParameterizedItemView
    7666      //
    77       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    7867      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    7968      this.Controls.Add(this.parameterCollectionView);
    80       this.Name = "ParameterizedNamedItemView";
     69      this.Name = "ParameterizedItemView";
    8170      this.Size = new System.Drawing.Size(490, 353);
    82       this.Controls.SetChildIndex(this.infoLabel, 0);
    83       this.Controls.SetChildIndex(this.nameTextBox, 0);
    84       this.Controls.SetChildIndex(this.nameLabel, 0);
    85       this.Controls.SetChildIndex(this.parameterCollectionView, 0);
    86       ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    8771      this.ResumeLayout(false);
    88       this.PerformLayout();
    8972
    9073    }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ParameterizedItemView.cs

    r13494 r13573  
    2323
    2424namespace HeuristicLab.Core.Views {
    25   /// <summary>
    26   /// The base class for visual representations of items.
    27   /// </summary>
    28   [View("ParameterizedNamedItem View")]
    29   [Content(typeof(ParameterizedNamedItem), true)]
    30   [Content(typeof(IParameterizedNamedItem), false)]
    31   public partial class ParameterizedNamedItemView : NamedItemView {
    32     public new IParameterizedNamedItem Content {
    33       get { return (IParameterizedNamedItem)base.Content; }
     25  [View("ParameterizedItem View")]
     26  [Content(typeof(IParameterizedItem), false)]
     27  public partial class ParameterizedItemView : ItemView {
     28    public new IParameterizedItem Content {
     29      get { return (IParameterizedItem)base.Content; }
    3430      set { base.Content = value; }
    3531    }
    3632
    37     /// <summary>
    38     /// Initializes a new instance of <see cref="ItemBaseView"/>.
    39     /// </summary>
    40     public ParameterizedNamedItemView() {
     33    public ParameterizedItemView() {
    4134      InitializeComponent();
    4235    }
Note: See TracChangeset for help on using the changeset viewer.