rename NewGUI::getDialog() to NewGUI::getDialogProperties()
getDialog wrongly implies that it returns an FGDialog, and we might later need a real getDialog.
This commit is contained in:
parent
2ae061c9c3
commit
ca46e8d5d5
4 changed files with 6 additions and 6 deletions
|
@ -191,7 +191,7 @@ bool FGATCDialog::trans_reg( const string &station, int code, atc_type type ) {
|
|||
// Display the ATC popup dialog box with options relevant to the users current situation.
|
||||
void FGATCDialog::PopupDialog() {
|
||||
const char *dialog_name = "atc-dialog";
|
||||
SGPropertyNode_ptr dlg = _gui->getDialog(dialog_name);
|
||||
SGPropertyNode_ptr dlg = _gui->getDialogProperties(dialog_name);
|
||||
if (!dlg)
|
||||
return;
|
||||
|
||||
|
@ -306,7 +306,7 @@ struct atcdata {
|
|||
|
||||
void FGATCDialog::FreqDialog() {
|
||||
const char *dialog_name = "atc-freq-search";
|
||||
SGPropertyNode_ptr dlg = _gui->getDialog(dialog_name);
|
||||
SGPropertyNode_ptr dlg = _gui->getDialogProperties(dialog_name);
|
||||
if (!dlg)
|
||||
return;
|
||||
|
||||
|
@ -357,7 +357,7 @@ void FGATCDialog::FreqDialog() {
|
|||
|
||||
void FGATCDialog::FreqDisplay(string& ident) {
|
||||
const char *dialog_name = "atc-freq-display";
|
||||
SGPropertyNode_ptr dlg = _gui->getDialog(dialog_name);
|
||||
SGPropertyNode_ptr dlg = _gui->getDialogProperties(dialog_name);
|
||||
if (!dlg)
|
||||
return;
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ void mkDialog (const char *txt)
|
|||
NewGUI *gui = (NewGUI *)globals->get_subsystem("gui");
|
||||
if (!gui)
|
||||
return;
|
||||
SGPropertyNode_ptr dlg = gui->getDialog("message");
|
||||
SGPropertyNode_ptr dlg = gui->getDialogProperties("message");
|
||||
if (!dlg)
|
||||
return;
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ NewGUI::closeDialog (const string& name)
|
|||
}
|
||||
|
||||
SGPropertyNode_ptr
|
||||
NewGUI::getDialog (const string &name)
|
||||
NewGUI::getDialogProperties (const string &name)
|
||||
{
|
||||
if(_dialog_props.find(name) != _dialog_props.end())
|
||||
return _dialog_props[name];
|
||||
|
|
|
@ -143,7 +143,7 @@ public:
|
|||
* @param name The name of the dialog box.
|
||||
* @return node pointer if the dialog was found, zero otherwise.
|
||||
*/
|
||||
virtual SGPropertyNode_ptr getDialog (const string &name);
|
||||
virtual SGPropertyNode_ptr getDialogProperties (const string &name);
|
||||
|
||||
/**
|
||||
* Return a pointer to the current menubar.
|
||||
|
|
Loading…
Reference in a new issue