Engauge Digitizer  2
FormatCoordsUnitsStrategyPolarTheta.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 FORMAT_COORDS_UNITS_STRATEGY_POLAR_THETA_H
8 #define FORMAT_COORDS_UNITS_STRATEGY_POLAR_THETA_H
9 
10 #include "CoordUnitsPolarTheta.h"
11 #include "DocumentModelGeneral.h"
12 #include "FormatCoordsUnitsStrategyAbstractBase.h"
13 #include <QString>
14 
15 class QLocale;
16 class Transformation;
17 
20  public:
23 
25  double formattedToUnformatted (const QString &string,
26  const QLocale &locale,
27  CoordUnitsPolarTheta coordUnits) const;
28 
30  QString unformattedToFormatted (double valueUnformatted,
31  const QLocale &locale,
32  CoordUnitsPolarTheta coordUnits,
33  const DocumentModelGeneral &modelGeneral,
34  const Transformation &transformation,
35  double valueUnformattedOther) const;
36 };
37 
38 #endif // FORMAT_COORDS_UNITS_STRATEGY_POLAR_THETA_H
Model for DlgSettingsGeneral and CmdSettingsGeneral.
double formattedToUnformatted(const QString &string, const QLocale &locale, CoordUnitsPolarTheta coordUnits) const
Convert formatted string to simple unformatted number.
Common methods for formatting strategies.
Affine transformation between screen and graph coordinates, based on digitized axis points...
QString unformattedToFormatted(double valueUnformatted, const QLocale &locale, CoordUnitsPolarTheta coordUnits, const DocumentModelGeneral &modelGeneral, const Transformation &transformation, double valueUnformattedOther) const
Convert simple unformatted number to formatted string.
Format conversions between unformatted and formatted for CoordUnitsStrategyPolarTheta.