QElectroTech
0.8-dev
|
#include <ellipseeditor.h>
Public Slots | |
void | editingFinishedX () |
void | editingFinishedY () |
void | editingFinishedH () |
void | editingFinishedV () |
void | updateForm () override |
Public Member Functions | |
EllipseEditor (QETElementEditor *, PartEllipse *=nullptr, QWidget *=nullptr) | |
~EllipseEditor () override | |
Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
bool | setParts (QList< CustomElementPart * > parts) override |
CustomElementPart * | currentPart () const override |
QList< CustomElementPart * > | currentParts () const override |
Public Member Functions inherited from ElementItemEditor | |
ElementItemEditor (QETElementEditor *, QWidget *=nullptr) | |
~ElementItemEditor () override | |
virtual QETElementEditor * | elementEditor () const |
virtual ElementScene * | elementScene () const |
virtual QUndoStack & | undoStack () const |
virtual QString | elementTypeName () const |
virtual void | setElementTypeName (const QString &) |
virtual void | detach () |
virtual void | updateForm ()=0 |
Private Member Functions | |
EllipseEditor (const EllipseEditor &) | |
void | activeConnections (bool) |
void | setUpChangeConnections () |
setUpChangeConnections Setup the connection from the ellipse(s) to the widget, to update it when the ellipse(s) are changed (moved ...) More... | |
void | disconnectChangeConnections () |
Private Attributes | |
PartEllipse * | part |
StyleEditor * | style_ |
QDoubleSpinBox * | x |
QDoubleSpinBox * | y |
QDoubleSpinBox * | h |
QDoubleSpinBox * | v |
bool | m_locked |
QList< QMetaObject::Connection > | m_change_connections |
This class provides a widget to edit ellipses within the element editor.
EllipseEditor::EllipseEditor | ( | QETElementEditor * | editor, |
PartEllipse * | ellipse = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | L'editeur d'element concerne |
ellipse | L'ellipse a editer |
parent | le Widget parent |
|
override |
Destructeur.
|
private |
|
private |
Active ou desactive les connexionx signaux/slots entre les widgets internes.
active | true pour activer les connexions, false pour les desactiver |
|
overridevirtual |
Implements ElementItemEditor.
|
overridevirtual |
|
private |
|
slot |
|
slot |
|
slot |
|
slot |
|
overridevirtual |
Permet de specifier a cet editeur quelle primitive il doit editer. A noter qu'un editeur peut accepter ou refuser d'editer une primitive. L'editeur d'ellipse acceptera d'editer la primitive new_part s'il s'agit d'un objet de la classe PartEllipse.
new_part | Nouvelle primitive a editer |
Implements ElementItemEditor.
|
overridevirtual |
|
private |
setUpChangeConnections Setup the connection from the ellipse(s) to the widget, to update it when the ellipse(s) are changed (moved ...)
|
overrideslot |
Met a jour le formulaire d'edition
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |