MagicSmoke  $VERSION$
MCheckItem Class Reference

class for items that can be displayed in a MCheckDialog More...

#include <checkdlg.h>

Public Member Functions

 MCheckItem (QString key=QString(), bool isset=false, QString label=QString())
 constructs a check item More...
 
virtual ~MCheckItem ()
 
virtual bool isSet () const
 overwrite this to return whether the item is checked More...
 
virtual QString key () const
 overwrite this to return a key string that identifies the item (default implementation returns the label) More...
 
virtual QString label () const
 overwrite this to return a label that can be displayed More...
 
virtual void set (bool b)
 overwrite this to change the checking status of the item More...
 

Protected Attributes

QString m_key
 
QString m_label
 
bool m_set
 

Detailed Description

class for items that can be displayed in a MCheckDialog

Constructor & Destructor Documentation

MCheckItem::MCheckItem ( QString  key = QString(),
bool  isset = false,
QString  label = QString() 
)
inline

constructs a check item

References key(), label(), m_key, m_label, and m_set.

virtual MCheckItem::~MCheckItem ( )
inlinevirtual

Member Function Documentation

virtual bool MCheckItem::isSet ( ) const
inlinevirtual

overwrite this to return whether the item is checked

References m_set.

virtual QString MCheckItem::key ( ) const
inlinevirtual

overwrite this to return a key string that identifies the item (default implementation returns the label)

References m_key.

Referenced by MCheckItem().

virtual QString MCheckItem::label ( ) const
inlinevirtual

overwrite this to return a label that can be displayed

References m_label.

Referenced by MCheckItem().

virtual void MCheckItem::set ( bool  b)
inlinevirtual

overwrite this to change the checking status of the item

References m_set.

Member Data Documentation

QString MCheckItem::m_key
protected

Referenced by key(), and MCheckItem().

QString MCheckItem::m_label
protected

Referenced by label(), and MCheckItem().

bool MCheckItem::m_set
protected

Referenced by isSet(), MCheckItem(), and set().


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