|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef POLYGONEDITOR_H
19 #define POLYGONEDITOR_H
25 class QTreeWidgetItem;
44 bool eventFilter(QObject *watched, QEvent *event)
override;
63 Ui::PolygonEditor *
ui;
69 #endif // POLYGONEDITOR_H
void updateForm() override
PolygonEditor::updateForm Update the widget.
Definition: polygoneditor.cpp:130
PolygonEditor(QETElementEditor *editor, PartPolygon *part=nullptr, QWidget *parent=nullptr)
PolygonEditor::PolygonEditor.
Definition: polygoneditor.cpp:32
QList< CustomElementPart * > currentParts() const override
Definition: styleeditor.cpp:543
QUndoStack & undoStack()
ElementScene::undoStack.
Definition: elementscene.cpp:603
void setUpChangeConnections()
setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the lin...
Definition: polygoneditor.cpp:55
void setHandlerColor(QPointF pos, const QColor &color) final
PartPolygon::setHandlerColor Set the handler at pos pos (in polygon coordinate) to color color.
Definition: partpolygon.cpp:266
Ui::PolygonEditor * ui
Definition: polygoneditor.h:63
bool isClosed() const
Definition: partpolygon.h:84
void on_m_add_point_action_triggered()
Definition: polygoneditor.cpp:279
QPolygonF polygon
Definition: partpolygon.h:38
Definition: polygoneditor.h:32
PartPolygon * m_part
Definition: polygoneditor.h:65
CustomElementPart * currentPart() const override
PolygonEditor::currentPart.
Definition: polygoneditor.cpp:118
void on_m_points_list_tree_itemChanged(QTreeWidgetItem *item, int column)
PolygonEditor::on_m_points_list_tree_itemChanged Update the polygon according to the current value of...
Definition: polygoneditor.cpp:217
StyleEditor * m_style
Definition: polygoneditor.h:64
The PartPolygon class This class represents a polygon primitive which may be used to compose the draw...
Definition: partpolygon.h:34
Definition: styleeditor.h:35
Definition: elementitemeditor.h:34
bool setPart(CustomElementPart *part) override
PolygonEditor::setPart.
Definition: polygoneditor.cpp:88
void resetAllHandlerColor() final
PartPolygon::resetAllHandlerColor Reset the color of every handlers.
Definition: partpolygon.cpp:279
virtual ElementScene * elementScene() const
Definition: elementitemeditor.cpp:39
void disconnectChangeConnections()
Definition: polygoneditor.cpp:75
QList< CustomElementPart * > currentParts() const override
Definition: polygoneditor.cpp:122
~PolygonEditor() override
PolygonEditor::~PolygonEditor.
Definition: polygoneditor.cpp:51
QList< QMetaObject::Connection > m_change_connections
Definition: polygoneditor.h:66
QVector< QPointF > pointsFromTree()
PolygonEditor::pointsFromTree.
Definition: polygoneditor.cpp:157
Definition: autonumberingdockwidget.h:25
void on_m_remove_point_action_triggered()
Definition: polygoneditor.cpp:314
QMessageBox::StandardButton warning(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:68
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition: customelementpart.h:40
void on_m_close_polygon_cb_stateChanged(int arg1)
PolygonEditor::on_m_close_polygon_cb_stateChanged.
Definition: polygoneditor.cpp:193
void on_m_points_list_tree_itemSelectionChanged()
PolygonEditor::on_m_points_list_tree_itemSelectionChanged Used to change the color of the current sel...
Definition: polygoneditor.cpp:254
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
QIcon tr
Definition: qeticons.cpp:206
Definition: qetelementeditor.h:33
QVariant property(const char *name) const override
Definition: customelementgraphicpart.h:297
virtual QUndoStack & undoStack() const
Definition: elementitemeditor.cpp:44
bool eventFilter(QObject *watched, QEvent *event) override
Definition: polygoneditor.cpp:177