Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsMainWidget Class Reference

The main or desktop widget. More...

#include <pawsmainwidget.h>

List of all members.

Public Member Functions

virtual void ApplyWindowSettingsOnChildren (pawsWidget *caller, int alphaMin, int alphaMax, float fadeSpeed, bool fade, bool scaleFont)
virtual bool OnDoubleClick (int button, int modifiers, int x, int y)
 Manage mouse double click event.
virtual bool OnKeyDown (utf32_char keyCode, utf32_char key, int modifiers)
 Process keydown messages.
virtual bool OnMouseDown (int button, int modifiers, int x, int y)
 Manage mouse down event to test for and apply window changes.
virtual bool OnMouseUp (int button, int modifiers, int x, int y)
 Manage mouse up event.
 pawsMainWidget ()
virtual ~pawsMainWidget ()

Protected Member Functions

bool LoadGUIKeys (const char *fileName)

Protected Attributes

csPDelArray< pawsScriptKeykeys

Detailed Description

The main or desktop widget.

Definition at line 48 of file pawsmainwidget.h.


Constructor & Destructor Documentation

pawsMainWidget::pawsMainWidget ( )
virtual pawsMainWidget::~pawsMainWidget ( ) [virtual]

Member Function Documentation

virtual void pawsMainWidget::ApplyWindowSettingsOnChildren ( pawsWidget caller,
int  alphaMin,
int  alphaMax,
float  fadeSpeed,
bool  fade,
bool  scaleFont 
) [virtual]
bool pawsMainWidget::LoadGUIKeys ( const char *  fileName) [protected]
virtual bool pawsMainWidget::OnDoubleClick ( int  button,
int  modifiers,
int  x,
int  y 
) [virtual]

Manage mouse double click event.

Returns:
bool Parent's result or FALSE if no parent.
Remarks:
Acts recursively on it's parents.

Reimplemented from pawsWidget.

Reimplemented in psMainWidget.

virtual bool pawsMainWidget::OnKeyDown ( utf32_char  keyCode,
utf32_char  keyChar,
int  modifiers 
) [virtual]

Process keydown messages.

Parameters:
keyCodeThe code for the pressed key.
keyCharThe key pressed.
modifiersUsed to modify tab behavior.
Returns:
bool TRUE for success FALSE if no action.
Remarks:
If you override this, be sure to also override GetFocusOverridesControls() as returning true

Reimplemented from pawsWidget.

Reimplemented in psMainWidget.

virtual bool pawsMainWidget::OnMouseDown ( int  button,
int  modifiers,
int  x,
int  y 
) [virtual]

Manage mouse down event to test for and apply window changes.

Parameters:
buttonType of button: 1 resizable or movable, 2 context menu or config window.
modifiersUsed with PAWS_CONSTRUCTION.
xUsed to test for resize.
yUsed to test for resize.
Returns:
bool TRUE if movable or resizable.
Remarks:
calls OnMouseDown on it's parent.

Reimplemented from pawsWidget.

Reimplemented in psMainWidget.

virtual bool pawsMainWidget::OnMouseUp ( int  button,
int  modifiers,
int  x,
int  y 
) [virtual]

Manage mouse up event.

Returns:
bool Parent's result or FALSE if no parent.
Remarks:
Acts recursively on it's parents.

Reimplemented from pawsWidget.

Reimplemented in psMainWidget.


Member Data Documentation

csPDelArray<pawsScriptKey> pawsMainWidget::keys [protected]

Definition at line 66 of file pawsmainwidget.h.


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