QElectroTech
0.8-dev
|
#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 | lineEditingFinishedX1 () |
void | lineEditingFinishedY1 () |
void | lineEditingFinishedX2 () |
void | lineEditingFinishedY2 () |
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... | |
bool | setParts (QList< CustomElementPart * > parts) override |
CustomElementPart * | currentPart () const override |
QList< CustomElementPart * > | currentParts () const override |
QPointF | editedP1 () const |
LineEditor::editedP1. More... | |
QPointF | editedP2 () const |
LineEditor::editedP2. 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 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... | |
void | setUpChangeConnections () |
setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...) More... | |
void | disconnectChangeConnections () |
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 |
QList< QMetaObject::Connection > | m_change_connections |
This class provides a widget to edit lines within the element editor.
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 |
|
override |
Destructeur.
|
private |
|
private |
LineEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable.
active |
|
overridevirtual |
Implements ElementItemEditor.
|
overridevirtual |
|
private |
QPointF LineEditor::editedP1 | ( | ) | const |
QPointF LineEditor::editedP2 | ( | ) | const |
|
slot |
|
slot |
|
slot |
|
slot |
|
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.
|
overridevirtual |
|
private |
setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...)
|
overrideslot |
LineEditor::updateForm Update the value of the widgets.
|
slot |
Met a jour la longueur de la premiere extremite.
|
slot |
Met a jour la longueur de la seconde extremite.
|
slot |
Met a jour le type de la premiere extremite.
|
slot |
Met a jour le type de la seconde extremite.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |