HyperspaceExplorer 0.7.1
|
00001 /* 00002 Hyperspace Explorer - visualizing higher-dimensional geometry 00003 Copyright (C) 2010 Lene Preuss <lene.preuss@gmail.com> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along 00016 with this program; if not, write to the Free Software Foundation, Inc., 00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 00019 */ 00020 00021 #if !defined(GLOBALS_H) 00022 #define GLOBALS_H 00023 00024 #include "SingletonHolder.h" 00025 00026 class Color; 00027 00028 class QAction; 00029 class QMainWindow; 00030 class QStringList; 00031 00035 00040 class Global { 00041 00042 public: 00043 00044 Global(); 00045 00048 QStringList &rcdirs(); 00049 00051 QAction *getQuitAction(); 00053 QMainWindow *getMainWindow(); 00054 00055 00057 Color &FogColor(); 00059 00060 void setFogColor(const Color &rgba); 00061 00063 static unsigned long getMaxMemory(); 00064 00066 static Color& white(); 00068 static Color& grey50(); 00069 00071 const double SR3; 00072 00074 static bool checkMemory(); 00075 00076 private: 00077 00078 class Impl; 00079 Impl *pImpl_; 00080 00081 }; 00082 00083 typedef Loki::SingletonHolder<Global> Globals; 00084 00085 #endif // !defined(GLOBALS_H)