Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgValidatorFactory.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_FACTORY_H
8#define DLG_VALIDATOR_FACTORY_H
9
10#include "CoordScale.h"
13
15class QLocale;
16
19{
20public:
23
25 DlgValidatorAbstract *createAboveZero (const QLocale &locale) const;
26
29 bool isCartesian,
30 CoordUnitsNonPolarTheta coordUnitsCartesian,
31 CoordUnitsNonPolarTheta coordUnitsPolar,
32 CoordUnitsDate coordUnitsDate,
33 CoordUnitsTime coordUnitsTime,
34 const QLocale &locale) const;
35
38 bool isCartesian,
39 CoordUnitsNonPolarTheta coordUnitsCartesian,
40 CoordUnitsPolarTheta coordUnitsPolar,
41 CoordUnitsDate coordUnitsDate,
42 CoordUnitsTime coordUnitsTime,
43 const QLocale &locale) const;
44
47 CoordUnitsNonPolarTheta coordUnits,
48 CoordUnitsDate coordUnitsDate,
49 CoordUnitsTime coordUnitsTime,
50 const QLocale &locale) const;
51
54 CoordUnitsPolarTheta coordUnits,
55 const QLocale &locale) const;
56};
57
58#endif // DLG_VALIDATOR_FACTORY_H
CoordScale
Definition CoordScale.h:12
CoordUnitsDate
CoordUnitsNonPolarTheta
CoordUnitsPolarTheta
CoordUnitsTime
Abstract validator for all numeric formats.
DlgValidatorAbstract * createCartesianOrPolarWithPolarPolar(CoordScale coordScale, bool isCartesian, CoordUnitsNonPolarTheta coordUnitsCartesian, CoordUnitsPolarTheta coordUnitsPolar, CoordUnitsDate coordUnitsDate, CoordUnitsTime coordUnitsTime, const QLocale &locale) const
Factory method for generating validators for either cartesian or polar case, when polar format is spe...
DlgValidatorAbstract * createWithNonPolar(CoordScale coordScale, CoordUnitsNonPolarTheta coordUnits, CoordUnitsDate coordUnitsDate, CoordUnitsTime coordUnitsTime, const QLocale &locale) const
Factory method for generating validators when cartesian/polar case handling is handled externally,...
DlgValidatorAbstract * createAboveZero(const QLocale &locale) const
Factory method for generating validators for scale length which must be a number greater than zero.
DlgValidatorFactory()
Single constructor.
DlgValidatorAbstract * createWithPolar(CoordScale coordScale, CoordUnitsPolarTheta coordUnits, const QLocale &locale) const
Factory method for generating validators when cartesian/polar case handling is handled externally,...
DlgValidatorAbstract * createCartesianOrPolarWithNonPolarPolar(CoordScale coordScale, bool isCartesian, CoordUnitsNonPolarTheta coordUnitsCartesian, CoordUnitsNonPolarTheta coordUnitsPolar, CoordUnitsDate coordUnitsDate, CoordUnitsTime coordUnitsTime, const QLocale &locale) const
Factory method for generating validators for either cartesian or polar case, when polar format is spe...