forked from PortableApps/Toucan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
87 lines (76 loc) · 3.34 KB
/
settings.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/////////////////////////////////////////////////////////////////////////////////
// Author: Steven Lamerton
// Copyright: Copyright (C) 2008 - 2010 Steven Lamerton
// License: GNU GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
/////////////////////////////////////////////////////////////////////////////////
#ifndef H_SETTINGS
#define H_SETTINGS
#include "basicfunctions.h"
#include <wx/string.h>
class wxFileConfig;
class Settings{
public:
Settings(wxString path);
~Settings();
bool TransferToFile();
bool TransferFromFile();
wxFileConfig* GetConfig() { return config; }
void SetFont(const wxString& Font) {this->m_Font = Font;}
void SetHeight(const double& Height) {this->m_Height = Height;}
void SetLanguageCode(const wxString& LanguageCode) {this->m_LanguageCode = LanguageCode;}
void SetPosition(const wxString& Position) {this->m_Position = Position;}
void SetRememberBackup(const bool& RememberBackup) {this->m_RememberBackup = RememberBackup;}
void SetRememberSecure(const bool& RememberSecure) {this->m_RememberSecure = RememberSecure;}
void SetRememberSync(const bool& RememberSync) {this->m_RememberSync = RememberSync;}
void SetTabStyle(const wxString& TabStyle) {this->m_TabStyle = TabStyle;}
void SetWidth(const double& Width) {this->m_Width = Width;}
void SetX(const double& X) {this->m_X = X;}
void SetY(const double& Y) {this->m_Y = Y;}
void SetEnableTooltips(const bool& EnableTooltips) {this->m_EnableTooltips = EnableTooltips;}
void SetSmallBorders(const bool& SmallBorders) {this->m_SmallBorders = SmallBorders;}
const bool& GetDisableLog() const {return m_DisableLog;}
const bool& GetDisableStream() const {return m_DisableStream;}
const wxString& GetFont() const {return m_Font;}
const double& GetHeight() const {return m_Height;}
const wxString& GetLanguageCode() const {return m_LanguageCode;}
const wxString& GetPosition() const {return m_Position;}
const bool& GetRememberBackup() const {return m_RememberBackup;}
const bool& GetRememberSecure() const {return m_RememberSecure;}
const bool& GetRememberSync() const {return m_RememberSync;}
const wxString& GetTabStyle() const {return m_TabStyle;}
const double& GetWidth() const {return m_Width;}
const double& GetX() const {return m_X;}
const double& GetY() const {return m_Y;}
const bool& GetEnableTooltips() const {return m_EnableTooltips;}
const bool& GetSmallBorders() const {return m_SmallBorders;}
void SetProgressHeight(const double& Height) {this->m_ProgressHeight = Height;}
void SetProgressWidth(const double& Width) {this->m_ProgressWidth = Width;}
void SetProgressX(const double& X) {this->m_ProgressX = X;}
void SetProgressY(const double& Y) {this->m_ProgressY = Y;}
const double& GetProgressHeight() const {return m_ProgressHeight;}
const double& GetProgressWidth() const {return m_ProgressWidth;}
const double& GetProgressX() const {return m_ProgressX;}
const double& GetProgressY() const {return m_ProgressY;}
private:
wxString m_Position;
wxString m_TabStyle;
wxString m_LanguageCode;
wxString m_Font;
double m_Height;
double m_Width;
double m_X;
double m_Y;
bool m_RememberSync;
bool m_RememberBackup;
bool m_RememberSecure;
bool m_DisableStream;
bool m_DisableLog;
bool m_EnableTooltips;
bool m_SmallBorders;
wxFileConfig* config;
double m_ProgressHeight;
double m_ProgressWidth;
double m_ProgressX;
double m_ProgressY;
};
#endif