Logo ROOT  
Reference Guide
ROOT::Experimental::RMenuItems Class Reference

List of items for object context menu.

Author
Sergey Linev
Date
2017-06-29
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 153 of file RMenuItems.hxx.

Public Member Functions

 RMenuItems ()=default
 
 RMenuItems (const std::string &_id, const std::string &_specifier)
 
virtual ~RMenuItems ()
 destructor - pin vtable More...
 
void Add (std::unique_ptr< Detail::RMenuItem > &&item)
 
void AddChkMenuItem (const std::string &name, const std::string &title, bool checked, const std::string &toggle)
 
void AddMenuItem (const std::string &name, const std::string &title, const std::string &exec)
 
const std::string & GetFullId () const
 
const std::string & GetSpecifier () const
 
void PopulateObjectMenu (void *obj, TClass *cl)
 Fill menu for provided object, using MENU as indicator in method comments. More...
 
auto Size () const
 
- Public Member Functions inherited from ROOT::Experimental::RDrawableReply
virtual ~RDrawableReply ()
 destructor, pin vtable More...
 
uint64_t GetRequestId () const
 
void SetRequestId (uint64_t _reqid)
 

Protected Attributes

std::string fId
 object identifier More...
 
std::vector< std::unique_ptr< Detail::RMenuItem > > fItems
 list of items in the menu More...
 
std::string fSpecifier
 ! extra specifier, used only on server More...
 

#include <ROOT/RMenuItems.hxx>

Inheritance diagram for ROOT::Experimental::RMenuItems:
[legend]

Constructor & Destructor Documentation

◆ RMenuItems() [1/2]

ROOT::Experimental::RMenuItems::RMenuItems ( )
default

◆ RMenuItems() [2/2]

ROOT::Experimental::RMenuItems::RMenuItems ( const std::string &  _id,
const std::string &  _specifier 
)
inline

Definition at line 161 of file RMenuItems.hxx.

◆ ~RMenuItems()

RMenuItems::~RMenuItems ( )
virtualdefault

destructor - pin vtable

Member Function Documentation

◆ Add()

void ROOT::Experimental::RMenuItems::Add ( std::unique_ptr< Detail::RMenuItem > &&  item)
inline

Definition at line 174 of file RMenuItems.hxx.

◆ AddChkMenuItem()

void ROOT::Experimental::RMenuItems::AddChkMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked,
const std::string &  toggle 
)
inline

Definition at line 183 of file RMenuItems.hxx.

◆ AddMenuItem()

void ROOT::Experimental::RMenuItems::AddMenuItem ( const std::string &  name,
const std::string &  title,
const std::string &  exec 
)
inline

Definition at line 176 of file RMenuItems.hxx.

◆ GetFullId()

const std::string & ROOT::Experimental::RMenuItems::GetFullId ( ) const
inline

Definition at line 169 of file RMenuItems.hxx.

◆ GetSpecifier()

const std::string & ROOT::Experimental::RMenuItems::GetSpecifier ( ) const
inline

Definition at line 170 of file RMenuItems.hxx.

◆ PopulateObjectMenu()

void RMenuItems::PopulateObjectMenu ( void obj,
TClass cl 
)

Fill menu for provided object, using MENU as indicator in method comments.

Definition at line 31 of file RMenuItems.cxx.

◆ Size()

auto ROOT::Experimental::RMenuItems::Size ( ) const
inline

Definition at line 172 of file RMenuItems.hxx.

Member Data Documentation

◆ fId

std::string ROOT::Experimental::RMenuItems::fId
protected

object identifier

Definition at line 155 of file RMenuItems.hxx.

◆ fItems

std::vector<std::unique_ptr<Detail::RMenuItem> > ROOT::Experimental::RMenuItems::fItems
protected

list of items in the menu

Definition at line 157 of file RMenuItems.hxx.

◆ fSpecifier

std::string ROOT::Experimental::RMenuItems::fSpecifier
protected

! extra specifier, used only on server

Definition at line 156 of file RMenuItems.hxx.

Libraries for ROOT::Experimental::RMenuItems:
[legend]

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