QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
ArcEditor Class Reference

#include <arceditor.h>

Inheritance diagram for ArcEditor:
Inheritance graph
Collaboration diagram for ArcEditor:
Collaboration graph

Public Slots

void updateArcS ()
 ArcEditor::updateArcS Update the start angle of the arc according to the edited value.
void updateArcA ()
 ArcEditor::updateArcA Update the span angle of the arc according to the edited value.
void updateForm () override
 ArcEditor::updateForm Update the value of the widgets.
void updateRect ()

Public Member Functions

 ArcEditor (QETElementEditor *, PartArc *=nullptr, QWidget *=nullptr)
 ~ArcEditor () override
 Destructeur.
bool setPart (CustomElementPart *) override
 ArcEditor::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 partArc.
bool setParts (QList< CustomElementPart * > parts) override
CustomElementPartcurrentPart () const override
 ArcEditor::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 void updateForm ()=0

Private Member Functions

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

Private Attributes

PartArcm_part
StyleEditorm_style
QDoubleSpinBox * x
QDoubleSpinBox * y
QDoubleSpinBox * h
QDoubleSpinBox * v
QSpinBox * angle
QSpinBox * start_angle
bool m_locked
QList< QMetaObject::Connection > m_change_connections

Detailed Description

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

Constructor & Destructor Documentation

◆ ArcEditor() [1/2]

ArcEditor::ArcEditor ( QETElementEditor * editor,
PartArc * arc = nullptr,
QWidget * parent = nullptr )

Constructeur

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

◆ ~ArcEditor()

ArcEditor::~ArcEditor ( )
override

Destructeur.

◆ ArcEditor() [2/2]

ArcEditor::ArcEditor ( const ArcEditor & )
private
Here is the call graph for this function:

Member Function Documentation

◆ activeConnections()

void ArcEditor::activeConnections ( bool active)
private

ArcEditor::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 * ArcEditor::currentPart ( ) const
overridevirtual

ArcEditor::currentPart.

Returns
the current edited part, or 0 if there is no edited part

Implements ElementItemEditor.

◆ currentParts()

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

Implements ElementItemEditor.

◆ disconnectChangeConnections()

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

◆ setPart()

bool ArcEditor::setPart ( CustomElementPart * new_part)
overridevirtual

ArcEditor::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 partArc.

Parameters
new_part
Returns

Implements ElementItemEditor.

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

◆ setParts()

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

Reimplemented from ElementItemEditor.

Here is the call graph for this function:

◆ setUpChangeConnections()

void ArcEditor::setUpChangeConnections ( )
private

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

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

◆ updateArcA

void ArcEditor::updateArcA ( )
slot

ArcEditor::updateArcA Update the span angle of the arc according to the edited value.

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

◆ updateArcS

void ArcEditor::updateArcS ( )
slot

ArcEditor::updateArcS Update the start angle of the arc according to the edited value.

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

◆ updateForm

void ArcEditor::updateForm ( )
overrideslot

ArcEditor::updateForm Update the value of the widgets.

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

◆ updateRect

void ArcEditor::updateRect ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ angle

QSpinBox* ArcEditor::angle
private

◆ h

QDoubleSpinBox * ArcEditor::h
private

◆ m_change_connections

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

◆ m_locked

bool ArcEditor::m_locked
private

◆ m_part

PartArc* ArcEditor::m_part
private

◆ m_style

StyleEditor* ArcEditor::m_style
private

◆ start_angle

QSpinBox * ArcEditor::start_angle
private

◆ v

QDoubleSpinBox * ArcEditor::v
private

◆ x

QDoubleSpinBox* ArcEditor::x
private

◆ y

QDoubleSpinBox * ArcEditor::y
private

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