Menu item which requires extra arguments for invoked class method.
Definition at line 129 of file RMenuItems.hxx.
Public Member Functions | |
| RArgsMenuItem ()=default | |
| Default constructor. | |
| RArgsMenuItem (const std::string &name, const std::string &title) | |
| ~RArgsMenuItem () override | |
| virtual destructor need for vtable, used when vector of RMenuItem* is stored | |
| void | AddArg (const RMenuArgument &arg) |
Public Member Functions inherited from ROOT::Experimental::Detail::RMenuItem | |
| 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 | |
Protected Attributes | |
| std::vector< RMenuArgument > | fArgs |
Protected Attributes inherited from ROOT::Experimental::Detail::RMenuItem | |
| 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>
|
default |
Default constructor.
|
inline |
Definition at line 137 of file RMenuItems.hxx.
|
inlineoverride |
virtual destructor need for vtable, used when vector of RMenuItem* is stored
Definition at line 140 of file RMenuItems.hxx.
|
inline |
Definition at line 142 of file RMenuItems.hxx.
|
protected |
Definition at line 131 of file RMenuItems.hxx.