File indexing completed on 2025-01-26 04:10:34
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Anna Medonosová <anna.medonosova@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SPENSETTINGS_H 0008 #define SPENSETTINGS_H 0009 0010 #include <QObject> 0011 #include <QMap> 0012 #include <QScopedPointer> 0013 #include <KisActionPlugin.h> 0014 0015 class KisAction; 0016 0017 class SPenSettings : public KisActionPlugin 0018 { 0019 Q_OBJECT 0020 public: 0021 SPenSettings(QObject* parent, const QVariantList&); 0022 ~SPenSettings(); 0023 0024 enum Action { 0025 Click, 0026 DoubleClick, 0027 SwipeUp, 0028 SwipeDown, 0029 SwipeLeft, 0030 SwipeRight, 0031 CircleCW, 0032 CircleCCW 0033 }; 0034 0035 0036 public Q_SLOTS: 0037 void slotActivateAction(SPenSettings::Action gestureType); 0038 void slotLoadSettings(); 0039 void slotTriggerPopupPalette(); 0040 0041 private: 0042 QMap<SPenSettings::Action, QString> m_actionMap; 0043 QScopedPointer<KisAction> m_actionShowPopupPalette; 0044 }; 0045 0046 #endif // SPENSETTINGS_H