QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TerminalEditor Class Reference

The TerminalEditor class Provide a widget used to edit the properties of a PartTerminal. More...

#include <terminaleditor.h>

Inheritance diagram for TerminalEditor:
Inheritance graph
Collaboration diagram for TerminalEditor:
Collaboration graph

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.
 
CustomElementPartcurrentPart () const override
 TerminalEditor::currentPart.
 
QList< CustomElementPart * > currentParts () const override
 
- Public Member Functions inherited from ElementItemEditor
 ElementItemEditor (QETElementEditor *, QWidget *=nullptr)
 
 ~ElementItemEditor () override
 
virtual QETElementEditorelementEditor () const
 
virtual ElementSceneelementScene () 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
 
PartTerminalm_part = nullptr
 
bool m_locked = false
 

Detailed Description

The TerminalEditor class Provide a widget used to edit the properties of a PartTerminal.

Constructor & Destructor Documentation

◆ TerminalEditor()

TerminalEditor::TerminalEditor ( QETElementEditor editor,
QWidget *  parent = nullptr 
)

TerminalEditor::TerminalEditor Default constructor.

Parameters
editor: element editor of which this terminal editor belong
parent: parent widget
Here is the call graph for this function:

◆ ~TerminalEditor()

TerminalEditor::~TerminalEditor ( )
override

Member Function Documentation

◆ activeChangeConnections()

void TerminalEditor::activeChangeConnections ( bool  active)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activeConnections()

void TerminalEditor::activeConnections ( bool  active)
private

TerminalEditor::activeConnections Active connection between the widgets used in this editor and method of this class.

Parameters
active
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentPart()

CustomElementPart * TerminalEditor::currentPart ( ) const
overridevirtual

TerminalEditor::currentPart.

Returns
the current edited part or nullptr if there is no part or several part
See also
QList<CustomElementPart *> TerminalEditor::currentParts() const

Implements ElementItemEditor.

◆ currentParts()

QList< CustomElementPart * > TerminalEditor::currentParts ( ) const
inlineoverridevirtual

Implements ElementItemEditor.

◆ init()

void TerminalEditor::init ( )
private

TerminalEditor::init Some init about this class.

Here is the caller graph for this function:

◆ nameEdited()

void TerminalEditor::nameEdited ( )
private

TerminalEditor::nameEdited.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ orientationEdited()

void TerminalEditor::orientationEdited ( )
private

TerminalEditor::orientationEdited.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ posEdited()

void TerminalEditor::posEdited ( )
private

TerminalEditor::posEdited.

Here is the call graph for this function:

◆ setPart()

bool TerminalEditor::setPart ( CustomElementPart new_part)
overridevirtual

TerminalEditor::setPart Set the part to edit. The part must be a PartTerminal, in other case return false.

Parameters
new_part: the part to edit
Returns
true if the part can be edited.

Implements ElementItemEditor.

Here is the call graph for this function:

◆ typeEdited()

void TerminalEditor::typeEdited ( )
private

TerminalEditor::typeEdited.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateForm()

void TerminalEditor::updateForm ( )
overridevirtual

TerminalEditor::updateForm Reimplemented from ElementItemEditor Update the content of this widget.

Implements ElementItemEditor.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_change_connections

QVector<QMetaObject::Connection> TerminalEditor::m_change_connections
private

◆ m_editor_connections

QVector<QMetaObject::Connection> TerminalEditor::m_editor_connections
private

◆ m_locked

bool TerminalEditor::m_locked = false
private

◆ m_part

PartTerminal* TerminalEditor::m_part = nullptr
private

◆ ui

Ui::TerminalEditor* TerminalEditor::ui
private

The documentation for this class was generated from the following files: