Engauge Digitizer 2
Loading...
Searching...
No Matches
ChecklistGuidePage.h
Go to the documentation of this file.
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
13class QGridLayout;
14class QRadioButton;
15class QString;
16class QVBoxLayout;
17
19class 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
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.
QRadioButton * addLabelAndRadioButton(const QString &label, const QString &whatsThis)
Insert radio button and corresponding label.
void addLineEdit(ChecklistLineEdit *edit, const QString &whatsThis)
Insert line edit.
void addHtml(const QString &html)
Insert html for display.
Adds key event handling to QLineEdit.