Planeshift
Public Member Functions | Protected Attributes

pawsConfigChatFont Class Reference

#include <pawsconfigchatfont.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, int, pawsWidget *)
 Called whenever a button is pressed.
virtual void OnListAction (pawsListBox *selected, int status)
 Called whenever an item in a child list box is selected.
virtual bool OnScroll (int, pawsScrollBar *)
 Called whenever a window is scrolled.
 pawsConfigChatFont ()
void PickText (const char *fontName, int size)
virtual bool PostSetup ()
 This is called after the widget and all of it's children have been created.
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

Protected Attributes

pawsChatWindowChatWindow
bool loaded
pawsComboBoxtextFont
pawsScrollBartextSize
pawsScrollBartextSpacing

Detailed Description

Definition at line 34 of file pawsconfigchatfont.h.


Constructor & Destructor Documentation

pawsConfigChatFont::pawsConfigChatFont ( )

Member Function Documentation

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

sets content of dialog according to current configuration

Implements pawsConfigSectionWindow.

virtual bool pawsConfigChatFont::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 void pawsConfigChatFont::OnListAction ( pawsListBox selected,
int  status 
) [virtual]

Called whenever an item in a child list box is selected.

Parameters:
selectedThe listbox that has the item selected.
statusFrom listbox when a row is selected.

Reimplemented from pawsWidget.

virtual bool pawsConfigChatFont::OnScroll ( int  scrollDirection,
pawsScrollBar widget 
) [virtual]

Called whenever a window is scrolled.

Parameters:
scrollDirectionThe direction to move.
widgetThe scrollbar widget being manipulated.
Returns:
bool Parent's result or FALSE if no parent.

Reimplemented from pawsWidget.

void pawsConfigChatFont::PickText ( const char *  fontName,
int  size 
)
virtual bool pawsConfigChatFont::PostSetup ( ) [virtual]

This is called after the widget and all of it's children have been created.

Remarks:
This can be useful for widgets that want to get pointers to some of it's children for quick access.

Reimplemented from pawsWidget.

virtual bool pawsConfigChatFont::SaveConfig ( ) [virtual]

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

Implements pawsConfigSectionWindow.

virtual void pawsConfigChatFont::SetDefault ( ) [virtual]

sets content of dialog according to default configuration

Implements pawsConfigSectionWindow.


Member Data Documentation

Definition at line 56 of file pawsconfigchatfont.h.

bool pawsConfigChatFont::loaded [protected]

Definition at line 62 of file pawsconfigchatfont.h.

Definition at line 58 of file pawsconfigchatfont.h.

Definition at line 59 of file pawsconfigchatfont.h.

Definition at line 60 of file pawsconfigchatfont.h.


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