v2.10-0 (21000JUN2005)

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 boolfgbUSEMYLOCATION
          if true, settings will be put to location specified in mypath string and read there.
 private static QStringfgxHOMESETTINGSNAME
          This defines the name of the default settings file
in $HOME/.qt Default is "/Go4", yielding a file go4rc.
 private static QStringfgxSETTINGSLOCATION
          The actual path to the settings
 private static QStringfgxSETTINGSNAME
          This is the name of the currently activated settings prepath
e.g.

Constructor Summary
TGo4QSettings()
           
TGo4QSettings(Format format)
           

Destructor Summary
 virtual synchronized ~TGo4QSettings()
           

Method Summary
 voidDumpSettingsLocation()
          Printout where the settings are saved
 const static const QString&GetSettingsName()
           
 const static const QString&GetUserPath()
           
 static voidSetHomeSettingsFile(const QString& name)
           
 protected voidSetSettingsPath()
          Sets the path of this instance according to static settings.
 static voidSetToCurrentDir(bool on)
           
 static voidSetUserPath(const QString& mypath)
           
 static boolUsesUserPath()
           

Field Detail

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.
Constructor Detail

TGo4QSettings

public TGo4QSettings()

TGo4QSettings

public TGo4QSettings(Format format)
Method Detail

~TGo4QSettings

public virtual synchronized ~TGo4QSettings()
Method Detail

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()

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005