Refactor logic for reading and writing application and session settings:

* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
This commit is contained in:
Ansgar Becker
2012-08-19 10:55:08 +00:00
parent bab15cf16b
commit 90ab0b6cf1
26 changed files with 1593 additions and 1461 deletions

View File

@ -122,7 +122,6 @@ end;
destructor TfrmRoutineEditor.Destroy;
begin
// Store GUI setup
OpenRegistry;
Mainform.SaveListSetup(listParameters);
inherited;
end;