Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_safe_document_loader.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SAFE_DOCUMENT_LOADER_H
8#define __KIS_SAFE_DOCUMENT_LOADER_H
9
10#include <QObject>
11#include "kis_types.h"
12#include "kritaui_export.h"
13
14class KRITAUI_EXPORT KisSafeDocumentLoader : public QObject
15{
16 Q_OBJECT
17public:
18
19 KisSafeDocumentLoader(const QString &path = "", QObject *parent = 0);
20 ~KisSafeDocumentLoader() override;
21
22 void setPath(const QString &path);
23 void reloadImage();
24private Q_SLOTS:
25 void fileChanged(QString);
26 void slotFileExistsStateChanged(const QString &path, bool fileExists);
27 void fileChangedCompressed(bool sync = false);
28 void delayedLoadStart();
29
30Q_SIGNALS:
31 void loadingFinished(KisPaintDeviceSP paintDevice, qreal xRes, qreal yRes, const QSize &size);
33 void fileExistsStateChanged(bool fileExists);
34
35private:
36 struct Private;
37 Private * const m_d;
38};
39
40#endif /* __KIS_SAFE_DOCUMENT_LOADER_H */
void fileExistsStateChanged(bool fileExists)
void loadingFinished(KisPaintDeviceSP paintDevice, qreal xRes, qreal yRes, const QSize &size)