7 #include "DlgValidatorAboveZero.h" 8 #include "DlgValidatorAbstract.h" 9 #include "DlgValidatorDateTime.h" 10 #include "DlgValidatorDegreesMinutesSeconds.h" 11 #include "DlgValidatorFactory.h" 12 #include "DlgValidatorNumber.h" 18 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::DlgValidatorFactory";
28 CoordUnitsNonPolarTheta coordUnitsCartesian,
29 CoordUnitsNonPolarTheta coordUnitsPolar,
30 CoordUnitsDate coordUnitsDate,
31 CoordUnitsTime coordUnitsTime,
32 const QLocale &locale)
const 34 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithNonPolarPolar";
53 CoordUnitsNonPolarTheta coordUnitsCartesian,
54 CoordUnitsPolarTheta coordUnitsPolar,
55 CoordUnitsDate coordUnitsDate,
56 CoordUnitsTime coordUnitsTime,
57 const QLocale &locale)
const 59 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithPolarPolar";
75 CoordUnitsNonPolarTheta coordUnits,
76 CoordUnitsDate coordUnitsDate,
77 CoordUnitsTime coordUnitsTime,
78 const QLocale &locale)
const 80 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
83 case COORD_UNITS_NON_POLAR_THETA_DATE_TIME:
88 case COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS:
91 case COORD_UNITS_NON_POLAR_THETA_NUMBER:
96 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
102 CoordUnitsPolarTheta coordUnits,
103 const QLocale &locale)
const 105 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithPolar";
107 switch (coordUnits) {
108 case COORD_UNITS_POLAR_THETA_DEGREES:
109 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES:
110 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS:
111 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW:
114 case COORD_UNITS_POLAR_THETA_GRADIANS:
115 case COORD_UNITS_POLAR_THETA_RADIANS:
116 case COORD_UNITS_POLAR_THETA_TURNS:
121 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
Validator for numeric value expressed as date and/or time.
DlgValidatorFactory()
Single constructor.
DlgValidatorAbstract * createAboveZero(const QLocale &locale) const
Factory method for generating validators for scale length which must be a number greater than zero...
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...
Abstract validator for all numeric formats.
Validator for angles in real degrees, integer degrees and real minutes, or integer degrees with integ...
Validator for generic (=simple) numbers that must be greater than zero.
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...
DlgValidatorAbstract * createWithPolar(CoordScale coordScale, CoordUnitsPolarTheta coordUnits, const QLocale &locale) const
Factory method for generating validators when cartesian/polar case handling is handled externally...
Validator for generic (=simple) numbers.
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...