QElectroTech
0.70
|
#include <ellipseeditor.h>
Public Slots | |
void | editingFinished () |
void | updateForm () override |
Public Member Functions | |
EllipseEditor (QETElementEditor *, PartEllipse *=nullptr, QWidget *=nullptr) | |
~EllipseEditor () override | |
Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
CustomElementPart * | currentPart () 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 bool | setParts (QList< CustomElementPart *>) |
virtual void | updateForm ()=0 |
Private Member Functions | |
EllipseEditor (const EllipseEditor &) | |
void | activeConnections (bool) |
Private Attributes | |
PartEllipse * | part |
StyleEditor * | style_ |
QDoubleSpinBox * | x |
QDoubleSpinBox * | y |
QDoubleSpinBox * | h |
QDoubleSpinBox * | v |
bool | m_locked |
This class provides a widget to edit ellipses within the element editor.
Definition at line 30 of file ellipseeditor.h.
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 |
Definition at line 30 of file ellipseeditor.cpp.
References activeConnections(), h, style_, QET::Icons::tr, updateForm(), v, x, and y.
|
override |
Destructeur.
Definition at line 70 of file ellipseeditor.cpp.
|
private |
|
private |
Active ou desactive les connexionx signaux/slots entre les widgets internes.
active | true pour activer les connexions, false pour les desactiver |
Definition at line 149 of file ellipseeditor.cpp.
References editingFinished(), h, v, x, and y.
Referenced by EllipseEditor(), and updateForm().
|
overridevirtual |
Implements ElementItemEditor.
Definition at line 108 of file ellipseeditor.cpp.
References part.
|
slot |
Definition at line 112 of file ellipseeditor.cpp.
References ElementItemEditor::elementScene(), h, m_locked, part, CustomElementGraphicPart::property(), PastePartsCommand::undo(), ElementScene::undoStack(), v, x, and y.
Referenced by activeConnections().
|
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.
Definition at line 81 of file ellipseeditor.cpp.
References part, AbstractPartEllipse::rectChanged(), style_, and updateForm().
|
overrideslot |
Met a jour le formulaire d'edition
Definition at line 133 of file ellipseeditor.cpp.
References activeConnections(), h, part, CustomElementGraphicPart::property(), v, x, and y.
Referenced by EllipseEditor(), and setPart().
|
private |
Definition at line 45 of file ellipseeditor.h.
Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().
|
private |
Definition at line 46 of file ellipseeditor.h.
Referenced by editingFinished().
|
private |
Definition at line 43 of file ellipseeditor.h.
Referenced by currentPart(), editingFinished(), setPart(), and updateForm().
|
private |
Definition at line 44 of file ellipseeditor.h.
Referenced by EllipseEditor(), and setPart().
|
private |
Definition at line 45 of file ellipseeditor.h.
Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().
|
private |
Definition at line 45 of file ellipseeditor.h.
Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().
|
private |
Definition at line 45 of file ellipseeditor.h.
Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().