digiKam
|
Public Types | |
enum | Flag { CreateDefaultModel , CreateDefaultFilterModel , CreateDefaultDelegate , ShowCountAccordingToSettings , AlwaysShowInclusiveCounts , DefaultFlags = CreateDefaultFilterModel | CreateDefaultDelegate | ShowCountAccordingToSettings } |
enum | StateSavingDepth { INSTANCE , DIRECT_CHILDREN , RECURSIVE } |
Public Slots | |
void | adaptColumnsToContent () |
void | expandEverything (const QModelIndex &index) |
void | scrollToSelectedAlbum () |
void | setCurrentAlbum (int tagId, bool selectInAlbumManager=true) |
void | setCurrentAlbums (const QList< Album * > &tags, bool selectInAlbumManager=true) |
void | setSearchTextSettings (const SearchTextSettings &settings) |
void | slotCollapseAllNodes () |
slotCollapseAllNodes - collapse all nodes without root node More... | |
void | slotCollapseNode () |
slotCollapseNode - collapse recursively selected nodes More... | |
void | slotExpandNode () |
slotExpandNode - expands recursively selected nodes More... | |
Signals | |
void | assignTags (int tagId, const QList< int > &imageIDs) |
void | currentAlbumChanged (Album *currentAlbum) |
void | selectedAlbumsChanged (const QList< Album * > &selectedAlbums) |
void | signalFindDuplicates (const QList< TAlbum * > &albums) |
Public Member Functions | |
void | addContextMenuElement (ContextMenuElement *const element) |
CheckableAlbumFilterModel * | albumFilterModel () const |
TAlbum * | albumForIndex (const QModelIndex &index) const |
TagModel * | albumModel () const |
CheckableAlbumFilterModel * | checkableAlbumFilterModel () const |
AbstractCheckableAlbumModel * | checkableModel () const |
QList< ContextMenuElement * > | contextMenuElements () const |
TAlbum * | currentAlbum () const |
currentAlbum - even if multiple selection is enabled current Album can be only one, the last clicked item if you need selected items, see selectedAlbums() It's NOT the same as AlbumManager::currentAlbums() More... | |
template<class A > | |
QList< A * > | currentAlbums () |
void | doLoadState () override |
void | doSaveState () override |
bool | expandMatches (const QModelIndex &index) |
TagPropertiesFilterModel * | filteredModel () const |
Contains only the tags filtered by properties - prefer to albumModel() More... | |
TagsManagerFilterModel * | getFilterModel () const |
StateSavingDepth | getStateSavingDepth () const |
QModelIndex | indexVisuallyAt (const QPoint &p) |
bool | isRestoreCheckState () const |
void | loadState () |
void | removeContextMenuElement (ContextMenuElement *const element) |
void | saveState () |
QList< Album * > | selectedItems () |
selectedItems() - More... | |
QList< TAlbum * > | selectedTagAlbums () |
QList< Album * > | selectedTags () |
selectedTags - return a list of all selected items in tag model More... | |
void | setAlbumFilterModel (TagPropertiesFilterModel *const filteredModel, CheckableAlbumFilterModel *const filterModel) |
void | setAlbumFilterModel (TagsManagerFilterModel *const filteredModel, CheckableAlbumFilterModel *const filterModel) |
setAlbumFilterModel - reimplement from AbstractAlbumTree More... | |
void | setAlbumManagerCurrentAlbum (const bool setCurrentAlbum) |
void | setAlbumModel (TagModel *const model) |
void | setCheckOnMiddleClick (bool doThat) |
Enable checking on middle mouse button click (default: on) More... | |
virtual void | setConfigGroup (const KConfigGroup &group) |
void | setContextMenuIcon (const QPixmap &pixmap) |
void | setContextMenuTitle (const QString &title) |
void | setEnableContextMenu (const bool enable) |
virtual void | setEntryPrefix (const QString &prefix) |
void | setExpandNewCurrentItem (const bool doThat) |
void | setExpandOnSingleClick (const bool doThat) |
void | setRestoreCheckState (bool restore) |
void | setSelectAlbumOnClick (const bool selectOnClick) |
void | setSelectOnContextMenu (const bool select) |
void | setShowDeleteFaceTagsAction (bool show) |
void | setShowFindDuplicateAction (bool show) |
void | setStateSavingDepth (const StateSavingDepth depth) |
TagMngrTreeView (TagsManager *const parent, TagModel *const model) | |
TagModificationHelper * | tagModificationHelper () const |
bool | viewportEvent (QEvent *event) override |
~TagMngrTreeView () override | |
Protected Slots | |
void | albumSettingsChanged () |
void | slotCurrentChanged () |
virtual void | slotRootAlbumAvailable () |
void | slotSearchTextSettingsAboutToChange (bool searched, bool willSearch) |
void | slotSearchTextSettingsChanged (bool wasSearching, bool searching) |
void | slotSelectionChanged () |
Protected Member Functions | |
void | addCustomContextMenuActions (ContextMenuHelper &cmh, Album *album) override |
void | contextMenuEvent (QContextMenuEvent *event) override |
contextMenuEvent - Reimplement contextMenuEvent from AbstractAlbumTree to support multiple selection More... | |
virtual QPixmap | contextMenuIcon () const |
QString | contextMenuTitle () const override |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dragLeaveEvent (QDragLeaveEvent *e) override |
void | dragMoveEvent (QDragMoveEvent *e) override |
void | dropEvent (QDropEvent *e) override |
QString | entryName (const QString &base) const |
KConfigGroup | getConfigGroup () const |
void | handleCustomContextMenuAction (QAction *action, const AlbumPointer< Album > &album) override |
void | keyPressEvent (QKeyEvent *event) override |
void | middleButtonPressed (Album *a) override |
void | mousePressEvent (QMouseEvent *e) override |
Other helper methods. More... | |
virtual QPixmap | pixmapForDrag (const QStyleOptionViewItem &option, QList< QModelIndex > indexes) |
void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override |
void | rowsInserted (const QModelIndex &parent, int start, int end) override |
void | setAlbumFilterModel (AlbumFilterModel *const filterModel) |
void | setAlbumModel (AbstractCountingAlbumModel *const model) |
void | setAlbumModel (AbstractSpecificAlbumModel *const model) |
void | setContexMenuItems (ContextMenuHelper &cmh, const QList< TAlbum * > &albums) override |
setContexMenuItems - Reimplemented method from TagsFolderView. Will set custom actions for Tags Manager. Some actions are also available in toolbar More... | |
virtual bool | showContextMenuAt (QContextMenuEvent *event, Album *albumForEvent) |
void | startDrag (Qt::DropActions supportedActions) override |
|
inherited |
|
inherited |
This enum defines the "depth" of the StateSavingObject::loadState() and StateSavingObject::saveState() methods.
Enumerator | |
---|---|
INSTANCE | Only the instance the saving / restoring was invoked on is saved / restored. |
DIRECT_CHILDREN | The instance itself and all direct children of this instance implementing StateSavingObject are saved / restored. |
RECURSIVE | The instance and all children in the complete hierarchy are saved / restored. |
|
explicit |
|
override |
|
slotinherited |
Adapt the column sizes to the contents of the tree view.
Referenced by Digikam::AbstractAlbumTreeView::AbstractAlbumTreeView(), and Digikam::AbstractAlbumTreeView::setAlbumFilterModel().
|
inherited |
|
overrideprotectedvirtualinherited |
Hook method to add custom actions to the generated context menu.
The default implementation adds actions to reset the tag icon and to find duplicates in a tag album. If you want to use these actions, remember to call this class' implementation of this method and the handleCustomContextMenuAction in your derived class.
cmh | helper object to create the context menu |
album | tag on which the context menu will be created. May be null if it is requested on no tag entry |
Reimplemented from Digikam::AbstractAlbumTreeView.
References Digikam::ContextMenuHelper::addAction(), Digikam::ContextMenuHelper::addActionDeleteFaceTag(), Digikam::ContextMenuHelper::addActionDeleteTag(), Digikam::ContextMenuHelper::addActionEditTag(), Digikam::ContextMenuHelper::addActionNewTag(), Digikam::ContextMenuHelper::addActionTagToFaceTag(), Digikam::ContextMenuHelper::addCreateTagFromAddressbookMenu(), Digikam::ContextMenuHelper::addExportMenu(), Digikam::ContextMenuHelper::addSeparator(), Digikam::Album::id(), Digikam::FaceTags::isPerson(), Digikam::Album::isRoot(), Digikam::FaceTags::isSystemPersonTagId(), Digikam::AbstractAlbumTreeView::slotCollapseAllNodes(), Digikam::AbstractAlbumTreeView::slotCollapseNode(), Digikam::AbstractAlbumTreeView::slotExpandNode(), and Digikam::TagTreeView::tagModificationHelper().
Referenced by Digikam::TagCheckView::addCustomContextMenuActions(), and Digikam::TagFolderView::setContexMenuItems().
|
inherited |
References Digikam::AbstractAlbumTreeView::m_albumFilterModel.
Referenced by Digikam::AbstractCheckableAlbumTreeView::checkableAlbumFilterModel(), Digikam::TagFolderView::contextMenuEvent(), Digikam::FuzzySearchView::FuzzySearchView(), Digikam::SearchTreeView::SearchTreeView(), Digikam::SearchTreeView::setAlbumFilterModel(), Digikam::TagTreeView::setAlbumFilterModel(), setAlbumFilterModel(), TagMngrTreeView(), and Digikam::TagTreeView::TagTreeView().
|
inherited |
|
inherited |
References Digikam::AbstractAlbumTreeView::m_albumModel.
Referenced by Digikam::TagCheckView::addCustomContextMenuActions(), Digikam::TagCheckView::getCheckedTags(), Digikam::TagCheckView::getPartiallyCheckedTags(), Digikam::TagFilterView::handleCustomContextMenuAction(), Digikam::TagTreeView::setAlbumModel(), Digikam::TagCheckView::slotResetCheckState(), and Digikam::TagCheckView::TagCheckView().
|
protectedslotinherited |
|
signalinherited |
Referenced by Digikam::TagTreeView::setAlbumModel().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
overrideprotected |
contextMenuEvent - Reimplement contextMenuEvent from AbstractAlbumTree to support multiple selection
event | context menu event triggered by right click |
Append root tag if no nodes are selected
References Digikam::TagTreeView::albumForIndex(), Digikam::AbstractAlbumTreeView::contextMenuIcon(), Digikam::TagFolderView::contextMenuTitle(), Digikam::ContextMenuHelper::exec(), Digikam::AbstractAlbumTreeView::selectedItems(), and setContexMenuItems().
|
protectedvirtualinherited |
Hook method that can be implemented to return a special icon used for the context menu.
References Digikam::AbstractAlbumTreeView::Private::contextMenuIcon.
Referenced by contextMenuEvent(), and Digikam::TagFolderView::contextMenuEvent().
|
overrideprotectedvirtualinherited |
Hook method to implement that returns the title for the context menu.
Reimplemented from Digikam::AbstractAlbumTreeView.
Referenced by contextMenuEvent(), and Digikam::TagFolderView::contextMenuEvent().
|
inherited |
currentAlbum - even if multiple selection is enabled current Album can be only one, the last clicked item if you need selected items, see selectedAlbums() It's NOT the same as AlbumManager::currentAlbums()
References Digikam::AlbumFilterModel::albumForIndex(), and Digikam::AbstractAlbumTreeView::m_albumFilterModel.
|
signalinherited |
Emitted when the currently selected album changes
Referenced by Digikam::AbstractAlbumTreeView::AbstractAlbumTreeView(), Digikam::AddTagsLineEdit::setTagTreeView(), and Digikam::AbstractAlbumTreeView::slotCurrentChanged().
|
inherited |
References Digikam::AlbumManager::currentAlbums(), and Digikam::AlbumManager::instance().
|
overridevirtualinherited |
Implements state loading for the album tree view in a somewhat clumsy procedure because the model may not be fully loaded when this method is called. Therefore the config is first parsed into d->statesByAlbumId which holds the state of all tree view entries indexed by album id. Afterwards an initial sync run is done restoring the state of all model entries that are already present at this time. Every processed entry is removed from d->statesByAlbumId. If there are still entries left in this map we assume that the model is not fully loaded at the moment. Therefore the rowsInserted signal is connected to a slot that restores the state of new rows based on the remaining entries in d->statesByAlbumId.
Reimplemented from Digikam::AbstractAlbumTreeView.
Reimplemented in Digikam::TagCheckView.
References Digikam::AbstractCheckableAlbumTreeView::checkableModel(), Digikam::AbstractAlbumTreeView::doLoadState(), Digikam::StateSavingObject::entryName(), Digikam::StateSavingObject::getConfigGroup(), and Digikam::AbstractAlbumTreeView::m_restoreCheckState.
Referenced by Digikam::TagCheckView::doLoadState().
|
overridevirtualinherited |
Implement this hook method for state saving. Use getConfigGroup() and entryName() for the implementation.
Reimplemented from Digikam::AbstractAlbumTreeView.
Reimplemented in Digikam::TagCheckView.
References Digikam::AbstractCheckableAlbumTreeView::checkableModel(), Digikam::AbstractCheckableAlbumModel::checkedAlbums(), Digikam::AbstractAlbumTreeView::doSaveState(), Digikam::StateSavingObject::entryName(), Digikam::StateSavingObject::getConfigGroup(), Digikam::Album::id(), Digikam::AbstractAlbumTreeView::m_restoreCheckState, and Digikam::AbstractCheckableAlbumModel::partiallyCheckedAlbums().
Referenced by Digikam::TagCheckView::doSaveState().
|
overrideprotectedinherited |
|
overrideprotectedinherited |
|
overrideprotectedinherited |
References Digikam::AlbumModelDragDropHandler::accepts(), Digikam::AbstractAlbumModel::dragDropHandler(), Digikam::AbstractAlbumTreeView::indexVisuallyAt(), Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AbstractAlbumTreeView::m_albumModel, and Digikam::AlbumFilterModel::mapToSourceAlbumModel().
|
overrideprotectedinherited |
References Digikam::AbstractAlbumModel::dragDropHandler(), Digikam::AlbumModelDragDropHandler::dropEvent(), Digikam::AbstractAlbumTreeView::indexVisuallyAt(), Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AbstractAlbumTreeView::m_albumModel, and Digikam::AlbumFilterModel::mapToSourceAlbumModel().
|
protectedinherited |
Always use this method to create config group entry names. This allows to manipulate the entry keys externally by eg. setting a prefix.
base | original name planned for the config group entry |
Referenced by Digikam::FilterSideBarWidget::doLoadState(), Digikam::AbstractAlbumTreeView::doLoadState(), Digikam::AbstractCheckableAlbumTreeView::doLoadState(), Digikam::LabelsTreeView::doLoadState(), Digikam::ImportItemPropertiesSideBarImport::doLoadState(), Digikam::ItemPropertiesSideBar::doLoadState(), Digikam::ItemPropertiesSideBarDB::doLoadState(), Digikam::TagCheckView::doLoadState(), Digikam::Sidebar::doLoadState(), Digikam::SearchTextBar::doLoadState(), ShowFoto::ShowfotoFolderViewSideBar::doLoadState(), ShowFoto::ShowfotoStackViewSideBar::doLoadState(), Digikam::FaceScanWidget::doLoadState(), Digikam::FuzzySearchView::doLoadState(), Digikam::GPSSearchView::doLoadState(), Digikam::FilterSideBarWidget::doSaveState(), Digikam::AbstractAlbumTreeView::doSaveState(), Digikam::AbstractCheckableAlbumTreeView::doSaveState(), Digikam::LabelsTreeView::doSaveState(), Digikam::ImportItemPropertiesSideBarImport::doSaveState(), Digikam::ItemPropertiesSideBar::doSaveState(), Digikam::ItemPropertiesSideBarDB::doSaveState(), Digikam::TagCheckView::doSaveState(), Digikam::Sidebar::doSaveState(), Digikam::SearchTextBar::doSaveState(), ShowFoto::ShowfotoFolderViewSideBar::doSaveState(), ShowFoto::ShowfotoStackViewSideBar::doSaveState(), Digikam::FaceScanWidget::doSaveState(), Digikam::FuzzySearchView::doSaveState(), and Digikam::GPSSearchView::doSaveState().
|
slotinherited |
Expands the complete tree under the given index.
index | the index to start expanding everything |
References Digikam::AbstractAlbumTreeView::albumFilterModel().
|
inherited |
Ensures that every current match is visible by expanding all parent entries.
index | the index to start ensuring expansion state |
true
if there was a match under index
. This return value can normally be ignored by the caller because it is only used for an internal recursion. References Digikam::AlbumFilterModel::ChildMatch, Digikam::AlbumFilterModel::DirectMatch, Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AlbumFilterModel::matchResult(), Digikam::AlbumFilterModel::NoMatch, Digikam::AlbumFilterModel::ParentMatch, and Digikam::AlbumFilterModel::SpecialMatch.
Referenced by Digikam::AbstractAlbumTreeView::slotSearchTextSettingsChanged().
|
inherited |
Contains only the tags filtered by properties - prefer to albumModel()
References Digikam::TagTreeView::m_filteredModel.
Referenced by Digikam::TagTreeView::setAlbumFilterModel(), setAlbumFilterModel(), and Digikam::TagFolderView::TagFolderView().
|
protectedinherited |
Returns the config group that must be used for state saving and loading.
Referenced by Digikam::AlbumFolderViewSideBarWidget::AlbumFolderViewSideBarWidget(), Digikam::DateFolderViewSideBarWidget::DateFolderViewSideBarWidget(), Digikam::FilterSideBarWidget::doLoadState(), Digikam::TagViewSideBarWidget::doLoadState(), Digikam::TimelineSideBarWidget::doLoadState(), Digikam::MapWidgetView::doLoadState(), Digikam::TableView::doLoadState(), Digikam::AbstractAlbumTreeView::doLoadState(), Digikam::AbstractCheckableAlbumTreeView::doLoadState(), Digikam::LabelsTreeView::doLoadState(), Digikam::ImportItemPropertiesSideBarImport::doLoadState(), Digikam::ItemPropertiesSideBar::doLoadState(), Digikam::ItemPropertiesSideBarDB::doLoadState(), Digikam::TagsManager::doLoadState(), Digikam::TagCheckView::doLoadState(), Digikam::Sidebar::doLoadState(), Digikam::SearchTextBar::doLoadState(), ShowFoto::ShowfotoFolderViewSideBar::doLoadState(), ShowFoto::ShowfotoStackViewSideBar::doLoadState(), Digikam::FaceScanWidget::doLoadState(), Digikam::FuzzySearchView::doLoadState(), Digikam::GPSSearchView::doLoadState(), Digikam::FilterSideBarWidget::doSaveState(), Digikam::TagViewSideBarWidget::doSaveState(), Digikam::TimelineSideBarWidget::doSaveState(), Digikam::MapWidgetView::doSaveState(), Digikam::TableView::doSaveState(), Digikam::AbstractAlbumTreeView::doSaveState(), Digikam::AbstractCheckableAlbumTreeView::doSaveState(), Digikam::LabelsTreeView::doSaveState(), Digikam::ImportItemPropertiesSideBarImport::doSaveState(), Digikam::ItemPropertiesSideBar::doSaveState(), Digikam::ItemPropertiesSideBarDB::doSaveState(), Digikam::TagsManager::doSaveState(), Digikam::TagCheckView::doSaveState(), Digikam::Sidebar::doSaveState(), Digikam::SearchTextBar::doSaveState(), ShowFoto::ShowfotoFolderViewSideBar::doSaveState(), ShowFoto::ShowfotoStackViewSideBar::doSaveState(), Digikam::FaceScanWidget::doSaveState(), Digikam::FuzzySearchView::doSaveState(), Digikam::GPSSearchView::doSaveState(), Digikam::FuzzySearchSideBarWidget::FuzzySearchSideBarWidget(), Digikam::GPSSearchSideBarWidget::GPSSearchSideBarWidget(), Digikam::LabelsSideBarWidget::LabelsSideBarWidget(), Digikam::PeopleSideBarWidget::PeopleSideBarWidget(), Digikam::SearchSideBarWidget::SearchSideBarWidget(), Digikam::TagsManager::setupUi(), Digikam::TagViewSideBarWidget::TagViewSideBarWidget(), and Digikam::TimelineSideBarWidget::TimelineSideBarWidget().
|
inline |
References m_tfilteredModel.
|
inherited |
Returns the depth used for state saving or loading. Default is StateSavingDepth::INSTANCE.
|
overrideprotectedvirtualinherited |
Hook method to handle the custom context menu actions that were added with addCustomContextMenuActions.
action | the action that was chosen by the user, may be null if none of the custom actions were selected |
album | the tag on which the context menu was requested. May be null if there was no |
Reimplemented from Digikam::AbstractAlbumTreeView.
References Digikam::AlbumManager::instance(), Digikam::TagTreeView::selectedTagAlbums(), Digikam::TagFolderView::signalFindDuplicates(), Digikam::TAlbum::standardIconName(), and Digikam::AlbumManager::updateTAlbumIcon().
Referenced by Digikam::TagFolderView::contextMenuEvent(), and Digikam::TagFilterView::handleCustomContextMenuAction().
|
inherited |
This is a combination of indexAt() checked with visualRect(). p must be in the viewport currently. Decoration will not be included. Suitable for mouse click positions.
Referenced by Digikam::AbstractAlbumTreeView::dragMoveEvent(), Digikam::AbstractAlbumTreeView::dropEvent(), and Digikam::AbstractAlbumTreeView::mousePressEvent().
|
inherited |
Tells if the check state is restored while loading / saving state.
References Digikam::AbstractAlbumTreeView::m_restoreCheckState.
Referenced by Digikam::TagFilterView::addCustomContextMenuActions().
|
overrideprotectedinherited |
|
inherited |
Invokes loading the class' state.
References Digikam::StateSavingObject::doLoadState().
Referenced by Digikam::FuzzySearchView::doLoadState(), Digikam::SearchTextBar::SearchTextBar(), ShowFoto::Showfoto::Showfoto(), and Digikam::TagsManager::TagsManager().
|
overrideprotectedvirtualinherited |
Reimplemented from Digikam::AbstractAlbumTreeView.
References Digikam::AbstractCheckableAlbumModel::checkState(), Digikam::AbstractCheckableAlbumModel::isCheckable(), Digikam::AbstractCheckableAlbumModel::isTristate(), Digikam::AbstractAlbumTreeView::m_albumModel, Digikam::AbstractCheckableAlbumModel::setCheckState(), and Digikam::AbstractCheckableAlbumModel::toggleChecked().
|
overrideprotectedinherited |
Other helper methods.
References Digikam::AlbumFilterModel::albumForIndex(), Digikam::AbstractAlbumTreeView::Private::expandNewCurrent, Digikam::AbstractAlbumTreeView::Private::expandOnSingleClick, Digikam::AbstractAlbumTreeView::indexVisuallyAt(), Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AbstractAlbumTreeView::m_checkOnMiddleClick, and Digikam::AbstractAlbumTreeView::middleButtonPressed().
|
protectedvirtualinherited |
TODO: Move to delegate, when we have one. Copy code from image delegate for creating icons when dragging multiple items
Referenced by Digikam::AbstractAlbumTreeView::startDrag().
|
inherited |
|
overrideprotectedinherited |
|
overrideprotectedinherited |
|
inherited |
Invokes saving the class' state.
References Digikam::StateSavingObject::doSaveState().
Referenced by Digikam::ImageWindow::closeEvent(), Digikam::FuzzySearchView::doSaveState(), Digikam::DateFolderView::~DateFolderView(), Digikam::SearchTextBar::~SearchTextBar(), Digikam::Sidebar::~Sidebar(), and Digikam::TagsManager::~TagsManager().
|
slotinherited |
Scrolls to the first selected album if there is one.
Referenced by Digikam::AbstractAlbumTreeView::doLoadState().
|
signalinherited |
Emitted when the current selection changes. Use currentChanged unless in multi-selection mode.
References Digikam::TagTreeView::m_filteredModel.
Referenced by Digikam::TagFolderView::handleCustomContextMenuAction(), and Digikam::TagFolderView::keyPressEvent().
selectedTags - return a list of all selected items in tag model
References Digikam::TagTreeView::m_filteredModel.
|
protectedinherited |
References Digikam::AbstractAlbumTreeView::setAlbumFilterModel().
Referenced by Digikam::AbstractCheckableAlbumTreeView::AbstractCheckableAlbumTreeView(), Digikam::AbstractCountingAlbumTreeView::AbstractCountingAlbumTreeView(), Digikam::DateTreeView::setAlbumFilterModel(), Digikam::AlbumTreeView::setAlbumFilterModel(), Digikam::SearchTreeView::setAlbumFilterModel(), and Digikam::TagTreeView::setAlbumFilterModel().
|
inherited |
References Digikam::AbstractCheckableAlbumTreeView::albumFilterModel(), Digikam::TagTreeView::filteredModel(), Digikam::TagTreeView::m_filteredModel, Digikam::AbstractCountingAlbumTreeView::setAlbumFilterModel(), and Digikam::CheckableAlbumFilterModel::setSourceFilterModel().
Referenced by Digikam::TagTreeViewSelectComboBox::setAlbumModels(), and Digikam::TagTreeView::TagTreeView().
void Digikam::TagMngrTreeView::setAlbumFilterModel | ( | TagsManagerFilterModel *const | filteredModel, |
CheckableAlbumFilterModel *const | filterModel | ||
) |
setAlbumFilterModel - reimplement from AbstractAlbumTree
References Digikam::AbstractCheckableAlbumTreeView::albumFilterModel(), Digikam::TagTreeView::filteredModel(), m_tfilteredModel, and Digikam::CheckableAlbumFilterModel::setSourceFilterModel().
Referenced by TagMngrTreeView().
|
inherited |
Some treeviews shall control the global current album kept by AlbumManager. Other treeview are self-contained and shall not change the current album. Default: false
References Digikam::AbstractAlbumTreeView::Private::setInAlbumManager.
Referenced by Digikam::FuzzySearchView::FuzzySearchView().
|
protectedinherited |
References Digikam::AbstractAlbumTreeView::m_flags, Digikam::AbstractAlbumTreeView::setAlbumModel(), and Digikam::AbstractAlbumTreeView::ShowCountAccordingToSettings.
Referenced by Digikam::AlbumTreeView::setAlbumModel(), Digikam::DateTreeView::setAlbumModel(), Digikam::SearchTreeView::setAlbumModel(), and Digikam::TagTreeView::setAlbumModel().
|
protectedinherited |
References Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AbstractAlbumTreeView::m_albumModel, Digikam::AbstractAlbumModel::rootAlbum(), Digikam::AlbumFilterModel::rootAlbumIndex(), Digikam::AlbumFilterModel::setSourceAlbumModel(), and Digikam::AbstractAlbumTreeView::slotRootAlbumAvailable().
Referenced by Digikam::AbstractCountingAlbumTreeView::setAlbumModel().
|
inherited |
References Digikam::TagTreeView::albumModel(), Digikam::TagTreeView::assignTags(), Digikam::AbstractAlbumModel::dragDropHandler(), Digikam::AbstractAlbumModel::IncludeRootAlbum, Digikam::FileActionMngr::instance(), Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AbstractAlbumTreeView::m_albumModel, Digikam::AbstractAlbumTreeView::m_dragDropHandler, Digikam::TagTreeView::m_filteredModel, Digikam::AbstractAlbumModel::rootAlbumBehavior(), Digikam::AlbumFilterModel::rootAlbumIndex(), Digikam::AbstractCountingAlbumTreeView::setAlbumModel(), Digikam::AbstractAlbumModel::setDragDropHandler(), and Digikam::TagPropertiesFilterModel::setSourceAlbumModel().
Referenced by Digikam::TagTreeViewSelectComboBox::setAlbumModels(), Digikam::TagFolderView::TagFolderView(), and Digikam::TagTreeView::TagTreeView().
|
inherited |
Enable checking on middle mouse button click (default: on)
References Digikam::AbstractAlbumTreeView::m_checkOnMiddleClick.
|
virtualinherited |
Sets a dedicated config group that will be used to store and reload the state from. If this method is not called, a group based on the object name is used.
You can re-implement this method to pass the group set here to child objects. Don't forget to call this method in your implementation.
group | config group to use for state saving and restoring |
Reimplemented in Digikam::GPSSearchView, Digikam::FuzzySearchView, Digikam::FilterSideBarWidget, and Digikam::DateFolderView.
Referenced by Digikam::ImageWindow::closeEvent(), Digikam::DateFolderView::setConfigGroup(), Digikam::FilterSideBarWidget::setConfigGroup(), Digikam::FuzzySearchView::setConfigGroup(), and Digikam::GPSSearchView::setConfigGroup().
|
overrideprotectedvirtual |
setContexMenuItems - Reimplemented method from TagsFolderView. Will set custom actions for Tags Manager. Some actions are also available in toolbar
chm | - ContextMenuHelper class to help setting some basic actions |
albums | - List of currently selected albums |
This is a dummy action, delete is disable for root tag
Reimplemented from Digikam::TagFolderView.
References Digikam::ContextMenuHelper::addAction(), Digikam::ContextMenuHelper::addActionDeleteTags(), Digikam::ContextMenuHelper::addActionNewTag(), Digikam::ContextMenuHelper::addSeparator(), Digikam::Album::isRoot(), Digikam::AbstractAlbumTreeView::slotCollapseAllNodes(), Digikam::AbstractAlbumTreeView::slotExpandNode(), and Digikam::TagTreeView::tagModificationHelper().
Referenced by contextMenuEvent().
|
inherited |
Set the context menu title and icon. This is used by the default implementation of contextMenuIcon() and contextMenuTitle(). You can alternatively reimplement these methods.
References Digikam::AbstractAlbumTreeView::Private::contextMenuIcon.
|
inherited |
|
slotinherited |
|
slotinherited |
References Digikam::AbstractAlbumTreeView::setCurrentAlbums().
Referenced by Digikam::TagTreeView::setCurrentAlbum(), and Digikam::AddTagsComboBox::setCurrentTag().
|
inherited |
Determines the global decision to show a popup menu or not. More detailed decision at which position a menu can be shown and where not can be made by implementing showContextMenuAt.
enable | if true, a context menu can be shown |
References Digikam::AbstractAlbumTreeView::Private::enableContextMenu.
Referenced by Digikam::AbstractAlbumTreeViewSelectComboBox::addCheckUncheckContextMenuActions(), Digikam::AlbumSelectionTreeView::AlbumSelectionTreeView(), Digikam::EditableSearchTreeView::EditableSearchTreeView(), and Digikam::TagFolderView::TagFolderView().
|
virtualinherited |
Define a prefix that will be used for every entry in the config group. The default prefix is empty.
You can re-implement this method to pass the prefix set here to child objects. Don't forget to call this method in your implementation.
prefix | the prefix to use for the config entries |
References prefix.
|
inherited |
Expand an item when making it the new current item
References Digikam::AbstractAlbumTreeView::Private::expandNewCurrent.
|
inherited |
Enable expanding of tree items on single click on the item (default: off)
References Digikam::AbstractAlbumTreeView::Private::expandOnSingleClick.
Referenced by Digikam::TagCheckView::TagCheckView().
|
inherited |
Set whether to restore check state or not.
restore | if true, restore check state |
References Digikam::AbstractAlbumTreeView::m_restoreCheckState.
Referenced by Digikam::TagFilterView::handleCustomContextMenuAction().
|
slotinherited |
|
inherited |
Sets whether to select an album on click via the album manager or not.
selectOnClick | if true, a click on an item automatically sets this item as the current album in the album manager |
References Digikam::AbstractAlbumTreeView::Private::selectAlbumOnClick.
Referenced by Digikam::AlbumSelectionTreeView::AlbumSelectionTreeView(), Digikam::EditableSearchTreeView::EditableSearchTreeView(), Digikam::TagCheckView::TagCheckView(), Digikam::TagFolderView::TagFolderView(), and TagMngrTreeView().
|
inherited |
Sets whether to select the album under the mouse cursor on a context menu request (so that the album is shown using the album manager) or not
Defaults to true.
select | true if a context menu request shall select the album |
References Digikam::AbstractAlbumTreeView::Private::selectOnContextMenu.
Referenced by Digikam::TagCheckView::TagCheckView().
|
inherited |
Define whether to show the "Delete People Tags" action in context menus or not.
show | if true the action to delete people tags in the tag album is displayed |
|
inherited |
Define whether to show the "find duplicate" action in context menus or not.
show | if true the action to find duplicate images in the tag album is displayed |
Referenced by Digikam::TagCheckView::TagCheckView().
|
inherited |
Sets the depth used for state saving or loading.
depth | new depth to use |
|
protectedvirtualinherited |
Hook method to implement that determines if a context menu shall be displayed for the given event at the position coded in the event.
event | context menu event to react on |
albumForEvent | the album at the mouse position or null if there is no album at that position |
Referenced by Digikam::TagFolderView::contextMenuEvent().
|
signalinherited |
Referenced by Digikam::TagFolderView::handleCustomContextMenuAction().
|
slotinherited |
slotCollapseAllNodes - collapse all nodes without root node
References Digikam::AbstractAlbumTreeView::m_albumFilterModel, and Digikam::AlbumFilterModel::rootAlbumIndex().
Referenced by Digikam::TagFolderView::addCustomContextMenuActions(), Digikam::AlbumSelectionTreeView::AlbumSelectionTreeView(), and setContexMenuItems().
|
slotinherited |
slotCollapseNode - collapse recursively selected nodes
Referenced by Digikam::TagFolderView::addCustomContextMenuActions(), Digikam::AlbumSelectionTreeView::AlbumSelectionTreeView(), and Digikam::TagFolderView::setContexMenuItems().
|
protectedslotinherited |
|
slotinherited |
slotExpandNode - expands recursively selected nodes
Referenced by Digikam::TagFolderView::addCustomContextMenuActions(), Digikam::AlbumSelectionTreeView::AlbumSelectionTreeView(), Digikam::TagFolderView::setContexMenuItems(), and setContexMenuItems().
|
protectedvirtualslotinherited |
override if implemented behavior is not as intended
References Digikam::AbstractAlbumTreeView::m_albumFilterModel, and Digikam::AlbumFilterModel::rootAlbumIndex().
Referenced by Digikam::AbstractAlbumTreeView::setAlbumModel().
|
protectedslotinherited |
|
protectedslotinherited |
References Digikam::AbstractAlbumTreeView::expandMatches(), Digikam::AlbumFilterModel::indexForAlbum(), Digikam::AbstractAlbumTreeView::Private::lastSelectedAlbum, Digikam::AbstractAlbumTreeView::m_albumFilterModel, Digikam::AbstractAlbumTreeView::Private::searchBackup, and Digikam::AbstractAlbumTreeView::setCurrentAlbums().
Referenced by Digikam::AbstractAlbumTreeView::setAlbumFilterModel().
|
protectedslotinherited |
|
overrideprotectedinherited |
|
inherited |
References Digikam::TagTreeView::m_modificationHelper.
Referenced by Digikam::TagFolderView::addCustomContextMenuActions(), Digikam::TagFolderView::keyPressEvent(), Digikam::TagCheckView::setCheckNewTags(), Digikam::TagFolderView::setContexMenuItems(), setContexMenuItems(), and Digikam::TagFilterView::TagFilterView().
|
overrideinherited |
For internal use only.
Referenced by Digikam::AbstractAlbumTreeViewSelectComboBox::sendViewportEventToView().
|
protectedinherited |
Referenced by Digikam::AbstractAlbumTreeView::albumFilterModel(), Digikam::AbstractCheckableAlbumTreeView::albumFilterModel(), Digikam::AlbumTreeView::albumForIndex(), Digikam::DateTreeView::albumForIndex(), Digikam::TagTreeView::albumForIndex(), Digikam::AlbumTreeView::currentAlbum(), Digikam::DateTreeView::currentAlbum(), Digikam::SearchTreeView::currentAlbum(), Digikam::TagTreeView::currentAlbum(), Digikam::AbstractAlbumTreeView::dragMoveEvent(), Digikam::AbstractAlbumTreeView::dropEvent(), Digikam::AbstractAlbumTreeView::expandMatches(), Digikam::AbstractAlbumTreeView::mousePressEvent(), Digikam::AbstractCountingAlbumTreeView::rowsInserted(), Digikam::AbstractAlbumTreeView::selectedItems(), Digikam::AbstractAlbumTreeView::setAlbumFilterModel(), Digikam::AbstractAlbumTreeView::setAlbumModel(), Digikam::TagTreeView::setAlbumModel(), Digikam::AbstractAlbumTreeView::setSearchTextSettings(), Digikam::AbstractAlbumTreeView::slotCollapseAllNodes(), Digikam::AbstractAlbumTreeView::slotCurrentChanged(), Digikam::AbstractAlbumTreeView::slotRootAlbumAvailable(), Digikam::AbstractAlbumTreeView::slotSearchTextSettingsAboutToChange(), Digikam::AbstractAlbumTreeView::slotSearchTextSettingsChanged(), Digikam::AbstractAlbumTreeView::slotSelectionChanged(), and Digikam::AbstractAlbumTreeView::startDrag().
|
protectedinherited |
Referenced by Digikam::AbstractAlbumTreeView::albumModel(), Digikam::AbstractCheckableAlbumTreeView::albumModel(), Digikam::AlbumTreeView::albumModel(), Digikam::DateTreeView::albumModel(), Digikam::SearchTreeView::albumModel(), Digikam::TagTreeView::albumModel(), Digikam::AbstractAlbumTreeView::dragEnterEvent(), Digikam::AbstractAlbumTreeView::dragMoveEvent(), Digikam::AbstractAlbumTreeView::dropEvent(), Digikam::AbstractCheckableAlbumTreeView::middleButtonPressed(), Digikam::AbstractAlbumTreeView::setAlbumFilterModel(), Digikam::AbstractAlbumTreeView::setAlbumModel(), Digikam::AlbumTreeView::setAlbumModel(), and Digikam::TagTreeView::setAlbumModel().
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::AlbumTreeView::setAlbumModel(), and Digikam::TagTreeView::setAlbumModel().
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::AbstractCountingAlbumTreeView::setAlbumModel().
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::TagTreeView::tagModificationHelper(), and Digikam::TagTreeView::TagTreeView().
|
protectedinherited |
Referenced by Digikam::AbstractCheckableAlbumTreeView::AbstractCheckableAlbumTreeView(), Digikam::AbstractCheckableAlbumTreeView::doLoadState(), Digikam::AbstractCheckableAlbumTreeView::doSaveState(), Digikam::AbstractCheckableAlbumTreeView::isRestoreCheckState(), and Digikam::AbstractCheckableAlbumTreeView::setRestoreCheckState().
|
protected |
Referenced by getFilterModel(), and setAlbumFilterModel().