-
Notifications
You must be signed in to change notification settings - Fork 0
/
Global.h
126 lines (114 loc) · 2.65 KB
/
Global.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#pragma once
// Main Class
class GlobalMain {
public:
HINSTANCE hInst; // Handle to executable
HANDLE hProcess;
HWND hWndMainWindow,
hWndSetupWindow,
hWndDialogWindow;
BOOL Debug,
NoWinPECheck,
doNotClose,
dwmEnabled;
int Page;
};
// Buttons
class GlobalButtons {
public:
HWND hBackBtn,
hCloseBtn,
hNormalBtn,
hAutoPartitionBtn,
hManualPartitionBtn;
int NormalButtonState;
BOOL BackButtonDisabled,
CloseButtonDisabled,
NormalButtonDisabled,
AutoPartButtonDisabled,
ManualPartButtonDisabled,
InstallButtonText,
RestartButtonText;
};
// Progress Bars
class GlobalProgressBar {
public:
HWND hProgressCtrlCollectingInfo,
hProgressCtrlInstalling,
hProgressCtrlRestarting;
int CollectingInfoPercentage,
InstallingPercentage,
RestartingPercentage;
};
// Application Resource Strings
class GlobalAppResStrings {
public:
std::wstring AppTitleText;
std::wstring TitleBarText;
std::wstring ProgressBarText1;
std::wstring ProgressBarText2;
std::wstring NextButtonText;
std::wstring InstallButtonText;
std::wstring RestartButtonText;
std::wstring EulaTitleText;
std::wstring ChangelogTitleText;
std::wstring PartitionTitleText;
std::wstring InstallOptionTitleText;
std::wstring CollectingInfoText;
std::wstring InstallingText;
std::wstring CopyingFilesText;
std::wstring ExpandingFilesText;
std::wstring InstallingFeaturesText;
std::wstring InstallingUpdatesText;
std::wstring InstallingTitleText;
std::wstring RestartingTitleText;
std::wstring AutoPartButtonText;
std::wstring ManualPartButtonText;
std::wstring SetupExit;
std::wstring SetupExitDuringSetup;
};
// Image installation variables
class GlobalImageInstall {
public:
BOOL NoDeploy;
int ImageIndex;
std::wstring ImagePath;
std::wstring destDrive;
std::wstring installSources;
};
// Bitmaps
class GlobalBitmaps {
public:
HBITMAP hBackground,
hFakeWindow,
hBanner,
hSmallLogo,
hBottomPanel,
hCheckmark,
hBackBtnImg1, // Back Button Bitmaps
hBackBtnImg2,
hBackBtnImg3,
hBackBtnImg4,
hCloseBtnImg1, // Close Button Bitmaps
hCloseBtnImg2,
hCloseBtnImg3,
hCloseBtnImg4,
hNormalBtnImg1, // Normal Button Bitmaps
hNormalBtnImg2,
hNormalBtnImg3,
hNormalBtnImg4,
hAutoPartBtnImg1, // Automatic Partitioning Button Bitmaps
hAutoPartBtnImg2,
hAutoPartBtnImg3,
hAutoPartBtnImg4,
hManualPartBtnImg1, // Manual Partitioning Button Bitmaps
hManualPartBtnImg2,
hManualPartBtnImg3,
hManualPartBtnImg4;
};
extern GlobalMain MainObjects;
extern GlobalButtons ButtonObjects;
extern GlobalProgressBar ProgressBarObjects;
extern GlobalAppResStrings AppResStringsObjects;
extern GlobalImageInstall ImageInstallObjects;
extern GlobalBitmaps BitmapObjects;