Planeshift
PawsEditorApp Class Reference

#include <pawseditorapp.h>

Public Member Functions

void Exit ()
 Exits the application. More...
 
bool GetCamFlag (int flag)
 Gets the value of the given camera flag. More...
 
iConfigManager * GetConfigManager ()
 Gets the Configuration Manager. More...
 
csVector2 GetMousePointer ()
 Gets the location of the mouse pointer. More...
 
iVFS * GetVFS ()
 Gets the VFS Manager. More...
 
bool HandleEvent (iEvent &ev)
 Handles an event from the event handler. More...
 
bool Init ()
 Initializes some CS specific stuff, fills most of this classes global variables, and inits eedit specifics. More...
 
void LoadSkin (const char *name)
 
bool LoadWidget (const char *file)
 Loads a single paws widget. More...
 
bool LoadWidgets ()
 Loads all the paws widgets (windows) More...
 
void OpenImageList (const csString &text)
 
void OpenWidget (const csString &text)
 
csPtr< iDocumentNode > ParseWidgetFile (const char *widgetFile)
 
csPtr< iDocumentNode > ParseWidgetFile_mod (const char *widgetFile)
 
 PawsEditorApp (iObjectRegistry *obj_reg)
 Constructor. More...
 
void ReloadWidget ()
 
void SetCamFlag (int flag, bool val)
 Sets the given camera flag. More...
 
void SevereError (const char *msg)
 Reports a severe error in the application. More...
 
void ShowSkinSelector ()
 
 ~PawsEditorApp ()
 Destructor. More...
 

Public Attributes

pawsWidgetcurrentWidget
 

Static Public Attributes

static const char * APP_NAME
 
static const char * CONFIG_FILENAME
 
static const char * KEY_DEFS_FILENAME
 
static const char * WINDOW_CAPTION
 

Detailed Description

Definition at line 79 of file pawseditorapp.h.

Constructor & Destructor Documentation

PawsEditorApp::PawsEditorApp ( iObjectRegistry *  obj_reg)

Constructor.

PawsEditorApp::~PawsEditorApp ( )

Destructor.

Member Function Documentation

void PawsEditorApp::Exit ( )

Exits the application.

bool PawsEditorApp::GetCamFlag ( int  flag)

Gets the value of the given camera flag.

Parameters
flagthe editApp::CAM_FLAG to get
Returns
the value of the specific camera flag
iConfigManager* PawsEditorApp::GetConfigManager ( )

Gets the Configuration Manager.

Returns
the configuration manager.
csVector2 PawsEditorApp::GetMousePointer ( )

Gets the location of the mouse pointer.

Returns
the mouse position.
iVFS* PawsEditorApp::GetVFS ( )

Gets the VFS Manager.

Returns
the VFS manager.
bool PawsEditorApp::HandleEvent ( iEvent &  ev)

Handles an event from the event handler.

Parameters
evEvent the event to handle
bool PawsEditorApp::Init ( )

Initializes some CS specific stuff, fills most of this classes global variables, and inits eedit specifics.

Returns
true on success, false otherwise
void PawsEditorApp::LoadSkin ( const char *  name)
bool PawsEditorApp::LoadWidget ( const char *  file)

Loads a single paws widget.

Parameters
filethe filename of the window to load
Returns
true if succeeded, false otherwise
bool PawsEditorApp::LoadWidgets ( )

Loads all the paws widgets (windows)

Returns
true if all succeeded to load, false if any had an error
void PawsEditorApp::OpenImageList ( const csString &  text)
void PawsEditorApp::OpenWidget ( const csString &  text)
csPtr<iDocumentNode> PawsEditorApp::ParseWidgetFile ( const char *  widgetFile)
csPtr<iDocumentNode> PawsEditorApp::ParseWidgetFile_mod ( const char *  widgetFile)
void PawsEditorApp::ReloadWidget ( )
void PawsEditorApp::SetCamFlag ( int  flag,
bool  val 
)

Sets the given camera flag.

Parameters
flagthe editApp::CAM_FLAG to set
valthe new value of the camera flag
void PawsEditorApp::SevereError ( const char *  msg)

Reports a severe error in the application.

Parameters
msgthe error message
void PawsEditorApp::ShowSkinSelector ( )
inline

Definition at line 165 of file pawseditorapp.h.

Member Data Documentation

const char* PawsEditorApp::APP_NAME
static

Definition at line 84 of file pawseditorapp.h.

const char* PawsEditorApp::CONFIG_FILENAME
static

Definition at line 83 of file pawseditorapp.h.

pawsWidget* PawsEditorApp::currentWidget

Definition at line 88 of file pawseditorapp.h.

const char* PawsEditorApp::KEY_DEFS_FILENAME
static

Definition at line 86 of file pawseditorapp.h.

const char* PawsEditorApp::WINDOW_CAPTION
static

Definition at line 85 of file pawseditorapp.h.


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