File indexing completed on 2024-05-26 04:32:54
0001 /* 0002 * SPDX-FileCopyrightText: 2013 Lukáš Tvrdý <lukast.dev@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef OFFSETIMAGE_H 0008 #define OFFSETIMAGE_H 0009 0010 #include <QVariant> 0011 0012 #include <KisActionPlugin.h> 0013 #include <kis_types.h> 0014 #include <kis_node.h> 0015 0016 class KUndo2MagicString; 0017 0018 0019 class OffsetImage : public KisActionPlugin 0020 { 0021 Q_OBJECT 0022 public: 0023 OffsetImage(QObject *parent, const QVariantList &); 0024 ~OffsetImage() override; 0025 0026 public Q_SLOTS: 0027 0028 void slotOffsetImage(); 0029 void slotOffsetLayer(); 0030 0031 void offsetImpl(const KUndo2MagicString &actionName, KisNodeSP node, const QPoint &offsetPoint); 0032 void offsetImpl(const KUndo2MagicString &actionName, KisNodeList nodes, const QPoint &offsetPoint); 0033 private: 0034 QRect offsetWrapRect(); 0035 0036 }; 0037 0038 #endif // OFFSETIMAGE_H