CMS 3D CMS Logo

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 34 of file FWViewContextMenuHandlerBase.h.

Constructor & Destructor Documentation

◆ MenuEntryAdder()

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

Definition at line 26 of file FWViewContextMenuHandlerBase.cc.

27  : m_handler(&iHandler) {}

Member Function Documentation

◆ addEntry()

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

29  {
30  m_handler->addViewEntry(iEntryName, idx, enabled);
31  return idx;
32 }

References pixel_dqm_sourceclient-live_cfg::enabled, and heavyIonCSV_trainingSettings::idx.

Referenced by FWViewContextMenuHandlerGL::init().

Friends And Related Function Documentation

◆ FWViewContextMenuHandlerBase

friend class FWViewContextMenuHandlerBase
friend

Definition at line 35 of file FWViewContextMenuHandlerBase.h.

Member Data Documentation

◆ m_handler

FWModelContextMenuHandler* FWViewContextMenuHandlerBase::MenuEntryAdder::m_handler
private

Definition at line 37 of file FWViewContextMenuHandlerBase.h.

FWModelContextMenuHandler::addViewEntry
void addViewEntry(const char *, int, bool enabled=true)
Definition: FWModelContextMenuHandler.cc:198
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
FWViewContextMenuHandlerBase::MenuEntryAdder::m_handler
FWModelContextMenuHandler * m_handler
Definition: FWViewContextMenuHandlerBase.h:37
pixel_dqm_sourceclient-live_cfg.enabled
enabled
Definition: pixel_dqm_sourceclient-live_cfg.py:136