Faith::MenuData Class Reference

#include <faith/menudata.h>

Inheritance diagram for Faith::MenuData:

Faith::MenuBar Faith::PopupMenu Faith::ToolBar List of all members.

Public Member Functions

 MenuData ()
virtual ~MenuData ()
int insertItem (const Faith::String &text, int id=-1, int index=-1)
int insertItem (const Faith::String &text, PopupMenu *popup, int id=-1, int index=-1)
MenuItemitem (int id)
const MenuItematIndex (int index) const
MenuItematIndex (int index)
int count () const

Protected Member Functions

virtual void changed ()
virtual MenuItemcreateMenuItem (int id)

Constructor & Destructor Documentation

Faith::MenuData::MenuData (  ) 

virtual Faith::MenuData::~MenuData (  )  [virtual]


Member Function Documentation

MenuItem* Faith::MenuData::atIndex ( int  index  ) 

const MenuItem* Faith::MenuData::atIndex ( int  index  )  const [inline]

virtual void Faith::MenuData::changed (  )  [inline, protected, virtual]

this function is called when some items are added or removed from this menudata. The default implementation does nothing

Reimplemented in Faith::MenuBar, and Faith::ToolBar.

int Faith::MenuData::count (  )  const

virtual MenuItem* Faith::MenuData::createMenuItem ( int  id  )  [protected, virtual]

this function is called when the given item is added and returns an item for the given id

Reimplemented in Faith::ToolBar.

int Faith::MenuData::insertItem ( const Faith::String text,
PopupMenu popup,
int  id = -1,
int  index = -1 
)

int Faith::MenuData::insertItem ( const Faith::String text,
int  id = -1,
int  index = -1 
)

MenuItem* Faith::MenuData::item ( int  id  ) 


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:10 2006 for Faith by  doxygen 1.4.7