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

Signals

void activated ()
 
void contentsMoved (bool panningFinished)
 
void contentsMoving (int, int)
 
void leftButtonClicked ()
 
void leftButtonDoubleClicked ()
 
void resized ()
 
void rightButtonClicked ()
 
void toNextImage ()
 
void toPreviousImage ()
 
void viewportRectChanged (const QRectF &viewportRect)
 

Public Member Functions

int contentsX () const
 
int contentsY () const
 
void drawText (QPainter *p, const QRectF &rect, const QString &text)
 
void fitToWindow ()
 
 GraphicsDImgView (QWidget *const parent=nullptr)
 
GraphicsDImgItemitem () const
 
SinglePhotoPreviewLayoutlayout () const
 
DImgPreviewItempreviewItem () const
 
void scrollPointOnPoint (const QPointF &scenePos, const QPoint &viewportPos)
 
void setContentsPos (int x, int y)
 
void setItem (GraphicsDImgItem *const item)
 
void toggleFullScreen (bool set)
 
QRect visibleArea () const
 
 ~GraphicsDImgView () override
 

Protected Slots

void slotContentsMoved ()
 
void slotCornerButtonPressed ()
 
void slotPanIconHidden ()
 
virtual void slotPanIconSelectionMoved (const QRect &, bool)
 

Protected Member Functions

virtual bool acceptsMouseClick (QMouseEvent *e)
 
void continuePanning (const QPoint &pos)
 
void drawForeground (QPainter *painter, const QRectF &rect) override
 
void finishPanning ()
 
void installPanIcon ()
 
void mouseDoubleClickEvent (QMouseEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void resizeEvent (QResizeEvent *) override
 
void scrollContentsBy (int dx, int dy) override
 
void setShowText (bool value)
 
void startPanning (const QPoint &pos)
 
void wheelEvent (QWheelEvent *) override
 

Constructor & Destructor Documentation

◆ GraphicsDImgView()

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

References slotContentsMoved().

◆ ~GraphicsDImgView()

Digikam::GraphicsDImgView::~GraphicsDImgView ( )
override

Member Function Documentation

◆ acceptsMouseClick()

bool Digikam::GraphicsDImgView::acceptsMouseClick ( QMouseEvent *  e)
protectedvirtual

◆ activated

void Digikam::GraphicsDImgView::activated ( )
signal

◆ contentsMoved

void Digikam::GraphicsDImgView::contentsMoved ( bool  panningFinished)
signal

Referenced by continuePanning(), and finishPanning().

◆ contentsMoving

void Digikam::GraphicsDImgView::contentsMoving ( int  ,
int   
)
signal

Referenced by slotContentsMoved().

◆ contentsX()

int Digikam::GraphicsDImgView::contentsX ( ) const

◆ contentsY()

int Digikam::GraphicsDImgView::contentsY ( ) const

◆ continuePanning()

void Digikam::GraphicsDImgView::continuePanning ( const QPoint &  pos)
protected

References contentsMoved().

Referenced by mouseMoveEvent().

◆ drawForeground()

void Digikam::GraphicsDImgView::drawForeground ( QPainter *  painter,
const QRectF &  rect 
)
overrideprotected

References drawText().

◆ drawText()

void Digikam::GraphicsDImgView::drawText ( QPainter *  p,
const QRectF &  rect,
const QString &  text 
)

Referenced by drawForeground().

◆ finishPanning()

void Digikam::GraphicsDImgView::finishPanning ( )
protected

References contentsMoved().

Referenced by mouseReleaseEvent().

◆ fitToWindow()

void Digikam::GraphicsDImgView::fitToWindow ( )

◆ installPanIcon()

◆ item()

◆ layout()

◆ leftButtonClicked

void Digikam::GraphicsDImgView::leftButtonClicked ( )
signal

Referenced by mousePressEvent().

◆ leftButtonDoubleClicked

void Digikam::GraphicsDImgView::leftButtonDoubleClicked ( )
signal

Referenced by mouseDoubleClickEvent().

◆ mouseDoubleClickEvent()

void Digikam::GraphicsDImgView::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseMoveEvent()

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

◆ mousePressEvent()

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

◆ mouseReleaseEvent()

void Digikam::GraphicsDImgView::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ previewItem()

◆ resized

void Digikam::GraphicsDImgView::resized ( )
signal

Referenced by resizeEvent().

◆ resizeEvent()

void Digikam::GraphicsDImgView::resizeEvent ( QResizeEvent *  e)
overrideprotected

References resized(), and viewportRectChanged().

◆ rightButtonClicked

void Digikam::GraphicsDImgView::rightButtonClicked ( )
signal

Referenced by mousePressEvent().

◆ scrollContentsBy()

void Digikam::GraphicsDImgView::scrollContentsBy ( int  dx,
int  dy 
)
overrideprotected

References viewportRectChanged().

◆ scrollPointOnPoint()

void Digikam::GraphicsDImgView::scrollPointOnPoint ( const QPointF &  scenePos,
const QPoint &  viewportPos 
)

Scrolls the view such that scenePos (in scene coordinates is displayed on the viewport at viewportPos (in viewport coordinates). E.g., calling scrollPointOnPoint(scenePos, viewport()->rect().center()) is equivalent to calling centerOn(scenePos).

◆ setContentsPos()

void Digikam::GraphicsDImgView::setContentsPos ( int  x,
int  y 
)

◆ setItem()

void Digikam::GraphicsDImgView::setItem ( GraphicsDImgItem *const  item)

◆ setShowText()

void Digikam::GraphicsDImgView::setShowText ( bool  value)
protected

◆ slotContentsMoved

void Digikam::GraphicsDImgView::slotContentsMoved ( )
protectedslot

References contentsMoving(), and value.

Referenced by GraphicsDImgView().

◆ slotCornerButtonPressed

◆ slotPanIconHidden

void Digikam::GraphicsDImgView::slotPanIconHidden ( )
protectedslot

◆ slotPanIconSelectionMoved

void Digikam::GraphicsDImgView::slotPanIconSelectionMoved ( const QRect &  imageRect,
bool  b 
)
protectedvirtualslot

◆ startPanning()

void Digikam::GraphicsDImgView::startPanning ( const QPoint &  pos)
protected

References value.

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ toggleFullScreen()

void Digikam::GraphicsDImgView::toggleFullScreen ( bool  set)

◆ toNextImage

void Digikam::GraphicsDImgView::toNextImage ( )
signal

◆ toPreviousImage

void Digikam::GraphicsDImgView::toPreviousImage ( )
signal

◆ viewportRectChanged

void Digikam::GraphicsDImgView::viewportRectChanged ( const QRectF &  viewportRect)
signal

◆ visibleArea()

QRect Digikam::GraphicsDImgView::visibleArea ( ) const

◆ wheelEvent()

void Digikam::GraphicsDImgView::wheelEvent ( QWheelEvent *  e)
overrideprotected

References toNextImage(), and toPreviousImage().


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