-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwxCrafterCBSettings.h
43 lines (35 loc) · 983 Bytes
/
wxCrafterCBSettings.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
#ifndef WXCRAFTERCBSETTINGS_H
#define WXCRAFTERCBSETTINGS_H
#include <wx/string.h>
#include "wxcLib/json_node.h"
class wxCrafterCBSettings
{
wxString m_wxcPath;
wxRect m_settingsDialogRect;
public:
void SetWxcPath(const wxString& wxcPath) {
this->m_wxcPath = wxcPath;
}
const wxString& GetWxcPath() const {
return m_wxcPath;
}
void SetSettingsDialogRect(const wxRect& settingsDialogRect) {
this->m_settingsDialogRect = settingsDialogRect;
}
const wxRect& GetSettingsDialogRect() const {
return m_settingsDialogRect;
}
wxCrafterCBSettings();
virtual ~wxCrafterCBSettings();
void ToJSON(JSONElement &json) const;
void FromJSON(const JSONElement &json);
/**
* @brief save the configuration to file
*/
wxCrafterCBSettings& Load();
/**
* @brief save the configuration to the file system
*/
wxCrafterCBSettings& Save();
};
#endif // WXCRAFTERCBSETTINGS_H