digiKam
|
Signals | |
void | gridSizeChanged (const QSize &newSize) |
void | hideNotification () |
void | requestNotification (const QModelIndex &index, const QString &message) |
void | visualChange () |
Public Member Functions | |
bool | acceptsActivation (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect) const override |
bool | acceptsToolTip (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const override |
QRect | actualPixmapRect (const QModelIndex &index) const |
int | calculatethumbSizeToFit (int ws) |
QRect | coordinatesIndicatorRect () const |
QSize | gridSize () const override |
QRect | groupIndicatorRect () const |
QRect | imageInformationRect () const override |
void | installOverlay (ItemDelegateOverlay *overlay) |
int | maximumSize () const |
int | minimumSize () const |
void | mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index) override |
QList< ItemDelegateOverlay * > | overlays () const |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QPixmap | pixmapForDrag (const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const override |
QRect | pixmapRect () const override |
QRect | rect () const |
void | removeAllOverlays () |
void | removeOverlay (ItemDelegateOverlay *overlay) |
void | setAllOverlaysActive (bool active) |
void | setDefaultViewOptions (const QStyleOptionViewItem &option) override |
void | setFlow (QListView::Flow flow) |
void | setSpacing (int spacing) override |
void | setThumbnailSize (const ThumbnailSize &thumbSize) override |
reimplemented from DItemDelegate More... | |
void | setView (ShowfotoThumbnailBar *view) |
void | setViewOnAllOverlays (QAbstractItemView *view) |
ShowfotoThumbnailDelegate (ShowfotoThumbnailBar *const parent) | |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
int | spacing () const |
ThumbnailSize | thumbnailSize () const |
~ShowfotoThumbnailDelegate () override | |
Static Public Member Functions | |
static QString | dateToString (const QDateTime &datetime) |
static QPixmap | makeDragPixmap (const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes, const QPixmap &suggestedPixmap=QPixmap()) |
static QPixmap | retrieveThumbnailPixmap (const QModelIndex &index, int thumbnailSize) |
static QString | squeezedText (const QFontMetrics &fm, int width, const QString &text) |
Protected Slots | |
void | modelChanged () |
void | modelContentsChanged () |
void | overlayDestroyed (QObject *o) override |
void | slotSetupChanged () |
void | slotThemeChanged () |
Protected Member Functions | |
QAbstractItemDelegate * | asDelegate () override |
Returns the delegate, typically, the derived class. More... | |
void | clearCaches () override |
virtual void | clearModelDataCaches () |
void | drawCreationDate (QPainter *p, const QRect &dateRect, const QDateTime &date) const |
void | drawFileSize (QPainter *p, const QRect &r, qlonglong bytes) const |
void | drawFocusRect (QPainter *p, const QStyleOptionViewItem &option, bool isSelected) const |
void | drawGeolocationIndicator (QPainter *p, const QRect &r) const |
void | drawImageFormat (QPainter *p, const QRect &dimsRect, const QString &mime) const |
void | drawImageSize (QPainter *p, const QRect &dimsRect, const QSize &dims) const |
void | drawMouseOverRect (QPainter *p, const QStyleOptionViewItem &option) const |
void | drawName (QPainter *p, const QRect &nameRect, const QString &name) const |
virtual void | drawOverlays (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const |
QRect | drawThumbnail (QPainter *p, const QRect &thumbRect, const QPixmap &background, const QPixmap &thumbnail) const |
Use the tool methods for painting in subclasses. More... | |
void | invalidatePaintingCache () override |
reimplement these in subclasses More... | |
bool | onActualPixmapRect (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *actualRect) const |
void | prepareBackground () |
void | prepareFonts () |
void | prepareMetrics (int maxWidth) |
void | setModel (QAbstractItemModel *model) |
QString | squeezedTextCached (QPainter *const p, int width, const QString &text) const |
QPixmap | thumbnailBorderPixmap (const QSize &pixSize, bool isGrouped=false) const |
virtual QPixmap | thumbnailPixmap (const QModelIndex &index) const |
int | thumbnailPixmapSize (bool withHighlight, int size) |
void | updateActualPixmapRect (const QModelIndex &index, const QRect &rect) |
void | updateContentWidth () override |
void | updateRects () override |
void | updateSizeRectsAndPixmaps () override |
Protected Attributes | |
ShowfotoItemViewDelegatePrivate *const | d_ptr |
QList< ItemDelegateOverlay * > | m_overlays |
|
explicit |
|
override |
|
overridevirtual |
Reimplemented from ShowFoto::ShowfotoDelegate.
References ShowFoto::ShowfotoItemViewDelegate::acceptsActivation().
|
overridevirtualinherited |
These methods take four parameters: The position on viewport, the rect on viewport, the index, and optionally a parameter into which, if the return value is true, a rectangle can be written for which the return value will be true as well.
Implements Digikam::DItemDelegate.
References ShowFoto::ShowfotoDelegate::onActualPixmapRect().
|
inherited |
References ShowFoto::ShowfotoItemViewDelegate::rect().
Referenced by ShowFoto::ShowfotoDelegate::onActualPixmapRect(), and ShowFoto::ShowfotoDelegate::paint().
|
overrideprotectedvirtualinherited |
Returns the delegate, typically, the derived class.
Implements Digikam::ItemDelegateOverlayContainer.
|
inherited |
|
overrideprotectedvirtualinherited |
Reimplemented from Digikam::DItemDelegate.
References Digikam::DItemDelegate::clearCaches().
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
|
protectedvirtualinherited |
Reimplement to clear caches based on model indexes (hash on row number etc.) Change signals are listened to this is called whenever such properties become invalid.
Referenced by ShowFoto::ShowfotoDelegate::modelChanged(), and ShowFoto::ShowfotoDelegate::modelContentsChanged().
|
inherited |
|
staticinherited |
|
protectedinherited |
References Digikam::DItemDelegate::dateToString().
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedinherited |
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedvirtualinherited |
|
protectedinherited |
Use the tool methods for painting in subclasses.
References Digikam::DItemDelegate::thumbnailBorderPixmap().
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
overridevirtualinherited |
Returns the gridsize to be set by the view. It's sizeHint plus spacing.
Implements Digikam::DItemDelegate.
Referenced by ShowFoto::ShowfotoDelegate::calculatethumbSizeToFit().
|
signalinherited |
|
inherited |
|
signalinherited |
Referenced by ShowFoto::ShowfotoCategorizedView::setItemDelegate().
|
overridevirtualinherited |
Returns the area where the image information is drawn, or null if empty / not supported. The image information is textual or graphical information, but not the pixmap. The ratingRect() will e.g. typically be contained in this area.
Reimplemented from ShowFoto::ShowfotoItemViewDelegate.
|
inherited |
References Digikam::ItemDelegateOverlay::acceptsDelegate(), Digikam::ItemDelegateOverlayContainer::asDelegate(), Digikam::ItemDelegateOverlayContainer::m_overlays, Digikam::ItemDelegateOverlayContainer::overlayDestroyed(), and Digikam::ItemDelegateOverlay::setDelegate().
Referenced by Digikam::VersionsTreeView::addOverlay(), Digikam::ImportCategorizedView::addOverlay(), Digikam::ItemCategorizedView::addOverlay(), and ShowFoto::ShowfotoCategorizedView::addOverlay().
|
overrideprotectedvirtualinherited |
reimplement these in subclasses
Reimplemented from ShowFoto::ShowfotoItemViewDelegate.
References ShowFoto::ShowfotoItemViewDelegate::invalidatePaintingCache().
|
staticinherited |
int ShowFoto::ShowfotoThumbnailDelegate::maximumSize | ( | ) | const |
Returns the minimum or maximum viewport size in the limiting dimension, width or height, depending on current flow.
Referenced by ShowFoto::ShowfotoThumbnailBar::setFlow().
int ShowFoto::ShowfotoThumbnailDelegate::minimumSize | ( | ) | const |
Referenced by ShowFoto::ShowfotoThumbnailBar::setFlow().
|
protectedslotinherited |
References ShowFoto::ShowfotoDelegate::clearModelDataCaches(), and ShowFoto::ShowfotoDelegate::setModel().
Referenced by ShowFoto::ShowfotoDelegate::setView().
|
protectedslotinherited |
References ShowFoto::ShowfotoDelegate::clearModelDataCaches().
Referenced by ShowFoto::ShowfotoDelegate::setModel().
|
overridevirtualinherited |
NOTE: to be called by ItemViewCategorized only
Implements Digikam::DItemDelegate.
|
protectedinherited |
|
overrideprotectedslotinherited |
|
inherited |
|
overrideinherited |
References ShowFoto::ShowfotoDelegate::actualPixmapRect(), ShowFoto::ShowfotoItemInfo::ctime, ShowFoto::ShowfotoItemViewDelegate::drawCreationDate(), ShowFoto::ShowfotoItemViewDelegate::drawFileSize(), ShowFoto::ShowfotoItemViewDelegate::drawFocusRect(), ShowFoto::ShowfotoItemViewDelegate::drawGeolocationIndicator(), ShowFoto::ShowfotoItemViewDelegate::drawImageFormat(), ShowFoto::ShowfotoItemViewDelegate::drawMouseOverRect(), ShowFoto::ShowfotoItemViewDelegate::drawName(), Digikam::ItemDelegateOverlayContainer::drawOverlays(), ShowFoto::ShowfotoItemViewDelegate::drawThumbnail(), ShowFoto::ShowfotoItemInfo::dtime, Digikam::PhotoInfoContainer::hasCoordinates, ShowFoto::ShowfotoSettings::instance(), ShowFoto::ShowfotoItemInfo::isNull(), ShowFoto::ShowfotoItemInfo::mime, ShowFoto::ShowfotoItemInfo::name, ShowFoto::ShowfotoItemInfo::photoInfo, ShowFoto::ShowfotoItemModel::retrieveShowfotoItemInfo(), ShowFoto::ShowfotoItemInfo::size, ShowFoto::ShowfotoDelegate::thumbnailPixmap(), and ShowFoto::ShowfotoDelegate::updateActualPixmapRect().
|
overridevirtualinherited |
Implements Digikam::DItemDelegate.
References Digikam::DItemDelegate::makeDragPixmap(), and ShowFoto::ShowfotoDelegate::thumbnailPixmap().
|
overridevirtualinherited |
Returns the area where the pixmap is drawn, or null if not supported
Reimplemented from ShowFoto::ShowfotoItemViewDelegate.
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
|
protectedinherited |
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
|
inherited |
|
inherited |
References Digikam::ItemDelegateOverlayContainer::m_overlays, Digikam::ItemDelegateOverlay::setActive(), Digikam::ItemDelegateOverlay::setDelegate(), and Digikam::ItemDelegateOverlay::setView().
Referenced by Digikam::ItemViewDelegate::~ItemViewDelegate(), Digikam::ItemViewImportDelegate::~ItemViewImportDelegate(), ShowFoto::ShowfotoItemViewDelegate::~ShowfotoItemViewDelegate(), and Digikam::VersionsTreeView::~VersionsTreeView().
|
inherited |
References Digikam::ItemDelegateOverlayContainer::asDelegate(), Digikam::ItemDelegateOverlayContainer::m_overlays, Digikam::ItemDelegateOverlay::setActive(), and Digikam::ItemDelegateOverlay::setDelegate().
Referenced by Digikam::ItemDelegateOverlayContainer::overlayDestroyed(), Digikam::ItemCategorizedView::removeOverlay(), Digikam::VersionsTreeView::removeOverlay(), ShowFoto::ShowfotoCategorizedView::removeOverlay(), and Digikam::ImportCategorizedView::removeOverlay().
|
signalinherited |
Referenced by ShowFoto::ShowfotoCategorizedView::setItemDelegate().
|
staticinherited |
Retrieve the thumbnail pixmap in given size for the ShowfotoItemModel::ThumbnailRole for the given index from the given index, which must adhere to ShowfotoThumbnailModel semantics.
References ShowFoto::ShowfotoItemModel::ThumbnailRole, and ShowFoto::ShowfotoItemViewDelegate::thumbnailSize().
Referenced by ShowFoto::ShowfotoDelegate::thumbnailPixmap().
|
inherited |
|
overridevirtual |
Style option with standard values to use for cached rendering. option.rect shall be the viewport rectangle. Call on resize, font change.
Reimplemented from ShowFoto::ShowfotoDelegate.
References ShowFoto::ShowfotoDelegate::setDefaultViewOptions().
void ShowFoto::ShowfotoThumbnailDelegate::setFlow | ( | QListView::Flow | flow | ) |
Referenced by ShowFoto::ShowfotoThumbnailBar::setFlow().
|
protectedinherited |
References ShowFoto::ShowfotoDelegate::modelContentsChanged().
Referenced by ShowFoto::ShowfotoDelegate::modelChanged(), and ShowFoto::ShowfotoDelegate::setView().
|
overridevirtualinherited |
Implements Digikam::DItemDelegate.
References ShowFoto::ShowfotoItemViewDelegate::setSpacing(), and ShowFoto::ShowfotoItemViewDelegate::spacing().
|
overridevirtualinherited |
reimplemented from DItemDelegate
Implements Digikam::DItemDelegate.
References ShowFoto::ShowfotoItemViewDelegate::invalidatePaintingCache().
Referenced by ShowFoto::ShowfotoCategorizedView::setItemDelegate().
|
inherited |
|
inherited |
|
overrideinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
inherited |
|
staticinherited |
Referenced by Digikam::DItemDelegate::squeezedTextCached().
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
References ShowFoto::ShowfotoDelegate::retrieveThumbnailPixmap().
Referenced by ShowFoto::ShowfotoDelegate::paint(), and ShowFoto::ShowfotoDelegate::pixmapForDrag().
|
protected |
Referenced by updateContentWidth().
|
inherited |
|
protectedinherited |
References ShowFoto::ShowfotoItemViewDelegate::rect().
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
overrideprotectedvirtual |
Reimplement this to set contentWidth. This is the maximum width of all content rectangles, typically excluding margins on both sides.
Reimplemented from ShowFoto::ShowfotoDelegate.
References thumbnailPixmapSize(), and ShowFoto::ShowfotoDelegate::updateContentWidth().
|
overrideprotectedvirtual |
In a subclass, you need to implement this method to set up the rects for drawing. The paint() method operates depending on these rects.
Implements ShowFoto::ShowfotoDelegate.
|
overrideprotectedvirtualinherited |
Implements ShowFoto::ShowfotoItemViewDelegate.
References ShowFoto::ShowfotoDelegate::clearCaches(), ShowFoto::ShowfotoItemViewDelegate::prepareBackground(), ShowFoto::ShowfotoItemViewDelegate::prepareFonts(), ShowFoto::ShowfotoItemViewDelegate::prepareMetrics(), ShowFoto::ShowfotoDelegate::updateContentWidth(), and ShowFoto::ShowfotoDelegate::updateRects().
|
signalinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::ItemDelegateOverlayContainer::drawOverlays(), Digikam::ItemDelegateOverlayContainer::installOverlay(), Digikam::ItemDelegateOverlayContainer::mouseMoved(), Digikam::ItemDelegateOverlayContainer::overlays(), Digikam::ItemDelegateOverlayContainer::removeAllOverlays(), Digikam::ItemDelegateOverlayContainer::removeOverlay(), Digikam::ItemDelegateOverlayContainer::setAllOverlaysActive(), and Digikam::ItemDelegateOverlayContainer::setViewOnAllOverlays().