QElectroTech  0.8-dev
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
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. More...
 
void updateArcA ()
 ArcEditor::updateArcA Update the span angle of the arc according to the edited value. More...
 
void updateArcRectX ()
 ArcEditor::updateArcRect Update the geometrie of the rect that define this arc according the the edited values. More...
 
void updateArcRectY ()
 
void updateArcRectH ()
 
void updateArcRectV ()
 
void updateForm () override
 ArcEditor::updateForm Update the value of the widgets. More...
 

Public Member Functions

 ArcEditor (QETElementEditor *, PartArc *=nullptr, QWidget *=nullptr)
 
 ~ArcEditor () override
 Destructeur. More...
 
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. More...
 
bool setParts (QList< CustomElementPart * > parts) override
 
CustomElementPartcurrentPart () const override
 ArcEditor::currentPart. More...
 
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. More...
 
void setUpChangeConnections ()
 setUpChangeConnections Setup the connection from the arc(s) to the widget, to update it when the arc(s) are changed (moved ...) More...
 
void disconnectChangeConnections ()
 

Private Attributes

PartArcpart
 
StyleEditorstyle_
 
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:

◆ ~ArcEditor()

ArcEditor::~ArcEditor ( )
override

Destructeur.

◆ ArcEditor() [2/2]

ArcEditor::ArcEditor ( const ArcEditor )
private

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 curent edited part, or 0 if there is no edited part

Implements ElementItemEditor.

◆ currentParts()

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

Implements ElementItemEditor.

Here is the call graph for this function:

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

◆ updateArcRectH

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

◆ updateArcRectV

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

◆ updateArcRectX

void ArcEditor::updateArcRectX ( )
slot

ArcEditor::updateArcRect Update the geometrie of the rect that define this arc according the the edited values.

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

◆ updateArcRectY

void ArcEditor::updateArcRectY ( )
slot
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:

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

◆ part

PartArc* ArcEditor::part
private

◆ start_angle

QSpinBox * ArcEditor::start_angle
private

◆ style_

StyleEditor* ArcEditor::style_
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: