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).
24 lines
384 B
C++
24 lines
384 B
C++
#ifndef LOADSAVEDIALOG_H
|
|
#define LOADSAVEDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QProgressBar>
|
|
|
|
class LoadSaveDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LoadSaveDialog(const QString &message, const QString &title, QWidget* parent = nullptr);
|
|
|
|
public slots:
|
|
void SetProgress(int value);
|
|
|
|
signals:
|
|
void Cancelled();
|
|
|
|
private:
|
|
QProgressBar* bar_;
|
|
};
|
|
|
|
#endif // LOADSAVEDIALOG_H
|