17#ifndef QGSFILEWIDGET_H
18#define QGSFILEWIDGET_H
41 if ( qobject_cast<QgsFileWidget *>( sipCpp ) )
42 sipType = sipType_QgsFileWidget;
82 Q_ENUM( RelativeStorage )
98 QString filePath()
const;
105 static QStringList splitFilePaths(
const QString &path );
112 void setFilePath(
const QString &path );
117 virtual void setReadOnly(
bool readOnly );
124 QString dialogTitle()
const;
133 void setDialogTitle(
const QString &title );
136 QString filter()
const;
142 void setFilter(
const QString &filter );
151 QFileDialog::Options options()
const;
163 void setOptions( QFileDialog::Options options );
202 bool fileWidgetButtonVisible()
const;
209 void setFileWidgetButtonVisible(
bool visible );
216 bool useLink()
const;
223 void setUseLink(
bool useLink );
230 bool fullUrl()
const;
237 void setFullUrl(
bool fullUrl );
244 QString defaultRoot()
const;
251 void setDefaultRoot(
const QString &defaultRoot );
295 void openFileDialog();
296 void textEdited(
const QString &path );
298 void fileDropped(
const QString &
filePath );
335 QFileDialog::Options
mOptions = QFileDialog::Options();
344 QString
toUrl(
const QString &path )
const;
381 void setFilters(
const QString &filters );
384 QStringList acceptableFilePaths( QDropEvent *event )
const;
391 void fileDropped(
const QString &filePath );
395 QString acceptableFilePath( QDropEvent *event )
const;
397 void dragEnterEvent( QDragEnterEvent *event )
override;
398 void dragLeaveEvent( QDragLeaveEvent *event )
override;
399 void dropEvent( QDropEvent *event )
override;
402 QStringList mAcceptableExtensions;
404 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)