Base class for menu items, shown on JS side.
- 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 32 of file RMenuItems.hxx.
|
| RMenuItem ()=default |
| Default constructor.
|
|
| RMenuItem (const std::string &name, const std::string &title) |
| Create menu item with the name and title name used to display item in the object context menu, title shown as hint info for that item
|
|
virtual | ~RMenuItem ()=default |
| virtual destructor need for vtable, used when vector of RMenuItem* is stored
|
|
const std::string & | GetExec () const |
| Returns execution string for the menu item.
|
|
const std::string & | GetName () const |
| Returns menu item name.
|
|
void | SetClassName (const std::string &clname) |
| Set class name for menu item, will be used to group items together.
|
|
void | SetExec (const std::string &exec) |
| Set execution string with all required arguments, which will be executed when menu item is selected
|
|
|
std::string | fClassName |
| class to which belongs menu item
|
|
std::string | fExec |
| execute when item is activated
|
|
std::string | fName |
| name of the menu item
|
|
std::string | fTitle |
| title of menu item
|
|
#include <ROOT/RMenuItems.hxx>
◆ RMenuItem() [1/2]
ROOT::Experimental::Detail::RMenuItem::RMenuItem |
( |
| ) |
|
|
default |
◆ RMenuItem() [2/2]
ROOT::Experimental::Detail::RMenuItem::RMenuItem |
( |
const std::string & |
name, |
|
|
const std::string & |
title |
|
) |
| |
|
inline |
Create menu item with the name and title name used to display item in the object context menu, title shown as hint info for that item
Definition at line 45 of file RMenuItems.hxx.
◆ ~RMenuItem()
virtual ROOT::Experimental::Detail::RMenuItem::~RMenuItem |
( |
| ) |
|
|
virtualdefault |
virtual destructor need for vtable, used when vector of RMenuItem* is stored
◆ GetExec()
const std::string & ROOT::Experimental::Detail::RMenuItem::GetExec |
( |
| ) |
const |
|
inline |
Returns execution string for the menu item.
Definition at line 61 of file RMenuItems.hxx.
◆ GetName()
const std::string & ROOT::Experimental::Detail::RMenuItem::GetName |
( |
| ) |
const |
|
inline |
◆ SetClassName()
void ROOT::Experimental::Detail::RMenuItem::SetClassName |
( |
const std::string & |
clname | ) |
|
|
inline |
Set class name for menu item, will be used to group items together.
Definition at line 55 of file RMenuItems.hxx.
◆ SetExec()
void ROOT::Experimental::Detail::RMenuItem::SetExec |
( |
const std::string & |
exec | ) |
|
|
inline |
Set execution string with all required arguments, which will be executed when menu item is selected
Definition at line 52 of file RMenuItems.hxx.
◆ fClassName
std::string ROOT::Experimental::Detail::RMenuItem::fClassName |
|
protected |
◆ fExec
std::string ROOT::Experimental::Detail::RMenuItem::fExec |
|
protected |
◆ fName
std::string ROOT::Experimental::Detail::RMenuItem::fName |
|
protected |
◆ fTitle
std::string ROOT::Experimental::Detail::RMenuItem::fTitle |
|
protected |
The documentation for this class was generated from the following file: