Planeshift
|
#include <pawsglyphwindow.h>
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 () |
pawsGlyphSlot * | FindFreeSlot (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 | |
pawsGlyphSlot * | assembler [GLYPH_ASSEMBLER_SLOTS] |
pawsMessageTextBox * | description |
pawsButton * | helpButton |
pawsWidget * | helpWindow |
pawsWidget * | spellImage |
pawsTextBox * | spellName |
csArray< pawsListBox * > | ways |
Definition at line 80 of file pawsglyphwindow.h.
pawsGlyphWindow::pawsGlyphWindow | ( | ) |
virtual pawsGlyphWindow::~pawsGlyphWindow | ( | ) | [virtual] |
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.
button | The button pressed. |
keyModifier | Modifier key in effect. |
widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
Manage mouse down event to test for and apply window changes.
button | Type of button: 1 resizable or movable, 2 context menu or config window. |
modifiers | Used with PAWS_CONSTRUCTION. |
x | Used to test for resize. |
y | Used to test for resize. |
Reimplemented from pawsWidget.
bool pawsGlyphWindow::PostSetup | ( | ) | [virtual] |
This is called after the widget and all of it's children have been created.
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] |
pawsGlyphSlot* pawsGlyphWindow::assembler[GLYPH_ASSEMBLER_SLOTS] [protected] |
Definition at line 124 of file pawsglyphwindow.h.
pawsMessageTextBox* pawsGlyphWindow::description [protected] |
Definition at line 117 of file pawsglyphwindow.h.
pawsButton* pawsGlyphWindow::helpButton [protected] |
Definition at line 120 of file pawsglyphwindow.h.
pawsWidget* pawsGlyphWindow::helpWindow [protected] |
Definition at line 121 of file pawsglyphwindow.h.
pawsWidget* pawsGlyphWindow::spellImage [protected] |
Definition at line 119 of file pawsglyphwindow.h.
pawsTextBox* pawsGlyphWindow::spellName [protected] |
Definition at line 118 of file pawsglyphwindow.h.
csArray<pawsListBox*> pawsGlyphWindow::ways [protected] |
Definition at line 122 of file pawsglyphwindow.h.