27 QString
providerKey()
const override {
return QStringLiteral(
"tiledscene" ); }
28 QString
text()
const override {
return QObject::tr(
"Scene" ); }
33 return new QgsTiledSceneSourceSelect( parent, fl, widgetMode );
37QgsTiledSceneProviderGuiMetadata::QgsTiledSceneProviderGuiMetadata()
42QList<QgsDataItemGuiProvider *> QgsTiledSceneProviderGuiMetadata::dataItemGuiProviders()
44 return {
new QgsTiledSceneDataItemGuiProvider() };
47QList<QgsSourceSelectProvider *> QgsTiledSceneProviderGuiMetadata::sourceSelectProviders()
49 return {
new QgsTiledSceneSourceSelectProvider };
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
WidgetMode
Different ways a source select dialog can be used.
@ Embedded
Used for the data source manager dialog where the widget is embedded as the main content for a partic...
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.
virtual QString providerKey() const =0
Data Provider key.
virtual int ordering() const
Ordering: the source select provider registry will be able to sort the source selects (ascending) usi...
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).
virtual QIcon icon() const =0
Creates a new instance of an QIcon for the menu item entry.
virtual QString text() const =0
Text for the menu item entry, it will be visible to the user so make sure it's translatable.
@ OrderRemoteProvider
Starting point for remote (online) providers (e.g. WMS)