
io.qt.widgets.QDialog Maven / Gradle / Ivy
package io.qt.widgets;
/**
* The base class of dialog windows
* Java wrapper for Qt class QDialog
*/
public class QDialog extends io.qt.widgets.QWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDialog.class);
/**
* Java wrapper for Qt enum QDialog::DialogCode
*/
@io.qt.QtUnlistedEnum
public enum DialogCode implements io.qt.QtEnumerator {
Rejected(0),
Accepted(1);
private DialogCode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static DialogCode resolve(int value) {
switch (value) {
case 0: return Rejected;
case 1: return Accepted;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
*
*/
public final Signal0 accepted = new Signal0();
/**
*
*/
public final Signal1<@io.qt.QtPrimitiveType Integer> finished = new Signal1<>();
/**
*
*/
public final Signal0 rejected = new Signal0();
/**
* Overloaded constructor for {@link #QDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QDialog(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowType ... f){
this(parent, new io.qt.core.Qt.WindowFlags(f));
}
/**
* Overloaded constructor for {@link #QDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with f = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QDialog(io.qt.widgets.QWidget parent) {
this(parent, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with:
* parent = null
* f = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QDialog() {
this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* See QDialog::QDialog(QWidget*,Qt::WindowFlags)
*/
public QDialog(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags f){
super((QPrivateConstructor)null);
initialize_native(this, parent, f);
}
private native static void initialize_native(QDialog instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags f);
@io.qt.QtUninvokable
protected final void adjustPosition(io.qt.widgets.QWidget arg__1){
adjustPosition_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void adjustPosition_native_QWidget_ptr(long __this__nativeId, long arg__1);
/**
* See QDialog::isSizeGripEnabled()const
*/
@io.qt.QtPropertyReader(name="sizeGripEnabled")
@io.qt.QtUninvokable
public final boolean isSizeGripEnabled(){
return isSizeGripEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isSizeGripEnabled_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final int result(){
return result_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int result_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtPropertyWriter(name="modal")
@io.qt.QtUninvokable
public final void setModal(boolean modal){
setModal_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), modal);
}
@io.qt.QtUninvokable
private native void setModal_native_bool(long __this__nativeId, boolean modal);
/**
*
*/
@io.qt.QtUninvokable
public final void setResult(int r){
setResult_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), r);
}
@io.qt.QtUninvokable
private native void setResult_native_int(long __this__nativeId, int r);
/**
* See QDialog::setSizeGripEnabled(bool)
*/
@io.qt.QtPropertyWriter(name="sizeGripEnabled")
@io.qt.QtUninvokable
public final void setSizeGripEnabled(boolean arg__1){
setSizeGripEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setSizeGripEnabled_native_bool(long __this__nativeId, boolean arg__1);
/**
*
*/
public void accept(){
accept_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void accept_native(long __this__nativeId);
/**
* See QWidget::closeEvent(QCloseEvent*)
*/
@io.qt.QtUninvokable
protected void closeEvent(io.qt.gui.QCloseEvent arg__1){
closeEvent_native_QCloseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void closeEvent_native_QCloseEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::contextMenuEvent(QContextMenuEvent*)
*/
@io.qt.QtUninvokable
protected void contextMenuEvent(io.qt.gui.QContextMenuEvent arg__1){
contextMenuEvent_native_QContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void contextMenuEvent_native_QContextMenuEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
public void done(int arg__1){
done_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void done_native_int(long __this__nativeId, int arg__1);
/**
* See QObject::eventFilter(QObject*,QEvent*)
*/
@io.qt.QtUninvokable
public boolean eventFilter(io.qt.core.QObject arg__1, io.qt.core.QEvent arg__2){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2));
}
@io.qt.QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2);
/**
* See QDialog::exec()
*/
public int exec(){
return exec_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native int exec_native(long __this__nativeId);
/**
* See QWidget::keyPressEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyPressEvent(io.qt.gui.QKeyEvent arg__1){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::minimumSizeHint()const
*/
@io.qt.QtUninvokable
public io.qt.core.QSize minimumSizeHint(){
return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize minimumSizeHint_native_constfct(long __this__nativeId);
/**
* See QDialog::open()
*/
public void open(){
open_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void open_native(long __this__nativeId);
/**
*
*/
public void reject(){
reject_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void reject_native(long __this__nativeId);
/**
* See QWidget::resizeEvent(QResizeEvent*)
*/
@io.qt.QtUninvokable
protected void resizeEvent(io.qt.gui.QResizeEvent arg__1){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
public void setVisible(boolean visible){
setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
private native void setVisible_native_bool(long __this__nativeId, boolean visible);
/**
* See QWidget::showEvent(QShowEvent*)
*/
@io.qt.QtUninvokable
protected void showEvent(io.qt.gui.QShowEvent arg__1){
showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.core.QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QDialog(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 QDialog(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QDialog instance, QDeclarativeConstructor constructor);
}