1 #include "DlgValidatorAbstract.h"
2 #include "DlgValidatorDateTime.h"
3 #include "DlgValidatorDegreesMinutesSeconds.h"
4 #include "DlgValidatorFactory.h"
5 #include "DlgValidatorNumber.h"
11 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::DlgValidatorFactory";
16 CoordUnitsNonPolarTheta coordUnitsCartesian,
17 CoordUnitsNonPolarTheta coordUnitsPolar,
18 CoordUnitsDate coordUnitsDate,
19 CoordUnitsTime coordUnitsTime,
20 const QLocale &locale)
const
22 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithNonPolarPolar";
41 CoordUnitsNonPolarTheta coordUnitsCartesian,
42 CoordUnitsPolarTheta coordUnitsPolar,
43 CoordUnitsDate coordUnitsDate,
44 CoordUnitsTime coordUnitsTime,
45 const QLocale &locale)
const
47 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithPolarPolar";
63 CoordUnitsNonPolarTheta coordUnits,
64 CoordUnitsDate coordUnitsDate,
65 CoordUnitsTime coordUnitsTime,
66 const QLocale &locale)
const
68 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
71 case COORD_UNITS_NON_POLAR_THETA_DATE_TIME:
76 case COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS:
79 case COORD_UNITS_NON_POLAR_THETA_NUMBER:
84 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
90 CoordUnitsPolarTheta coordUnits,
91 const QLocale &locale)
const
93 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithPolar";
96 case COORD_UNITS_POLAR_THETA_DEGREES:
97 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES:
98 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS:
99 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW:
102 case COORD_UNITS_POLAR_THETA_GRADIANS:
103 case COORD_UNITS_POLAR_THETA_RADIANS:
104 case COORD_UNITS_POLAR_THETA_TURNS:
109 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
Validator for numeric value expressed as date and/or time.
DlgValidatorFactory()
Single constructor.
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...
Validator for angles in real degrees, integer degrees and real minutes, or integer degrees with integ...
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 * 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...
Validator for generic (=simple) numbers.
DlgValidatorAbstract * createWithPolar(CoordScale coordScale, CoordUnitsPolarTheta coordUnits, const QLocale &locale) const
Factory method for generating validators when cartesian/polar case handling is handled externally...