Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2009 Boudewijn Rempt <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _PSD_LOADER_H_
#define _PSD_LOADER_H_
#include <stdio.h>
#include <QObject>
#include "kis_types.h"
#include <KisImportExportErrorCode.h>
class KisDocument;
class KisImportUserFeedbackInterface;
class PSDLoader : public QObject {
Q_OBJECT
public:
PSDLoader(KisDocument *doc, KisImportUserFeedbackInterface *feedbackInterface);
~PSDLoader() override;
KisImportExportErrorCode buildImage(QIODevice &io);
KisImageSP image();
public Q_SLOTS:
virtual void cancel();
private:
KisImportExportErrorCode decode(QIODevice &io);
private:
KisImageSP m_image;
KisDocument *m_doc;
bool m_stop;
KisImportUserFeedbackInterface *m_feedbackInterface {nullptr};
};
#endif