Implemented the file dialog, save progress dialog, and separate thread to save in (saving needs to be done in a separate thread so the main/GUI thread doesn't get blocked).
28 lines
361 B
C++
28 lines
361 B
C++
#ifndef PROJECTSAVEMANAGER_H
|
|
#define PROJECTSAVEMANAGER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "project.h"
|
|
|
|
class ProjectSaveManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ProjectSaveManager(Project* project);
|
|
|
|
public slots:
|
|
void Start();
|
|
|
|
signals:
|
|
void ProgressChanged(int);
|
|
|
|
void Finished();
|
|
|
|
private:
|
|
Project* project_;
|
|
|
|
};
|
|
|
|
#endif // PROJECTSAVEMANAGER_H
|