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

Public Slots

void slotCopy ()
 
void slotCrop ()
 
void slotFlipHoriz ()
 
void slotFlipVert ()
 
void slotRedo (int steps=1)
 
void slotRestore ()
 
void slotRotate180 ()
 
void slotRotate270 ()
 
void slotRotate90 ()
 image modifiers More...
 
void slotSelectAll ()
 
void slotSelected ()
 
void slotSelectionMoved ()
 
void slotSelectNone ()
 
void slotUndo (int steps=1)
 

Signals

void activated ()
 
void contentsMoved (bool panningFinished)
 
void contentsMoving (int, int)
 
void leftButtonClicked ()
 
void leftButtonDoubleClicked ()
 
void resized ()
 
void rightButtonClicked ()
 
void signalAddedDropedItems (QDropEvent *)
 
void signalChanged ()
 
void signalLoadingFinished (const QString &filename, bool success)
 
void signalLoadingProgress (const QString &filePath, float progress)
 
void signalLoadingStarted (const QString &filename)
 
void signalPrepareToLoad ()
 
void signalRedoSteps (int)
 
void signalRightButtonClicked ()
 
void signalSavingFinished (const QString &filename, bool success)
 
void signalSavingProgress (const QString &filePath, float progress)
 
void signalSavingStarted (const QString &filename)
 
void signalSelected (bool)
 
void signalSelectionChanged (const QRect &)
 
void signalSelectionSetText (const QRect &)
 
void signalShowNextImage ()
 
void signalShowPrevImage ()
 
void signalToggleOffFitToWindow ()
 
void signalUndoSteps (int)
 
void signalZoomChanged (double)
 
void toNextImage ()
 
void toPreviousImage ()
 
void viewportRectChanged (const QRectF &viewportRect)
 

Public Member Functions

void abortSaving ()
 
void applyTransform (const IccTransform &transform)
 
 Canvas (QWidget *const parent=nullptr)
 
int contentsX () const
 
int contentsY () const
 
DImg currentImage () const
 
QString currentImageFileFormat () const
 
QString currentImageFilePath () const
 
void drawText (QPainter *p, const QRectF &rect, const QString &text)
 
QString ensureHasCurrentUuid () const
 
bool exifRotated () const
 
void fitToSelect ()
 
void fitToWindow ()
 
QRect getSelectedArea () const
 
int imageHeight () const
 
int imageWidth () const
 
EditorCoreinterface () const
 
bool isReadOnly () const
 
GraphicsDImgItemitem () const
 
SinglePhotoPreviewLayoutlayout () const
 
void load (const QString &filename, IOFileSettings *const IOFileSettings)
 
void makeDefaultEditingCanvas ()
 
void preload (const QString &filename)
 
DImgPreviewItempreviewItem () const
 
void resetImage ()
 
void scrollPointOnPoint (const QPointF &scenePos, const QPoint &viewportPos)
 
void setContentsPos (int x, int y)
 
void setExifOrient (bool exifOrient)
 
void setExposureSettings (ExposureSettingsContainer *const expoSettings)
 
void setICCSettings (const ICCSettingsContainer &cmSettings)
 
void setItem (GraphicsDImgItem *const item)
 
void setModified ()
 
void setSoftProofingEnabled (bool enable)
 
void toggleFullScreen (bool set)
 
QRect visibleArea () const
 
 ~Canvas () override
 

Protected Slots

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

Protected Member Functions

virtual bool acceptsMouseClick (QMouseEvent *e)
 
void addRubber ()
 
void continuePanning (const QPoint &pos)
 
void dragEnterEvent (QDragEnterEvent *) override
 
void dragMoveEvent (QDragMoveEvent *) override
 
void drawForeground (QPainter *painter, const QRectF &rect) override
 
void dropEvent (QDropEvent *) override
 
void finishPanning ()
 
void installPanIcon ()
 
void keyPressEvent (QKeyEvent *) override
 
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

◆ Canvas()

◆ ~Canvas()

Digikam::Canvas::~Canvas ( )
override

Member Function Documentation

◆ abortSaving()

void Digikam::Canvas::abortSaving ( )

◆ acceptsMouseClick()

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

◆ activated

◆ addRubber()

void Digikam::Canvas::addRubber ( )
protected

Referenced by Canvas(), mousePressEvent(), and slotCrop().

◆ applyTransform()

void Digikam::Canvas::applyTransform ( const IccTransform transform)

Apply Color Management transformation to image (typically working color space).

References Digikam::IccTransform::willHaveEffect().

Referenced by Digikam::EditorWindow::colorManage().

◆ contentsMoved

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

◆ contentsMoving

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

◆ contentsX()

int Digikam::GraphicsDImgView::contentsX ( ) const
inherited

◆ contentsY()

int Digikam::GraphicsDImgView::contentsY ( ) const
inherited

◆ continuePanning()

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

◆ currentImage()

DImg Digikam::Canvas::currentImage ( ) const

Return a copy of current image loaded in editor.

Referenced by Digikam::EditorWindow::colorManage().

◆ currentImageFileFormat()

◆ currentImageFilePath()

QString Digikam::Canvas::currentImageFilePath ( ) const

Return the file path of current image loaded in editor.

Referenced by Digikam::EditorWindow::colorManage(), and Digikam::EditorWindow::promptForOverWrite().

◆ dragEnterEvent()

void Digikam::Canvas::dragEnterEvent ( QDragEnterEvent *  e)
overrideprotected

◆ dragMoveEvent()

void Digikam::Canvas::dragMoveEvent ( QDragMoveEvent *  e)
overrideprotected

◆ drawForeground()

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

◆ drawText()

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

◆ dropEvent()

void Digikam::Canvas::dropEvent ( QDropEvent *  e)
overrideprotected

◆ ensureHasCurrentUuid()

QString Digikam::Canvas::ensureHasCurrentUuid ( ) const

◆ exifRotated()

bool Digikam::Canvas::exifRotated ( ) const

Return true if image have been rotated following Exif information.

Referenced by Digikam::EditorWindow::startingSave(), and Digikam::EditorWindow::startingSaveAs().

◆ finishPanning()

void Digikam::GraphicsDImgView::finishPanning ( )
protectedinherited

◆ fitToSelect()

void Digikam::Canvas::fitToSelect ( )

Change zoom level to fit current selection on canvas size.

References Digikam::GraphicsDImgView::layout(), Digikam::SinglePhotoPreviewLayout::setZoomFactor(), and signalToggleOffFitToWindow().

◆ fitToWindow()

void Digikam::GraphicsDImgView::fitToWindow ( )
inherited

◆ getSelectedArea()

QRect Digikam::Canvas::getSelectedArea ( ) const

Return the rectangle information of current canvas selection.

Referenced by Digikam::EditorWindow::slotSelected().

◆ imageHeight()

int Digikam::Canvas::imageHeight ( ) const

Return the height of current image loaded in editor.

◆ imageWidth()

int Digikam::Canvas::imageWidth ( ) const

Return the width of current image loaded in editor.

◆ installPanIcon()

◆ interface()

◆ isReadOnly()

bool Digikam::Canvas::isReadOnly ( ) const

If current image file format is only available in read only, typically all RAW image file formats.

Referenced by Digikam::EditorWindow::promptUserSave(), and Digikam::EditorWindow::saveOrSaveAs().

◆ item()

◆ keyPressEvent()

void Digikam::Canvas::keyPressEvent ( QKeyEvent *  event)
overrideprotected

References value.

◆ layout()

◆ leftButtonClicked

void Digikam::GraphicsDImgView::leftButtonClicked ( )
signalinherited

◆ leftButtonDoubleClicked

void Digikam::GraphicsDImgView::leftButtonDoubleClicked ( )
signalinherited

◆ load()

void Digikam::Canvas::load ( const QString &  filename,
IOFileSettings *const  IOFileSettings 
)

References signalPrepareToLoad().

◆ makeDefaultEditingCanvas()

void Digikam::Canvas::makeDefaultEditingCanvas ( )

◆ mouseDoubleClickEvent()

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

◆ mouseMoveEvent()

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

◆ mousePressEvent()

void Digikam::Canvas::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

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

◆ preload()

void Digikam::Canvas::preload ( const QString &  filename)

◆ previewItem()

◆ resetImage()

void Digikam::Canvas::resetImage ( )

◆ resized

void Digikam::GraphicsDImgView::resized ( )
signalinherited

◆ resizeEvent()

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

◆ rightButtonClicked

void Digikam::GraphicsDImgView::rightButtonClicked ( )
signalinherited

◆ scrollContentsBy()

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

◆ scrollPointOnPoint()

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

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 
)
inherited

◆ setExifOrient()

void Digikam::Canvas::setExifOrient ( bool  exifOrient)

Rotate image following Exif information.

Referenced by Digikam::EditorWindow::applyStandardSettings().

◆ setExposureSettings()

void Digikam::Canvas::setExposureSettings ( ExposureSettingsContainer *const  expoSettings)

Apply under.over exposure indicator settings.

◆ setICCSettings()

void Digikam::Canvas::setICCSettings ( const ICCSettingsContainer cmSettings)

Apply Color management settings (typically screen profile).

Referenced by Digikam::EditorWindow::applyColorManagementSettings().

◆ setItem()

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

◆ setModified()

void Digikam::Canvas::setModified ( )

◆ setShowText()

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

◆ setSoftProofingEnabled()

void Digikam::Canvas::setSoftProofingEnabled ( bool  enable)

Turn on/off Color Management Soft proofing mode.

◆ signalAddedDropedItems

void Digikam::Canvas::signalAddedDropedItems ( QDropEvent *  )
signal

Referenced by dropEvent().

◆ signalChanged

void Digikam::Canvas::signalChanged ( )
signal

◆ signalLoadingFinished

void Digikam::Canvas::signalLoadingFinished ( const QString &  filename,
bool  success 
)
signal

◆ signalLoadingProgress

void Digikam::Canvas::signalLoadingProgress ( const QString &  filePath,
float  progress 
)
signal

Referenced by Canvas().

◆ signalLoadingStarted

void Digikam::Canvas::signalLoadingStarted ( const QString &  filename)
signal

Referenced by Canvas().

◆ signalPrepareToLoad

void Digikam::Canvas::signalPrepareToLoad ( )
signal

Referenced by load().

◆ signalRedoSteps

void Digikam::Canvas::signalRedoSteps ( int  )
signal

Referenced by slotRedo().

◆ signalRightButtonClicked

void Digikam::Canvas::signalRightButtonClicked ( )
signal

Referenced by Canvas().

◆ signalSavingFinished

void Digikam::Canvas::signalSavingFinished ( const QString &  filename,
bool  success 
)
signal

◆ signalSavingProgress

void Digikam::Canvas::signalSavingProgress ( const QString &  filePath,
float  progress 
)
signal

Referenced by Canvas().

◆ signalSavingStarted

void Digikam::Canvas::signalSavingStarted ( const QString &  filename)
signal

Referenced by Canvas().

◆ signalSelected

void Digikam::Canvas::signalSelected ( bool  )
signal

◆ signalSelectionChanged

void Digikam::Canvas::signalSelectionChanged ( const QRect &  )
signal

Referenced by slotSelected().

◆ signalSelectionSetText

void Digikam::Canvas::signalSelectionSetText ( const QRect &  )
signal

Referenced by slotSelectionMoved().

◆ signalShowNextImage

void Digikam::Canvas::signalShowNextImage ( )
signal

◆ signalShowPrevImage

void Digikam::Canvas::signalShowPrevImage ( )
signal

◆ signalToggleOffFitToWindow

void Digikam::Canvas::signalToggleOffFitToWindow ( )
signal

Referenced by fitToSelect().

◆ signalUndoSteps

void Digikam::Canvas::signalUndoSteps ( int  )
signal

Referenced by slotUndo().

◆ signalZoomChanged

void Digikam::Canvas::signalZoomChanged ( double  )
signal

Referenced by Canvas().

◆ slotContentsMoved

void Digikam::GraphicsDImgView::slotContentsMoved ( )
protectedslotinherited

◆ slotCopy

void Digikam::Canvas::slotCopy ( )
slot

◆ slotCornerButtonPressed

◆ slotCrop

void Digikam::Canvas::slotCrop ( )
slot

References addRubber(), and signalSelected().

◆ slotFlipHoriz

void Digikam::Canvas::slotFlipHoriz ( )
slot

◆ slotFlipVert

void Digikam::Canvas::slotFlipVert ( )
slot

◆ slotPanIconHidden

void Digikam::GraphicsDImgView::slotPanIconHidden ( )
protectedslotinherited

◆ slotPanIconSelectionMoved

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

◆ slotRedo

void Digikam::Canvas::slotRedo ( int  steps = 1)
slot

◆ slotRestore

void Digikam::Canvas::slotRestore ( )
slot

◆ slotRotate180

void Digikam::Canvas::slotRotate180 ( )
slot

◆ slotRotate270

void Digikam::Canvas::slotRotate270 ( )
slot

◆ slotRotate90

void Digikam::Canvas::slotRotate90 ( )
slot

image modifiers

◆ slotSelectAll

void Digikam::Canvas::slotSelectAll ( )
slot

References signalSelected().

◆ slotSelected

void Digikam::Canvas::slotSelected ( )
slot

References signalSelectionChanged().

Referenced by Canvas().

◆ slotSelectionMoved

void Digikam::Canvas::slotSelectionMoved ( )
slot

◆ slotSelectNone

void Digikam::Canvas::slotSelectNone ( )
slot

◆ slotUndo

void Digikam::Canvas::slotUndo ( int  steps = 1)
slot

◆ startPanning()

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

◆ toggleFullScreen()

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

◆ toNextImage

void Digikam::GraphicsDImgView::toNextImage ( )
signalinherited

◆ toPreviousImage

void Digikam::GraphicsDImgView::toPreviousImage ( )
signalinherited

◆ viewportRectChanged

◆ visibleArea()

QRect Digikam::GraphicsDImgView::visibleArea ( ) const
inherited

◆ wheelEvent()

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

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