12#include <QRadioButton>
13#include <QTableWidget>
21 const QString WHATS_THIS_CURVE (tr (
"Curve name. Empty if unused."));
22 const QString WHATS_THIS_LINES (tr (
"Draw lines between points in each curve."));
23 const QString WHATS_THIS_POINTS (tr (
"Draw points in each curve, without lines between the points."));
26 .arg (tr (
"What are the names of the curves that are to be digitized? At least one entry is required.")));
30 for (
int i = 0; i < NUM_CURVE_NAMES(); i++) {
32 connect (m_edit [i], SIGNAL (signalKeyRelease()),
this, SLOT (
slotTableChanged()));
41 m_edit [0]->setText (curveName);
46 .arg (tr (
"How are those curves drawn?")));
53 m_btnLines->setChecked (
true);
60 for (
int i = 0; i < NUM_CURVE_NAMES(); i++) {
61 const QLineEdit *edit = m_edit [i];
62 QString text = edit->text();
63 if (!text.isEmpty()) {
71bool ChecklistGuidePageCurves::curveNamesAreAllUnique()
const
77 int numberDuplicatesRemoved = names.removeDuplicates();
79 return (numberDuplicatesRemoved == 0);
87 curveNamesAreAllUnique ();
94 emit completeChanged();
99 return m_btnLines->isChecked();
const QString DEFAULT_GRAPH_CURVE_NAME
log4cpp::Category * mainCat
void slotTableChanged()
Update after curve table update.
virtual bool isComplete() const
Validate the contents of this page.
QStringList curveNames() const
Wizard selection for curve names.
ChecklistGuidePageCurves(const QString &title)
Single constructor.
bool withLines() const
Drawn with lines, else points.
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.
Manage storage and retrieval of the settings for the curves.
QString defaultCurveName(int indexOneBased, const QString &defaultName) const
Default graph name for the specified curve index.
#define LOG4CPP_INFO_S(logger)