Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TWebMenuItems Class Reference

Definition at line 116 of file TWebMenuItem.h.

Public Member Functions

 TWebMenuItems ()=default
 
 TWebMenuItems (const std::string &snapid)
 
void Add (TWebMenuItem *item)
 
void AddChkMenuItem (const std::string &name, const std::string &title, bool checked, const std::string &toggle, TClass *cl=nullptr)
 
void AddMenuItem (const std::string &name, const std::string &title, const std::string &exec, TClass *cl=nullptr)
 
void PopulateObjectMenu (void *obj, TClass *cl)
 
std::size_t Size () const
 

Protected Attributes

std::string fId
 object identifier
 
std::vector< std::unique_ptr< TWebMenuItem > > fItems
 list of items in the menu
 

#include <TWebMenuItem.h>

Constructor & Destructor Documentation

◆ TWebMenuItems() [1/2]

TWebMenuItems::TWebMenuItems ( )
default

◆ TWebMenuItems() [2/2]

TWebMenuItems::TWebMenuItems ( const std::string &  snapid)
inline

Definition at line 122 of file TWebMenuItem.h.

Member Function Documentation

◆ Add()

void TWebMenuItems::Add ( TWebMenuItem item)
inline

Definition at line 124 of file TWebMenuItem.h.

◆ AddChkMenuItem()

void TWebMenuItems::AddChkMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked,
const std::string &  toggle,
TClass cl = nullptr 
)
inline

Definition at line 134 of file TWebMenuItem.h.

◆ AddMenuItem()

void TWebMenuItems::AddMenuItem ( const std::string &  name,
const std::string &  title,
const std::string &  exec,
TClass cl = nullptr 
)
inline

Definition at line 126 of file TWebMenuItem.h.

◆ PopulateObjectMenu()

void TWebMenuItems::PopulateObjectMenu ( void *  obj,
TClass cl 
)

Definition at line 19 of file TWebMenuItem.cxx.

◆ Size()

std::size_t TWebMenuItems::Size ( ) const
inline

Definition at line 142 of file TWebMenuItem.h.

Member Data Documentation

◆ fId

std::string TWebMenuItems::fId
protected

object identifier

Definition at line 118 of file TWebMenuItem.h.

◆ fItems

std::vector<std::unique_ptr<TWebMenuItem> > TWebMenuItems::fItems
protected

list of items in the menu

Definition at line 119 of file TWebMenuItem.h.

Libraries for TWebMenuItems:

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