Planeshift
PawsManager Class Reference

Main PlaneShift Window manager. More...

#include <pawsmanager.h>

Public Member Functions

void AddObjectView (pawsWidget *widget)
 Adds an object view to the array. More...
 
bool ApplyStyle (const char *name, iDocumentNode *target)
 Applies PAWS style to XML node. More...
 
void CreateWarningBox (const char *message, pawsWidget *notify=NULL, bool modal=true)
 Creates a warning box with the supplied text. More...
 
pawsWidgetCreateWidget (const char *factoryName)
 Create a new widget. More...
 
pawsWidgetCreateWidget (const char *factoryName, const pawsWidget *origin)
 Create a new widget using copy constructor. More...
 
void CreateYesNoBox (const char *message, pawsWidget *notify=NULL, bool modal=true, bool translate=true)
 Creates a YesNo box with the supplied text. More...
 
void Draw ()
 Draw the main widget and the mouse last. More...
 
void Draw3D ()
 Draw 3D parts of the widgets. More...
 
MathEnvironmentExtraScriptVars ()
 
pawsWidgetFindWidget (const char *name, bool complain=true)
 Locate a widget by name. More...
 
pawsWidgetGetCurrentFocusedWidget ()
 Returns the widget that is focused. More...
 
pawsWidgetGetDragDropWidget ()
 Gets the widget that is being drag'n'dropped over screen with the mouse. More...
 
iEventNameRegistry * GetEventNameRegistry ()
 Get the event name registry. More...
 
bool GetFocusOverridesControls ()
 Returns true if the current focused widget needs to override all controls. More...
 
float GetFontFactor ()
 Gets the factor the font should be adjusted by for proper fontsize based on resolution. More...
 
iGraphics2D * GetGraphics2D ()
 Returns the 2D renderer. More...
 
iGraphics3D * GetGraphics3D ()
 Returns the 3D renderer. More...
 
psLocalizationGetLocalization ()
 Returns the psLocalization object: More...
 
pawsMainWidgetGetMainWidget ()
 Returns the main widget. More...
 
pawsWidgetGetModalWidget ()
 Returns modal widget. More...
 
pawsMouseGetMouse ()
 Returns the mouse. More...
 
iObjectRegistry * GetObjectRegistry ()
 Returns the object registry. More...
 
pawsPrefManagerGetPrefs ()
 Returns the prefrence manager. More...
 
iPawsImageGetResizeImage ()
 Returns the resize button image. More...
 
iSoundManager * GetSoundManager ()
 Gets the soundManager. More...
 
pawsTextureManagerGetTextureManager ()
 Returns the texture manager. More...
 
bool getToolTipEnable ()
 returns tooltips enabled/disabled More...
 
bool getToolTipEnableBgColor ()
 returns tooltips brackground color More...
 
int getTooltipsColors (int element)
 returns one element of the TooltipsColors-array More...
 
csString getToolTipSkinPath ()
 returns the full path to the tooltips.xml in skin.zip More...
 
csString & getVFSPathToSkin ()
 
bool HandleEvent (iEvent &event)
 Process mouse and keyboard events. More...
 
csArray< iPAWSSubscriber * > ListSubscribers (const char *dataname)
 Return a list of all subscribers. More...
 
bool LoadChildWidgets (const char *widgetFile, csArray< pawsWidget * > &loadedWidgets)
 Loads widgets from a definition file without assigning a parent. More...
 
bool LoadObjectViews ()
 
bool LoadSkinDefinition (const char *zip)
 Loads a skin and loades unregistered resources. More...
 
bool LoadTooltips (const char *fileName)
 Loads the Tooltips config-file. More...
 
bool LoadWidget (const char *widgetFile)
 Loads a widget definition file. More...
 
pawsWidgetLoadWidget (iDocumentNode *widgetNode)
 Loads a widget from given XML node. More...
 
pawsWidgetLoadWidgetFromString (const char *widgetDefinition)
 Loads a widget definition from a string. More...
 
void MovingWidget (pawsWidget *moving)
 Let the window manager know that a widget is being moved. More...
 
void OnWidgetDeleted (pawsWidget *widget)
 pawsWidget destructor calls this so PawsManager can NULLify all its links to the widget. More...
 
void OnWidgetHidden (pawsWidget *widget)
 Remove focus and mouseover effect from widget if widget is hidden. More...
 
 PawsManager (iObjectRegistry *objectReg, const char *skin, const char *skinBase=NULL)
 
void Publish (const csString &dataname, PAWSData &data)
 Announce a change in a named element to all subscribers. More...
 
void Publish (const csString &dataname, const char *datavalue)
 Publish a string to all subscribers. More...
 
void Publish (const csString &dataname, bool datavalue)
 Publish a boolean value to all subscribers. More...
 
void Publish (const csString &dataname, int datavalue)
 Publish an int to all subscribers. More...
 
void Publish (const csString &dataname, unsigned int datavalue)
 Publish an unsigned int to all subscribers. More...
 
void Publish (const csString &dataname, float datavalue)
 Publish a float to all subscribers. More...
 
void Publish (const csString &dataname, const char *datavalue, int color)
 Publish a coloured string to all subscribers. More...
 
void Publish (const csString &dataname)
 Publish nothing to all subscribers. (Used for one-time named signals.) More...
 
void RegisterWidgetFactory (pawsWidgetFactory *factory)
 Add a new factory to the list that the manager knows about. More...
 
void RemoveObjectView (pawsWidget *widget)
 Removes an object view from the array. More...
 
bool RemoveWidget (const char *widgetName, bool complain)
 Remove the named widget from the mainwidget. More...
 
void ResizingWidget (pawsWidget *widget, int flags)
 Let the manager know that a widget is being resized. More...
 
void SetCurrentFocusedWidget (pawsWidget *widget)
 Give this widget focus. More...
 
void SetDragDropWidget (pawsWidget *dragDropWidget)
 Sets the widget that is being drag'n'dropped over screen with the mouse. More...
 
void SetMainWidget (pawsMainWidget *widg)
 Establish main widget. More...
 
void SetModalWidget (pawsWidget *widget)
 Make this widget modal. More...
 
void setToolTipEnable (bool state)
 changes tooltips enabled/disabled More...
 
void setToolTipEnableBgColor (bool state)
 changes tooltips backround enabled/disabled More...
 
void setTooltipsColors (int element, int param)
 transfers a value to the TooltipsColors-array More...
 
void Subscribe (const char *dataname, iPAWSSubscriber *listener)
 Subscribe to a named piece of data, so updates are received automatically. More...
 
csString Translate (const csString &orig)
 A shortcut - translation without need to call GetLocalization(). More...
 
void UnSubscribe (iPAWSSubscriber *listener)
 Unsubscribe the given subscriber. More...
 
void UseR2T (bool r2t)
 
bool UsingR2T () const
 
virtual ~PawsManager ()
 
- Public Member Functions inherited from Singleton< PawsManager >
 Singleton (PawsManager *ptr)
 
 Singleton (void)
 
 ~Singleton ()
 

Public Attributes

bool ToolTipEnable
 Sets if the tooltip should be enable. More...
 
bool ToolTipEnableBgColor
 Sets if the tooltip should have a bgcolor. More...
 
int TooltipsColors [3]
 Array of tooltip colors. More...
 

Protected Member Functions

bool HandleDoubleClick (csMouseEventData &data)
 Process mouse double click events. More...
 
bool HandleKeyDown (iEvent &event)
 Process key down events. More...
 
bool HandleMouseDown (csMouseEventData &data)
 Process mouse down events. More...
 
bool HandleMouseMove (csMouseEventData &data)
 Process mouse movement events. More...
 
bool HandleMouseUp (csMouseEventData &data)
 Process mouse up events. More...
 
psPoint MouseLocation (iEvent &ev)
 
csPtr< iDocumentNode > ParseWidgetFile (const char *widgetFile)
 Parses given file and returns the <widget_description> tag of it. More...
 
void RegisterFactories ()
 Helper function to load standard factories. More...
 

Protected Attributes

pawsWidgetcurrentFocusedWidget
 The last widget that the mouse clicked on. ( Hence the focused one ). More...
 
pawsWidgetdragDropWidget
 The widget that is drag'n'dropped across the screen by the mouse. More...
 
MathEnvironment extraScriptVars
 
csPDelArray< pawsWidgetFactoryfactories
 An array of pointers to available factories. More...
 
bool focusOverridesControls
 Does the currentFocusedWidget take focus from the control system? More...
 
float fontFactor
 The font resizing factor for all widgets. More...
 
csRef< iGraphics2D > graphics2D
 Pointer to the Crystal Space iGraphics2D renderer used to display 2D graphics. More...
 
csRef< iGraphics3D > graphics3D
 Pointer to the Crystal Space iGraphics3D renderer used to display 3D graphics. More...
 
csRef< iTextureHandle > guiTexture
 Render texture for gui rendering. More...
 
bool hadKeyDown
 Flag for key down function. More...
 
csEventID KeyboardDown
 Shortcut for event key down. More...
 
csEventID KeyboardUp
 Shortcut for event key up. More...
 
pawsWidgetlastfadeWidget
 The actual widget that was last faded. More...
 
psLocalizationlocalization
 Localized file object registry. More...
 
pawsMainWidgetmainWidget
 The main handler widget. More...
 
pawsWidgetmodalWidget
 Current modal widget. More...
 
pawsMousemouse
 The mouse pointer. More...
 
csEventID MouseDoubleClick
 Shortcut for event mouse double click. More...
 
csEventID MouseDown
 Shortcut for event mouse down. More...
 
csEventID MouseMove
 Shortcut for event mouse move. More...
 
pawsWidgetmouseoverWidget
 The last widget that the mouse moved over. ( For alpha fade effects ). More...
 
csEventID MouseUp
 Shortcut for event mouse up. More...
 
pawsWidgetmovingWidget
 Current widget that is being moved. More...
 
csRef< iEventNameRegistry > nameRegistry
 For event parsing. More...
 
iObjectRegistry * objectReg
 The object registry. More...
 
csArray< pawsWidget * > objectViews
 Array of paws object view widgets;. More...
 
pawsPrefManagerprefs
 The preference/default manager. More...
 
bool render2texture
 Whether to use r2t for the gui. More...
 
csRef< iPawsImageresizeImg
 Resized image. More...
 
int resizingFlags
 The resize flags. More...
 
pawsWidgetresizingWidget
 Holds the widget that is being resized. More...
 
csRef< iSoundManager > soundManager
 planeshift's sound manager More...
 
pawsStylesstyles
 PAWS style definitions. More...
 
PAWSSubscriptionsHash subscriptions
 Table of subscriptions. More...
 
pawsTextureManagertextureManager
 The texture manager. More...
 
csTicks timeOver
 The time mouse has been over the last widget. More...
 
int tipDelay
 The time mouse has been over a widget before showing the tooltip. More...
 
csRef< iVFS > vfs
 Pointer to the Crystal Space iVFS file system. More...
 
csString vfsPathToSkin
 VFS Mount directory mapping to the specified skin zip file. More...
 
csRef< iDocumentSystem > xml
 Pointer to the Crystal Space iDocumentSystem. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< PawsManager >
static PawsManagerGetSingleton (void)
 
static PawsManagerGetSingletonPtr (void)
 

Detailed Description

Main PlaneShift Window manager.

Definition at line 82 of file pawsmanager.h.

Constructor & Destructor Documentation

PawsManager::PawsManager ( iObjectRegistry *  objectReg,
const char *  skin,
const char *  skinBase = NULL 
)
virtual PawsManager::~PawsManager ( )
virtual

Member Function Documentation

void PawsManager::AddObjectView ( pawsWidget widget)
inline

Adds an object view to the array.

Definition at line 220 of file pawsmanager.h.

bool PawsManager::ApplyStyle ( const char *  name,
iDocumentNode *  target 
)

Applies PAWS style to XML node.

See also
pawsstyles.h
void PawsManager::CreateWarningBox ( const char *  message,
pawsWidget notify = NULL,
bool  modal = true 
)

Creates a warning box with the supplied text.

Parameters
messageThe warning.
notifyThe widget which recevies event notifications ( i.e. Button Pressed ).
modalIf the widet should be a modal one or not.
pawsWidget* PawsManager::CreateWidget ( const char *  factoryName)

Create a new widget.

This creates a new widget based on the factory that is passed in.

Parameters
factoryNameThe name of the factory that is used to create a widget.
Returns
A new instance of a widget if the factory was found. NULL if the widget could not be found.
pawsWidget* PawsManager::CreateWidget ( const char *  factoryName,
const pawsWidget origin 
)

Create a new widget using copy constructor.

This creates a new widget based on the factory that is passed in.

Parameters
factoryNameThe name of the factory that is used to create a widget.
originThe original widget that will be used by copy constructor.
Returns
A new instance of a widget if the factory was found. NULL if the widget could not be found.
void PawsManager::CreateYesNoBox ( const char *  message,
pawsWidget notify = NULL,
bool  modal = true,
bool  translate = true 
)

Creates a YesNo box with the supplied text.

Parameters
messageThe warning.
notifyThe Widget which recives event notifications (i.e. Button Pressed).
modalThe box shold be modal.
translateWhathever the message should be translated or not.
void PawsManager::Draw ( )

Draw the main widget and the mouse last.

void PawsManager::Draw3D ( )

Draw 3D parts of the widgets.

MathEnvironment& PawsManager::ExtraScriptVars ( )
inline

Definition at line 463 of file pawsmanager.h.

pawsWidget* PawsManager::FindWidget ( const char *  name,
bool  complain = true 
)

Locate a widget by name.

Parameters
nameThe name of the widget.
complainIf true it will show errors if the widget wasn't found.
pawsWidget* PawsManager::GetCurrentFocusedWidget ( )
inline

Returns the widget that is focused.

Definition at line 234 of file pawsmanager.h.

pawsWidget* PawsManager::GetDragDropWidget ( )

Gets the widget that is being drag'n'dropped over screen with the mouse.

Returns
The widget being dragged.
Remarks
Ownership of the widget goes to psPawsManager. This means that this widget must not be already owned (e.g. be child of another widget). Parameter can be NULL.
iEventNameRegistry* PawsManager::GetEventNameRegistry ( )
inline

Get the event name registry.

Definition at line 125 of file pawsmanager.h.

bool PawsManager::GetFocusOverridesControls ( )
inline

Returns true if the current focused widget needs to override all controls.

Definition at line 240 of file pawsmanager.h.

float PawsManager::GetFontFactor ( )
inline

Gets the factor the font should be adjusted by for proper fontsize based on resolution.

Returns
the factor for the fontsize.

Definition at line 350 of file pawsmanager.h.

iGraphics2D* PawsManager::GetGraphics2D ( )
inline

Returns the 2D renderer.

Definition at line 107 of file pawsmanager.h.

iGraphics3D* PawsManager::GetGraphics3D ( )
inline

Returns the 3D renderer.

Definition at line 113 of file pawsmanager.h.

psLocalization* PawsManager::GetLocalization ( )
inline

Returns the psLocalization object:

Definition at line 322 of file pawsmanager.h.

pawsMainWidget* PawsManager::GetMainWidget ( )
inline

Returns the main widget.

Definition at line 316 of file pawsmanager.h.

pawsWidget* PawsManager::GetModalWidget ( )
inline

Returns modal widget.

Definition at line 246 of file pawsmanager.h.

pawsMouse* PawsManager::GetMouse ( )
inline

Returns the mouse.

Definition at line 287 of file pawsmanager.h.

iObjectRegistry* PawsManager::GetObjectRegistry ( )
inline

Returns the object registry.

Definition at line 119 of file pawsmanager.h.

pawsPrefManager* PawsManager::GetPrefs ( )
inline

Returns the prefrence manager.

Definition at line 281 of file pawsmanager.h.

iPawsImage* PawsManager::GetResizeImage ( )
inline

Returns the resize button image.

Definition at line 293 of file pawsmanager.h.

iSoundManager* PawsManager::GetSoundManager ( )
inline

Gets the soundManager.

Definition at line 422 of file pawsmanager.h.

pawsTextureManager* PawsManager::GetTextureManager ( )
inline

Returns the texture manager.

Definition at line 131 of file pawsmanager.h.

bool PawsManager::getToolTipEnable ( )
inline

returns tooltips enabled/disabled

Definition at line 388 of file pawsmanager.h.

bool PawsManager::getToolTipEnableBgColor ( )
inline

returns tooltips brackground color

Definition at line 398 of file pawsmanager.h.

int PawsManager::getTooltipsColors ( int  element)
inline

returns one element of the TooltipsColors-array

Definition at line 408 of file pawsmanager.h.

csString PawsManager::getToolTipSkinPath ( )

returns the full path to the tooltips.xml in skin.zip

csString& PawsManager::getVFSPathToSkin ( )
inline

Definition at line 468 of file pawsmanager.h.

bool PawsManager::HandleDoubleClick ( csMouseEventData &  data)
protected

Process mouse double click events.

Calls OnDoubleClick on the currentFocusedWidget or widget at the event coordinates.

Parameters
datacsMouseEventData containing the mouse event data.
Returns
Results of OnDoubleClick or FALSE.
bool PawsManager::HandleEvent ( iEvent &  event)

Process mouse and keyboard events.

Parameters
eventiEvent to process.
bool PawsManager::HandleKeyDown ( iEvent &  event)
protected

Process key down events.

If a widget has focus it extracts the event keycode, key and modifiers and calls OnKeyDown on the focused widget.

Parameters
eventiEvent to process.
Returns
TRUE if a widget has focus AND the current event type is key up while hadKeyDown was set OR if OnKeyDown returns TRUE when called on the focused widget.
Remarks
Sets hadKeyDown to result of OnKeyDown call.
bool PawsManager::HandleMouseDown ( csMouseEventData &  data)
protected

Process mouse down events.

Determines the widget at event coordinates. Calls OnMouseDown() on the currentFocusedWidget or widget at the event coordinates.

Parameters
datacsMouseEventData containing the mouse event data.
Returns
TRUE if event stops moving or resizing.
bool PawsManager::HandleMouseMove ( csMouseEventData &  data)
protected

Process mouse movement events.

Determines if a widget is moving or being resized. If there is no modal widget it operates on the topmost widget at the event coordinates.

Parameters
datacsMouseEventData containing the mouse event data.
Returns
TRUE if it moves, resizes or fades in a widget.
bool PawsManager::HandleMouseUp ( csMouseEventData &  data)
protected

Process mouse up events.

Stops moving or resizing and turns off the corresponding flag. Calls OnMouseUp on the currentFocusedWidget or widget at the event coordinates.

Parameters
datacsMouseEventData containing the mouse event data.
Returns
Results of OnMouseUp or FALSE.
csArray<iPAWSSubscriber*> PawsManager::ListSubscribers ( const char *  dataname)

Return a list of all subscribers.

bool PawsManager::LoadChildWidgets ( const char *  widgetFile,
csArray< pawsWidget * > &  loadedWidgets 
)

Loads widgets from a definition file without assigning a parent.

This loads multiple widgets from XML and places pointers to the loaded widgets into the array loadedWidgets.

Parameters
widgetFileThe standard path of the widget to load.
loadedWidgetsAn array which will be cleared and then filled with any widgets loaded.
Returns
False if an error occured. Note that some widgets may be loaded even if an error occurs.
See also
psLocalization::FindLocalizedFile()
bool PawsManager::LoadObjectViews ( )
bool PawsManager::LoadSkinDefinition ( const char *  zip)

Loads a skin and loades unregistered resources.

bool PawsManager::LoadTooltips ( const char *  fileName)

Loads the Tooltips config-file.

bool PawsManager::LoadWidget ( const char *  widgetFile)

Loads a widget definition file.

This loads a widget from the specified XML file and adds it to the main widget.

Parameters
widgetFileThe standard path of the widget to load.
See also
psLocalization::FindLocalizedFile()
Returns
True if the widget was loaded properly.
pawsWidget* PawsManager::LoadWidget ( iDocumentNode *  widgetNode)

Loads a widget from given XML node.

Returns
NULL on failure.
pawsWidget* PawsManager::LoadWidgetFromString ( const char *  widgetDefinition)

Loads a widget definition from a string.

This loads a widget from an XML string and returns it to the caller.

Parameters
widgetDefinitionThe xml, either from a file or constructed on the fly.
See also
psLocalization::FindLocalizedFile()
Returns
True if the widget was loaded properly.
psPoint PawsManager::MouseLocation ( iEvent &  ev)
protected
void PawsManager::MovingWidget ( pawsWidget moving)

Let the window manager know that a widget is being moved.

Parameters
movingThe widget that is currently moving.
void PawsManager::OnWidgetDeleted ( pawsWidget widget)

pawsWidget destructor calls this so PawsManager can NULLify all its links to the widget.

void PawsManager::OnWidgetHidden ( pawsWidget widget)

Remove focus and mouseover effect from widget if widget is hidden.

csPtr<iDocumentNode> PawsManager::ParseWidgetFile ( const char *  widgetFile)
protected

Parses given file and returns the <widget_description> tag of it.

Returns
NULL on failure.
void PawsManager::Publish ( const csString &  dataname,
PAWSData data 
)

Announce a change in a named element to all subscribers.

void PawsManager::Publish ( const csString &  dataname,
const char *  datavalue 
)

Publish a string to all subscribers.

void PawsManager::Publish ( const csString &  dataname,
bool  datavalue 
)

Publish a boolean value to all subscribers.

void PawsManager::Publish ( const csString &  dataname,
int  datavalue 
)

Publish an int to all subscribers.

void PawsManager::Publish ( const csString &  dataname,
unsigned int  datavalue 
)

Publish an unsigned int to all subscribers.

void PawsManager::Publish ( const csString &  dataname,
float  datavalue 
)

Publish a float to all subscribers.

void PawsManager::Publish ( const csString &  dataname,
const char *  datavalue,
int  color 
)

Publish a coloured string to all subscribers.

void PawsManager::Publish ( const csString &  dataname)

Publish nothing to all subscribers. (Used for one-time named signals.)

void PawsManager::RegisterFactories ( )
protected

Helper function to load standard factories.

void PawsManager::RegisterWidgetFactory ( pawsWidgetFactory factory)

Add a new factory to the list that the manager knows about.

Each widget type must have it's own factory so the manager can build it based on it's name.

Parameters
factoryThe widget factory to add to the list.
void PawsManager::RemoveObjectView ( pawsWidget widget)
inline

Removes an object view from the array.

Definition at line 228 of file pawsmanager.h.

bool PawsManager::RemoveWidget ( const char *  widgetName,
bool  complain 
)

Remove the named widget from the mainwidget.

Parameters
widgetNameThe name of the widget to look for.
complainIf true it will show errors if the widget wasn't found.
Returns
a boolean stating if the widget was found (and so removed)
void PawsManager::ResizingWidget ( pawsWidget widget,
int  flags 
)

Let the manager know that a widget is being resized.

Parameters
widgetThe widget that is being resized.
flagsThe resize flags that this widget should be resized with.
void PawsManager::SetCurrentFocusedWidget ( pawsWidget widget)

Give this widget focus.

Parameters
widgetThe widget to focus.
void PawsManager::SetDragDropWidget ( pawsWidget dragDropWidget)

Sets the widget that is being drag'n'dropped over screen with the mouse.

Parameters
dragDropWidgetThe widget to drag.
Remarks
Ownership of the widget goes to psPawsManager. This means that this widget must not be already owned (e.g. be child of another widget).
void PawsManager::SetMainWidget ( pawsMainWidget widg)

Establish main widget.

void PawsManager::SetModalWidget ( pawsWidget widget)

Make this widget modal.

Parameters
widgetThe modal widget.
void PawsManager::setToolTipEnable ( bool  state)
inline

changes tooltips enabled/disabled

Definition at line 393 of file pawsmanager.h.

void PawsManager::setToolTipEnableBgColor ( bool  state)
inline

changes tooltips backround enabled/disabled

Definition at line 403 of file pawsmanager.h.

void PawsManager::setTooltipsColors ( int  element,
int  param 
)
inline

transfers a value to the TooltipsColors-array

Definition at line 413 of file pawsmanager.h.

void PawsManager::Subscribe ( const char *  dataname,
iPAWSSubscriber listener 
)

Subscribe to a named piece of data, so updates are received automatically.

csString PawsManager::Translate ( const csString &  orig)

A shortcut - translation without need to call GetLocalization().

void PawsManager::UnSubscribe ( iPAWSSubscriber listener)

Unsubscribe the given subscriber.

void PawsManager::UseR2T ( bool  r2t)
inline

Definition at line 136 of file pawsmanager.h.

bool PawsManager::UsingR2T ( ) const
inline

Definition at line 141 of file pawsmanager.h.

Member Data Documentation

pawsWidget* PawsManager::currentFocusedWidget
protected

The last widget that the mouse clicked on. ( Hence the focused one ).

Definition at line 496 of file pawsmanager.h.

pawsWidget* PawsManager::dragDropWidget
protected

The widget that is drag'n'dropped across the screen by the mouse.

If it is not NULL, it is drawn instead of mouse on its position. This widget has no parent widget (same as with pawsMainWidget)

Definition at line 653 of file pawsmanager.h.

MathEnvironment PawsManager::extraScriptVars
protected

Definition at line 482 of file pawsmanager.h.

csPDelArray<pawsWidgetFactory> PawsManager::factories
protected

An array of pointers to available factories.

Definition at line 630 of file pawsmanager.h.

bool PawsManager::focusOverridesControls
protected

Does the currentFocusedWidget take focus from the control system?

Definition at line 499 of file pawsmanager.h.

float PawsManager::fontFactor
protected

The font resizing factor for all widgets.

Definition at line 656 of file pawsmanager.h.

csRef<iGraphics2D> PawsManager::graphics2D
protected

Pointer to the Crystal Space iGraphics2D renderer used to display 2D graphics.

Definition at line 603 of file pawsmanager.h.

csRef<iGraphics3D> PawsManager::graphics3D
protected

Pointer to the Crystal Space iGraphics3D renderer used to display 3D graphics.

Definition at line 608 of file pawsmanager.h.

csRef<iTextureHandle> PawsManager::guiTexture
protected

Render texture for gui rendering.

Definition at line 642 of file pawsmanager.h.

bool PawsManager::hadKeyDown
protected

Flag for key down function.

Definition at line 639 of file pawsmanager.h.

csEventID PawsManager::KeyboardDown
protected

Shortcut for event key down.

Definition at line 689 of file pawsmanager.h.

csEventID PawsManager::KeyboardUp
protected

Shortcut for event key up.

Definition at line 691 of file pawsmanager.h.

pawsWidget* PawsManager::lastfadeWidget
protected

The actual widget that was last faded.

Definition at line 505 of file pawsmanager.h.

psLocalization* PawsManager::localization
protected

Localized file object registry.

Definition at line 490 of file pawsmanager.h.

pawsMainWidget* PawsManager::mainWidget
protected

The main handler widget.

Definition at line 615 of file pawsmanager.h.

pawsWidget* PawsManager::modalWidget
protected

Current modal widget.

Definition at line 517 of file pawsmanager.h.

pawsMouse* PawsManager::mouse
protected

The mouse pointer.

Definition at line 624 of file pawsmanager.h.

csEventID PawsManager::MouseDoubleClick
protected

Shortcut for event mouse double click.

Definition at line 685 of file pawsmanager.h.

csEventID PawsManager::MouseDown
protected

Shortcut for event mouse down.

Definition at line 683 of file pawsmanager.h.

csEventID PawsManager::MouseMove
protected

Shortcut for event mouse move.

Definition at line 681 of file pawsmanager.h.

pawsWidget* PawsManager::mouseoverWidget
protected

The last widget that the mouse moved over. ( For alpha fade effects ).

Definition at line 502 of file pawsmanager.h.

csEventID PawsManager::MouseUp
protected

Shortcut for event mouse up.

Definition at line 687 of file pawsmanager.h.

pawsWidget* PawsManager::movingWidget
protected

Current widget that is being moved.

Definition at line 514 of file pawsmanager.h.

csRef<iEventNameRegistry> PawsManager::nameRegistry
protected

For event parsing.

Definition at line 612 of file pawsmanager.h.

iObjectRegistry* PawsManager::objectReg
protected

The object registry.

Definition at line 598 of file pawsmanager.h.

csArray<pawsWidget*> PawsManager::objectViews
protected

Array of paws object view widgets;.

Definition at line 618 of file pawsmanager.h.

pawsPrefManager* PawsManager::prefs
protected

The preference/default manager.

Definition at line 493 of file pawsmanager.h.

bool PawsManager::render2texture
protected

Whether to use r2t for the gui.

Definition at line 645 of file pawsmanager.h.

csRef<iPawsImage> PawsManager::resizeImg
protected

Resized image.

Definition at line 627 of file pawsmanager.h.

int PawsManager::resizingFlags
protected

The resize flags.

Definition at line 523 of file pawsmanager.h.

pawsWidget* PawsManager::resizingWidget
protected

Holds the widget that is being resized.

Definition at line 520 of file pawsmanager.h.

csRef<iSoundManager> PawsManager::soundManager
protected

planeshift's sound manager

Definition at line 662 of file pawsmanager.h.

pawsStyles* PawsManager::styles
protected

PAWS style definitions.

Definition at line 672 of file pawsmanager.h.

PAWSSubscriptionsHash PawsManager::subscriptions
protected

Table of subscriptions.

Definition at line 675 of file pawsmanager.h.

pawsTextureManager* PawsManager::textureManager
protected

The texture manager.

Definition at line 621 of file pawsmanager.h.

csTicks PawsManager::timeOver
protected

The time mouse has been over the last widget.

Definition at line 508 of file pawsmanager.h.

int PawsManager::tipDelay
protected

The time mouse has been over a widget before showing the tooltip.

Definition at line 511 of file pawsmanager.h.

bool PawsManager::ToolTipEnable

Sets if the tooltip should be enable.

Definition at line 380 of file pawsmanager.h.

bool PawsManager::ToolTipEnableBgColor

Sets if the tooltip should have a bgcolor.

Definition at line 381 of file pawsmanager.h.

int PawsManager::TooltipsColors[3]

Array of tooltip colors.

Definition at line 379 of file pawsmanager.h.

csRef<iVFS> PawsManager::vfs
protected

Pointer to the Crystal Space iVFS file system.

Definition at line 633 of file pawsmanager.h.

csString PawsManager::vfsPathToSkin
protected

VFS Mount directory mapping to the specified skin zip file.

Definition at line 487 of file pawsmanager.h.

csRef<iDocumentSystem> PawsManager::xml
protected

Pointer to the Crystal Space iDocumentSystem.

Definition at line 636 of file pawsmanager.h.


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