Planeshift
Public Member Functions

pawsBuddyWindow Class Reference

The buddy window that shows your current list of in game 'friends'. More...

#include <pawsbuddy.h>

List of all members.

Public Member Functions

void HandleMessage (MsgEntry *me)
 Handles the messages this widget has subscribed to.
bool OnButtonReleased (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is released.
void OnListAction (pawsListBox *widget, int status)
 Called whenever an item in a child list box is selected.
virtual void OnResize ()
 Sets the new position of the close button.
void OnStringEntered (const char *name, int param, const char *value)
 When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provided, and a "name" string is provided, so that a single window can use 1 callback for many fields.
 pawsBuddyWindow ()
bool PostSetup ()
 This is called after the widget and all of it's children have been created.
virtual void Show ()
 When the window is opened let the controller window know about it.

Detailed Description

The buddy window that shows your current list of in game 'friends'.

This allows you to send them a tell or add/remove buddies.

Definition at line 42 of file pawsbuddy.h.


Constructor & Destructor Documentation

pawsBuddyWindow::pawsBuddyWindow ( )

Member Function Documentation

void pawsBuddyWindow::HandleMessage ( MsgEntry me) [virtual]

Handles the messages this widget has subscribed to.

Parameters:
me,:msgentry containing the message

Implements psClientNetSubscriber.

bool pawsBuddyWindow::OnButtonReleased ( int  button,
int  keyModifier,
pawsWidget widget 
) [virtual]

Called whenever a button is released.

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

Reimplemented from pawsWidget.

void pawsBuddyWindow::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 void pawsBuddyWindow::OnResize ( ) [virtual]

Sets the new position of the close button.

Reimplemented from pawsWidget.

void pawsBuddyWindow::OnStringEntered ( const char *  name,
int  param,
const char *  value 
) [virtual]

When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provided, and a "name" string is provided, so that a single window can use 1 callback for many fields.

Implements iOnStringEnteredAction.

bool pawsBuddyWindow::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 void pawsBuddyWindow::Show ( void  ) [virtual]

When the window is opened let the controller window know about it.

Reimplemented from pawsControlledWindow.


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