#include <Main/globals.hxx>
#include <Viewer/renderer.hxx>
+#include <GUI/new_gui.hxx>
#include <osgViewer/Viewer>
#elif defined(HAVE_QT)
return QtMessageBox(caption, msg, moreText, false);
#else
- SG_LOG(SG_GENERAL, SG_ALERT, caption << ":" << msg);
+ std::string s = caption + ": "+ msg;
if (!moreText.empty()) {
- SG_LOG(SG_GENERAL, SG_ALERT, "(" << moreText << ")");
+ s += "\n( " + moreText + ")";
}
+// SG_LOG(SG_GENERAL, SG_ALERT, s);
+
+ NewGUI* _gui = (NewGUI *)globals->get_subsystem("gui");
+ SGPropertyNode_ptr dlg = _gui->getDialogProperties("popup");
+ dlg->setStringValue("text/label", s );
+ _gui->showDialog("popup");
return MSG_BOX_OK;
#endif
}
#include <Time/TimeManager.hxx>
#include <GUI/gui.h>
#include <GUI/MessageBox.hxx>
-#include <GUI/new_gui.hxx>
#include <Viewer/splash.hxx>
#include <Viewer/renderer.hxx>
#include <Viewer/WindowSystemAdapter.hxx>
{
if (sglog().has_popup()) {
- NewGUI* _gui = (NewGUI *)globals->get_subsystem("gui");
- SGPropertyNode_ptr dlg = _gui->getDialogProperties("popup");
std::string s = sglog().get_popup();
- dlg->setStringValue("text/label", s );
- _gui->showDialog("popup");
+ flightgear::modalMessageBox("Alert", s, "");
}
frame_signal->fireValueChanged();