X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2FKLN89%2Fkln89_page_vor.cxx;h=a6d2ad222053fca810a8428587d193783e450262;hb=659c5b9676a0c11b169926c09014bea547a6ee93;hp=daaf8ae0311287f77765f9790026ea5477b103ab;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Instrumentation/KLN89/kln89_page_vor.cxx b/src/Instrumentation/KLN89/kln89_page_vor.cxx index daaf8ae03..a6d2ad222 100644 --- a/src/Instrumentation/KLN89/kln89_page_vor.cxx +++ b/src/Instrumentation/KLN89/kln89_page_vor.cxx @@ -3,7 +3,7 @@ // // Written by David Luff, started 2005. // -// Copyright (C) 2005 - David C Luff - david.luff@nottingham.ac.uk +// Copyright (C) 2005 - David C Luff - daveluff AT ntlworld.com // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -25,7 +25,12 @@ # include "config.h" #endif +#include + #include "kln89_page_vor.hxx" +#include + +using std::string; KLN89VorPage::KLN89VorPage(KLN89* parent) : KLN89Page(parent) { @@ -91,7 +96,7 @@ void KLN89VorPage::Update(double dt) { //// TODO - will almost certainly have to process freq below for FG _kln89->DrawFreq(np->get_freq(), 2, 9, 3); // TODO - trim VOR-DME from the name, convert to uppercase, abbreviate, etc - _kln89->DrawText(np->get_name(), 2, 0, 2); + _kln89->DrawText(np->name(), 2, 0, 2); //cout << np->lat << "... "; _kln89->DrawLatitude(np->get_lat(), 2, 3, 1); _kln89->DrawLongitude(np->get_lon(), 2, 3, 0); @@ -169,8 +174,13 @@ void KLN89VorPage::ClrPressed() { void KLN89VorPage::EntPressed() { if(_entInvert) { _entInvert = false; - _last_vor_id = _vor_id; - _vor_id = _save_vor_id; + _entInvert = false; + if(_kln89->_dtoReview) { + _kln89->DtoInitiate(_vor_id); + } else { + _last_vor_id = _vor_id; + _vor_id = _save_vor_id; + } } }