24 #ifndef DIGIKAM_IMAGE_EDITOR_WINDOW_PRIVATE_H
25 #define DIGIKAM_IMAGE_EDITOR_WINDOW_PRIVATE_H
35 #include <QApplication>
39 #include <QEasingCurve>
43 #include <QGridLayout>
45 #include <QHBoxLayout>
46 #include <QImageReader>
51 #include <QProgressBar>
54 #include <QToolButton>
55 #include <QVBoxLayout>
56 #include <QWidgetAction>
57 #include <QButtonGroup>
59 #include <QKeySequence>
60 #include <QPushButton>
73 # pragma GCC diagnostic push
74 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
77 #if defined(Q_CC_CLANG)
78 # pragma clang diagnostic push
79 # pragma clang diagnostic ignored "-Wmismatched-tags"
80 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
83 #include <klocalizedstring.h>
84 #include <kactioncategory.h>
85 #include <kactioncollection.h>
86 #include <ktoolbarpopupaction.h>
87 #include <kwindowsystem.h>
88 #include <kxmlguifactory.h>
89 #include <kconfiggroup.h>
91 #include <ksharedconfig.h>
94 # include <kopenwithdialog.h>
97 #include <kservicetype.h>
98 #include <kservicetypetrader.h>
101 #if defined(Q_CC_GNU)
102 # pragma GCC diagnostic pop
105 #if defined(Q_CC_CLANG)
106 # pragma clang diagnostic pop
111 #include "digikam_config.h"
168 : cmViewIndicator (nullptr),
169 underExposureIndicator (nullptr),
170 overExposureIndicator (nullptr),
172 copyAction (nullptr),
173 cropAction (nullptr),
174 flipHorizAction (nullptr),
175 flipVertAction (nullptr),
176 rotateLeftAction (nullptr),
177 rotateRightAction (nullptr),
178 selectAllAction (nullptr),
179 selectNoneAction (nullptr),
180 softProofOptionsAction (nullptr),
181 zoomFitToSelectAction (nullptr),
182 zoomMinusAction (nullptr),
183 zoomPlusAction (nullptr),
184 zoomTo100percents (nullptr),
185 openWithAction (nullptr),
186 waitingLoop (nullptr),
187 currentWindowModalDialog (nullptr),
188 zoomFitToWindowAction (nullptr),
189 viewCMViewAction (nullptr),
190 viewSoftProofAction (nullptr),
191 viewUnderExpoAction (nullptr),
192 viewOverExpoAction (nullptr),
193 selectToolsActionView (nullptr),
194 ICCSettings (nullptr),
196 previewToolBar (nullptr),
197 exposureSettings (nullptr),
206 void legacyUpdateSplitterState(KConfigGroup& group);
207 void plugNewVersionInFormatAction(
EditorWindow*
const q,
208 QMenu*
const menuAction,
210 const QString& format);
328 if (state.count() == 34)
332 QDataStream stream(state);
349 if (sizesList.count() == 3)
351 qCDebug(DIGIKAM_GENERAL_LOG) <<
"Found splitter based config, converting to dockbar";
356 sizesList.removeFirst();
358 QDataStream newStream(&newData, QIODevice::WriteOnly);
360 newStream << version;
361 newStream << sizesList;
363 int numBytes = stream.readRawData(s, 24);
364 newStream.writeRawData(s, numBytes);
373 QMenu*
const menuAction,
375 const QString& format)
377 QAction*
const action =
new QAction(text, q);
379 connect(action, &QAction::triggered,
386 menuAction->addAction(action);
Definition: actioncategorizedview.h:42
Definition: dexpanderbox.h:66
Definition: dzoombar.h:42
Definition: editorwindow_p.h:164
QAction * zoomFitToWindowAction
Definition: editorwindow_p.h:264
static const QString configJpeg2000LossLessEntry
Definition: editorwindow_p.h:221
EditorToolIface * toolIface
Definition: editorwindow_p.h:279
DZoomBar * zoomBar
Definition: editorwindow_p.h:274
ActionCategorizedView * selectToolsActionView
Definition: editorwindow_p.h:270
PreviewToolBar * previewToolBar
Definition: editorwindow_p.h:275
QAction * viewSoftProofAction
Definition: editorwindow_p.h:266
QAction * viewOverExpoAction
Definition: editorwindow_p.h:268
QAction * softProofOptionsAction
Definition: editorwindow_p.h:254
static const QString configVerticalSplitterStateEntry
Definition: editorwindow_p.h:238
static const QString configJpeg2000CompressionEntry
Definition: editorwindow_p.h:220
static const QString configPgfCompressionEntry
Definition: editorwindow_p.h:222
QAction * flipVertAction
Definition: editorwindow_p.h:249
QAction * copyAction
Definition: editorwindow_p.h:246
static const QString configHeifLossLessEntry
Definition: editorwindow_p.h:225
static const QString configPngCompressionEntry
Definition: editorwindow_p.h:218
QAction * rotateLeftAction
Definition: editorwindow_p.h:250
ExposureSettingsContainer * exposureSettings
Definition: editorwindow_p.h:277
void legacyUpdateSplitterState(KConfigGroup &group)
Definition: editorwindow_p.h:314
QToolButton * cmViewIndicator
Definition: editorwindow_p.h:240
QAction * selectNoneAction
Definition: editorwindow_p.h:253
QDialog * currentWindowModalDialog
Definition: editorwindow_p.h:262
QAction * zoomFitToSelectAction
Definition: editorwindow_p.h:255
QMap< QString, KService::Ptr > servicesMap
Definition: editorwindow_p.h:285
QAction * cropAction
Definition: editorwindow_p.h:247
static const QString configVerticalSplitterSizesEntry
Definition: editorwindow_p.h:237
static const QString configHeifCompressionEntry
Definition: editorwindow_p.h:224
DAdjustableLabel * infoLabel
Definition: editorwindow_p.h:244
void plugNewVersionInFormatAction(EditorWindow *const q, QMenu *const menuAction, const QString &text, const QString &format)
Definition: editorwindow_p.h:372
static const QString configRawImportToolIidEntry
Definition: editorwindow_p.h:235
static const QString configJpegSubSamplingEntry
Definition: editorwindow_p.h:217
QAction * zoomPlusAction
Definition: editorwindow_p.h:257
Private()
Definition: editorwindow_p.h:167
static const QString configBackgroundColorEntry
Definition: editorwindow_p.h:215
QToolButton * underExposureIndicator
Definition: editorwindow_p.h:241
static const QString configOverExposureIndicatorEntry
Definition: editorwindow_p.h:231
QAction * openWithAction
Definition: editorwindow_p.h:259
static const QString configJpegCompressionEntry
Definition: editorwindow_p.h:216
QAction * viewCMViewAction
Definition: editorwindow_p.h:265
static const QString configPgfLossLessEntry
Definition: editorwindow_p.h:223
QAction * flipHorizAction
Definition: editorwindow_p.h:248
static const QString configOverExposurePercentsEntry
Definition: editorwindow_p.h:232
ICCSettingsContainer * ICCSettings
Definition: editorwindow_p.h:272
static const QString configUnderExposureColorEntry
Definition: editorwindow_p.h:227
QAction * zoomTo100percents
Definition: editorwindow_p.h:258
static const QString configOverExposureColorEntry
Definition: editorwindow_p.h:230
QList< int > fullscreenSizeBackup
Definition: editorwindow_p.h:283
QAction * viewUnderExpoAction
Definition: editorwindow_p.h:267
QAction * rotateRightAction
Definition: editorwindow_p.h:251
QEventLoop * waitingLoop
Definition: editorwindow_p.h:261
static const QString configUseThemeBackgroundColorEntry
Definition: editorwindow_p.h:236
static const QString configExpoIndicatorModeEntry
Definition: editorwindow_p.h:233
VersionManager defaultVersionManager
Definition: editorwindow_p.h:281
static const QString configUnderExposureIndicatorEntry
Definition: editorwindow_p.h:228
QAction * selectAllAction
Definition: editorwindow_p.h:252
QAction * zoomMinusAction
Definition: editorwindow_p.h:256
~Private()
Definition: editorwindow_p.h:202
static const QString configTiffCompressionEntry
Definition: editorwindow_p.h:219
static const QString configAutoZoomEntry
Definition: editorwindow_p.h:214
static const QString configSplitterStateEntry
Definition: editorwindow_p.h:226
static const QString configUnderExposurePercentsEntry
Definition: editorwindow_p.h:229
static const QString configUseRawImportToolEntry
Definition: editorwindow_p.h:234
QToolButton * overExposureIndicator
Definition: editorwindow_p.h:242
Definition: editorwindow.h:78
virtual bool saveNewVersionInFormat(const QString &)=0
Definition: exposurecontainer.h:39
Definition: iccsettingscontainer.h:44
Definition: versionmanager.h:46
Definition: datefolderview.cpp:43