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

#include <ellipseeditor.h>

Inheritance diagram for EllipseEditor:
Inheritance graph
Collaboration diagram for EllipseEditor:
Collaboration graph

Public Slots

void editingFinishedX ()
 
void editingFinishedY ()
 
void editingFinishedH ()
 
void editingFinishedV ()
 
void updateForm () override
 

Public Member Functions

 EllipseEditor (QETElementEditor *, PartEllipse *=nullptr, QWidget *=nullptr)
 
 ~EllipseEditor () override
 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

 EllipseEditor (const EllipseEditor &)
 
void activeConnections (bool)
 
void setUpChangeConnections ()
 setUpChangeConnections Setup the connection from the ellipse(s) to the widget, to update it when the ellipse(s) are changed (moved ...) More...
 
void disconnectChangeConnections ()
 

Private Attributes

PartEllipsepart
 
StyleEditorstyle_
 
QDoubleSpinBox * x
 
QDoubleSpinBox * y
 
QDoubleSpinBox * h
 
QDoubleSpinBox * v
 
bool m_locked
 
QList< QMetaObject::Connection > m_change_connections
 

Detailed Description

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

Constructor & Destructor Documentation

◆ EllipseEditor() [1/2]

EllipseEditor::EllipseEditor ( QETElementEditor editor,
PartEllipse ellipse = nullptr,
QWidget *  parent = nullptr 
)

Constructeur

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

◆ ~EllipseEditor()

EllipseEditor::~EllipseEditor ( )
override

Destructeur.

◆ EllipseEditor() [2/2]

EllipseEditor::EllipseEditor ( const EllipseEditor )
private

Member Function Documentation

◆ activeConnections()

void EllipseEditor::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 * EllipseEditor::currentPart ( ) const
overridevirtual
Returns
la primitive actuellement editee, ou 0 si ce widget n'en edite pas

Implements ElementItemEditor.

◆ currentParts()

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

Implements ElementItemEditor.

Here is the call graph for this function:

◆ disconnectChangeConnections()

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

◆ editingFinishedH

void EllipseEditor::editingFinishedH ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editingFinishedV

void EllipseEditor::editingFinishedV ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editingFinishedX

void EllipseEditor::editingFinishedX ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editingFinishedY

void EllipseEditor::editingFinishedY ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPart()

bool EllipseEditor::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 d'ellipse acceptera d'editer la primitive new_part s'il s'agit d'un objet de la classe PartEllipse.

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:
Here is the caller graph for this function:

◆ setParts()

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

Reimplemented from ElementItemEditor.

Here is the call graph for this function:

◆ setUpChangeConnections()

void EllipseEditor::setUpChangeConnections ( )
private

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

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

◆ updateForm

void EllipseEditor::updateForm ( )
overrideslot

Met a jour le formulaire d'edition

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

Member Data Documentation

◆ h

QDoubleSpinBox * EllipseEditor::h
private

◆ m_change_connections

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

◆ m_locked

bool EllipseEditor::m_locked
private

◆ part

PartEllipse* EllipseEditor::part
private

◆ style_

StyleEditor* EllipseEditor::style_
private

◆ v

QDoubleSpinBox * EllipseEditor::v
private

◆ x

QDoubleSpinBox* EllipseEditor::x
private

◆ y

QDoubleSpinBox * EllipseEditor::y
private

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