digiKam
Digikam::PanIconWidget Class Reference
+ Inheritance diagram for Digikam::PanIconWidget:

Public Slots

void slotZoomFactorChanged (double)
 

Signals

void signalHidden ()
 
void signalSelectionMoved (const QRect &rect, bool targetDone)
 
void signalSelectionTakeFocus ()
 

Public Member Functions

QRect getRegionSelection () const
 
 PanIconWidget (QWidget *const parent=nullptr)
 
void setCenterSelection ()
 
void setCursorToLocalRegionSelectionCenter ()
 
void setImage (const QImage &scaledPreviewImage, const QSize &fullImageSize)
 
void setImage (int previewWidth, int previewHeight, const DImg &fullOriginalImage)
 
void setImage (int previewWidth, int previewHeight, const QImage &fullOriginalImage)
 
void setMouseFocus ()
 
void setRegionSelection (const QRect &regionSelection)
 
 ~PanIconWidget () override
 

Static Public Member Functions

static QToolButton * button ()
 

Protected Slots

void slotFlickerTimer ()
 

Protected Member Functions

void hideEvent (QHideEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 
void regionSelectionMoved (bool targetDone)
 
void showEvent (QShowEvent *) override
 

Constructor & Destructor Documentation

◆ PanIconWidget()

Digikam::PanIconWidget::PanIconWidget ( QWidget *const  parent = nullptr)
explicit

References slotFlickerTimer().

◆ ~PanIconWidget()

Digikam::PanIconWidget::~PanIconWidget ( )
override

Member Function Documentation

◆ button()

QToolButton * Digikam::PanIconWidget::button ( )
static

◆ getRegionSelection()

QRect Digikam::PanIconWidget::getRegionSelection ( ) const

◆ hideEvent()

void Digikam::PanIconWidget::hideEvent ( QHideEvent *  e)
overrideprotected

References signalHidden().

◆ mouseMoveEvent()

void Digikam::PanIconWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void Digikam::PanIconWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::PanIconWidget::mouseReleaseEvent ( QMouseEvent *  )
overrideprotected

◆ paintEvent()

void Digikam::PanIconWidget::paintEvent ( QPaintEvent *  )
overrideprotected

◆ regionSelectionMoved()

void Digikam::PanIconWidget::regionSelectionMoved ( bool  targetDone)
protected

Recalculate the target selection position and emit 'signalSelectionMoved'.

References signalSelectionMoved().

Referenced by mouseMoveEvent(), and mouseReleaseEvent().

◆ setCenterSelection()

void Digikam::PanIconWidget::setCenterSelection ( )

References setRegionSelection().

◆ setCursorToLocalRegionSelectionCenter()

void Digikam::PanIconWidget::setCursorToLocalRegionSelectionCenter ( )

◆ setImage() [1/3]

void Digikam::PanIconWidget::setImage ( const QImage &  scaledPreviewImage,
const QSize &  fullImageSize 
)

◆ setImage() [2/3]

void Digikam::PanIconWidget::setImage ( int  previewWidth,
int  previewHeight,
const DImg fullOriginalImage 
)

◆ setImage() [3/3]

void Digikam::PanIconWidget::setImage ( int  previewWidth,
int  previewHeight,
const QImage &  fullOriginalImage 
)

◆ setMouseFocus()

void Digikam::PanIconWidget::setMouseFocus ( )

◆ setRegionSelection()

void Digikam::PanIconWidget::setRegionSelection ( const QRect &  regionSelection)

◆ showEvent()

void Digikam::PanIconWidget::showEvent ( QShowEvent *  e)
overrideprotected

◆ signalHidden

void Digikam::PanIconWidget::signalHidden ( )
signal

Referenced by hideEvent().

◆ signalSelectionMoved

void Digikam::PanIconWidget::signalSelectionMoved ( const QRect &  rect,
bool  targetDone 
)
signal

Emitted when selection have been moved with mouse. 'targetDone' boolean value is used for indicate if the mouse have been released.

Referenced by regionSelectionMoved().

◆ signalSelectionTakeFocus

void Digikam::PanIconWidget::signalSelectionTakeFocus ( )
signal

Referenced by mousePressEvent(), and setMouseFocus().

◆ slotFlickerTimer

void Digikam::PanIconWidget::slotFlickerTimer ( )
protectedslot

Referenced by PanIconWidget().

◆ slotZoomFactorChanged

void Digikam::PanIconWidget::slotZoomFactorChanged ( double  factor)
slot

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