xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QPrintDialog.xcsm
浏览该文件的文档.
1//xlang Source, Name:QPrintDialog.xcsm
2//Date: Sat Aug 13:20:50 2019
3
4package Qt{
5 @SuppressWarnings public class QPrintDialog : QAbstractPrintDialog{
6 public QPrintDialog(){
7
8 }
9
10 public QPrintDialog(@NotNilptr QPrinter pprinter) throws IllegalArgumentException{
11 if (false == create(nilptr, pprinter)){
12 throw new IllegalArgumentException("can not new QPrintDialog");
13 }
14 }
15
16 public QPrintDialog(@NotNilptr QWidget parent) throws IllegalArgumentException{
17 if (false == create(parent)){
18 throw new IllegalArgumentException("can not new QPrintDialog");
19 }
20 }
21
22 public QPrintDialog(@NotNilptr QWidget parent, @NotNilptr QPrinter pprinter) throws IllegalArgumentException{
23 if (false == create(parent, pprinter)){
24 throw new IllegalArgumentException("can not new QPrintDialog");
25 }
26 }
27
28 public QPrintDialog(long handle){
29 super(handle);
30 }
31
32 public bool create()override {
33 nativehandle = QtXnl.createQPObject(QType.qtPrintDialog, this, 0, 0, 0, 0, 0);
34 if (nativehandle == 0){
35 return false;
36 }
37 return true;
38 }
39
40 public bool create(@NotNilptr QWidget parent)override {
41 nativehandle = QtXnl.createQPObject(QType.qtPrintDialog, this, parent.nativehandle, 0, 0, 0, 0);
42 if (nativehandle == 0){
43 return false;
44 }
45 return true;
46 }
47
48 public bool create(QWidget parent,@NotNilptr QPrinter printer){
49 nativehandle = QtXnl.createQPObject(QType.qtPrintDialog, this, parent == nilptr ? 0 : parent.nativehandle, printer.nativehandle, 0, 0, 0);
50 if (nativehandle == 0){
51 return false;
52 }
53 return true;
54 }
55
56
57 public void setOption(PrintDialogOption option, bool on){
58 QtXnl.widget_set_int_bool_value(nativehandle, Constant.PRTDLGSETOPT, option, on);
59 }
60
61 public bool testOption(PrintDialogOption option){
62 return QtXnl.widget_get_int_bool(nativehandle, Constant.PRTDLGTEST, option);
63 }
64
65 public void setOptions(int options){
66 QtXnl.widget_set_vint_value(nativehandle, Constant.PRTDLGSETOPTS, options);
67 }
68
69 public int options(){
70 return QtXnl.widget_get_int_value(nativehandle, Constant.PRTDLGGETOPTS);
71 }
72 };
73};
void setOption(PrintDialogOption option, bool on)
QPrintDialog(@NotNilptr QWidget parent)
bool create() override
bool create(QWidget parent,@NotNilptr QPrinter printer)
bool create(@NotNilptr QWidget parent) override
QPrintDialog(long handle)
void setOptions(int options)
QPrintDialog(@NotNilptr QWidget parent, @NotNilptr QPrinter pprinter)
bool testOption(PrintDialogOption option)