Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.qt.widgets.QFileDialog Maven / Gradle / Ivy
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 implements Comparable {
private static final long serialVersionUID = 0x4a6bb5914e7eca36L;
/**
* Creates a new Options where the flags in args
are set.
* @param args enum entries
*/
public Options(Option ... args){
super(args);
}
/**
* Creates a new Options with given value
.
* @param value
*/
public Options(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new Options
*/
@Override
public final Options combined(Option e){
return new Options(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final Options setFlag(Option 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 Options setFlag(Option e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this Options.
* @return array of enum entries
*/
@Override
public final Option[] flags(){
return super.flags(Option.values());
}
/**
* {@inheritDoc}
*/
@Override
public final Options clone(){
return new Options(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(Options other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QFileDialog::ViewMode
*/
public enum ViewMode implements io.qt.QtEnumerator {
Detail(0),
List(1);
private ViewMode(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 ViewMode resolve(int value) {
switch (value) {
case 0: return Detail;
case 1: return List;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QFileDialog::currentChanged(QString)
*/
public final Signal1 currentChanged = new Signal1<>();
/**
* See QFileDialog::currentUrlChanged(QUrl)
*/
public final Signal1 currentUrlChanged = new Signal1<>();
/**
* See QFileDialog::directoryEntered(QString)
*/
public final Signal1 directoryEntered = new Signal1<>();
/**
* See QFileDialog::directoryUrlEntered(QUrl)
*/
public final Signal1 directoryUrlEntered = new Signal1<>();
/**
* See QFileDialog::fileSelected(QString)
*/
public final Signal1 fileSelected = new Signal1<>();
/**
* See QFileDialog::filesSelected(QStringList)
*/
public final Signal1> filesSelected = new Signal1<>();
/**
* See QFileDialog::filterSelected(QString)
*/
public final Signal1 filterSelected = new Signal1<>();
/**
* See QFileDialog::urlSelected(QUrl)
*/
public final Signal1 urlSelected = new Signal1<>();
/**
* See QFileDialog::urlsSelected(QList<QUrl>)
*/
public final Signal1> urlsSelected = new Signal1<>();
/**
* Overloaded constructor for {@link #QFileDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QFileDialog(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowType ... f){
this(parent, new io.qt.core.Qt.WindowFlags(f));
}
/**
* See QFileDialog::QFileDialog(QWidget*,Qt::WindowFlags)
*/
public QFileDialog(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(QFileDialog instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags f);
/**
* Overloaded constructor for {@link #QFileDialog(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String)}
* with filter = ""
.
*/
public QFileDialog(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String directory) {
this(parent, caption, directory, "");
}
/**
* Overloaded constructor for {@link #QFileDialog(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String)}
* with:
* directory = ""
* filter = ""
*
*/
public QFileDialog(io.qt.widgets.QWidget parent, java.lang.String caption) {
this(parent, caption, "", "");
}
/**
* Overloaded constructor for {@link #QFileDialog(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String)}
* with:
* caption = ""
* directory = ""
* filter = ""
*
*/
public QFileDialog(io.qt.widgets.QWidget parent) {
this(parent, "", "", "");
}
/**
* Overloaded constructor for {@link #QFileDialog(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String)}
* with:
* parent = null
* caption = ""
* directory = ""
* filter = ""
*
*/
public QFileDialog() {
this((io.qt.widgets.QWidget)null, "", "", "");
}
/**
* See QFileDialog::QFileDialog(QWidget*,QString,QString,QString)
*/
public QFileDialog(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String directory, java.lang.String filter){
super((QPrivateConstructor)null);
initialize_native(this, parent, caption, directory, filter);
}
private native static void initialize_native(QFileDialog instance, io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String directory, java.lang.String filter);
/**
* See QFileDialog::acceptMode()const
*/
@io.qt.QtPropertyReader(name="acceptMode")
@io.qt.QtUninvokable
public final io.qt.widgets.QFileDialog.AcceptMode acceptMode(){
return io.qt.widgets.QFileDialog.AcceptMode.resolve(acceptMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int acceptMode_native_constfct(long __this__nativeId);
/**
* See QFileDialog::defaultSuffix()const
*/
@io.qt.QtPropertyReader(name="defaultSuffix")
@io.qt.QtUninvokable
public final java.lang.String defaultSuffix(){
return defaultSuffix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String defaultSuffix_native_constfct(long __this__nativeId);
/**
* See QFileDialog::directory()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDir directory(){
return directory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QDir directory_native_constfct(long __this__nativeId);
/**
* See QFileDialog::directoryUrl()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QUrl directoryUrl(){
return directoryUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl directoryUrl_native_constfct(long __this__nativeId);
/**
* See QFileDialog::fileMode()const
*/
@io.qt.QtPropertyReader(name="fileMode")
@io.qt.QtUninvokable
public final io.qt.widgets.QFileDialog.FileMode fileMode(){
return io.qt.widgets.QFileDialog.FileMode.resolve(fileMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int fileMode_native_constfct(long __this__nativeId);
/**
* See QFileDialog::filter()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDir.Filters filter(){
return new io.qt.core.QDir.Filters(filter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int filter_native_constfct(long __this__nativeId);
/**
* See QFileDialog::history()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList history(){
return history_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList history_native_constfct(long __this__nativeId);
/**
* See QFileDialog::iconProvider()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QAbstractFileIconProvider iconProvider(){
return iconProvider_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QAbstractFileIconProvider iconProvider_native_constfct(long __this__nativeId);
/**
* See QFileDialog::itemDelegate()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QAbstractItemDelegate itemDelegate(){
return itemDelegate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QAbstractItemDelegate itemDelegate_native_constfct(long __this__nativeId);
/**
* See QFileDialog::labelText(QFileDialog::DialogLabel)const
*/
@io.qt.QtUninvokable
public final java.lang.String labelText(io.qt.widgets.QFileDialog.DialogLabel label){
return labelText_native_QFileDialog_DialogLabel_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), label.value());
}
@io.qt.QtUninvokable
private native java.lang.String labelText_native_QFileDialog_DialogLabel_constfct(long __this__nativeId, int label);
/**
* See QFileDialog::mimeTypeFilters()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList mimeTypeFilters(){
return mimeTypeFilters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList mimeTypeFilters_native_constfct(long __this__nativeId);
/**
* See QFileDialog::nameFilters()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList nameFilters(){
return nameFilters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList nameFilters_native_constfct(long __this__nativeId);
/**
* See QFileDialog::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 QFileDialog::options()const
*/
@io.qt.QtPropertyReader(name="options")
@io.qt.QtUninvokable
public final io.qt.widgets.QFileDialog.Options options(){
return new io.qt.widgets.QFileDialog.Options(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int options_native_constfct(long __this__nativeId);
/**
* See QFileDialog::proxyModel()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QAbstractProxyModel proxyModel(){
return proxyModel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QAbstractProxyModel proxyModel_native_constfct(long __this__nativeId);
/**
* See QFileDialog::restoreState(QByteArray)
*/
@io.qt.QtUninvokable
public final boolean restoreState(io.qt.core.QByteArray state){
return restoreState_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(state));
}
@io.qt.QtUninvokable
private native boolean restoreState_native_cref_QByteArray(long __this__nativeId, long state);
/**
* See QFileDialog::saveState()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray saveState(){
return saveState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray saveState_native_constfct(long __this__nativeId);
/**
* See QFileDialog::selectFile(QString)
*/
@io.qt.QtUninvokable
public final void selectFile(java.lang.String filename){
selectFile_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filename);
}
@io.qt.QtUninvokable
private native void selectFile_native_cref_QString(long __this__nativeId, java.lang.String filename);
/**
* See QFileDialog::selectMimeTypeFilter(QString)
*/
@io.qt.QtUninvokable
public final void selectMimeTypeFilter(java.lang.String filter){
selectMimeTypeFilter_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filter);
}
@io.qt.QtUninvokable
private native void selectMimeTypeFilter_native_cref_QString(long __this__nativeId, java.lang.String filter);
/**
* See QFileDialog::selectNameFilter(QString)
*/
@io.qt.QtUninvokable
public final void selectNameFilter(java.lang.String filter){
selectNameFilter_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filter);
}
@io.qt.QtUninvokable
private native void selectNameFilter_native_cref_QString(long __this__nativeId, java.lang.String filter);
/**
* See QFileDialog::selectUrl(QUrl)
*/
@io.qt.QtUninvokable
public final void selectUrl(io.qt.core.QUrl url){
selectUrl_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url));
}
@io.qt.QtUninvokable
private native void selectUrl_native_cref_QUrl(long __this__nativeId, long url);
/**
* See QFileDialog::selectedFiles()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList selectedFiles(){
return selectedFiles_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList selectedFiles_native_constfct(long __this__nativeId);
/**
* See QFileDialog::selectedMimeTypeFilter()const
*/
@io.qt.QtUninvokable
public final java.lang.String selectedMimeTypeFilter(){
return selectedMimeTypeFilter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String selectedMimeTypeFilter_native_constfct(long __this__nativeId);
/**
* See QFileDialog::selectedNameFilter()const
*/
@io.qt.QtUninvokable
public final java.lang.String selectedNameFilter(){
return selectedNameFilter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String selectedNameFilter_native_constfct(long __this__nativeId);
/**
* See QFileDialog::selectedUrls()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList selectedUrls(){
return selectedUrls_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList selectedUrls_native_constfct(long __this__nativeId);
/**
* See QFileDialog::setAcceptMode(QFileDialog::AcceptMode)
*/
@io.qt.QtPropertyWriter(name="acceptMode")
@io.qt.QtUninvokable
public final void setAcceptMode(io.qt.widgets.QFileDialog.AcceptMode mode){
setAcceptMode_native_QFileDialog_AcceptMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setAcceptMode_native_QFileDialog_AcceptMode(long __this__nativeId, int mode);
/**
* See QFileDialog::setDefaultSuffix(QString)
*/
@io.qt.QtPropertyWriter(name="defaultSuffix")
@io.qt.QtUninvokable
public final void setDefaultSuffix(java.lang.String suffix){
setDefaultSuffix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), suffix);
}
@io.qt.QtUninvokable
private native void setDefaultSuffix_native_cref_QString(long __this__nativeId, java.lang.String suffix);
/**
* See QFileDialog::setDirectory(QDir)
*/
@io.qt.QtUninvokable
public final void setDirectory(io.qt.core.QDir directory){
setDirectory_native_cref_QDir(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(directory));
}
@io.qt.QtUninvokable
private native void setDirectory_native_cref_QDir(long __this__nativeId, long directory);
/**
* See QFileDialog::setDirectory(QString)
*/
@io.qt.QtUninvokable
public final void setDirectory(java.lang.String directory){
setDirectory_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), directory);
}
@io.qt.QtUninvokable
private native void setDirectory_native_cref_QString(long __this__nativeId, java.lang.String directory);
/**
* See QFileDialog::setDirectoryUrl(QUrl)
*/
@io.qt.QtUninvokable
public final void setDirectoryUrl(io.qt.core.QUrl directory){
setDirectoryUrl_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(directory));
}
@io.qt.QtUninvokable
private native void setDirectoryUrl_native_cref_QUrl(long __this__nativeId, long directory);
/**
* See QFileDialog::setFileMode(QFileDialog::FileMode)
*/
@io.qt.QtPropertyWriter(name="fileMode")
@io.qt.QtUninvokable
public final void setFileMode(io.qt.widgets.QFileDialog.FileMode mode){
setFileMode_native_QFileDialog_FileMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setFileMode_native_QFileDialog_FileMode(long __this__nativeId, int mode);
/**
* Overloaded function for {@link #setFilter(io.qt.core.QDir.Filters)}.
*/
@io.qt.QtUninvokable
public final void setFilter(io.qt.core.QDir.Filter ... filters){
setFilter(new io.qt.core.QDir.Filters(filters));
}
/**
* See QFileDialog::setFilter(QDir::Filters)
*/
@io.qt.QtUninvokable
public final void setFilter(io.qt.core.QDir.Filters filters){
setFilter_native_QFlags_QDir_Filter_(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value());
}
@io.qt.QtUninvokable
private native void setFilter_native_QFlags_QDir_Filter_(long __this__nativeId, int filters);
/**
* See QFileDialog::setHistory(QStringList)
*/
@io.qt.QtUninvokable
public final void setHistory(java.util.Collection paths){
setHistory_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), paths);
}
@io.qt.QtUninvokable
private native void setHistory_native_cref_QStringList(long __this__nativeId, java.util.Collection paths);
/**
* See QFileDialog::setIconProvider(QAbstractFileIconProvider*)
*/
@io.qt.QtUninvokable
public final void setIconProvider(io.qt.gui.QAbstractFileIconProvider provider){
setIconProvider_native_QAbstractFileIconProvider_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(provider));
__rcIconProvider = provider;
}
@io.qt.QtUninvokable
private native void setIconProvider_native_QAbstractFileIconProvider_ptr(long __this__nativeId, long provider);
/**
* See QFileDialog::setItemDelegate(QAbstractItemDelegate*)
*/
@io.qt.QtUninvokable
public final void setItemDelegate(io.qt.widgets.QAbstractItemDelegate delegate){
setItemDelegate_native_QAbstractItemDelegate_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(delegate));
__rcItemDelegate = delegate;
}
@io.qt.QtUninvokable
private native void setItemDelegate_native_QAbstractItemDelegate_ptr(long __this__nativeId, long delegate);
/**
* See QFileDialog::setLabelText(QFileDialog::DialogLabel,QString)
*/
@io.qt.QtUninvokable
public final void setLabelText(io.qt.widgets.QFileDialog.DialogLabel label, java.lang.String text){
setLabelText_native_QFileDialog_DialogLabel_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), label.value(), text);
}
@io.qt.QtUninvokable
private native void setLabelText_native_QFileDialog_DialogLabel_cref_QString(long __this__nativeId, int label, java.lang.String text);
/**
* See QFileDialog::setMimeTypeFilters(QStringList)
*/
@io.qt.QtUninvokable
public final void setMimeTypeFilters(java.util.Collection filters){
setMimeTypeFilters_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), filters);
}
@io.qt.QtUninvokable
private native void setMimeTypeFilters_native_cref_QStringList(long __this__nativeId, java.util.Collection filters);
/**
* See QFileDialog::setNameFilter(QString)
*/
@io.qt.QtUninvokable
public final void setNameFilter(java.lang.String filter){
setNameFilter_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filter);
}
@io.qt.QtUninvokable
private native void setNameFilter_native_cref_QString(long __this__nativeId, java.lang.String filter);
/**
* See QFileDialog::setNameFilters(QStringList)
*/
@io.qt.QtUninvokable
public final void setNameFilters(java.util.Collection filters){
setNameFilters_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), filters);
}
@io.qt.QtUninvokable
private native void setNameFilters_native_cref_QStringList(long __this__nativeId, java.util.Collection filters);
/**
* Overloaded function for {@link #setOption(io.qt.widgets.QFileDialog.Option, boolean)}
* with on = true
.
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.widgets.QFileDialog.Option option) {
setOption(option, (boolean)true);
}
/**
* See QFileDialog::setOption(QFileDialog::Option,bool)
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.widgets.QFileDialog.Option option, boolean on){
setOption_native_QFileDialog_Option_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on);
}
@io.qt.QtUninvokable
private native void setOption_native_QFileDialog_Option_bool(long __this__nativeId, int option, boolean on);
/**
* Overloaded function for {@link #setOptions(io.qt.widgets.QFileDialog.Options)}.
*/
@io.qt.QtUninvokable
public final void setOptions(io.qt.widgets.QFileDialog.Option ... options){
setOptions(new io.qt.widgets.QFileDialog.Options(options));
}
/**
* See QFileDialog::setOptions(Options)
*/
@io.qt.QtPropertyWriter(name="options")
@io.qt.QtUninvokable
public final void setOptions(io.qt.widgets.QFileDialog.Options options){
setOptions_native_QFlags_QFileDialog_Option_(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native void setOptions_native_QFlags_QFileDialog_Option_(long __this__nativeId, int options);
/**
* See QFileDialog::setProxyModel(QAbstractProxyModel*)
*/
@io.qt.QtUninvokable
public final void setProxyModel(io.qt.core.QAbstractProxyModel model){
setProxyModel_native_QAbstractProxyModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(model));
}
@io.qt.QtUninvokable
private native void setProxyModel_native_QAbstractProxyModel_ptr(long __this__nativeId, long model);
/**
* See QFileDialog::setSidebarUrls(QList<QUrl>)
*/
@io.qt.QtUninvokable
public final void setSidebarUrls(java.util.Collection urls){
setSidebarUrls_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), urls);
}
@io.qt.QtUninvokable
private native void setSidebarUrls_native_cref_QList(long __this__nativeId, java.util.Collection urls);
/**
* See QFileDialog::setSupportedSchemes(QStringList)
*/
@io.qt.QtPropertyWriter(name="supportedSchemes")
@io.qt.QtUninvokable
public final void setSupportedSchemes(java.util.Collection schemes){
setSupportedSchemes_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), schemes);
}
@io.qt.QtUninvokable
private native void setSupportedSchemes_native_cref_QStringList(long __this__nativeId, java.util.Collection schemes);
/**
* See QFileDialog::setViewMode(QFileDialog::ViewMode)
*/
@io.qt.QtPropertyWriter(name="viewMode")
@io.qt.QtUninvokable
public final void setViewMode(io.qt.widgets.QFileDialog.ViewMode mode){
setViewMode_native_QFileDialog_ViewMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setViewMode_native_QFileDialog_ViewMode(long __this__nativeId, int mode);
/**
* See QFileDialog::sidebarUrls()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList sidebarUrls(){
return sidebarUrls_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList sidebarUrls_native_constfct(long __this__nativeId);
/**
* See QFileDialog::supportedSchemes()const
*/
@io.qt.QtPropertyReader(name="supportedSchemes")
@io.qt.QtUninvokable
public final io.qt.core.QStringList supportedSchemes(){
return supportedSchemes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList supportedSchemes_native_constfct(long __this__nativeId);
/**
* See QFileDialog::testOption(QFileDialog::Option)const
*/
@io.qt.QtUninvokable
public final boolean testOption(io.qt.widgets.QFileDialog.Option option){
return testOption_native_QFileDialog_Option_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value());
}
@io.qt.QtUninvokable
private native boolean testOption_native_QFileDialog_Option_constfct(long __this__nativeId, int option);
/**
* See QFileDialog::viewMode()const
*/
@io.qt.QtPropertyReader(name="viewMode")
@io.qt.QtUninvokable
public final io.qt.widgets.QFileDialog.ViewMode viewMode(){
return io.qt.widgets.QFileDialog.ViewMode.resolve(viewMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int viewMode_native_constfct(long __this__nativeId);
/**
* See QDialog::accept()
*/
@io.qt.QtUninvokable
public void accept(){
accept_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void accept_native(long __this__nativeId);
/**
* See QWidget::changeEvent(QEvent*)
*/
@io.qt.QtUninvokable
protected void changeEvent(io.qt.core.QEvent e){
changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QDialog::done(int)
*/
@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::setVisible(bool)
*/
@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);
/**
* Overloaded function for {@link #getExistingDirectory(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}.
*/
public static java.lang.String getExistingDirectory(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, io.qt.widgets.QFileDialog.Option ... options){
return getExistingDirectory(parent, caption, dir, new io.qt.widgets.QFileDialog.Options(options));
}
/**
* Overloaded function for {@link #getExistingDirectory(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with options = new io.qt.widgets.QFileDialog.Options(1)
.
*/
public static java.lang.String getExistingDirectory(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir) {
return getExistingDirectory(parent, caption, dir, new io.qt.widgets.QFileDialog.Options(1));
}
/**
* Overloaded function for {@link #getExistingDirectory(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* dir = ""
* options = new io.qt.widgets.QFileDialog.Options(1)
*
*/
public static java.lang.String getExistingDirectory(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getExistingDirectory(parent, caption, "", new io.qt.widgets.QFileDialog.Options(1));
}
/**
* Overloaded function for {@link #getExistingDirectory(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* caption = ""
* dir = ""
* options = new io.qt.widgets.QFileDialog.Options(1)
*
*/
public static java.lang.String getExistingDirectory(io.qt.widgets.QWidget parent) {
return getExistingDirectory(parent, "", "", new io.qt.widgets.QFileDialog.Options(1));
}
/**
* Overloaded function for {@link #getExistingDirectory(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* parent = null
* caption = ""
* dir = ""
* options = new io.qt.widgets.QFileDialog.Options(1)
*
*/
public static java.lang.String getExistingDirectory() {
return getExistingDirectory((io.qt.widgets.QWidget)null, "", "", new io.qt.widgets.QFileDialog.Options(1));
}
/**
* See QFileDialog::getExistingDirectory(QWidget*,QString,QString,Options)
*/
public static java.lang.String getExistingDirectory(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, io.qt.widgets.QFileDialog.Options options){
return getExistingDirectory_native_QWidget_ptr_cref_QString_cref_QString_QFlags_QFileDialog_Option_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, dir, options.value());
}
private native static java.lang.String getExistingDirectory_native_QWidget_ptr_cref_QString_cref_QString_QFlags_QFileDialog_Option_(long parent, java.lang.String caption, java.lang.String dir, int options);
/**
* Overloaded function for {@link #getExistingDirectoryUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with supportedSchemes = java.util.Collections.emptyList()
.
*/
public static io.qt.core.QUrl getExistingDirectoryUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, io.qt.widgets.QFileDialog.Options options) {
return getExistingDirectoryUrl(parent, caption, dir, options, java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getExistingDirectoryUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* options = new io.qt.widgets.QFileDialog.Options(1)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.core.QUrl getExistingDirectoryUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir) {
return getExistingDirectoryUrl(parent, caption, dir, new io.qt.widgets.QFileDialog.Options(1), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getExistingDirectoryUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* dir = new io.qt.core.QUrl()
* options = new io.qt.widgets.QFileDialog.Options(1)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.core.QUrl getExistingDirectoryUrl(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getExistingDirectoryUrl(parent, caption, new io.qt.core.QUrl(), new io.qt.widgets.QFileDialog.Options(1), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getExistingDirectoryUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* caption = ""
* dir = new io.qt.core.QUrl()
* options = new io.qt.widgets.QFileDialog.Options(1)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.core.QUrl getExistingDirectoryUrl(io.qt.widgets.QWidget parent) {
return getExistingDirectoryUrl(parent, "", new io.qt.core.QUrl(), new io.qt.widgets.QFileDialog.Options(1), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getExistingDirectoryUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* parent = null
* caption = ""
* dir = new io.qt.core.QUrl()
* options = new io.qt.widgets.QFileDialog.Options(1)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.core.QUrl getExistingDirectoryUrl() {
return getExistingDirectoryUrl((io.qt.widgets.QWidget)null, "", new io.qt.core.QUrl(), new io.qt.widgets.QFileDialog.Options(1), java.util.Collections.emptyList());
}
/**
* See QFileDialog::getExistingDirectoryUrl(QWidget*,QString,QUrl,Options,QStringList)
*/
public static io.qt.core.QUrl getExistingDirectoryUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, io.qt.widgets.QFileDialog.Options options, java.util.Collection supportedSchemes){
return getExistingDirectoryUrl_native_QWidget_ptr_cref_QString_cref_QUrl_QFlags_QFileDialog_Option__cref_QStringList(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, QtJambi_LibraryUtilities.internal.checkedNativeId(dir), options.value(), supportedSchemes);
}
private native static io.qt.core.QUrl getExistingDirectoryUrl_native_QWidget_ptr_cref_QString_cref_QUrl_QFlags_QFileDialog_Option__cref_QStringList(long parent, java.lang.String caption, long dir, int options, java.util.Collection supportedSchemes);
/**
* See QFileDialog::getOpenFileContent(QString,std::function<void(QString,QByteArray)>)
*/
public native static void getOpenFileContent(java.lang.String nameFilter, java.util.function.BiConsumer fileContentsReady);
/**
* Overloaded function for {@link #getOpenFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}.
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, io.qt.widgets.QFileDialog.Option ... options){
return getOpenFileName(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(options));
}
/**
* Overloaded function for {@link #getOpenFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with options = new io.qt.widgets.QFileDialog.Options(0)
.
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter) {
return getOpenFileName(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir) {
return getOpenFileName(parent, caption, dir, "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getOpenFileName(parent, caption, "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* caption = ""
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName(io.qt.widgets.QWidget parent) {
return getOpenFileName(parent, "", "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* parent = null
* caption = ""
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName() {
return getOpenFileName((io.qt.widgets.QWidget)null, "", "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* See QFileDialog::getOpenFileName(QWidget*,QString,QString,QString,QString*,Options)
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options){
return getOpenFileName_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_QString_ptr_QFlags_QFileDialog_Option_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, dir, filter, options.value());
}
private native static io.qt.widgets.QFileDialog.Result getOpenFileName_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_QString_ptr_QFlags_QFileDialog_Option_(long parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, int options);
/**
* Overloaded function for {@link #getOpenFileNames(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}.
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, io.qt.widgets.QFileDialog.Option ... options){
return getOpenFileNames(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(options));
}
/**
* Overloaded function for {@link #getOpenFileNames(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with options = new io.qt.widgets.QFileDialog.Options(0)
.
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter) {
return getOpenFileNames(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileNames(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir) {
return getOpenFileNames(parent, caption, dir, "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileNames(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getOpenFileNames(parent, caption, "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileNames(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* caption = ""
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames(io.qt.widgets.QWidget parent) {
return getOpenFileNames(parent, "", "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getOpenFileNames(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* parent = null
* caption = ""
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames() {
return getOpenFileNames((io.qt.widgets.QWidget)null, "", "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* See QFileDialog::getOpenFileNames(QWidget*,QString,QString,QString,QString*,Options)
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileNames(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options){
return getOpenFileNames_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_QString_ptr_QFlags_QFileDialog_Option_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, dir, filter, options.value());
}
private native static io.qt.widgets.QFileDialog.Result> getOpenFileNames_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_QString_ptr_QFlags_QFileDialog_Option_(long parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, int options);
/**
* Overloaded function for {@link #getOpenFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with supportedSchemes = java.util.Collections.emptyList()
.
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options) {
return getOpenFileUrl(parent, caption, dir, filter, options, java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter) {
return getOpenFileUrl(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir) {
return getOpenFileUrl(parent, caption, dir, "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getOpenFileUrl(parent, caption, new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* caption = ""
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent) {
return getOpenFileUrl(parent, "", new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* parent = null
* caption = ""
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl() {
return getOpenFileUrl((io.qt.widgets.QWidget)null, "", new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* See QFileDialog::getOpenFileUrl(QWidget*,QString,QUrl,QString,QString*,Options,QStringList)
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options, java.util.Collection supportedSchemes){
return getOpenFileUrl_native_QWidget_ptr_cref_QString_cref_QUrl_cref_QString_QString_ptr_QFlags_QFileDialog_Option__cref_QStringList(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, QtJambi_LibraryUtilities.internal.checkedNativeId(dir), filter, options.value(), supportedSchemes);
}
private native static io.qt.widgets.QFileDialog.Result getOpenFileUrl_native_QWidget_ptr_cref_QString_cref_QUrl_cref_QString_QString_ptr_QFlags_QFileDialog_Option__cref_QStringList(long parent, java.lang.String caption, long dir, java.lang.String filter, int options, java.util.Collection supportedSchemes);
/**
* Overloaded function for {@link #getOpenFileUrls(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with supportedSchemes = java.util.Collections.emptyList()
.
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options) {
return getOpenFileUrls(parent, caption, dir, filter, options, java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrls(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter) {
return getOpenFileUrls(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrls(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir) {
return getOpenFileUrls(parent, caption, dir, "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrls(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getOpenFileUrls(parent, caption, new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrls(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* caption = ""
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent) {
return getOpenFileUrls(parent, "", new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getOpenFileUrls(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* parent = null
* caption = ""
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls() {
return getOpenFileUrls((io.qt.widgets.QWidget)null, "", new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* See QFileDialog::getOpenFileUrls(QWidget*,QString,QUrl,QString,QString*,Options,QStringList)
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options, java.util.Collection supportedSchemes){
return getOpenFileUrls_native_QWidget_ptr_cref_QString_cref_QUrl_cref_QString_QString_ptr_QFlags_QFileDialog_Option__cref_QStringList(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, QtJambi_LibraryUtilities.internal.checkedNativeId(dir), filter, options.value(), supportedSchemes);
}
private native static io.qt.widgets.QFileDialog.Result> getOpenFileUrls_native_QWidget_ptr_cref_QString_cref_QUrl_cref_QString_QString_ptr_QFlags_QFileDialog_Option__cref_QStringList(long parent, java.lang.String caption, long dir, java.lang.String filter, int options, java.util.Collection supportedSchemes);
/**
* Overloaded function for {@link #getSaveFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}.
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, io.qt.widgets.QFileDialog.Option ... options){
return getSaveFileName(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(options));
}
/**
* Overloaded function for {@link #getSaveFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with options = new io.qt.widgets.QFileDialog.Options(0)
.
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter) {
return getSaveFileName(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getSaveFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir) {
return getSaveFileName(parent, caption, dir, "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getSaveFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getSaveFileName(parent, caption, "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getSaveFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* caption = ""
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName(io.qt.widgets.QWidget parent) {
return getSaveFileName(parent, "", "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* Overloaded function for {@link #getSaveFileName(io.qt.widgets.QWidget, java.lang.String, java.lang.String, java.lang.String, io.qt.widgets.QFileDialog.Options)}
* with:
* parent = null
* caption = ""
* dir = ""
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName() {
return getSaveFileName((io.qt.widgets.QWidget)null, "", "", "", new io.qt.widgets.QFileDialog.Options(0));
}
/**
* See QFileDialog::getSaveFileName(QWidget*,QString,QString,QString,QString*,Options)
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileName(io.qt.widgets.QWidget parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options){
return getSaveFileName_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_QString_ptr_QFlags_QFileDialog_Option_(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, dir, filter, options.value());
}
private native static io.qt.widgets.QFileDialog.Result getSaveFileName_native_QWidget_ptr_cref_QString_cref_QString_cref_QString_QString_ptr_QFlags_QFileDialog_Option_(long parent, java.lang.String caption, java.lang.String dir, java.lang.String filter, int options);
/**
* Overloaded function for {@link #getSaveFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with supportedSchemes = java.util.Collections.emptyList()
.
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options) {
return getSaveFileUrl(parent, caption, dir, filter, options, java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getSaveFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter) {
return getSaveFileUrl(parent, caption, dir, filter, new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getSaveFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir) {
return getSaveFileUrl(parent, caption, dir, "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getSaveFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption) {
return getSaveFileUrl(parent, caption, new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getSaveFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* caption = ""
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent) {
return getSaveFileUrl(parent, "", new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* Overloaded function for {@link #getSaveFileUrl(io.qt.widgets.QWidget, java.lang.String, io.qt.core.QUrl, java.lang.String, io.qt.widgets.QFileDialog.Options, java.util.Collection)}
* with:
* parent = null
* caption = ""
* dir = new io.qt.core.QUrl()
* filter = ""
* selectedFilter = null
* options = new io.qt.widgets.QFileDialog.Options(0)
* supportedSchemes = java.util.Collections.emptyList()
*
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl() {
return getSaveFileUrl((io.qt.widgets.QWidget)null, "", new io.qt.core.QUrl(), "", new io.qt.widgets.QFileDialog.Options(0), java.util.Collections.emptyList());
}
/**
* See QFileDialog::getSaveFileUrl(QWidget*,QString,QUrl,QString,QString*,Options,QStringList)
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, io.qt.widgets.QFileDialog.Options options, java.util.Collection supportedSchemes){
return getSaveFileUrl_native_QWidget_ptr_cref_QString_cref_QUrl_cref_QString_QString_ptr_QFlags_QFileDialog_Option__cref_QStringList(QtJambi_LibraryUtilities.internal.checkedNativeId(parent), caption, QtJambi_LibraryUtilities.internal.checkedNativeId(dir), filter, options.value(), supportedSchemes);
}
private native static io.qt.widgets.QFileDialog.Result getSaveFileUrl_native_QWidget_ptr_cref_QString_cref_QUrl_cref_QString_QString_ptr_QFlags_QFileDialog_Option__cref_QStringList(long parent, java.lang.String caption, long dir, java.lang.String filter, int options, java.util.Collection supportedSchemes);
/**
* Overloaded function for {@link #saveFileContent(io.qt.core.QByteArray, java.lang.String)}
* with fileNameHint = ""
.
*/
public static void saveFileContent(io.qt.core.QByteArray fileContent) {
saveFileContent(fileContent, "");
}
/**
* See QFileDialog::saveFileContent(QByteArray,QString)
*/
public static void saveFileContent(io.qt.core.QByteArray fileContent, java.lang.String fileNameHint){
saveFileContent_native_cref_QByteArray_cref_QString(QtJambi_LibraryUtilities.internal.checkedNativeId(fileContent), fileNameHint);
}
private native static void saveFileContent_native_cref_QByteArray_cref_QString(long fileContent, java.lang.String fileNameHint);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QFileDialog(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 QFileDialog(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QFileDialog instance, QDeclarativeConstructor constructor);
/**
* Result class for QFileDialog::getOpenFileName(QWidget*,QString,QString,QString,QString*,Options) ,
* QFileDialog::getOpenFileNames(QWidget*,QString,QString,QString,QString*,Options) ,
* QFileDialog::getOpenFileUrl(QWidget*,QString,QUrl,QString,QString*,Options,QStringList) ,
* QFileDialog::getOpenFileUrls(QWidget*,QString,QUrl,QString,QString*,Options,QStringList) ,
* QFileDialog::getSaveFileName(QWidget*,QString,QString,QString,QString*,Options) and
* QFileDialog::getSaveFileUrl(QWidget*,QString,QUrl,QString,QString*,Options,QStringList) .
*/
public static final class Result {
@io.qt.NativeAccess
private Result(R result, String selectedFilter) {
this.result = result;
this.selectedFilter = selectedFilter;
}
public final R result;
public final String selectedFilter;
}
/**
* See QFileDialog::getExistingDirectoryUrl(QWidget*,QString,QUrl,Options,QStringList)
*/
public static io.qt.core.QUrl getExistingDirectoryUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.util.Collection supportedSchemes, io.qt.widgets.QFileDialog.Option... options){
return getExistingDirectoryUrl(parent, caption, dir, new io.qt.widgets.QFileDialog.Options(options), supportedSchemes);
}
/**
* See QFileDialog::getOpenFileUrl(QWidget*,QString,QUrl,QString,QString*,Options,QStringList)
*/
public static io.qt.widgets.QFileDialog.Result getOpenFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, java.util.Collection supportedSchemes, io.qt.widgets.QFileDialog.Option... options){
return getOpenFileUrl(parent, caption, dir, filter, io.qt.widgets.QFileDialog.Option.flags(options), supportedSchemes);
}
/**
* See QFileDialog::getOpenFileUrls(QWidget*,QString,QUrl,QString,QString*,Options,QStringList)
*/
public static io.qt.widgets.QFileDialog.Result> getOpenFileUrls(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, java.util.Collection supportedSchemes, io.qt.widgets.QFileDialog.Option... options){
return getOpenFileUrls(parent, caption, dir, filter, io.qt.widgets.QFileDialog.Option.flags(options), supportedSchemes);
}
/**
* See QFileDialog::getSaveFileUrl(QWidget*,QString,QUrl,QString,QString*,Options,QStringList)
*/
public static io.qt.widgets.QFileDialog.Result getSaveFileUrl(io.qt.widgets.QWidget parent, java.lang.String caption, io.qt.core.QUrl dir, java.lang.String filter, java.util.Collection supportedSchemes, io.qt.widgets.QFileDialog.Option... options){
return getSaveFileUrl(parent, caption, dir, filter, io.qt.widgets.QFileDialog.Option.flags(options), supportedSchemes);
}
/**
* See QFileDialog::open(QObject *, const char *)
*/
@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()!=1) {
throw new IllegalArgumentException("Connected method does not take a single argument: "+metaMethod.cppMethodSignature());
}
if(fileMode()==FileMode.ExistingFiles) {
if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QStringList.value()) {
throw new IllegalArgumentException("Method does not take a single String list argument: "+metaMethod.cppMethodSignature());
}
}else {
if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QString.value()) {
throw new IllegalArgumentException("Method does not take a single String argument: "+metaMethod.cppMethodSignature());
}
}
io.qt.core.QObject object = QtJambi_LibraryUtilities.internal.lambdaContext(selectedSlot);
if(object==null) {
throw new IllegalArgumentException("Unable to determine QObject from given slot handle.");
}
open(object, metaMethod);
}
/**
* See QFileDialog::open(QObject *, const char *)
*/
@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()!=1) {
throw new IllegalArgumentException("Connected method does not take a single argument: "+metaMethod.cppMethodSignature());
}
if(fileMode()==FileMode.ExistingFiles) {
if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QStringList.value()) {
throw new IllegalArgumentException("Method does not take a single String list argument: "+metaMethod.cppMethodSignature());
}
}else {
if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QString.value()) {
throw new IllegalArgumentException("Method does not take a single String 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);
}