QElectroTech
0.70
|
The ImagePropertiesWidget class This class provide a widget to edit the propertie of a DiagramImageItem. More...
#include <imagepropertieswidget.h>
Private Slots | |
void | on_m_scale_slider_valueChanged (int value) |
ImagePropertiesWidget::on_m_scale_slider_valueChanged Update the size of image when move slider. More... | |
void | on_m_lock_pos_cb_clicked () |
ImagePropertiesWidget::on_m_lock_pos_cb_clicked Set movable or not the image according to corresponding check box. More... | |
Private Member Functions | |
void | updateUi () override |
ImagePropertiesWidget::updateUi Udpdate the ui, notably when the image to edit change. More... | |
Private Attributes | |
Ui::ImagePropertiesWidget * | ui |
DiagramImageItem * | m_image |
bool | m_movable |
qreal | m_scale |
Additional Inherited Members | |
Protected Member Functions inherited from PropertiesEditorWidget | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
Protected Attributes inherited from PropertiesEditorWidget | |
bool | m_live_edit |
The ImagePropertiesWidget class This class provide a widget to edit the propertie of a DiagramImageItem.
Definition at line 33 of file imagepropertieswidget.h.
|
explicit |
ImagePropertiesWidget::ImagePropertiesWidget Constructor.
image | : image to edit properties |
parent | : parent widget |
Definition at line 30 of file imagepropertieswidget.cpp.
References setImageItem(), and ui.
|
override |
ImagePropertiesWidget::~ImagePropertiesWidget Destructor.
Definition at line 44 of file imagepropertieswidget.cpp.
References ui.
|
overridevirtual |
ImagePropertiesWidget::apply Apply the change.
Reimplemented from PropertiesEditorWidget.
Definition at line 72 of file imagepropertieswidget.cpp.
References associatedUndo(), QetGraphicsItem::diagram(), m_image, PropertiesEditorWidget::m_live_edit, m_scale, Diagram::undoStack(), and updateUi().
Referenced by setLiveEdit().
|
overridevirtual |
ImagePropertiesWidget::associatedUndo.
Reimplemented from PropertiesEditorWidget.
Definition at line 133 of file imagepropertieswidget.cpp.
References QPropertyUndoCommand::enableAnimation(), m_image, m_scale, QET::Icons::tr, and ui.
Referenced by apply().
|
privateslot |
ImagePropertiesWidget::on_m_lock_pos_cb_clicked Set movable or not the image according to corresponding check box.
Definition at line 171 of file imagepropertieswidget.cpp.
References m_image, QetGraphicsItem::setMovable(), and ui.
|
privateslot |
ImagePropertiesWidget::on_m_scale_slider_valueChanged Update the size of image when move slider.
value |
Definition at line 161 of file imagepropertieswidget.cpp.
References m_image.
|
overridevirtual |
ImagePropertiesWidget::reset Reset the change.
Reimplemented from PropertiesEditorWidget.
Definition at line 94 of file imagepropertieswidget.cpp.
References m_image, m_movable, m_scale, QetGraphicsItem::setMovable(), and updateUi().
void ImagePropertiesWidget::setImageItem | ( | DiagramImageItem * | image | ) |
ImagePropertiesWidget::setImageItem Set the image to edit properties.
image | : image to edit |
Definition at line 53 of file imagepropertieswidget.cpp.
References QetGraphicsItem::isMovable(), m_image, m_movable, m_scale, and updateUi().
Referenced by ImagePropertiesWidget().
|
overridevirtual |
ImagePropertiesWidget::setLiveEdit.
live_edit | true -> enable live edit false -> disable live edit |
Reimplemented from PropertiesEditorWidget.
Definition at line 109 of file imagepropertieswidget.cpp.
References apply(), PropertiesEditorWidget::m_live_edit, and ui.
|
overrideprivatevirtual |
ImagePropertiesWidget::updateUi Udpdate the ui, notably when the image to edit change.
Reimplemented from PropertiesEditorWidget.
Definition at line 149 of file imagepropertieswidget.cpp.
References QetGraphicsItem::isMovable(), m_image, and ui.
Referenced by apply(), reset(), and setImageItem().
|
private |
Definition at line 56 of file imagepropertieswidget.h.
Referenced by apply(), associatedUndo(), on_m_lock_pos_cb_clicked(), on_m_scale_slider_valueChanged(), reset(), setImageItem(), and updateUi().
|
private |
Definition at line 57 of file imagepropertieswidget.h.
Referenced by reset(), and setImageItem().
|
private |
Definition at line 58 of file imagepropertieswidget.h.
Referenced by apply(), associatedUndo(), reset(), and setImageItem().
|
private |
Definition at line 55 of file imagepropertieswidget.h.
Referenced by associatedUndo(), ImagePropertiesWidget(), on_m_lock_pos_cb_clicked(), setLiveEdit(), updateUi(), and ~ImagePropertiesWidget().