18#ifndef OBJECTSAVELOADER_H
19#define OBJECTSAVELOADER_H
27#include "pencilerror.h"
48 Status error()
const {
return mError; }
52 Object* recoverUnsavedProject(
QString projectIntermediatePath);
55 void progressChanged(
int progress);
56 void progressRangeChanged(
int maxValue);
64 bool isArchiveFormat(
const QString& fileName)
const;
74 void handleOpenProjectError(Status::ErrorCode,
const DebugDetails&);
77 void deleteBackupFile(
const QString& fileName);
78 int countExistingBackups(
const QString& fileName)
const;
80 void progressForward();
83 bool isProjectRecoverable(
const QString& projectFolder);
88 QString recoverLayerName(Layer::LAYER_TYPE,
int index);
89 int layerIndexFromFilename(
const QString& filename);
90 int framePosFromFilename(
const QString& filename);
93 Status mError = Status::OK;
96 int mCurrentProgress = 0;
97 int mMaxProgressValue = 100;
Status rebuildMainXML(Object *object)
Create a new main.xml based on the png/vec filenames left in the data folder.
Status copyDir(const QDir src, const QDir dst)
Copy a directory to another directory recursively (depth-first).
Status rebuildLayerXmlTag(QDomDocument &doc, QDomElement &elemObject, const int layerIndex, const QStringList &frames)
Rebuild a layer xml tag.
QObject * parent() const const