digiKam
queuemgrwindow_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 : 2008-11-21
7  * Description : Batch Queue Manager GUI
8  *
9  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_BQM_QUEUE_MGR_WINDOW_PRIVATE_H
25 #define DIGIKAM_BQM_QUEUE_MGR_WINDOW_PRIVATE_H
26 
27 #include "queuemgrwindow.h"
28 
29 // Qt includes
30 
31 #include <QLabel>
32 #include <QString>
33 #include <QAction>
34 #include <QDir>
35 #include <QFile>
36 #include <QFileInfo>
37 #include <QGridLayout>
38 #include <QGroupBox>
39 #include <QVBoxLayout>
40 #include <QKeySequence>
41 #include <QMenuBar>
42 #include <QStatusBar>
43 #include <QMenu>
44 #include <QMessageBox>
45 #include <QApplication>
46 
47 // KDE includes
48 
49 #if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
50 # pragma GCC diagnostic push
51 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
52 #endif
53 
54 #if defined(Q_CC_CLANG)
55 # pragma clang diagnostic push
56 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
57 #endif
58 
59 #include <klocalizedstring.h>
60 #include <kactioncollection.h>
61 #include <kconfiggroup.h>
62 #include <ksharedconfig.h>
63 
64 // Restore warnings
65 #if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
66 # pragma GCC diagnostic pop
67 #endif
68 
69 #if defined(Q_CC_CLANG)
70 # pragma clang diagnostic pop
71 #endif
72 
73 // Local includes
74 
75 #include "drawdecoder.h"
76 #include "digikam_debug.h"
77 #include "actions.h"
78 #include "album.h"
79 #include "batchtoolsfactory.h"
80 #include "actionthread.h"
81 #include "queuepool.h"
82 #include "workflowmanager.h"
83 #include "queuelist.h"
84 #include "queuesettings.h"
85 #include "queuesettingsview.h"
86 #include "assignedlist.h"
87 #include "toolsettingsview.h"
88 #include "toolsview.h"
89 #include "componentsinfodlg.h"
90 #include "digikamapp.h"
91 #include "thememanager.h"
92 #include "dimg.h"
93 #include "dlogoaction.h"
94 #include "albummanager.h"
95 #include "imagewindow.h"
96 #include "thumbnailsize.h"
97 #include "sidebar.h"
98 #include "dnotificationwrapper.h"
99 #include "statusprogressbar.h"
100 
101 namespace Digikam
102 {
103 
104 class BatchToolsFactory;
105 
106 class Q_DECL_HIDDEN QueueMgrWindow::Private
107 {
108 
109 public:
110 
111  explicit Private()
112  : busy (false),
113  processingAllQueues (false),
114  currentQueueToProcess (0),
115  statusLabel (nullptr),
116  clearQueueAction (nullptr),
117  removeItemsSelAction (nullptr),
118  removeItemsDoneAction (nullptr),
119  moveUpToolAction (nullptr),
120  moveDownToolAction (nullptr),
121  removeToolAction (nullptr),
122  clearToolsAction (nullptr),
123  runAction (nullptr),
124  runAllAction (nullptr),
125  stopAction (nullptr),
126  removeQueueAction (nullptr),
127  newQueueAction (nullptr),
128  saveQueueAction (nullptr),
129  donateMoneyAction (nullptr),
130  contributeAction (nullptr),
131  rawCameraListAction (nullptr),
132  topSplitter (nullptr),
133  bottomSplitter (nullptr),
134  verticalSplitter (nullptr),
135  batchToolsMgr (nullptr),
136  statusProgressBar (nullptr),
137  thread (nullptr),
138  toolsView (nullptr),
139  toolSettings (nullptr),
140  assignedList (nullptr),
141  queuePool (nullptr),
142  queueSettingsView (nullptr),
143  TOP_SPLITTER_CONFIG_KEY (QLatin1String("BqmTopSplitter")),
144  BOTTOM_SPLITTER_CONFIG_KEY (QLatin1String("BqmBottomSplitter")),
145  VERTICAL_SPLITTER_CONFIG_KEY (QLatin1String("BqmVerticalSplitter"))
146  {
147  }
148 
149  bool busy;
151 
153 
154  QLabel* statusLabel;
155 
163 
164  QAction* runAction;
165  QAction* runAllAction;
166  QAction* stopAction;
168  QAction* newQueueAction;
169  QAction* saveQueueAction;
173 
177 
179 
181 
183 
189 
190  const QString TOP_SPLITTER_CONFIG_KEY;
193 };
194 
195 } // namespace Digikam
196 
197 #endif // DIGIKAM_BQM_QUEUE_MGR_WINDOW_PRIVATE_H
Definition: actionthread.h:41
Definition: assignedlist.h:69
Definition: batchtoolsfactory.h:42
Definition: queuemgrwindow_p.h:107
const QString BOTTOM_SPLITTER_CONFIG_KEY
Definition: queuemgrwindow_p.h:191
QAction * clearQueueAction
Definition: queuemgrwindow_p.h:156
SidebarSplitter * verticalSplitter
Definition: queuemgrwindow_p.h:176
QLabel * statusLabel
Definition: queuemgrwindow_p.h:154
bool busy
Definition: queuemgrwindow_p.h:149
int currentQueueToProcess
Definition: queuemgrwindow_p.h:152
QAction * runAction
Definition: queuemgrwindow_p.h:164
StatusProgressBar * statusProgressBar
Definition: queuemgrwindow_p.h:180
QAction * removeQueueAction
Definition: queuemgrwindow_p.h:167
QAction * contributeAction
Definition: queuemgrwindow_p.h:171
SidebarSplitter * topSplitter
Definition: queuemgrwindow_p.h:174
QAction * runAllAction
Definition: queuemgrwindow_p.h:165
const QString VERTICAL_SPLITTER_CONFIG_KEY
Definition: queuemgrwindow_p.h:192
QueuePool * queuePool
Definition: queuemgrwindow_p.h:187
ActionThread * thread
Definition: queuemgrwindow_p.h:182
QAction * removeToolAction
Definition: queuemgrwindow_p.h:161
bool processingAllQueues
Definition: queuemgrwindow_p.h:150
ToolsView * toolsView
Definition: queuemgrwindow_p.h:184
BatchToolsFactory * batchToolsMgr
Definition: queuemgrwindow_p.h:178
QAction * saveQueueAction
Definition: queuemgrwindow_p.h:169
QAction * newQueueAction
Definition: queuemgrwindow_p.h:168
QAction * removeItemsSelAction
Definition: queuemgrwindow_p.h:157
QAction * removeItemsDoneAction
Definition: queuemgrwindow_p.h:158
QAction * moveUpToolAction
Definition: queuemgrwindow_p.h:159
QAction * rawCameraListAction
Definition: queuemgrwindow_p.h:172
QueueSettingsView * queueSettingsView
Definition: queuemgrwindow_p.h:188
QAction * clearToolsAction
Definition: queuemgrwindow_p.h:162
SidebarSplitter * bottomSplitter
Definition: queuemgrwindow_p.h:175
Private()
Definition: queuemgrwindow_p.h:111
QAction * stopAction
Definition: queuemgrwindow_p.h:166
QAction * moveDownToolAction
Definition: queuemgrwindow_p.h:160
const QString TOP_SPLITTER_CONFIG_KEY
Definition: queuemgrwindow_p.h:190
AssignedListView * assignedList
Definition: queuemgrwindow_p.h:186
ToolSettingsView * toolSettings
Definition: queuemgrwindow_p.h:185
QAction * donateMoneyAction
Definition: queuemgrwindow_p.h:170
Definition: queuemgrwindow.h:52
Definition: queuepool.h:71
Definition: queuesettingsview.h:41
Definition: sidebar.h:480
Definition: statusprogressbar.h:43
Definition: toolsettingsview.h:40
Definition: toolsview.h:37
Definition: datefolderview.cpp:43