digiKam
|
Public Slots | |
void | reset () override |
Public Member Functions | |
ActionCategorizedView (QWidget *const parent=nullptr, bool autoScroll=false) | |
void | adjustGridSize () |
virtual QModelIndexList | categorizedIndexesIn (const QRect &rect) const |
virtual QModelIndex | categoryAt (const QPoint &point) const |
DCategoryDrawer * | categoryDrawer () const |
virtual QItemSelectionRange | categoryRange (const QModelIndex &index) const |
virtual QRect | categoryVisualRect (const QModelIndex &index) const |
QModelIndex | indexAt (const QPoint &point) const override |
void | setCategoryDrawer (DCategoryDrawer *categoryDrawer) |
void | setDrawDraggedItems (bool drawDraggedItems) |
void | setGridSize (const QSize &size) |
void | setModel (QAbstractItemModel *model) override |
void | setupIconMode () |
QRect | visualRect (const QModelIndex &index) const override |
~ActionCategorizedView () override | |
Protected Slots | |
void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) override |
void | rowsInserted (const QModelIndex &parent, int start, int end) override |
virtual void | rowsInsertedArtifficial (const QModelIndex &parent, int start, int end) |
virtual void | rowsRemoved (const QModelIndex &parent, int start, int end) |
virtual void | slotLayoutChanged () |
void | updateGeometries () override |
Protected Member Functions | |
void | autoScroll (float relativePos, QScrollBar *scrollBar, QPropertyAnimation *animation) |
int | autoScrollDuration (float relativeDifference, QPropertyAnimation *animation) |
void | dragLeaveEvent (QDragLeaveEvent *event) override |
void | dragMoveEvent (QDragMoveEvent *event) override |
void | dropEvent (QDropEvent *event) override |
void | leaveEvent (QEvent *e) override |
void | mouseMoveEvent (QMouseEvent *e) override |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override |
void | paintEvent (QPaintEvent *event) override |
void | resizeEvent (QResizeEvent *event) override |
void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) override |
void | startDrag (Qt::DropActions supportedActions) override |
Protected Attributes | |
bool | m_autoScroll |
QPropertyAnimation * | m_horizontalScrollAnimation |
QPropertyAnimation * | m_verticalScrollAnimation |
|
explicit |
References m_horizontalScrollAnimation, and m_verticalScrollAnimation.
|
override |
void Digikam::ActionCategorizedView::adjustGridSize | ( | ) |
References Digikam::DCategorizedView::setGridSize().
Referenced by Digikam::EditorWindow::setupSelectToolsAction().
|
protected |
References autoScrollDuration().
Referenced by mouseMoveEvent().
|
protected |
Referenced by autoScroll().
|
virtualinherited |
This method will return all indexes whose visual rect intersects rect
.
rect | rectangle to test intersection with |
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::intersectionSet(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.
|
virtualinherited |
This method will return the first index of the category in the region of which point
is found.
References Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::categoryVisualRect(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedSortFilterProxyModel::sortColumn().
Referenced by Digikam::ItemViewCategorized::indexForCategoryAt().
|
inherited |
References Digikam::DCategorizedView::Private::categoryDrawer.
Referenced by Digikam::DCategorizedView::Private::drawNewCategory(), Digikam::DCategorizedView::setCategoryDrawer(), Digikam::DCategorizedView::Private::visualCategoryRectInViewport(), and Digikam::DCategorizedView::Private::visualRectInViewport().
|
virtualinherited |
This method returns the range of indexes contained in the category in which index
is sorted.
References Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedSortFilterProxyModel::sortColumn().
|
virtualinherited |
This method will return the visual rect of the header of the category in which index
is sorted.
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::categoryVisualRect(), Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.
|
overrideprotectedslotinherited |
References Digikam::DCategorizedView::Private::biggestItemSize, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.
Referenced by Digikam::ItemCategorizedView::currentChanged(), and Digikam::ImportCategorizedView::currentChanged().
|
overrideprotectedinherited |
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::dragLeftViewport, Digikam::DCategorizedView::Private::drawDraggedItems(), Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::indexAt(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::mousePosition, and Digikam::DCategorizedView::Private::proxyModel.
|
overrideprotectedinherited |
|
overrideinherited |
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::intersectionSet(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.
Referenced by Digikam::ItemViewCategorized::contextMenuEvent(), Digikam::DCategorizedView::dragMoveEvent(), Digikam::ItemViewCategorized::mouseMoveEvent(), Digikam::ItemViewCategorized::mousePressEvent(), and Digikam::ItemViewCategorized::viewportEvent().
|
overrideprotected |
|
overrideprotected |
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::categoryVisualRect(), Digikam::DCategorizedView::Private::dragLeftViewport, Digikam::DCategorizedView::Private::hoveredCategory, Digikam::DCategorizedView::Private::initialPressPosition, Digikam::DCategorizedView::Private::lastSelection, Digikam::DCategorizedView::Private::mouseButtonPressed, and Digikam::DCategorizedView::Private::rightMouseButtonPressed.
Referenced by Digikam::ItemViewCategorized::mousePressEvent().
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::categoryVisualRect(), Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::hoveredCategory, Digikam::DCategorizedView::Private::initialPressPosition, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::mouseButtonPressed, Digikam::DCategorizedView::Private::mousePosition, Digikam::DCategorizedView::Private::proxyModel, Digikam::DCategorizedView::Private::rightMouseButtonPressed, and Digikam::DCategorizedView::visualRect().
Referenced by Digikam::ItemViewCategorized::mouseReleaseEvent().
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::biggestItemSize, Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedView::Private::intersectionSet(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.
Referenced by Digikam::ItemViewCategorized::moveCursor().
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::categoryVisualRect(), Digikam::DCategorizedView::Private::dragLeftViewport, Digikam::DCategorizedView::Private::drawDraggedItems(), Digikam::DCategorizedView::Private::drawItemsWhileDragging, Digikam::DCategorizedView::Private::drawNewCategory(), Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::initialPressPosition, Digikam::DCategorizedView::Private::intersectionSet(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::mouseButtonPressed, Digikam::DCategorizedView::Private::mousePosition, Digikam::DCategorizedView::Private::proxyModel, Digikam::DCategorizedSortFilterProxyModel::sortColumn(), and Digikam::DCategorizedView::visualRect().
Referenced by Digikam::ImportCategorizedView::paintEvent().
|
overrideslotinherited |
References Digikam::DCategorizedView::Private::biggestItemSize, Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoriesPosition, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::elementsPosition, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::intersectedIndexes, Digikam::DCategorizedView::Private::lastSelection, Digikam::DCategorizedView::Private::mouseButtonPressed, and Digikam::DCategorizedView::Private::rightMouseButtonPressed.
Referenced by Digikam::ItemViewCategorized::reset().
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::categoriesPosition, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::elementsPosition, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedView::Private::updateScrollbars().
Referenced by Digikam::ItemViewCategorized::resizeEvent().
|
overrideprotectedslotinherited |
References Digikam::DCategorizedView::Private::biggestItemSize, Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoriesPosition, Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::elementsPosition, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::intersectedIndexes, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::mouseButtonPressed, Digikam::DCategorizedView::Private::proxyModel, Digikam::DCategorizedView::Private::rightMouseButtonPressed, and Digikam::DCategorizedView::rowsInsertedArtifficial().
Referenced by Digikam::ItemViewCategorized::rowsInserted().
|
protectedvirtualslotinherited |
References Digikam::DCategorizedView::Private::biggestItemSize, Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoriesPosition, Digikam::DCategorizedView::Private::ElementInfo::category, Digikam::DCategorizedSortFilterProxyModel::CategoryDisplayRole, Digikam::DCategorizedView::Private::categoryUpperBound(), Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::elementsPosition, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::intersectedIndexes, Digikam::DCategorizedView::Private::mouseButtonPressed, Digikam::DCategorizedView::Private::proxyModel, Digikam::DCategorizedView::Private::ElementInfo::relativeOffsetToCategory, Digikam::DCategorizedView::Private::rightMouseButtonPressed, Digikam::DCategorizedSortFilterProxyModel::sortColumn(), and Digikam::DCategorizedView::Private::updateScrollbars().
Referenced by Digikam::DCategorizedView::rowsInserted(), Digikam::DCategorizedView::rowsRemoved(), and Digikam::DCategorizedView::slotLayoutChanged().
|
protectedvirtualslotinherited |
Reimplemented in Digikam::ItemViewCategorized.
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedView::rowsInsertedArtifficial().
Referenced by Digikam::ItemViewCategorized::rowsRemoved(), and Digikam::DCategorizedView::setModel().
|
inherited |
References Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoriesPosition, Digikam::DCategorizedView::categoryDrawer(), Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::elementsPosition, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::intersectedIndexes, Digikam::DCategorizedView::Private::lastSelection, Digikam::DCategorizedView::Private::mouseButtonPressed, Digikam::DCategorizedView::Private::proxyModel, Digikam::DCategorizedView::Private::rightMouseButtonPressed, Digikam::DCategorizedView::slotLayoutChanged(), and Digikam::DCategorizedView::updateGeometries().
Referenced by Digikam::ImportCategorizedView::setItemDelegate(), Digikam::ItemCategorizedView::setItemDelegate(), and setupIconMode().
|
inherited |
Switch on drawing of dragged items. Default: on. While dragging over the view, dragged items will be drawn transparently following the mouse cursor.
drawDraggedItems | if true , dragged items will be drawn |
References Digikam::DCategorizedView::Private::drawItemsWhileDragging.
Referenced by Digikam::ItemViewCategorized::ItemViewCategorized().
|
inherited |
References Digikam::DCategorizedView::slotLayoutChanged().
Referenced by adjustGridSize().
|
overrideinherited |
References Digikam::DCategorizedView::Private::categories, Digikam::DCategorizedView::Private::categoriesIndexes, Digikam::DCategorizedView::Private::categoriesPosition, Digikam::DCategorizedView::Private::elementsInfo, Digikam::DCategorizedView::Private::elementsPosition, Digikam::DCategorizedView::Private::forcedSelectionPosition, Digikam::DCategorizedView::Private::hovered, Digikam::DCategorizedView::Private::intersectedIndexes, Digikam::DCategorizedView::Private::lastSelection, Digikam::DCategorizedView::Private::mouseButtonPressed, Digikam::DCategorizedView::Private::proxyModel, Digikam::DCategorizedView::Private::rightMouseButtonPressed, Digikam::DCategorizedView::rowsRemoved(), and Digikam::DCategorizedView::slotLayoutChanged().
Referenced by Digikam::ImportCategorizedView::setModels(), Digikam::ItemCategorizedView::setModels(), ShowFoto::ShowfotoCategorizedView::setModels(), and Digikam::EditorWindow::setupSelectToolsAction().
|
overrideprotectedinherited |
References Digikam::DCategorizedView::Private::cachedRectIndex(), Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::contentsSize(), Digikam::DCategorizedView::Private::intersectionSet(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedView::Private::selectionForRect().
void Digikam::ActionCategorizedView::setupIconMode | ( | ) |
References Digikam::DCategorizedView::setCategoryDrawer().
Referenced by Digikam::EditorWindow::setupSelectToolsAction().
|
protectedvirtualslotinherited |
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedView::rowsInsertedArtifficial().
Referenced by Digikam::DCategorizedView::setCategoryDrawer(), Digikam::DCategorizedView::setGridSize(), and Digikam::DCategorizedView::setModel().
|
overrideprotectedinherited |
|
overrideprotectedslotinherited |
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.
Referenced by Digikam::DCategorizedView::setCategoryDrawer(), Digikam::ItemCategorizedView::updateGeometries(), and Digikam::ImportCategorizedView::updateGeometries().
|
overrideinherited |
References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), Digikam::DCategorizedView::Private::proxyModel, and Digikam::DCategorizedView::Private::visualRect().
Referenced by Digikam::DCategorizedView::Private::drawDraggedItems(), Digikam::DCategorizedView::Private::intersectionSet(), Digikam::ItemViewCategorized::mouseMoveEvent(), Digikam::DCategorizedView::mouseReleaseEvent(), Digikam::DCategorizedView::paintEvent(), Digikam::ItemViewCategorized::scrollToRelaxed(), Digikam::ItemViewCategorized::showIndexNotification(), Digikam::ItemViewCategorized::slotActivated(), and Digikam::ItemViewCategorized::viewportEvent().
|
protected |
Referenced by mouseMoveEvent().
|
protected |
Referenced by ActionCategorizedView(), leaveEvent(), and mouseMoveEvent().
|
protected |
Referenced by ActionCategorizedView(), leaveEvent(), and mouseMoveEvent().