CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
FWViewContextMenuHandlerBase::MenuEntryAdder Class Reference

#include <FWViewContextMenuHandlerBase.h>

Public Member Functions

int addEntry (const char *iEntryName, int idx, bool enable=true)
 

Private Member Functions

 MenuEntryAdder (FWModelContextMenuHandler &)
 

Private Attributes

FWModelContextMenuHandlerm_handler
 

Friends

class FWViewContextMenuHandlerBase
 

Detailed Description

Definition at line 37 of file FWViewContextMenuHandlerBase.h.

Constructor & Destructor Documentation

FWViewContextMenuHandlerBase::MenuEntryAdder::MenuEntryAdder ( FWModelContextMenuHandler iHandler)
private

Definition at line 26 of file FWViewContextMenuHandlerBase.cc.

26  :
27 m_handler(&iHandler){}

Member Function Documentation

int FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry ( const char *  iEntryName,
int  idx,
bool  enable = true 
)

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 30 of file FWViewContextMenuHandlerBase.cc.

References customizeTrackingMonitorSeedNumber::idx.

Referenced by FWViewContextMenuHandlerGL::init().

31 {
32  m_handler->addViewEntry(iEntryName, idx, enabled);
33  return idx;
34 }
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
void addViewEntry(const char *, int, bool enabled=true)

Friends And Related Function Documentation

friend class FWViewContextMenuHandlerBase
friend

Definition at line 38 of file FWViewContextMenuHandlerBase.h.

Member Data Documentation

FWModelContextMenuHandler* FWViewContextMenuHandlerBase::MenuEntryAdder::m_handler
private

Definition at line 40 of file FWViewContextMenuHandlerBase.h.