QElectroTech
0.70
|
#include <arceditor.h>
Public Slots | |
void | updateArcS () |
ArcEditor::updateArcS Update the start angle of the arc according to the edited value. More... | |
void | updateArcA () |
ArcEditor::updateArcA Update the span angle of the arc according to the edited value. More... | |
void | updateArcRect () |
ArcEditor::updateArcRect Update the geometrie of the rect that define this arc according the the edited values. More... | |
void | updateForm () override |
ArcEditor::updateForm Update the value of the widgets. More... | |
Public Member Functions | |
ArcEditor (QETElementEditor *, PartArc *=nullptr, QWidget *=nullptr) | |
~ArcEditor () override | |
Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
ArcEditor::setPart Specifie to this editor the part to edit. Note that an editor can accept or refuse to edit a part. This editor accept only partArc. More... | |
CustomElementPart * | currentPart () const override |
ArcEditor::currentPart. More... | |
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 | |
ArcEditor (const ArcEditor &) | |
void | activeConnections (bool) |
ArcEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable. More... | |
Private Attributes | |
PartArc * | part |
StyleEditor * | style_ |
QDoubleSpinBox * | x |
QDoubleSpinBox * | y |
QDoubleSpinBox * | h |
QDoubleSpinBox * | v |
QSpinBox * | angle |
QSpinBox * | start_angle |
bool | m_locked |
This class provides a widget to edit elliptical arcs within the element editor.
Definition at line 31 of file arceditor.h.
ArcEditor::ArcEditor | ( | QETElementEditor * | editor, |
PartArc * | arc = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | L'editeur d'element concerne |
arc | L'arc a editer |
parent | le Widget parent |
Definition at line 30 of file arceditor.cpp.
References activeConnections(), angle, h, start_angle, style_, QET::Icons::tr, updateForm(), v, x, and y.
|
override |
Destructeur.
Definition at line 78 of file arceditor.cpp.
|
private |
|
private |
ArcEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable.
active |
Definition at line 219 of file arceditor.cpp.
References angle, h, start_angle, updateArcA(), updateArcRect(), updateArcS(), v, x, and y.
Referenced by ArcEditor(), and updateForm().
|
overridevirtual |
Implements ElementItemEditor.
Definition at line 127 of file arceditor.cpp.
References part.
|
overridevirtual |
ArcEditor::setPart Specifie to this editor the part to edit. Note that an editor can accept or refuse to edit a part. This editor accept only partArc.
new_part |
Implements ElementItemEditor.
Definition at line 87 of file arceditor.cpp.
References part, AbstractPartEllipse::rectChanged(), AbstractPartEllipse::spanAngleChanged(), AbstractPartEllipse::startAngleChanged(), style_, and updateForm().
|
slot |
ArcEditor::updateArcA Update the span angle of the arc according to the edited value.
Definition at line 156 of file arceditor.cpp.
References angle, ElementItemEditor::elementScene(), QPropertyUndoCommand::enableAnimation(), m_locked, part, CustomElementGraphicPart::property(), and ElementScene::undoStack().
Referenced by activeConnections().
|
slot |
ArcEditor::updateArcRect Update the geometrie of the rect that define this arc according the the edited values.
Definition at line 177 of file arceditor.cpp.
References ElementItemEditor::elementScene(), QPropertyUndoCommand::enableAnimation(), h, m_locked, part, CustomElementGraphicPart::property(), ElementScene::undoStack(), v, x, and y.
Referenced by activeConnections().
|
slot |
ArcEditor::updateArcS Update the start angle of the arc according to the edited value.
Definition at line 135 of file arceditor.cpp.
References ElementItemEditor::elementScene(), QPropertyUndoCommand::enableAnimation(), m_locked, part, CustomElementGraphicPart::property(), start_angle, and ElementScene::undoStack().
Referenced by activeConnections().
|
overrideslot |
ArcEditor::updateForm Update the value of the widgets.
Definition at line 199 of file arceditor.cpp.
References activeConnections(), angle, h, part, CustomElementGraphicPart::property(), start_angle, v, x, and y.
Referenced by ArcEditor(), and setPart().
|
private |
Definition at line 47 of file arceditor.h.
Referenced by activeConnections(), ArcEditor(), updateArcA(), and updateForm().
|
private |
Definition at line 46 of file arceditor.h.
Referenced by activeConnections(), ArcEditor(), updateArcRect(), and updateForm().
|
private |
Definition at line 48 of file arceditor.h.
Referenced by updateArcA(), updateArcRect(), and updateArcS().
|
private |
Definition at line 44 of file arceditor.h.
Referenced by currentPart(), setPart(), updateArcA(), updateArcRect(), updateArcS(), and updateForm().
|
private |
Definition at line 47 of file arceditor.h.
Referenced by activeConnections(), ArcEditor(), updateArcS(), and updateForm().
|
private |
Definition at line 45 of file arceditor.h.
Referenced by ArcEditor(), and setPart().
|
private |
Definition at line 46 of file arceditor.h.
Referenced by activeConnections(), ArcEditor(), updateArcRect(), and updateForm().
|
private |
Definition at line 46 of file arceditor.h.
Referenced by activeConnections(), ArcEditor(), updateArcRect(), and updateForm().
|
private |
Definition at line 46 of file arceditor.h.
Referenced by activeConnections(), ArcEditor(), updateArcRect(), and updateForm().