18#ifndef OBJECTSAVELOADER_H
19#define OBJECTSAVELOADER_H
27#include "pencilerror.h"
47 Status error()
const {
return mError; }
51 Object* recoverUnsavedProject(
QString projectIntermediatePath);
54 void progressChanged(
int progress);
55 void progressRangeChanged(
int maxValue);
62 bool isArchiveFormat(
const QString& fileName)
const;
72 void handleOpenProjectError(Status::ErrorCode,
const DebugDetails&);
75 void deleteBackupFile(
const QString& fileName);
76 int countExistingBackups(
const QString& fileName)
const;
78 void progressForward();
81 bool isProjectRecoverable(
const QString& projectFolder);
86 QString recoverLayerName(Layer::LAYER_TYPE,
int index);
87 int layerIndexFromFilename(
const QString& filename);
88 int framePosFromFilename(
const QString& filename);
91 Status mError = Status::OK;
94 int mCurrentProgress = 0;
95 int mMaxProgressValue = 100;
Status rebuildMainXML(Object *object)
Create a new main.xml based on the png/vec filenames left in the data folder.
Status rebuildLayerXmlTag(QDomDocument &doc, QDomElement &elemObject, const int layerIndex, const QStringList &frames)
Rebuild a layer xml tag.
QObject * parent() const const