FlightGear next
MessageBox.hxx
Go to the documentation of this file.
1#ifndef FG_GUI_MESSAGE_BOX_HXX
2#define FG_GUI_MESSAGE_BOX_HXX
3
4#include <string>
5#include <cstdlib>
6
7namespace flightgear
8{
9
10// set a global value indicating we're in headless mode.
11void setHeadlessMode(bool headless);
12bool isHeadlessMode();
13
14// special exception class used to signal an exit. Must not inherit
15// std::exception or similar, since we want to handle it specially
17{
18};
19
26
27MessageBoxResult modalMessageBox(const std::string& caption,
28 const std::string& msg,
29 const std::string& moreText = std::string());
30
32 const std::string& caption,
33 const std::string& msg,
34 const std::string& moreText = std::string(),
35 bool reportToSentry = true);
36
37[[noreturn]] void fatalMessageBoxThenExit(
38 const std::string& caption,
39 const std::string& msg,
40 const std::string& moreText = std::string(),
41 int exitStatus = EXIT_FAILURE,
42 bool reportToSentry = true);
43
44
45} // of namespace flightgear
46
47#endif // of FG_GUI_MESSAGE_BOX_HXX
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
Definition Addon.cxx:53
MessageBoxResult modalMessageBox(const std::string &caption, const std::string &msg, const std::string &moreText)
MessageBoxResult fatalMessageBoxWithoutExit(const std::string &caption, const std::string &msg, const std::string &moreText, bool reportToSentry)
bool isHeadlessMode()
void fatalMessageBoxThenExit(const std::string &caption, const std::string &msg, const std::string &moreText, int exitStatus, bool reportToSentry)
void setHeadlessMode(bool headless)