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

Public Types

enum  DisplayMode { MessageMode = 0 , PreviewMode }
 

Public Slots

void slotLoad (const QUrl &url)
 

Signals

void signalButtonClicked ()
 

Public Member Functions

 DPreviewManager (QWidget *const parent)
 
bool load (const QUrl &file, bool fit=true)
 
void setBusy (bool b, const QString &text=QString())
 
void setButtonText (const QString &text)
 
void setButtonVisible (bool b)
 
void setImage (const QImage &img, bool fit=true)
 
void setSelectionAreaPossible (bool b)
 
void setText (const QString &text, const QColor &color=Qt::white)
 
void setThumbnail (const QPixmap &preview=QPixmap())
 
 ~DPreviewManager () override
 
void setSelectionArea (const QRectF &rectangle)
 
QRectF getSelectionArea () const
 

Member Enumeration Documentation

◆ DisplayMode

Enumerator
MessageMode 
PreviewMode 

Constructor & Destructor Documentation

◆ DPreviewManager()

Digikam::DPreviewManager::DPreviewManager ( QWidget *const  parent)
explicit

◆ ~DPreviewManager()

Digikam::DPreviewManager::~DPreviewManager ( )
override

Member Function Documentation

◆ getSelectionArea()

QRectF Digikam::DPreviewManager::getSelectionArea ( ) const

◆ load()

bool Digikam::DPreviewManager::load ( const QUrl &  file,
bool  fit = true 
)

References PreviewMode, setBusy(), and setText().

Referenced by slotLoad().

◆ setBusy()

void Digikam::DPreviewManager::setBusy ( bool  b,
const QString &  text = QString() 
)

References setText().

Referenced by load(), and setImage().

◆ setButtonText()

void Digikam::DPreviewManager::setButtonText ( const QString &  text)

◆ setButtonVisible()

void Digikam::DPreviewManager::setButtonVisible ( bool  b)

◆ setImage()

void Digikam::DPreviewManager::setImage ( const QImage &  img,
bool  fit = true 
)

References PreviewMode, setBusy(), and setText().

◆ setSelectionArea()

void Digikam::DPreviewManager::setSelectionArea ( const QRectF &  rectangle)

Manage a selection area and show it

Parameters
rectangleThis rectangle should have height and width of 1.0

◆ setSelectionAreaPossible()

void Digikam::DPreviewManager::setSelectionAreaPossible ( bool  b)

◆ setText()

void Digikam::DPreviewManager::setText ( const QString &  text,
const QColor &  color = Qt::white 
)

References MessageMode.

Referenced by load(), setBusy(), and setImage().

◆ setThumbnail()

void Digikam::DPreviewManager::setThumbnail ( const QPixmap &  preview = QPixmap())

References MessageMode.

◆ signalButtonClicked

void Digikam::DPreviewManager::signalButtonClicked ( )
signal

Referenced by DPreviewManager().

◆ slotLoad

void Digikam::DPreviewManager::slotLoad ( const QUrl &  url)
slot

References load().


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