mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-15 23:40:01 +02:00
Toatly revamp of the handlers use to modify primitves, shapes and conductors.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5001 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "customelementgraphicpart.h"
|
||||
|
||||
class QetGraphicsHandlerItem;
|
||||
|
||||
/**
|
||||
* @brief The AbstractPartEllipse class
|
||||
* This is the base class for all ellipse based item like ellipse, circle, arc.
|
||||
@@ -61,20 +63,21 @@ class AbstractPartEllipse : public CustomElementGraphicPart
|
||||
virtual QPointF sceneTopLeft() const;
|
||||
|
||||
QRectF rect() const;
|
||||
void setRect (const QRectF &rect);
|
||||
virtual void setRect (const QRectF &rect);
|
||||
virtual bool isUseless() const;
|
||||
|
||||
int startAngle() const {return m_start_angle;}
|
||||
void setStartAngle (const int &start_angle);
|
||||
virtual void setStartAngle (const int &start_angle);
|
||||
|
||||
int spanAngle () const {return m_span_angle;}
|
||||
void setSpanAngle (const int &span_angle);
|
||||
virtual void setSpanAngle (const int &span_angle);
|
||||
|
||||
protected:
|
||||
QList<QPointF> saved_points_;
|
||||
QRectF m_rect;
|
||||
qreal m_start_angle;
|
||||
qreal m_span_angle;
|
||||
QVector<QetGraphicsHandlerItem *> m_handler_vector;
|
||||
};
|
||||
|
||||
#endif // ABSTRACTPARTELLIPSE_H
|
||||
|
||||
Reference in New Issue
Block a user