7 #include "DlgValidatorAbstract.h"
8 #include "DlgValidatorDateTime.h"
9 #include "DlgValidatorDegreesMinutesSeconds.h"
10 #include "DlgValidatorFactory.h"
11 #include "DlgValidatorNumber.h"
17 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::DlgValidatorFactory";
22 CoordUnitsNonPolarTheta coordUnitsCartesian,
23 CoordUnitsNonPolarTheta coordUnitsPolar,
24 CoordUnitsDate coordUnitsDate,
25 CoordUnitsTime coordUnitsTime,
26 const QLocale &locale)
const
28 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithNonPolarPolar";
47 CoordUnitsNonPolarTheta coordUnitsCartesian,
48 CoordUnitsPolarTheta coordUnitsPolar,
49 CoordUnitsDate coordUnitsDate,
50 CoordUnitsTime coordUnitsTime,
51 const QLocale &locale)
const
53 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithPolarPolar";
69 CoordUnitsNonPolarTheta coordUnits,
70 CoordUnitsDate coordUnitsDate,
71 CoordUnitsTime coordUnitsTime,
72 const QLocale &locale)
const
74 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
77 case COORD_UNITS_NON_POLAR_THETA_DATE_TIME:
82 case COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS:
85 case COORD_UNITS_NON_POLAR_THETA_NUMBER:
90 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
96 CoordUnitsPolarTheta coordUnits,
97 const QLocale &locale)
const
99 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithPolar";
101 switch (coordUnits) {
102 case COORD_UNITS_POLAR_THETA_DEGREES:
103 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES:
104 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS:
105 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW:
108 case COORD_UNITS_POLAR_THETA_GRADIANS:
109 case COORD_UNITS_POLAR_THETA_RADIANS:
110 case COORD_UNITS_POLAR_THETA_TURNS:
115 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...