Reformat a function to get rid of tab-space mixture and remove some old commented out code that now lives in ATCDialog.cxx
This commit is contained in:
parent
f8d1a58d64
commit
2d89960a20
1 changed files with 105 additions and 144 deletions
|
@ -45,52 +45,13 @@
|
||||||
FGTransmissionList *current_transmissionlist;
|
FGTransmissionList *current_transmissionlist;
|
||||||
|
|
||||||
|
|
||||||
// Constructor
|
|
||||||
FGTransmissionList::FGTransmissionList( void ) {
|
FGTransmissionList::FGTransmissionList( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
|
||||||
FGTransmissionList::~FGTransmissionList( void ) {
|
FGTransmissionList::~FGTransmissionList( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
// ============================================================================
|
|
||||||
// init menu window
|
|
||||||
// ============================================================================
|
|
||||||
void mkATCMenuInit (void)
|
|
||||||
{
|
|
||||||
int dx = 400;
|
|
||||||
int dy = 100;
|
|
||||||
int y = (fgGetInt("/sim/startup/ysize") - 10 - dy);
|
|
||||||
ATCMenuBox = new puDialogBox (10, y);
|
|
||||||
{
|
|
||||||
ATCMenuFrame = new puFrame (0,0,400,100);
|
|
||||||
ATCMenuBoxMessage = new puText (10, 70);
|
|
||||||
ATCMenuBoxMessage -> setLabel ("");
|
|
||||||
}
|
|
||||||
fgSetBool("/sim/atc/menu",false);
|
|
||||||
fgSetBool("/sim/atc/opt1",false);
|
|
||||||
fgSetBool("/sim/atc/opt2",false);
|
|
||||||
fgSetBool("/sim/atc/opt3",false);
|
|
||||||
fgSetBool("/sim/atc/opt4",false);
|
|
||||||
fgSetBool("/sim/atc/opt5",false);
|
|
||||||
fgSetBool("/sim/atc/opt6",false);
|
|
||||||
fgSetBool("/sim/atc/opt7",false);
|
|
||||||
fgSetBool("/sim/atc/opt8",false);
|
|
||||||
fgSetBool("/sim/atc/opt9",false);
|
|
||||||
fgSetBool("/sim/atc/opt0",false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ATC Menu Message Box
|
|
||||||
void mkATCMenu ( const char *txt )
|
|
||||||
{
|
|
||||||
ATCMenuBoxMessage = new puText (10, 70);
|
|
||||||
ATCMenuBoxMessage->setLabel( txt );
|
|
||||||
|
|
||||||
FG_PUSH_PUI_DIALOG( ATCMenuBox );
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// load default.transmissions
|
// load default.transmissions
|
||||||
bool FGTransmissionList::init( SGPath path ) {
|
bool FGTransmissionList::init( SGPath path ) {
|
||||||
|
@ -244,7 +205,7 @@ string FGTransmissionList::gen_text(const int &station, const TransCode code,
|
||||||
}
|
}
|
||||||
else if ( strcmp ( tag, "@VD" ) == 0 ) {
|
else if ( strcmp ( tag, "@VD" ) == 0 ) {
|
||||||
if ( tpars.VDir == 1 ) {
|
if ( tpars.VDir == 1 ) {
|
||||||
char buf[] = "Descent and maintain";
|
char buf[] = "Descend and maintain";
|
||||||
strcat( &dum[0], &buf[0] );
|
strcat( &dum[0], &buf[0] );
|
||||||
}
|
}
|
||||||
else if ( tpars.VDir == 2 ) {
|
else if ( tpars.VDir == 2 ) {
|
||||||
|
|
Loading…
Reference in a new issue