Engauge Digitizer  2
ChecklistGuidePageCurves.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_CURVES_H
8 #define CHECKLIST_GUIDE_PAGE_CURVES_H
9 
10 #include "ChecklistGuidePage.h"
11 #include <QStringList>
12 
13 class ChecklistLineEdit;
14 class QRadioButton;
15 
18 {
19  Q_OBJECT;
20 
21  public:
23  ChecklistGuidePageCurves (const QString &title);
24 
26  QStringList curveNames () const;
27 
29  virtual bool isComplete () const;
30 
31  public slots:
33  void slotTableChanged ();
34 
36  bool withLines() const;
37 
38  private:
40 
41  bool curveNamesAreAllUnique() const;
42  int NUM_CURVE_NAMES () const { return 6; }
43 
44  ChecklistLineEdit **m_edit; // Vector array of editors
45  QRadioButton *m_btnLines;
46  QRadioButton *m_btnPoints;
47 
48 };
49 
50 #endif // CHECKLIST_GUIDE_PAGE_CURVES_H
ChecklistLineEdit
Adds key event handling to QLineEdit.
Definition: ChecklistLineEdit.h:12
ChecklistGuidePage
This class customizes QWizardPage for ChecklistGuideWizard.
Definition: ChecklistGuidePage.h:18
ChecklistGuidePageCurves::curveNames
QStringList curveNames() const
Wizard selection for curve names.
Definition: ChecklistGuidePageCurves.cpp:56
ChecklistGuidePageCurves::isComplete
virtual bool isComplete() const
Validate the contents of this page.
Definition: ChecklistGuidePageCurves.cpp:82
ChecklistGuidePageCurves::withLines
bool withLines() const
Drawn with lines, else points.
Definition: ChecklistGuidePageCurves.cpp:97
ChecklistGuidePageCurves::slotTableChanged
void slotTableChanged()
Update after curve table update.
Definition: ChecklistGuidePageCurves.cpp:90
ChecklistGuidePage.h
ChecklistGuidePageCurves
This class adds validation to the Curves page.
Definition: ChecklistGuidePageCurves.h:16