#include <FDM/flight.hxx>
#include <GUI/gui.h>
#include <GUI/new_gui.hxx>
+#include <GUI/dialog.hxx>
#include <Scenery/tilemgr.hxx>
#if defined(HAVE_PLIB_PSL)
#include <Scripting/scriptmgr.hxx>
{
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
- GUIWidget * widget = gui->getCurrentWidget();
+ FGDialog * widget = gui->getCurrentWidget();
if (widget != 0) {
delete widget;
gui->setCurrentWidget(0);
{
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
- GUIWidget * widget = gui->getCurrentWidget();
+ FGDialog * widget = gui->getCurrentWidget();
if (widget != 0) {
if (arg->hasValue("object-name")) {
gui->getCurrentWidget()
{
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
- GUIWidget * widget = gui->getCurrentWidget();
+ FGDialog * widget = gui->getCurrentWidget();
if (widget != 0) {
if (arg->hasValue("object-name")) {
gui->getCurrentWidget()