xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QMessageBox.xcsm
浏览该文件的文档.
1
2package Qt{
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; // internal
24 public static const int LastButton = RestoreDefaults; // internal
25 public static const int YesAll = YesToAll; // obsolete
26 public static const int NoAll = NoToAll; // obsolete
27 public static const int Default = 0x00000100; // obsolete
28 public static const int Escape = 0x00000200; // obsolete
29 public static const int FlagMask = 0x00000300; // obsolete
30 public static const int ButtonMask = ~FlagMask; // obsolete
31
32 public static int Critical(String caption, String text, int button, int defaultBtn){
33 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXERR, caption, text, button, defaultBtn);
34 }
35 public static int Warning(String caption, String text, int button, int defaultBtn){
36 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXWAR, caption, text, button, defaultBtn);
37 }
38
39 public static int Question(String caption, String text, int button, int defaultBtn){
40 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXQUE, caption, text, button, defaultBtn);
41 }
42 public static int Information(String caption, String text, int button, int defaultBtn){
43 return QtXnl.long_string2_int2(0, Constant.MESSAGEBOXINF, caption, text, button, defaultBtn);
44 }
45
46 public static void About(String caption, String text){
47 QtXnl.long_string2_int2(0, Constant.MESSAGEBOXABT, caption, text, 0, 0);
48 }
49
50 };
51};
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)
字符串类