QElectroTech  0.8-dev
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TerminalEditor Class Reference

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>

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

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
 
CustomElementPartcurrentPart () const override
 
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 void updateForm ()=0
 

Private Member Functions

 TerminalEditor (const TerminalEditor &)
 
void init ()
 TerminalEditor::init. More...
 
void activeConnections (bool)
 

Private Attributes

QList< PartTerminal * > m_terminals
 
PartTerminalm_part {nullptr}
 
QDoubleSpinBox * qle_x
 
QDoubleSpinBox * qle_y
 
QComboBox * orientation
 
bool m_locked {false}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TerminalEditor() [1/3]

TerminalEditor::TerminalEditor ( QETElementEditor editor,
QList< PartTerminal * > &  terms,
QWidget *  parent = nullptr 
)

TerminalEditor::TerminalEditor Constructeur.

Parameters
editor: L'editeur d'element concerne
terms: La borne a editer
parent: QWidget parent de ce widget
Here is the call graph for this function:

◆ TerminalEditor() [2/3]

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

TerminalEditor::TerminalEditor.

Parameters
editor
parent
Here is the call graph for this function:

◆ ~TerminalEditor()

TerminalEditor::~TerminalEditor ( )
override

◆ TerminalEditor() [3/3]

TerminalEditor::TerminalEditor ( const TerminalEditor )
private

Member Function Documentation

◆ activeConnections()

void TerminalEditor::activeConnections ( bool  active)
private

Active ou desactive les connexionx signaux/slots entre les widgets internes.

Parameters
activetrue pour activer les connexions, false pour les desactiver
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentPart()

CustomElementPart * TerminalEditor::currentPart ( ) const
overridevirtual
Returns
la primitive actuellement editee, ou 0 si ce widget n'en edite pas

Implements ElementItemEditor.

◆ currentParts()

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

Implements ElementItemEditor.

◆ init()

void TerminalEditor::init ( )
private

TerminalEditor::init.

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

◆ setPart()

bool TerminalEditor::setPart ( CustomElementPart new_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.

Parameters
new_partNouvelle primitive a editer
Returns
true si l'editeur a accepter d'editer la primitive, false sinon

Implements ElementItemEditor.

Here is the call graph for this function:

◆ setParts()

bool TerminalEditor::setParts ( QList< CustomElementPart * >  parts)
overridevirtual

Reimplemented from ElementItemEditor.

Here is the call graph for this function:

◆ updateForm

void TerminalEditor::updateForm ( )
overrideslot

update Number and name, create cancel object

Met a jour le formulaire d'edition

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

◆ updateTerminalO

void TerminalEditor::updateTerminalO ( )
slot

Met a jour l'orientation de la borne et cree un objet d'annulation.

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

◆ updateXPos

void TerminalEditor::updateXPos ( )
slot

TerminalEditor::updateXPos.

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

◆ updateYPos

void TerminalEditor::updateYPos ( )
slot

TerminalEditor::updateYPos.

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

Member Data Documentation

◆ m_locked

bool TerminalEditor::m_locked {false}
private

◆ m_part

PartTerminal* TerminalEditor::m_part {nullptr}
private

◆ m_terminals

QList<PartTerminal *> TerminalEditor::m_terminals
private

◆ orientation

QComboBox* TerminalEditor::orientation
private

◆ qle_x

QDoubleSpinBox* TerminalEditor::qle_x
private

◆ qle_y

QDoubleSpinBox * TerminalEditor::qle_y
private

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