Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11569


Ignore:
Timestamp:
11/24/14 14:44:42 (9 years ago)
Author:
pfleck
Message:

#2269

  • Added a generic EnumValue for wrapping an enum.
  • Added a generic EnumValueView which displays a drop down with the available enum values.
  • Made AgingScheme an EnumValue instead of ValueTypeValue.
Location:
branches/ALPS
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AgingScheme.cs

    r11568 r11569  
    2020#endregion
    2121
    22 using System;
    23 using System.Drawing;
    2422using HeuristicLab.Common;
    2523using HeuristicLab.Core;
     
    3735  [Item("AgingScheme", "Represents a certain type of an aging scheme.")]
    3836  [StorableClass]
    39   public class AgingScheme : ValueTypeValue<AgingSchemes> {
    40     public static new Image StaticItemImage {
    41       get { return HeuristicLab.Common.Resources.VSImageLibrary.Enum; }
    42     }
    43 
     37  public class AgingScheme : EnumValue<AgingSchemes> {
    4438    [StorableConstructor]
    4539    protected AgingScheme(bool deserializing) : base(deserializing) { }
    4640    protected AgingScheme(AgingScheme original, Cloner cloner) : base(original, cloner) { }
    47     public AgingScheme() : base() { }
     41
     42    public AgingScheme() : base(AgingSchemes.Linear) { }
    4843    public AgingScheme(AgingSchemes type) : base(type) { }
    4944
  • branches/ALPS/HeuristicLab.Data.Views/3.3/HeuristicLab.Data.Views-3.3.csproj

    r9714 r11569  
    208208      <DependentUpon>StringConvertibleValueView.cs</DependentUpon>
    209209    </Compile>
     210    <Compile Include="EnumValueView.cs">
     211      <SubType>UserControl</SubType>
     212    </Compile>
     213    <Compile Include="EnumValueView.Designer.cs">
     214      <DependentUpon>EnumValueView.cs</DependentUpon>
     215    </Compile>
    210216  </ItemGroup>
    211217  <ItemGroup>
  • branches/ALPS/HeuristicLab.Data/3.3/HeuristicLab.Data-3.3.csproj

    r9714 r11569  
    117117    <Compile Include="Comparison.cs" />
    118118    <Compile Include="ComparisonType.cs" />
     119    <Compile Include="EnumValue.cs" />
    119120    <Compile Include="Path Types\DirectoryValue.cs" />
    120121    <Compile Include="Path Types\FileValue.cs" />
Note: See TracChangeset for help on using the changeset viewer.