Menu item with check box.
Definition at line 72 of file RMenuItems.hxx.
Public Member Functions | |
| RCheckedMenuItem ()=default | |
| Default constructor. | |
| RCheckedMenuItem (const std::string &name, const std::string &title, bool checked=false) | |
| Create checked menu item | |
| ~RCheckedMenuItem () override | |
| 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. | |
| bool | IsChecked () const |
| void | SetChecked (bool on=true) |
| Set checked state for the item, default is none. | |
| 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 | |
| bool | fChecked = false |
| state of checkbox | |
| 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 |
Create checked menu item
Definition at line 80 of file RMenuItems.hxx.
|
inlineoverride |
virtual destructor need for vtable, used when vector of RMenuItem* is stored
Definition at line 86 of file RMenuItems.hxx.
|
inlineinherited |
Returns execution string for the menu item.
Definition at line 61 of file RMenuItems.hxx.
|
inlineinherited |
Returns menu item name.
Definition at line 58 of file RMenuItems.hxx.
|
inline |
Definition at line 91 of file RMenuItems.hxx.
Set checked state for the item, default is none.
Definition at line 89 of file RMenuItems.hxx.
|
inlineinherited |
Set class name for menu item, will be used to group items together.
Definition at line 55 of file RMenuItems.hxx.
|
inlineinherited |
Set execution string with all required arguments, which will be executed when menu item is selected
Definition at line 52 of file RMenuItems.hxx.
state of checkbox
Definition at line 74 of file RMenuItems.hxx.
|
protectedinherited |
class to which belongs menu item
Definition at line 37 of file RMenuItems.hxx.
|
protectedinherited |
execute when item is activated
Definition at line 36 of file RMenuItems.hxx.
|
protectedinherited |
name of the menu item
Definition at line 34 of file RMenuItems.hxx.
|
protectedinherited |
title of menu item
Definition at line 35 of file RMenuItems.hxx.