Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsGmGUIWindow Class Reference

#include <pawsgmgui.h>

List of all members.

Public Member Functions

int GetCurrentTab ()
 Returns the currently selected tab in this window.
int GetSelectedGender ()
const char * GetSelectedName ()
const char * GetSelectedSector ()
const char * HandleCommand (const char *cmd)
 Handles commands.
void HandleMessage (MsgEntry *message)
 Handles petition server messages.
void HideWidget (const char *name)
bool OnButtonReleased (int mouseButton, int keyModifier, pawsWidget *reporter)
 Handle button clicks.
virtual void OnListAction (pawsListBox *widget, int status)
 Called whenever an item in a child list box is selected.
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.
 pawsGmGUIWindow ()
virtual bool PostSetup ()
 This is called after the widget and all of it's children have been created.
void QueryServer ()
virtual void Show ()
 Makes widget visible and brings it to the front.
void ShowWidget (const char *name)
virtual ~pawsGmGUIWindow ()

Protected Member Functions

void FillActionList (psMapActionMessage &msg)
void FillPlayerList (psGMGuiMessage &msg)
void QueryActionLocations ()
void SetSecurity ()

Protected Attributes

pawsListBoxactionList
csString actionXML
pawsCheckBoxcbAttackable
pawsCheckBoxcbBuddyHide
pawsCheckBoxcbGiveKillExp
pawsCheckBoxcbInfiniteInventory
pawsCheckBoxcbInfiniteMana
pawsCheckBoxcbInstantCast
pawsCheckBoxcbInvincible
pawsCheckBoxcbInvisible
pawsCheckBoxcbNeverTired
pawsCheckBoxcbNoFallDamage
pawsCheckBoxcbQuestTester
pawsCheckBoxcbViewAll
pawsChatWindowchatWindow
CmdHandlercmdsource
csString cmdToExectute
pawsTextBoxplayerCount
pawsListBoxplayerList
csRef< iVFS > vfs

Detailed Description

Definition at line 33 of file pawsgmgui.h.


Constructor & Destructor Documentation

pawsGmGUIWindow::pawsGmGUIWindow ( )
virtual pawsGmGUIWindow::~pawsGmGUIWindow ( ) [virtual]

Member Function Documentation

void pawsGmGUIWindow::FillActionList ( psMapActionMessage msg) [protected]
void pawsGmGUIWindow::FillPlayerList ( psGMGuiMessage msg) [protected]
int pawsGmGUIWindow::GetCurrentTab ( )

Returns the currently selected tab in this window.

Returns:
the id of the selected tab (0 players, 1 action locations, 2 gm options
int pawsGmGUIWindow::GetSelectedGender ( )
const char* pawsGmGUIWindow::GetSelectedName ( )
const char* pawsGmGUIWindow::GetSelectedSector ( )
const char* pawsGmGUIWindow::HandleCommand ( const char *  cmd) [virtual]

Handles commands.

Implements psCmdBase.

void pawsGmGUIWindow::HandleMessage ( MsgEntry message) [virtual]

Handles petition server messages.

Implements psCmdBase.

void pawsGmGUIWindow::HideWidget ( const char *  name)
bool pawsGmGUIWindow::OnButtonReleased ( int  mouseButton,
int  keyModifier,
pawsWidget reporter 
) [virtual]

Handle button clicks.

Reimplemented from pawsWidget.

virtual void pawsGmGUIWindow::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.

void pawsGmGUIWindow::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.

virtual bool pawsGmGUIWindow::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.

void pawsGmGUIWindow::QueryActionLocations ( ) [protected]
void pawsGmGUIWindow::QueryServer ( )
void pawsGmGUIWindow::SetSecurity ( ) [protected]
virtual void pawsGmGUIWindow::Show ( ) [virtual]

Makes widget visible and brings it to the front.

Sets visible TRUE shows border if present then calls BringToTop() on itself.

Reimplemented from pawsWidget.

void pawsGmGUIWindow::ShowWidget ( const char *  name)

Member Data Documentation

Definition at line 97 of file pawsgmgui.h.

csString pawsGmGUIWindow::actionXML [protected]

Definition at line 116 of file pawsgmgui.h.

Definition at line 112 of file pawsgmgui.h.

Definition at line 113 of file pawsgmgui.h.

Definition at line 111 of file pawsgmgui.h.

Definition at line 107 of file pawsgmgui.h.

Definition at line 109 of file pawsgmgui.h.

Definition at line 110 of file pawsgmgui.h.

Definition at line 102 of file pawsgmgui.h.

Definition at line 103 of file pawsgmgui.h.

Definition at line 105 of file pawsgmgui.h.

Definition at line 106 of file pawsgmgui.h.

Definition at line 108 of file pawsgmgui.h.

Definition at line 104 of file pawsgmgui.h.

Definition at line 84 of file pawsgmgui.h.

Reimplemented from psCmdBase.

Definition at line 85 of file pawsgmgui.h.

csString pawsGmGUIWindow::cmdToExectute [protected]

Definition at line 115 of file pawsgmgui.h.

Definition at line 99 of file pawsgmgui.h.

Definition at line 96 of file pawsgmgui.h.

csRef<iVFS> pawsGmGUIWindow::vfs [protected]

Definition at line 87 of file pawsgmgui.h.


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