Planeshift
psCSSetup Class Reference

A helper class to setup Crystal Space and mount some dirs. More...

#include <pscssetup.h>

Public Member Functions

bool AddWindowInformations (const char *Info)
 Adds additional informations wraped in [] to the title bar. More...
 
iObjectRegistry * GetObjectRegistry ()
 
iObjectRegistry * InitCS (iReporterListener *customReporter=0)
 
 psCSSetup (int, char **, const char *, const char *)
 
bool SetIcon (const char *ImageFileLocation)
 Sets an icon for the main window using a file name. More...
 
bool SetIcon (iImage *Image)
 Sets an icon for the main window using an iImage. More...
 
 ~psCSSetup ()
 

Static Public Attributes

static iObjectRegistry * object_reg
 

Protected Member Functions

bool InitCSWindow (const char *)
 
void MountUserData ()
 
char * PS_GetFileName (char *)
 

Protected Attributes

int argc
 
char ** argv
 
csRef< iConfigFile > cfg
 
csRef< iConfigManager > configManager
 
const char * engineConfigfile
 
const char * userConfigfile
 
csRef< iVFS > vfs
 

Detailed Description

A helper class to setup Crystal Space and mount some dirs.

Definition at line 52 of file pscssetup.h.

Constructor & Destructor Documentation

psCSSetup::psCSSetup ( int  ,
char **  ,
const char *  ,
const char *   
)
psCSSetup::~psCSSetup ( )

Member Function Documentation

bool psCSSetup::AddWindowInformations ( const char *  Info)

Adds additional informations wraped in [] to the title bar.

Parameters
InfoThe data to add inside the [] in the title bar.
iObjectRegistry* psCSSetup::GetObjectRegistry ( )
inline

Definition at line 61 of file pscssetup.h.

iObjectRegistry* psCSSetup::InitCS ( iReporterListener *  customReporter = 0)
bool psCSSetup::InitCSWindow ( const char *  )
protected
void psCSSetup::MountUserData ( )
protected
char* psCSSetup::PS_GetFileName ( char *  )
protected
bool psCSSetup::SetIcon ( const char *  ImageFileLocation)

Sets an icon for the main window using a file name.

Parameters
ImageFileLocationThe VFS path to the icon file.
Returns
true if the icon was found and was possible to set it up
bool psCSSetup::SetIcon ( iImage *  Image)

Sets an icon for the main window using an iImage.

Parameters
Imagean iImage containing the imagine we want to set for the window.
Returns
true if it was possible to ask cs to set the icon.

Member Data Documentation

int psCSSetup::argc
protected

Definition at line 96 of file pscssetup.h.

char** psCSSetup::argv
protected

Definition at line 97 of file pscssetup.h.

csRef<iConfigFile> psCSSetup::cfg
protected

Definition at line 101 of file pscssetup.h.

csRef<iConfigManager> psCSSetup::configManager
protected

Definition at line 102 of file pscssetup.h.

const char* psCSSetup::engineConfigfile
protected

Definition at line 98 of file pscssetup.h.

iObjectRegistry* psCSSetup::object_reg
static

Definition at line 66 of file pscssetup.h.

const char* psCSSetup::userConfigfile
protected

Definition at line 99 of file pscssetup.h.

csRef<iVFS> psCSSetup::vfs
protected

Definition at line 103 of file pscssetup.h.


The documentation for this class was generated from the following file: