Planeshift
|
Window contains a list of the available loot items. More...
#include <pawsquestwindow.h>
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 | |
pawsListBox * | completedEventList |
The list of completed events. | |
csString | completedEvents |
XML strings for gm events. | |
pawsListBox * | completedQuestList |
The list of completed quests. | |
csString | completedQuests |
XML strings for quests. | |
pawsTabWindow * | currentTab |
current top tab | |
pawsMessageTextBox * | description |
pawsButton * | EvaluateBtn |
The button which brings up the evaluation procedure. | |
pawsListBox * | eventList |
The list of events. | |
pawsTabWindow * | eventTab |
The selected tab of events. | |
csString | filename |
filename to load from or save to. | |
pawsMultilineEditTextBox * | notes |
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) | |
pawsListBox * | questList |
The list of quests. | |
pawsButton * | QuestListsBtn |
pawsTabWindow * | questTab |
The selected tab of quests. | |
pawsTextBox * | total |
csString | TotalNumberStr |
pawsListBox * | uncompletedEventList |
The list of uncompleted events (discarded events are hidden; deleted after expiration) | |
csString | uncompletedEvents |
pawsListBox * | uncompletedQuestList |
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 |
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.
pawsQuestListWindow::pawsQuestListWindow | ( | ) |
Constructor.
virtual pawsQuestListWindow::~pawsQuestListWindow | ( | ) | [virtual] |
Virtual destructor.
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.
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.
selected | The listbox that has the item selected. |
status | From listbox when a row is selected. |
Reimplemented from pawsWidget.
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.
pawsListBox* pawsQuestListWindow::completedEventList [protected] |
The list of completed events.
Definition at line 163 of file pawsquestwindow.h.
csString pawsQuestListWindow::completedEvents [protected] |
XML strings for gm events.
Definition at line 169 of file pawsquestwindow.h.
pawsListBox* pawsQuestListWindow::completedQuestList [protected] |
The list of completed quests.
Definition at line 144 of file pawsquestwindow.h.
csString pawsQuestListWindow::completedQuests [protected] |
XML strings for quests.
Definition at line 150 of file pawsquestwindow.h.
pawsTabWindow* pawsQuestListWindow::currentTab [protected] |
current top tab
Definition at line 176 of file pawsquestwindow.h.
pawsMessageTextBox* pawsQuestListWindow::description [protected] |
Definition at line 178 of file pawsquestwindow.h.
pawsButton* pawsQuestListWindow::EvaluateBtn [protected] |
The button which brings up the evaluation procedure.
Definition at line 185 of file pawsquestwindow.h.
pawsListBox* pawsQuestListWindow::eventList [protected] |
The list of events.
Definition at line 160 of file pawsquestwindow.h.
pawsTabWindow* pawsQuestListWindow::eventTab [protected] |
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.
pawsMultilineEditTextBox* pawsQuestListWindow::notes [protected] |
Definition at line 180 of file pawsquestwindow.h.
bool pawsQuestListWindow::populateGMEventLists [protected] |
flag to indicate to populate new quest xml string
Definition at line 173 of file pawsquestwindow.h.
bool pawsQuestListWindow::populateQuestLists [protected] |
flag to indicate to populate new quest xml string
Definition at line 154 of file pawsquestwindow.h.
csArray<QuestNote*> pawsQuestListWindow::quest_notes [protected] |
Definition at line 192 of file pawsquestwindow.h.
int pawsQuestListWindow::questID [protected] |
ID of selected quest (-1 = no quest selected)
Definition at line 187 of file pawsquestwindow.h.
int pawsQuestListWindow::questIDBuffer [protected] |
ID of pending discard (in case selection changes during prompt)
Definition at line 188 of file pawsquestwindow.h.
pawsListBox* pawsQuestListWindow::questList [protected] |
The list of quests.
Definition at line 141 of file pawsquestwindow.h.
pawsButton* pawsQuestListWindow::QuestListsBtn [protected] |
Definition at line 198 of file pawsquestwindow.h.
pawsTabWindow* pawsQuestListWindow::questTab [protected] |
The selected tab of quests.
Definition at line 138 of file pawsquestwindow.h.
pawsTextBox* pawsQuestListWindow::total [protected] |
Definition at line 182 of file pawsquestwindow.h.
csString pawsQuestListWindow::TotalNumberStr [protected] |
Definition at line 197 of file pawsquestwindow.h.
pawsListBox* pawsQuestListWindow::uncompletedEventList [protected] |
The list of uncompleted events (discarded events are hidden; deleted after expiration)
Definition at line 166 of file pawsquestwindow.h.
csString pawsQuestListWindow::uncompletedEvents [protected] |
Definition at line 170 of file pawsquestwindow.h.
pawsListBox* pawsQuestListWindow::uncompletedQuestList [protected] |
The list of uncompleted quests (discarded quests are hidden; deleted after expiration)
Definition at line 147 of file pawsquestwindow.h.
csString pawsQuestListWindow::uncompletedQuests [protected] |
Definition at line 151 of file pawsquestwindow.h.
csRef<iVFS> pawsQuestListWindow::vfs [protected] |
Definition at line 194 of file pawsquestwindow.h.
int pawsQuestListWindow::VoteBuffer [protected] |
Last vote expressed.
Definition at line 190 of file pawsquestwindow.h.
csRef<iDocumentSystem> pawsQuestListWindow::xml [protected] |
Definition at line 195 of file pawsquestwindow.h.