13 #ifndef MAGICSMOKE_CHECKDLG_H
14 #define MAGICSMOKE_CHECKDLG_H
54 MCheckDialog(QWidget*parent,
const MCheckList&checks,QString title);
59 QList<QCheckBox*>m_boxes;
60 mutable MCheckList m_list;
virtual bool isSet() const
overwrite this to return whether the item is checked
Definition: checkdlg.h:36
MCheckItem(QString key=QString(), bool isset=false, QString label=QString())
constructs a check item
Definition: checkdlg.h:26
virtual QString label() const
overwrite this to return a label that can be displayed
Definition: checkdlg.h:32
virtual QString key() const
overwrite this to return a key string that identifies the item (default implementation returns the la...
Definition: checkdlg.h:34
class for items that can be displayed in a MCheckDialog
Definition: checkdlg.h:22
a dialog that consists of check boxes in a QScrollArea
Definition: checkdlg.h:49
QList< MCheckItem > MCheckList
implements a list of checkable items
Definition: checkdlg.h:46
MCheckDialog(QWidget *parent, const MCheckList &checks, QString title)
creates the dialog
Definition: checkdlg.cpp:20
QString m_key
Definition: checkdlg.h:41
virtual void set(bool b)
overwrite this to change the checking status of the item
Definition: checkdlg.h:38
bool m_set
Definition: checkdlg.h:42
virtual ~MCheckItem()
Definition: checkdlg.h:29
MCheckList getCheckList() const
returns the current state of all check boxes, the return value is an exact copy of the check list fro...
Definition: checkdlg.cpp:49
QString m_label
Definition: checkdlg.h:41