Subversion Repositories Kolibri OS

Rev

Rev 7493 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. _ini ini = { "/sys/settings/app.ini", "Txtread" };
  2.  
  3. void LoadIniSettings()
  4. {
  5.         kfont.size.pt = ini.GetInt("FontSize", 14);
  6.         encoding      = ini.GetInt("Encoding", CH_AUTO);
  7.         curcol_scheme = ini.GetInt("ColorScheme", 2);
  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);
  12. }
  13.  
  14. void SaveIniSettings()
  15. {
  16.         ini.SetInt("FontSize", kfont.size.pt);
  17.         ini.SetInt("Encoding", encoding);
  18.         ini.SetInt("ColorScheme", curcol_scheme);
  19.         ini.SetInt("WinX", Form.left);
  20.         ini.SetInt("WinY", Form.top);
  21.         ini.SetInt("WinW", Form.width);
  22.         ini.SetInt("WinH", Form.height);
  23. }