Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsConfigKeys Class Reference

This window is used to configure keyboard bindings. More...

#include <pawsconfigkeys.h>

List of all members.

Public Member Functions

virtual void Draw ()
 Draws the widget and all of it's children.
virtual bool Initialize ()
 from pawsConfigSectionWindow:
virtual bool LoadConfig ()
 sets content of dialog according to current configuration
virtual bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 from pawsWidget:
virtual bool OnFingering (csString string, psControl::Device device, uint button, uint32 mods)
 from FingeringWindow
 pawsConfigKeys ()
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
void UpdateNicks (pawsTreeNode *subtreeRoot=NULL)

Protected Member Functions

bool CreateTree ()
 Creates the tree that makes the whole GUI.
void CreateTreeWidgets (pawsTreeNode *subtreeRoot)
 Adds widgets to all nodes in subtree with root 'subtreeRoot'.
bool FindFingeringWindow ()
 loads pawsFingeringWindow widget from xml.
void SetKeyLabels (pawsTreeNode *subtreeRoot)
 Sets all labels that hold key combinations (in subtree with root 'subtreeRoot')
void SetTriggerTextOfCommand (const csString &command, const csString &trigger)
 Sets textual description of key combination to given command on screen.

Protected Attributes

csString editedCmd
pawsFingeringWindowfingWnd
pawsTreetree

Detailed Description

This window is used to configure keyboard bindings.

It is one of the windows that appear on the right side of pawsConfigWindow.

Definition at line 64 of file pawsconfigkeys.h.


Constructor & Destructor Documentation

pawsConfigKeys::pawsConfigKeys ( )

Member Function Documentation

bool pawsConfigKeys::CreateTree ( ) [protected]

Creates the tree that makes the whole GUI.

Returns:
success
void pawsConfigKeys::CreateTreeWidgets ( pawsTreeNode subtreeRoot) [protected]

Adds widgets to all nodes in subtree with root 'subtreeRoot'.

-- command label, key combination label and button that opens FingeringWindow

virtual void pawsConfigKeys::Draw ( ) [virtual]

Draws the widget and all of it's children.

Remarks:
Uses clipping rect of it's parent to define drawing area. If the drawing area defined is empty it returns.

Reimplemented from pawsWidget.

bool pawsConfigKeys::FindFingeringWindow ( ) [protected]

loads pawsFingeringWindow widget from xml.

Returns:
success
virtual bool pawsConfigKeys::Initialize ( ) [virtual]
virtual bool pawsConfigKeys::LoadConfig ( ) [virtual]

sets content of dialog according to current configuration

Implements pawsConfigSectionWindow.

virtual bool pawsConfigKeys::OnButtonPressed ( int  mouseButton,
int  keyModifier,
pawsWidget widget 
) [virtual]

from pawsWidget:

Reimplemented from pawsWidget.

virtual bool pawsConfigKeys::OnFingering ( csString  string,
psControl::Device  device,
uint  button,
uint32  mods 
) [virtual]

from FingeringWindow

Implements pawsFingeringReceiver.

virtual bool pawsConfigKeys::SaveConfig ( ) [inline, virtual]

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

Implements pawsConfigSectionWindow.

Definition at line 72 of file pawsconfigkeys.h.

virtual void pawsConfigKeys::SetDefault ( ) [virtual]

sets content of dialog according to default configuration

Implements pawsConfigSectionWindow.

void pawsConfigKeys::SetKeyLabels ( pawsTreeNode subtreeRoot) [protected]

Sets all labels that hold key combinations (in subtree with root 'subtreeRoot')

void pawsConfigKeys::SetTriggerTextOfCommand ( const csString &  command,
const csString &  trigger 
) [protected]

Sets textual description of key combination to given command on screen.

void pawsConfigKeys::UpdateNicks ( pawsTreeNode subtreeRoot = NULL)

Member Data Documentation

csString pawsConfigKeys::editedCmd [protected]

Definition at line 108 of file pawsconfigkeys.h.

Definition at line 106 of file pawsconfigkeys.h.

Definition at line 105 of file pawsconfigkeys.h.


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