16 #ifndef QGSEXTERNALSTORAGEFILEWIDGET_H
17 #define QGSEXTERNALSTORAGEFILEWIDGET_H
28 #include <QFileDialog>
44 if ( qobject_cast<QgsExternalStorageFileWidget *>( sipCpp ) )
45 sipType = sipType_QgsExternalStorageFileWidget;
52 Q_PROPERTY( QString storageType READ storageType WRITE setStorageType )
53 Q_PROPERTY( QString auth READ storageAuthConfigId WRITE setStorageAuthConfigId )
54 Q_PROPERTY( QString storageUrlExpression READ storageUrlExpressionString WRITE setStorageUrlExpression )
71 void setStorageType(
const QString &storageType );
79 QString storageType()
const;
95 void setStorageAuthConfigId(
const QString &authCfg );
101 const QString &storageAuthConfigId()
const;
109 void setStorageUrlExpression(
const QString &urlExpression );
118 QString storageUrlExpressionString()
const;
173 void addFileWidgetScope();
175 void dragEnterEvent( QDragEnterEvent *event )
override;
177 void dropEvent( QDropEvent *event )
override;
185 void storeExternalFiles( QStringList fileNames, QStringList storedUrls = QStringList() );
188 void updateAcceptDrops();
190 bool mStoreInProgress =
false;
194 std::unique_ptr< QgsExpression > mStorageUrlExpression;
198 QLabel *mProgressLabel =
nullptr;
199 QProgressBar *mProgressBar =
nullptr;
200 QToolButton *mCancelButton =
nullptr;
203 friend class TestQgsExternalResourceWidgetWrapper;
204 friend class TestQgsExternalStorageFileWidget;
Single scope for storing variables and functions for use within a QgsExpressionContext.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Class for parsing and evaluation of expressions (formerly called "search strings").
Abstract interface for external storage - to be implemented by various backends and registered in Qgs...
A bar for displaying non-blocking messages to the user.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)