26 #ifndef PAWSEDIT_APP_HEADER    27 #define PAWSEDIT_APP_HEADER    29 #include <csutil/sysfunc.h>    30 #include <csutil/csstring.h>    31 #include <csutil/ref.h>    32 #include <csutil/bitarray.h>    33 #include <csgeom/vector2.h>    34 #include <csgeom/vector3.h>    45 struct iConfigManager;
    46 struct iTextureManager;
   172     bool LoadResources( 
const char* mountPath );
   176     void RegisterFactories();
   185     void TakeScreenshot(
const csString & fileName);
   190     void LoadLogSettings();
   193     DeclareGenericEventHandler(EventHandler,
PawsEditorApp,
"planeshift.pawseditor");
   194     csRef<EventHandler> event_handler;
   196     iObjectRegistry*        object_reg;
   197     csRef<iEngine>          engine;
   199     csRef<iEventQueue>      queue;
   200     csRef<iConfigManager>   cfgmgr;
   201     csRef<iTextureManager>  txtmgr;
   202     csRef<iGraphics3D>      g3d;
   203     csRef<iGraphics2D>      g2d;
   204     csRef<iLoader>          loader;
   221     csString mountedPath;
   222     csString mountedVPath;
   223     csString currentSkin;
   225     csVector2 mousePointer;
 
static const char * WINDOW_CAPTION
 
bool LoadWidget(const char *file)
Loads a single paws widget. 
 
Main PlaneShift Window manager. 
 
void SevereError(const char *msg)
Reports a severe error in the application. 
 
static const char * KEY_DEFS_FILENAME
 
void OpenImageList(const csString &text)
 
csPtr< iDocumentNode > ParseWidgetFile_mod(const char *widgetFile)
 
bool LoadWidgets()
Loads all the paws widgets (windows) 
 
static const char * APP_NAME
 
bool Init()
Initializes some CS specific stuff, fills most of this classes global variables, and inits eedit spec...
 
pawsWidget * currentWidget
 
PawsEditorApp(iObjectRegistry *obj_reg)
Constructor. 
 
csVector2 GetMousePointer()
Gets the location of the mouse pointer. 
 
The main or desktop widget. 
 
iConfigManager * GetConfigManager()
Gets the Configuration Manager. 
 
void Exit()
Exits the application. 
 
bool HandleEvent(iEvent &ev)
Handles an event from the event handler. 
 
void LoadSkin(const char *name)
 
~PawsEditorApp()
Destructor. 
 
csPtr< iDocumentNode > ParseWidgetFile(const char *widgetFile)
 
void OpenWidget(const csString &text)
 
void SetCamFlag(int flag, bool val)
Sets the given camera flag. 
 
CAM_FLAG
The camera flags. 
 
iVFS * GetVFS()
Gets the VFS Manager. 
 
bool GetCamFlag(int flag)
Gets the value of the given camera flag. 
 
static const char * CONFIG_FILENAME