Go4GUI
Class TGo4QSettings
- class TGo4QSettings
- derived from QSettings
Extends the usual QSettings by a global setup for the
location of the settings file. May switch load/save between
the user home directory, and the current directory
Field Summary |
private static bool | fgbUSEMYLOCATION if true, settings will be put to location specified in mypath string and read there.
|
private static QString | fgxHOMESETTINGSNAME This defines the name of the default settings file in $HOME/.qt Default is "/Go4", yielding a file go4rc. |
private static QString | fgxSETTINGSLOCATION The actual path to the settings |
private static QString | fgxSETTINGSNAME This is the name of the currently activated settings prepath e.g. |
fgbUSEMYLOCATION
private static bool fgbUSEMYLOCATION
- if true, settings will be put to location specified in mypath string and read there.
Otherwise use
QSettings defaultpaths
fgxHOMESETTINGSNAME
private static QString fgxHOMESETTINGSNAME
- This defines the name of the default settings file
in $HOME/.qt Default is "/Go4", yielding a file go4rc.
fgxSETTINGSLOCATION
private static QString fgxSETTINGSLOCATION
- The actual path to the settings
fgxSETTINGSNAME
private static QString fgxSETTINGSNAME
- This is the name of the currently activated settings prepath
e.g. "Go4/" or "Go4local/". Will cause differrent
filenames for home settings or current dir/user location settings
this is necessary to avoid interfereances.
TGo4QSettings
public TGo4QSettings()
TGo4QSettings
public TGo4QSettings(Format format)
~TGo4QSettings
public virtual synchronized ~TGo4QSettings()
DumpSettingsLocation
public void DumpSettingsLocation()
- Printout where the settings are saved
GetSettingsName
public const static const QString& GetSettingsName()
GetUserPath
public const static const QString& GetUserPath()
SetHomeSettingsFile
public static void SetHomeSettingsFile(const QString& name)
SetSettingsPath
protected void SetSettingsPath()
- Sets the path of this instance according to static settings.
SetToCurrentDir
public static void SetToCurrentDir(bool on)
SetUserPath
public static void SetUserPath(const QString& mypath)
UsesUserPath
public static bool UsesUserPath()
30-06-2005