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

Public Types

enum  State { NoImage , Loading , ImageLoaded , ImageLoadingFailed }
 

Signals

void imageChanged ()
 
void imageSizeChanged (const QSizeF &size)
 
void loaded ()
 
void loadingFailed ()
 
void showContextMenu (QGraphicsSceneContextMenuEvent *e)
 
void stateChanged (int state)
 

Public Member Functions

QRectF boundingRect () const override
 
void clearCache ()
 
 DImgPreviewItemPrivate ()
 
 GraphicsDImgItemPrivate ()
 
DImg image () const
 
ItemInfo imageInfo () const
 
void init (DImgPreviewItem *const q)
 
void init (GraphicsDImgItem *const q)
 
bool isLoaded () const
 
 ItemPreviewCanvas ()
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
QString path () const
 
void reload ()
 
void setDisplayingWidget (QWidget *const widget)
 
void setFaceGroup (FaceGroup *const group)
 
void setImage (const DImg &img)
 
void setItemInfo (const ItemInfo &info)
 
void setPath (const QString &path, bool rePreview=false)
 
void setPreloadPaths (const QStringList &pathsToPreload)
 
void setPreviewSettings (const PreviewSettings &settings)
 
void sizeHasChanged ()
 
State state () const
 
QString userLoadingHint () const override
 
ImageZoomSettingszoomSettings ()
 
const ImageZoomSettingszoomSettings () const
 
 ~ItemPreviewCanvas () override
 

Public Attributes

CachedPixmaps cachedPixmaps
 
bool exifRotate
 
DImg image
 
QString path
 
QStringList pathsToPreload
 
PreviewLoadThreadpreloadThread
 
PreviewSettings previewSettings
 
int previewSize
 
PreviewLoadThreadpreviewThread
 
DImgPreviewItem::State state
 
ImageZoomSettings zoomSettings
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *e) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *e) override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *e) override
 

Protected Attributes

GraphicsDImgItemPrivate *const d_ptr
 

Member Enumeration Documentation

◆ State

Enumerator
NoImage 
Loading 
ImageLoaded 
ImageLoadingFailed 

Constructor & Destructor Documentation

◆ ItemPreviewCanvas()

Digikam::ItemPreviewCanvas::ItemPreviewCanvas ( )
explicit

◆ ~ItemPreviewCanvas()

Digikam::ItemPreviewCanvas::~ItemPreviewCanvas ( )
override

Member Function Documentation

◆ boundingRect()

◆ clearCache()

void Digikam::GraphicsDImgItem::clearCache ( )
inherited

◆ contextMenuEvent()

void Digikam::GraphicsDImgItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  e)
overrideprotectedinherited

◆ DImgPreviewItemPrivate()

Digikam::DImgPreviewItem::DImgPreviewItemPrivate ( )
explicitinherited

◆ GraphicsDImgItemPrivate()

Digikam::GraphicsDImgItem::GraphicsDImgItemPrivate ( )
inlineexplicitinherited

◆ hoverEnterEvent()

void Digikam::ItemPreviewCanvas::hoverEnterEvent ( QGraphicsSceneHoverEvent *  e)
overrideprotected

◆ hoverLeaveEvent()

void Digikam::ItemPreviewCanvas::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  e)
overrideprotected

◆ hoverMoveEvent()

void Digikam::ItemPreviewCanvas::hoverMoveEvent ( QGraphicsSceneHoverEvent *  e)
overrideprotected

◆ image()

DImg Digikam::GraphicsDImgItem::image ( ) const
inherited

◆ imageChanged

void Digikam::GraphicsDImgItem::imageChanged ( )
signalinherited

◆ imageInfo()

ItemInfo Digikam::ItemPreviewCanvas::imageInfo ( ) const

◆ imageSizeChanged

void Digikam::GraphicsDImgItem::imageSizeChanged ( const QSizeF &  size)
signalinherited

◆ init() [1/2]

void Digikam::DImgPreviewItem::init ( DImgPreviewItem *const  q)
inherited

◆ init() [2/2]

void Digikam::GraphicsDImgItem::init ( GraphicsDImgItem *const  q)
inherited

◆ isLoaded()

bool Digikam::DImgPreviewItem::isLoaded ( ) const
inherited

◆ loaded

void Digikam::DImgPreviewItem::loaded ( )
signalinherited

◆ loadingFailed

void Digikam::DImgPreviewItem::loadingFailed ( )
signalinherited

◆ paint()

void Digikam::GraphicsDImgItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = nullptr 
)
overrideinherited

◆ path()

QString Digikam::DImgPreviewItem::path ( ) const
inherited

◆ reload()

◆ setDisplayingWidget()

void Digikam::DImgPreviewItem::setDisplayingWidget ( QWidget *const  widget)
inherited

◆ setFaceGroup()

void Digikam::ItemPreviewCanvas::setFaceGroup ( FaceGroup *const  group)

◆ setImage()

void Digikam::GraphicsDImgItem::setImage ( const DImg img)
inherited

◆ setItemInfo()

void Digikam::ItemPreviewCanvas::setItemInfo ( const ItemInfo info)

◆ setPath()

void Digikam::DImgPreviewItem::setPath ( const QString &  path,
bool  rePreview = false 
)
inherited

◆ setPreloadPaths()

void Digikam::DImgPreviewItem::setPreloadPaths ( const QStringList &  pathsToPreload)
inherited

◆ setPreviewSettings()

void Digikam::DImgPreviewItem::setPreviewSettings ( const PreviewSettings settings)
inherited

◆ showContextMenu

void Digikam::GraphicsDImgItem::showContextMenu ( QGraphicsSceneContextMenuEvent *  e)
signalinherited

◆ sizeHasChanged()

void Digikam::GraphicsDImgItem::sizeHasChanged ( )
inherited

◆ state()

State Digikam::DImgPreviewItem::state ( ) const
inherited

◆ stateChanged

void Digikam::DImgPreviewItem::stateChanged ( int  state)
signalinherited

◆ userLoadingHint()

QString Digikam::DImgPreviewItem::userLoadingHint ( ) const
overridevirtualinherited

◆ zoomSettings() [1/2]

ImageZoomSettings* Digikam::GraphicsDImgItem::zoomSettings ( )
inherited

◆ zoomSettings() [2/2]

const ImageZoomSettings* Digikam::GraphicsDImgItem::zoomSettings ( ) const
inherited

Member Data Documentation

◆ cachedPixmaps

CachedPixmaps Digikam::GraphicsDImgItem::cachedPixmaps
mutableinherited

◆ d_ptr

GraphicsDImgItemPrivate* const Digikam::GraphicsDImgItem::d_ptr
protectedinherited

◆ exifRotate

bool Digikam::DImgPreviewItem::exifRotate
inherited

◆ image

◆ path

QString Digikam::DImgPreviewItem::path
inherited

◆ pathsToPreload

QStringList Digikam::DImgPreviewItem::pathsToPreload
inherited

◆ preloadThread

PreviewLoadThread* Digikam::DImgPreviewItem::preloadThread
inherited

◆ previewSettings

PreviewSettings Digikam::DImgPreviewItem::previewSettings
inherited

◆ previewSize

int Digikam::DImgPreviewItem::previewSize
inherited

◆ previewThread

PreviewLoadThread* Digikam::DImgPreviewItem::previewThread
inherited

◆ state

DImgPreviewItem::State Digikam::DImgPreviewItem::state
inherited

◆ zoomSettings


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