Hello. Unfortunately, I have no permission to put patches directly to git. So please review attached for small patch to display ILS data on the map widget.
Thank you. --- Regards, Alexey.
From c1cd3fe22764ad24a1e654d69e4b91d15048cfca Mon Sep 17 00:00:00 2001 From: Aliaksei Ivaniuk <aliaksei_ivan...@epam.com> Date: Mon, 3 Jan 2011 17:06:37 +0200 Subject: [PATCH] Add ILS data to GUI/MapWidget Added code for displaying ILS data (ILS category, channel, frequency) in to the Map widget. --- src/GUI/MapWidget.cxx | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index bdd73a1..4b4ef93 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -1285,6 +1285,22 @@ void MapWidget::drawILS(bool tuned, FGRunway* rwy) glVertex2dv(endCentre.data()); glVertex2dv(endR.data()); glEnd(); + + if (validDataForKey(loc)) { + setAnchorForKey(loc, endR); + return; + } + + char buffer[1024]; + ::snprintf(buffer, 1024, "%s\n%s\n%3.2fKhz", + loc->name().c_str(), loc->ident().c_str(),loc->get_freq()/100.0); + + MapData* d = createDataForKey(loc); + d->setPriority(40); + d->setLabel(loc->ident()); + d->setText(buffer); + d->setOffset(MapData::HALIGN_CENTER | MapData::VALIGN_BOTTOM, 10); + d->setAnchor(endR); } void MapWidget::drawTraffic() -- 1.6.6.1
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel