Base class for menu items, shown on JS side.
Definition at line 32 of file RMenuItems.hxx.
Public Member Functions | |
RMenuItem ()=default | |
Default constructor. More... | |
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 More... | |
virtual | ~RMenuItem ()=default |
virtual destructor need for vtable, used when vector of RMenuItem* is stored More... | |
const std::string & | GetExec () const |
Returns execution string for the menu item. More... | |
const std::string & | GetName () const |
Returns menu item name. More... | |
void | SetClassName (const std::string &clname) |
Set class name for menu item, will be used to group items together. More... | |
void | SetExec (const std::string &exec) |
Set execution string with all required arguments, which will be executed when menu item is selected More... | |
Protected Attributes | |
std::string | fClassName |
class to which belongs menu item More... | |
std::string | fExec |
execute when item is activated More... | |
std::string | fName |
name of the menu item More... | |
std::string | fTitle |
title of menu item More... | |
#include <ROOT/RMenuItems.hxx>
|
default |
Default constructor.
|
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.
|
virtualdefault |
virtual destructor need for vtable, used when vector of RMenuItem* is stored
|
inline |
Returns execution string for the menu item.
Definition at line 61 of file RMenuItems.hxx.
|
inline |
Returns menu item name.
Definition at line 58 of file RMenuItems.hxx.
|
inline |
Set class name for menu item, will be used to group items together.
Definition at line 55 of file RMenuItems.hxx.
|
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.
|
protected |
class to which belongs menu item
Definition at line 37 of file RMenuItems.hxx.
|
protected |
execute when item is activated
Definition at line 36 of file RMenuItems.hxx.
|
protected |
name of the menu item
Definition at line 34 of file RMenuItems.hxx.
|
protected |
title of menu item
Definition at line 35 of file RMenuItems.hxx.