Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_import_catcher.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_IMPORT_CATCHER_H_
8#define KIS_IMPORT_CATCHER_H_
9
10#include <QObject>
11
12#include "kritaui_export.h"
13#include <kis_types.h>
14
15class KisViewManager;
16
26class KRITAUI_EXPORT KisImportCatcher : QObject
27{
28
29 Q_OBJECT
30
31public:
32
33 KisImportCatcher(const QString &url, KisViewManager* view, const QString &layerType);
34 ~KisImportCatcher() override;
35
36 int numLayersImported() const;
37
38 static void adaptClipToImageColorSpace(KisPaintDeviceSP dev, KisImageSP image);
39
40private Q_SLOTS:
41 void slotLoadingFinished();
42
43private:
44 void deleteMyself();
45
46private:
47
48 struct Private;
49 Private* const m_d;
50};
51
52#endif