implemented saving UI

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).
This commit is contained in:
itsmattkc
2020-01-12 16:26:05 +11:00
parent ca89e2b818
commit 00b5672639
14 changed files with 274 additions and 20 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "projectsavemanager.h"
ProjectSaveManager::ProjectSaveManager(Project *project) :
project_(project)
{
}
void ProjectSaveManager::Start()
{
int prog = 0;
do {
prog += 10;
emit ProgressChanged(prog);
Sleep(200);
} while (prog < 100);
emit Finished();
}