25 #ifndef DIGIKAM_ITEM_VIEW_CATEGORIZED_H
26 #define DIGIKAM_ITEM_VIEW_CATEGORIZED_H
34 class QSortFilterProxyModel;
40 class ItemViewToolTip;
53 int numberOfSelectedIndexes()
const;
61 void toPreviousIndex();
62 void toIndex(
const QModelIndex& index);
63 void awayFromSelection();
68 void setScrollCurrentToCenter(
bool enabled);
73 void scrollToRelaxed(
const QModelIndex& index, ScrollHint hint = EnsureVisible);
75 void invertSelection();
78 void setToolTipEnabled(
bool enabled);
79 bool isToolTipEnabled()
const;
84 void setSpacing(
int spacing);
89 void setUsePointingHandCursor(
bool useCursor);
95 void setScrollStepGranularity(
int factor);
98 void scrollTo(
const QModelIndex& index, ScrollHint hint = EnsureVisible)
override;
102 void showIndexNotification(
const QModelIndex& index,
const QString& message);
103 void hideIndexNotification();
128 void clicked(
const QMouseEvent* e,
const QModelIndex& index);
129 void entered(
const QMouseEvent* e,
const QModelIndex& index);
146 void slotActivated(
const QModelIndex& index);
147 void slotClicked(
const QModelIndex& index);
148 void slotEntered(
const QModelIndex& index);
149 void layoutAboutToBeChanged();
150 void layoutWasChanged();
152 virtual void slotThemeChanged();
153 virtual void slotSetupChanged();
162 void updateDelegateSizes();
163 void userInteraction();
168 QModelIndex indexForCategoryAt(
const QPoint& pos)
const;
171 void contextMenuEvent(QContextMenuEvent* event)
override;
172 void keyPressEvent(QKeyEvent* event)
override;
173 void leaveEvent(QEvent* event)
override;
174 void mouseMoveEvent(QMouseEvent* event)
override;
175 void mousePressEvent(QMouseEvent* event)
override;
176 void mouseReleaseEvent(QMouseEvent* event)
override;
177 void resizeEvent(QResizeEvent* e)
override;
178 void reset()
override;
179 void rowsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end)
override;
180 void rowsInserted(
const QModelIndex& parent,
int start,
int end)
override;
181 void rowsRemoved(
const QModelIndex& parent,
int start,
int end)
override;
182 void selectionChanged(
const QItemSelection&,
const QItemSelection&)
override;
183 bool viewportEvent(QEvent* event)
override;
184 void wheelEvent(QWheelEvent* event)
override;
185 QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
override;
188 virtual void showContextMenuOnIndex(QContextMenuEvent* event,
const QModelIndex& index);
189 virtual void showContextMenu(QContextMenuEvent* event);
190 virtual void indexActivated(
const QModelIndex& index, Qt::KeyboardModifiers modifiers);
197 virtual bool showToolTip(
const QModelIndex& index,
198 QStyleOptionViewItem& option,
199 QHelpEvent* e =
nullptr);
206 QModelIndex mapIndexForDragDrop(
const QModelIndex& index)
const override;
214 virtual QModelIndex nextIndexHint(
const QModelIndex& indexToAnchor,
215 const QItemSelectionRange& removed)
const;
219 void slotGridSizeChanged(
const QSize&);
229 void ensureSelectionAfterChanges();
Item view for listing items.
Definition: dcategorizedview.h:49
Definition: ditemdelegate.h:42
Definition: dragdropimplementations.h:113
virtual void cut()
Definition: dragdropimplementations.cpp:140
virtual void copy()
Definition: dragdropimplementations.cpp:151
virtual void paste()
Definition: dragdropimplementations.cpp:162
Definition: itemviewcategorized.h:44
void clicked(const QMouseEvent *e, const QModelIndex &index)
virtual QSortFilterProxyModel * filterModel() const =0
void paste() override
Definition: itemviewcategorized.h:107
bool decodeIsCutSelection(const QMimeData *mimeData)
void viewportClicked(const QMouseEvent *e)
void encodeIsCutSelection(QMimeData *mime, bool isCutSelection)
void keyPressed(QKeyEvent *e)
void copy() override
Definition: itemviewcategorized.h:106
void cut() override
Definition: itemviewcategorized.h:105
void entered(const QMouseEvent *e, const QModelIndex &index)
#define DECLARE_VIEW_DRAG_DROP_METHODS(ParentViewClass)
Definition: dragdropimplementations.h:155
Definition: datefolderview.cpp:43