-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.class
90 lines (75 loc) · 2.99 KB
/
Global.class
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
' Gambas class file
' ### GLOBAL DECLARATIONS ###
' Background colour tests:
'PUBLIC CONST DefaultColour AS Long = &H80AAFF&
'PUBLIC CONST DefaultColour AS Long = &HFFFFFF&
'STATIC PUBLIC CONST DefaultColour AS Long = &H0055FF&
'STATIC PUBLIC CONST LogoBG AS Long = &H257CD2& 'RGB = 37:124:210; HSV = 210:210:210
'STATIC PUBLIC CONST LogoBG AS Long = &H2D96FF& 'RGB = 45:150:255; HSV = 210:210:255
STATIC PUBLIC CONST LogoBG AS Long = &H528DC8& 'RGB = 82:141:200; HSV = 210:150:200
STATIC PUBLIC CONST HTMLBG AS Long = &HDFFFFF&
STATIC PUBLIC CONST TextColour AS Long = &HFFFFFF&
' Global flags:
STATIC PUBLIC DebugMode AS Boolean
STATIC PUBLIC SimulationMode AS Boolean
STATIC PUBLIC flagStarted AS Boolean 'Start button was pressed.
STATIC PUBLIC prevForm AS Long 'Which frmMain button is active.
STATIC PUBLIC flagBUTTExec AS Boolean 'A button is executing.
' Global enums:
STATIC PUBLIC enumINSTMODE AS Long 'Install mode.
' 0 = Full-automatic
' 1 = Semi-automatic
' 2 = Advanced
STATIC PUBLIC enumPACKS AS Long 'Package selection mode.
' 0 = All packages
' 1 = By groups
' 2 = Manual
' 3 = No extras
STATIC PUBLIC enumPARTMODE AS Long 'Partitioning mode.
' 0 = Full disk
' 1 = Unpartitioned space
' 2 = GParted
' 3 = cfdisk
' 4 = Preset strategies
' 5 = No partitioning
STATIC PUBLIC enumLILOMODE AS Long 'Boot manager installation.
' 0 = Master Boot Record
' 1 = VL Boot Sector
' 2 = Floppy diskette
' 3 = Do not install
STATIC PUBLIC enumSTAGE AS Integer 'Installation stage
'0 = First stage (partitioning, package installation)
'1 = Second stage (hardware config, user management)
'System memory declarations:
STATIC PUBLIC SysMemory AS Integer
' Drive and partition declarations:
STATIC PUBLIC DiskInfo AS NEW Object[]
STATIC PUBLIC PartInfo AS NEW Object[]
STATIC PUBLIC PARTinst AS NEW Object[]
STATIC PUBLIC PARTswap AS String
STATIC PUBLIC PARTroot AS String
STATIC PUBLIC PARThome AS String
STATIC PUBLIC PARTvar AS String
STATIC PUBLIC PARTopt AS String
STATIC PUBLIC PARTtmp AS String
STATIC PUBLIC PARTboot AS String
STATIC PUBLIC PARTusr AS String
STATIC PUBLIC PARTshare AS String
'Package related stuff
STATIC PUBLIC PackageInfo AS NEW Object[]
STATIC PUBLIC PkgTotalSize AS Long = 0 'The total amount of (uncompressed) disk space that will be used when installing ALL the packages
' Process declarations:
STATIC PUBLIC tproc AS Process
'temp stuff 2 check out:
STATIC PUBLIC installDrive AS String
STATIC PUBLIC instDriveIndex AS Long
'select window exit status (set to "ok" or "canceled")
STATIC PUBLIC frmExitStatus AS String = ""
' Boot Manager variables
' STATIC PUBLIC MBRSel AS String ' MBR to use in case there is more than 1
' STATIC PUBLIC RootPart AS String ' Root Partition
' STATIC PUBLIC KernelLoc AS String ' Kernel location in root partition
' STATIC PUBLIC CONSOLENUM AS String ' The boot fb console #
'Paths for the installer to find packages and related info files
STATIC PUBLIC SOURCE AS String = "/tmp/vinstall-source/" '4 debugging and testing
'STATIC PUBLIC SOURCE AS String = "/mnt/SOURCE/" 'the real thing