File indexing completed on 2024-05-12 15:59:14
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2013 Camilla Boemann <cbo@boemann.dk> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISSELECTIONEXTRAS_H 0008 #define KISSELECTIONEXTRAS_H 0009 0010 #include <QObject> 0011 0012 class KisViewManager; 0013 0014 // This class prvides some extra kisselectionmanager stuff that in krita prober is in plugins 0015 class KisSelectionExtras : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 KisSelectionExtras(KisViewManager *view); 0020 virtual ~KisSelectionExtras(); 0021 0022 Q_INVOKABLE void grow(qint32 xradius, qint32 yradius); 0023 Q_INVOKABLE void shrink(qint32 xradius, qint32 yradius, bool edge_lock); 0024 Q_INVOKABLE void border(qint32 xradius, qint32 yradius); 0025 Q_INVOKABLE void feather(qint32 radius); 0026 0027 private: 0028 KisViewManager *m_view; 0029 }; 0030 0031 #endif // KISSELECTIONEXTRAS_H