Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsConfigEntityLabels Class Reference

class pawsConfigEntityLabels is options screen for configuration of entity labels (see client/entitylabels.h) More...

#include <pawsconfigentitylabels.h>

List of all members.

Public Member Functions

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)
 Called whenever a button is pressed.
virtual bool OnChange (pawsWidget *widget)
 from pawsWidget:
virtual void OnColorEntered (const char *name, int param, int color)
 from iOnColorEnteredAction (set color to param-identified label)
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 ~pawsConfigEntityLabels ()

Protected Member Functions

bool CreateTree ()
 Creates the tree that makes the whole GUI.

Protected Attributes

pawsColorPromptWindowcolorPicker
 the tree that makes whole window GUI
pawsRadioButtonGroupCreatureRBG
 Radio button group for set items labels visibility.
int defLabelColors [ENTITY_TYPES_AMOUNT]
 array of entity labels colors
psEntityLabelsentityLabels
 array of default entity labels colors
pawsRadioButtonGroupItemRBG
 check box to select visibility of guild
int labelColors [ENTITY_TYPES_AMOUNT]
 Radio button group for set creatures labels visibility.
pawsTreetree
 Adds widgets to all nodes in subtree with root 'subtreeRoot'.
pawsCheckBoxvisGuildCheck
 pointer to colorPicker window

Detailed Description

class pawsConfigEntityLabels is options screen for configuration of entity labels (see client/entitylabels.h)

Definition at line 37 of file pawsconfigentitylabels.h.


Constructor & Destructor Documentation

virtual pawsConfigEntityLabels::~pawsConfigEntityLabels ( ) [virtual]

Member Function Documentation

bool pawsConfigEntityLabels::CreateTree ( ) [protected]

Creates the tree that makes the whole GUI.

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

sets content of dialog according to current configuration

Implements pawsConfigSectionWindow.

virtual bool pawsConfigEntityLabels::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 pawsConfigEntityLabels::OnChange ( pawsWidget widget) [virtual]

from pawsWidget:

Reimplemented from pawsWidget.

virtual void pawsConfigEntityLabels::OnColorEntered ( const char *  name,
int  param,
int  color 
) [virtual]

from iOnColorEnteredAction (set color to param-identified label)

Implements iOnColorEnteredAction.

virtual bool pawsConfigEntityLabels::SaveConfig ( ) [virtual]

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

Implements pawsConfigSectionWindow.

virtual void pawsConfigEntityLabels::SetDefault ( ) [virtual]

sets content of dialog according to default configuration

Implements pawsConfigSectionWindow.


Member Data Documentation

the tree that makes whole window GUI

Definition at line 63 of file pawsconfigentitylabels.h.

Radio button group for set items labels visibility.

Definition at line 66 of file pawsconfigentitylabels.h.

int pawsConfigEntityLabels::defLabelColors[ENTITY_TYPES_AMOUNT] [protected]

array of entity labels colors

Definition at line 70 of file pawsconfigentitylabels.h.

array of default entity labels colors

Definition at line 71 of file pawsconfigentitylabels.h.

check box to select visibility of guild

Definition at line 65 of file pawsconfigentitylabels.h.

int pawsConfigEntityLabels::labelColors[ENTITY_TYPES_AMOUNT] [protected]

Radio button group for set creatures labels visibility.

Definition at line 69 of file pawsconfigentitylabels.h.

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

-- color label and button that opens colorPicker

Definition at line 62 of file pawsconfigentitylabels.h.

pointer to colorPicker window

Definition at line 64 of file pawsconfigentitylabels.h.


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