Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgValidatorFactory.h
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"
11#include "CoordUnitsNonPolarTheta.h"
12#include "CoordUnitsPolarTheta.h"
13
15class QLocale;
16
19{
20public:
23
26 bool isCartesian,
27 CoordUnitsNonPolarTheta coordUnitsCartesian,
28 CoordUnitsNonPolarTheta coordUnitsPolar,
29 CoordUnitsDate coordUnitsDate,
30 CoordUnitsTime coordUnitsTime,
31 const QLocale &locale) const;
32
35 bool isCartesian,
36 CoordUnitsNonPolarTheta coordUnitsCartesian,
37 CoordUnitsPolarTheta coordUnitsPolar,
38 CoordUnitsDate coordUnitsDate,
39 CoordUnitsTime coordUnitsTime,
40 const QLocale &locale) const;
41
43 DlgValidatorAbstract *createWithNonPolar (CoordScale coordScale,
44 CoordUnitsNonPolarTheta coordUnits,
45 CoordUnitsDate coordUnitsDate,
46 CoordUnitsTime coordUnitsTime,
47 const QLocale &locale) const;
48
50 DlgValidatorAbstract *createWithPolar (CoordScale coordScale,
51 CoordUnitsPolarTheta coordUnits,
52 const QLocale &locale) const;
53};
54
55#endif // DLG_VALIDATOR_FACTORY_H
Abstract validator for all numeric formats.
Validator factory.
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,...
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...