QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ImagePropertiesWidget Class Reference

The ImagePropertiesWidget class This class provides a widget to edit the properties of a DiagramImageItem. More...

#include <imagepropertieswidget.h>

Inheritance diagram for ImagePropertiesWidget:
Inheritance graph
Collaboration diagram for ImagePropertiesWidget:
Collaboration graph

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
 
DiagramImageItemm_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
 

Detailed Description

The ImagePropertiesWidget class This class provides a widget to edit the properties of a DiagramImageItem.

Constructor & Destructor Documentation

◆ ImagePropertiesWidget()

ImagePropertiesWidget::ImagePropertiesWidget ( DiagramImageItem image = nullptr,
QWidget *  parent = nullptr 
)
explicit

ImagePropertiesWidget::ImagePropertiesWidget Constructor.

Parameters
image: image to edit properties
parent: parent widget
Here is the call graph for this function:

◆ ~ImagePropertiesWidget()

ImagePropertiesWidget::~ImagePropertiesWidget ( )
override

Member Function Documentation

◆ apply()

void ImagePropertiesWidget::apply ( )
overridevirtual

ImagePropertiesWidget::apply Apply the change.

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ associatedUndo()

QUndoCommand * ImagePropertiesWidget::associatedUndo ( ) const
overridevirtual

ImagePropertiesWidget::associatedUndo.

Returns
the change in an undo command (ItemResizerCommand). If there is no change return nullptr

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_lock_pos_cb_clicked

void ImagePropertiesWidget::on_m_lock_pos_cb_clicked ( )
privateslot

ImagePropertiesWidget::on_m_lock_pos_cb_clicked Set movable or not the image according to corresponding check box.

Here is the call graph for this function:

◆ on_m_scale_slider_valueChanged

void ImagePropertiesWidget::on_m_scale_slider_valueChanged ( int  value)
privateslot

ImagePropertiesWidget::on_m_scale_slider_valueChanged Update the size of image when move slider.

Parameters
value

◆ reset()

void ImagePropertiesWidget::reset ( )
overridevirtual

ImagePropertiesWidget::reset Reset the change.

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:

◆ setImageItem()

void ImagePropertiesWidget::setImageItem ( DiagramImageItem image)

ImagePropertiesWidget::setImageItem Set the image to edit properties.

Parameters
image: image to edit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLiveEdit()

bool ImagePropertiesWidget::setLiveEdit ( bool  live_edit)
overridevirtual

ImagePropertiesWidget::setLiveEdit.

Parameters
live_edittrue -> enable live edit false -> disable live edit
Returns
always true

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:

◆ updateUi()

void ImagePropertiesWidget::updateUi ( )
overrideprivatevirtual

ImagePropertiesWidget::updateUi Udpdate the ui, notably when the image to edit change.

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_image

DiagramImageItem* ImagePropertiesWidget::m_image
private

◆ m_movable

bool ImagePropertiesWidget::m_movable
private

◆ m_scale

qreal ImagePropertiesWidget::m_scale
private

◆ ui

Ui::ImagePropertiesWidget* ImagePropertiesWidget::ui
private

The documentation for this class was generated from the following files: