QElectroTech 0.100.0-dev
|
#include <polygoneditor.h>
Public Member Functions | |
PolygonEditor (QETElementEditor *editor, PartPolygon *part=nullptr, QWidget *parent=nullptr) | |
PolygonEditor::PolygonEditor. | |
~PolygonEditor () override | |
PolygonEditor::~PolygonEditor. | |
bool | setPart (CustomElementPart *part) override |
PolygonEditor::setPart. | |
CustomElementPart * | currentPart () const override |
PolygonEditor::currentPart. | |
QList< CustomElementPart * > | currentParts () const override |
void | updateForm () override |
PolygonEditor::updateForm Update the widget. | |
QVector< QPointF > | pointsFromTree () |
PolygonEditor::pointsFromTree. | |
bool | eventFilter (QObject *watched, QEvent *event) 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 * >) |
Private Slots | |
void | on_m_close_polygon_cb_stateChanged (int arg1) |
PolygonEditor::on_m_close_polygon_cb_stateChanged. | |
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 the tree editor. | |
void | on_m_points_list_tree_itemSelectionChanged () |
PolygonEditor::on_m_points_list_tree_itemSelectionChanged Used to change the color of the current selected point. | |
void | on_m_add_point_action_triggered () |
void | on_m_remove_point_action_triggered () |
Private Member Functions | |
void | setUpChangeConnections () |
setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...) | |
void | disconnectChangeConnections () |
Private Attributes | |
Ui::PolygonEditor * | ui |
StyleEditor * | m_style = nullptr |
PartPolygon * | m_part = nullptr |
QList< QMetaObject::Connection > | m_change_connections |
|
explicit |
editor | |
part | |
parent |
|
override |
|
overridevirtual |
|
overridevirtual |
|
private |
|
override |
|
privateslot |
|
privateslot |
|
privateslot |
PolygonEditor::on_m_points_list_tree_itemChanged Update the polygon according to the current value of the tree editor.
|
privateslot |
PolygonEditor::on_m_points_list_tree_itemSelectionChanged Used to change the color of the current selected point.
|
privateslot |
QVector< QPointF > PolygonEditor::pointsFromTree | ( | ) |
PolygonEditor::pointsFromTree.
|
overridevirtual |
|
private |
setUpChangeConnections Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...)
|
overridevirtual |
PolygonEditor::updateForm Update the widget.
Implements ElementItemEditor.
|
private |
|
private |
|
private |
|
private |