|
QElectroTech
0.70
|
#include <terminaleditor.h>
Public Slots | |
| void | updateTerminalO () |
| Met a jour l'orientation de la borne et cree un objet d'annulation. More... | |
| void | updatePos () |
| void | updateForm () override |
| update Number and name, create cancel object More... | |
Public Member Functions | |
| TerminalEditor (QETElementEditor *, PartTerminal *=nullptr, QWidget *=nullptr) | |
| ~TerminalEditor () 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 | |
| TerminalEditor (const TerminalEditor &) | |
| void | activeConnections (bool) |
Private Attributes | |
| PartTerminal * | part |
| QDoubleSpinBox * | qle_x |
| QDoubleSpinBox * | qle_y |
| QComboBox * | orientation |
| bool | m_locked |
This class provides a widget to edit terminals within the element editor.
Definition at line 30 of file terminaleditor.h.
| TerminalEditor::TerminalEditor | ( | QETElementEditor * | editor, |
| PartTerminal * | term = nullptr, |
||
| QWidget * | parent = nullptr |
||
| ) |
Constructeur
| editor | L'editeur d'element concerne |
| term | La borne a editer |
| parent | QWidget parent de ce widget |
Definition at line 34 of file terminaleditor.cpp.
References activeConnections(), QET::Icons::East, Qet::East, QET::Icons::North, Qet::North, orientation, qle_x, qle_y, QET::Icons::South, Qet::South, QET::Icons::tr, updateForm(), QET::Icons::West, and Qet::West.
|
override |
Destructeur.
Definition at line 74 of file terminaleditor.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 161 of file terminaleditor.cpp.
References orientation, qle_x, qle_y, updatePos(), and updateTerminalO().
Referenced by TerminalEditor(), and updateForm().
|
overridevirtual |
Implements ElementItemEditor.
Definition at line 110 of file terminaleditor.cpp.
References part.
|
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 de borne acceptera d'editer la primitive new_part s'il s'agit d'un objet de la classe PartTerminal.
| new_part | Nouvelle primitive a editer |
Implements ElementItemEditor.
Definition at line 85 of file terminaleditor.cpp.
References PartTerminal::orientationChanged(), part, and updateForm().
|
overrideslot |
update Number and name, create cancel object
Met a jour le formulaire d'edition
Definition at line 148 of file terminaleditor.cpp.
References activeConnections(), orientation, part, CustomElementGraphicPart::property(), qle_x, and qle_y.
Referenced by setPart(), and TerminalEditor().
|
slot |
Definition at line 129 of file terminaleditor.cpp.
References QPropertyUndoCommand::enableAnimation(), m_locked, part, CustomElementGraphicPart::property(), qle_x, qle_y, QET::Icons::tr, and ElementItemEditor::undoStack().
Referenced by activeConnections().
|
slot |
Met a jour l'orientation de la borne et cree un objet d'annulation.
Definition at line 115 of file terminaleditor.cpp.
References m_locked, orientation, part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementItemEditor::undoStack().
Referenced by activeConnections().
|
private |
Definition at line 44 of file terminaleditor.h.
Referenced by updatePos(), and updateTerminalO().
|
private |
Definition at line 43 of file terminaleditor.h.
Referenced by activeConnections(), TerminalEditor(), updateForm(), and updateTerminalO().
|
private |
Definition at line 41 of file terminaleditor.h.
Referenced by currentPart(), setPart(), updateForm(), updatePos(), and updateTerminalO().
|
private |
Definition at line 42 of file terminaleditor.h.
Referenced by activeConnections(), TerminalEditor(), updateForm(), and updatePos().
|
private |
Definition at line 42 of file terminaleditor.h.
Referenced by activeConnections(), TerminalEditor(), updateForm(), and updatePos().
1.8.15