25 #ifndef DIGIKAM_ITEM_CATEGORIZED_VIEW_H
26 #define DIGIKAM_ITEM_CATEGORIZED_VIEW_H
40 class ItemAlbumFilterModel;
42 class ItemFilterModel;
43 class ImageSortFilterModel;
45 class ItemDelegateOverlay;
46 class ItemThumbnailModel;
191 QSortFilterProxyModel*
filterModel()
const override;
194 const QItemSelectionRange& removed)
const override;
197 void indexActivated(
const QModelIndex& index, Qt::KeyboardModifiers modifiers)
override;
198 void currentChanged(
const QModelIndex& index,
const QModelIndex& previous)
override;
199 void selectionChanged(
const QItemSelection&,
const QItemSelection&)
override;
213 void slotFileChanged(
const QString& filePath);
214 void slotDelayedEnter();
218 void scrollToStoredItem();
Definition: abstractitemdragdrophandler.h:42
Abstract base class for all album types.
Definition: album.h:67
Definition: iccsettingscontainer.h:44
Definition: itemfiltermodel.h:63
Definition: itemalbumfiltermodel.h:40
Definition: itemalbummodel.h:47
Definition: itemcategorizedview.h:49
void updateGeometries() override
Definition: itemcategorizedview.cpp:601
Album * albumAt(const QPoint &pos) const
Definition: itemcategorizedview.cpp:699
void deselected(const QList< ItemInfo > &nowDeselectedInfos)
Emitted when items are deselected. There may be other selected infos left. This signal is not emitted...
void setItemDelegate(ItemDelegate *delegate)
Definition: itemcategorizedview.cpp:244
QModelIndex indexForInfo(const ItemInfo &info) const
Definition: itemcategorizedview.cpp:359
void modelChanged()
Emitted when a new model is set.
virtual void showContextMenuOnInfo(QContextMenuEvent *event, const ItemInfo &info)
Definition: itemcategorizedview.cpp:726
void slotCurrentUrlTimer()
Definition: itemcategorizedview.cpp:650
ItemThumbnailModel * imageThumbnailModel() const
Returns 0 if the ItemModel is not an ItemThumbnailModel.
Definition: itemcategorizedview.cpp:219
Album * currentAlbum() const
Definition: itemcategorizedview.cpp:286
void setSelectedItemInfos(const QList< ItemInfo > &infos)
Definition: itemcategorizedview.cpp:542
ImageSortFilterModel * imageSortFilterModel() const
Definition: itemcategorizedview.cpp:209
virtual void activated(const ItemInfo &info, Qt::KeyboardModifiers modifiers)
Reimplement these in a subclass.
Definition: itemcategorizedview.cpp:716
void installDefaultModels()
install default ItemAlbumModel and filter model, ready for use
Definition: itemcategorizedview.cpp:141
void hintAt(const ItemInfo &info)
Definition: itemcategorizedview.cpp:555
void openAlbum(const QList< Album * > &album)
Definition: itemcategorizedview.cpp:419
ItemInfo nextInOrder(const ItemInfo &startingPoint, int nth)
Definition: itemcategorizedview.cpp:364
void showContextMenuOnIndex(QContextMenuEvent *event, const QModelIndex &index) override
Reimplement these in a subclass.
Definition: itemcategorizedview.cpp:721
QItemSelectionModel * getSelectionModel() const
Definition: itemcategorizedview.cpp:731
void setModels(ItemModel *model, ImageSortFilterModel *filterModel)
Definition: itemcategorizedview.cpp:159
ItemInfo imageInfo(const QModelIndex &index) const
Definition: itemcategorizedview.cpp:310
void setSelectedUrls(const QList< QUrl > &urlList)
Definition: itemcategorizedview.cpp:517
ItemFilterModel * imageFilterModel() const
Returns any ItemFilterMode in chain. May not be sourceModel()
Definition: itemcategorizedview.cpp:214
ItemInfoList selectedItemInfosCurrentFirst() const
Definition: itemcategorizedview.cpp:335
ItemAlbumFilterModel * imageAlbumFilterModel() const
Definition: itemcategorizedview.cpp:229
ItemInfo nextInfo(const ItemInfo &info)
Definition: itemcategorizedview.h:102
void addOverlay(ItemDelegateOverlay *overlay, ItemDelegate *delegate=nullptr)
Add and remove an overlay. It will as well be removed automatically when destroyed....
Definition: itemcategorizedview.cpp:573
ItemInfo previousInfo(const ItemInfo &info)
Definition: itemcategorizedview.h:97
void setCurrentUrlWhenAvailable(const QUrl &url)
Definition: itemcategorizedview.cpp:466
ItemModel * imageModel() const
Definition: itemcategorizedview.cpp:204
void removeOverlay(ItemDelegateOverlay *overlay)
Definition: itemcategorizedview.cpp:589
void addSelectionOverlay(ItemDelegate *delegate=nullptr)
Definition: itemcategorizedview.cpp:619
void setCurrentWhenAvailable(qlonglong imageId)
Definition: itemcategorizedview.cpp:461
virtual void setThumbnailSize(const ThumbnailSize &size)
Definition: itemcategorizedview.cpp:452
void setCurrentInfo(const ItemInfo &info)
Definition: itemcategorizedview.cpp:510
QModelIndex nextIndexHint(const QModelIndex &indexToAnchor, const QItemSelectionRange &removed) const override
Definition: itemcategorizedview.cpp:376
ItemInfoList imageInfos(const QList< QModelIndex > &indexes) const
Definition: itemcategorizedview.cpp:315
ItemInfoList allItemInfos() const
Definition: itemcategorizedview.cpp:320
void setCurrentUrl(const QUrl &url)
Definition: itemcategorizedview.cpp:489
void selected(const QList< ItemInfo > &newSelectedInfos)
Emitted when new items are selected. The parameter includes only the newly selected infos,...
QList< QUrl > allUrls() const
Definition: itemcategorizedview.cpp:325
~ItemCategorizedView() override
Definition: itemcategorizedview.cpp:135
void currentChanged(const ItemInfo &info)
void imageActivated(const ItemInfo &info)
Emitted when the given image is activated. Info is never null.
void indexActivated(const QModelIndex &index, Qt::KeyboardModifiers modifiers) override
Definition: itemcategorizedview.cpp:666
ItemDelegate * delegate() const
Definition: itemcategorizedview.cpp:239
ItemInfo currentInfo() const
Definition: itemcategorizedview.cpp:300
ItemInfoList selectedItemInfos() const
Definition: itemcategorizedview.cpp:330
void slotItemInfosAdded()
Definition: itemcategorizedview.cpp:638
ItemAlbumModel * imageAlbumModel() const
Returns 0 if the ItemModel is not an ItemAlbumModel.
Definition: itemcategorizedview.cpp:224
QSortFilterProxyModel * filterModel() const override
Definition: itemcategorizedview.cpp:234
ItemCategorizedView(QWidget *const parent=nullptr)
Definition: itemcategorizedview.cpp:115
ThumbnailSize thumbnailSize() const
Definition: itemcategorizedview.cpp:429
AbstractItemDragDropHandler * dragDropHandler() const override
Definition: itemcategorizedview.cpp:736
void toIndex(const QUrl &url)
Definition: itemcategorizedview.cpp:354
QUrl currentUrl() const
Definition: itemcategorizedview.cpp:305
Definition: itemdelegateoverlay.h:41
Definition: itemdelegate.h:44
Definition: itemfiltermodel.h:125
Definition: iteminfolist.h:47
Definition: iteminfo.h:78
Definition: itemmodel.h:53
Definition: itemthumbnailmodel.h:41
Definition: itemviewcategorized.h:44
Definition: thumbnailsize.h:42
@ Album
Definition: coredbfields.h:58
Definition: datefolderview.cpp:43