File indexing completed on 2024-12-22 04:15:51
0001 /* 0002 * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef _PSD_CONVERTER_H_ 0007 #define _PSD_CONVERTER_H_ 0008 0009 #include <stdio.h> 0010 0011 #include <QObject> 0012 0013 #include <QFileInfo> 0014 0015 #include "kis_types.h" 0016 #include <KisImportExportErrorCode.h> 0017 0018 0019 // max number of pixels in one dimension of psd file 0020 extern const int MAX_PSD_SIZE; 0021 0022 0023 class KisDocument; 0024 0025 class PSDSaver : public QObject { 0026 0027 Q_OBJECT 0028 0029 public: 0030 0031 PSDSaver(KisDocument *doc); 0032 ~PSDSaver() override; 0033 0034 public: 0035 KisImportExportErrorCode buildFile(QIODevice &io); 0036 0037 KisImageSP image(); 0038 0039 public Q_SLOTS: 0040 0041 virtual void cancel(); 0042 0043 private: 0044 KisImageSP m_image; 0045 KisDocument *m_doc; 0046 bool m_stop; 0047 }; 0048 0049 #endif