Changeset 3344


Ignore:
Timestamp:
04/14/10 10:09:49 (12 years ago)
Author:
mkommend
Message:

added reaction to operator image changes and changed collapse and expand icons (ticket #867)

Location:
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/GraphVisualizationInfo.cs

    r3017 r3344  
    279279    }
    280280
     281    private void OperatorItemImageChanged(object sender, EventArgs e) {
     282      IOperator op = (IOperator)sender;
     283      IOperatorShapeInfo operatorShapeInfo = this.operatorShapeInfoMapping.GetByFirst(op);
     284      operatorShapeInfo.Icon = new Bitmap(op.ItemImage);
     285    }
     286
    281287    private void OperatorNameChanged(object sender, EventArgs e) {
    282288      IOperator op = (IOperator)sender;
     
    306312      op.Parameters.CollectionReset += new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset);
    307313      op.NameChanged += new EventHandler(OperatorNameChanged);
     314      op.ItemImageChanged += new EventHandler(OperatorItemImageChanged);
    308315      op.BreakpointChanged += new EventHandler(OperatorBreakpointChanged);
    309316    }
     
    315322      op.Parameters.CollectionReset -= new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset);
    316323      op.NameChanged -= new EventHandler(OperatorNameChanged);
     324      op.ItemImageChanged -= new EventHandler(OperatorItemImageChanged);
    317325      op.BreakpointChanged -= new EventHandler(OperatorBreakpointChanged);
    318326    }
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShape.cs

    r3181 r3344  
    196196      this.Children.Add(iconMaterial);
    197197
    198       Bitmap expandBitmap = new Bitmap(HeuristicLab.Common.Resources.VS2008ImageLibrary.Redo);
    199       Bitmap collapseBitmap = new Bitmap(HeuristicLab.Common.Resources.VS2008ImageLibrary.Undo);
     198      Bitmap expandBitmap = new Bitmap(HeuristicLab.Common.Resources.VS2008ImageLibrary.Expand);
     199      Bitmap collapseBitmap = new Bitmap(HeuristicLab.Common.Resources.VS2008ImageLibrary.Collapse);
    200200      this.expandIconMaterial = new ExpandableIconMaterial(expandBitmap, collapseBitmap);
    201201      this.expandIconMaterial.Gliding = false;
Note: See TracChangeset for help on using the changeset viewer.