digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
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
 
void slotSelectAll ()
 
void slotSelected ()
 
void slotSelectionMoved ()
 
void slotSelectNone ()
 
void slotUndo (int steps=1)
 

Signals

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)
 
- Signals inherited from Digikam::GraphicsDImgView
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

 Canvas (QWidget *const parent=nullptr)
 
void abortSaving ()
 
void applyTransform (const IccTransform &transform)
 Apply Color Management transformation to image (typically working color space).
 
DImg currentImage () const
 Return a copy of current image loaded in editor.
 
QString currentImageFileFormat () const
 Return the type mime of current image loaded in editor.
 
QString currentImageFilePath () const
 Return the file path of current image loaded in editor.
 
QString ensureHasCurrentUuid () const
 
bool exifRotated () const
 Return true if image have been rotated following Exif information.
 
void fitToSelect ()
 Change zoom level to fit current selection on canvas size.
 
QRect getSelectedArea () const
 Return the rectangle information of current canvas selection.
 
int imageHeight () const
 Return the height of current image loaded in editor.
 
int imageWidth () const
 Return the width of current image loaded in editor.
 
EditorCoreinterface () const
 Return the core interface instance of editor.
 
bool isReadOnly () const
 If current image file format is only available in read only, typically all RAW image file formats.
 
void load (const QString &filename, IOFileSettings *const IOFileSettings)
 
void makeDefaultEditingCanvas ()
 
void preload (const QString &filename)
 
void resetImage ()
 
void setExifOrient (bool exifOrient)
 Rotate image following Exif information.
 
void setExposureSettings (ExposureSettingsContainer *const expoSettings)
 Apply under.over exposure indicator settings.
 
void setICCSettings (const ICCSettingsContainer &cmSettings)
 Apply Color management settings (typically screen profile).
 
void setModified ()
 
void setSoftProofingEnabled (bool enable)
 Turn on/off Color Management Soft proofing mode.
 
- Public Member Functions inherited from Digikam::GraphicsDImgView
 GraphicsDImgView (QWidget *const parent=nullptr)
 
int contentsX () const
 
int contentsY () const
 
void drawText (QPainter *p, const QRectF &rect, const QString &text)
 
void fitToWindow ()
 
GraphicsDImgItemitem () const
 Return the instance of item set by setItem().
 
SinglePhotoPreviewLayoutlayout () const
 
DImgPreviewItempreviewItem () const
 Return a cast of item instance of item set by setItem() as DImgPreviewItem Note: if you store a GraphicsDImgItem object using setItem(), this method will return 0.
 
void 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).
 
void setContentsPos (int x, int y)
 
void setItem (GraphicsDImgItem *const item)
 Store internal instance of item as GraphicsDImgItem.
 
void toggleFullScreen (bool set)
 
QRect visibleArea () const
 

Protected Member Functions

void addRubber ()
 
void dragEnterEvent (QDragEnterEvent *) override
 
void dragMoveEvent (QDragMoveEvent *) override
 
void dropEvent (QDropEvent *) override
 
void keyPressEvent (QKeyEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
- Protected Member Functions inherited from Digikam::GraphicsDImgView
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 setScaleFitToWindow (bool value)
 
void setShowText (bool value)
 
void startPanning (const QPoint &pos)
 
void wheelEvent (QWheelEvent *) override
 

Additional Inherited Members

- Protected Slots inherited from Digikam::GraphicsDImgView
void slotContentsMoved ()
 
void slotCornerButtonPressed ()
 
void slotPanIconHidden ()
 
virtual void slotPanIconSelectionMoved (const QRect &, bool)