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

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

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Dialog that allows users to select files or directories

*

Java wrapper for Qt class QFileDialog

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

Java wrapper for Qt enum QFileDialog::AcceptMode

*/ public enum AcceptMode implements QtEnumerator { /** *

Representing QFileDialog::AcceptOpen

*/ AcceptOpen(0), /** *

Representing QFileDialog::AcceptSave

*/ AcceptSave(1); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull AcceptMode resolve(int value) { switch (value) { case 0: return AcceptOpen; case 1: return AcceptSave; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFileDialog::DialogLabel

*/ @QtUnlistedEnum public enum DialogLabel implements QtEnumerator { /** *

Representing QFileDialog::LookIn

*/ LookIn(0), /** *

Representing QFileDialog::FileName

*/ FileName(1), /** *

Representing QFileDialog::FileType

*/ FileType(2), /** *

Representing QFileDialog::Accept

*/ Accept(3), /** *

Representing QFileDialog::Reject

*/ Reject(4); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFileDialog::FileMode

*/ public enum FileMode implements QtEnumerator { /** *

Representing QFileDialog::AnyFile

*/ AnyFile(0), /** *

Representing QFileDialog::ExistingFile

*/ ExistingFile(1), /** *

Representing QFileDialog::Directory

*/ Directory(2), /** *

Representing QFileDialog::ExistingFiles

*/ ExistingFiles(3); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFileDialog::Option

* * @see Options */ public enum Option implements QtFlagEnumerator { /** *

Representing QFileDialog::ShowDirsOnly

*/ ShowDirsOnly(1), /** *

Representing QFileDialog::DontResolveSymlinks

*/ DontResolveSymlinks(2), /** *

Representing QFileDialog::DontConfirmOverwrite

*/ DontConfirmOverwrite(4), /** *

Representing QFileDialog::DontUseNativeDialog

*/ DontUseNativeDialog(8), /** *

Representing QFileDialog::ReadOnly

*/ ReadOnly(16), /** *

Representing QFileDialog::HideNameFilterDetails

*/ HideNameFilterDetails(32), /** *

Representing QFileDialog::DontUseCustomDirectoryIcons

*/ DontUseCustomDirectoryIcons(64); static { QtJambi_LibraryUtilities.initialize(); } private Option(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull Options asFlags() { return new Options(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull Options combined(@NonNull Option e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull Options cleared(@NonNull Option e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link Options} from the entries. * @param values entries * @return new flag */ public static @NonNull Options flags(@Nullable Option @NonNull... values) { return new Options(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link Option} */ public static final class Options extends QFlags




© 2015 - 2024 Weber Informatics LLC | Privacy Policy