GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
TWebCheckedMenuItem Class Reference

#include <TWebMenuItem.h>

+ Inheritance diagram for TWebCheckedMenuItem:

Public Member Functions

 TWebCheckedMenuItem (const std::string &name, const std::string &title, bool checked=false)
 
virtual ~TWebCheckedMenuItem ()=default
 
void SetChecked (bool on=true)
 
bool IsChecked () const
 
- Public Member Functions inherited from TWebMenuItem
 TWebMenuItem (const std::string &name, const std::string &title)
 
 TWebMenuItem (const TWebMenuItem &rhs)
 
virtual ~TWebMenuItem ()=default
 
void SetExec (const std::string &exec)
 
void SetClassName (const std::string &clname)
 
const std::string & GetName () const
 
const std::string & GetExec () const
 

Protected Attributes

bool fChecked {false}
 
- Protected Attributes inherited from TWebMenuItem
std::string fName
 
std::string fTitle
 
std::string fExec
 
std::string fClassName
 

Detailed Description

Definition at line 55 of file TWebMenuItem.h.

Constructor & Destructor Documentation

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

Create checked menu item

Definition at line 60 of file TWebMenuItem.h.

virtual TWebCheckedMenuItem::~TWebCheckedMenuItem ( )
virtualdefault

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

Member Function Documentation

bool TWebCheckedMenuItem::IsChecked ( ) const
inline

Definition at line 71 of file TWebMenuItem.h.

References fChecked.

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

Set checked state for the item, default is none

Definition at line 69 of file TWebMenuItem.h.

References fChecked.

Member Data Documentation

bool TWebCheckedMenuItem::fChecked {false}
protected

Definition at line 57 of file TWebMenuItem.h.

Referenced by IsChecked(), and SetChecked().


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