digiKam
fuzzysearchsidebarwidget.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-12-05
7  * Description : Side Bar Widget for the fuzzy search.
8  *
9  * Copyright (C) 2009-2010 by Johannes Wienke <languitar at semipol dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
12  * Copyright (C) 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option)
18  * any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * ============================================================ */
26 
27 #ifndef DIGIKAM_FUZZY_SEARCH_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_FUZZY_SEARCH_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "digikam_config.h"
33 #include "albummodel.h"
35 #include "sidebarwidget.h"
36 
37 namespace Digikam
38 {
39 
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit FuzzySearchSideBarWidget(QWidget* const parent,
47  SearchModel* const searchModel,
48  SearchModificationHelper* const searchModificationHelper);
49  ~FuzzySearchSideBarWidget() override;
50 
51  void setActive(bool active) override;
52  void doLoadState() override;
53  void doSaveState() override;
54  void applySettings() override;
55  void changeAlbumFromHistory(const QList<Album*>& album) override;
56  const QIcon getIcon() override;
57  const QString getCaption() override;
58 
59  void newDuplicatesSearch(const QList<PAlbum*>& albums);
60  void newDuplicatesSearch(const QList<TAlbum*>& albums);
61  void newSimilarSearch(const ItemInfo& imageInfo);
62 
63 Q_SIGNALS:
64 
65  void signalActive(bool);
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace Digikam
74 
75 #endif // DIGIKAM_FUZZY_SEARCH_SIDE_BAR_WIDGET_H
Definition: fuzzysearchsidebarwidget.h:41
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: fuzzysearchsidebarwidget.cpp:120
void doSaveState() override
Definition: fuzzysearchsidebarwidget.cpp:111
void doLoadState() override
Definition: fuzzysearchsidebarwidget.cpp:106
void applySettings() override
Definition: fuzzysearchsidebarwidget.cpp:116
const QString getCaption() override
Definition: fuzzysearchsidebarwidget.cpp:131
~FuzzySearchSideBarWidget() override
Definition: fuzzysearchsidebarwidget.cpp:89
void newDuplicatesSearch(const QList< PAlbum * > &albums)
Definition: fuzzysearchsidebarwidget.cpp:136
void setActive(bool active) override
Definition: fuzzysearchsidebarwidget.cpp:94
void newSimilarSearch(const ItemInfo &imageInfo)
Definition: fuzzysearchsidebarwidget.cpp:146
const QIcon getIcon() override
Definition: fuzzysearchsidebarwidget.cpp:126
FuzzySearchSideBarWidget(QWidget *const parent, SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper)
Definition: fuzzysearchsidebarwidget.cpp:65
Definition: iteminfo.h:78
Definition: albummodel.h:95
Definition: searchmodificationhelper.h:59
Definition: sidebarwidget.h:46
Definition: datefolderview.cpp:43