Logo ROOT  
Reference Guide
ROOT::Experimental::Detail::RCheckedMenuItem Class Reference

Menu item with check box.

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 66 of file RMenuItem.hxx.

Public Member Functions

 RCheckedMenuItem ()=default
 Default constructor. More...
 
 RCheckedMenuItem (const std::string &name, const std::string &title, bool checked=false)
 Create checked menu item
More...
 
virtual ~RCheckedMenuItem ()
 virtual destructor need for vtable, used when vector of RMenuItem* is stored More...
 
bool IsChecked () const
 
void SetChecked (bool on=true)
 Set checked state for the item, default is none. More...
 
- Public Member Functions inherited from ROOT::Experimental::Detail::RMenuItem
 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 SetExec (const std::string &exec)
 Set execution string with all required arguments, which will be executed when menu item is selected
More...
 

Protected Attributes

bool fChecked = false
 state of checkbox More...
 
- Protected Attributes inherited from ROOT::Experimental::Detail::RMenuItem
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/RMenuItem.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RCheckedMenuItem:
[legend]

Constructor & Destructor Documentation

◆ RCheckedMenuItem() [1/2]

ROOT::Experimental::Detail::RCheckedMenuItem::RCheckedMenuItem ( )
default

Default constructor.

◆ RCheckedMenuItem() [2/2]

ROOT::Experimental::Detail::RCheckedMenuItem::RCheckedMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked = false 
)
inline

Create checked menu item

Definition at line 74 of file RMenuItem.hxx.

◆ ~RCheckedMenuItem()

virtual ROOT::Experimental::Detail::RCheckedMenuItem::~RCheckedMenuItem ( )
inlinevirtual

virtual destructor need for vtable, used when vector of RMenuItem* is stored

Definition at line 80 of file RMenuItem.hxx.

Member Function Documentation

◆ IsChecked()

bool ROOT::Experimental::Detail::RCheckedMenuItem::IsChecked ( ) const
inline

Definition at line 85 of file RMenuItem.hxx.

◆ SetChecked()

void ROOT::Experimental::Detail::RCheckedMenuItem::SetChecked ( bool  on = true)
inline

Set checked state for the item, default is none.

Definition at line 83 of file RMenuItem.hxx.

Member Data Documentation

◆ fChecked

bool ROOT::Experimental::Detail::RCheckedMenuItem::fChecked = false
protected

state of checkbox

Definition at line 68 of file RMenuItem.hxx.

Libraries for ROOT::Experimental::Detail::RCheckedMenuItem:
[legend]

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