Engauge Digitizer  2
ChecklistGuidePage.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef CHECKLIST_GUIDE_PAGE_H
8 #define CHECKLIST_GUIDE_PAGE_H
9 
10 #include <QWizardPage>
11 
12 class ChecklistLineEdit;
13 class QGridLayout;
14 class QRadioButton;
15 class QString;
16 class QVBoxLayout;
17 
19 class ChecklistGuidePage : public QWizardPage
20 {
21  public:
23  ChecklistGuidePage(const QString &title);
24 
26  void addHtml (const QString &html);
27 
29  QRadioButton *addLabelAndRadioButton (const QString &label,
30  const QString &whatsThis);
31 
33  void addLineEdit (ChecklistLineEdit *edit,
34  const QString &whatsThis);
35 
36  private:
38 
39  QGridLayout *m_layout;
40  int m_row;
41 
42  // If ChecklistLineEdits are added, they are all put into a single QWidget since the spacing
43  // in that QWidget can be set to zero. This prevents huge ugly gaps between adjacent CheclistLineEdits
44  QWidget *m_checklineLineEditContainer; // 0 until used
45  QVBoxLayout *m_checklineLineEditLayout; // 0 until used
46 };
47 
48 #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.