File indexing completed on 2024-05-12 16:01:53
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISPRESETSHADOWUPDATER_H 0008 #define KISPRESETSHADOWUPDATER_H 0009 0010 #include <QObject> 0011 #include <QScopedPointer> 0012 #include <KoResourceCacheInterface.h> 0013 0014 class KisViewManager; 0015 0016 class KisPresetShadowUpdater : public QObject 0017 { 0018 Q_OBJECT 0019 public: 0020 KisPresetShadowUpdater(KisViewManager *view); 0021 ~KisPresetShadowUpdater(); 0022 0023 0024 public Q_SLOTS: 0025 void slotCanvasResourceChanged(int key, const QVariant & value); 0026 void slotPresetChanged(); 0027 void slotStartPresetPreparation(); 0028 0029 void slotCacheGenerationFinished(int sequenceNumber, 0030 KoResourceCacheInterfaceSP cacheInterface); 0031 0032 private: 0033 struct Private; 0034 const QScopedPointer<Private> m_d; 0035 }; 0036 0037 #endif // KISPRESETSHADOWUPDATER_H