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/RectangleAnnotation.h

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