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

/Go4GUI/TGo4QSettings.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4QSETTINGS_H
00017 #define TGO4QSETTINGS_H
00018 
00024 #include "qsettings.h"
00025 
00030 class TGo4QSettings : public QSettings {
00031     public:
00032     
00033     TGo4QSettings();
00034     TGo4QSettings ( Format format ); 
00035     virtual  ~TGo4QSettings();
00036 
00038     void DumpSettingsLocation();    
00039 
00040     static void SetToCurrentDir(bool on);
00041 
00042     static void SetUserPath(const QString& mypath)
00043         {
00044           fgbUSEMYLOCATION=true;
00045           fgxSETTINGSLOCATION=mypath;
00046           fgxSETTINGSNAME=fgxHOMESETTINGSNAME+"local";
00047         }
00048 
00049      static void SetHomeSettingsFile(const QString& name)
00050         {
00051           fgxHOMESETTINGSNAME=name;
00052         }
00053 
00054     
00055     static bool UsesUserPath(){return fgbUSEMYLOCATION;}
00056     
00057     static const QString& GetUserPath() {return fgxSETTINGSLOCATION;}
00058 
00059     static const QString& GetSettingsName() {return fgxSETTINGSNAME;}
00060 
00061     protected:
00062    
00064     void SetSettingsPath();  
00065     
00066     private:
00067     
00068 
00072     static bool fgbUSEMYLOCATION;
00073     
00075     static QString fgxSETTINGSLOCATION;
00076 
00079     static QString fgxHOMESETTINGSNAME;
00080 
00081 
00086     static QString fgxSETTINGSNAME;        
00087 
00088 };
00089 
00090 #endif // TGO4ANALYSISWINDOW_H
00091 
00092 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:02 2005 for Go4-v2.10-5 by doxygen1.2.15