![]() |
digiKam
|
#include <filtersidebarwidget.h>
Public Types | |
enum | StateSavingDepth { INSTANCE , DIRECT_CHILDREN , RECURSIVE } |
Public Slots | |
void | slotFilterMatchesForText (bool) |
void | slotResetFilters () |
Signals | |
void | signalGeolocationFilterChanged (ItemFilterSettings::GeolocationCondition) |
void | signalMimeTypeFilterChanged (int) |
void | signalRatingFilterChanged (int, ItemFilterSettings::RatingCondition, bool) |
void | signalSearchTextFilterChanged (const SearchTextFilterSettings &) |
void | signalTagFilterChanged (const QList< int > &includedTags, const QList< int > &excludedTags, ItemFilterSettings::MatchingCondition matchingCond, bool showUnTagged, const QList< int > &clTagIds, const QList< int > &plTagIds) |
Public Member Functions | |
void | doLoadState () override |
void | doSaveState () override |
FilterSideBarWidget (QWidget *const parent, TagModel *const tagFilterModel) | |
StateSavingDepth | getStateSavingDepth () const |
void | loadState () |
QSize | minimumSizeHint () const override |
void | saveState () |
void | setConfigGroup (const KConfigGroup &group) override |
void | setContentsMargins (const QMargins &margins) |
void | setContentsMargins (int left, int top, int right, int bottom) |
virtual void | setEntryPrefix (const QString &prefix) |
void | setFocusToTextFilter () |
void | setSpacing (int space) |
void | setStateSavingDepth (const StateSavingDepth depth) |
void | setStretchFactor (QWidget *const widget, int stretch) |
QSize | sizeHint () const override |
~FilterSideBarWidget () override | |
Protected Member Functions | |
void | childEvent (QChildEvent *e) override |
QString | entryName (const QString &base) const |
KConfigGroup | getConfigGroup () const |
Sidebar widget containing the all filter widgets.
|
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 |
Constructor.
parent | the parent for qt parent child mechanism |
tagFilterModel | tag model to work on |
References Digikam::AbstractAlbumModel::AlbumIdRole, Digikam::AbstractAlbumModel::AlbumTitleRole, Digikam::TagPropertyName::person(), signalGeolocationFilterChanged(), signalMimeTypeFilterChanged(), signalRatingFilterChanged(), signalSearchTextFilterChanged(), and Digikam::AlbumFilterModel::StrictFiltering.
|
override |
Destructor.
|
overrideprotectedinherited |
|
overridevirtual |
Implement this hook method for state loading. Use getConfigGroup() and entryName() for the implementation.
Implements Digikam::StateSavingObject.
References Digikam::SearchTextFilterSettings::All, Digikam::StateSavingObject::entryName(), Digikam::StateSavingObject::getConfigGroup(), Digikam::ApplicationSettings::instance(), and Digikam::ItemFilterSettings::OrCondition.
|
overridevirtual |
Implement this hook method for state saving. Use getConfigGroup() and entryName() for the implementation.
Implements Digikam::StateSavingObject.
References Digikam::StateSavingObject::entryName(), Digikam::StateSavingObject::getConfigGroup(), Digikam::ApplicationSettings::instance(), and Digikam::ApplicationSettings::setRatingFilterCond().
|
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 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(), 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().
|
protectedinherited |
Returns the config group that must be used for state saving and loading.
Referenced by Digikam::AlbumFolderViewSideBarWidget::AlbumFolderViewSideBarWidget(), Digikam::DateFolderViewSideBarWidget::DateFolderViewSideBarWidget(), 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(), 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::TagsManager::showEvent(), Digikam::TagViewSideBarWidget::TagViewSideBarWidget(), Digikam::TimelineSideBarWidget::TimelineSideBarWidget(), and Digikam::TagsManager::~TagsManager().
|
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::ItemDescEditTab::readSettings(), Digikam::SearchTextBar::SearchTextBar(), ShowFoto::Showfoto::Showfoto(), and Digikam::TagsManager::TagsManager().
|
overrideinherited |
Referenced by Digikam::TransactionItemView::minimumSizeHint().
|
inherited |
Invokes saving the class' state.
References Digikam::StateSavingObject::doSaveState().
Referenced by Digikam::ImageWindow::closeEvent(), Digikam::FuzzySearchView::doSaveState(), Digikam::ItemDescEditTab::writeSettings(), Digikam::DateFolderView::~DateFolderView(), Digikam::SearchTextBar::~SearchTextBar(), Digikam::Sidebar::~Sidebar(), and Digikam::TagsManager::~TagsManager().
|
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::StateSavingObject::setConfigGroup().
|
inherited |
Referenced by Digikam::AlbumSelectTabs::AlbumSelectTabs(), Digikam::CaptionEdit::CaptionEdit(), Digikam::ColorLabelWidget::ColorLabelWidget(), Digikam::DFileSelector::DFileSelector(), Digikam::DFontSelect::DFontSelect(), Digikam::FuzzySearchView::FuzzySearchView(), Digikam::GPSSearchView::GPSSearchView(), Digikam::IccProfilesSettings::IccProfilesSettings(), Digikam::ItemDescEditTab::ItemDescEditTab(), Digikam::LocalizeSelector::LocalizeSelector(), Digikam::MediaPlayerView::MediaPlayerView(), Digikam::PickLabelWidget::PickLabelWidget(), Digikam::QueueSettingsView::QueueSettingsView(), Digikam::RatingBox::RatingBox(), Digikam::RatingFilter::RatingFilter(), Digikam::SetupMisc::SetupMisc(), Digikam::SetupToolTip::SetupToolTip(), ShowFoto::ShowfotoFolderViewBar::ShowfotoFolderViewBar(), Digikam::TemplateSelector::TemplateSelector(), Digikam::TextFilter::TextFilter(), Digikam::TimelineSideBarWidget::TimelineSideBarWidget(), Digikam::ToolSettingsView::ToolSettingsView(), and Digikam::TransactionItem::TransactionItem().
|
inherited |
|
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.
Referenced by Digikam::ItemDescEditTab::readSettings().
void Digikam::FilterSideBarWidget::setFocusToTextFilter | ( | ) |
|
inherited |
Referenced by Digikam::AlbumSelectTabs::AlbumSelectTabs(), Digikam::CaptionEdit::CaptionEdit(), Digikam::ColorLabelWidget::ColorLabelWidget(), Digikam::DFontSelect::DFontSelect(), Digikam::FuzzySearchView::FuzzySearchView(), Digikam::GPSSearchView::GPSSearchView(), Digikam::IccProfilesSettings::IccProfilesSettings(), Digikam::ItemDescEditTab::ItemDescEditTab(), Digikam::LocalizeSelector::LocalizeSelector(), Digikam::MediaPlayerView::MediaPlayerView(), Digikam::PickLabelWidget::PickLabelWidget(), Digikam::QueueSettingsView::QueueSettingsView(), Digikam::RatingBox::RatingBox(), Digikam::RatingFilter::RatingFilter(), Digikam::SetupToolTip::SetupToolTip(), Digikam::TagsEdit::TagsEdit(), Digikam::TemplateSelector::TemplateSelector(), Digikam::TextFilter::TextFilter(), Digikam::TimelineSideBarWidget::TimelineSideBarWidget(), Digikam::ToolSettingsView::ToolSettingsView(), and Digikam::TransactionItem::TransactionItem().
|
inherited |
Sets the depth used for state saving or loading.
depth | new depth to use |
|
inherited |
References Digikam::DHBox::setStretchFactor().
Referenced by Digikam::AlbumSelectTabs::AlbumSelectTabs(), Digikam::DFileSelector::DFileSelector(), Digikam::DFontSelect::DFontSelect(), Digikam::ImageQualitySettings::ImageQualitySettings(), Digikam::LensFunCameraSelector::LensFunCameraSelector(), Digikam::MaintenanceDlg::MaintenanceDlg(), Digikam::MediaPlayerView::MediaPlayerView(), Digikam::QueueSettingsView::QueueSettingsView(), Digikam::DHBox::setStretchFactor(), Digikam::SetupMime::SetupMime(), Digikam::SetupToolTip::SetupToolTip(), ShowFoto::ShowfotoFolderViewBar::ShowfotoFolderViewBar(), Digikam::TemplateSelector::TemplateSelector(), Digikam::ToolSettingsView::ToolSettingsView(), and Digikam::TransactionItem::TransactionItem().
|
signal |
Referenced by FilterSideBarWidget().
|
signal |
Referenced by FilterSideBarWidget().
|
signal |
Referenced by FilterSideBarWidget().
|
signal |
Referenced by FilterSideBarWidget().
|
signal |
Emitted if the selected filter has changed.
includedTags | a list of included tag ids |
excludedTags | a list of excluded tag ids |
matchingCond | condition to join the selected tags |
showUnTagged | if this is true, only photos without a tag shall be shown |
clTagIds | a list of color label tag ids |
plTagIds | a list of pick label tag ids |
|
overrideinherited |
|
slot |
|
slot |
Resets all selected filters.
References Digikam::MimeFilter::AllFiles, Digikam::ItemFilterSettings::GeolocationNoFilter, and Digikam::ItemFilterSettings::OrCondition.