X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATC%2Fatcdialog.hxx;h=a5d460e4399865f842bb529b5a6b9f5d2f96a16e;hb=f1e0206f30a78df71ef6654dc280063b94651e73;hp=3125fd3e475e2e9a585cb9ed2f6ade38a20d44d3;hpb=b1b4b7ecf48c4420d4445979c36cbf3f80be616a;p=flightgear.git diff --git a/src/ATC/atcdialog.hxx b/src/ATC/atcdialog.hxx index 3125fd3e4..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 std::vector StringVec; -typedef StringVec::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();