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

The LineEditor class Provide a widget editor used to edit the properties of a PartLine. More...

#include <lineeditor.h>

Inheritance diagram for LineEditor:
Inheritance graph
Collaboration diagram for LineEditor:
Collaboration graph

Public Member Functions

 LineEditor (QETElementEditor *editor, PartLine *part=nullptr, QWidget *parent=nullptr)
 LineEditor::LineEditor.
 
 ~LineEditor () override
 LineEditor::~LineEditor.
 
bool setPart (CustomElementPart *part) override
 LineEditor::setPart Reimplemented from ElementItemEditor.
 
bool setParts (QList< CustomElementPart * > parts) override
 LineEditor::setParts Reimplemented from ElementItemEditor.
 
CustomElementPartcurrentPart () const override
 LineEditor::currentPart.
 
QList< CustomElementPart * > currentParts () const override
 LineEditor::currentParts.
 
void updateForm () override
 LineEditor::updateForm Reimplemented from ElementItemEditor.
 
- 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 ()
 

Private Member Functions

void setUpChangeConnections ()
 LineEditor::setUpChangeConnections Make the connection use for update the form when line is edited out of this editor.
 
void disconnectChangeConnections ()
 LineEditor::disconnectChangeConnections disconnect the connection use for update the form when line is edited out of this editor.
 
void activeConnection (bool active)
 LineEditor::activeConnection Active or not the connection between the signals from widgets of this editor and the slots.
 
void lineEdited ()
 LineEditor::lineEdited slot.
 
void firstEndEdited ()
 LineEditor::firstEndEdited slot.
 
void firstEndLenghtEdited ()
 LineEditor::firstEndLenghtEdited slot.
 
void secondEndEdited ()
 LineEditor::secondEndEdited slot.
 
void secondEndLenghtEdited ()
 LineEditor::secondEndLenghtEdited slot.
 

Private Attributes

PartLinem_part = nullptr
 
Ui::LineEditor * ui
 
StyleEditorm_style = nullptr
 
QList< QMetaObject::Connection > m_change_connections
 
bool m_locked = false
 

Detailed Description

The LineEditor class Provide a widget editor used to edit the properties of a PartLine.

Constructor & Destructor Documentation

◆ LineEditor()

LineEditor::LineEditor ( QETElementEditor editor,
PartLine part = nullptr,
QWidget *  parent = nullptr 
)
explicit

LineEditor::LineEditor.

Parameters
editor: Element editor who belong this editor
part: part line to edit
parent: parent widget
Here is the call graph for this function:

◆ ~LineEditor()

LineEditor::~LineEditor ( )
override

Member Function Documentation

◆ activeConnection()

void LineEditor::activeConnection ( bool  active)
private

LineEditor::activeConnection Active or not the connection between the signals from widgets of this editor and the slots.

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

◆ currentPart()

CustomElementPart * LineEditor::currentPart ( ) const
overridevirtual

LineEditor::currentPart.

Returns
the current edited part or nullptr

Implements ElementItemEditor.

◆ currentParts()

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

LineEditor::currentParts.

Returns
A QList of edited parts

Implements ElementItemEditor.

Here is the call graph for this function:

◆ disconnectChangeConnections()

void LineEditor::disconnectChangeConnections ( )
private

LineEditor::disconnectChangeConnections disconnect the connection use for update the form when line is edited out of this editor.

Here is the caller graph for this function:

◆ firstEndEdited()

void LineEditor::firstEndEdited ( )
private

LineEditor::firstEndEdited slot.

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

◆ firstEndLenghtEdited()

void LineEditor::firstEndLenghtEdited ( )
private

LineEditor::firstEndLenghtEdited slot.

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

◆ lineEdited()

void LineEditor::lineEdited ( )
private

LineEditor::lineEdited slot.

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

◆ secondEndEdited()

void LineEditor::secondEndEdited ( )
private

LineEditor::secondEndEdited slot.

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

◆ secondEndLenghtEdited()

void LineEditor::secondEndLenghtEdited ( )
private

LineEditor::secondEndLenghtEdited slot.

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

◆ setPart()

bool LineEditor::setPart ( CustomElementPart part)
overridevirtual

LineEditor::setPart Reimplemented from ElementItemEditor.

Parameters
part: part line to edit
Returns
: true if the given part can be edited

Implements ElementItemEditor.

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

◆ setParts()

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

LineEditor::setParts Reimplemented from ElementItemEditor.

Parameters
parts: parts to edit
Returns
true if the parts can be edited

Reimplemented from ElementItemEditor.

Here is the call graph for this function:

◆ setUpChangeConnections()

void LineEditor::setUpChangeConnections ( )
private

LineEditor::setUpChangeConnections Make the connection use for update the form when line is edited out of this editor.

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

◆ updateForm()

void LineEditor::updateForm ( )
overridevirtual

LineEditor::updateForm Reimplemented from ElementItemEditor.

Implements ElementItemEditor.

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

Member Data Documentation

◆ m_change_connections

QList<QMetaObject::Connection> LineEditor::m_change_connections
private

◆ m_locked

bool LineEditor::m_locked = false
private

◆ m_part

PartLine* LineEditor::m_part = nullptr
private

◆ m_style

StyleEditor* LineEditor::m_style = nullptr
private

◆ ui

Ui::LineEditor* LineEditor::ui
private

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