Krita Source Code Documentation
Loading...
Searching...
No Matches
wdg_imagesize.h
Go to the documentation of this file.
1/*
2 * dlg_imagesize.h -- part of KimageShop^WKrayon^WKrita
3 *
4 * SPDX-FileCopyrightText: 2004 Boudewijn Rempt <boud@valdyas.org>
5 * SPDX-FileCopyrightText: 2013 Juan Palacios <jpalaciosdev@gmail.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9#ifndef WDG_IMAGESIZE
10#define WDG_IMAGESIZE
11
12#include <QWidget>
13
15class PageImageSize;
19
20class WdgImageSize : public QWidget
21{
22 Q_OBJECT
23
24public:
25
26 static const QString PARAM_PREFIX;
27 static const QString PARAM_IMSIZE_UNIT;
28 static const QString PARAM_SIZE_UNIT;
29 static const QString PARAM_RES_UNIT;
30 static const QString PARAM_RATIO_LOCK;
31 static const QString PARAM_PRINT_SIZE_SEPARATE;
32
33 WdgImageSize(QWidget * parent, int width, int height, double resolution);
34 ~WdgImageSize() override;
35
36 qint32 desiredWidth();
37 qint32 desiredHeight();
38 double desiredResolution();
39
41
42Q_SIGNALS:
43 void sigDesiredSizeChanged(qint32 width, qint32 height, double resolution);
44
45private Q_SLOTS:
50
55
56private:
57 qreal currentResolutionPPI() const;
59
61
63
65
68
72};
73
74#endif // WDG_IMAGESIZE
float value(const T *src, size_t ch)
The KisDocumentAwareSpinBoxUnitManager class is a KisSpinBoxUnitManager that is able to connect to th...
The KisSpinBoxUnitManager class is an abstract interface for the unitspinboxes classes to manage diff...
void slotLockPixelRatioSwitched(bool value)
void slotLockPrintRatioSwitched(bool value)
KisAspectRatioLocker * m_printSizeLocker
void sigDesiredSizeChanged(qint32 width, qint32 height, double resolution)
PageImageSize * m_page
void slotPrintResolutionUnitChanged()
static const QString PARAM_PRINT_SIZE_SEPARATE
KisFilterStrategy * filterType()
static const QString PARAM_RES_UNIT
QSize m_originalSize
void slotSyncPrintToPixelSize()
qint32 desiredWidth()
~WdgImageSize() override
double desiredResolution()
static const QString PARAM_PREFIX
KisDocumentAwareSpinBoxUnitManager * m_widthUnitManager
void slotAdjustSeparatelySwitched(bool value)
void updatePrintSizeMaximum()
void slotSyncPixelToPrintSize()
void slotPrintResolutionChanged()
qreal currentResolutionPPI() const
static const QString PARAM_IMSIZE_UNIT
KisAspectRatioLocker * m_pixelSizeLocker
KisSpinBoxUnitManager * m_printSizeUnitManager
void slotLockAllRatioSwitched(bool value)
KisDocumentAwareSpinBoxUnitManager * m_heightUnitManager
void setCurrentResolutionPPI(qreal value)
static const QString PARAM_RATIO_LOCK
WdgImageSize(QWidget *parent, int width, int height, double resolution)
static const QString PARAM_SIZE_UNIT
qint32 desiredHeight()