QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
28 QString
providerKey()
const override {
return QStringLiteral(
"vectortile" ); }
29 QString
text()
const override {
return QObject::tr(
"Vector Tile" ); }
34 return new QgsVectorTileSourceSelect( parent, fl, widgetMode );
38 QgsVectorTileProviderGuiMetadata::QgsVectorTileProviderGuiMetadata()
43 QList<QgsDataItemGuiProvider *> QgsVectorTileProviderGuiMetadata::dataItemGuiProviders()
45 return QList<QgsDataItemGuiProvider *>()
46 <<
new QgsVectorTileDataItemGuiProvider;
49 QList<QgsSourceSelectProvider *> QgsVectorTileProviderGuiMetadata::sourceSelectProviders()
51 QList<QgsSourceSelectProvider *> providers;
52 providers <<
new QgsVectorTileSourceSelectProvider;
virtual int ordering() const
Ordering: the source select provider registry will be able to sort the source selects (ascending) usi...
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.
virtual QgsAbstractDataSourceWidget * createDataSourceWidget(QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode=QgsProviderRegistry::WidgetMode::Embedded) const =0
Create a new instance of QgsAbstractDataSourceWidget (or nullptr).
WidgetMode
Different ways a source select dialog can be used.
virtual QString text() const =0
Text for the menu item entry, it will be visible to the user so make sure it's translatable.
virtual QIcon icon() const =0
Creates a new instance of an QIcon for the menu item entry.
virtual QString providerKey() const =0
Data Provider key.
@ OrderRemoteProvider
Starting point for remote (online) providers (e.g. WMS)
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.