Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_rectangle_constraint_widget.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-2.0-or-later
3 */
4
5#ifndef KISRECTANGLECONSTRAINTWIDGET_H
6#define KISRECTANGLECONSTRAINTWIDGET_H
7
8#include "ui_wdgrectangleconstraints.h"
9#include <kritaui_export.h>
10
13
14class KRITAUI_EXPORT KisRectangleConstraintWidget : public QWidget, public Ui::WdgRectangleConstraints
15{
16 Q_OBJECT
17
18public:
19 KisRectangleConstraintWidget(QWidget *parentWidget, KisToolRectangleBase *tool, bool showRoundCornersGUI);
20
21Q_SIGNALS:
22 void constraintsChanged(bool forceRatio, bool forceWidth, bool forceHeight, float ratio, float width, float height);
23
24protected Q_SLOTS:
25 void rectangleChanged(const QRectF &rect);
26 void inputsChanged();
27 void inputWidthChanged();
28 void inputHeightChanged();
29 void inputRatioChanged();
30
31 void slotRoundCornersChanged();
32 void slotRoundCornersAspectLockChanged();
33
34 void slotReloadConfig();
35
36protected:
38 Ui_WdgRectangleConstraints *m_widget;
40};
41
42#endif
void constraintsChanged(bool forceRatio, bool forceWidth, bool forceHeight, float ratio, float width, float height)