refs #396 move Blackmisc Aviation classes into subfolder

This commit is contained in:
Roland Winklmeier
2015-04-02 00:11:50 +02:00
parent 4d09279c65
commit 78d3350bf3
159 changed files with 516 additions and 730 deletions

View File

@@ -0,0 +1,33 @@
/* Copyright (C) 2013 VATSIM Community
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "blackmisc/blackmiscfreefunctions.h"
#include "blackmisc/aviation/track.h"
using BlackMisc::PhysicalQuantities::CAngle;
using BlackMisc::PhysicalQuantities::CAngleUnit;
namespace BlackMisc
{
namespace Aviation
{
QString CTrack::convertToQString(bool i18n) const
{
QString s = CAngle::convertToQString(i18n).append(" ");
if (i18n)
{
return s.append(this->isMagneticTrack() ?
QCoreApplication::translate("Aviation", "magnetic") :
QCoreApplication::translate("Aviation", "true"));
}
else
{
return s.append(this->isMagneticTrack() ? "magnetic" : "true");
}
}
} // namespace
} // namespace