QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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 Slots

void refreshMasterLabelVisibility ()

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 showNameEdited ()
 TerminalEditor::activeConnections Active connection between the widgets used in this editor and method of this class.
void labelPosEdited ()
void labelFontClicked ()
void labelSizeEdited ()
void labelRotationEdited ()
void labelAlignClicked ()
void labelFrameEdited ()
void labelColorClicked ()
void activeConnections (bool active)
void activeChangeConnections (bool active)
void useMasterLabelEdited ()
void masterLabelIndexEdited ()
bool updateMasterLabelVisibility ()

Private Attributes

Ui::TerminalEditor * ui
QVector< QMetaObject::Connection > m_editor_connections
QVector< QMetaObject::Connection > m_change_connections
PartTerminalm_part = nullptr
bool m_locked = false
KColorButtonm_color_pb

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:
Here is the caller 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
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 call graph for this function:
Here is the caller graph for this function:

◆ labelAlignClicked()

void TerminalEditor::labelAlignClicked ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ labelColorClicked()

void TerminalEditor::labelColorClicked ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ labelFontClicked()

void TerminalEditor::labelFontClicked ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ labelFrameEdited()

void TerminalEditor::labelFrameEdited ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ labelPosEdited()

void TerminalEditor::labelPosEdited ( )
private
Here is the call graph for this function:

◆ labelRotationEdited()

void TerminalEditor::labelRotationEdited ( )
private
Here is the call graph for this function:

◆ labelSizeEdited()

void TerminalEditor::labelSizeEdited ( )
private
Here is the call graph for this function:

◆ masterLabelIndexEdited()

void TerminalEditor::masterLabelIndexEdited ( )
private
Here is the call graph for this function:
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:

◆ refreshMasterLabelVisibility

void TerminalEditor::refreshMasterLabelVisibility ( )
slot
Here is the call graph for this function:
Here is the caller 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:

◆ showNameEdited()

void TerminalEditor::showNameEdited ( )
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:

◆ 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:

◆ updateMasterLabelVisibility()

bool TerminalEditor::updateMasterLabelVisibility ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useMasterLabelEdited()

void TerminalEditor::useMasterLabelEdited ( )
private
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_color_pb

KColorButton* TerminalEditor::m_color_pb
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: