Rev 7493 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7493 | Rev 7872 | ||
---|---|---|---|
1 | _ini ini = { "/sys/settings/app.ini", "Txtread" }; |
1 | _ini ini = { "/sys/settings/app.ini", "Txtread" }; |
2 | 2 | ||
3 | void LoadIniSettings() |
3 | void LoadIniSettings() |
4 | { |
4 | { |
5 | kfont.size.pt = ini.GetInt("FontSize", 14); |
5 | kfont.size.pt = ini.GetInt("FontSize", 14); |
6 | encoding = ini.GetInt("Encoding", CH_CP866); |
6 | encoding = ini.GetInt("Encoding", CH_AUTO); |
7 | curcol_scheme = ini.GetInt("ColorScheme", 2); |
7 | curcol_scheme = ini.GetInt("ColorScheme", 2); |
8 | Form.left = ini.GetInt("WinX", 150); |
8 | Form.left = ini.GetInt("WinX", 150); |
9 | Form.top = ini.GetInt("WinY", 50); |
9 | Form.top = ini.GetInt("WinY", 50); |
10 | Form.width = ini.GetInt("WinW", 640); |
10 | Form.width = ini.GetInt("WinW", 640); |
11 | Form.height = ini.GetInt("WinH", 560); |
11 | Form.height = ini.GetInt("WinH", 560); |
12 | } |
12 | } |
13 | 13 | ||
14 | void SaveIniSettings() |
14 | void SaveIniSettings() |
15 | { |
15 | { |
16 | ini.SetInt("FontSize", kfont.size.pt); |
16 | ini.SetInt("FontSize", kfont.size.pt); |
17 | ini.SetInt("Encoding", encoding); |
17 | ini.SetInt("Encoding", encoding); |
18 | ini.SetInt("ColorScheme", curcol_scheme); |
18 | ini.SetInt("ColorScheme", curcol_scheme); |
19 | ini.SetInt("WinX", Form.left); |
19 | ini.SetInt("WinX", Form.left); |
20 | ini.SetInt("WinY", Form.top); |
20 | ini.SetInt("WinY", Form.top); |
21 | ini.SetInt("WinW", Form.width); |
21 | ini.SetInt("WinW", Form.width); |
22 | ini.SetInt("WinH", Form.height); |
22 | ini.SetInt("WinH", Form.height); |
23 | } |
23 | } |