Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7202


Ignore:
Timestamp:
12/19/11 09:41:39 (13 years ago)
Author:
epitzer
Message:

#1696: Add static item image according to #1651

Location:
branches/FitnessLandscapeAnalysis
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape.VRP/DistanceCalcualtors/VRPDistanceCalculator.cs

    r7141 r7202  
    2121    public override bool CanChangeName { get { return false; } }
    2222    public override bool CanChangeDescription { get { return false; } }
    23     public override System.Drawing.Image ItemImage { get { return VSImageLibrary.Function; } }
     23    public static new Image StaticItemImage { get { return VSImageLibrary.Function; } }
    2424
    2525    #endregion
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/Aggregators/Aggregator.cs

    r7128 r7202  
    1414  public abstract class Aggregator<T> : NamedItem, IAggregator where T : class, IItem {
    1515
    16     public override Image ItemImage { get { return VSImageLibrary.Database; } }
     16    public static new Image StaticItemImage { get { return VSImageLibrary.Database; } }
    1717    public override bool CanChangeName { get { return false; } }
    1818
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/Aggregators/EvolvabilityAggregator.cs

    r7181 r7202  
    3434
    3535    #region Properties
    36     public override Image ItemImage { get { return VSImageLibrary.Database; } }
     36    public static new Image StaticItemImage { get { return VSImageLibrary.Database; } }
    3737    public override bool CanChangeName { get { return false; } }
    3838    #endregion
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/Aggregators/InformationAnalysisValueAggregator.cs

    r7128 r7202  
    2929
    3030    #region Properties
    31     public override Image ItemImage { get { return VSImageLibrary.Database; } }
     31    public static new Image StaticItemImage { get { return VSImageLibrary.Database; } }
    3232    public override bool CanChangeName { get { return false; } }
    3333    #endregion
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/Aggregators/RuggednessAggregator.cs

    r7128 r7202  
    1919  public class RuggednessAggregator : NamedItem, IAggregator {
    2020
    21     public override Image ItemImage { get { return VSImageLibrary.Database; } }
     21    public static new Image StaticItemImage { get { return VSImageLibrary.Database; } }
    2222    public override bool CanChangeName { get { return false; } }
    2323
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/BoxChart/ColorValue.cs

    r7128 r7202  
    88using HeuristicLab.Data;
    99using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     10using HeuristicLab.Common.Resources;
    1011
    1112namespace HeuristicLab.Analysis.FitnessLandscape.BoxChart {
     
    4546    public override bool CanChangeName { get { return false; } }
    4647    public override bool CanChangeDescription { get { return false; } }
     48    public static new Image StaticItemImage { get { return VSImageLibrary.DisplayInColorVertical; } }
    4749    public override Image ItemImage {
    4850      get {
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/DistanceCalculators/BinaryVectorDistanceCalculator.cs

    r7128 r7202  
    88using HeuristicLab.Common;
    99using HeuristicLab.Encodings.BinaryVectorEncoding;
     10using System.Drawing;
    1011
    1112namespace HeuristicLab.Analysis.FitnessLandscape.DistanceCalculators {
     
    1920    public override bool CanChangeName { get { return false; } }
    2021    public override bool CanChangeDescription { get { return false; } }
    21     public override System.Drawing.Image ItemImage { get { return VSImageLibrary.Function; } }
     22    public static new Image StaticItemImage { get { return VSImageLibrary.Function; } }
    2223
    2324    #endregion
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/DistanceCalculators/PermutationDistanceCalculator.cs

    r7128 r7202  
    2121    public override bool CanChangeName { get { return false; } }
    2222    public override bool CanChangeDescription { get { return false; } }
    23     public override System.Drawing.Image ItemImage { get { return VSImageLibrary.Function; } }
     23    public static new Image StaticItemImage { get { return VSImageLibrary.Function; } }
    2424
    2525    #endregion
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/FDC/HeatMap.cs

    r7128 r7202  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Common.Resources;
    2829
    2930namespace HeuristicLab.Analysis.FitnessLandscape {
     
    3334  public class HeatMap : NamedItem {
    3435
    35     public override Image ItemImage {
    36       get { return HeuristicLab.Common.Resources.VSImageLibrary.Image; }
    37     }
     36    public static new Image StaticItemImage { get { return VSImageLibrary.Image; } }
    3837
    3938    #region Persistence
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/FDC/ScatterPlot.cs

    r7128 r7202  
    2727using HeuristicLab.Core;
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Common.Resources;
    2930
    3031namespace HeuristicLab.Analysis.FitnessLandscape {
     
    4243  public class ScatterPlot : NamedItem {
    4344
    44     public override Image ItemImage {
    45       get { return HeuristicLab.Common.Resources.VSImageLibrary.Image; }
    46     }
     45    public static new Image StaticItemImage { get { return VSImageLibrary.Image; } }
    4746
    4847    public event EventHandler<PointsEventArgs> PixelsChanged;
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/MultiTrajectory/MultiTrajectoryAnalysis.cs

    r7128 r7202  
    1212using HeuristicLab.Encodings.RealVectorEncoding;
    1313using HeuristicLab.Encodings.PermutationEncoding;
     14using HeuristicLab.Common.Resources;
     15using System.Drawing;
    1416
    1517namespace HeuristicLab.Analysis.FitnessLandscape.MultiTrajectory {
     
    132134    #region Fields & Properties
    133135
    134     public override System.Drawing.Image ItemImage {
     136    public new static Image StaticItemImage { get { return VSImageLibrary.Event; } }
     137
     138    public override Image ItemImage {
    135139      get {
    136         if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePrepared;
    137         else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStarted;
    138         else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePaused;
    139         else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStopped;
    140         else return HeuristicLab.Common.Resources.VSImageLibrary.Event;
     140        switch (ExecutionState) {
     141          case ExecutionState.Prepared: return VSImageLibrary.ExecutablePrepared;
     142          case ExecutionState.Started: return VSImageLibrary.ExecutableStarted;
     143          case ExecutionState.Paused: return VSImageLibrary.ExecutablePaused;
     144          case ExecutionState.Stopped: return VSImageLibrary.ExecutableStopped;
     145          default: return base.ItemImage;
     146        }
    141147      }
    142148    }
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/NKLandscape.cs

    r7128 r7202  
    2323    public string Filename { get; set; }
    2424
    25     public override Image ItemImage {
    26       get { return VSImageLibrary.Type; }
    27     }
     25    public static new Image StaticItemImage { get { return VSImageLibrary.Type; } }
    2826
    2927    #region Parameter Properties
Note: See TracChangeset for help on using the changeset viewer.