17#ifndef QGSFILEWIDGET_H
18#define QGSFILEWIDGET_H
41 if ( qobject_cast<QgsFileWidget *>( sipCpp ) )
42 sipType = sipType_QgsFileWidget;
81 Q_ENUM( RelativeStorage )
97 QString filePath()
const;
104 static QStringList splitFilePaths(
const QString &path );
111 void setFilePath(
const QString &path );
116 virtual void setReadOnly(
bool readOnly );
123 QString dialogTitle()
const;
132 void setDialogTitle(
const QString &title );
135 QString filter()
const;
141 void setFilter(
const QString &filter );
150 QFileDialog::Options options()
const;
162 void setOptions( QFileDialog::Options options );
201 bool fileWidgetButtonVisible()
const;
208 void setFileWidgetButtonVisible(
bool visible );
215 bool useLink()
const;
222 void setUseLink(
bool useLink );
229 bool fullUrl()
const;
236 void setFullUrl(
bool fullUrl );
243 QString defaultRoot()
const;
250 void setDefaultRoot(
const QString &defaultRoot );
294 void openFileDialog();
295 void textEdited(
const QString &path );
297 void fileDropped(
const QString &
filePath );
333 QFileDialog::Options
mOptions = QFileDialog::Options();
342 QString
toUrl(
const QString &path )
const;
379 void setFilters(
const QString &filters );
382 QStringList acceptableFilePaths( QDropEvent *event )
const;
389 void fileDropped(
const QString &filePath );
393 QString acceptableFilePath( QDropEvent *event )
const;
395 void dragEnterEvent( QDragEnterEvent *event )
override;
396 void dragLeaveEvent( QDragLeaveEvent *event )
override;
397 void dropEvent( QDropEvent *event )
override;
400 QStringList mAcceptableExtensions;
402 friend class TestQgsFileWidget;
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
A QgsFilterLineEdit subclass with the ability to "highlight" the edges of the widget.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)