File indexing completed on 2024-05-12 15:56:48

0001 /*
0002  *  SPDX-FileCopyrightText: 2018 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KOSHAPEFILLRESOURCECONNECTOR_H
0008 #define KOSHAPEFILLRESOURCECONNECTOR_H
0009 
0010 #include <QObject>
0011 #include <QScopedPointer>
0012 
0013 class KoCanvasBase;
0014 
0015 class KoShapeFillResourceConnector : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit KoShapeFillResourceConnector(QObject *parent = 0);
0020     ~KoShapeFillResourceConnector();
0021 
0022     void connectToCanvas(KoCanvasBase *canvas);
0023     void disconnect();
0024 
0025 private Q_SLOTS:
0026     void slotCanvasResourceChanged(int key, const QVariant &value);
0027 
0028 private:
0029     struct Private;
0030     QScopedPointer<Private> m_d;
0031 };
0032 
0033 #endif // KOSHAPEFILLRESOURCECONNECTOR_H