Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsQuestListWindow Class Reference

Window contains a list of the available loot items. More...

#include <pawsquestwindow.h>

List of all members.

Public Member Functions

const char * HandleCommand (const char *cmd)
 Handles commands.
void HandleMessage (MsgEntry *message)
 Handles petition server messages.
void LoadNotes (const char *fileName)
 Load quest notes.
bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *reporter)
 Handle button clicks.
bool OnButtonReleased (int mouseButton, int keyModifier, pawsWidget *reporter)
 Handle question boxes.
void OnListAction (pawsListBox *selected, int status)
 Called whenever an item in a child list box is selected.
void OnNumberEntered (const char *name, int param, int value)
 Handle popup comment question window callback.
void OnStringEntered (const char *name, int param, const char *value)
 Handle popup vote question window callback.
 pawsQuestListWindow ()
 Constructor.
bool PostSetup ()
 Setup the widget with command/message handling capabilities.
void SaveNotes (const char *fileName)
 Save quest notes.
void Show (void)
 Show the quest window.
void ShowNotes ()
 Show quest notes.
virtual ~pawsQuestListWindow ()
 Virtual destructor.

Protected Member Functions

void DiscardGMEvent (int id)
 Ask server to discard a given GM event.
void DiscardQuest (int id)
 Ask server to discard a given quest.
void EvaluateGMEvent (int id, uint8_t vote, csString comment)
 Sends an evaluation on the gm event to the server.
void PopulateGMEventTab (void)
 Populate GM Events tab.
void PopulateQuestTab (void)
 Populate Quest tab.
void RequestGMEventData (int id)
 Ask server for data about a given GM-Event.
void RequestQuestData (int id)
 Ask server for data about given quest.

Protected Attributes

pawsListBoxcompletedEventList
 The list of completed events.
csString completedEvents
 XML strings for gm events.
pawsListBoxcompletedQuestList
 The list of completed quests.
csString completedQuests
 XML strings for quests.
pawsTabWindowcurrentTab
 current top tab
pawsMessageTextBoxdescription
pawsButtonEvaluateBtn
 The button which brings up the evaluation procedure.
pawsListBoxeventList
 The list of events.
pawsTabWindoweventTab
 The selected tab of events.
csString filename
 filename to load from or save to.
pawsMultilineEditTextBoxnotes
bool populateGMEventLists
 flag to indicate to populate new quest xml string
bool populateQuestLists
 flag to indicate to populate new quest xml string
csArray< QuestNote * > quest_notes
int questID
 ID of selected quest (-1 = no quest selected)
int questIDBuffer
 ID of pending discard (in case selection changes during prompt)
pawsListBoxquestList
 The list of quests.
pawsButtonQuestListsBtn
pawsTabWindowquestTab
 The selected tab of quests.
pawsTextBoxtotal
csString TotalNumberStr
pawsListBoxuncompletedEventList
 The list of uncompleted events (discarded events are hidden; deleted after expiration)
csString uncompletedEvents
pawsListBoxuncompletedQuestList
 The list of uncompleted quests (discarded quests are hidden; deleted after expiration)
csString uncompletedQuests
csRef< iVFS > vfs
int VoteBuffer
 Last vote expressed.
csRef< iDocumentSystem > xml

Detailed Description

Window contains a list of the available loot items.

with options to take them, roll for them or cancel the window.

NOTE: the current expected columns for the listbox are as follows:

1) icon 2) item name 3) item id (hidden)

Definition at line 65 of file pawsquestwindow.h.


Constructor & Destructor Documentation

pawsQuestListWindow::pawsQuestListWindow ( )

Constructor.

virtual pawsQuestListWindow::~pawsQuestListWindow ( ) [virtual]

Virtual destructor.


Member Function Documentation

void pawsQuestListWindow::DiscardGMEvent ( int  id) [protected]

Ask server to discard a given GM event.

void pawsQuestListWindow::DiscardQuest ( int  id) [protected]

Ask server to discard a given quest.

void pawsQuestListWindow::EvaluateGMEvent ( int  id,
uint8_t  vote,
csString  comment 
) [protected]

Sends an evaluation on the gm event to the server.

Parameters:
id,:The id of the event which is being evaluated
vote,:a number from 1 to 10 stating the vote to assign to the event
comment,:A comment about the event
const char* pawsQuestListWindow::HandleCommand ( const char *  cmd) [virtual]

Handles commands.

Implements psCmdBase.

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

Handles petition server messages.

Implements psCmdBase.

void pawsQuestListWindow::LoadNotes ( const char *  fileName)

Load quest notes.

bool pawsQuestListWindow::OnButtonPressed ( int  mouseButton,
int  keyModifier,
pawsWidget reporter 
) [virtual]

Handle button clicks.

Reimplemented from pawsWidget.

bool pawsQuestListWindow::OnButtonReleased ( int  mouseButton,
int  keyModifier,
pawsWidget reporter 
) [virtual]

Handle question boxes.

Reimplemented from pawsWidget.

void pawsQuestListWindow::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 pawsQuestListWindow::OnNumberEntered ( const char *  name,
int  param,
int  value 
) [virtual]

Handle popup comment question window callback.

Implements iOnNumberEnteredAction.

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

Handle popup vote question window callback.

Implements iOnStringEnteredAction.

void pawsQuestListWindow::PopulateGMEventTab ( void  ) [protected]

Populate GM Events tab.

void pawsQuestListWindow::PopulateQuestTab ( void  ) [protected]

Populate Quest tab.

bool pawsQuestListWindow::PostSetup ( ) [virtual]

Setup the widget with command/message handling capabilities.

Reimplemented from pawsWidget.

void pawsQuestListWindow::RequestGMEventData ( int  id) [protected]

Ask server for data about a given GM-Event.

void pawsQuestListWindow::RequestQuestData ( int  id) [protected]

Ask server for data about given quest.

void pawsQuestListWindow::SaveNotes ( const char *  fileName)

Save quest notes.

void pawsQuestListWindow::Show ( void  ) [virtual]

Show the quest window.

Reimplemented from pawsControlledWindow.

void pawsQuestListWindow::ShowNotes ( )

Show quest notes.


Member Data Documentation

The list of completed events.

Definition at line 163 of file pawsquestwindow.h.

XML strings for gm events.

Definition at line 169 of file pawsquestwindow.h.

The list of completed quests.

Definition at line 144 of file pawsquestwindow.h.

XML strings for quests.

Definition at line 150 of file pawsquestwindow.h.

current top tab

Definition at line 176 of file pawsquestwindow.h.

Definition at line 178 of file pawsquestwindow.h.

The button which brings up the evaluation procedure.

Definition at line 185 of file pawsquestwindow.h.

The list of events.

Definition at line 160 of file pawsquestwindow.h.

The selected tab of events.

Definition at line 157 of file pawsquestwindow.h.

csString pawsQuestListWindow::filename [protected]

filename to load from or save to.

Reimplemented from pawsWidget.

Definition at line 196 of file pawsquestwindow.h.

Definition at line 180 of file pawsquestwindow.h.

flag to indicate to populate new quest xml string

Definition at line 173 of file pawsquestwindow.h.

flag to indicate to populate new quest xml string

Definition at line 154 of file pawsquestwindow.h.

Definition at line 192 of file pawsquestwindow.h.

ID of selected quest (-1 = no quest selected)

Definition at line 187 of file pawsquestwindow.h.

ID of pending discard (in case selection changes during prompt)

Definition at line 188 of file pawsquestwindow.h.

The list of quests.

Definition at line 141 of file pawsquestwindow.h.

Definition at line 198 of file pawsquestwindow.h.

The selected tab of quests.

Definition at line 138 of file pawsquestwindow.h.

Definition at line 182 of file pawsquestwindow.h.

Definition at line 197 of file pawsquestwindow.h.

The list of uncompleted events (discarded events are hidden; deleted after expiration)

Definition at line 166 of file pawsquestwindow.h.

Definition at line 170 of file pawsquestwindow.h.

The list of uncompleted quests (discarded quests are hidden; deleted after expiration)

Definition at line 147 of file pawsquestwindow.h.

Definition at line 151 of file pawsquestwindow.h.

csRef<iVFS> pawsQuestListWindow::vfs [protected]

Definition at line 194 of file pawsquestwindow.h.

Last vote expressed.

Definition at line 190 of file pawsquestwindow.h.

csRef<iDocumentSystem> pawsQuestListWindow::xml [protected]

Definition at line 195 of file pawsquestwindow.h.


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