PopupMenu Class Reference

#include <popupmenu.h>

Inheritance diagram for PopupMenu:

Popup LinkHandler Container

List of all members.


Detailed Description

Window showing popup menu.

Definition at line 36 of file popupmenu.h.


Public Member Functions

 PopupMenu ()
 Constructor.
void showPopup (int x, int y, Being *being)
 Shows the being related popup menu at the specified mouse coords.
void showPopup (int x, int y, FloorItem *floorItem)
 Shows the floor item related popup menu at the specified mouse coords.
void showPopup (int x, int y, Item *item)
 Shows the related popup menu when right click on the inventory at the specified mouse coordinates.
void handleLink (const std::string &link)
 Handles link action.

Private Member Functions

void showPopup (int x, int y)
 Shared code for the various showPopup functions.

Private Attributes

BrowserBoxmBrowserBox
int mBeingId
FloorItemmFloorItem
ItemmItem

Constructor & Destructor Documentation

PopupMenu::PopupMenu (  ) 

Constructor.

Definition at line 52 of file popupmenu.cpp.


Member Function Documentation

void PopupMenu::showPopup ( int  x,
int  y,
Being being 
)

Shows the being related popup menu at the specified mouse coords.

Definition at line 66 of file popupmenu.cpp.

void PopupMenu::showPopup ( int  x,
int  y,
FloorItem floorItem 
)

Shows the floor item related popup menu at the specified mouse coords.

Definition at line 147 of file popupmenu.cpp.

void PopupMenu::showPopup ( int  x,
int  y,
Item item 
)

Shows the related popup menu when right click on the inventory at the specified mouse coordinates.

Definition at line 327 of file popupmenu.cpp.

void PopupMenu::handleLink ( const std::string &  link  )  [virtual]

Handles link action.

Implements LinkHandler.

Definition at line 165 of file popupmenu.cpp.

void PopupMenu::showPopup ( int  x,
int  y 
) [private]

Shared code for the various showPopup functions.

Definition at line 359 of file popupmenu.cpp.


Member Data Documentation

Definition at line 67 of file popupmenu.h.

int PopupMenu::mBeingId [private]

Definition at line 69 of file popupmenu.h.

Definition at line 70 of file popupmenu.h.

Item* PopupMenu::mItem [private]

Definition at line 71 of file popupmenu.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5