Planeshift
|
This window is used to configure keyboard bindings. More...
#include <pawsconfigkeys.h>
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 |
pawsFingeringWindow * | fingWnd |
pawsTree * | tree |
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.
pawsConfigKeys::pawsConfigKeys | ( | ) |
bool pawsConfigKeys::CreateTree | ( | ) | [protected] |
Creates the tree that makes the whole GUI.
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.
Reimplemented from pawsWidget.
bool pawsConfigKeys::FindFingeringWindow | ( | ) | [protected] |
loads pawsFingeringWindow widget from xml.
virtual bool pawsConfigKeys::Initialize | ( | ) | [virtual] |
from pawsConfigSectionWindow:
Implements pawsConfigSectionWindow.
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 | ) |
csString pawsConfigKeys::editedCmd [protected] |
Definition at line 108 of file pawsconfigkeys.h.
pawsFingeringWindow* pawsConfigKeys::fingWnd [protected] |
Definition at line 106 of file pawsconfigkeys.h.
pawsTree* pawsConfigKeys::tree [protected] |
Definition at line 105 of file pawsconfigkeys.h.