digiKam
|
Public Types | |
enum | AlbumType { PhysAlbum = 0 , TagsAlbum , All } |
enum | SelectionType { SingleSelection = 0 , MultipleSelection } |
Public Slots | |
void | loadState () |
void | saveState () |
Signals | |
void | signalSelectionChanged () |
Public Member Functions | |
AlbumSelectors (const QString &label, const QString &configName, QWidget *const parent=nullptr, AlbumType albumType=All) | |
void | resetPAlbumSelection () |
void | resetSelection () |
void | resetTAlbumSelection () |
QList< int > | selectedAlbumIds () const |
AlbumList | selectedAlbums () const |
AlbumList | selectedAlbumsAndTags () const |
QList< int > | selectedTagIds () const |
AlbumList | selectedTags () const |
void | setAlbumSelected (Album *const album, SelectionType type) |
void | setTagSelected (Album *const album, SelectionType type) |
void | setTypeSelection (int albumType) |
int | typeSelection () const |
bool | wholeAlbumsChecked () const |
bool | wholeTagsChecked () const |
~AlbumSelectors () override | |
|
override |
|
slot |
Called in constructor. Restore previous settings saved in configuration file.
References All, PhysAlbum, wholeAlbumsChecked(), and wholeTagsChecked().
Referenced by Digikam::FaceScanWidget::doLoadState(), and Digikam::FuzzySearchView::doLoadState().
void Digikam::AlbumSelectors::resetPAlbumSelection | ( | ) |
Reset all Physical Albums selection.
References wholeAlbumsChecked().
Referenced by resetSelection().
void Digikam::AlbumSelectors::resetSelection | ( | ) |
Reset all Physical and Tag Albums selection.
References resetPAlbumSelection(), and resetTAlbumSelection().
void Digikam::AlbumSelectors::resetTAlbumSelection | ( | ) |
|
slot |
Save settings in configuration file. Must be called explicitly by host implementation.
References All, typeSelection(), wholeAlbumsChecked(), and wholeTagsChecked().
Referenced by Digikam::FaceScanWidget::doSaveState(), and Digikam::FuzzySearchView::doSaveState().
QList< int > Digikam::AlbumSelectors::selectedAlbumIds | ( | ) | const |
Return list of selected physical album ids
References Digikam::Album::id(), and selectedAlbums().
Referenced by Digikam::FuzzySearchView::dropEvent().
AlbumList Digikam::AlbumSelectors::selectedAlbums | ( | ) | const |
Return list of selected physical albums
References Digikam::AlbumManager::allPAlbums(), Digikam::AlbumManager::instance(), and wholeAlbumsChecked().
Referenced by selectedAlbumIds(), and selectedAlbumsAndTags().
AlbumList Digikam::AlbumSelectors::selectedAlbumsAndTags | ( | ) | const |
Return list of selected physical and tag albums.
References selectedAlbums(), and selectedTags().
Referenced by Digikam::FaceScanWidget::settings().
QList< int > Digikam::AlbumSelectors::selectedTagIds | ( | ) | const |
Return list of selected tag album ids
References Digikam::Album::id(), and selectedTags().
AlbumList Digikam::AlbumSelectors::selectedTags | ( | ) | const |
Return list of selected tag albums
References Digikam::AlbumManager::allTAlbums(), Digikam::AlbumManager::instance(), and wholeTagsChecked().
Referenced by selectedAlbumsAndTags(), and selectedTagIds().
void Digikam::AlbumSelectors::setAlbumSelected | ( | Album *const | album, |
SelectionType | type | ||
) |
Select Physical Album from list. If singleSelection is true, only this one is selected from tree-view and all others are deselected.
References SingleSelection.
void Digikam::AlbumSelectors::setTagSelected | ( | Album *const | album, |
SelectionType | type | ||
) |
Select Tag Album from list. If singleSelection is true, only this one is selected from tree-view and all others are deselected.
References SingleSelection.
void Digikam::AlbumSelectors::setTypeSelection | ( | int | albumType | ) |
Sets the search type selection with the AlbumType.
References All.
|
signal |
int Digikam::AlbumSelectors::typeSelection | ( | ) | const |
bool Digikam::AlbumSelectors::wholeAlbumsChecked | ( | ) | const |
Return true if whole Albums collection option is checked.
Referenced by loadState(), resetPAlbumSelection(), saveState(), selectedAlbums(), and Digikam::FaceScanWidget::settings().
bool Digikam::AlbumSelectors::wholeTagsChecked | ( | ) | const |
Return true if whole Tags collection option is checked.
Referenced by loadState(), resetTAlbumSelection(), saveState(), and selectedTags().