#include <FWViewContextMenuHandlerBase.h>
Public Member Functions | |
int | addEntry (const char *iEntryName) |
Private Member Functions | |
MenuEntryAdder (FWModelContextMenuHandler &) | |
Private Attributes | |
FWModelContextMenuHandler * | m_handler |
int | m_lastIndex |
Friends | |
class | FWViewContextMenuHandlerBase |
Definition at line 38 of file FWViewContextMenuHandlerBase.h.
FWViewContextMenuHandlerBase::MenuEntryAdder::MenuEntryAdder | ( | FWModelContextMenuHandler & | iHandler | ) | [private] |
Definition at line 27 of file FWViewContextMenuHandlerBase.cc.
: m_handler(&iHandler),m_lastIndex(0) {}
int FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry | ( | const char * | iEntryName | ) |
Add an entry by name of iEntryName to the context menu. Returns the entry index which simply increments after each 'addEntry' call and starts at 0
Definition at line 31 of file FWViewContextMenuHandlerBase.cc.
Referenced by FWViewContextMenuHandlerGL::init().
{ m_handler->addViewEntry(iEntryName,m_lastIndex); return m_lastIndex++; }
friend class FWViewContextMenuHandlerBase [friend] |
Definition at line 39 of file FWViewContextMenuHandlerBase.h.
Definition at line 41 of file FWViewContextMenuHandlerBase.h.
Definition at line 42 of file FWViewContextMenuHandlerBase.h.