QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSSOURCESELECTPROVIDER_H
17 #define QGSSOURCESELECTPROVIDER_H
42 OrderLocalProvider = 0,
43 OrderDatabaseProvider = 1000,
44 OrderRemoteProvider = 2000,
45 OrderGeoCmsProvider = 3000,
46 OrderOtherProvider = 4000,
61 virtual QString
name()
const {
return providerKey(); }
64 virtual QString
text()
const = 0;
71 virtual QString
toolTip()
const {
return QString(); }
74 virtual QIcon
icon()
const = 0;
80 virtual int ordering( )
const {
return OrderOtherProvider; }
90 #endif // QGSSOURCESELECTPROVIDER_H
virtual int ordering() const
Ordering: the source select provider registry will be able to sort the source selects (ascending) usi...
virtual QString toolTip() const
Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable.
Ordering
Provider ordering groups.
virtual ~QgsSourceSelectProvider()=default
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.
virtual QString name() const
Source select provider name, this is useful to retrieve a particular source select in case the provid...
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.