-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5124 from boundlessgeo/providers_gui_config
Providers gui config
- Loading branch information
Showing
35 changed files
with
1,198 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgssourceselectprovider.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsSourceSelectProvider | ||
{ | ||
%Docstring | ||
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgssourceselectprovider.h" | ||
%End | ||
public: | ||
virtual ~QgsSourceSelectProvider(); | ||
|
||
virtual QString providerKey() const = 0; | ||
%Docstring | ||
Data Provider key | ||
:rtype: str | ||
%End | ||
|
||
virtual QString name() const; | ||
%Docstring | ||
Source select provider name, this is useful to retrieve | ||
a particular source select in case the provider has more | ||
than one, it should be unique among all providers. | ||
|
||
The default implementation returns the providerKey() | ||
:rtype: str | ||
%End | ||
|
||
virtual QString text() const = 0; | ||
%Docstring | ||
Text for the menu item entry, it will be visible to the user so make sure it's translatable | ||
:rtype: str | ||
%End | ||
|
||
virtual QString toolTip() const; | ||
%Docstring | ||
Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable | ||
|
||
The default implementation returns an empty string. | ||
:rtype: str | ||
%End | ||
|
||
virtual QIcon icon() const = 0; | ||
%Docstring | ||
Creates a new instance of an QIcon for the menu item entry | ||
:rtype: QIcon | ||
%End | ||
|
||
virtual int ordering( ) const; | ||
%Docstring | ||
Ordering: the source select provider registry will be able to sort | ||
the source selects (ascending) using this integer value | ||
:rtype: int | ||
%End | ||
|
||
virtual QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = 0, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const = 0 /Factory/; | ||
%Docstring | ||
Create a new instance of QgsAbstractDataSourceWidget (or null). | ||
Caller takes responsibility of deleting created. | ||
:rtype: QgsAbstractDataSourceWidget | ||
%End | ||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgssourceselectprovider.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgssourceselectproviderregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsSourceSelectProviderRegistry | ||
{ | ||
%Docstring | ||
This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDialog | ||
When created, it automatically adds providers from data provider plugins (e.g. PostGIS, WMS, ...) | ||
|
||
QgsSourceSelectProviderRegistry is not usually directly created, but rather accessed through | ||
QgsGui.sourceSelectProviderRegistry(). | ||
|
||
.. note:: | ||
|
||
This class access to QgsProviderRegistry instance to initialize, but QgsProviderRegistry is | ||
typically initialized after QgsGui is constructed, for this reason a delayed initialization has been | ||
implemented in the class. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgssourceselectproviderregistry.h" | ||
%End | ||
public: | ||
QgsSourceSelectProviderRegistry(); | ||
|
||
~QgsSourceSelectProviderRegistry(); | ||
|
||
|
||
QList< QgsSourceSelectProvider *> providers(); | ||
%Docstring | ||
Get list of available providers | ||
:rtype: list of QgsSourceSelectProvider | ||
%End | ||
|
||
void addProvider( QgsSourceSelectProvider *provider /Transfer/ ); | ||
%Docstring | ||
Add a ``provider`` implementation. Takes ownership of the object. | ||
%End | ||
|
||
bool removeProvider( QgsSourceSelectProvider *provider /Transfer/ ); | ||
%Docstring | ||
:return: true if the provider was actually removed and deleted | ||
:rtype: bool | ||
%End | ||
|
||
QgsSourceSelectProvider *providerByName( const QString &name ); | ||
%Docstring | ||
Return a provider by ``name`` or None if not found | ||
:rtype: QgsSourceSelectProvider | ||
%End | ||
|
||
QList<QgsSourceSelectProvider *> providersByKey( const QString &providerKey ); | ||
%Docstring | ||
Return a (possibly empty) list of providers by data ``providerkey`` | ||
:rtype: list of QgsSourceSelectProvider | ||
%End | ||
|
||
|
||
private: | ||
QgsSourceSelectProviderRegistry( const QgsSourceSelectProviderRegistry &rh ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgssourceselectproviderregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.