-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
3,487 additions
and
1,576 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,60 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsdataitemprovider.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsDataItemProvider | ||
{ | ||
%Docstring | ||
This is the interface for those who want to add custom data items to the browser tree. | ||
|
||
The method createDataItem() is ever called only if capabilities() return non-zero value. | ||
There are two occasions when createDataItem() is called: | ||
1. to create root items (passed path is empty, parent item is null). | ||
2. to create items in directory structure. For this capabilities have to return at least | ||
of the following: QgsDataProider.Dir or QgsDataProvider.File. Passed path is the file | ||
or directory being inspected, parent item is a valid QgsDirectoryItem | ||
|
||
.. versionadded:: 2.10 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include <qgsdataitemprovider.h> | ||
#include "qgsdataitemprovider.h" | ||
%End | ||
public: | ||
virtual ~QgsDataItemProvider(); | ||
|
||
//! Human-readable name of the provider name | ||
virtual QString name() = 0; | ||
%Docstring | ||
Human-readable name of the provider name | ||
:rtype: str | ||
%End | ||
|
||
//! Return combination of flags from QgsDataProvider::DataCapabilities | ||
virtual int capabilities() = 0; | ||
%Docstring | ||
Return combination of flags from QgsDataProvider.DataCapabilities | ||
:rtype: int | ||
%End | ||
|
||
//! Create a new instance of QgsDataItem (or null) for given path and parent item. | ||
//! Caller takes responsibility of deleting created items. | ||
virtual QgsDataItem *createDataItem( const QString &path, QgsDataItem *parentItem ) = 0 /Factory/; | ||
%Docstring | ||
Caller takes responsibility of deleting created items. | ||
:rtype: QgsDataItem | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsdataitemprovider.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 |
---|---|---|
@@ -1,30 +1,59 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsdataitemproviderregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
/** | ||
* This singleton class keeps a list of data item providers that may add items to the browser tree. | ||
* When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, ...) | ||
* | ||
* @note added in 2.10 | ||
*/ | ||
class QgsDataItemProviderRegistry | ||
{ | ||
%Docstring | ||
This class keeps a list of data item providers that may add items to the browser tree. | ||
When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, ...) | ||
|
||
QgsDataItemProviderRegistry is not usually directly created, but rather accessed through | ||
QgsApplication.dataItemProviderRegistry(). | ||
|
||
.. versionadded:: 2.10 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include <qgsdataitemproviderregistry.h> | ||
#include "qgsdataitemproviderregistry.h" | ||
%End | ||
public: | ||
|
||
QgsDataItemProviderRegistry(); | ||
|
||
~QgsDataItemProviderRegistry(); | ||
|
||
//! Get list of available providers | ||
QList<QgsDataItemProvider*> providers() const; | ||
|
||
//! Add a provider implementation. Takes ownership of the object. | ||
QList<QgsDataItemProvider *> providers() const; | ||
%Docstring | ||
Get list of available providers | ||
:rtype: list of QgsDataItemProvider | ||
%End | ||
|
||
void addProvider( QgsDataItemProvider *provider /Transfer/ ); | ||
%Docstring | ||
Add a provider implementation. Takes ownership of the object. | ||
%End | ||
|
||
//! Remove provider implementation from the list (provider object is deleted) | ||
void removeProvider( QgsDataItemProvider *provider ); | ||
|
||
private: | ||
|
||
QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry &rh ); | ||
%Docstring | ||
Remove provider implementation from the list (provider object is deleted) | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsdataitemproviderregistry.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 |
---|---|---|
@@ -1,16 +1,51 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsdbfilterproxymodel.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsDatabaseFilterProxyModel: QSortFilterProxyModel | ||
{ | ||
%Docstring | ||
A class that implements a custom filter and can be used | ||
as a proxy for QgsDbTableModel | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include <qgsdbfilterproxymodel.h> | ||
#include "qgsdbfilterproxymodel.h" | ||
%End | ||
public: | ||
|
||
QgsDatabaseFilterProxyModel( QObject *parent /TransferThis/ = 0 ); | ||
~QgsDatabaseFilterProxyModel(); | ||
/** Calls QSortFilterProxyModel::setFilterWildcard and triggers update*/ | ||
%Docstring | ||
Constructor for QgsDatabaseFilterProxyModel. | ||
%End | ||
|
||
void _setFilterWildcard( const QString &pattern ); | ||
/** Calls QSortFilterProxyModel::setFilterRegExp and triggers update*/ | ||
%Docstring | ||
Calls QSortFilterProxyModel.setFilterWildcard and triggers update | ||
%End | ||
|
||
void _setFilterRegExp( const QString &pattern ); | ||
%Docstring | ||
Calls QSortFilterProxyModel.setFilterRegExp and triggers update | ||
%End | ||
|
||
protected: | ||
virtual bool filterAcceptsRow( int row, const QModelIndex &source_parent ) const; | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsdbfilterproxymodel.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.