xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QPrintPreviewDialog.xcsm
浏览该文件的文档.
1
//xlang Source, Name:QPrintPreviewDialog.xcsm
2
//Date: Sat Aug 15:42:52 2019
3
4
package
Qt{
5
@SuppressWarnings public class QPrintPreviewDialog : QDialog{
6
7
QPrintPreviewDialog(){
8
9
}
10
QPrintPreviewDialog(@NotNilptr QPrinter printer) throws IllegalArgumentException{
11
if (false == create(nilptr, printer)){
12
throw new IllegalArgumentException("canot create QPrintPreviewDialog");
13
}
14
}
15
QPrintPreviewDialog
(@NotNilptr QWidget parent,@NotNilptr QPrinter printer)
throws
IllegalArgumentException
{
16
if
(
false
== create(parent, printer)){
17
throw
new
IllegalArgumentException
(
"canot create QPrintPreviewDialog"
);
18
}
19
}
20
QPrintPreviewDialog
(@NotNilptr QWidget parent)
throws
IllegalArgumentException
{
21
if
(
false
== create(parent, nilptr)){
22
throw
new
IllegalArgumentException
(
"canot create QPrintPreviewDialog"
);
23
}
24
}
25
void
onPreviewRequest
(
long
printer){
26
requestPreview(
new
QPrinter(printer));
27
}
28
29
void
requestPreview
(@NotNilptr QPrinter printer);
30
int
exec
()
override
{
31
return
QtXnl.widget_get_int_value(nativehandle, Constant.PVWDLGEXEC);
32
}
33
34
void
done
(
int
result)
override
{
35
QtXnl.widget_set_vint_value(nativehandle, Constant.PVWDLGDONE, result);
36
}
37
38
39
bool
create
()
override
{
40
nativehandle = QtXnl.createQPObject(QType.qtPrintViewDialog,
this
, 0, 0, 0, 0, 0);
41
if
(nativehandle == 0){
42
return
false
;
43
}
44
return
true
;
45
}
46
47
bool
create
(@NotNilptr QWidget parent)
override
{
48
nativehandle = QtXnl.createQPObject(QType.qtPrintViewDialog,
this
, parent.nativehandle, 0, 0, 0, 0);
49
if
(nativehandle == 0){
50
return
false
;
51
}
52
return
true
;
53
}
54
55
bool
create
(QWidget parent, QPrinter printer){
56
nativehandle = QtXnl.createQPObject(QType.qtPrintViewDialog,
this
, parent == nilptr ? 0 : parent.nativehandle,printer == nilptr ? 0 : printer.nativehandle, 0, 0, 0);
57
if
(nativehandle == 0){
58
return
false
;
59
}
60
return
true
;
61
}
62
};
63
};
IllegalArgumentException
参数异常
Definition
BuiltinObjects.x:501
Qt.QPrintPreviewDialog.QPrintPreviewDialog
QPrintPreviewDialog(@NotNilptr QWidget parent,@NotNilptr QPrinter printer)
Definition
QPrintPreviewDialog.xcsm:15
Qt.QPrintPreviewDialog.QPrintPreviewDialog
QPrintPreviewDialog(@NotNilptr QWidget parent)
Definition
QPrintPreviewDialog.xcsm:20
Qt.QPrintPreviewDialog.create
bool create() override
Definition
QPrintPreviewDialog.xcsm:39
Qt.QPrintPreviewDialog.done
void done(int result) override
Definition
QPrintPreviewDialog.xcsm:34
Qt.QPrintPreviewDialog.exec
int exec() override
Definition
QPrintPreviewDialog.xcsm:30
Qt.QPrintPreviewDialog.create
bool create(@NotNilptr QWidget parent) override
Definition
QPrintPreviewDialog.xcsm:47
Qt.QPrintPreviewDialog.onPreviewRequest
void onPreviewRequest(long printer)
Definition
QPrintPreviewDialog.xcsm:25
Qt.QPrintPreviewDialog.requestPreview
void requestPreview(@NotNilptr QPrinter printer)
Qt.QPrintPreviewDialog.create
bool create(QWidget parent, QPrinter printer)
Definition
QPrintPreviewDialog.xcsm:55
制作者
1.9.8