QElectroTech
0.70
|
#include <lineeditor.h>
Public Slots | |
void | updateLineEndType1 () |
Met a jour le type de la premiere extremite. More... | |
void | updateLineEndLength1 () |
Met a jour la longueur de la premiere extremite. More... | |
void | updateLineEndType2 () |
Met a jour le type de la seconde extremite. More... | |
void | updateLineEndLength2 () |
Met a jour la longueur de la seconde extremite. More... | |
void | lineEditingFinished () |
void | updateForm () override |
LineEditor::updateForm Update the value of the widgets. More... | |
Public Member Functions | |
LineEditor (QETElementEditor *, PartLine *=nullptr, QWidget *=nullptr) | |
~LineEditor () override | |
Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
LineEditor::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 PartLine. More... | |
CustomElementPart * | currentPart () const override |
QPointF | editedP1 () const |
LineEditor::editedP1. More... | |
QPointF | editedP2 () const |
LineEditor::editedP2. More... | |
![]() | |
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 | |
LineEditor (const LineEditor &) | |
void | activeConnections (bool) |
LineEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable. More... | |
Private Attributes | |
PartLine * | part |
StyleEditor * | style_ |
QDoubleSpinBox * | x1 |
QDoubleSpinBox * | y1 |
QDoubleSpinBox * | x2 |
QDoubleSpinBox * | y2 |
QComboBox * | end1_type |
QComboBox * | end2_type |
QDoubleSpinBox * | end1_length |
QDoubleSpinBox * | end2_length |
bool | m_locked |
This class provides a widget to edit lines within the element editor.
Definition at line 31 of file lineeditor.h.
LineEditor::LineEditor | ( | QETElementEditor * | editor, |
PartLine * | line = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | L'editeur d'element concerne |
line | La ligne a editer |
parent | le Widget parent |
Definition at line 32 of file lineeditor.cpp.
References Qet::Circle, Qet::Diamond, end1_length, end1_type, end2_length, end2_type, QET::Icons::EndLineCircle, QET::Icons::EndLineDiamond, QET::Icons::EndLineNone, QET::Icons::EndLineSimple, QET::Icons::EndLineTriangle, Qet::None, Qet::Simple, style_, QET::Icons::tr, Qet::Triangle, updateForm(), x1, x2, y1, and y2.
|
override |
Destructeur.
Definition at line 92 of file lineeditor.cpp.
|
private |
|
private |
LineEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable.
active |
Definition at line 274 of file lineeditor.cpp.
References end1_length, end1_type, end2_length, end2_type, lineEditingFinished(), updateLineEndLength1(), updateLineEndLength2(), updateLineEndType1(), updateLineEndType2(), x1, x2, y1, and y2.
Referenced by updateForm().
|
overridevirtual |
Implements ElementItemEditor.
Definition at line 145 of file lineeditor.cpp.
References part.
QPointF LineEditor::editedP1 | ( | ) | const |
Definition at line 153 of file lineeditor.cpp.
Referenced by lineEditingFinished().
QPointF LineEditor::editedP2 | ( | ) | const |
Definition at line 161 of file lineeditor.cpp.
Referenced by lineEditingFinished().
|
slot |
Definition at line 231 of file lineeditor.cpp.
References editedP1(), editedP2(), ElementItemEditor::elementScene(), QPropertyUndoCommand::enableAnimation(), m_locked, part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementScene::undoStack().
Referenced by activeConnections().
|
overridevirtual |
LineEditor::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 PartLine.
new_part |
Implements ElementItemEditor.
Definition at line 102 of file lineeditor.cpp.
References PartLine::firstEndLengthChanged(), PartLine::firstEndTypeChanged(), PartLine::lineChanged(), part, PartLine::secondEndLengthChanged(), PartLine::secondEndTypeChanged(), style_, and updateForm().
|
overrideslot |
LineEditor::updateForm Update the value of the widgets.
Definition at line 251 of file lineeditor.cpp.
References activeConnections(), end1_length, end1_type, end2_length, end2_type, part, x1, x2, y1, and y2.
Referenced by LineEditor(), and setPart().
|
slot |
Met a jour la longueur de la premiere extremite.
Definition at line 182 of file lineeditor.cpp.
References ElementItemEditor::elementScene(), QPropertyUndoCommand::enableAnimation(), end1_length, m_locked, part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementScene::undoStack().
Referenced by activeConnections().
|
slot |
Met a jour la longueur de la seconde extremite.
Definition at line 215 of file lineeditor.cpp.
References ElementItemEditor::elementScene(), QPropertyUndoCommand::enableAnimation(), end2_length, m_locked, part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementScene::undoStack().
Referenced by activeConnections().
|
slot |
Met a jour le type de la premiere extremite.
Definition at line 166 of file lineeditor.cpp.
References ElementItemEditor::elementScene(), end1_type, m_locked, part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementScene::undoStack().
Referenced by activeConnections().
|
slot |
Met a jour le type de la seconde extremite.
Definition at line 199 of file lineeditor.cpp.
References ElementItemEditor::elementScene(), end2_type, m_locked, part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementScene::undoStack().
Referenced by activeConnections().
|
private |
Definition at line 47 of file lineeditor.h.
Referenced by activeConnections(), LineEditor(), updateForm(), and updateLineEndLength1().
|
private |
Definition at line 46 of file lineeditor.h.
Referenced by activeConnections(), LineEditor(), updateForm(), and updateLineEndType1().
|
private |
Definition at line 47 of file lineeditor.h.
Referenced by activeConnections(), LineEditor(), updateForm(), and updateLineEndLength2().
|
private |
Definition at line 46 of file lineeditor.h.
Referenced by activeConnections(), LineEditor(), updateForm(), and updateLineEndType2().
|
private |
Definition at line 48 of file lineeditor.h.
Referenced by lineEditingFinished(), updateLineEndLength1(), updateLineEndLength2(), updateLineEndType1(), and updateLineEndType2().
|
private |
Definition at line 43 of file lineeditor.h.
Referenced by currentPart(), editedP1(), editedP2(), lineEditingFinished(), setPart(), updateForm(), updateLineEndLength1(), updateLineEndLength2(), updateLineEndType1(), and updateLineEndType2().
|
private |
Definition at line 44 of file lineeditor.h.
Referenced by LineEditor(), and setPart().
|
private |
Definition at line 45 of file lineeditor.h.
Referenced by activeConnections(), editedP1(), LineEditor(), and updateForm().
|
private |
Definition at line 45 of file lineeditor.h.
Referenced by activeConnections(), editedP2(), LineEditor(), and updateForm().
|
private |
Definition at line 45 of file lineeditor.h.
Referenced by activeConnections(), editedP1(), LineEditor(), and updateForm().
|
private |
Definition at line 45 of file lineeditor.h.
Referenced by activeConnections(), editedP2(), LineEditor(), and updateForm().