File indexing completed on 2024-12-22 04:12:14
0001 /* 0002 * SPDX-FileCopyrightText: 2018 Sven Langkamp <sven.langkamp@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISTRANSFORMTOOLACTIVATIONCOMMAND_H 0008 #define KISTRANSFORMTOOLACTIVATIONCOMMAND_H 0009 0010 #include <QObject> 0011 #include <kritaui_export.h> 0012 #include <kundo2command.h> 0013 #include "KisViewManager.h" 0014 0015 class KRITAUI_EXPORT KisTransformToolActivationCommand : public QObject, public KUndo2Command 0016 { 0017 Q_OBJECT 0018 public: 0019 KisTransformToolActivationCommand(KisViewManager* view, KUndo2Command * parent = 0); 0020 ~KisTransformToolActivationCommand() override; 0021 0022 void redo() override; 0023 void undo() override; 0024 0025 0026 Q_SIGNALS: 0027 void requestTransformTool(); 0028 0029 0030 private: 0031 bool m_firstRedo; 0032 KisViewManager* m_view; 0033 }; 0034 0035 #endif // KISTRANSFORMTOOLACTIVATIONCOMMAND_H