Krita Source Code Documentation
Loading...
Searching...
No Matches
dlg_rotateimage.h
Go to the documentation of this file.
1/*
2 * dlg_rotateimage.h -- part of KimageShop^WKrayon^WKrita
3 *
4 * SPDX-FileCopyrightText: 2004 Michael Thaler <michael.thaler@physik.tu-muenchen.de>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8#ifndef DLG_ROTATEIMAGE
9#define DLG_ROTATEIMAGE
10
11#include <KoDialog.h>
12
13#include "kis_global.h"
14
15#include "ui_wdg_rotateimage.h"
16
21
22class WdgRotateImage : public QWidget, public Ui::WdgRotateImage
23{
24 Q_OBJECT
25
26public:
27 WdgRotateImage(QWidget *parent) : QWidget(parent) {
28 setupUi(this);
29 }
30};
31
33{
34
35 Q_OBJECT
36
37public:
38
39 DlgRotateImage(QWidget * parent = 0,
40 const char* name = 0);
41 ~DlgRotateImage() override;
42
43 void setAngle(quint32 w);
44 double angle();
45
48
49private Q_SLOTS:
50
51 void okClicked();
52 void resetPreview();
53 void slotAngleValueChanged(double);
54 void slotRadioCCWToggled(bool toggled);
55 void slotRadioCWToggled(bool toggled);
56
57private:
58
60 double m_oldAngle {0.0};
61 bool m_lock;
62
63};
64
65#endif // DLG_ROTATEIMAGE
enumRotationDirection direction()
void slotAngleValueChanged(double)
void setDirection(enumRotationDirection direction)
void setAngle(quint32 w)
~DlgRotateImage() override
WdgRotateImage * m_page
void slotRadioCWToggled(bool toggled)
DlgRotateImage(QWidget *parent=0, const char *name=0)
void slotRadioCCWToggled(bool toggled)
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
WdgRotateImage(QWidget *parent)
enumRotationDirection
@ CLOCKWISE
@ COUNTERCLOCKWISE