Etterna 0.74.4
Loading...
Searching...
No Matches
Dialog.h
1#ifndef DIALOG_BOX_H
2#define DIALOG_BOX_H
3
4namespace Dialog {
5/* ID can be used to identify a class of messages, for "don't display this
6 * dialog"-type prompts. */
7void
8Init();
9void
10Shutdown();
11
12void
13SetWindowed(bool bWindowed);
14
15enum Result
16{
17 ok,
18 cancel,
19 abort,
20 retry,
21 ignore,
22 yes,
23 no
24};
25void
26Error(const std::string& sError, const std::string& sID = "");
27void
28OK(const std::string& sMessage, const std::string& sID = "");
29auto
30OKCancel(const std::string& sMessage, const std::string& sID = "") -> Result;
31auto
32AbortRetryIgnore(const std::string& sMessage, const std::string& sID = "")
33 -> Result;
34auto
35AbortRetry(const std::string& sMessage, const std::string& sID = "") -> Result;
36auto
37YesNo(const std::string& sMessage, const std::string& sID = "") -> Result;
38
39/* for DialogDrivers */
40void
41IgnoreMessage(const std::string& sID);
42} // namespace Dialog
43
44#endif