Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4QSettings Class Reference

Extends the usual QSettings by a global setup for the location of the settings file. More...

#include <TGo4QSettings.h>

List of all members.

Public Methods

 TGo4QSettings ()
 TGo4QSettings (Format format)
virtual ~TGo4QSettings ()
void DumpSettingsLocation ()
 Printout where the settings are saved. More...


Static Public Methods

void SetToCurrentDir (bool on)
void SetUserPath (const QString &mypath)
void SetHomeSettingsFile (const QString &name)
bool UsesUserPath ()
const QString & GetUserPath ()
const QString & GetSettingsName ()

Protected Methods

void SetSettingsPath ()
 Sets the path of this instance according to static settings. More...


Static Private Attributes

bool fgbUSEMYLOCATION = false
 if true, settings will be put to location specified in mypath string and read there. More...

QString fgxSETTINGSLOCATION = ""
 The actual path to the settings. More...

QString fgxHOMESETTINGSNAME = "/go4"
 This defines the name of the default settings file in $HOME/.qt Default is "/Go4", yielding a file go4rc. More...

QString fgxSETTINGSNAME = "/go4"
 This is the name of the currently activated settings prepath e.g. More...


Detailed Description

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

Definition at line 30 of file TGo4QSettings.h.


Constructor & Destructor Documentation

TGo4QSettings::TGo4QSettings  
 

Definition at line 27 of file TGo4QSettings.cpp.

References SetSettingsPath().

TGo4QSettings::TGo4QSettings Format    format
 

Definition at line 32 of file TGo4QSettings.cpp.

References SetSettingsPath().

TGo4QSettings::~TGo4QSettings   [virtual]
 

Definition at line 38 of file TGo4QSettings.cpp.


Member Function Documentation

void TGo4QSettings::DumpSettingsLocation  
 

Printout where the settings are saved.

Definition at line 57 of file TGo4QSettings.cpp.

References fgxSETTINGSLOCATION, and fgxSETTINGSNAME.

Referenced by TGo4MainWindow::init(), and TGo4MainWindow::saveOptions().

void TGo4QSettings::SetToCurrentDir bool    on [static]
 

Definition at line 42 of file TGo4QSettings.cpp.

References fgbUSEMYLOCATION, fgxHOMESETTINGSNAME, fgxSETTINGSLOCATION, and fgxSETTINGSNAME.

Referenced by main().

void TGo4QSettings::SetUserPath const QString &    mypath [inline, static]
 

Definition at line 42 of file TGo4QSettings.h.

References fgbUSEMYLOCATION, fgxHOMESETTINGSNAME, fgxSETTINGSLOCATION, and fgxSETTINGSNAME.

Referenced by main().

void TGo4QSettings::SetHomeSettingsFile const QString &    name [inline, static]
 

Definition at line 49 of file TGo4QSettings.h.

References fgxHOMESETTINGSNAME.

Referenced by main().

bool TGo4QSettings::UsesUserPath   [inline, static]
 

Definition at line 55 of file TGo4QSettings.h.

References fgbUSEMYLOCATION.

Referenced by TGo4MainWindow::init(), and TGo4MainWindow::saveOptions().

const QString& TGo4QSettings::GetUserPath   [inline, static]
 

Definition at line 57 of file TGo4QSettings.h.

References fgxSETTINGSLOCATION.

Referenced by TGo4MainWindow::init(), main(), and TGo4MainWindow::saveOptions().

const QString& TGo4QSettings::GetSettingsName   [inline, static]
 

Definition at line 59 of file TGo4QSettings.h.

References fgxSETTINGSNAME.

Referenced by TGo4MainWindow::init(), TGo4MainWindow::InputTerminalParametersSlot(), TGo4ScriptSlots::LaunchAnalysis(), main(), TGo4AnalysisWindow::ReadHistorySize(), and TGo4MainWindow::saveOptions().

void TGo4QSettings::SetSettingsPath   [protected]
 

Sets the path of this instance according to static settings.

Definition at line 69 of file TGo4QSettings.cpp.

References fgxSETTINGSLOCATION.

Referenced by TGo4QSettings().


Member Data Documentation

bool TGo4QSettings::fgbUSEMYLOCATION = false [static, private]
 

if true, settings will be put to location specified in mypath string and read there.

Otherwise use QSettings defaultpaths

Definition at line 22 of file TGo4QSettings.cpp.

Referenced by SetToCurrentDir(), SetUserPath(), and UsesUserPath().

QString TGo4QSettings::fgxSETTINGSLOCATION = "" [static, private]
 

The actual path to the settings.

Definition at line 23 of file TGo4QSettings.cpp.

Referenced by DumpSettingsLocation(), GetUserPath(), SetSettingsPath(), SetToCurrentDir(), and SetUserPath().

QString TGo4QSettings::fgxHOMESETTINGSNAME = "/go4" [static, private]
 

This defines the name of the default settings file in $HOME/.qt Default is "/Go4", yielding a file go4rc.

Definition at line 25 of file TGo4QSettings.cpp.

Referenced by SetHomeSettingsFile(), SetToCurrentDir(), and SetUserPath().

QString TGo4QSettings::fgxSETTINGSNAME = "/go4" [static, private]
 

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.

Definition at line 24 of file TGo4QSettings.cpp.

Referenced by DumpSettingsLocation(), GetSettingsName(), SetToCurrentDir(), and SetUserPath().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:51 2005 for Go4-v2.10-5 by doxygen1.2.15