digiKam
|
Classes | |
class | Private |
Public Types | |
enum | StateSavingDepth { INSTANCE , DIRECT_CHILDREN , RECURSIVE } |
Signals | |
void | signalNotificationError (const QString &message, int type) |
Public Member Functions | |
SAlbum * | currentAlbum () const |
void | doLoadState () override |
void | doSaveState () override |
FuzzySearchView (SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper, QWidget *const parent=nullptr) | |
StateSavingDepth | getStateSavingDepth () const |
void | loadState () |
void | newDuplicatesSearch (const QList< PAlbum * > &albums) |
void | newDuplicatesSearch (const QList< TAlbum * > &albums) |
void | saveState () |
void | setActive (bool val) |
void | setConfigGroup (const KConfigGroup &group) override |
void | setCurrentAlbum (SAlbum *const album) |
virtual void | setEntryPrefix (const QString &prefix) |
void | setItemInfo (const ItemInfo &info) |
void | setStateSavingDepth (const StateSavingDepth depth) |
~FuzzySearchView () override | |
Protected Member Functions | |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dragMoveEvent (QDragMoveEvent *e) override |
void | dropEvent (QDropEvent *e) override |
QString | entryName (const QString &base) const |
KConfigGroup | getConfigGroup () const |
|
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 |
References Digikam::AbstractCheckableAlbumTreeView::albumFilterModel(), Digikam::AbstractAlbumModel::AlbumIdRole, Digikam::AbstractAlbumModel::AlbumTitleRole, Digikam::ThumbnailLoadThread::defaultThread(), Digikam::FuzzySearchView::Private::DUPLICATES, Digikam::SearchTreeView::filteredModel(), Digikam::FuzzySearchView::Private::findDuplicatesPanel, Digikam::FuzzySearchView::Private::folderView, Digikam::ApplicationSettings::instance(), Digikam::SearchFilterModel::listHaarSearches(), Digikam::FuzzySearchView::Private::searchFuzzyBar, Digikam::FuzzySearchView::Private::searchModel, Digikam::FuzzySearchView::Private::searchModificationHelper, Digikam::FuzzySearchView::Private::searchTreeView, Digikam::AbstractAlbumTreeView::setAlbumManagerCurrentAlbum(), Digikam::DHBox::setContentsMargins(), Digikam::SearchTextBarDb::setFilterModel(), Digikam::SearchFilterModel::setListTemporarySearches(), Digikam::SearchTextBarDb::setModel(), Digikam::DHBox::setSpacing(), Digikam::FuzzySearchView::Private::settings, Digikam::FuzzySearchView::Private::SIMILARS, Digikam::FuzzySearchView::Private::SKETCH, Digikam::FuzzySearchView::Private::tabWidget, Digikam::FuzzySearchView::Private::thumbLoadThread, Digikam::FuzzySearchView::Private::timerImage, and Digikam::FuzzySearchView::Private::timerSketch.
|
override |
SAlbum * Digikam::FuzzySearchView::currentAlbum | ( | ) | const |
|
overridevirtual |
Implement this hook method for state loading. Use getConfigGroup() and entryName() for the implementation.
Implements Digikam::StateSavingObject.
References Digikam::FuzzySearchView::Private::configPenSketchHueEntry, Digikam::FuzzySearchView::Private::configPenSketchSaturationEntry, Digikam::FuzzySearchView::Private::configPenSketchSizeEntry, Digikam::FuzzySearchView::Private::configPenSkethValueEntry, Digikam::FuzzySearchView::Private::configResultSketchItemsEntry, Digikam::FuzzySearchView::Private::configSimilarsMaxThresholdEntry, Digikam::FuzzySearchView::Private::configSimilarsThresholdEntry, Digikam::FuzzySearchView::Private::configTabEntry, Digikam::FuzzySearchView::Private::DUPLICATES, Digikam::StateSavingObject::entryName(), Digikam::FuzzySearchView::Private::fuzzySearchAlbumSelectors, Digikam::StateSavingObject::getConfigGroup(), Digikam::FuzzySearchView::Private::hsSelector, Digikam::DHueSaturationSelector::hue(), Digikam::AlbumSelectors::loadState(), Digikam::StateSavingObject::loadState(), Digikam::FuzzySearchView::Private::penSize, Digikam::FuzzySearchView::Private::resultsSketch, Digikam::DHueSaturationSelector::saturation(), Digikam::FuzzySearchView::Private::searchTreeView, Digikam::DHueSaturationSelector::setHue(), Digikam::DIntRangeBox::setInterval(), Digikam::SketchWidget::setPenWidth(), Digikam::DHueSaturationSelector::setSaturation(), Digikam::FuzzySearchView::Private::similarityRange, Digikam::FuzzySearchView::Private::sketchSearchAlbumSelectors, Digikam::FuzzySearchView::Private::sketchWidget, Digikam::FuzzySearchView::Private::tabWidget, Digikam::DHueSaturationSelector::updateContents(), Digikam::DSelector::value, and Digikam::FuzzySearchView::Private::vSelector.
|
overridevirtual |
Implement this hook method for state saving. Use getConfigGroup() and entryName() for the implementation.
Implements Digikam::StateSavingObject.
References Digikam::FuzzySearchView::Private::configPenSketchHueEntry, Digikam::FuzzySearchView::Private::configPenSketchSaturationEntry, Digikam::FuzzySearchView::Private::configPenSketchSizeEntry, Digikam::FuzzySearchView::Private::configPenSkethValueEntry, Digikam::FuzzySearchView::Private::configResultSketchItemsEntry, Digikam::FuzzySearchView::Private::configSimilarsMaxThresholdEntry, Digikam::FuzzySearchView::Private::configSimilarsThresholdEntry, Digikam::FuzzySearchView::Private::configTabEntry, Digikam::StateSavingObject::entryName(), Digikam::FuzzySearchView::Private::fuzzySearchAlbumSelectors, Digikam::StateSavingObject::getConfigGroup(), Digikam::FuzzySearchView::Private::hsSelector, Digikam::DHueSaturationSelector::hue(), Digikam::DIntRangeBox::maxValue(), Digikam::DIntRangeBox::minValue(), Digikam::FuzzySearchView::Private::penSize, Digikam::FuzzySearchView::Private::resultsSketch, Digikam::DHueSaturationSelector::saturation(), Digikam::AlbumSelectors::saveState(), Digikam::StateSavingObject::saveState(), Digikam::FuzzySearchView::Private::searchTreeView, Digikam::FuzzySearchView::Private::similarityRange, Digikam::FuzzySearchView::Private::sketchSearchAlbumSelectors, Digikam::FuzzySearchView::Private::tabWidget, Digikam::DSelector::value, and Digikam::FuzzySearchView::Private::vSelector.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
References Digikam::DItemDrag::canDecode(), Digikam::AlbumManager::clearCurrentAlbums(), Digikam::SearchModificationHelper::createFuzzySearchFromDropped(), Digikam::DItemDrag::decode(), Digikam::FuzzySearchView::Private::fuzzySearchAlbumSelectors, Digikam::SAlbum::getTemporaryHaarTitle(), Digikam::DatabaseSearch::HaarImageSearch, Digikam::FuzzySearchView::Private::imageInfo, Digikam::FuzzySearchView::Private::imageSAlbum, Digikam::FuzzySearchView::Private::imageUrl, Digikam::FuzzySearchView::Private::imageWidget, Digikam::AlbumManager::instance(), Digikam::FuzzySearchView::Private::labelFile, Digikam::FuzzySearchView::Private::labelFolder, Digikam::HaarIface::loadQImage(), Digikam::DIntRangeBox::maxValue(), Digikam::DIntRangeBox::minValue(), Digikam::FuzzySearchView::Private::searchModificationHelper, Digikam::FuzzySearchView::Private::searchTreeView, Digikam::AlbumSelectors::selectedAlbumIds(), Digikam::DAdjustableLabel::setAdjustedText(), Digikam::SearchTreeView::setCurrentAlbums(), setItemInfo(), and Digikam::FuzzySearchView::Private::similarityRange.
|
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(), 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(), doSaveState(), and Digikam::GPSSearchView::doSaveState().
|
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(), 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(), 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.
|
inherited |
Invokes loading the class' state.
References Digikam::StateSavingObject::doLoadState().
Referenced by doLoadState(), Digikam::SearchTextBar::SearchTextBar(), ShowFoto::Showfoto::Showfoto(), and Digikam::TagsManager::TagsManager().
|
inherited |
Invokes saving the class' state.
References Digikam::StateSavingObject::doSaveState().
Referenced by Digikam::ImageWindow::closeEvent(), doSaveState(), Digikam::DateFolderView::~DateFolderView(), Digikam::SearchTextBar::~SearchTextBar(), Digikam::Sidebar::~Sidebar(), and Digikam::TagsManager::~TagsManager().
void Digikam::FuzzySearchView::setActive | ( | bool | val | ) |
|
overridevirtual |
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 from Digikam::StateSavingObject.
References Digikam::FuzzySearchView::Private::searchTreeView, and Digikam::StateSavingObject::setConfigGroup().
void Digikam::FuzzySearchView::setCurrentAlbum | ( | SAlbum *const | album | ) |
|
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.
void Digikam::FuzzySearchView::setItemInfo | ( | const ItemInfo & | info | ) |
|
inherited |
Sets the depth used for state saving or loading.
depth | new depth to use |
|
signal |
Referenced by setActive().