QElectroTech
0.8-dev
|
The TerminalEditor class This class provides a widget to edit terminals within the element editor. The class is capable to change the values of multiple parts of the same time. The displayed values are from the first selected element. More...
#include <terminaleditor.h>
Public Slots | |
void | updateTerminalO () |
Met a jour l'orientation de la borne et cree un objet d'annulation. More... | |
void | updateXPos () |
TerminalEditor::updateXPos. More... | |
void | updateYPos () |
TerminalEditor::updateYPos. More... | |
void | updateForm () override |
update Number and name, create cancel object More... | |
Public Member Functions | |
TerminalEditor (QETElementEditor *, QList< PartTerminal * > &terms, QWidget *=nullptr) | |
TerminalEditor::TerminalEditor Constructeur. More... | |
TerminalEditor (QETElementEditor *, QWidget *=nullptr) | |
TerminalEditor::TerminalEditor. More... | |
~TerminalEditor () override | |
TerminalEditor::~TerminalEditor Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
bool | setParts (QList< CustomElementPart * > parts) override |
CustomElementPart * | currentPart () const override |
QList< CustomElementPart * > | currentParts () 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 void | updateForm ()=0 |
Private Member Functions | |
TerminalEditor (const TerminalEditor &) | |
void | init () |
TerminalEditor::init. More... | |
void | activeConnections (bool) |
Private Attributes | |
QList< PartTerminal * > | m_terminals |
PartTerminal * | m_part {nullptr} |
QDoubleSpinBox * | qle_x |
QDoubleSpinBox * | qle_y |
QComboBox * | orientation |
bool | m_locked {false} |
The TerminalEditor class This class provides a widget to edit terminals within the element editor. The class is capable to change the values of multiple parts of the same time. The displayed values are from the first selected element.
TerminalEditor::TerminalEditor | ( | QETElementEditor * | editor, |
QList< PartTerminal * > & | terms, | ||
QWidget * | parent = nullptr |
||
) |
TerminalEditor::TerminalEditor Constructeur.
editor | : L'editeur d'element concerne |
terms | : La borne a editer |
parent | : QWidget parent de ce widget |
TerminalEditor::TerminalEditor | ( | QETElementEditor * | editor, |
QWidget * | parent = nullptr |
||
) |
|
override |
TerminalEditor::~TerminalEditor Destructeur.
|
private |
|
private |
Active ou desactive les connexionx signaux/slots entre les widgets internes.
active | true pour activer les connexions, false pour les desactiver |
|
overridevirtual |
Implements ElementItemEditor.
|
overridevirtual |
Implements ElementItemEditor.
|
private |
|
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.
|
overridevirtual |
|
overrideslot |
update Number and name, create cancel object
Met a jour le formulaire d'edition
|
slot |
Met a jour l'orientation de la borne et cree un objet d'annulation.
|
slot |
|
slot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |