Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShadowConfigWidget.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2012 C. Boemann <cbo@boemann.dk>
3 * SPDX-FileCopyrightText: 2008 Jan Hambrecht <jaham@gmx.net>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHADOWCONFIGWIDGET_H
9#define KOSHADOWCONFIGWIDGET_H
10
11#include "kritawidgets_export.h"
12#include <QWidget>
13
14class KoUnit;
15class KoCanvasBase;
17
19class KRITAWIDGETS_EXPORT KoShadowConfigWidget : public QWidget
20{
21 Q_OBJECT
22public:
23 explicit KoShadowConfigWidget(QWidget *parent);
24 ~KoShadowConfigWidget() override;
25
27 void setShadowColor(const QColor &color);
28
30 QColor shadowColor() const;
31
33 void setShadowOffset(const QPointF &offset);
34
36 QPointF shadowOffset() const;
37
39 void setShadowBlur(const qreal &blur);
40
42 qreal shadowBlur() const;
43
45 void setShadowVisible(bool visible);
46
48 bool shadowVisible() const;
49
50public Q_SLOTS:
51
52 void setUnitManagers(KisSpinBoxUnitManager* managerBlur, KisSpinBoxUnitManager* managerOffset);
53 void setUnit( const KoUnit &unit );
54 void setCanvas(KoCanvasBase *canvas);
55
56private Q_SLOTS:
57 void visibilityChanged();
58 void applyChanges();
59 void selectionChanged();
60 void resourceChanged( int key, const QVariant & res );
61
62private:
63 class Private;
64 Private *const d;
65};
66
67#endif // KOSHADOWCONFIGWIDGET_H
The KisSpinBoxUnitManager class is an abstract interface for the unitspinboxes classes to manage diff...
A widget for configuring the shadow of a shape.