Engauge Digitizer  2
ChecklistGuidePage.h
1 #ifndef CHECKLIST_GUIDE_PAGE_H
2 #define CHECKLIST_GUIDE_PAGE_H
3 
4 #include <QWizardPage>
5 
7 class QGridLayout;
8 class QRadioButton;
9 class QString;
10 class QVBoxLayout;
11 
13 class ChecklistGuidePage : public QWizardPage
14 {
15  public:
17  ChecklistGuidePage(const QString &title);
18 
20  void addHtml (const QString &html);
21 
23  QRadioButton *addLabelAndRadioButton (const QString &label,
24  const QString &whatsThis);
25 
27  void addLineEdit (ChecklistLineEdit *edit,
28  const QString &whatsThis);
29 
30  private:
32 
33  QGridLayout *m_layout;
34  int m_row;
35 
36  // If ChecklistLineEdits are added, they are all put into a single QWidget since the spacing
37  // in that QWidget can be set to zero. This prevents huge ugly gaps between adjacent CheclistLineEdits
38  QWidget *m_checklineLineEditContainer; // 0 until used
39  QVBoxLayout *m_checklineLineEditLayout; // 0 until used
40 };
41 
42 #endif // CHECKLIST_GUIDE_PAGE_H
This class customizes QWizardPage for ChecklistGuideWizard.
void addLineEdit(ChecklistLineEdit *edit, const QString &whatsThis)
Insert line edit.
QRadioButton * addLabelAndRadioButton(const QString &label, const QString &whatsThis)
Insert radio button and corresponding label.
void addHtml(const QString &html)
Insert html for display.
Adds key event handling to QLineEdit.