QElectroTech  0.70
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
EllipseEditor Class Reference

#include <ellipseeditor.h>

Public Slots

void editingFinished ()
 
void updateForm () override
 

Public Member Functions

 EllipseEditor (QETElementEditor *, PartEllipse *=nullptr, QWidget *=nullptr)
 
 ~EllipseEditor () override
 Destructeur. More...
 
bool setPart (CustomElementPart *) override
 
CustomElementPartcurrentPart () 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 bool setParts (QList< CustomElementPart *>)
 
virtual void updateForm ()=0
 

Private Member Functions

 EllipseEditor (const EllipseEditor &)
 
void activeConnections (bool)
 

Private Attributes

PartEllipsepart
 
StyleEditorstyle_
 
QDoubleSpinBox * x
 
QDoubleSpinBox * y
 
QDoubleSpinBox * h
 
QDoubleSpinBox * v
 
bool m_locked
 

Detailed Description

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

Definition at line 30 of file ellipseeditor.h.

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

Definition at line 30 of file ellipseeditor.cpp.

References activeConnections(), h, style_, QET::Icons::tr, updateForm(), v, x, and y.

◆ ~EllipseEditor()

EllipseEditor::~EllipseEditor ( )
override

Destructeur.

Definition at line 70 of file ellipseeditor.cpp.

◆ 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

Definition at line 149 of file ellipseeditor.cpp.

References editingFinished(), h, v, x, and y.

Referenced by EllipseEditor(), and updateForm().

◆ currentPart()

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

Implements ElementItemEditor.

Definition at line 108 of file ellipseeditor.cpp.

References part.

◆ editingFinished

void EllipseEditor::editingFinished ( )
slot

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

Definition at line 81 of file ellipseeditor.cpp.

References part, AbstractPartEllipse::rectChanged(), style_, and updateForm().

◆ updateForm

void EllipseEditor::updateForm ( )
overrideslot

Met a jour le formulaire d'edition

Definition at line 133 of file ellipseeditor.cpp.

References activeConnections(), h, part, CustomElementGraphicPart::property(), v, x, and y.

Referenced by EllipseEditor(), and setPart().

Member Data Documentation

◆ h

QDoubleSpinBox * EllipseEditor::h
private

Definition at line 45 of file ellipseeditor.h.

Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().

◆ m_locked

bool EllipseEditor::m_locked
private

Definition at line 46 of file ellipseeditor.h.

Referenced by editingFinished().

◆ part

PartEllipse* EllipseEditor::part
private

Definition at line 43 of file ellipseeditor.h.

Referenced by currentPart(), editingFinished(), setPart(), and updateForm().

◆ style_

StyleEditor* EllipseEditor::style_
private

Definition at line 44 of file ellipseeditor.h.

Referenced by EllipseEditor(), and setPart().

◆ v

QDoubleSpinBox * EllipseEditor::v
private

Definition at line 45 of file ellipseeditor.h.

Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().

◆ x

QDoubleSpinBox* EllipseEditor::x
private

Definition at line 45 of file ellipseeditor.h.

Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().

◆ y

QDoubleSpinBox * EllipseEditor::y
private

Definition at line 45 of file ellipseeditor.h.

Referenced by activeConnections(), editingFinished(), EllipseEditor(), and updateForm().


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