X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATC%2Fatcdialog.hxx;h=a5d460e4399865f842bb529b5a6b9f5d2f96a16e;hb=f1e0206f30a78df71ef6654dc280063b94651e73;hp=2e1c4ada686af1a194e8e4f2677b9149e0a0e234;hpb=152fec1cb638a18c8b3852e9992ca8987bb54052;p=flightgear.git diff --git a/src/ATC/atcdialog.hxx b/src/ATC/atcdialog.hxx index 2e1c4ada6..a5d460e43 100644 --- a/src/ATC/atcdialog.hxx +++ b/src/ATC/atcdialog.hxx @@ -28,27 +28,19 @@ #endif #include -#include #include -#include -#include -#include -#include +#include #include +class NewGUI; +class SGPropertyNode; -#include // mkDialog -#include - -typedef vector StringVec; -typedef vector:: iterator StringVecIterator; - - -class FGATCDialogNew { +class FGATCDialogNew +{ private: NewGUI *_gui; bool dialogVisible; - StringVec commands; + string_list commands; static FGATCDialogNew *_instance; public: @@ -56,18 +48,21 @@ public: FGATCDialogNew(); ~FGATCDialogNew(); + void frequencySearch(); + void frequencyDisplay(const std::string& ident); + void init(); void update(double dt); void PopupDialog(); - void addEntry(int, string); + void addEntry(int, const std::string&); void removeEntry(int); static bool popup( const SGPropertyNode * ) { instance()->PopupDialog(); return true; } - + inline static FGATCDialogNew * instance() { if( _instance != NULL ) return _instance; _instance = new FGATCDialogNew();