Changeset 5784


Ignore:
Timestamp:
03/22/11 01:47:47 (11 years ago)
Author:
swagner
Message:

Set some parameters to hidden per default (#1377)

Location:
trunk/sources
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/CreateParameterDialog.cs

    r5445 r5784  
    3232      get {
    3333        try {
    34           return (IParameter)Activator.CreateInstance(parameterTypeSelector.SelectedType, nameTextBox.Text, descriptionTextBox.Text);
     34          IParameter parameter = (IParameter)Activator.CreateInstance(parameterTypeSelector.SelectedType, nameTextBox.Text, descriptionTextBox.Text);
     35          parameter.Hidden = false;
     36          return parameter;
    3537        }
    3638        catch (Exception ex) {
  • trunk/sources/HeuristicLab.Operators/3.3/SingleSuccessorOperator.cs

    r5445 r5784  
    4848      : base() {
    4949      Parameters.Add(new OperatorParameter("Successor", "Operator which is executed next."));
     50      SuccessorParameter.Hidden = true;
    5051    }
    51    
     52
    5253    public override IOperation Apply() {
    5354      if (Successor != null)
  • trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs

    r5445 r5784  
    6868      : base("Anonymous", typeof(T)) {
    6969      this.actualName = Name;
     70      this.Hidden = true;
    7071    }
    7172    public LookupParameter(string name)
    7273      : base(name, typeof(T)) {
    7374      this.actualName = Name;
     75      this.Hidden = true;
    7476    }
    7577    public LookupParameter(string name, string description)
    7678      : base(name, description, typeof(T)) {
    7779      this.actualName = Name;
     80      this.Hidden = true;
    7881    }
    7982    public LookupParameter(string name, string description, string actualName)
    8083      : base(name, description, typeof(T)) {
    8184      this.actualName = string.IsNullOrWhiteSpace(actualName) ? Name : actualName;
     85      this.Hidden = true;
    8286    }
    8387
  • trunk/sources/HeuristicLab.Parameters/3.3/ScopeParameter.cs

    r5445 r5784  
    4141    public ScopeParameter()
    4242      : base("Anonymous", typeof(IScope)) {
     43      this.Hidden = true;
    4344    }
    4445    public ScopeParameter(string name)
    4546      : base(name, typeof(IScope)) {
     47      this.Hidden = true;
    4648    }
    4749    public ScopeParameter(string name, string description)
    4850      : base(name, description, typeof(IScope)) {
     51      this.Hidden = true;
    4952    }
    5053
  • trunk/sources/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs

    r5445 r5784  
    8989    public ValueLookupParameter()
    9090      : base() {
     91      this.Hidden = false;
    9192      this.getsCollected = true;
    9293    }
    9394    public ValueLookupParameter(string name)
    9495      : base(name) {
     96      this.Hidden = false;
    9597      this.getsCollected = true;
    9698    }
    9799    public ValueLookupParameter(string name, bool getsCollected)
    98100      : base(name) {
     101      this.Hidden = false;
    99102      this.getsCollected = getsCollected;
    100103    }
     
    102105      : base(name) {
    103106      this.value = value;
     107      this.Hidden = false;
    104108      this.getsCollected = true;
    105109      RegisterValueEvents();
     
    108112      : base(name) {
    109113      this.value = value;
     114      this.Hidden = false;
    110115      this.getsCollected = getsCollected;
    111116      RegisterValueEvents();
     
    113118    public ValueLookupParameter(string name, string description)
    114119      : base(name, description) {
     120      this.Hidden = false;
    115121      this.getsCollected = true;
    116122    }
    117123    public ValueLookupParameter(string name, string description, bool getsCollected)
    118124      : base(name, description) {
     125      this.Hidden = false;
    119126      this.getsCollected = getsCollected;
    120127    }
     
    122129      : base(name, description) {
    123130      this.value = value;
     131      this.Hidden = false;
    124132      this.getsCollected = true;
    125133      RegisterValueEvents();
     
    128136      : base(name, description) {
    129137      this.value = value;
     138      this.Hidden = false;
    130139      this.getsCollected = getsCollected;
    131140      RegisterValueEvents();
     
    133142    public ValueLookupParameter(string name, string description, string actualName)
    134143      : base(name, description, actualName) {
     144      this.Hidden = false;
    135145      this.getsCollected = true;
    136146    }
    137147    public ValueLookupParameter(string name, string description, string actualName, bool getsCollected)
    138148      : base(name, description, actualName) {
     149      this.Hidden = false;
    139150      this.getsCollected = getsCollected;
    140151    }
Note: See TracChangeset for help on using the changeset viewer.