QElectroTech 0.100.0-dev
|
The TerminalEditor class Provide a widget used to edit the properties of a PartTerminal. More...
#include <terminaleditor.h>
Public Member Functions | |
TerminalEditor (QETElementEditor *editor, QWidget *parent=nullptr) | |
TerminalEditor::TerminalEditor Default constructor. | |
~TerminalEditor () override | |
TerminalEditor::~TerminalEditor Destructor. | |
void | updateForm () override |
TerminalEditor::updateForm Reimplemented from ElementItemEditor Update the content of this widget. | |
bool | setPart (CustomElementPart *new_part) override |
TerminalEditor::setPart Set the part to edit. The part must be a PartTerminal, in other case return false. | |
CustomElementPart * | currentPart () const override |
TerminalEditor::currentPart. | |
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 bool | setParts (QList< CustomElementPart * >) |
Private Member Functions | |
void | init () |
TerminalEditor::init Some init about this class. | |
void | posEdited () |
TerminalEditor::posEdited. | |
void | orientationEdited () |
TerminalEditor::orientationEdited. | |
void | nameEdited () |
TerminalEditor::nameEdited. | |
void | typeEdited () |
TerminalEditor::typeEdited. | |
void | activeConnections (bool active) |
TerminalEditor::activeConnections Active connection between the widgets used in this editor and method of this class. | |
void | activeChangeConnections (bool active) |
Private Attributes | |
Ui::TerminalEditor * | ui |
QVector< QMetaObject::Connection > | m_editor_connections |
QVector< QMetaObject::Connection > | m_change_connections |
PartTerminal * | m_part = nullptr |
bool | m_locked = false |
The TerminalEditor class Provide a widget used to edit the properties of a PartTerminal.
TerminalEditor::TerminalEditor | ( | QETElementEditor * | editor, |
QWidget * | parent = nullptr |
||
) |
TerminalEditor::TerminalEditor Default constructor.
editor | : element editor of which this terminal editor belong |
parent | : parent widget |
|
override |
TerminalEditor::~TerminalEditor Destructor.
|
private |
|
private |
TerminalEditor::activeConnections Active connection between the widgets used in this editor and method of this class.
active |
|
overridevirtual |
Implements ElementItemEditor.
|
inlineoverridevirtual |
Implements ElementItemEditor.
|
private |
|
private |
|
private |
TerminalEditor::orientationEdited.
|
private |
|
overridevirtual |
TerminalEditor::setPart Set the part to edit. The part must be a PartTerminal, in other case return false.
new_part | : the part to edit |
Implements ElementItemEditor.
|
private |
|
overridevirtual |
TerminalEditor::updateForm Reimplemented from ElementItemEditor Update the content of this widget.
Implements ElementItemEditor.
|
private |
|
private |
|
private |
|
private |
|
private |