Changeset View
Changeset View
Standalone View
Standalone View
libs/odf/KoUnit.h
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Line(s) | 71 | public: | |||
---|---|---|---|---|---|
240 | static qreal parseAngle(const QString &value, qreal defaultVal = 0.0); | 240 | static qreal parseAngle(const QString &value, qreal defaultVal = 0.0); | ||
241 | 241 | | |||
242 | QString toString() const { | 242 | QString toString() const { | ||
243 | return symbol(); | 243 | return symbol(); | ||
244 | } | 244 | } | ||
245 | 245 | | |||
246 | /** | 246 | /** | ||
247 | * Get an approximate scale of a unit vector that was converted by | 247 | * Get an approximate scale of a unit vector that was converted by | ||
248 | * the transfomation. | 248 | * the transformation. | ||
249 | * | 249 | * | ||
250 | * Please note that exact values are guaranteed only for | 250 | * Please note that exact values are guaranteed only for | ||
251 | * combinations of Translate, Rotation and Unifor Scale | 251 | * combinations of Translate, Rotation and Uniform Scale | ||
252 | * matrices. For combinations having shears and perspective the | 252 | * matrices. For combinations having shears and perspective the | ||
253 | * value will be average for the point near CS origin. | 253 | * value will be average for the point near CS origin. | ||
254 | */ | 254 | */ | ||
255 | static qreal approxTransformScale(const QTransform &t); | 255 | static qreal approxTransformScale(const QTransform &t); | ||
256 | 256 | | |||
257 | /** | 257 | /** | ||
258 | * Adjust the unit by pixel transformation applied to the | 258 | * Adjust the unit by pixel transformation applied to the | ||
259 | * describing object. It multiplies the pixel coefficient by the | 259 | * describing object. It multiplies the pixel coefficient by the | ||
Show All 17 Lines |