Renamed GUIWidget to FGDialog.
This commit is contained in:
parent
6371783e2d
commit
c10ce7bd26
1 changed files with 4 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
||||||
#include <FDM/flight.hxx>
|
#include <FDM/flight.hxx>
|
||||||
#include <GUI/gui.h>
|
#include <GUI/gui.h>
|
||||||
#include <GUI/new_gui.hxx>
|
#include <GUI/new_gui.hxx>
|
||||||
|
#include <GUI/dialog.hxx>
|
||||||
#include <Scenery/tilemgr.hxx>
|
#include <Scenery/tilemgr.hxx>
|
||||||
#if defined(HAVE_PLIB_PSL)
|
#if defined(HAVE_PLIB_PSL)
|
||||||
#include <Scripting/scriptmgr.hxx>
|
#include <Scripting/scriptmgr.hxx>
|
||||||
|
@ -552,7 +553,7 @@ do_dialog_close (const SGPropertyNode * arg)
|
||||||
{
|
{
|
||||||
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
|
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
|
||||||
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
|
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
|
||||||
GUIWidget * widget = gui->getCurrentWidget();
|
FGDialog * widget = gui->getCurrentWidget();
|
||||||
if (widget != 0) {
|
if (widget != 0) {
|
||||||
delete widget;
|
delete widget;
|
||||||
gui->setCurrentWidget(0);
|
gui->setCurrentWidget(0);
|
||||||
|
@ -573,7 +574,7 @@ do_dialog_update (const SGPropertyNode * arg)
|
||||||
{
|
{
|
||||||
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
|
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
|
||||||
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
|
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
|
||||||
GUIWidget * widget = gui->getCurrentWidget();
|
FGDialog * widget = gui->getCurrentWidget();
|
||||||
if (widget != 0) {
|
if (widget != 0) {
|
||||||
if (arg->hasValue("object-name")) {
|
if (arg->hasValue("object-name")) {
|
||||||
gui->getCurrentWidget()
|
gui->getCurrentWidget()
|
||||||
|
@ -598,7 +599,7 @@ do_dialog_apply (const SGPropertyNode * arg)
|
||||||
{
|
{
|
||||||
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
|
NewGUI * gui = (NewGUI *)globals->get_subsystem_mgr()
|
||||||
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
|
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
|
||||||
GUIWidget * widget = gui->getCurrentWidget();
|
FGDialog * widget = gui->getCurrentWidget();
|
||||||
if (widget != 0) {
|
if (widget != 0) {
|
||||||
if (arg->hasValue("object-name")) {
|
if (arg->hasValue("object-name")) {
|
||||||
gui->getCurrentWidget()
|
gui->getCurrentWidget()
|
||||||
|
|
Loading…
Add table
Reference in a new issue