Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 157 of file RMenuItems.hxx.

Public Member Functions

 RMenuItems ()=default
 
 RMenuItems (const std::string &_id, const std::string &_specifier)
 
 ~RMenuItems () override
 destructor - pin vtable
 
void Add (std::unique_ptr< Detail::RMenuItem > &&item)
 
void AddChkMenuItem (const std::string &name, const std::string &title, bool checked, const std::string &toggle, const TClass *cl=nullptr)
 
void AddMenuItem (const std::string &name, const std::string &title, const std::string &exec, const TClass *cl=nullptr)
 
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.
 
auto Size () const
 
- Public Member Functions inherited from ROOT::Experimental::RDrawableReply
virtual ~RDrawableReply ()
 destructor, pin vtable
 
uint64_t GetRequestId () const
 
void SetRequestId (uint64_t _reqid)
 

Protected Attributes

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

#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 165 of file RMenuItems.hxx.

◆ ~RMenuItems()

RMenuItems::~RMenuItems ( )
overridedefault

destructor - pin vtable

Member Function Documentation

◆ Add()

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

Definition at line 178 of file RMenuItems.hxx.

◆ AddChkMenuItem()

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

Definition at line 188 of file RMenuItems.hxx.

◆ AddMenuItem()

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

Definition at line 180 of file RMenuItems.hxx.

◆ GetFullId()

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

Definition at line 173 of file RMenuItems.hxx.

◆ GetSpecifier()

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

Definition at line 174 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 176 of file RMenuItems.hxx.

Member Data Documentation

◆ fId

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

object identifier

Definition at line 159 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 161 of file RMenuItems.hxx.

◆ fSpecifier

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

! extra specifier, used only on server

Definition at line 160 of file RMenuItems.hxx.

Libraries for ROOT::Experimental::RMenuItems:

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