QElectroTech
0.70
|
#include <polygoneditor.h>
Public Slots | |
void | updatePolygonPoints () |
void | updatePolygonClosedState () |
void | updateForm () override |
void | validColumn (QTreeWidgetItem *qtwi, int column) |
Public Member Functions | |
PolygonEditor (QETElementEditor *, PartPolygon *=nullptr, QWidget *=nullptr) | |
~PolygonEditor () override | |
Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
CustomElementPart * | currentPart () const override |
Public Member Functions inherited from ElementItemEditor | |
ElementItemEditor (QETElementEditor *, QWidget *=nullptr) | |
~ElementItemEditor () override | |
virtual QETElementEditor * | elementEditor () const |
virtual ElementScene * | elementScene () 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 | |
PolygonEditor (const PolygonEditor &) | |
QVector< QPointF > | getPointsFromTree () |
void | activeConnections (bool) |
Private Attributes | |
PartPolygon * | part |
StyleEditor * | style_ |
QTreeWidget | points_list |
QCheckBox | close_polygon |
This class provides a widget to edit polygons within the element editor.
Definition at line 32 of file polygoneditor.h.
PolygonEditor::PolygonEditor | ( | QETElementEditor * | editor, |
PartPolygon * | p = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | L'editeur d'element concerne |
p | Le polygone a editer |
parent | le Widget parent |
Definition at line 31 of file polygoneditor.cpp.
References close_polygon, points_list, style_, QET::Icons::tr, and updateForm().
|
override |
Destructeur.
Definition at line 59 of file polygoneditor.cpp.
|
private |
|
private |
Active ou desactive les connexionx signaux/slots entre les widgets internes.
active | true pour activer les connexions, false pour les desactiver |
Definition at line 198 of file polygoneditor.cpp.
References close_polygon, points_list, updatePolygonClosedState(), and validColumn().
Referenced by updateForm().
|
overridevirtual |
Implements ElementItemEditor.
Definition at line 159 of file polygoneditor.cpp.
References part.
|
private |
Definition at line 167 of file polygoneditor.cpp.
References part, and points_list.
Referenced by updatePolygonPoints().
|
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 de polygone acceptera d'editer la primitive new_part s'il s'agit d'un objet de la classe PartPolygon.
new_part | Nouvelle primitive a editer |
Implements ElementItemEditor.
Definition at line 125 of file polygoneditor.cpp.
References PartPolygon::closedChange(), part, PartPolygon::polygonChanged(), style_, and updateForm().
|
overrideslot |
Met a jour le formulaire d'edition
Definition at line 101 of file polygoneditor.cpp.
References activeConnections(), close_polygon, part, and points_list.
Referenced by PolygonEditor(), and setPart().
|
slot |
Met a jour l'etat ferme ou non du polygone
Definition at line 86 of file polygoneditor.cpp.
References close_polygon, PartPolygon::isClosed(), part, CustomElementGraphicPart::property(), QET::Icons::tr, and ElementItemEditor::undoStack().
Referenced by activeConnections().
|
slot |
Met a jour les points du polygone et cree un objet d'annulation
Definition at line 65 of file polygoneditor.cpp.
References getPointsFromTree(), part, PartPolygon::polygon, CustomElementGraphicPart::property(), QET::Icons::tr, ElementItemEditor::undoStack(), and QET::QetMessageBox::warning().
Referenced by validColumn().
|
slot |
qtwi | QTreeWidgetItem a valider |
column | Colonne exacte du QTreeWidgetItem a valider |
Definition at line 185 of file polygoneditor.cpp.
References points_list, and updatePolygonPoints().
Referenced by activeConnections().
|
private |
Definition at line 49 of file polygoneditor.h.
Referenced by activeConnections(), PolygonEditor(), updateForm(), and updatePolygonClosedState().
|
private |
Definition at line 46 of file polygoneditor.h.
Referenced by currentPart(), getPointsFromTree(), setPart(), updateForm(), updatePolygonClosedState(), and updatePolygonPoints().
|
private |
Definition at line 48 of file polygoneditor.h.
Referenced by activeConnections(), getPointsFromTree(), PolygonEditor(), updateForm(), and validColumn().
|
private |
Definition at line 47 of file polygoneditor.h.
Referenced by PolygonEditor(), and setPart().