-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.h
42 lines (33 loc) · 859 Bytes
/
options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef OPTIONS_H
#define OPTIONS_H
#include <QButtonGroup>
#include <QDir>
#include <QStandardPaths>
#include <QWidget>
#include <QFile>
#include <QJsonDocument>
namespace Ui {
class Options;
}
class Options : public QWidget
{
Q_OBJECT
public:
explicit Options(QWidget *parent = nullptr);
~Options();
private slots:
void on_saveButton_clicked();
void on_loadSaveButton_clicked();
void on_deleteSavesButton_clicked();
void on_saveClicked(QAbstractButton *bt);
private:
Ui::Options *ui;
void createSaveWidget(const QString& saveName);
QList<QWidget *> listOfAllSaves;
QButtonGroup *loadSaveButtonGroup;
QButtonGroup *deleteSaveButtonGroup;
void checkSaves();
QString path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
QDir dir = QDir(path);
};
#endif // OPTIONS_H