Ignore:
Timestamp:
2012-10-20T20:27:24+02:00 (12 years ago)
Author:
adeas31
Message:
  • Removed some old classes.
  • Better connection support for array type connectors.
  • Don't call getClassNames every time for searching of Modelica classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OMEdit/OMEditGUI/PolygonAnnotation.h

    r13405 r13537  
    4141
    4242class OMCProxy;
    43 class Component_OMC;
     43class Component;
    4444
    45 class PolygonAnnotation_OMC : public ShapeAnnotation_OMC
     45class PolygonAnnotation : public ShapeAnnotation
    4646{
    4747  Q_OBJECT
    4848public:
    49   PolygonAnnotation_OMC(QString annotation, Component_OMC *pParent);
     49  PolygonAnnotation(QString annotation, Component *pParent);
    5050  void parseShapeAnnotation(QString annotation);
    5151  QRectF boundingRect() const;
     
    5555};
    5656
    57 
    58 class PolygonAnnotation : public ShapeAnnotation
    59 {
    60   Q_OBJECT
    61 public:
    62   PolygonAnnotation(QString shape, Component *pParent);
    63   PolygonAnnotation(GraphicsView *graphicsView, QGraphicsItem *pParent = 0);
    64   PolygonAnnotation(QString shape, GraphicsView *graphicsView, QGraphicsItem *pParent = 0);
    65   QRectF boundingRect() const;
    66   QPainterPath shape() const;
    67   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
    68   void drawPolygonAnnotaion(QPainter *painter);
    69   void addPoint(QPointF point);
    70   void updateEndPoint(QPointF point);
    71   void drawRectangleCornerItems();
    72   QString getShapeAnnotation();
    73   void parseShapeAnnotation(QString shape, OMCProxy *omc);
    74 
    75   Component *mpComponent;
    76 public slots:
    77   void updatePoint(int index, QPointF point);
    78 };
    79 
    8057#endif // POLYGONANNOTATION_H
Note: See TracChangeset for help on using the changeset viewer.