forked from kmkolasinski/AwesomeBump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformsettingsfield.h
47 lines (39 loc) · 1.07 KB
/
formsettingsfield.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
43
44
45
46
47
#ifndef FORMSETTINGSFIELD_H
#define FORMSETTINGSFIELD_H
#include <QWidget>
#include <QDir>
#include <QFile>
#include <QDebug>
#include <QSettings>
namespace Ui {
class FormSettingsField;
}
class FormSettingsField : public QWidget
{
Q_OBJECT
public:
// Create new Settings
FormSettingsField(QString _name,QString _description, QWidget *parent = 0);
// Load Settings From File
FormSettingsField(QString _config_name, QWidget *parent = 0);
~FormSettingsField();
public slots:
void deleteSettings();// remove files
void saveSettings(); // copy config.ini file to current settings file
void loadSettings(); // copy settings file to main config.ini file
void dataChanged();
void nameChanged(QString text);
void resetBackGroundColor();
signals:
void emitDeleteSettings(FormSettingsField*);
void emitSaveSettings();
void emitLoadSettings(FormSettingsField*);
private:
Ui::FormSettingsField *ui;
QString settingsPath;
QString name;
QString description;
public:
static int settingsGlobalID;
};
#endif // FORMSETTINGSFIELD_H