3 @SuppressWarnings public class QMessageBox : QObject{
4 public static const int NoButton = 0x00000000;
5 public static const int Ok = 0x00000400;
6 public static const int Save = 0x00000800;
7 public static const int SaveAll = 0x00001000;
8 public static const int Open = 0x00002000;
9 public static const int Yes = 0x00004000;
10 public static const int YesToAll = 0x00008000;
11 public static const int No = 0x00010000;
12 public static const int NoToAll = 0x00020000;
13 public static const int Abort = 0x00040000;
14 public static const int Retry = 0x00080000;
15 public static const int Ignore = 0x00100000;
16 public static const int Close = 0x00200000;
17 public static const int Cancel = 0x00400000;
18 public static const int Discard = 0x00800000;
19 public static const int Help = 0x01000000;
20 public static const int Apply = 0x02000000;
21 public static const int Reset = 0x04000000;
22 public static const int RestoreDefaults = 0x08000000;
23 public static const int FirstButton = Ok;
24 public static const int LastButton = RestoreDefaults;
25 public static const int YesAll = YesToAll;
26 public static const int NoAll = NoToAll;
27 public static const int Default = 0x00000100;
28 public static const int Escape = 0x00000200;
29 public static const int FlagMask = 0x00000300;
30 public static const int ButtonMask = ~FlagMask;
33 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXERR, caption, text, button, defaultBtn);
36 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXWAR, caption, text, button, defaultBtn);
40 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXQUE, caption, text, button, defaultBtn);
43 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXINF, caption, text, button, defaultBtn);
47 QtXnl.long_string2_int2(0, Constant.MESSAGEBOXABT, caption, text, 0, 0);
static int Warning(String caption, String text, int button, int defaultBtn)
static int Question(String caption, String text, int button, int defaultBtn)
static int Critical(String caption, String text, int button, int defaultBtn)
static void About(String caption, String text)
static int Information(String caption, String text, int button, int defaultBtn)