Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/13 22:57:09 (11 years ago)
Author:
mkommend
Message:

#2006: Changed GhostFactory to not hold a reference to the View object and completely removed the TextEditor tool as it was not in use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/View.cs

    r4068 r9181  
    4242      this.HorizontalRuler.Visible = true;
    4343      this.VerticalRuler.Visible = true;
    44       GhostsFactory.View = this;
    4544    }
    4645
     
    102101      Ghost = GhostsFactory.GetGhost(
    103102          new Point[] { ltPoint, rbPoint },
    104               GhostTypes.Ellipse);
     103              GhostTypes.Ellipse, this);
    105104    }
    106105    public override void PaintGhostRectangle(
     
    112111      Ghost = GhostsFactory.GetGhost(
    113112          new Point[] { ltPoint, rbPoint },
    114           GhostTypes.Rectangle);
     113          GhostTypes.Rectangle, this);
    115114    }
    116115    public override void PaintAntsRectangle(
     
    129128      Ghost = GhostsFactory.GetGhost(
    130129          new Point[] { ltPoint, rbPoint },
    131           GhostTypes.Line);
     130          GhostTypes.Line, this);
    132131    }
    133132    public override void PaintGhostLine(
     
    139138      switch (curveType) {
    140139        case MultiPointType.Straight:
    141           Ghost = GhostsFactory.GetGhost(points, GhostTypes.MultiLine);
     140          Ghost = GhostsFactory.GetGhost(points, GhostTypes.MultiLine, this);
    142141          break;
    143142        case MultiPointType.Polygon:
    144           Ghost = GhostsFactory.GetGhost(points, GhostTypes.Polygon);
     143          Ghost = GhostsFactory.GetGhost(points, GhostTypes.Polygon, this);
    145144          break;
    146145        case MultiPointType.Curve:
    147           Ghost = GhostsFactory.GetGhost(points, GhostTypes.CurvedLine);
     146          Ghost = GhostsFactory.GetGhost(points, GhostTypes.CurvedLine, this);
    148147          break;
    149148
Note: See TracChangeset for help on using the changeset viewer.