digiKam
peoplesidebarwidget.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 People
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_PEOPLE_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_PEOPLE_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "albummodel.h"
34 #include "sidebarwidget.h"
35 
36 namespace Digikam
37 {
38 
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit PeopleSideBarWidget(QWidget* const parent,
46  TagModel* const tagModel,
47  SearchModificationHelper* const searchModificationHelper);
48  ~PeopleSideBarWidget() override;
49 
50  void setActive(bool active) override;
51  void doLoadState() override;
52  void doSaveState() override;
53  void applySettings() override;
54  void changeAlbumFromHistory(const QList<Album*>& album) override;
55  const QIcon getIcon() override;
56  const QString getCaption() override;
57 
58 private Q_SLOTS:
59 
60  void slotInit();
61  void slotScanForFaces();
62  void slotScanComplete();
63 
64 Q_SIGNALS:
65 
66  void requestFaceMode(bool on);
67 
68  void signalFindDuplicates(const QList<TAlbum*>& albums);
69 
70 private:
71 
72  class Private;
73  Private* const d;
74 };
75 
76 } // namespace Digikam
77 
78 #endif // DIGIKAM_PEOPLE_SIDE_BAR_WIDGET_H
Definition: peoplesidebarwidget.h:40
void setActive(bool active) override
Definition: peoplesidebarwidget.cpp:149
PeopleSideBarWidget(QWidget *const parent, TagModel *const tagModel, SearchModificationHelper *const searchModificationHelper)
Definition: peoplesidebarwidget.cpp:80
void doSaveState() override
Definition: peoplesidebarwidget.cpp:174
~PeopleSideBarWidget() override
Definition: peoplesidebarwidget.cpp:139
const QIcon getIcon() override
Definition: peoplesidebarwidget.cpp:224
void doLoadState() override
Definition: peoplesidebarwidget.cpp:168
void applySettings() override
Definition: peoplesidebarwidget.cpp:180
void signalFindDuplicates(const QList< TAlbum * > &albums)
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: peoplesidebarwidget.cpp:186
const QString getCaption() override
Definition: peoplesidebarwidget.cpp:229
Definition: searchmodificationhelper.h:59
Definition: sidebarwidget.h:46
Definition: albummodel.h:63
Definition: datefolderview.cpp:43