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 searchId, bool selectInAlbumManager=true) |
void | setCurrentAlbums (const QList< Album * > &albums, 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 | currentAlbumChanged (Album *currentAlbum) |
void | selectedAlbumsChanged (const QList< Album * > &selectedAlbums) |
Public Member Functions | |
void | addContextMenuElement (ContextMenuElement *const element) |
CheckableAlbumFilterModel * | albumFilterModel () const |
SearchModel * | albumModel () const |
Note: not filtered by search type. More... | |
CheckableAlbumFilterModel * | checkableAlbumFilterModel () const |
AbstractCheckableAlbumModel * | checkableModel () const |
QList< ContextMenuElement * > | contextMenuElements () const |
SAlbum * | currentAlbum () const |
template<class A > | |
QList< A * > | currentAlbums () |
void | doLoadState () override |
void | doSaveState () override |
EditableSearchTreeView (QWidget *const parent, SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper) | |
bool | expandMatches (const QModelIndex &index) |
SearchFilterModel * | filteredModel () const |
Contains only the searches with appropriate type - prefer to albumModel() More... | |
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... | |
void | setAlbumFilterModel (SearchFilterModel *const filteredModel, CheckableAlbumFilterModel *const model) |
void | setAlbumManagerCurrentAlbum (const bool setCurrentAlbum) |
void | setAlbumModel (SearchModel *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 | setStateSavingDepth (const StateSavingDepth depth) |
bool | viewportEvent (QEvent *event) override |
~EditableSearchTreeView () 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 |
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 | 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) |
virtual bool | showContextMenuAt (QContextMenuEvent *event, Album *albumForEvent) |
void | startDrag (Qt::DropActions supportedActions) override |
Protected Attributes | |
AlbumFilterModel * | m_albumFilterModel |
AbstractSpecificAlbumModel * | m_albumModel |
bool | m_checkOnMiddleClick |
AlbumModelDragDropHandler * | m_dragDropHandler |
SearchFilterModel * | m_filteredModel |
Flags | m_flags |
int | m_lastScrollBarValue |
bool | m_restoreCheckState |
This tree view for searches adds basic editing functionality via the context menu. This is in detail deleting and renaming existing searches.
|
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. |
Digikam::EditableSearchTreeView::EditableSearchTreeView | ( | QWidget *const | parent, |
SearchModel *const | searchModel, | ||
SearchModificationHelper *const | searchModificationHelper | ||
) |
Constructor.
parent | qt parent |
searchModel | the model this view should act on |
searchModificationHelper | the modification helper object used to perform operations on the displayed searches |
References Digikam::SearchTreeView::setAlbumModel(), Digikam::AbstractAlbumTreeView::setEnableContextMenu(), and Digikam::AbstractAlbumTreeView::setSelectAlbumOnClick().
|
override |
Destructor.
|
slotinherited |
Adapt the column sizes to the contents of the tree view.
Referenced by Digikam::AbstractAlbumTreeView::AbstractAlbumTreeView(), and Digikam::AbstractAlbumTreeView::setAlbumFilterModel().
|
inherited |
|
overrideprotectedvirtual |
Adds actions to delete or rename existing searches.
Reimplemented from Digikam::AbstractAlbumTreeView.
Reimplemented in Digikam::NormalSearchTreeView.
References Digikam::ContextMenuHelper::addAction(), and Digikam::SAlbum::isTemporarySearch().
Referenced by Digikam::NormalSearchTreeView::addCustomContextMenuActions().
|
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(), Digikam::TagMngrTreeView::setAlbumFilterModel(), Digikam::TagMngrTreeView::TagMngrTreeView(), and Digikam::TagTreeView::TagTreeView().
|
inherited |
Note: not filtered by search type.
References Digikam::AbstractAlbumTreeView::m_albumModel.
|
protectedslotinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
protectedvirtualinherited |
Hook method that can be implemented to return a special icon used for the context menu.
References Digikam::AbstractAlbumTreeView::Private::contextMenuIcon.
Referenced by Digikam::TagMngrTreeView::contextMenuEvent(), and Digikam::TagFolderView::contextMenuEvent().
|
overrideprotectedvirtual |
implemented hook methods for context menus.
Reimplemented from Digikam::AbstractAlbumTreeView.
|
inherited |
References Digikam::AlbumFilterModel::albumForIndex(), and Digikam::AbstractAlbumTreeView::m_albumFilterModel.
Referenced by Digikam::FuzzySearchView::currentAlbum().
|
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 searches with appropriate type - prefer to albumModel()
References Digikam::SearchTreeView::m_filteredModel.
Referenced by Digikam::FuzzySearchView::FuzzySearchView(), and Digikam::SearchTreeView::setAlbumFilterModel().
|
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().
|
inherited |
Returns the depth used for state saving or loading. Default is StateSavingDepth::INSTANCE.
|
overrideprotectedvirtual |
Handles deletion and renaming actions.
Reimplemented from Digikam::AbstractAlbumTreeView.
Reimplemented in Digikam::NormalSearchTreeView.
Referenced by Digikam::NormalSearchTreeView::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().
|
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.
|
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::SearchTreeView::filteredModel(), Digikam::SearchTreeView::m_filteredModel, Digikam::AbstractCountingAlbumTreeView::setAlbumFilterModel(), and Digikam::CheckableAlbumFilterModel::setSourceFilterModel().
Referenced by Digikam::SearchTreeView::SearchTreeView().
|
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 |
|
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().
|
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 |
|
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(), 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(), EditableSearchTreeView(), Digikam::TagCheckView::TagCheckView(), Digikam::TagFolderView::TagFolderView(), and Digikam::TagMngrTreeView::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 |
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().
|
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 Digikam::TagMngrTreeView::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 Digikam::TagMngrTreeView::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 |
|
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::AbstractCheckableAlbumTreeView::AbstractCheckableAlbumTreeView(), Digikam::AbstractCheckableAlbumTreeView::doLoadState(), Digikam::AbstractCheckableAlbumTreeView::doSaveState(), Digikam::AbstractCheckableAlbumTreeView::isRestoreCheckState(), and Digikam::AbstractCheckableAlbumTreeView::setRestoreCheckState().