io.qt.printsupport.QPrintDialog Maven / Gradle / Ivy
package io.qt.printsupport;
/**
* Dialog for specifying the printer's configuration
* Java wrapper for Qt class QPrintDialog
*/
public class QPrintDialog extends io.qt.printsupport.QAbstractPrintDialog
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPrintDialog.class);
/**
* See QPrintDialog::accepted(QPrinter*)
*/
public final Signal1 accepted = new Signal1<>();
/**
* Overloaded constructor for {@link #QPrintDialog(io.qt.printsupport.QPrinter, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPrintDialog(io.qt.printsupport.QPrinter printer) {
this(printer, (io.qt.widgets.QWidget)null);
}
/**
* See QPrintDialog::QPrintDialog(QPrinter*,QWidget*)
*/
public QPrintDialog(io.qt.printsupport.QPrinter printer, io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, printer, parent);
}
private native static void initialize_native(QPrintDialog instance, io.qt.printsupport.QPrinter printer, io.qt.widgets.QWidget parent);
/**
* Overloaded constructor for {@link #QPrintDialog(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPrintDialog() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QPrintDialog::QPrintDialog(QWidget*)
*/
public QPrintDialog(io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QPrintDialog instance, io.qt.widgets.QWidget parent);
/**
* See QPrintDialog::options()const
*/
@io.qt.QtPropertyReader(name="options")
@io.qt.QtUninvokable
public final io.qt.printsupport.QAbstractPrintDialog.PrintDialogOptions options(){
return new io.qt.printsupport.QAbstractPrintDialog.PrintDialogOptions(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int options_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #setOption(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOption, boolean)}
* with on = true
.
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOption option) {
setOption(option, (boolean)true);
}
/**
* See QPrintDialog::setOption(QAbstractPrintDialog::PrintDialogOption,bool)
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOption option, boolean on){
setOption_native_QAbstractPrintDialog_PrintDialogOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on);
}
@io.qt.QtUninvokable
private native void setOption_native_QAbstractPrintDialog_PrintDialogOption_bool(long __this__nativeId, int option, boolean on);
/**
* Overloaded function for {@link #setOptions(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOptions)}.
*/
@io.qt.QtUninvokable
public final void setOptions(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOption ... options){
setOptions(new io.qt.printsupport.QAbstractPrintDialog.PrintDialogOptions(options));
}
/**
* See QPrintDialog::setOptions(PrintDialogOptions)
*/
@io.qt.QtPropertyWriter(name="options")
@io.qt.QtUninvokable
public final void setOptions(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOptions options){
setOptions_native_QFlags_QAbstractPrintDialog_PrintDialogOption_(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native void setOptions_native_QFlags_QAbstractPrintDialog_PrintDialogOption_(long __this__nativeId, int options);
/**
* See QPrintDialog::testOption(QAbstractPrintDialog::PrintDialogOption)const
*/
@io.qt.QtUninvokable
public final boolean testOption(io.qt.printsupport.QAbstractPrintDialog.PrintDialogOption option){
return testOption_native_QAbstractPrintDialog_PrintDialogOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value());
}
@io.qt.QtUninvokable
private native boolean testOption_native_QAbstractPrintDialog_PrintDialogOption_constfct(long __this__nativeId, int option);
/**
*
*/
@io.qt.QtUninvokable
public void accept(){
accept_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void accept_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public void done(int result){
done_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), result);
}
@io.qt.QtUninvokable
private native void done_native_int(long __this__nativeId, int result);
/**
* See QDialog::exec()
*/
@io.qt.QtUninvokable
public int exec(){
return exec_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int exec_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QPrintDialog(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QPrintDialog(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QPrintDialog instance, QDeclarativeConstructor constructor);
}