HyperspaceExplorer 0.7.1
Static Public Member Functions | Public Attributes | Static Public Attributes
Global::Impl Struct Reference
Collaboration diagram for Global::Impl:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static unsigned long check_proc_meminfo ()

Public Attributes

QMainWindow * mainWindow
QAction * quitAction
QStringList rcdirs

Static Public Attributes

static bool check_memory = false
static Color fog_color
static Color White
static Color Grey50
static unsigned long MaximumMemory = Global::Impl::check_proc_meminfo()

Member Function Documentation

unsigned long Global::Impl::check_proc_meminfo ( ) [static]

get the system memory from /proc/meminfo of course, this only works on OS's with /proc filesystem and /proc/meminfo information! relies on /proc/meminfo of being of the format: MemTotal: 506912 kB ... returns 512 MB as default memory size, when /proc/meminfo is not present

Returns:
total memory size, or 512 MB

References cerr, and endl().

Here is the call graph for this function:


Member Data Documentation

bool Global::Impl::check_memory = false [static]

whether to check for memory usage. this member is set or unset from check_proc_meminfo(), depending on the success of that function.

Referenced by Global::checkMemory().

global (YUCK!) fog/depth cue color

Referenced by Global::FogColor(), and Global::setFogColor().

color definition for Grey

Referenced by Global::grey50().

main window of the application

Referenced by Global::getMainWindow().

unsigned long Global::Impl::MaximumMemory = Global::Impl::check_proc_meminfo() [static]

maximum amount of memory available for use

maximum memory that should be consumed; calls check_proc_meminfo () above

Referenced by Global::getMaxMemory().

global QAction that quits the program

Referenced by Global::getQuitAction().

color definition for White

Referenced by Global::white().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo