All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.widgets.QFileDialog Maven / Gradle / Ivy

The newest version!
package io.qt.widgets;


/**
 * 

Dialog that allow users to select files or directories

*

Java wrapper for Qt class QFileDialog

*/ public class QFileDialog extends io.qt.widgets.QDialog { @io.qt.QtPropertyMember(enabled=false) private Object __rcIconProvider = null; @io.qt.QtPropertyMember(enabled=false) private Object __rcItemDelegate = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFileDialog.class); /** *

Java wrapper for Qt enum QFileDialog::AcceptMode

*/ public enum AcceptMode implements io.qt.QtEnumerator { AcceptOpen(0), AcceptSave(1); private AcceptMode(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 AcceptMode resolve(int value) { switch (value) { case 0: return AcceptOpen; case 1: return AcceptSave; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFileDialog::DialogLabel

*/ @io.qt.QtUnlistedEnum public enum DialogLabel implements io.qt.QtEnumerator { LookIn(0), FileName(1), FileType(2), Accept(3), Reject(4); private DialogLabel(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 DialogLabel resolve(int value) { switch (value) { case 0: return LookIn; case 1: return FileName; case 2: return FileType; case 3: return Accept; case 4: return Reject; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFileDialog::FileMode

*/ public enum FileMode implements io.qt.QtEnumerator { AnyFile(0), ExistingFile(1), Directory(2), ExistingFiles(3); private FileMode(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 FileMode resolve(int value) { switch (value) { case 0: return AnyFile; case 1: return ExistingFile; case 2: return Directory; case 3: return ExistingFiles; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFileDialog::Option

* * @see Options */ public enum Option implements io.qt.QtFlagEnumerator { ShowDirsOnly(1), DontResolveSymlinks(2), DontConfirmOverwrite(4), DontUseNativeDialog(8), ReadOnly(16), HideNameFilterDetails(32), DontUseCustomDirectoryIcons(64); private Option(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public Options asFlags() { return new Options(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public Options combined(Option e) { return new Options(this, e); } /** * Creates a new {@link Options} from the entries. * @param values entries * @return new flag */ public static Options flags(Option ... values) { return new Options(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Option resolve(int value) { switch (value) { case 1: return ShowDirsOnly; case 2: return DontResolveSymlinks; case 4: return DontConfirmOverwrite; case 8: return DontUseNativeDialog; case 16: return ReadOnly; case 32: return HideNameFilterDetails; case 64: return DontUseCustomDirectoryIcons; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link Option} */ public static final class Options extends io.qt.QFlags




© 2015 - 2024 Weber Informatics LLC | Privacy Policy