Changeset 13537 for branches/OMEdit/OMEditGUI/RectangleAnnotation.h
- Timestamp:
- 2012-10-20T20:27:24+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OMEdit/OMEditGUI/RectangleAnnotation.h
r13405 r13537 41 41 42 42 class OMCProxy; 43 class Component _OMC;43 class Component; 44 44 45 class RectangleAnnotation _OMC : public ShapeAnnotation_OMC45 class RectangleAnnotation : public ShapeAnnotation 46 46 { 47 47 Q_OBJECT 48 48 public: 49 RectangleAnnotation _OMC(QString annotation, Component_OMC*pParent);49 RectangleAnnotation(QString annotation, Component *pParent); 50 50 void parseShapeAnnotation(QString annotation); 51 51 QRectF boundingRect() const; … … 58 58 }; 59 59 60 61 class RectangleAnnotation : public ShapeAnnotation62 {63 Q_OBJECT64 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 83 60 #endif // RECTANGLEANNOTATION_H
Note: See TracChangeset
for help on using the changeset viewer.