digiKam
|
Classes | |
class | Private |
Public Types | |
enum | StateSavingDepth { INSTANCE , DIRECT_CHILDREN , RECURSIVE } |
Public Member Functions | |
FaceScanWidget (QWidget *const parent=nullptr) | |
StateSavingDepth | getStateSavingDepth () const |
void | loadState () |
void | saveState () |
virtual void | setConfigGroup (const KConfigGroup &group) |
virtual void | setEntryPrefix (const QString &prefix) |
void | setStateSavingDepth (const StateSavingDepth depth) |
FaceScanSettings | settings () const |
bool | settingsConflicted () const |
~FaceScanWidget () override | |
Protected Member Functions | |
void | doLoadState () override |
void | doSaveState () 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::FaceScanWidget::Private::configName.
|
override |
|
overrideprotectedvirtual |
Implement this hook method for state loading. Use getConfigGroup() and entryName() for the implementation.
Implements Digikam::StateSavingObject.
References Digikam::FaceScanWidget::Private::accuracyInput, Digikam::FaceScanWidget::Private::albumSelectors, Digikam::FaceScanWidget::Private::alreadyScannedBox, Digikam::FaceScanWidget::Private::configAlreadyScannedHandling, Digikam::FaceScanWidget::Private::configMainTask, Digikam::FaceScanWidget::Private::configUseFullCpu, Digikam::FaceScanWidget::Private::configValueDetect, Digikam::FaceScanWidget::Private::configValueDetectAndRecognize, Digikam::FaceScanWidget::Private::configValueRecognizedMarkedFaces, Digikam::FaceScanWidget::Private::detectAndRecognizeButton, Digikam::FaceScanWidget::Private::detectButton, Digikam::StateSavingObject::entryName(), Digikam::StateSavingObject::getConfigGroup(), Digikam::ApplicationSettings::instance(), Digikam::AlbumSelectors::loadState(), Digikam::FaceScanSettings::Merge, Digikam::FaceScanWidget::Private::reRecognizeButton, Digikam::FaceScanSettings::Rescan, Digikam::DIntNumInput::setValue(), Digikam::FaceScanSettings::Skip, Digikam::FaceScanWidget::Private::useFullCpuButton, and Digikam::FaceScanWidget::Private::useYoloV3Button.
|
overrideprotectedvirtual |
Implement this hook method for state saving. Use getConfigGroup() and entryName() for the implementation.
Implements Digikam::StateSavingObject.
References Digikam::FaceScanWidget::Private::accuracyInput, Digikam::FaceScanWidget::Private::albumSelectors, Digikam::FaceScanWidget::Private::alreadyScannedBox, Digikam::FaceScanWidget::Private::configAlreadyScannedHandling, Digikam::FaceScanWidget::Private::configMainTask, Digikam::FaceScanWidget::Private::configUseFullCpu, Digikam::FaceScanWidget::Private::configValueDetect, Digikam::FaceScanWidget::Private::configValueDetectAndRecognize, Digikam::FaceScanWidget::Private::configValueRecognizedMarkedFaces, Digikam::FaceScanWidget::Private::detectAndRecognizeButton, Digikam::FaceScanWidget::Private::detectButton, Digikam::StateSavingObject::entryName(), Digikam::StateSavingObject::getConfigGroup(), Digikam::ApplicationSettings::instance(), Digikam::FaceScanSettings::Merge, Digikam::FaceScanSettings::Rescan, Digikam::AlbumSelectors::saveState(), Digikam::ApplicationSettings::setFaceDetectionAccuracy(), Digikam::ApplicationSettings::setFaceDetectionYoloV3(), Digikam::FaceScanSettings::Skip, Digikam::FaceScanWidget::Private::useFullCpuButton, Digikam::FaceScanWidget::Private::useYoloV3Button, and Digikam::DIntNumInput::value().
|
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(), 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(), doSaveState(), Digikam::FuzzySearchView::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(), 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(), 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.
|
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().
|
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().
|
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().
|
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 |
Sets the depth used for state saving or loading.
depth | new depth to use |
FaceScanSettings Digikam::FaceScanWidget::settings | ( | ) | const |
References Digikam::FaceScanSettings::accuracy, Digikam::FaceScanWidget::Private::accuracyInput, Digikam::FaceScanSettings::albums, Digikam::FaceScanWidget::Private::albumSelectors, Digikam::FaceScanWidget::Private::alreadyScannedBox, Digikam::FaceScanSettings::alreadyScannedHandling, Digikam::FaceDbAccess::db(), Digikam::FaceScanSettings::Detect, Digikam::FaceScanSettings::DetectAndRecognize, Digikam::FaceScanWidget::Private::detectAndRecognizeButton, Digikam::FaceScanWidget::Private::detectButton, Digikam::FaceDb::getNumberOfIdentities(), Digikam::FaceScanSettings::RecognizeMarkedFaces, Digikam::AlbumSelectors::selectedAlbumsAndTags(), Digikam::FaceScanWidget::Private::settingsConflicted, Digikam::FaceScanSettings::task, Digikam::FaceScanSettings::useFullCpu, Digikam::FaceScanWidget::Private::useFullCpuButton, Digikam::FaceScanSettings::useYoloV3, Digikam::FaceScanWidget::Private::useYoloV3Button, Digikam::DIntNumInput::value(), Digikam::FaceScanSettings::wholeAlbums, and Digikam::AlbumSelectors::wholeAlbumsChecked().
bool Digikam::FaceScanWidget::settingsConflicted | ( | ) | const |