digiKam
facescanwidget_p.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 : 2010-10-09
7  * Description : Widget to choose options for face scanning
8  *
9  * Copyright (C) 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_FACE_SCAN_WIDGET_P_H
26 #define DIGIKAM_FACE_SCAN_WIDGET_P_H
27 
28 #include "facescanwidget.h"
29 
30 // Qt includes
31 
32 #include <QApplication>
33 #include <QButtonGroup>
34 #include <QGroupBox>
35 #include <QCheckBox>
36 #include <QGridLayout>
37 #include <QLabel>
38 #include <QMouseEvent>
39 #include <QKeyEvent>
40 #include <QRadioButton>
41 #include <QToolButton>
42 #include <QIcon>
43 #include <QVBoxLayout>
44 #include <QPushButton>
45 #include <QStyle>
46 #include <QList>
47 
48 // KDE includes
49 
50 #include <kconfiggroup.h>
51 #include <klocalizedstring.h>
52 
53 // Local includes
54 
55 #include "digikam_config.h"
56 #include "dlayoutbox.h"
57 #include "dnuminput.h"
58 #include "digikam_debug.h"
59 #include "albummodel.h"
60 #include "albumselectors.h"
61 #include "albummanager.h"
62 #include "applicationsettings.h"
63 #include "squeezedcombobox.h"
64 #include "dexpanderbox.h"
65 #include "facedbaccess.h"
66 #include "facedb.h"
67 #include "facemanagementhelpdlg.h"
68 
69 namespace Digikam
70 {
71 
72 class Q_DECL_HIDDEN FaceScanWidget::Private
73 {
74 public:
75 
76  explicit Private()
77  : workflowWidget (nullptr),
78  detectAndRecognizeButton (nullptr),
79  detectButton (nullptr),
80  alreadyScannedBox (nullptr),
81  reRecognizeButton (nullptr),
82  helpButton (nullptr),
83  tabWidget (nullptr),
84  albumSelectors (nullptr),
85  accuracyInput (nullptr),
86  useYoloV3Button (nullptr),
87  useFullCpuButton (nullptr),
88  configName (QLatin1String("Face Management Settings")),
89  configMainTask (QLatin1String("Face Scan Main Task")),
90  configValueDetect (QLatin1String("Detect")),
91  configValueDetectAndRecognize (QLatin1String("Detect and Recognize Faces")),
92  configValueRecognizedMarkedFaces (QLatin1String("Recognize Marked Faces")),
93  configAlreadyScannedHandling (QLatin1String("Already Scanned Handling")),
94  configUseFullCpu (QLatin1String("Use Full CPU")),
95  settingsConflicted (false)
96  {
97  }
98 
99  QWidget* workflowWidget;
101  QRadioButton* detectButton;
103  QRadioButton* reRecognizeButton;
104  QPushButton* helpButton;
105 
106  QTabWidget* tabWidget;
107 
109 
111 
112  QCheckBox* useYoloV3Button;
113  QCheckBox* useFullCpuButton;
114 
115  const QString configName;
116  const QString configMainTask;
117  const QString configValueDetect;
121  const QString configUseFullCpu;
122 
124 };
125 
126 } // namespace Digikam
127 
128 #endif // DIGIKAM_FACE_SCAN_WIDGET_P_H
Definition: albumselectors.h:39
Definition: dnuminput.h:41
Definition: facescanwidget_p.h:73
const QString configAlreadyScannedHandling
Definition: facescanwidget_p.h:120
const QString configValueDetectAndRecognize
Definition: facescanwidget_p.h:118
QRadioButton * reRecognizeButton
Definition: facescanwidget_p.h:103
SqueezedComboBox * alreadyScannedBox
Definition: facescanwidget_p.h:102
const QString configValueRecognizedMarkedFaces
Definition: facescanwidget_p.h:119
QRadioButton * detectButton
Definition: facescanwidget_p.h:101
const QString configUseFullCpu
Definition: facescanwidget_p.h:121
const QString configName
Definition: facescanwidget_p.h:115
const QString configValueDetect
Definition: facescanwidget_p.h:117
DIntNumInput * accuracyInput
Definition: facescanwidget_p.h:110
QPushButton * helpButton
Definition: facescanwidget_p.h:104
QWidget * workflowWidget
Definition: facescanwidget_p.h:99
bool settingsConflicted
Definition: facescanwidget_p.h:123
Private()
Definition: facescanwidget_p.h:76
QRadioButton * detectAndRecognizeButton
Definition: facescanwidget_p.h:100
QCheckBox * useFullCpuButton
Definition: facescanwidget_p.h:113
QCheckBox * useYoloV3Button
Definition: facescanwidget_p.h:112
const QString configMainTask
Definition: facescanwidget_p.h:116
AlbumSelectors * albumSelectors
Definition: facescanwidget_p.h:108
QTabWidget * tabWidget
Definition: facescanwidget_p.h:106
Definition: facescanwidget.h:42
Definition: squeezedcombobox.h:51
Definition: datefolderview.cpp:43