26 #ifndef DIGIKAM_ABSTRACT_ALBUM_TREE_VIEW_H
27 #define DIGIKAM_ABSTRACT_ALBUM_TREE_VIEW_H
44 class ContextMenuHelper;
45 class TagModificationHelper;
101 Q_DECLARE_FLAGS(Flags,
Flag)
386 void rowsInserted(
const QModelIndex& index,
int start,
int end)
override;
388 void startDrag(Qt::DropActions supportedActions)
override;
415 void saveStateRecursive(
const QModelIndex& index,
426 void restoreStateForHierarchy(
const QModelIndex& index,
427 const QMap<int, Digikam::State>& stateStore);
432 void restoreState(
const QModelIndex& index,
433 const QMap<int, Digikam::State>& stateStore);
440 void contextMenuEvent(QContextMenuEvent* event)
override;
451 void adaptColumnsOnDataChange(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
461 void adaptColumnsOnRowChange(
const QModelIndex& parent,
int start,
int end);
466 void adaptColumnsOnLayoutChange();
472 void currentAlbumChangedForBackupSelection(
Album* currentAlbum);
477 void slotScrollBarValueChanged(
int value);
478 void slotScrollBarActionTriggered(
int action);
488 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::AbstractAlbumTreeView::Flags)
Definition: abstractalbumtreeview_p.h:157
Definition: abstractalbumtreeview.h:63
QList< ContextMenuElement * > contextMenuElements() const
Definition: abstractalbumtreeview.cpp:1085
virtual QString contextMenuTitle() const
Definition: abstractalbumtreeview.cpp:1070
void setAlbumFilterModel(AlbumFilterModel *const filterModel)
Definition: abstractalbumtreeview.cpp:116
void scrollToSelectedAlbum()
Definition: abstractalbumtreeview.cpp:850
void slotCurrentChanged()
Definition: abstractalbumtreeview.cpp:426
virtual QPixmap pixmapForDrag(const QStyleOptionViewItem &option, QList< QModelIndex > indexes)
Definition: abstractalbumtreeview.cpp:547
void mousePressEvent(QMouseEvent *e) override
Other helper methods.
Definition: abstractalbumtreeview.cpp:466
bool viewportEvent(QEvent *event) override
Definition: abstractalbumtreeview.cpp:625
void adaptColumnsToContent()
Definition: abstractalbumtreeview.cpp:845
void startDrag(Qt::DropActions supportedActions) override
Definition: abstractalbumtreeview.cpp:515
virtual void addCustomContextMenuActions(ContextMenuHelper &cmh, Album *album)
Definition: abstractalbumtreeview.cpp:1147
void setCurrentAlbums(const QList< Album * > &albums, bool selectInAlbumManager=true)
Definition: abstractalbumtreeview.cpp:402
AbstractSpecificAlbumModel * albumModel() const
Definition: abstractalbumtreeview.cpp:189
void expandEverything(const QModelIndex &index)
Definition: abstractalbumtreeview.cpp:861
AbstractAlbumTreeView(QWidget *const parent, Flags flags)
Definition: abstractalbumtreeview.cpp:33
void setContextMenuTitle(const QString &title)
Definition: abstractalbumtreeview.cpp:1060
void doSaveState() override
Definition: abstractalbumtreeview.cpp:973
virtual QPixmap contextMenuIcon() const
Definition: abstractalbumtreeview.cpp:1065
void dropEvent(QDropEvent *e) override
Definition: abstractalbumtreeview.cpp:605
virtual void slotRootAlbumAvailable()
Definition: abstractalbumtreeview.cpp:317
void albumSettingsChanged()
Definition: abstractalbumtreeview.cpp:1159
QList< A * > currentAlbums()
Definition: abstractalbumtreeview.cpp:230
void setSelectAlbumOnClick(const bool selectOnClick)
Definition: abstractalbumtreeview.cpp:209
bool m_checkOnMiddleClick
Definition: abstractalbumtreeview.h:409
void setSearchTextSettings(const SearchTextSettings &settings)
Definition: abstractalbumtreeview.cpp:392
void setExpandOnSingleClick(const bool doThat)
Definition: abstractalbumtreeview.cpp:199
AlbumModelDragDropHandler * m_dragDropHandler
Definition: abstractalbumtreeview.h:406
void slotCollapseNode()
slotCollapseNode - collapse recursively selected nodes
Definition: abstractalbumtreeview.cpp:882
void currentAlbumChanged(Album *currentAlbum)
Flag
Definition: abstractalbumtreeview.h:69
@ CreateDefaultDelegate
Definition: abstractalbumtreeview.h:85
@ AlwaysShowInclusiveCounts
Definition: abstractalbumtreeview.h:97
@ CreateDefaultFilterModel
Definition: abstractalbumtreeview.h:79
@ DefaultFlags
Definition: abstractalbumtreeview.h:99
@ ShowCountAccordingToSettings
Definition: abstractalbumtreeview.h:91
@ CreateDefaultModel
Definition: abstractalbumtreeview.h:74
void slotSearchTextSettingsChanged(bool wasSearching, bool searching)
Definition: abstractalbumtreeview.cpp:278
bool m_restoreCheckState
Definition: abstractalbumtreeview.h:410
AbstractSpecificAlbumModel * m_albumModel
Definition: abstractalbumtreeview.h:404
void slotSelectionChanged()
Definition: abstractalbumtreeview.cpp:453
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override
Definition: abstractalbumtreeview.cpp:824
~AbstractAlbumTreeView() override
Definition: abstractalbumtreeview.cpp:77
virtual bool showContextMenuAt(QContextMenuEvent *event, Album *albumForEvent)
Definition: abstractalbumtreeview.cpp:1048
void doLoadState() override
Definition: abstractalbumtreeview.cpp:635
void dragEnterEvent(QDragEnterEvent *e) override
Definition: abstractalbumtreeview.cpp:559
void dragMoveEvent(QDragMoveEvent *e) override
Definition: abstractalbumtreeview.cpp:574
AlbumFilterModel * albumFilterModel() const
Definition: abstractalbumtreeview.cpp:194
int m_lastScrollBarValue
Definition: abstractalbumtreeview.h:408
AlbumFilterModel * m_albumFilterModel
Definition: abstractalbumtreeview.h:405
virtual void middleButtonPressed(Album *a)
Definition: abstractalbumtreeview.cpp:510
void selectedAlbumsChanged(const QList< Album * > &selectedAlbums)
void setExpandNewCurrentItem(const bool doThat)
Definition: abstractalbumtreeview.cpp:204
void removeContextMenuElement(ContextMenuElement *const element)
Definition: abstractalbumtreeview.cpp:1080
void setAlbumModel(AbstractSpecificAlbumModel *const model)
Definition: abstractalbumtreeview.cpp:82
void slotSearchTextSettingsAboutToChange(bool searched, bool willSearch)
Definition: abstractalbumtreeview.cpp:248
void setAlbumManagerCurrentAlbum(const bool setCurrentAlbum)
Definition: abstractalbumtreeview.cpp:397
Flags m_flags
Definition: abstractalbumtreeview.h:411
void dragLeaveEvent(QDragLeaveEvent *e) override
Definition: abstractalbumtreeview.cpp:600
void slotExpandNode()
slotExpandNode - expands recursively selected nodes
Definition: abstractalbumtreeview.cpp:871
QModelIndex indexVisuallyAt(const QPoint &p)
Definition: abstractalbumtreeview.cpp:214
void setSelectOnContextMenu(const bool select)
Definition: abstractalbumtreeview.cpp:1142
void setContextMenuIcon(const QPixmap &pixmap)
Definition: abstractalbumtreeview.cpp:1055
void setEnableContextMenu(const bool enable)
Definition: abstractalbumtreeview.cpp:1043
void slotCollapseAllNodes()
slotCollapseAllNodes - collapse all nodes without root node
Definition: abstractalbumtreeview.cpp:916
void addContextMenuElement(ContextMenuElement *const element)
Definition: abstractalbumtreeview.cpp:1075
virtual void handleCustomContextMenuAction(QAction *action, const AlbumPointer< Album > &album)
Definition: abstractalbumtreeview.cpp:1153
QList< Album * > selectedItems()
selectedItems() -
Definition: abstractalbumtreeview.cpp:630
bool expandMatches(const QModelIndex &index)
Definition: abstractalbumtreeview.cpp:322
void rowsInserted(const QModelIndex &index, int start, int end) override
Definition: abstractalbumtreeview.cpp:801
Definition: abstractalbummodel.h:237
Definition: albumfiltermodel.h:45
Definition: albummodeldragdrophandler.h:39
Definition: albumpointer.h:48
Abstract base class for all album types.
Definition: album.h:67
Definition: searchtextbar.h:43
Definition: statesavingobject.h:76
Definition: piwigotalker.h:48
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43