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: 2013 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __KIS_SAFE_DOCUMENT_LOADER_H
#define __KIS_SAFE_DOCUMENT_LOADER_H
#include <QObject>
#include "kis_types.h"
#include "kritaui_export.h"
class KRITAUI_EXPORT KisSafeDocumentLoader : public QObject
{
Q_OBJECT
public:
KisSafeDocumentLoader(const QString &path = "", QObject *parent = 0);
~KisSafeDocumentLoader() override;
void setPath(const QString &path);
void reloadImage();
private Q_SLOTS:
void fileChanged(QString);
void slotFileExistsStateChanged(const QString &path, bool fileExists);
void fileChangedCompressed(bool sync = false);
void delayedLoadStart();
Q_SIGNALS:
void loadingFinished(KisPaintDeviceSP paintDevice, qreal xRes, qreal yRes, const QSize &size);
void loadingFailed();
void fileExistsStateChanged(bool fileExists);
private:
struct Private;
Private * const m_d;
};
#endif /* __KIS_SAFE_DOCUMENT_LOADER_H */