File indexing completed on 2024-12-22 04:13:16
0001 /* 0002 * SPDX-FileCopyrightText: 2018 Anna Medonosova <anna.medonosova@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISLAYERSTYLEANGLESELECTOR_H 0008 #define KISLAYERSTYLEANGLESELECTOR_H 0009 0010 #include <QWidget> 0011 0012 #include <ui_wdgKisLayerStyleAngleSelector.h> 0013 0014 class KisLayerStyleAngleSelector : public QWidget 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 KisLayerStyleAngleSelector(QWidget* parent); 0020 0021 int value(); 0022 void setValue(int value); 0023 0024 void enableGlobalLight(bool enable); 0025 0026 bool useGlobalLight(); 0027 void setUseGlobalLight(bool state); 0028 0029 KisAngleSelector* angleSelector(); 0030 0031 Q_SIGNALS: 0032 void valueChanged(int); 0033 void configChanged(); 0034 void globalAngleChanged(int); 0035 0036 private Q_SLOTS: 0037 void slotAngleSelectorAngleChanged(qreal value); 0038 void slotGlobalLightToggled(); 0039 0040 private: 0041 void emitChangeSignals(); 0042 0043 Ui_WdgKisLayerStyleAngleSelector* ui; 0044 0045 bool m_enableGlobalLight; 0046 }; 0047 0048 #endif // KISLAYERSTYLEANGLESELECTOR_H