io.qt.widgets.QInputDialog Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* Simple convenience dialog to get a single value from the user
* Java wrapper for Qt class QInputDialog
*/
public class QInputDialog extends io.qt.widgets.QDialog
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QInputDialog.class);
/**
* Java wrapper for Qt enum QInputDialog::InputDialogOption
*
* @see InputDialogOptions
*/
public enum InputDialogOption implements io.qt.QtFlagEnumerator {
NoButtons(1),
UseListViewForComboBoxItems(2),
UsePlainTextEditForTextInput(4);
private InputDialogOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public InputDialogOptions asFlags() {
return new InputDialogOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public InputDialogOptions combined(InputDialogOption e) {
return new InputDialogOptions(this, e);
}
/**
* Creates a new {@link InputDialogOptions} from the entries.
* @param values entries
* @return new flag
*/
public static InputDialogOptions flags(InputDialogOption ... values) {
return new InputDialogOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static InputDialogOption resolve(int value) {
switch (value) {
case 1: return NoButtons;
case 2: return UseListViewForComboBoxItems;
case 4: return UsePlainTextEditForTextInput;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link InputDialogOption}
*/
public static final class InputDialogOptions extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0xf740a28c5c38c430L;
/**
* Creates a new InputDialogOptions where the flags in args
are set.
* @param args enum entries
*/
public InputDialogOptions(InputDialogOption ... args){
super(args);
}
/**
* Creates a new InputDialogOptions with given value
.
* @param value
*/
public InputDialogOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new InputDialogOptions
*/
@Override
public final InputDialogOptions combined(InputDialogOption e){
return new InputDialogOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final InputDialogOptions setFlag(InputDialogOption e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final InputDialogOptions setFlag(InputDialogOption e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this InputDialogOptions.
* @return array of enum entries
*/
@Override
public final InputDialogOption[] flags(){
return super.flags(InputDialogOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final InputDialogOptions clone(){
return new InputDialogOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(InputDialogOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QInputDialog::InputMode
*/
@io.qt.QtUnlistedEnum
public enum InputMode implements io.qt.QtEnumerator {
TextInput(0),
IntInput(1),
DoubleInput(2);
private InputMode(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 InputMode resolve(int value) {
switch (value) {
case 0: return TextInput;
case 1: return IntInput;
case 2: return DoubleInput;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QInputDialog::doubleValueChanged(double)
*/
public final Signal1<@io.qt.QtPrimitiveType Double> doubleValueChanged = new Signal1<>();
/**
* See QInputDialog::doubleValueSelected(double)
*/
public final Signal1<@io.qt.QtPrimitiveType Double> doubleValueSelected = new Signal1<>();
/**
* See QInputDialog::intValueChanged(int)
*/
public final Signal1<@io.qt.QtPrimitiveType Integer> intValueChanged = new Signal1<>();
/**
* See QInputDialog::intValueSelected(int)
*/
public final Signal1<@io.qt.QtPrimitiveType Integer> intValueSelected = new Signal1<>();
/**
* See QInputDialog::textValueChanged(QString)
*/
public final Signal1 textValueChanged = new Signal1<>();
/**
* See QInputDialog::textValueSelected(QString)
*/
public final Signal1 textValueSelected = new Signal1<>();
/**
* Overloaded constructor for {@link #QInputDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QInputDialog(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowType ... flags){
this(parent, new io.qt.core.Qt.WindowFlags(flags));
}
/**
* Overloaded constructor for {@link #QInputDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with flags = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QInputDialog(io.qt.widgets.QWidget parent) {
this(parent, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QInputDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with:
* parent = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QInputDialog() {
this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* See QInputDialog::QInputDialog(QWidget*,Qt::WindowFlags)
*/
public QInputDialog(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags){
super((QPrivateConstructor)null);
initialize_native(this, parent, flags);
}
private native static void initialize_native(QInputDialog instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags);
/**
* See QInputDialog::cancelButtonText()const
*/
@io.qt.QtUninvokable
public final java.lang.String cancelButtonText(){
return cancelButtonText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String cancelButtonText_native_constfct(long __this__nativeId);
/**
* See QInputDialog::comboBoxItems()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList comboBoxItems(){
return comboBoxItems_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList comboBoxItems_native_constfct(long __this__nativeId);
/**
* See QInputDialog::doubleDecimals()const
*/
@io.qt.QtUninvokable
public final int doubleDecimals(){
return doubleDecimals_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int doubleDecimals_native_constfct(long __this__nativeId);
/**
* See QInputDialog::doubleMaximum()const
*/
@io.qt.QtUninvokable
public final double doubleMaximum(){
return doubleMaximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double doubleMaximum_native_constfct(long __this__nativeId);
/**
* See QInputDialog::doubleMinimum()const
*/
@io.qt.QtUninvokable
public final double doubleMinimum(){
return doubleMinimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double doubleMinimum_native_constfct(long __this__nativeId);
/**
* See QInputDialog::doubleStep()const
*/
@io.qt.QtUninvokable
public final double doubleStep(){
return doubleStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double doubleStep_native_constfct(long __this__nativeId);
/**
* See QInputDialog::doubleValue()const
*/
@io.qt.QtUninvokable
public final double doubleValue(){
return doubleValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double doubleValue_native_constfct(long __this__nativeId);
/**
* See QInputDialog::inputMode()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QInputDialog.InputMode inputMode(){
return io.qt.widgets.QInputDialog.InputMode.resolve(inputMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int inputMode_native_constfct(long __this__nativeId);
/**
* See QInputDialog::intMaximum()const
*/
@io.qt.QtUninvokable
public final int intMaximum(){
return intMaximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int intMaximum_native_constfct(long __this__nativeId);
/**
* See QInputDialog::intMinimum()const
*/
@io.qt.QtUninvokable
public final int intMinimum(){
return intMinimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int intMinimum_native_constfct(long __this__nativeId);
/**
* See QInputDialog::intStep()const
*/
@io.qt.QtUninvokable
public final int intStep(){
return intStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int intStep_native_constfct(long __this__nativeId);
/**
* See QInputDialog::intValue()const
*/
@io.qt.QtUninvokable
public final int intValue(){
return intValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int intValue_native_constfct(long __this__nativeId);
/**
* See QInputDialog::isComboBoxEditable()const
*/
@io.qt.QtUninvokable
public final boolean isComboBoxEditable(){
return isComboBoxEditable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isComboBoxEditable_native_constfct(long __this__nativeId);
/**
* See QInputDialog::labelText()const
*/
@io.qt.QtUninvokable
public final java.lang.String labelText(){
return labelText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String labelText_native_constfct(long __this__nativeId);
/**
* See QInputDialog::okButtonText()const
*/
@io.qt.QtUninvokable
public final java.lang.String okButtonText(){
return okButtonText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String okButtonText_native_constfct(long __this__nativeId);
/**
* See QInputDialog::open(QObject*,const char*)
*/
@io.qt.QtUninvokable
public final void open(io.qt.core.QObject receiver, java.lang.String member){
if(!member.startsWith("1") || !member.startsWith("2")) member = '1'+member;
open_native_QObject_ptr_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(receiver), member);
}
@io.qt.QtUninvokable
private native void open_native_QObject_ptr_const_char_ptr(long __this__nativeId, long receiver, java.lang.String member);
/**
* See QInputDialog::options()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QInputDialog.InputDialogOptions options(){
return new io.qt.widgets.QInputDialog.InputDialogOptions(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int options_native_constfct(long __this__nativeId);
/**
* See QInputDialog::setCancelButtonText(QString)
*/
@io.qt.QtUninvokable
public final void setCancelButtonText(java.lang.String text){
setCancelButtonText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setCancelButtonText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QInputDialog::setComboBoxEditable(bool)
*/
@io.qt.QtUninvokable
public final void setComboBoxEditable(boolean editable){
setComboBoxEditable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), editable);
}
@io.qt.QtUninvokable
private native void setComboBoxEditable_native_bool(long __this__nativeId, boolean editable);
/**
* See QInputDialog::setComboBoxItems(QStringList)
*/
@io.qt.QtUninvokable
public final void setComboBoxItems(java.util.Collection items){
setComboBoxItems_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@io.qt.QtUninvokable
private native void setComboBoxItems_native_cref_QStringList(long __this__nativeId, java.util.Collection items);
/**
* See QInputDialog::setDoubleDecimals(int)
*/
@io.qt.QtUninvokable
public final void setDoubleDecimals(int decimals){
setDoubleDecimals_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), decimals);
}
@io.qt.QtUninvokable
private native void setDoubleDecimals_native_int(long __this__nativeId, int decimals);
/**
* See QInputDialog::setDoubleMaximum(double)
*/
@io.qt.QtUninvokable
public final void setDoubleMaximum(double max){
setDoubleMaximum_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), max);
}
@io.qt.QtUninvokable
private native void setDoubleMaximum_native_double(long __this__nativeId, double max);
/**
* See QInputDialog::setDoubleMinimum(double)
*/
@io.qt.QtUninvokable
public final void setDoubleMinimum(double min){
setDoubleMinimum_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), min);
}
@io.qt.QtUninvokable
private native void setDoubleMinimum_native_double(long __this__nativeId, double min);
/**
* See QInputDialog::setDoubleRange(double,double)
*/
@io.qt.QtUninvokable
public final void setDoubleRange(double min, double max){
setDoubleRange_native_double_double(QtJambi_LibraryUtilities.internal.nativeId(this), min, max);
}
@io.qt.QtUninvokable
private native void setDoubleRange_native_double_double(long __this__nativeId, double min, double max);
/**
* See QInputDialog::setDoubleStep(double)
*/
@io.qt.QtUninvokable
public final void setDoubleStep(double step){
setDoubleStep_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), step);
}
@io.qt.QtUninvokable
private native void setDoubleStep_native_double(long __this__nativeId, double step);
/**
* See QInputDialog::setDoubleValue(double)
*/
@io.qt.QtUninvokable
public final void setDoubleValue(double value){
setDoubleValue_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@io.qt.QtUninvokable
private native void setDoubleValue_native_double(long __this__nativeId, double value);
/**
* See QInputDialog::setInputMode(QInputDialog::InputMode)
*/
@io.qt.QtUninvokable
public final void setInputMode(io.qt.widgets.QInputDialog.InputMode mode){
setInputMode_native_QInputDialog_InputMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setInputMode_native_QInputDialog_InputMode(long __this__nativeId, int mode);
/**
* See QInputDialog::setIntMaximum(int)
*/
@io.qt.QtUninvokable
public final void setIntMaximum(int max){
setIntMaximum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), max);
}
@io.qt.QtUninvokable
private native void setIntMaximum_native_int(long __this__nativeId, int max);
/**
* See QInputDialog::setIntMinimum(int)
*/
@io.qt.QtUninvokable
public final void setIntMinimum(int min){
setIntMinimum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), min);
}
@io.qt.QtUninvokable
private native void setIntMinimum_native_int(long __this__nativeId, int min);
/**
* See QInputDialog::setIntRange(int,int)
*/
@io.qt.QtUninvokable
public final void setIntRange(int min, int max){
setIntRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), min, max);
}
@io.qt.QtUninvokable
private native void setIntRange_native_int_int(long __this__nativeId, int min, int max);
/**
* See QInputDialog::setIntStep(int)
*/
@io.qt.QtUninvokable
public final void setIntStep(int step){
setIntStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), step);
}
@io.qt.QtUninvokable
private native void setIntStep_native_int(long __this__nativeId, int step);
/**
* See QInputDialog::setIntValue(int)
*/
@io.qt.QtUninvokable
public final void setIntValue(int value){
setIntValue_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@io.qt.QtUninvokable
private native void setIntValue_native_int(long __this__nativeId, int value);
/**
* See QInputDialog::setLabelText(QString)
*/
@io.qt.QtUninvokable
public final void setLabelText(java.lang.String text){
setLabelText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setLabelText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QInputDialog::setOkButtonText(QString)
*/
@io.qt.QtUninvokable
public final void setOkButtonText(java.lang.String text){
setOkButtonText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setOkButtonText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* Overloaded function for {@link #setOption(io.qt.widgets.QInputDialog.InputDialogOption, boolean)}
* with on = true
.
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.widgets.QInputDialog.InputDialogOption option) {
setOption(option, (boolean)true);
}
/**
* See QInputDialog::setOption(QInputDialog::InputDialogOption,bool)
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.widgets.QInputDialog.InputDialogOption option, boolean on){
setOption_native_QInputDialog_InputDialogOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on);
}
@io.qt.QtUninvokable
private native void setOption_native_QInputDialog_InputDialogOption_bool(long __this__nativeId, int option, boolean on);
/**
* Overloaded function for {@link #setOptions(io.qt.widgets.QInputDialog.InputDialogOptions)}.
*/
@io.qt.QtUninvokable
public final void setOptions(io.qt.widgets.QInputDialog.InputDialogOption ... options){
setOptions(new io.qt.widgets.QInputDialog.InputDialogOptions(options));
}
/**
* See QInputDialog::setOptions(InputDialogOptions)
*/
@io.qt.QtUninvokable
public final void setOptions(io.qt.widgets.QInputDialog.InputDialogOptions options){
setOptions_native_QFlags_QInputDialog_InputDialogOption_(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native void setOptions_native_QFlags_QInputDialog_InputDialogOption_(long __this__nativeId, int options);
/**
* See QInputDialog::setTextEchoMode(QLineEdit::EchoMode)
*/
@io.qt.QtUninvokable
public final void setTextEchoMode(io.qt.widgets.QLineEdit.EchoMode mode){
setTextEchoMode_native_QLineEdit_EchoMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setTextEchoMode_native_QLineEdit_EchoMode(long __this__nativeId, int mode);
/**
* See QInputDialog::setTextValue(QString)
*/
@io.qt.QtUninvokable
public final void setTextValue(java.lang.String text){
setTextValue_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setTextValue_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QInputDialog::testOption(QInputDialog::InputDialogOption)const
*/
@io.qt.QtUninvokable
public final boolean testOption(io.qt.widgets.QInputDialog.InputDialogOption option){
return testOption_native_QInputDialog_InputDialogOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value());
}
@io.qt.QtUninvokable
private native boolean testOption_native_QInputDialog_InputDialogOption_constfct(long __this__nativeId, int option);
/**
* See QInputDialog::textEchoMode()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QLineEdit.EchoMode textEchoMode(){
return io.qt.widgets.QLineEdit.EchoMode.resolve(textEchoMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int textEchoMode_native_constfct(long __this__nativeId);
/**
* See QInputDialog::textValue()const
*/
@io.qt.QtUninvokable
public final java.lang.String textValue(){
return textValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String textValue_native_constfct(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 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);
/**
*
*/
@io.qt.QtUninvokable
public void setVisible(boolean visible){
setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
@io.qt.QtUninvokable
private native void setVisible_native_bool(long __this__nativeId, boolean visible);
/**
*
*/
@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);
/**
* Overloaded function for {@link #getDouble(io.qt.widgets.QWidget, java.lang.String, java.lang.String, double, double, double, int, io.qt.core.Qt.WindowFlags, double)}
* with step = 1
.
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, double value, double minValue, double maxValue, int decimals, io.qt.core.Qt.WindowFlags flags) {
return getDouble(parent, title, label, value, minValue, maxValue, decimals, flags, (double)1);
}
/**
* Overloaded function for {@link #getDouble(io.qt.widgets.QWidget, java.lang.String, java.lang.String, double, double, double, int, io.qt.core.Qt.WindowFlags, double)}
* with:
* flags = new io.qt.core.Qt.WindowFlags(0)
* step = 1
*
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, double value, double minValue, double maxValue, int decimals) {
return getDouble(parent, title, label, value, minValue, maxValue, decimals, new io.qt.core.Qt.WindowFlags(0), (double)1);
}
/**
* Overloaded function for {@link #getDouble(io.qt.widgets.QWidget, java.lang.String, java.lang.String, double, double, double, int, io.qt.core.Qt.WindowFlags, double)}
* with:
* decimals = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* step = 1
*
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, double value, double minValue, double maxValue) {
return getDouble(parent, title, label, value, minValue, maxValue, (int)1, new io.qt.core.Qt.WindowFlags(0), (double)1);
}
/**
* Overloaded function for {@link #getDouble(io.qt.widgets.QWidget, java.lang.String, java.lang.String, double, double, double, int, io.qt.core.Qt.WindowFlags, double)}
* with:
* maxValue = 2147483647
* decimals = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* step = 1
*
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, double value, double minValue) {
return getDouble(parent, title, label, value, minValue, (double)2147483647, (int)1, new io.qt.core.Qt.WindowFlags(0), (double)1);
}
/**
* Overloaded function for {@link #getDouble(io.qt.widgets.QWidget, java.lang.String, java.lang.String, double, double, double, int, io.qt.core.Qt.WindowFlags, double)}
* with:
* minValue = -2147483647
* maxValue = 2147483647
* decimals = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* step = 1
*
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, double value) {
return getDouble(parent, title, label, value, (double)-2147483647, (double)2147483647, (int)1, new io.qt.core.Qt.WindowFlags(0), (double)1);
}
/**
* Overloaded function for {@link #getDouble(io.qt.widgets.QWidget, java.lang.String, java.lang.String, double, double, double, int, io.qt.core.Qt.WindowFlags, double)}
* with:
* value = 0
* minValue = -2147483647
* maxValue = 2147483647
* decimals = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* step = 1
*
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label) {
return getDouble(parent, title, label, (double)0, (double)-2147483647, (double)2147483647, (int)1, new io.qt.core.Qt.WindowFlags(0), (double)1);
}
/**
*
*/
public static java.lang.Double getDouble(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, double value, double minValue, double maxValue, int decimals, io.qt.core.Qt.WindowFlags flags, double step){
return getDouble_native_QWidget_ptr_cref_QString_cref_QString_double_double_double_int_bool_ptr_QFlags_Qt_WindowType__double(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), title, label, value, minValue, maxValue, decimals, flags.value(), step);
}
private native static java.lang.Double getDouble_native_QWidget_ptr_cref_QString_cref_QString_double_double_double_int_bool_ptr_QFlags_Qt_WindowType__double(long parent, java.lang.String title, java.lang.String label, double value, double minValue, double maxValue, int decimals, int flags, double step);
/**
* Overloaded function for {@link #getInt(io.qt.widgets.QWidget, java.lang.String, java.lang.String, int, int, int, int, io.qt.core.Qt.WindowFlags)}.
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, int value, int minValue, int maxValue, int step, io.qt.core.Qt.WindowType ... flags){
return getInt(parent, title, label, value, minValue, maxValue, step, new io.qt.core.Qt.WindowFlags(flags));
}
/**
* Overloaded function for {@link #getInt(io.qt.widgets.QWidget, java.lang.String, java.lang.String, int, int, int, int, io.qt.core.Qt.WindowFlags)}
* with flags = new io.qt.core.Qt.WindowFlags(0)
.
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, int value, int minValue, int maxValue, int step) {
return getInt(parent, title, label, value, minValue, maxValue, step, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded function for {@link #getInt(io.qt.widgets.QWidget, java.lang.String, java.lang.String, int, int, int, int, io.qt.core.Qt.WindowFlags)}
* with:
* step = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, int value, int minValue, int maxValue) {
return getInt(parent, title, label, value, minValue, maxValue, (int)1, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded function for {@link #getInt(io.qt.widgets.QWidget, java.lang.String, java.lang.String, int, int, int, int, io.qt.core.Qt.WindowFlags)}
* with:
* maxValue = 2147483647
* step = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, int value, int minValue) {
return getInt(parent, title, label, value, minValue, (int)2147483647, (int)1, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded function for {@link #getInt(io.qt.widgets.QWidget, java.lang.String, java.lang.String, int, int, int, int, io.qt.core.Qt.WindowFlags)}
* with:
* minValue = -2147483647
* maxValue = 2147483647
* step = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, int value) {
return getInt(parent, title, label, value, (int)-2147483647, (int)2147483647, (int)1, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded function for {@link #getInt(io.qt.widgets.QWidget, java.lang.String, java.lang.String, int, int, int, int, io.qt.core.Qt.WindowFlags)}
* with:
* value = 0
* minValue = -2147483647
* maxValue = 2147483647
* step = 1
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label) {
return getInt(parent, title, label, (int)0, (int)-2147483647, (int)2147483647, (int)1, new io.qt.core.Qt.WindowFlags(0));
}
/**
* See QInputDialog::getInt(QWidget*,QString,QString,int,int,int,int,bool*,Qt::WindowFlags)
*/
public static java.lang.Integer getInt(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, int value, int minValue, int maxValue, int step, io.qt.core.Qt.WindowFlags flags){
return getInt_native_QWidget_ptr_cref_QString_cref_QString_int_int_int_int_bool_ptr_QFlags_Qt_WindowType_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), title, label, value, minValue, maxValue, step, flags.value());
}
private native static java.lang.Integer getInt_native_QWidget_ptr_cref_QString_cref_QString_int_int_int_int_bool_ptr_QFlags_Qt_WindowType_(long parent, java.lang.String title, java.lang.String label, int value, int minValue, int maxValue, int step, int flags);
/**
* Overloaded function for {@link #getItem(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.util.Collection, int, boolean, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}.
*/
public static java.lang.String getItem(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.util.Collection items, int current, boolean editable, io.qt.core.Qt.WindowFlags flags, io.qt.core.Qt.InputMethodHint ... inputMethodHints){
return getItem(parent, title, label, items, current, editable, flags, new io.qt.core.Qt.InputMethodHints(inputMethodHints));
}
/**
* Overloaded function for {@link #getItem(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.util.Collection, int, boolean, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
.
*/
public static java.lang.String getItem(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.util.Collection items, int current, boolean editable, io.qt.core.Qt.WindowFlags flags) {
return getItem(parent, title, label, items, current, editable, flags, new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getItem(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.util.Collection, int, boolean, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getItem(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.util.Collection items, int current, boolean editable) {
return getItem(parent, title, label, items, current, editable, new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getItem(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.util.Collection, int, boolean, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* editable = true
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getItem(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.util.Collection items, int current) {
return getItem(parent, title, label, items, current, (boolean)true, new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getItem(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.util.Collection, int, boolean, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* current = 0
* editable = true
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getItem(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.util.Collection items) {
return getItem(parent, title, label, items, (int)0, (boolean)true, new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
*
*/
public static java.lang.String getItem(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.util.Collection items, int current, boolean editable, io.qt.core.Qt.WindowFlags flags, io.qt.core.Qt.InputMethodHints inputMethodHints){
return getItem_native_QWidget_ptr_cref_QString_cref_QString_cref_QStringList_int_bool_bool_ptr_QFlags_Qt_WindowType__QFlags_Qt_InputMethodHint_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), title, label, items, current, editable, flags.value(), inputMethodHints.value());
}
private native static java.lang.String getItem_native_QWidget_ptr_cref_QString_cref_QString_cref_QStringList_int_bool_bool_ptr_QFlags_Qt_WindowType__QFlags_Qt_InputMethodHint_(long parent, java.lang.String title, java.lang.String label, java.util.Collection items, int current, boolean editable, int flags, int inputMethodHints);
/**
* Overloaded function for {@link #getMultiLineText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}.
*/
public static java.lang.String getMultiLineText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.lang.String text, io.qt.core.Qt.WindowFlags flags, io.qt.core.Qt.InputMethodHint ... inputMethodHints){
return getMultiLineText(parent, title, label, text, flags, new io.qt.core.Qt.InputMethodHints(inputMethodHints));
}
/**
* Overloaded function for {@link #getMultiLineText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
.
*/
public static java.lang.String getMultiLineText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.lang.String text, io.qt.core.Qt.WindowFlags flags) {
return getMultiLineText(parent, title, label, text, flags, new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getMultiLineText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getMultiLineText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.lang.String text) {
return getMultiLineText(parent, title, label, text, new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getMultiLineText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* text = ""
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getMultiLineText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label) {
return getMultiLineText(parent, title, label, "", new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
*
*/
public static java.lang.String getMultiLineText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, java.lang.String text, io.qt.core.Qt.WindowFlags flags, io.qt.core.Qt.InputMethodHints inputMethodHints){
return getMultiLineText_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_bool_ptr_QFlags_Qt_WindowType__QFlags_Qt_InputMethodHint_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), title, label, text, flags.value(), inputMethodHints.value());
}
private native static java.lang.String getMultiLineText_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_bool_ptr_QFlags_Qt_WindowType__QFlags_Qt_InputMethodHint_(long parent, java.lang.String title, java.lang.String label, java.lang.String text, int flags, int inputMethodHints);
/**
* Overloaded function for {@link #getText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QLineEdit.EchoMode, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}.
*/
public static java.lang.String getText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, io.qt.widgets.QLineEdit.EchoMode echo, java.lang.String text, io.qt.core.Qt.WindowFlags flags, io.qt.core.Qt.InputMethodHint ... inputMethodHints){
return getText(parent, title, label, echo, text, flags, new io.qt.core.Qt.InputMethodHints(inputMethodHints));
}
/**
* Overloaded function for {@link #getText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QLineEdit.EchoMode, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
.
*/
public static java.lang.String getText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, io.qt.widgets.QLineEdit.EchoMode echo, java.lang.String text, io.qt.core.Qt.WindowFlags flags) {
return getText(parent, title, label, echo, text, flags, new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QLineEdit.EchoMode, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, io.qt.widgets.QLineEdit.EchoMode echo, java.lang.String text) {
return getText(parent, title, label, echo, text, new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QLineEdit.EchoMode, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* text = ""
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, io.qt.widgets.QLineEdit.EchoMode echo) {
return getText(parent, title, label, echo, "", new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
* Overloaded function for {@link #getText(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QLineEdit.EchoMode, java.lang.String, io.qt.core.Qt.WindowFlags, io.qt.core.Qt.InputMethodHints)}
* with:
* echo = io.qt.widgets.QLineEdit.EchoMode.Normal
* text = ""
* ok = null
* flags = new io.qt.core.Qt.WindowFlags(0)
* inputMethodHints = new io.qt.core.Qt.InputMethodHints(0)
*
*/
public static java.lang.String getText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label) {
return getText(parent, title, label, io.qt.widgets.QLineEdit.EchoMode.Normal, "", new io.qt.core.Qt.WindowFlags(0), new io.qt.core.Qt.InputMethodHints(0));
}
/**
*
*/
public static java.lang.String getText(io.qt.widgets.QWidget parent, java.lang.String title, java.lang.String label, io.qt.widgets.QLineEdit.EchoMode echo, java.lang.String text, io.qt.core.Qt.WindowFlags flags, io.qt.core.Qt.InputMethodHints inputMethodHints){
return getText_native_QWidget_ptr_cref_QString_cref_QString_QLineEdit_EchoMode_cref_QString_bool_ptr_QFlags_Qt_WindowType__QFlags_Qt_InputMethodHint_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), title, label, echo.value(), text, flags.value(), inputMethodHints.value());
}
private native static java.lang.String getText_native_QWidget_ptr_cref_QString_cref_QString_QLineEdit_EchoMode_cref_QString_bool_ptr_QFlags_Qt_WindowType__QFlags_Qt_InputMethodHint_(long parent, java.lang.String title, java.lang.String label, int echo, java.lang.String text, int flags, int inputMethodHints);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QInputDialog(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 QInputDialog(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QInputDialog instance, QDeclarativeConstructor constructor);
/**
* See QInputDialog::open(QObject *, const char *)
*/
@io.qt.QtUninvokable
public final void open(io.qt.core.QMetaObject.Slot0 selectedSlot) {
io.qt.core.QMetaMethod metaMethod = io.qt.core.QMetaMethod.fromMethod(java.util.Objects.requireNonNull(selectedSlot));
if(metaMethod==null || !metaMethod.isValid()) {
throw new IllegalArgumentException("Unable to detect slot for given handle.");
}
if(metaMethod.parameterCount()>0) {
throw new IllegalArgumentException("Connected method must not take any arguments: "+metaMethod.cppMethodSignature());
}
io.qt.core.QObject object = QtJambi_LibraryUtilities.internal.lambdaContext(io.qt.core.QMetaObject.Slot0.class, selectedSlot);
if(object==null) {
throw new IllegalArgumentException("Unable to determine QObject from given slot handle.");
}
open(object, metaMethod);
}
/**
*
*/
@io.qt.QtUninvokable
public final void open(io.qt.core.QMetaObject.Slot1> selectedSlot) {
io.qt.core.QMetaMethod metaMethod = io.qt.core.QMetaMethod.fromMethod(java.util.Objects.requireNonNull(selectedSlot));
if(metaMethod==null || !metaMethod.isValid()) {
throw new IllegalArgumentException("Unable to detect slot for given handle.");
}
if(metaMethod.parameterCount()>0) {
throw new IllegalArgumentException("Connected method does not take a single argument: "+metaMethod.cppMethodSignature());
}
if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QString.value()
&& metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.Int.value()
&& metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.UInt.value()
&& metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.Double.value()) {
throw new IllegalArgumentException("Method does not take a single String, int or double argument: "+metaMethod.cppMethodSignature());
}
io.qt.core.QObject object = QtJambi_LibraryUtilities.internal.lambdaContext(io.qt.core.QMetaObject.Slot1.class, selectedSlot);
if(object==null) {
throw new IllegalArgumentException("Unable to determine QObject from given slot handle.");
}
open(object, metaMethod);
}
/**
*
*/
@io.qt.QtUninvokable
public final void open(io.qt.core.QMetaObject.Connectable1> selectedSignal) {
io.qt.core.QMetaMethod metaMethod = io.qt.core.QMetaMethod.fromSignal(selectedSignal);
if(metaMethod==null || !metaMethod.isValid()) {
throw new IllegalArgumentException("Unable to detect signal for given handle.");
}
if(metaMethod.parameterCount()>0) {
throw new IllegalArgumentException("Connected method does not take a single argument: "+metaMethod.cppMethodSignature());
}
if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QString.value()
&& metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.Int.value()
&& metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.UInt.value()
&& metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.Double.value()) {
throw new IllegalArgumentException("Method does not take a single String, int or double argument: "+metaMethod.cppMethodSignature());
}
if(!(selectedSignal.containingObject() instanceof io.qt.core.QObject)) {
throw new IllegalArgumentException("Unable to determine QObject from given signal handle.");
}
open((io.qt.core.QObject)selectedSignal.containingObject(), metaMethod);
}
private native void open(io.qt.core.QObject obj, io.qt.core.QMetaMethod metaMethod);
}