00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __global_h__
00021 #define __global_h__
00022
00023 #include <kicontheme.h>
00024
00025 #include <tqstring.h>
00026 #include <tqstringlist.h>
00027 #include <tqcstring.h>
00028
00029 enum IndexViewMode {Icon, Tree};
00030
00031 class KCGlobal
00032 {
00033 public:
00034
00035 static void init();
00036
00037 static bool isInfoCenter() { return _infocenter; }
00038 static bool root() { return _root; }
00039 static TQStringList types() { return _types; }
00040 static TQString userName() { return _uname; }
00041 static TQString hostName() { return _hname; }
00042 static TQString kdeVersion() { return _kdeversion; }
00043 static TQString systemName() { return _isystem; }
00044 static TQString systemRelease() { return _irelease; }
00045 static TQString systemVersion() { return _iversion; }
00046 static TQString systemMachine() { return _imachine; }
00047 static IndexViewMode viewMode() { return _viewmode; }
00048 static KIcon::StdSizes iconSize() { return _iconsize; }
00049 static TQString baseGroup();
00050
00051 static void setIsInfoCenter(bool b) { _infocenter = b; }
00052 static void setRoot(bool r) { _root = r; }
00053 static void setType(const TQCString& s);
00054 static void setUserName(const TQString& n){ _uname = n; }
00055 static void setHostName(const TQString& n){ _hname = n; }
00056 static void setKDEVersion(const TQString& n){ _kdeversion = n; }
00057 static void setSystemName(const TQString& n){ _isystem = n; }
00058 static void setSystemRelease(const TQString& n){ _irelease = n; }
00059 static void setSystemVersion(const TQString& n){ _iversion = n; }
00060 static void setSystemMachine(const TQString& n){ _imachine = n; }
00061 static void setViewMode(IndexViewMode m) { _viewmode = m; }
00062 static void setIconSize(KIcon::StdSizes s) { _iconsize = s; }
00063
00064 static void repairAccels( TQWidget * tw );
00065
00066 private:
00067 static bool _root;
00068 static bool _infocenter;
00069 static TQStringList _types;
00070 static TQString _uname, _hname, _isystem, _irelease, _iversion, _imachine, _kdeversion;
00071 static IndexViewMode _viewmode;
00072 static KIcon::StdSizes _iconsize;
00073 static TQString _baseGroup;
00074 };
00075
00076 #endif