MenuEntry Class Reference

#include <menu.h>

Inheritance diagram for MenuEntry:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 MenuEntry (const std::string &txt=std::string(), MenuEntryLevel lev=MEL_ITEM, int qty=0, int hotk=0)
virtual ~MenuEntry ()
bool operator< (const MenuEntry &rhs) const
void add_hotkey (int key)
bool is_hotkey (int key) const
bool is_primary_hotkey (int key) const
virtual std::string get_text (const bool unused=false) const
virtual int highlight_colour () const
virtual bool selected () const
virtual void select (int qty=-1)
virtual std::string get_filter_text () const

Public Attributes

std::string tag
std::string text
int quantity
int selected_qty
int colour
std::vector< int > hotkeys
MenuEntryLevel level
void * data


Constructor & Destructor Documentation

MenuEntry::MenuEntry ( const std::string txt = std::string(),
MenuEntryLevel  lev = MEL_ITEM,
int  qty = 0,
int  hotk = 0 
) [inline]

virtual MenuEntry::~MenuEntry (  )  [inline, virtual]


Member Function Documentation

bool MenuEntry::operator< ( const MenuEntry rhs  )  const [inline]

void MenuEntry::add_hotkey ( int  key  )  [inline]

Here is the call graph for this function:

bool MenuEntry::is_hotkey ( int  key  )  const [inline]

bool MenuEntry::is_primary_hotkey ( int  key  )  const [inline]

virtual std::string MenuEntry::get_text ( const bool  unused = false  )  const [inline, virtual]

Reimplemented in InvTitle, InvEntry, DiscEntry, and ShopItemEntry.

virtual int MenuEntry::highlight_colour (  )  const [inline, virtual]

Reimplemented in InvEntry.

Here is the call graph for this function:

virtual bool MenuEntry::selected (  )  const [inline, virtual]

virtual void MenuEntry::select ( int  qty = -1  )  [inline, virtual]

Reimplemented in InvEntry.

Here is the call graph for this function:

virtual std::string MenuEntry::get_filter_text (  )  const [inline, virtual]

Reimplemented in InvEntry.

Here is the call graph for this function:


Member Data Documentation

std::vector<int> MenuEntry::hotkeys


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

Generated on Thu Jan 13 13:37:03 2011 by  doxygen 1.5.6