Utility class providing methods to modify search albums (SAlbum) in a way useful to implement views.
More...
|
| void | slotCreateFuzzySearchFromDropped (const QString &name, const QString &filePath, float threshold, float maxThreshold, const QList< int > &targetAlbums, bool overwriteIfExisting) |
| | Creates a new fuzzy search for finding similar photos based on the file path of a photo and selects it in the album manager after creation.
|
| |
| void | slotCreateFuzzySearchFromImage (const QString &name, const ItemInfo &image, float threshold, float maxThreshold, const QList< int > &targetAlbums, bool overwriteIfExisting=false) |
| | Creates a new fuzzy search for finding similar photos based on one photo and selects it in the album manager after creation.
|
| |
| void | slotCreateFuzzySearchFromSketch (const QString &name, SketchWidget *sketchWidget, unsigned int numberOfResults, const QList< int > &targetAlbums, bool overwriteIfExisting=false) |
| | Creates a new fuzzy search based on a sketch created by the user and selects it in the AlbumManager after creation.
|
| |
| SAlbum * | slotCreateTimeLineSearch (const QString &desiredName, const DateRangeList &dateRanges, bool overwriteIfExisting=false) |
| | Creates a new timeline search.
|
| |
| void | slotSearchDelete (SAlbum *searchAlbum) |
| | Deletes the given search after prompting the user.
|
| |
| void | slotSearchRename (SAlbum *searchAlbum) |
| | Renames the given search via a dialog.
|
| |
|
| | SearchModificationHelper (QObject *const parent, QWidget *const dialogParent) |
| | Constructor.
|
| |
|
| ~SearchModificationHelper () override |
| | Destructor.
|
| |
| SAlbum * | createFuzzySearchFromDropped (const QString &name, const QString &filePath, float threshold, float maxThreshold, const QList< int > &targetAlbums, bool overwriteIfExisting=false) |
| |
| SAlbum * | createFuzzySearchFromImage (const QString &name, const ItemInfo &image, float threshold, float maxThreshold, const QList< int > &targetAlbums, bool overwriteIfExisting=false) |
| |
| SAlbum * | createFuzzySearchFromSketch (const QString &name, SketchWidget *sketchWidget, unsigned int numberOfResults, const QList< int > &targetAlbums, bool overwriteIfExisting=false) |
| |
◆ SearchModificationHelper()
| Digikam::SearchModificationHelper::SearchModificationHelper |
( |
QObject *const |
parent, |
|
|
QWidget *const |
dialogParent |
|
) |
| |
- Parameters
-
| parent | the parent for qt parent child mechanism |
| dialogParent | parent widget for dialogs displayed by this object |
◆ createFuzzySearchFromDropped()
| SAlbum * Digikam::SearchModificationHelper::createFuzzySearchFromDropped |
( |
const QString & |
name, |
|
|
const QString & |
filePath, |
|
|
float |
threshold, |
|
|
float |
maxThreshold, |
|
|
const QList< int > & |
targetAlbums, |
|
|
bool |
overwriteIfExisting = false |
|
) |
| |
◆ createFuzzySearchFromImage()
| SAlbum * Digikam::SearchModificationHelper::createFuzzySearchFromImage |
( |
const QString & |
name, |
|
|
const ItemInfo & |
image, |
|
|
float |
threshold, |
|
|
float |
maxThreshold, |
|
|
const QList< int > & |
targetAlbums, |
|
|
bool |
overwriteIfExisting = false |
|
) |
| |
◆ createFuzzySearchFromSketch()
| SAlbum * Digikam::SearchModificationHelper::createFuzzySearchFromSketch |
( |
const QString & |
name, |
|
|
SketchWidget * |
sketchWidget, |
|
|
unsigned int |
numberOfResults, |
|
|
const QList< int > & |
targetAlbums, |
|
|
bool |
overwriteIfExisting = false |
|
) |
| |
◆ slotCreateFuzzySearchFromDropped
| void Digikam::SearchModificationHelper::slotCreateFuzzySearchFromDropped |
( |
const QString & |
name, |
|
|
const QString & |
filePath, |
|
|
float |
threshold, |
|
|
float |
maxThreshold, |
|
|
const QList< int > & |
targetAlbums, |
|
|
bool |
overwriteIfExisting |
|
) |
| |
|
slot |
- Parameters
-
| name | of the new search |
| filePath | path of the image to base this search on |
| threshold | minimum threshold for image search |
| maxThreshold | maximum threshold for image search |
| targetAlbums | The image must be in one of these albums |
| overwriteIfExisting | if true, an existing search with the desired name will be overwritten without prompting the user for a new name |
◆ slotCreateFuzzySearchFromImage
| void Digikam::SearchModificationHelper::slotCreateFuzzySearchFromImage |
( |
const QString & |
name, |
|
|
const ItemInfo & |
image, |
|
|
float |
threshold, |
|
|
float |
maxThreshold, |
|
|
const QList< int > & |
targetAlbums, |
|
|
bool |
overwriteIfExisting = false |
|
) |
| |
|
slot |
- Parameters
-
| name | of the new search |
| image | the image to base this search on |
| threshold | the threshold for image search, 0 <= threshold <= 1 |
| maxThreshold | the maximum threshold of similarity. |
| targetAlbums | The image must be in one of these albums |
| overwriteIfExisting | if true, an existing search with the desired name will be overwritten without prompting the user for a new name |
◆ slotCreateFuzzySearchFromSketch
| void Digikam::SearchModificationHelper::slotCreateFuzzySearchFromSketch |
( |
const QString & |
name, |
|
|
SketchWidget * |
sketchWidget, |
|
|
unsigned int |
numberOfResults, |
|
|
const QList< int > & |
targetAlbums, |
|
|
bool |
overwriteIfExisting = false |
|
) |
| |
|
slot |
- Parameters
-
| name | the name of the new sketch search |
| sketchWidget | the widget containing the sketch of the user |
| numberOfResults | max number of results to display |
| targetAlbums | The image must be in one of these albums |
| overwriteIfExisting | if true, an existing search with the desired name will be overwritten without prompting the user for a new name |
◆ slotCreateTimeLineSearch
| SAlbum * Digikam::SearchModificationHelper::slotCreateTimeLineSearch |
( |
const QString & |
desiredName, |
|
|
const DateRangeList & |
dateRanges, |
|
|
bool |
overwriteIfExisting = false |
|
) |
| |
|
slot |
- Parameters
-
| desiredName | desired name for the search. If this name already exists and overwriteIfExisting is false, then the user will be prompted for a new name |
| dateRanges | date ranges to contain in this timeline search. If this is empty, no search will be created. |
| overwriteIfExisting | if true, an existing search with the desired name will be overwritten without prompting the user for a new name |
◆ slotSearchDelete
| void Digikam::SearchModificationHelper::slotSearchDelete |
( |
SAlbum * |
searchAlbum | ) |
|
|
slot |
- Parameters
-
| searchAlbum | search to delete |
◆ slotSearchRename
| void Digikam::SearchModificationHelper::slotSearchRename |
( |
SAlbum * |
searchAlbum | ) |
|
|
slot |
- Parameters
-
| searchAlbum | search to rename |