Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsConfigMouse Class Reference

#include <pawsconfigmouse.h>

List of all members.

Public Member Functions

virtual bool Initialize ()
virtual bool LoadConfig ()
 sets content of dialog according to current configuration
virtual bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is pressed.
virtual bool OnChange (pawsWidget *widget)
 Called whenever a widget is selected.
virtual bool SaveConfig ()
 remembers settings in-game and saves them permanently to a file also
virtual void SetDefault ()
 sets content of dialog according to default configuration
virtual ~pawsConfigMouse ()

Protected Member Functions

bool CreateTree ()
 Creates the tree that makes the whole GUI.
void CreateTreeWidgets (pawsTreeNode *subtreeRoot)
void HandleEditedAction (csString &editedAction)
 Update the ingame state depending on the action that was edited.
bool LoadMouse (const char *fileName)
void SetActionLabels (pawsTreeNode *subtreeRoot)

Protected Attributes

psMouseBinds binds
pawsTreetree

Detailed Description

Definition at line 40 of file pawsconfigmouse.h.


Constructor & Destructor Documentation

virtual pawsConfigMouse::~pawsConfigMouse ( ) [virtual]

Member Function Documentation

bool pawsConfigMouse::CreateTree ( ) [protected]

Creates the tree that makes the whole GUI.

Returns:
success.
void pawsConfigMouse::CreateTreeWidgets ( pawsTreeNode subtreeRoot) [protected]
void pawsConfigMouse::HandleEditedAction ( csString &  editedAction) [protected]

Update the ingame state depending on the action that was edited.

virtual bool pawsConfigMouse::Initialize ( ) [virtual]
virtual bool pawsConfigMouse::LoadConfig ( ) [virtual]

sets content of dialog according to current configuration

Implements pawsConfigSectionWindow.

bool pawsConfigMouse::LoadMouse ( const char *  fileName) [protected]
virtual bool pawsConfigMouse::OnButtonPressed ( int  button,
int  keyModifier,
pawsWidget widget 
) [virtual]

Called whenever a button is pressed.

Parameters:
buttonThe button pressed.
keyModifierModifier key in effect.
widgetThe widget the button belongs to.
Returns:
bool Parent's result or FALSE if no parent.

Reimplemented from pawsWidget.

virtual bool pawsConfigMouse::OnChange ( pawsWidget widget) [virtual]

Called whenever a widget is selected.

Parameters:
widgetThe widget acted upon.
Returns:
Notify parent and return result FALSE if no parent.

Reimplemented from pawsWidget.

virtual bool pawsConfigMouse::SaveConfig ( ) [virtual]

remembers settings in-game and saves them permanently to a file also

Implements pawsConfigSectionWindow.

void pawsConfigMouse::SetActionLabels ( pawsTreeNode subtreeRoot) [protected]
virtual void pawsConfigMouse::SetDefault ( ) [virtual]

sets content of dialog according to default configuration

Implements pawsConfigSectionWindow.


Member Data Documentation

Definition at line 73 of file pawsconfigmouse.h.

Definition at line 71 of file pawsconfigmouse.h.


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