Subversion Repositories Kolibri OS

Rev

Rev 7872 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7466 leency 1
_ini ini = { "/sys/settings/app.ini", "Txtread" };
5819 leency 2
 
3
void LoadIniSettings()
4
{
7889 leency 5
	kfont.size.pt = ini.GetInt("FontSize", 13);
7872 leency 6
	encoding      = ini.GetInt("Encoding", CH_AUTO);
7493 leency 7
	curcol_scheme = ini.GetInt("ColorScheme", 2);
7051 leency 8
	Form.left     = ini.GetInt("WinX", 150);
9
	Form.top      = ini.GetInt("WinY", 50);
10
	Form.width    = ini.GetInt("WinW", 640);
11
	Form.height   = ini.GetInt("WinH", 560);
5819 leency 12
}
13
 
14
void SaveIniSettings()
15
{
7051 leency 16
	ini.SetInt("FontSize", kfont.size.pt);
17
	ini.SetInt("Encoding", encoding);
7466 leency 18
	ini.SetInt("ColorScheme", curcol_scheme);
7051 leency 19
	ini.SetInt("WinX", Form.left);
20
	ini.SetInt("WinY", Form.top);
21
	ini.SetInt("WinW", Form.width);
22
	ini.SetInt("WinH", Form.height);
5819 leency 23
}