17#ifndef QGSEXTERNALRESOURCEWIDGET_H
18#define QGSEXTERNALRESOURCEWIDGET_H
56 if ( qobject_cast<QgsExternalResourceWidget *>( sipCpp ) )
57 sipType = sipType_QgsExternalResourceWidget;
92 QVariant documentPath( QMetaType::Type type = QMetaType::Type::QString )
const;
99 Q_DECL_DEPRECATED QVariant documentPath( QVariant::Type type )
const SIP_DEPRECATED;
101 void setDocumentPath(
const QVariant &documentPath );
109 bool fileWidgetVisible()
const;
111 void setFileWidgetVisible(
bool visible );
119 int documentViewerHeight()
const;
125 void setDocumentViewerHeight(
int height );
127 int documentViewerWidth()
const;
133 void setDocumentViewerWidth(
int width );
136 void setReadOnly(
bool readOnly );
155 QString defaultRoot()
const;
161 void setDefaultRoot(
const QString &defaultRoot );
169 void setStorageType(
const QString &storageType );
177 QString storageType()
const;
184 void setStorageAuthConfigId(
const QString &authCfg );
190 QString storageAuthConfigId()
const;
209 void loadDocument(
const QString &path );
210 void onFetchFinished();
213 void updateDocumentViewer();
218 void updateDocumentContent(
const QString &filePath );
225 QString resolvePath(
const QString &path );
228 bool mFileWidgetVisible =
true;
231 int mDocumentViewerHeight = 0;
232 int mDocumentViewerWidth = 0;
235 QString mDefaultRoot;
242 QWebView *mWebView =
nullptr;
246 QLabel *mLoadingLabel =
nullptr;
247 QLabel *mErrorLabel =
nullptr;
248 QMovie *mLoadingMovie =
nullptr;
249 QPointer<QgsExternalStorageFetchedContent> mContent;
Abstract base class for QgsExternalStorage fetched content.
A bar for displaying non-blocking messages to the user.
Shows a pixmap and adjusts its size to the space given to the widget by the layout and keeping its as...
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)