136cd6ac51
This allows us to display a platform-native dialog for problems which occur early in startup (before we can show a PUI/Canvas dialog). In particular this improves feedback where FG_HOME, FG_DATA or aircraft selection is wrong, all of which happen very early in startup.
26 lines
545 B
C++
26 lines
545 B
C++
#ifndef FG_GUI_MESSAGE_BOX_HXX
|
|
#define FG_GUI_MESSAGE_BOX_HXX
|
|
|
|
#include <string>
|
|
|
|
namespace flightgear
|
|
{
|
|
|
|
enum MessageBoxResult
|
|
{
|
|
MSG_BOX_OK,
|
|
MSG_BOX_YES,
|
|
MSG_BOX_NO
|
|
};
|
|
|
|
MessageBoxResult modalMessageBox(const std::string& caption,
|
|
const std::string& msg,
|
|
const std::string& moreText = std::string());
|
|
|
|
MessageBoxResult fatalMessageBox(const std::string& caption,
|
|
const std::string& msg,
|
|
const std::string& moreText = std::string());
|
|
|
|
} // of namespace flightgear
|
|
|
|
#endif // of FG_GUI_MESSAGE_BOX_HXX
|