QElectroTech 0.100.0-dev
|
The ImagePropertiesWidget class This class provides a widget to edit the properties of a DiagramImageItem. More...
#include <imagepropertieswidget.h>
Public Member Functions | |
ImagePropertiesWidget (DiagramImageItem *image=nullptr, QWidget *parent=nullptr) | |
ImagePropertiesWidget::ImagePropertiesWidget Constructor. | |
~ImagePropertiesWidget () override | |
ImagePropertiesWidget::~ImagePropertiesWidget Destructor. | |
void | setImageItem (DiagramImageItem *image) |
ImagePropertiesWidget::setImageItem Set the image to edit properties. | |
void | apply () override |
ImagePropertiesWidget::apply Apply the change. | |
void | reset () override |
ImagePropertiesWidget::reset Reset the change. | |
bool | setLiveEdit (bool live_edit) override |
ImagePropertiesWidget::setLiveEdit. | |
QUndoCommand * | associatedUndo () const override |
ImagePropertiesWidget::associatedUndo. | |
Public Member Functions inherited from PropertiesEditorWidget | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. | |
virtual QString | title () const |
PropertiesEditorWidget::title. | |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. | |
Private Slots | |
void | on_m_scale_slider_valueChanged (int value) |
ImagePropertiesWidget::on_m_scale_slider_valueChanged Update the size of image when move slider. | |
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. | |
Private Member Functions | |
void | updateUi () override |
ImagePropertiesWidget::updateUi Udpdate the ui, notably when the image to edit change. | |
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 provides a widget to edit the properties of a DiagramImageItem.
|
explicit |
ImagePropertiesWidget::ImagePropertiesWidget Constructor.
image | : image to edit properties |
parent | : parent widget |
|
override |
ImagePropertiesWidget::~ImagePropertiesWidget Destructor.
|
overridevirtual |
ImagePropertiesWidget::apply Apply the change.
Reimplemented from PropertiesEditorWidget.
|
overridevirtual |
ImagePropertiesWidget::associatedUndo.
Reimplemented from PropertiesEditorWidget.
|
privateslot |
ImagePropertiesWidget::on_m_lock_pos_cb_clicked Set movable or not the image according to corresponding check box.
|
privateslot |
ImagePropertiesWidget::on_m_scale_slider_valueChanged Update the size of image when move slider.
value |
|
overridevirtual |
ImagePropertiesWidget::reset Reset the change.
Reimplemented from PropertiesEditorWidget.
void ImagePropertiesWidget::setImageItem | ( | DiagramImageItem * | image | ) |
ImagePropertiesWidget::setImageItem Set the image to edit properties.
image | : image to edit |
|
overridevirtual |
ImagePropertiesWidget::setLiveEdit.
live_edit | true -> enable live edit false -> disable live edit |
Reimplemented from PropertiesEditorWidget.
|
overrideprivatevirtual |
ImagePropertiesWidget::updateUi Udpdate the ui, notably when the image to edit change.
Reimplemented from PropertiesEditorWidget.
|
private |
|
private |
|
private |
|
private |