Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class 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 Member Functions

 TGo4QSettings ()
 TGo4QSettings (Format format)
virtual ~TGo4QSettings ()
void DumpSettingsLocation ()
 Printout where the settings are saved.
void setBool (const QString &name, bool value=true)
bool getBool (const QString &name, bool def=true)
void setInt (const QString &name, int value=0)
int getInt (const QString &name, int def=0)
void setStr (const QString &name, const QString &value="")
QString getStr (const QString &name, const QString &value="")
void setBasicSettings ()
void getBasicSettings ()
void setAppStyle (const QString &)
QString getAppStyle ()
void setClientName (const QString &)
QString getClientName ()
void setClientNode (const QString &)
QString getClientNode ()
void setClientDir (const QString &)
QString getClientDir ()
void setClientExec (const QString &)
QString getClientExec ()
void setClientShellMode (int)
QString getClientShell ()
int getClientShellMode ()
void setClientTermMode (int)
int getClientTermMode ()
QString getClientTerm ()
void setClientIsServer (bool on)
bool getClientIsServer ()
void setClientPort (int)
int getClientPort ()
void setClientControllerMode (int)
int getClientControllerMode ()
void setClientDefaultPass (bool)
bool getClientDefaultPass ()
void setTermHistorySize (int sz)
int getTermHistorySize ()
void setHServName (const QString &)
QString getHServName ()
void setHServBase (const QString &)
QString getHServBase ()
void setHServFilter (const QString &)
QString getHServFilter ()
void setHServPort (int port)
int getHServPort ()
void setPadCrosshair (bool on)
bool getPadCrosshair ()
void setPadEventStatus (bool on)
bool getPadEventStatus ()
void setCanvasColor (int red, int green, int blue)
void getCanvasColor (int &red, int &green, int &blue)
void setOptStat (int value)
int getOptStat ()
void setStatBoxVisible (bool on=true)
bool getStatBoxVisible ()
void setStatBoxErrors (bool on=true)
bool getStatBoxErrors ()
void setCloneFlag (bool on=true)
bool getCloneFlag ()
void setDrawTimeFlag (bool on=true)
bool getDrawTimeFlag ()
void setDrawDateFlag (bool on=true)
bool getDrawDateFlag ()
void setDrawItemFlag (bool on=true)
bool getDrawItemFlag ()
void storeGeometry (QMainWindow *w)
void restoreGeometry (QMainWindow *w)
void storePanelSize (QWidget *w)
void restorePanelSize (QWidget *w)
void setBrowserColumn (const char *name, int width)
int getBrowserColumn (const char *name, int defwidth)
void setHistName (const QString &value)
QString getHistName ()
void setHistType (int value)
int getHistType ()
void setHistAxisPars (int naxis, int npoints, double min, double max)
void getHistAxisPars (int naxis, int &npoints, double &min, double &max)
void setFetchDataWhenDraw (bool on=true)
bool getFetchDataWhenDraw ()
void setFetchDataWhenCopy (bool on=true)
bool getFetchDataWhenCopy ()
void setFetchDataWhenSave (bool on=true)
bool getFetchDataWhenSave ()
void setRemoteFileSett (const QString &hostname, const QString &filename, const QString &protocol)
void getRemoteFileSett (QString &hostname, QString &filename, QString &protocol)
void setPrinterSett (const QString &name, const QString &cmd)
void getPrinterSett (QString &name, QString &cmd)
void setMbsMonitorNode (const QString &name)
 some things for the mbs monitor dockwindow:
QString getMbsMonitorNode ()
void setMbsMonitorFreq (int secs)
int getMbsMonitorFreq ()
void setMbsMonitorBins (int num)
int getMbsMonitorBins ()
void setMbsMonitorTrend (bool on=true)
bool getMbsMonitorTrend ()
void setMbsMonitorMore (bool on=true)
bool getMbsMonitorMore ()
void setMbsMonitorMonitorActive (bool on=true)
bool getMbsMonitorMonitorActive ()
void setMbsMonitorBackwardsTrending (bool on=true)
bool getMbsMonitorBackwardsTrending ()
void setDabcMonitorNode (const QString &name)
 some things for the DABC monitor dockwindow:
QString getDabcMonitorNode ()
void setDabcMonitorFreq (int secs)
int getDabcMonitorFreq ()
void setDabcMonitorBins (int num)
int getDabcMonitorBins ()
void setDabcMonitorBackwardsTrending (bool on=true)
bool getDabcMonitorBackwardsTrending ()
QStringList getCommandsHistoryGUI ()
 implement history for gui commandline
void setCommandsHistoryGUI (QStringList &commands)

Static Public Member Functions

static void SetToCurrentDir (bool on)
static void SetUserPath (const QString &mypath)
static void SetHomeSettingsFile (const QString &name)
static bool UsesUserPath ()
static const QString & GetUserPath ()
static const QString & GetSettingsName ()
static QString getSettingsFileName ()
static void RestoreSettings (QMainWindow *tgt)
static void StoreSettings (QMainWindow *src)

Protected Member Functions

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

Static Private Attributes

static bool fgbUSEMYLOCATION = false
 if true, settings will be put to location specified in mypath string and read there.
static QString fgxSETTINGSLOCATION = ""
 The actual path to the settings.
static QString fgxHOMESETTINGSNAME = "/go4"
 This defines the name of the default settings file in $HOME/.qt Default is "/Go4", yielding a file go4rc.
static QString fgxSETTINGSNAME = "/go4"
 This is the name of the currently activated settings prepath e.g.


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 33 of file TGo4QSettings.h.


Constructor & Destructor Documentation

TGo4QSettings::TGo4QSettings  ) 
 

Definition at line 41 of file TGo4QSettings.cpp.

References SetSettingsPath().

TGo4QSettings::TGo4QSettings Format  format  ) 
 

Definition at line 46 of file TGo4QSettings.cpp.

References SetSettingsPath().

TGo4QSettings::~TGo4QSettings  )  [virtual]
 

Definition at line 52 of file TGo4QSettings.cpp.


Member Function Documentation

void TGo4QSettings::DumpSettingsLocation  ) 
 

Printout where the settings are saved.

Definition at line 67 of file TGo4QSettings.cpp.

References fgbUSEMYLOCATION, fgxSETTINGSLOCATION, and fgxSETTINGSNAME.

Referenced by TGo4MainWindow::SaveSettingsSlot(), and TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::SetToCurrentDir bool  on  )  [static]
 

Definition at line 56 of file TGo4QSettings.cpp.

References fgbUSEMYLOCATION, fgxHOMESETTINGSNAME, fgxSETTINGSLOCATION, and fgxSETTINGSNAME.

Referenced by main().

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

Definition at line 45 of file TGo4QSettings.h.

References fgbUSEMYLOCATION, fgxHOMESETTINGSNAME, fgxSETTINGSLOCATION, and fgxSETTINGSNAME.

Referenced by main().

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

Definition at line 52 of file TGo4QSettings.h.

References fgxHOMESETTINGSNAME.

Referenced by main().

static bool TGo4QSettings::UsesUserPath  )  [inline, static]
 

Definition at line 58 of file TGo4QSettings.h.

References fgbUSEMYLOCATION.

Referenced by getSettingsFileName().

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

Definition at line 60 of file TGo4QSettings.h.

References fgxSETTINGSLOCATION.

Referenced by getSettingsFileName(), and main().

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

Definition at line 62 of file TGo4QSettings.h.

References fgxSETTINGSNAME.

Referenced by getAppStyle(), getBasicSettings(), getBool(), getBrowserColumn(), getCanvasColor(), getClientControllerMode(), getClientDefaultPass(), getClientDir(), getClientExec(), getClientIsServer(), getClientName(), getClientNode(), getClientPort(), getClientShell(), getClientTerm(), getCloneFlag(), getCommandsHistoryGUI(), getDabcMonitorBackwardsTrending(), getDabcMonitorBins(), getDabcMonitorFreq(), getDabcMonitorNode(), getDrawDateFlag(), getDrawItemFlag(), getDrawTimeFlag(), getFetchDataWhenCopy(), getFetchDataWhenDraw(), getFetchDataWhenSave(), getHistAxisPars(), getHistName(), getHistType(), getHServBase(), getHServFilter(), getHServName(), getHServPort(), getInt(), getMbsMonitorBackwardsTrending(), getMbsMonitorBins(), getMbsMonitorFreq(), getMbsMonitorMonitorActive(), getMbsMonitorMore(), getMbsMonitorNode(), getMbsMonitorTrend(), getOptStat(), getPadCrosshair(), getPadEventStatus(), getPrinterSett(), getRemoteFileSett(), getStatBoxErrors(), getStatBoxVisible(), getStr(), getTermHistorySize(), main(), restoreGeometry(), restorePanelSize(), setAppStyle(), setBasicSettings(), setBool(), setBrowserColumn(), setCanvasColor(), setClientControllerMode(), setClientDefaultPass(), setClientDir(), setClientExec(), setClientIsServer(), setClientName(), setClientNode(), setClientPort(), setClientShellMode(), setClientTermMode(), setCloneFlag(), setCommandsHistoryGUI(), setDabcMonitorBackwardsTrending(), setDabcMonitorBins(), setDabcMonitorFreq(), setDabcMonitorNode(), setDrawDateFlag(), setDrawItemFlag(), setDrawTimeFlag(), setFetchDataWhenCopy(), setFetchDataWhenDraw(), setFetchDataWhenSave(), setHistAxisPars(), setHistName(), setHistType(), setHServBase(), setHServFilter(), setHServName(), setHServPort(), setInt(), setMbsMonitorBackwardsTrending(), setMbsMonitorBins(), setMbsMonitorFreq(), setMbsMonitorMonitorActive(), setMbsMonitorMore(), setMbsMonitorNode(), setMbsMonitorTrend(), setOptStat(), setPadCrosshair(), setPadEventStatus(), setPrinterSett(), setRemoteFileSett(), setStatBoxErrors(), setStatBoxVisible(), setStr(), setTermHistorySize(), storeGeometry(), and storePanelSize().

QString TGo4QSettings::getSettingsFileName  )  [static]
 

Definition at line 406 of file TGo4QSettings.cpp.

References fxSettingsfolder, fxToolsfile, GetUserPath(), and UsesUserPath().

Referenced by RestoreSettings(), and StoreSettings().

void TGo4QSettings::RestoreSettings QMainWindow *  tgt  )  [static]
 

Definition at line 414 of file TGo4QSettings.cpp.

References getSettingsFileName().

Referenced by TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::StoreSettings QMainWindow *  src  )  [static]
 

Definition at line 436 of file TGo4QSettings.cpp.

References getSettingsFileName().

Referenced by TGo4MainWindow::SaveSettingsSlot().

void TGo4QSettings::setBool const QString &  name,
bool  value = true
 

Definition at line 743 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getBool const QString &  name,
bool  def = true
 

Definition at line 748 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setInt const QString &  name,
int  value = 0
 

Definition at line 753 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getInt const QString &  name,
int  def = 0
 

Definition at line 758 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setStr const QString &  name,
const QString &  value = ""
 

Definition at line 763 of file TGo4QSettings.cpp.

References GetSettingsName().

QString TGo4QSettings::getStr const QString &  name,
const QString &  value = ""
 

Definition at line 768 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setBasicSettings  ) 
 

Definition at line 85 of file TGo4QSettings.cpp.

References TGo4Condition::fgbCMAXDRAW, TGo4Marker::fgbCONTDRAW, TGo4Marker::fgbHASCONNECTOR, TGo4Marker::fgbHASLABEL, TGo4Condition::fgbINTDRAW, TGo4Condition::fgbLABELDRAW, TGo4Condition::fgbLIMITSDRAW, TGo4Marker::fgbXBINDRAW, TGo4Marker::fgbXDRAW, TGo4Condition::fgbXMAXDRAW, TGo4Condition::fgbXMEANDRAW, TGo4Condition::fgbXRMSDRAW, TGo4Marker::fgbYBINDRAW, TGo4Marker::fgbYDRAW, TGo4Condition::fgbYMAXDRAW, TGo4Condition::fgbYMEANDRAW, TGo4Condition::fgbYRMSDRAW, and GetSettingsName().

Referenced by TGo4MainWindow::SaveSettingsSlot().

void TGo4QSettings::getBasicSettings  ) 
 

Definition at line 109 of file TGo4QSettings.cpp.

References TGo4Condition::fgbCMAXDRAW, TGo4Marker::fgbCONTDRAW, TGo4Marker::fgbHASCONNECTOR, TGo4Marker::fgbHASLABEL, TGo4Condition::fgbINTDRAW, TGo4Condition::fgbLABELDRAW, TGo4Condition::fgbLIMITSDRAW, TGo4Marker::fgbXBINDRAW, TGo4Marker::fgbXDRAW, TGo4Condition::fgbXMAXDRAW, TGo4Condition::fgbXMEANDRAW, TGo4Condition::fgbXRMSDRAW, TGo4Marker::fgbYBINDRAW, TGo4Marker::fgbYDRAW, TGo4Condition::fgbYMAXDRAW, TGo4Condition::fgbYMEANDRAW, TGo4Condition::fgbYRMSDRAW, and GetSettingsName().

Referenced by TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::setAppStyle const QString &   ) 
 

Definition at line 138 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::SaveSettingsSlot().

QString TGo4QSettings::getAppStyle  ) 
 

Definition at line 143 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::setClientName const QString &   ) 
 

Definition at line 148 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::LaunchAnalysis().

QString TGo4QSettings::getClientName  ) 
 

Definition at line 153 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::LaunchClientSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientNode const QString &   ) 
 

Definition at line 158 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::ConnectAnalysis(), and TGo4Script::LaunchAnalysis().

QString TGo4QSettings::getClientNode  ) 
 

Definition at line 163 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectServerSlot(), TGo4MainWindow::LaunchClientSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientDir const QString &   ) 
 

Definition at line 168 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::LaunchAnalysis().

QString TGo4QSettings::getClientDir  ) 
 

Definition at line 173 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::LaunchClientSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientExec const QString &   ) 
 

Definition at line 178 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::LaunchAnalysis().

QString TGo4QSettings::getClientExec  ) 
 

Definition at line 183 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::LaunchClientSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientShellMode int   ) 
 

Definition at line 188 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::LaunchAnalysis().

QString TGo4QSettings::getClientShell  ) 
 

Definition at line 198 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by getClientShellMode().

int TGo4QSettings::getClientShellMode  ) 
 

Definition at line 203 of file TGo4QSettings.cpp.

References getClientShell().

Referenced by TGo4MainWindow::LaunchClientSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientTermMode int   ) 
 

Definition at line 213 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::LaunchAnalysis().

int TGo4QSettings::getClientTermMode  ) 
 

Definition at line 229 of file TGo4QSettings.cpp.

References getClientTerm().

Referenced by TGo4MainWindow::LaunchClientSlot(), and TGo4Script::ProduceScript().

QString TGo4QSettings::getClientTerm  ) 
 

Definition at line 224 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by getClientTermMode().

void TGo4QSettings::setClientIsServer bool  on  ) 
 

Definition at line 239 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getClientIsServer  ) 
 

Definition at line 244 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::LaunchClientSlot().

void TGo4QSettings::setClientPort int   ) 
 

Definition at line 250 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::ConnectAnalysis().

int TGo4QSettings::getClientPort  ) 
 

Definition at line 255 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectServerSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientControllerMode int   ) 
 

Definition at line 260 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::ConnectAnalysis().

int TGo4QSettings::getClientControllerMode  ) 
 

Definition at line 265 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectServerSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setClientDefaultPass bool   ) 
 

Definition at line 270 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4Script::ConnectAnalysis().

bool TGo4QSettings::getClientDefaultPass  ) 
 

Definition at line 275 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectServerSlot(), and TGo4Script::ProduceScript().

void TGo4QSettings::setTermHistorySize int  sz  ) 
 

Definition at line 281 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::InputTerminalParametersSlot().

int TGo4QSettings::getTermHistorySize  ) 
 

Definition at line 286 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::InputTerminalParametersSlot(), and TGo4AnalysisWindow::TGo4AnalysisWindow().

void TGo4QSettings::setHServName const QString &   ) 
 

Definition at line 291 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

QString TGo4QSettings::getHServName  ) 
 

Definition at line 296 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

void TGo4QSettings::setHServBase const QString &   ) 
 

Definition at line 301 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

QString TGo4QSettings::getHServBase  ) 
 

Definition at line 306 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

void TGo4QSettings::setHServFilter const QString &   ) 
 

Definition at line 311 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

QString TGo4QSettings::getHServFilter  ) 
 

Definition at line 316 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

void TGo4QSettings::setHServPort int  port  ) 
 

Definition at line 321 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

int TGo4QSettings::getHServPort  ) 
 

Definition at line 326 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ConnectHServerSlot().

void TGo4QSettings::setPadCrosshair bool  on  ) 
 

Definition at line 332 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::CrosshairSlot().

bool TGo4QSettings::getPadCrosshair  ) 
 

Definition at line 337 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu(), and TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::setPadEventStatus bool  on  ) 
 

Definition at line 342 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::EventStatusSlot().

bool TGo4QSettings::getPadEventStatus  ) 
 

Definition at line 347 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu(), and TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::setCanvasColor int  red,
int  green,
int  blue
 

Definition at line 352 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::CanvasColorSlot().

void TGo4QSettings::getCanvasColor int &  red,
int &  green,
int &  blue
 

Definition at line 359 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setOptStat int  value  ) 
 

Definition at line 491 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getOptStat  ) 
 

Definition at line 496 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::setStatBoxVisible bool  on = true  ) 
 

Definition at line 501 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getStatBoxVisible  ) 
 

Definition at line 506 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setStatBoxErrors bool  on = true  ) 
 

Definition at line 511 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getStatBoxErrors  ) 
 

Definition at line 516 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setCloneFlag bool  on = true  ) 
 

Definition at line 366 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeCloneFlagSlot().

bool TGo4QSettings::getCloneFlag  ) 
 

Definition at line 371 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu().

void TGo4QSettings::setDrawTimeFlag bool  on = true  ) 
 

Definition at line 376 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeDrawTimeFlagSlot().

bool TGo4QSettings::getDrawTimeFlag  ) 
 

Definition at line 381 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu().

void TGo4QSettings::setDrawDateFlag bool  on = true  ) 
 

Definition at line 386 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeDrawDateFlagSlot().

bool TGo4QSettings::getDrawDateFlag  ) 
 

Definition at line 391 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu().

void TGo4QSettings::setDrawItemFlag bool  on = true  ) 
 

Definition at line 396 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeDrawItemFlagSlot().

bool TGo4QSettings::getDrawItemFlag  ) 
 

Definition at line 401 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu().

void TGo4QSettings::storeGeometry QMainWindow *  w  ) 
 

Definition at line 447 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::SaveSettingsSlot().

void TGo4QSettings::restoreGeometry QMainWindow *  w  ) 
 

Definition at line 455 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::storePanelSize QWidget *  w  ) 
 

Definition at line 466 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::restorePanelSize QWidget *  w  ) 
 

Definition at line 472 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setBrowserColumn const char *  name,
int  width
 

Definition at line 480 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getBrowserColumn const char *  name,
int  defwidth
 

Definition at line 485 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setHistName const QString &  value  ) 
 

Definition at line 522 of file TGo4QSettings.cpp.

References GetSettingsName().

QString TGo4QSettings::getHistName  ) 
 

Definition at line 527 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setHistType int  value  ) 
 

Definition at line 532 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getHistType  ) 
 

Definition at line 537 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setHistAxisPars int  naxis,
int  npoints,
double  min,
double  max
 

Definition at line 545 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::getHistAxisPars int  naxis,
int &  npoints,
double &  min,
double &  max
 

Definition at line 559 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setFetchDataWhenDraw bool  on = true  ) 
 

Definition at line 573 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeFetchWhenDrawSlot().

bool TGo4QSettings::getFetchDataWhenDraw  ) 
 

Definition at line 578 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu(), and TGo4MainWindow::DisplayBrowserItem().

void TGo4QSettings::setFetchDataWhenCopy bool  on = true  ) 
 

Definition at line 583 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeFetchWhenCopySlot().

bool TGo4QSettings::getFetchDataWhenCopy  ) 
 

Definition at line 588 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu().

void TGo4QSettings::setFetchDataWhenSave bool  on = true  ) 
 

Definition at line 593 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::ChangeFetchWhenSaveSlot().

bool TGo4QSettings::getFetchDataWhenSave  ) 
 

Definition at line 598 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::AddSettingMenu(), and TGo4MainWindow::SaveFileSlot().

void TGo4QSettings::setRemoteFileSett const QString &  hostname,
const QString &  filename,
const QString &  protocol
 

Definition at line 603 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::getRemoteFileSett QString &  hostname,
QString &  filename,
QString &  protocol
 

Definition at line 610 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setPrinterSett const QString &  name,
const QString &  cmd
 

Definition at line 617 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::getPrinterSett QString &  name,
QString &  cmd
 

Definition at line 623 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setMbsMonitorNode const QString &  name  ) 
 

some things for the mbs monitor dockwindow:

Definition at line 629 of file TGo4QSettings.cpp.

References GetSettingsName().

QString TGo4QSettings::getMbsMonitorNode  ) 
 

Definition at line 634 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setMbsMonitorFreq int  secs  ) 
 

Definition at line 639 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getMbsMonitorFreq  ) 
 

Definition at line 644 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setMbsMonitorBins int  num  ) 
 

Definition at line 649 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getMbsMonitorBins  ) 
 

Definition at line 654 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setMbsMonitorTrend bool  on = true  ) 
 

Definition at line 659 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getMbsMonitorTrend  ) 
 

Definition at line 664 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setMbsMonitorMore bool  on = true  ) 
 

Definition at line 669 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getMbsMonitorMore  ) 
 

Definition at line 674 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setMbsMonitorMonitorActive bool  on = true  ) 
 

Definition at line 679 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getMbsMonitorMonitorActive  ) 
 

Definition at line 684 of file TGo4QSettings.cpp.

References GetSettingsName().

Referenced by TGo4MainWindow::TGo4MainWindow().

void TGo4QSettings::setMbsMonitorBackwardsTrending bool  on = true  ) 
 

Definition at line 689 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getMbsMonitorBackwardsTrending  ) 
 

Definition at line 694 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setDabcMonitorNode const QString &  name  ) 
 

some things for the DABC monitor dockwindow:

Definition at line 700 of file TGo4QSettings.cpp.

References GetSettingsName().

QString TGo4QSettings::getDabcMonitorNode  ) 
 

Definition at line 705 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setDabcMonitorFreq int  secs  ) 
 

Definition at line 710 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getDabcMonitorFreq  ) 
 

Definition at line 715 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setDabcMonitorBins int  num  ) 
 

Definition at line 720 of file TGo4QSettings.cpp.

References GetSettingsName().

int TGo4QSettings::getDabcMonitorBins  ) 
 

Definition at line 725 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setDabcMonitorBackwardsTrending bool  on = true  ) 
 

Definition at line 730 of file TGo4QSettings.cpp.

References GetSettingsName().

bool TGo4QSettings::getDabcMonitorBackwardsTrending  ) 
 

Definition at line 735 of file TGo4QSettings.cpp.

References GetSettingsName().

QStringList TGo4QSettings::getCommandsHistoryGUI  ) 
 

implement history for gui commandline

Definition at line 774 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::setCommandsHistoryGUI QStringList &  commands  ) 
 

Definition at line 779 of file TGo4QSettings.cpp.

References GetSettingsName().

void TGo4QSettings::SetSettingsPath  )  [protected]
 

Sets the path of this instance according to static settings.

Definition at line 75 of file TGo4QSettings.cpp.

References fgbUSEMYLOCATION, and 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 33 of file TGo4QSettings.cpp.

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

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

The actual path to the settings.

Definition at line 34 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 36 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 35 of file TGo4QSettings.cpp.

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


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:11 2008 for Go4-v3.04-1 by  doxygen 1.4.2