]> git.mxchange.org Git - flightgear.git/blob - src/ATC/atcdialog.hxx
Merge branch 'next' into durk-atc
[flightgear.git] / src / ATC / atcdialog.hxx
1 // atcdialog.hxx - classes to manage user interactions with AI traffic
2 // Written by Durk Talsma, started April 3, 2011
3 // Based on earlier code written by Alexander Kappes and David Luff
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License as
7 // published by the Free Software Foundation; either version 2 of the
8 // License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 //
19 // $Id$
20
21
22 #ifndef _ATC_DIALOG_HXX_
23 #define _ATC_DIALOG_HXX_
24
25
26 #ifndef __cplusplus
27 # error This library requires C++
28 #endif
29
30 #include <simgear/constants.h>
31 #include <simgear/structure/commands.hxx>
32 #include <simgear/compiler.h>
33 #include <simgear/props/props.hxx>
34 #include <simgear/misc/sgstream.hxx>
35 #include <simgear/math/sg_geodesy.hxx>
36 #include <simgear/debug/logstream.hxx>
37 #include <simgear/structure/SGSharedPtr.hxx>
38
39
40 #include <GUI/gui.h>            // mkDialog
41 #include <GUI/new_gui.hxx>
42
43 typedef vector<string> StringVec;
44 typedef vector<string>:: iterator StringVecIterator;
45
46 static bool doATCDialog(const SGPropertyNode* arg);
47
48 class FGATCDialogNew {
49 private:
50      NewGUI *_gui;
51      bool dialogVisible;
52      StringVec commands;
53 public:
54
55     FGATCDialogNew();
56     ~FGATCDialogNew();
57
58     void init();
59
60     void update(double dt);
61     void PopupDialog();
62     void addEntry(int, string);
63     void removeEntry(int);
64 };
65
66 extern FGATCDialogNew *currentATCDialog;
67
68 #endif // _ATC_DIALOG_HXX_