]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/KLN89/kln89_page_int.hxx
902e5c1254c1016b8c5f5ebc8cabc63c70363e5c
[flightgear.git] / src / Instrumentation / KLN89 / kln89_page_int.hxx
1 // kln89_page_*.[ch]xx - this file is one of the "pages" that
2 //                       are used in the KLN89 GPS unit simulation. 
3 //
4 // Written by David Luff, started 2005.
5 //
6 // Copyright (C) 2005 - David C Luff - david.luff@nottingham.ac.uk
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 //
22 // $Id$
23
24 #ifndef _KLN89_PAGE_INT_HXX
25 #define _KLN89_PAGE_INT_HXX
26
27 #include "kln89.hxx"
28
29 class KLN89IntPage : public KLN89Page {
30
31 public:
32         KLN89IntPage(KLN89* parent);
33         ~KLN89IntPage();
34         
35         void Update(double dt);
36         
37         void CrsrPressed();
38         void ClrPressed();
39         void EntPressed();
40         void Knob2Left1();
41         void Knob2Right1();
42         
43         void SetId(const string& s);
44         
45 private:
46         string _int_id;
47         string _last_int_id;
48         string _save_int_id;
49         const FGFix* _fp;
50         FGNavRecord* _nearestVor;
51         FGNavRecord* _refNav;   // Will usually be the same as _nearestVor, and gets reset to _nearestVor when page looses focus.
52         double _nvRadial;       // radial from nearest VOR
53         double _nvDist;         // distance to nearest VOR
54 };
55
56 #endif  // _KLN89_PAGE_INT_HXX