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