mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Ref T111, lat/lng/angle changes
* get struct CAngle::DegMinSecFractionalSec to obtain parts * round to epsilon utility functions and fix (qint64)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
77546a46b1
commit
e55480737e
@@ -101,20 +101,28 @@ namespace BlackMisc
|
||||
void setCurrentUnitValue(double value);
|
||||
|
||||
//! Rounded value in given unit
|
||||
//! \note default digits is CMeasurementUnit::getDisplayDigits
|
||||
double valueRounded(MU unit, int digits = -1) const;
|
||||
|
||||
//! As integer value
|
||||
int valueInteger(MU unit) const;
|
||||
|
||||
//! Rounded value in current unit
|
||||
//! \note default digits is CMeasurementUnit::getDisplayDigits
|
||||
double valueRounded(int digits = -1) const;
|
||||
|
||||
//! Value to QString with the given unit, e.g. "5.00m"
|
||||
//! \note default digits is CMeasurementUnit::getDisplayDigits
|
||||
QString valueRoundedWithUnit(MU unit, int digits = -1, bool i18n = false) const;
|
||||
|
||||
//! Value to QString with the current unit, e.g. "5.00m"
|
||||
//! \note default digits is CMeasurementUnit::getDisplayDigits
|
||||
QString valueRoundedWithUnit(int digits = -1, bool i18n = false) const;
|
||||
|
||||
//! Round current value in current unit to epsilon
|
||||
//! \sa CMeasurementUnit::roundToEpsilon
|
||||
void roundToEpsilon();
|
||||
|
||||
//! Change value without changing unit
|
||||
void setValueSameUnit(double value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user