Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsGlyphWindow Class Reference

#include <pawsglyphwindow.h>

List of all members.

Public Member Functions

void HandleMessage (MsgEntry *message)
 For the iNetSubsciber interface.
void Hide ()
 Makes widget invisible and removes focus if widget has current focus.
bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is pressed.
bool OnMouseDown (int button, int modifiers, int x, int y)
 Manage mouse down event to test for and apply window changes.
 pawsGlyphWindow ()
bool PostSetup ()
 This is called after the widget and all of it's children have been created.
void Show ()
 Makes widget visible and brings it to the front.
virtual ~pawsGlyphWindow ()

Protected Member Functions

void ClearSpell ()
pawsGlyphSlotFindFreeSlot (int wayNum)
 Finds free glyph slot (may create new slots when all are occupied)
void HandleAssemble (MsgEntry *me)
void HandleGlyphList (MsgEntry *me)
void NewGlyphSlotRow (int wayNum)
 Create new row in listbox of glyph slots.
void SendAssembler (bool infoRequest=false)
 Sends content of assembler to server, if infoRequest is true is only to check if the assembler content is from a spell that you already know.
void StartDrag (pawsGlyphSlot *sourceSlot)
 Drag and drop.
void StopDrag (pawsGlyphSlot *sourceSlot)

Protected Attributes

pawsGlyphSlotassembler [GLYPH_ASSEMBLER_SLOTS]
pawsMessageTextBoxdescription
pawsButtonhelpButton
pawsWidgethelpWindow
pawsWidgetspellImage
pawsTextBoxspellName
csArray< pawsListBox * > ways

Detailed Description

Definition at line 80 of file pawsglyphwindow.h.


Constructor & Destructor Documentation

pawsGlyphWindow::pawsGlyphWindow ( )
virtual pawsGlyphWindow::~pawsGlyphWindow ( ) [virtual]

Member Function Documentation

void pawsGlyphWindow::ClearSpell ( ) [protected]
pawsGlyphSlot* pawsGlyphWindow::FindFreeSlot ( int  wayNum) [protected]

Finds free glyph slot (may create new slots when all are occupied)

void pawsGlyphWindow::HandleAssemble ( MsgEntry me) [protected]
void pawsGlyphWindow::HandleGlyphList ( MsgEntry me) [protected]
void pawsGlyphWindow::HandleMessage ( MsgEntry message) [virtual]

For the iNetSubsciber interface.

Implements psClientNetSubscriber.

void pawsGlyphWindow::Hide ( ) [virtual]

Makes widget invisible and removes focus if widget has current focus.

Sets visible FALSE, hides border if present and then if focused when called it calls SetCurrentFocusedWidget(NULL).

Reimplemented from pawsWidget.

void pawsGlyphWindow::NewGlyphSlotRow ( int  wayNum) [protected]

Create new row in listbox of glyph slots.

bool pawsGlyphWindow::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.

bool pawsGlyphWindow::OnMouseDown ( int  button,
int  modifiers,
int  x,
int  y 
) [virtual]

Manage mouse down event to test for and apply window changes.

Parameters:
buttonType of button: 1 resizable or movable, 2 context menu or config window.
modifiersUsed with PAWS_CONSTRUCTION.
xUsed to test for resize.
yUsed to test for resize.
Returns:
bool TRUE if movable or resizable.
Remarks:
calls OnMouseDown on it's parent.

Reimplemented from pawsWidget.

bool pawsGlyphWindow::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 pawsGlyphWindow::SendAssembler ( bool  infoRequest = false) [protected]

Sends content of assembler to server, if infoRequest is true is only to check if the assembler content is from a spell that you already know.

void pawsGlyphWindow::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 pawsGlyphWindow::StartDrag ( pawsGlyphSlot sourceSlot) [protected]

Drag and drop.

void pawsGlyphWindow::StopDrag ( pawsGlyphSlot sourceSlot) [protected]

Member Data Documentation

pawsGlyphSlot* pawsGlyphWindow::assembler[GLYPH_ASSEMBLER_SLOTS] [protected]

Definition at line 124 of file pawsglyphwindow.h.

Definition at line 117 of file pawsglyphwindow.h.

Definition at line 120 of file pawsglyphwindow.h.

Definition at line 121 of file pawsglyphwindow.h.

Definition at line 119 of file pawsglyphwindow.h.

Definition at line 118 of file pawsglyphwindow.h.

Definition at line 122 of file pawsglyphwindow.h.


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