Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TWebCheckedMenuItem Class Reference

Definition at line 58 of file TWebMenuItem.h.

Public Member Functions

 TWebCheckedMenuItem (const std::string &name, const std::string &title, bool checked=false)
 Create checked menu item

 
virtual ~TWebCheckedMenuItem ()=default
 virtual destructor need for vtable, used when vector of TMenuItem* is stored
 
bool IsChecked () const
 
void SetChecked (bool on=true)
 Set checked state for the item, default is none.
 
- Public Member Functions inherited from TWebMenuItem
 TWebMenuItem (const std::string &name, const std::string &title)
 
 TWebMenuItem (const TWebMenuItem &rhs)
 
virtual ~TWebMenuItem ()=default
 
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, to which method belongs to

 
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}
 
- Protected Attributes inherited from TWebMenuItem
std::string fClassName
 class name
 
std::string fExec
 execute when item is activated
 
std::string fName
 name of the menu item
 
std::string fTitle
 title of menu item
 

#include <TWebMenuItem.h>

Inheritance diagram for TWebCheckedMenuItem:
[legend]

Constructor & Destructor Documentation

◆ TWebCheckedMenuItem()

TWebCheckedMenuItem::TWebCheckedMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked = false 
)
inline

Create checked menu item

Definition at line 63 of file TWebMenuItem.h.

◆ ~TWebCheckedMenuItem()

virtual TWebCheckedMenuItem::~TWebCheckedMenuItem ( )
virtualdefault

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

Member Function Documentation

◆ IsChecked()

bool TWebCheckedMenuItem::IsChecked ( ) const
inline

Definition at line 74 of file TWebMenuItem.h.

◆ SetChecked()

void TWebCheckedMenuItem::SetChecked ( bool  on = true)
inline

Set checked state for the item, default is none.

Definition at line 72 of file TWebMenuItem.h.

Member Data Documentation

◆ fChecked

bool TWebCheckedMenuItem::fChecked {false}
protected

Definition at line 60 of file TWebMenuItem.h.

Libraries for TWebCheckedMenuItem:

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