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

#include <lineeditor.h>

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

Public Slots

void updateLineEndType1 ()
 Met a jour le type de la premiere extremite. More...
 
void updateLineEndLength1 ()
 Met a jour la longueur de la premiere extremite. More...
 
void updateLineEndType2 ()
 Met a jour le type de la seconde extremite. More...
 
void updateLineEndLength2 ()
 Met a jour la longueur de la seconde extremite. More...
 
void lineEditingFinishedX1 ()
 
void lineEditingFinishedY1 ()
 
void lineEditingFinishedX2 ()
 
void lineEditingFinishedY2 ()
 
void updateForm () override
 LineEditor::updateForm Update the value of the widgets. More...
 

Public Member Functions

 LineEditor (QETElementEditor *, PartLine *=nullptr, QWidget *=nullptr)
 
 ~LineEditor () override
 Destructeur. More...
 
bool setPart (CustomElementPart *) override
 LineEditor::setPart Specifie to this editor the part to edit. Note that an editor can accept or refuse to edit a part. This editor accept only PartLine. More...
 
bool setParts (QList< CustomElementPart * > parts) override
 
CustomElementPartcurrentPart () const override
 
QList< CustomElementPart * > currentParts () const override
 
QPointF editedP1 () const
 LineEditor::editedP1. More...
 
QPointF editedP2 () const
 LineEditor::editedP2. More...
 
- 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

 LineEditor (const LineEditor &)
 
void activeConnections (bool)
 LineEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable. More...
 
void setUpChangeConnections ()
 setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...) More...
 
void disconnectChangeConnections ()
 

Private Attributes

PartLinepart
 
StyleEditorstyle_
 
QDoubleSpinBox * x1
 
QDoubleSpinBox * y1
 
QDoubleSpinBox * x2
 
QDoubleSpinBox * y2
 
QComboBox * end1_type
 
QComboBox * end2_type
 
QDoubleSpinBox * end1_length
 
QDoubleSpinBox * end2_length
 
bool m_locked
 
QList< QMetaObject::Connection > m_change_connections
 

Detailed Description

This class provides a widget to edit lines within the element editor.

Constructor & Destructor Documentation

◆ LineEditor() [1/2]

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

Constructeur

Parameters
editorL'editeur d'element concerne
lineLa ligne a editer
parentle Widget parent
Here is the call graph for this function:

◆ ~LineEditor()

LineEditor::~LineEditor ( )
override

Destructeur.

◆ LineEditor() [2/2]

LineEditor::LineEditor ( const LineEditor )
private

Member Function Documentation

◆ activeConnections()

void LineEditor::activeConnections ( bool  active)
private

LineEditor::activeConnections Enable/disable connection between editor widget and slot editingFinished True == enable | false == disable.

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

◆ currentPart()

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

Implements ElementItemEditor.

◆ currentParts()

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

Implements ElementItemEditor.

Here is the call graph for this function:

◆ disconnectChangeConnections()

void LineEditor::disconnectChangeConnections ( )
private
Here is the caller graph for this function:

◆ editedP1()

QPointF LineEditor::editedP1 ( ) const

LineEditor::editedP1.

Returns
The edited P1 in item coordinate

◆ editedP2()

QPointF LineEditor::editedP2 ( ) const

LineEditor::editedP2.

Returns
The edited P2 in item coordinate

◆ lineEditingFinishedX1

void LineEditor::lineEditingFinishedX1 ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lineEditingFinishedX2

void LineEditor::lineEditingFinishedX2 ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lineEditingFinishedY1

void LineEditor::lineEditingFinishedY1 ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lineEditingFinishedY2

void LineEditor::lineEditingFinishedY2 ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPart()

bool LineEditor::setPart ( CustomElementPart new_part)
overridevirtual

LineEditor::setPart Specifie to this editor the part to edit. Note that an editor can accept or refuse to edit a part. This editor accept only PartLine.

Parameters
new_part
Returns

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

Reimplemented from ElementItemEditor.

Here is the call graph for this function:

◆ setUpChangeConnections()

void LineEditor::setUpChangeConnections ( )
private

setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...)

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

◆ updateForm

void LineEditor::updateForm ( )
overrideslot

LineEditor::updateForm Update the value of the widgets.

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

◆ updateLineEndLength1

void LineEditor::updateLineEndLength1 ( )
slot

Met a jour la longueur de la premiere extremite.

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

◆ updateLineEndLength2

void LineEditor::updateLineEndLength2 ( )
slot

Met a jour la longueur de la seconde extremite.

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

◆ updateLineEndType1

void LineEditor::updateLineEndType1 ( )
slot

Met a jour le type de la premiere extremite.

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

◆ updateLineEndType2

void LineEditor::updateLineEndType2 ( )
slot

Met a jour le type de la seconde extremite.

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

Member Data Documentation

◆ end1_length

QDoubleSpinBox* LineEditor::end1_length
private

◆ end1_type

QComboBox* LineEditor::end1_type
private

◆ end2_length

QDoubleSpinBox * LineEditor::end2_length
private

◆ end2_type

QComboBox * LineEditor::end2_type
private

◆ m_change_connections

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

◆ m_locked

bool LineEditor::m_locked
private

◆ part

PartLine* LineEditor::part
private

◆ style_

StyleEditor* LineEditor::style_
private

◆ x1

QDoubleSpinBox* LineEditor::x1
private

◆ x2

QDoubleSpinBox * LineEditor::x2
private

◆ y1

QDoubleSpinBox * LineEditor::y1
private

◆ y2

QDoubleSpinBox * LineEditor::y2
private

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