Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgValidatorAbstract.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 DLG_VALIDATOR_ABSTRACT_H
8#define DLG_VALIDATOR_ABSTRACT_H
9
10#include <QDoubleValidator>
11#include <QString>
12
14class DlgValidatorAbstract : public QDoubleValidator
15{
16public:
18 DlgValidatorAbstract(QObject *parent = 0);
19
20 virtual ~DlgValidatorAbstract();
21
23 virtual QValidator::State validate (QString &input,
24 int &pos) const = 0;
25
26private:
27
28};
29
30#endif // DLG_VALIDATOR_ABSTRACT_H
const int INNER_RADIUS_MIN
Abstract validator for all numeric formats.
DlgValidatorAbstract(QObject *parent=0)
Single constructor.
virtual QValidator::State validate(QString &input, int &pos) const =0
Validate according to the numeric format specific to the leaf class.