File indexing completed on 2024-12-22 04:12:45
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Sharaf Zaman <shzam@sdf.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KISTOUCHGESTUREACTION_H_ 0008 #define __KISTOUCHGESTUREACTION_H_ 0009 0010 #include "kis_abstract_input_action.h" 0011 0012 class KisTouchGestureAction : public KisAbstractInputAction 0013 { 0014 public: 0015 enum Shortcut { 0016 UndoActionShortcut, 0017 RedoActionShortcut, 0018 ToggleCanvasOnlyShortcut, 0019 ToggleEraserMode, 0020 ResetDisplay, 0021 PreviousPresetShortcut, 0022 ColorSampler, 0023 Deselect, 0024 NextLayer, 0025 PreviousLayer, 0026 FreehandBrush, 0027 KisToolSelectContiguous, 0028 KisToolMove, 0029 KisToolTransform, 0030 }; 0031 0032 KisTouchGestureAction(); 0033 0034 void begin(int shortcut, QEvent *event) override; 0035 void end(QEvent *event) override; 0036 0037 int priority() const override; 0038 0039 private: 0040 int m_shortcut{-1}; 0041 }; 0042 0043 #endif // __KISTOUCHGESTUREACTION_H_