io.qt.widgets.QDialog Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* 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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDialog.class);
/**
* Java wrapper for Qt enum QDialog::DialogCode
*/
@QtUnlistedEnum
public enum DialogCode implements QtEnumerator {
/**
* Representing QDialog:: Rejected
*/
Rejected(0),
/**
* Representing QDialog:: Accepted
*/
Accepted(1);
static {
QtJambi_LibraryUtilities.initialize();
}
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 @NonNull DialogCode resolve(int value) {
switch (value) {
case 0: return Rejected;
case 1: return Accepted;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
*
*/
public final @NonNull Signal0 accepted = new Signal0();
/**
*
*/
public final @NonNull Signal1 finished = new Signal1<>();
/**
*
*/
public final @NonNull Signal0 rejected = new Signal0();
/**
* See QDialog:: QDialog(QWidget*, Qt::WindowFlags)
*/
public QDialog(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull 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);
/**
* See QDialog:: adjustPosition(QWidget*)
*/
@QtUninvokable
protected final void adjustPosition(io.qt.widgets.@Nullable QWidget arg__1){
adjustPosition_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void adjustPosition_native_QWidget_ptr(long __this__nativeId, long arg__1);
/**
* See QDialog:: isSizeGripEnabled()const
*/
@QtPropertyReader(name="sizeGripEnabled")
@QtUninvokable
public final boolean isSizeGripEnabled(){
return isSizeGripEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSizeGripEnabled_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final int result(){
return result_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int result_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyWriter(name="modal")
@QtUninvokable
public final void setModal(boolean modal){
setModal_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), modal);
}
@QtUninvokable
private native void setModal_native_bool(long __this__nativeId, boolean modal);
/**
*
*/
@QtUninvokable
public final void setResult(int r){
setResult_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), r);
}
@QtUninvokable
private native void setResult_native_int(long __this__nativeId, int r);
/**
* See QDialog:: setSizeGripEnabled(bool)
*/
@QtPropertyWriter(name="sizeGripEnabled")
@QtUninvokable
public final void setSizeGripEnabled(boolean arg__1){
setSizeGripEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@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*)
*/
@QtUninvokable
@Override
protected void closeEvent(io.qt.gui.@Nullable QCloseEvent arg__1){
closeEvent_native_QCloseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void closeEvent_native_QCloseEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget:: contextMenuEvent(QContextMenuEvent*)
*/
@QtUninvokable
@Override
protected void contextMenuEvent(io.qt.gui.@Nullable QContextMenuEvent arg__1){
contextMenuEvent_native_QContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@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*)
*/
@QtUninvokable
@Override
public boolean eventFilter(io.qt.core.@Nullable QObject arg__1, io.qt.core.@Nullable 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));
}
@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*)
*/
@QtUninvokable
@Override
protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent arg__1){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget:: minimumSizeHint()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize minimumSizeHint(){
return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@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*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent arg__1){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@Override
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*)
*/
@QtUninvokable
@Override
protected void showEvent(io.qt.gui.@Nullable QShowEvent arg__1){
showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDialog(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QDialog(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QDialog instance, QDeclarativeConstructor constructor);
/**
* 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.@Nullable 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));
}
/**
* Overloaded constructor for {@link #QDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QDialog(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... f) {
this(parent, new io.qt.core.Qt.WindowFlags(f));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isSizeGripEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getSizeGripEnabled() {
return isSizeGripEnabled();
}
}