File indexing completed on 2025-01-26 04:10:33
0001 /* 0002 * dlg_shearimage.h -- part of KimageShop^WKrayon^WKrita 0003 * 0004 * SPDX-FileCopyrightText: 2004 Michael Thaler <michael.thaler@physik.tu-muenchen.de> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 #ifndef DLG_SHEARIMAGE 0009 #define DLG_SHEARIMAGE 0010 0011 #include <KoDialog.h> 0012 0013 #include "ui_wdg_shearimage.h" 0014 0015 class WdgShearImage : public QWidget, public Ui::WdgShearImage 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 WdgShearImage(QWidget *parent) : QWidget(parent) { 0021 setupUi(this); 0022 } 0023 }; 0024 0025 class DlgShearImage: public KoDialog 0026 { 0027 0028 Q_OBJECT 0029 0030 public: 0031 0032 DlgShearImage(QWidget * parent = 0, 0033 const char* name = 0); 0034 ~DlgShearImage() override; 0035 0036 void setAngleX(quint32 w); 0037 void setAngleY(quint32 w); 0038 qint32 angleX(); 0039 qint32 angleY(); 0040 0041 private Q_SLOTS: 0042 0043 void okClicked(); 0044 0045 private: 0046 0047 WdgShearImage * m_page; 0048 double m_oldAngle {0.0}; 0049 bool m_lock; 0050 0051 }; 0052 0053 #endif // DLG_SHEARIMAGE