00001
00002
00003
00004
00005
00006
00007 #ifndef DLG_VALIDATOR_FACTORY_H
00008 #define DLG_VALIDATOR_FACTORY_H
00009
00010 #include "CoordScale.h"
00011 #include "CoordUnitsNonPolarTheta.h"
00012 #include "CoordUnitsPolarTheta.h"
00013
00014 class DlgValidatorAbstract;
00015 class QLocale;
00016
00018 class DlgValidatorFactory
00019 {
00020 public:
00022 DlgValidatorFactory();
00023
00025 DlgValidatorAbstract *createAboveZero (const QLocale &locale) const;
00026
00028 DlgValidatorAbstract *createCartesianOrPolarWithNonPolarPolar (CoordScale coordScale,
00029 bool isCartesian,
00030 CoordUnitsNonPolarTheta coordUnitsCartesian,
00031 CoordUnitsNonPolarTheta coordUnitsPolar,
00032 CoordUnitsDate coordUnitsDate,
00033 CoordUnitsTime coordUnitsTime,
00034 const QLocale &locale) const;
00035
00037 DlgValidatorAbstract *createCartesianOrPolarWithPolarPolar (CoordScale coordScale,
00038 bool isCartesian,
00039 CoordUnitsNonPolarTheta coordUnitsCartesian,
00040 CoordUnitsPolarTheta coordUnitsPolar,
00041 CoordUnitsDate coordUnitsDate,
00042 CoordUnitsTime coordUnitsTime,
00043 const QLocale &locale) const;
00044
00046 DlgValidatorAbstract *createWithNonPolar (CoordScale coordScale,
00047 CoordUnitsNonPolarTheta coordUnits,
00048 CoordUnitsDate coordUnitsDate,
00049 CoordUnitsTime coordUnitsTime,
00050 const QLocale &locale) const;
00051
00053 DlgValidatorAbstract *createWithPolar (CoordScale coordScale,
00054 CoordUnitsPolarTheta coordUnits,
00055 const QLocale &locale) const;
00056 };
00057
00058 #endif // DLG_VALIDATOR_FACTORY_H