Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5582 for branches


Ignore:
Timestamp:
03/01/11 17:00:33 (14 years ago)
Author:
mkommend
Message:

#1418: Added IFixedValueParameter.

Location:
branches/DataAnalysis Refactoring
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj

    r5163 r5582  
    2020    <IsWebBootstrapper>true</IsWebBootstrapper>
    2121    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    22     <TargetFrameworkProfile></TargetFrameworkProfile>
     22    <TargetFrameworkProfile>
     23    </TargetFrameworkProfile>
    2324    <PublishUrl>http://localhost/HeuristicLab.Core/</PublishUrl>
    2425    <Install>true</Install>
     
    145146    <Compile Include="Constraints\TypeCompatibilityConstraint.cs" />
    146147    <Compile Include="Interfaces\IMultiOperator.cs" />
     148    <Compile Include="Interfaces\IFixedValueParameter.cs" />
    147149    <Compile Include="OperatorExecutionException.cs" />
    148150    <Compile Include="Interfaces\IScopeTreeLookupParameter.cs" />
  • branches/DataAnalysis Refactoring/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs

    r5445 r5582  
    103103    protected override void SetEnabledStateOfControls() {
    104104      base.SetEnabledStateOfControls();
    105       setValueButton.Enabled = Content != null && !ReadOnly;
    106       clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is ValueParameter<T>) && !ReadOnly;
     105      setValueButton.Enabled = Content != null && !(Content is IFixedValueParameter) && !ReadOnly;
     106      clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter) && !ReadOnly;
    107107      showInRunCheckBox.Enabled = Content != null && !ReadOnly;
    108108    }
     
    113113      else {
    114114        SetDataTypeTextBoxText();
    115         clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is ValueParameter<T>) && !ReadOnly;
     115        setValueButton.Enabled = Content != null && !(Content is IFixedValueParameter) && !ReadOnly;
     116        clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter<T>) && !ReadOnly;
    116117        valueViewHost.ViewType = null;
    117118        valueViewHost.Content = Content != null ? Content.Value : null;
     
    148149    protected virtual void valueGroupBox_DragEnterOver(object sender, DragEventArgs e) {
    149150      e.Effect = DragDropEffects.None;
     151      if (Content is IFixedValueParameter) return;
     152
    150153      Type type = e.Data.GetData("Type") as Type;
    151154      if (!ReadOnly && (type != null) && (Content.DataType.IsAssignableFrom(type))) {
  • branches/DataAnalysis Refactoring/HeuristicLab.Parameters/3.3/HeuristicLab.Parameters-3.3.csproj

    r5163 r5582  
    1212    <AssemblyName>HeuristicLab.Parameters-3.3</AssemblyName>
    1313    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    14     <TargetFrameworkProfile></TargetFrameworkProfile>
     14    <TargetFrameworkProfile>
     15    </TargetFrameworkProfile>
    1516    <FileAlignment>512</FileAlignment>
    1617    <SignAssembly>true</SignAssembly>
     
    112113    <None Include="HeuristicLabParametersPlugin.cs.frame" />
    113114    <Compile Include="ConstrainedValueParameter.cs" />
     115    <Compile Include="FixedValueParameter.cs" />
    114116    <Compile Include="OptionalConstrainedValueParameter.cs" />
    115117    <Compile Include="ScopeTreeLookupParameter.cs" />
Note: See TracChangeset for help on using the changeset viewer.