QElectroTech
0.70
|
The ShapeGraphicsItemPropertiesWidget class Provide a widget to edit the properties of a QetShapeItem. More...
#include <shapegraphicsitempropertieswidget.h>
Public Slots | |
void | apply () override |
ShapeGraphicsItemPropertiesWidget::apply Apply the current change, by pushing an undo command to the undo stack of the shape diagram. More... | |
void | reset () override |
ShapeGraphicsItemPropertiesWidget::reset Reset the change. More... | |
Private Slots | |
void | on_m_lock_pos_cb_clicked () |
void | on_m_color_kpb_changed (const QColor &newColor) |
void | on_m_brush_color_kpb_changed (const QColor &newColor) |
Private Member Functions | |
void | setUpEditConnection () |
ShapeGraphicsItemPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the connection between the editors widgets and void ShapeGraphicsItemPropertiesWidget::apply function. More... | |
Private Attributes | |
Ui::ShapeGraphicsItemPropertiesWidget * | ui |
QetShapeItem * | m_shape |
QList< QPointer< QetShapeItem > > | m_shapes_list |
QList< QMetaObject::Connection > | m_connect_list |
QList< QMetaObject::Connection > | m_edit_connection |
Additional Inherited Members | |
![]() | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
![]() | |
bool | m_live_edit |
The ShapeGraphicsItemPropertiesWidget class Provide a widget to edit the properties of a QetShapeItem.
Definition at line 33 of file shapegraphicsitempropertieswidget.h.
|
explicit |
ShapeGraphicsItemPropertiesWidget::ShapeGraphicsItemPropertiesWidget Constructor.
item | : shape to edit |
parent | : parent widget |
Definition at line 30 of file shapegraphicsitempropertieswidget.cpp.
ShapeGraphicsItemPropertiesWidget::ShapeGraphicsItemPropertiesWidget | ( | QList< QetShapeItem *> | items_list, |
QWidget * | parent = nullptr |
||
) |
Definition at line 39 of file shapegraphicsitempropertieswidget.cpp.
References setItems(), and ui.
|
override |
ShapeGraphicsItemPropertiesWidget::~ShapeGraphicsItemPropertiesWidget Destructor.
Definition at line 51 of file shapegraphicsitempropertieswidget.cpp.
References ui.
|
overrideslot |
ShapeGraphicsItemPropertiesWidget::apply Apply the current change, by pushing an undo command to the undo stack of the shape diagram.
Definition at line 126 of file shapegraphicsitempropertieswidget.cpp.
References associatedUndo(), QetGraphicsItem::diagram(), m_shape, m_shapes_list, and Diagram::undoStack().
Referenced by on_m_brush_color_kpb_changed(), on_m_color_kpb_changed(), and setUpEditConnection().
|
overridevirtual |
ShapeGraphicsItemPropertiesWidget::associatedUndo.
Reimplemented from PropertiesEditorWidget.
Definition at line 167 of file shapegraphicsitempropertieswidget.cpp.
References QetShapeItem::brush, QetShapeItem::isClosed(), PropertiesEditorWidget::m_live_edit, m_shape, m_shapes_list, QetShapeItem::pen, QET::Icons::tr, and ui.
Referenced by apply().
|
privateslot |
Definition at line 523 of file shapegraphicsitempropertieswidget.cpp.
References apply(), and PropertiesEditorWidget::m_live_edit.
|
privateslot |
Definition at line 516 of file shapegraphicsitempropertieswidget.cpp.
References apply(), and PropertiesEditorWidget::m_live_edit.
|
privateslot |
Definition at line 504 of file shapegraphicsitempropertieswidget.cpp.
References m_shape, m_shapes_list, QetGraphicsItem::setMovable(), and ui.
|
overrideslot |
ShapeGraphicsItemPropertiesWidget::reset Reset the change.
Definition at line 157 of file shapegraphicsitempropertieswidget.cpp.
References updateUi().
void ShapeGraphicsItemPropertiesWidget::setItem | ( | QetShapeItem * | shape | ) |
ShapeGraphicsItemPropertiesWidget::setItem Set as the current edited item.
shape |
Definition at line 61 of file shapegraphicsitempropertieswidget.cpp.
References QetShapeItem::brushChanged(), QetShapeItem::closeChanged(), QetShapeItem::Line, m_connect_list, PropertiesEditorWidget::m_live_edit, m_shape, QetShapeItem::penChanged(), QetShapeItem::Polygon, setUpEditConnection(), QetShapeItem::shapeType(), ui, and updateUi().
Referenced by setItems(), and ShapeGraphicsItemPropertiesWidget().
void ShapeGraphicsItemPropertiesWidget::setItems | ( | QList< QetShapeItem *> | shapes_list | ) |
ShapeGraphicsItemPropertiesWidget::setItems Set a list of shapes to be edited.
shapes_list |
Definition at line 95 of file shapegraphicsitempropertieswidget.cpp.
References m_connect_list, m_shape, m_shapes_list, setItem(), setUpEditConnection(), and updateUi().
Referenced by ShapeGraphicsItemPropertiesWidget().
|
overridevirtual |
ShapeGraphicsItemPropertiesWidget::setLiveEdit.
live_edit |
Reimplemented from PropertiesEditorWidget.
Definition at line 462 of file shapegraphicsitempropertieswidget.cpp.
References m_edit_connection, PropertiesEditorWidget::m_live_edit, and setUpEditConnection().
|
private |
ShapeGraphicsItemPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the connection between the editors widgets and void ShapeGraphicsItemPropertiesWidget::apply function.
Definition at line 486 of file shapegraphicsitempropertieswidget.cpp.
References apply(), QetShapeItem::closeChanged(), m_edit_connection, m_shape, m_shapes_list, QetShapeItem::penChanged(), ui, and updateUi().
Referenced by setItem(), setItems(), setLiveEdit(), and updateUi().
|
inlineoverridevirtual |
PropertiesEditorWidget::title.
Reimplemented from PropertiesEditorWidget.
Definition at line 50 of file shapegraphicsitempropertieswidget.h.
References QET::Icons::tr.
|
overridevirtual |
ShapeGraphicsItemPropertiesWidget::updateUi.
Reimplemented from PropertiesEditorWidget.
Definition at line 362 of file shapegraphicsitempropertieswidget.cpp.
References QetShapeItem::brush, QetShapeItem::isClosed(), QetGraphicsItem::isMovable(), m_edit_connection, m_shape, m_shapes_list, QetShapeItem::pen, QetShapeItem::Polygon, setUpEditConnection(), QetShapeItem::shapeType(), and ui.
Referenced by reset(), setItem(), setItems(), and setUpEditConnection().
|
private |
Definition at line 66 of file shapegraphicsitempropertieswidget.h.
Referenced by setItem(), and setItems().
|
private |
Definition at line 66 of file shapegraphicsitempropertieswidget.h.
Referenced by setLiveEdit(), setUpEditConnection(), and updateUi().
|
private |
Definition at line 64 of file shapegraphicsitempropertieswidget.h.
Referenced by apply(), associatedUndo(), on_m_lock_pos_cb_clicked(), setItem(), setItems(), setUpEditConnection(), and updateUi().
|
private |
Definition at line 65 of file shapegraphicsitempropertieswidget.h.
Referenced by apply(), associatedUndo(), on_m_lock_pos_cb_clicked(), setItems(), setUpEditConnection(), and updateUi().
|
private |
Definition at line 63 of file shapegraphicsitempropertieswidget.h.
Referenced by associatedUndo(), on_m_lock_pos_cb_clicked(), setItem(), setUpEditConnection(), ShapeGraphicsItemPropertiesWidget(), updateUi(), and ~ShapeGraphicsItemPropertiesWidget().