mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Merge pull request #63333 from nyalldawson/cleanup_sip
Remove orphaned sip files
This commit is contained in:
commit
68de81e852
@ -1,62 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/gps/qgsgpstoolsinterface.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
class QgsGpsToolsInterface : QObject
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Abstract interface class for the QGIS GPS tools.
|
||||
|
||||
.. versionadded:: 3.44
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsgpstoolsinterface.h"
|
||||
%End
|
||||
public:
|
||||
QgsGpsToolsInterface();
|
||||
|
||||
virtual void setGpsPanelConnection( QgsGpsConnection *connection /Transfer/ ) = 0;
|
||||
%Docstring
|
||||
Sets a GPS ``connection`` to use within the GPS Panel widget.
|
||||
|
||||
Any existing GPS connection used by the widget will be disconnected and
|
||||
replaced with this connection. The connection is automatically
|
||||
registered within the :py:func:`QgsApplication.gpsConnectionRegistry()`.
|
||||
%End
|
||||
|
||||
virtual void createFeatureFromGpsTrack() = 0;
|
||||
%Docstring
|
||||
Creates a feature from the current GPS track.
|
||||
|
||||
The geometry type of the feature is determined by the layer set via
|
||||
:py:func:`QgsProjectGpsSettings.destinationLayer()`.
|
||||
|
||||
The created geometry will be automatically commited depending on the
|
||||
status of
|
||||
:py:func:`QgsProjectGpsSettings.automaticallyCommitFeatures()`.
|
||||
%End
|
||||
|
||||
virtual void setGpsTrackLineSymbol( QgsLineSymbol *symbol ) = 0;
|
||||
%Docstring
|
||||
Sets the line ``symbol`` of the GPS track and changes the
|
||||
:py:class:`QgsAppGpsDigitizing`.settingTrackLineSymbol setting.
|
||||
|
||||
If there is a current GPS track, its appearance is updated according to
|
||||
the symbol.
|
||||
%End
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/gps/qgsgpstoolsinterface.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,148 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/plot/qgschartregistry.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
class QgsChartAbstractMetadata
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Stores metadata about a chart class.
|
||||
|
||||
.. note::
|
||||
|
||||
In C++ you can use :py:class:`QgsChartAbstractMetadata` convenience class.
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgschartregistry.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsChartAbstractMetadata( const QString &type, const QString &visibleName );
|
||||
%Docstring
|
||||
Constructor for QgsChartAbstractMetadata with the specified class
|
||||
``type``.
|
||||
%End
|
||||
|
||||
virtual ~QgsChartAbstractMetadata();
|
||||
|
||||
QString type() const;
|
||||
%Docstring
|
||||
Returns the unique type code for the chart class.
|
||||
%End
|
||||
|
||||
QString visibleName() const;
|
||||
%Docstring
|
||||
Returns a translated, user visible name for the chart class.
|
||||
%End
|
||||
|
||||
|
||||
virtual QgsPlot *createChart() = 0 /TransferBack/;
|
||||
%Docstring
|
||||
Creates a chart of this class.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
class QgsChartRegistry : QObject
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Registry of available chart types.
|
||||
|
||||
:py:class:`QgsChartRegistry` is not usually directly created, but rather
|
||||
accessed through :py:func:`QgsApplication.chartRegistry()`.
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgschartregistry.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsChartRegistry( QObject *parent = 0 );
|
||||
%Docstring
|
||||
Creates a new empty item registry.
|
||||
|
||||
QgsChartRegistry is not usually directly created, but rather accessed
|
||||
through :py:func:`QgsApplication.chartRegistry()`.
|
||||
|
||||
.. seealso:: :py:func:`populate`
|
||||
%End
|
||||
~QgsChartRegistry();
|
||||
|
||||
bool populate();
|
||||
%Docstring
|
||||
Populates the registry with standard chart types. If called on a
|
||||
non-empty registry then this will have no effect and will return
|
||||
``False``.
|
||||
%End
|
||||
|
||||
|
||||
QgsChartAbstractMetadata *chartMetadata( const QString &type ) const;
|
||||
%Docstring
|
||||
Returns the metadata for the specified chart ``type``. Returns ``None``
|
||||
if a corresponding type was not found in the registry.
|
||||
%End
|
||||
|
||||
|
||||
bool addChartType( QgsChartAbstractMetadata *metadata /Transfer/ );
|
||||
%Docstring
|
||||
Registers a new chart type.
|
||||
|
||||
.. note::
|
||||
|
||||
Takes ownership of the metadata instance.
|
||||
%End
|
||||
|
||||
bool removeChartType( const QString &type );
|
||||
%Docstring
|
||||
Removes a new a chart type from the registry.
|
||||
%End
|
||||
|
||||
QgsPlot *createChart( const QString &type ) const /TransferBack/;
|
||||
%Docstring
|
||||
Creates a new instance of a chart given the ``type``.
|
||||
%End
|
||||
|
||||
QMap<QString, QString> chartTypes() const;
|
||||
%Docstring
|
||||
Returns a map of available charts types to translated name.
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
void chartAdded( const QString &type, const QString &name );
|
||||
%Docstring
|
||||
Emitted whenever a new chart type is added to the registry, with the
|
||||
specified ``type`` and visible ``name``.
|
||||
%End
|
||||
|
||||
void chartAboutToBeRemoved( const QString &type );
|
||||
%Docstring
|
||||
Emitted whenever a new chart type is added to the registry, with the
|
||||
specified ``type`` and visible ``name``.
|
||||
%End
|
||||
|
||||
private:
|
||||
QgsChartRegistry( const QgsChartRegistry &rh );
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/plot/qgschartregistry.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,93 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilter.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsFeatureFilter : QgsFeatureFilterProvider
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
A feature filter provider allowing to set filter expressions on a
|
||||
per-layer basis.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsfeaturefilter.h"
|
||||
%End
|
||||
public:
|
||||
QgsFeatureFilter();
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QgsVectorLayer *layer, QgsFeatureRequest &filterFeatures ) const /Deprecated="Since 4.0. Use the layer ID variant."/;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer
|
||||
|
||||
:param layer: the layer to control
|
||||
:param filterFeatures: the request to fill
|
||||
|
||||
.. deprecated:: 4.0
|
||||
|
||||
Use the layer ID variant.
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QString &layerId, QgsFeatureRequest &filterFeatures ) const;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer
|
||||
|
||||
:param layerId: the layer ID to control
|
||||
:param filterFeatures: the request to fill
|
||||
%End
|
||||
|
||||
virtual QStringList layerAttributes( const QgsVectorLayer *layer, const QStringList &attributes ) const;
|
||||
|
||||
|
||||
virtual QgsFeatureFilterProvider *clone() const /Factory/;
|
||||
|
||||
%Docstring
|
||||
Returns a clone of the object
|
||||
|
||||
:return: A clone
|
||||
%End
|
||||
|
||||
void setFilter( const QgsVectorLayer *layer, const QgsExpression &expression ) /Deprecated="Since 4.0. Use the layer ID variant."/;
|
||||
%Docstring
|
||||
Set a filter for the given layer.
|
||||
|
||||
:param layer: the layer to filter
|
||||
:param expression: the filter expression
|
||||
|
||||
.. deprecated:: 4.0
|
||||
|
||||
Use the layer ID variant.
|
||||
%End
|
||||
|
||||
void setFilter( const QString &layerId, const QgsExpression &expression );
|
||||
%Docstring
|
||||
Set a filter for the given layer.
|
||||
|
||||
:param layerId: the layer to filter
|
||||
:param expression: the filter expression
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilter.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,81 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilterprovidergroup.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsFeatureFilterProviderGroup : QgsFeatureFilterProvider
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
A filter filter provider grouping several filter providers.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsfeaturefilterprovidergroup.h"
|
||||
%End
|
||||
public:
|
||||
QgsFeatureFilterProviderGroup();
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QgsVectorLayer *layer, QgsFeatureRequest &filterFeatures ) const /Deprecated="Since 4.0. Use the layer ID variant."/;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer.
|
||||
|
||||
:param layer: the layer to control
|
||||
:param filterFeatures: the request to fill
|
||||
|
||||
.. deprecated:: 4.0
|
||||
|
||||
Use the layer ID variant.
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QString &layerId, QgsFeatureRequest &filterFeatures ) const;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer.
|
||||
|
||||
:param layerId: the layer ID to control
|
||||
:param filterFeatures: the request to fill
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
virtual QStringList layerAttributes( const QgsVectorLayer *layer, const QStringList &attributes ) const;
|
||||
|
||||
|
||||
virtual QgsFeatureFilterProvider *clone() const /Factory/;
|
||||
|
||||
%Docstring
|
||||
Returns a clone of the object
|
||||
|
||||
:return: A clone
|
||||
%End
|
||||
|
||||
QgsFeatureFilterProviderGroup &addProvider( const QgsFeatureFilterProvider *provider );
|
||||
%Docstring
|
||||
Add another filter provider to the group
|
||||
|
||||
:param provider: The provider to add
|
||||
|
||||
:return: itself
|
||||
%End
|
||||
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilterprovidergroup.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,391 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/processing/qgsprocessingtoolboxmodel.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsProcessingToolboxModelNode : QObject
|
||||
{
|
||||
%Docstring
|
||||
Abstract base class for nodes contained within a QgsProcessingToolboxModel.
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
%ConvertToSubClassCode
|
||||
if ( sipCpp->inherits( "QgsProcessingToolboxModelNode" ) )
|
||||
{
|
||||
sipType = sipType_QgsProcessingToolboxModelNode;
|
||||
QgsProcessingToolboxModelNode *node = qobject_cast<QgsProcessingToolboxModelNode *>( sipCpp );
|
||||
if ( node->nodeType() == QgsProcessingToolboxModelNode::NodeProvider )
|
||||
sipType = sipType_QgsProcessingToolboxModelProviderNode;
|
||||
else if ( node->nodeType() == QgsProcessingToolboxModelNode::NodeGroup )
|
||||
sipType = sipType_QgsProcessingToolboxModelGroupNode;
|
||||
else if ( node->nodeType() == QgsProcessingToolboxModelNode::NodeAlgorithm )
|
||||
sipType = sipType_QgsProcessingToolboxModelAlgorithmNode;
|
||||
}
|
||||
else
|
||||
sipType = 0;
|
||||
%End
|
||||
public:
|
||||
|
||||
enum NodeType
|
||||
{
|
||||
NodeProvider,
|
||||
NodeGroup,
|
||||
NodeAlgorithm,
|
||||
};
|
||||
|
||||
~QgsProcessingToolboxModelNode();
|
||||
|
||||
virtual NodeType nodeType() const = 0;
|
||||
%Docstring
|
||||
Returns the node's type.
|
||||
%End
|
||||
|
||||
QgsProcessingToolboxModelNode *parent();
|
||||
%Docstring
|
||||
Returns the node's parent. If the node's parent is a null pointer, then the node is a root node.
|
||||
%End
|
||||
|
||||
QList<QgsProcessingToolboxModelNode *> children();
|
||||
%Docstring
|
||||
Returns a list of children belonging to the node.
|
||||
%End
|
||||
|
||||
|
||||
QgsProcessingToolboxModelNode* takeChild( QgsProcessingToolboxModelNode* node );
|
||||
%Docstring
|
||||
Removes the specified ``node`` from this node's children, and gives
|
||||
ownership back to the caller.
|
||||
%End
|
||||
|
||||
QgsProcessingToolboxModelGroupNode *getChildGroupNode( const QString &id );
|
||||
%Docstring
|
||||
Tries to find a child node belonging to this node, which corresponds to
|
||||
a group node with the given group ``id``. Returns None if no matching
|
||||
child group node was found.
|
||||
%End
|
||||
|
||||
void addChildNode( QgsProcessingToolboxModelNode *node /Transfer/ );
|
||||
%Docstring
|
||||
Adds a child ``node`` to this node, transferring ownership of the node
|
||||
to this node.
|
||||
%End
|
||||
|
||||
void deleteChildren();
|
||||
%Docstring
|
||||
Deletes all child nodes from this node.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsProcessingToolboxModelProviderNode : QgsProcessingToolboxModelNode
|
||||
{
|
||||
%Docstring
|
||||
Processing toolbox model node corresponding to a Processing provider.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsProcessingToolboxModelProviderNode( QgsProcessingProvider *provider );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModelProviderNode, linked to the
|
||||
specified ``provider``.
|
||||
%End
|
||||
|
||||
virtual NodeType nodeType() const;
|
||||
|
||||
QgsProcessingProvider *provider();
|
||||
%Docstring
|
||||
Returns the provider associated with this node.
|
||||
%End
|
||||
|
||||
QString providerId() const;
|
||||
%Docstring
|
||||
Returns the provider ID.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsProcessingToolboxModelGroupNode : QgsProcessingToolboxModelNode
|
||||
{
|
||||
%Docstring
|
||||
Processing toolbox model node corresponding to a group of algorithms.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsProcessingToolboxModelGroupNode( const QString &id, const QString &name );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModelGroupNode.
|
||||
|
||||
The ``id`` argument specifies the group ID (unique and untranslated),
|
||||
and the ``name`` argument gives the translated, user-visible name
|
||||
of the group.
|
||||
%End
|
||||
|
||||
virtual NodeType nodeType() const;
|
||||
|
||||
QString id() const;
|
||||
%Docstring
|
||||
Returns the group's ID, which is unique and untranslated.
|
||||
%End
|
||||
|
||||
QString name() const;
|
||||
%Docstring
|
||||
Returns the group's name, which is translated and user-visible.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsProcessingToolboxModelAlgorithmNode : QgsProcessingToolboxModelNode
|
||||
{
|
||||
%Docstring
|
||||
Processing toolbox model node corresponding to an algorithm.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsProcessingToolboxModelAlgorithmNode( const QgsProcessingAlgorithm *algorithm );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModelAlgorithmNode, associated
|
||||
with the specified ``algorithm``.
|
||||
%End
|
||||
|
||||
virtual NodeType nodeType() const;
|
||||
|
||||
const QgsProcessingAlgorithm *algorithm() const;
|
||||
%Docstring
|
||||
Returns the algorithm associated with this node.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
class QgsProcessingToolboxModel : QAbstractItemModel
|
||||
{
|
||||
%Docstring
|
||||
A model for providers and algorithms shown within the Processing toolbox.
|
||||
|
||||
See QgsProcessingToolboxProxyModel for a sorted, filterable version
|
||||
of this model.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
enum Roles
|
||||
{
|
||||
RoleNodeType,
|
||||
RoleAlgorithmFlags,
|
||||
RoleAlgorithmId,
|
||||
RoleAlgorithmName,
|
||||
RoleAlgorithmTags,
|
||||
};
|
||||
|
||||
QgsProcessingToolboxModel( QObject *parent /TransferThis/ = 0, QgsProcessingRegistry *registry = 0 );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModel, with the given ``parent`` object.
|
||||
|
||||
If ``registry`` is specified then the model will show providers and algorithms
|
||||
from the given registry. If no registry is specified, then the processing
|
||||
registry attached to QgsApplication.processingRegistry() will be used
|
||||
by the model.
|
||||
%End
|
||||
|
||||
virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
|
||||
|
||||
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
|
||||
|
||||
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
||||
|
||||
virtual int columnCount( const QModelIndex & = QModelIndex() ) const;
|
||||
|
||||
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
|
||||
|
||||
virtual QModelIndex parent( const QModelIndex &index ) const;
|
||||
|
||||
|
||||
QgsProcessingToolboxModelNode *index2node( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the model node corresponding to the given ``index``.
|
||||
|
||||
.. seealso:: :py:func:`node2index`
|
||||
%End
|
||||
|
||||
QModelIndex node2index( QgsProcessingToolboxModelNode *node ) const;
|
||||
%Docstring
|
||||
Returns the model index corresponding to the given ``node``.
|
||||
|
||||
.. seealso:: :py:func:`index2node`
|
||||
%End
|
||||
|
||||
QgsProcessingProvider *providerForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the provider which corresponds to a given ``index``, or
|
||||
a None if the index does not represent a provider.
|
||||
|
||||
.. seealso:: :py:func:`algorithmForIndex`
|
||||
|
||||
.. seealso:: :py:func:`indexForProvider`
|
||||
%End
|
||||
|
||||
QString providerIdForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the provider ID which corresponds to a given ``index``, or
|
||||
an empty string if the index does not represent a provider.
|
||||
|
||||
.. seealso:: :py:func:`algorithmForIndex`
|
||||
|
||||
.. seealso:: :py:func:`indexForProvider`
|
||||
%End
|
||||
|
||||
const QgsProcessingAlgorithm *algorithmForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the algorithm which corresponds to a given ``index``, or
|
||||
a None if the index does not represent an algorithm.
|
||||
|
||||
.. seealso:: :py:func:`isAlgorithm`
|
||||
|
||||
.. seealso:: :py:func:`providerForIndex`
|
||||
%End
|
||||
|
||||
bool isAlgorithm( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns true if ``index`` corresponds to an algorithm.
|
||||
|
||||
.. seealso:: :py:func:`algorithmForIndex`
|
||||
%End
|
||||
|
||||
QModelIndex indexForProvider(const QString &providerId ) const;
|
||||
%Docstring
|
||||
Returns the index corresponding to the specified ``providerId``.
|
||||
|
||||
.. seealso:: :py:func:`providerForIndex`
|
||||
%End
|
||||
|
||||
QModelIndex indexOfParentTreeNode( QgsProcessingToolboxModelNode *parentNode ) const;
|
||||
%Docstring
|
||||
Returns the index corresponding to the parent of a given node.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
class QgsProcessingToolboxProxyModel: QSortFilterProxyModel
|
||||
{
|
||||
%Docstring
|
||||
A sort/filter proxy model for providers and algorithms shown within the Processing toolbox,
|
||||
which automatically sorts the toolbox in a logical fashion and supports filtering
|
||||
the results.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
enum Filter
|
||||
{
|
||||
FilterToolbox,
|
||||
FilterModeler,
|
||||
};
|
||||
typedef QFlags<QgsProcessingToolboxProxyModel::Filter> Filters;
|
||||
|
||||
|
||||
explicit QgsProcessingToolboxProxyModel( QObject *parent /TransferThis/ = 0, QgsProcessingRegistry *registry = 0 );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxProxyModel, with the given ``parent`` object.
|
||||
|
||||
If ``registry`` is specified then the model will show providers and algorithms
|
||||
from the given registry. If no registry is specified, then the processing
|
||||
registry attached to QgsApplication.processingRegistry() will be used
|
||||
by the model.
|
||||
%End
|
||||
|
||||
void setFilters( QgsProcessingToolboxProxyModel::Filters filters );
|
||||
%Docstring
|
||||
Set ``filters`` that affect how toolbox content is filtered.
|
||||
|
||||
.. seealso:: :py:func:`filters`
|
||||
%End
|
||||
|
||||
Filters filters() const;
|
||||
%Docstring
|
||||
Returns any filters that affect how toolbox content is filtered.
|
||||
|
||||
.. seealso:: :py:func:`setFilters`
|
||||
%End
|
||||
|
||||
void setFilterString(const QString &filter);
|
||||
%Docstring
|
||||
Sets a ``filter`` string, such that only algorithms matching the
|
||||
specified string will be shown.
|
||||
|
||||
.. seealso:: :py:func:`filterString`
|
||||
%End
|
||||
|
||||
QString filterString() const;
|
||||
|
||||
virtual bool filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent ) const;
|
||||
|
||||
virtual bool lessThan( const QModelIndex &left, const QModelIndex &right ) const;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/processing/qgsprocessingtoolboxmodel.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
@ -1,72 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgsfiledropedit.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
class QgsFileDropEdit: QLineEdit
|
||||
{
|
||||
%Docstring
|
||||
A line edit for capturing file names that can have files dropped onto
|
||||
it via drag & drop.
|
||||
|
||||
Dropping can be limited to files only, files with a specific extension
|
||||
or directories only. By default, dropping is limited to files only.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsfiledropedit.h"
|
||||
%End
|
||||
public:
|
||||
QgsFileDropEdit( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
bool isDirOnly() const;
|
||||
%Docstring
|
||||
:rtype: bool
|
||||
%End
|
||||
|
||||
void setDirOnly( bool isDirOnly );
|
||||
%Docstring
|
||||
Limit drops to directories.
|
||||
%End
|
||||
|
||||
bool isFileOnly() const;
|
||||
%Docstring
|
||||
:rtype: bool
|
||||
%End
|
||||
|
||||
void setFileOnly( bool isFileOnly );
|
||||
%Docstring
|
||||
Limit drops to files.
|
||||
%End
|
||||
|
||||
QString suffixFilter() const;
|
||||
%Docstring
|
||||
:rtype: str
|
||||
%End
|
||||
|
||||
void setSuffixFilter( const QString &suffix );
|
||||
%Docstring
|
||||
Limit drops to files with specified extension.
|
||||
%End
|
||||
|
||||
protected:
|
||||
|
||||
virtual void dragEnterEvent( QDragEnterEvent *event );
|
||||
virtual void dragLeaveEvent( QDragLeaveEvent *event );
|
||||
virtual void dropEvent( QDropEvent *event );
|
||||
virtual void paintEvent( QPaintEvent *e );
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgsfiledropedit.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
@ -1,86 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgssourceselectdialog.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsSourceSelectDialog : QDialog, protected Ui::QgsSourceSelectBase
|
||||
{
|
||||
%Docstring
|
||||
Generic class listing layers available from a remote service.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgssourceselectdialog.h"
|
||||
%End
|
||||
public:
|
||||
enum ServiceType { MapService, FeatureService };
|
||||
|
||||
QgsSourceSelectDialog( const QString &serviceName, ServiceType serviceType, QWidget *parent, Qt::WindowFlags fl );
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
~QgsSourceSelectDialog();
|
||||
void setCurrentExtentAndCrs( const QgsRectangle &canvasExtent, const QgsCoordinateReferenceSystem &canvasCrs );
|
||||
%Docstring
|
||||
Sets the current extent and CRS. Used to select an appropriate CRS and possibly to retrieve data only in the current extent
|
||||
%End
|
||||
|
||||
signals:
|
||||
void addLayer( QString uri, QString typeName );
|
||||
%Docstring
|
||||
Emitted when a layer is added from the dialog
|
||||
%End
|
||||
void connectionsChanged();
|
||||
%Docstring
|
||||
Emitted when the connections for the service were changed
|
||||
%End
|
||||
|
||||
protected:
|
||||
|
||||
virtual bool connectToService( const QgsOwsConnection &connection ) = 0;
|
||||
%Docstring
|
||||
To be implemented in the child class. Called when a new connection is initiated.
|
||||
:rtype: bool
|
||||
%End
|
||||
virtual void buildQuery( const QgsOwsConnection &, const QModelIndex & );
|
||||
%Docstring
|
||||
May be implemented in child classes for services which support customized queries.
|
||||
%End
|
||||
virtual QString getLayerURI( const QgsOwsConnection &connection,
|
||||
const QString &layerTitle,
|
||||
const QString &layerName,
|
||||
const QString &crs = QString(),
|
||||
const QString &filter = QString(),
|
||||
const QgsRectangle &bBox = QgsRectangle() ) const = 0;
|
||||
%Docstring
|
||||
To be implemented in the child class. Constructs an URI for the specified service layer.
|
||||
:rtype: str
|
||||
%End
|
||||
void populateImageEncodings( const QStringList &availableEncodings );
|
||||
%Docstring
|
||||
Updates the UI for the list of available image encodings from the specified list.
|
||||
%End
|
||||
QString getSelectedImageEncoding() const;
|
||||
%Docstring
|
||||
Returns the selected image encoding.
|
||||
:rtype: str
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgssourceselectdialog.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
@ -1,62 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/gps/qgsgpstoolsinterface.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
class QgsGpsToolsInterface : QObject
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Abstract interface class for the QGIS GPS tools.
|
||||
|
||||
.. versionadded:: 3.44
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsgpstoolsinterface.h"
|
||||
%End
|
||||
public:
|
||||
QgsGpsToolsInterface();
|
||||
|
||||
virtual void setGpsPanelConnection( QgsGpsConnection *connection /Transfer/ ) = 0;
|
||||
%Docstring
|
||||
Sets a GPS ``connection`` to use within the GPS Panel widget.
|
||||
|
||||
Any existing GPS connection used by the widget will be disconnected and
|
||||
replaced with this connection. The connection is automatically
|
||||
registered within the :py:func:`QgsApplication.gpsConnectionRegistry()`.
|
||||
%End
|
||||
|
||||
virtual void createFeatureFromGpsTrack() = 0;
|
||||
%Docstring
|
||||
Creates a feature from the current GPS track.
|
||||
|
||||
The geometry type of the feature is determined by the layer set via
|
||||
:py:func:`QgsProjectGpsSettings.destinationLayer()`.
|
||||
|
||||
The created geometry will be automatically commited depending on the
|
||||
status of
|
||||
:py:func:`QgsProjectGpsSettings.automaticallyCommitFeatures()`.
|
||||
%End
|
||||
|
||||
virtual void setGpsTrackLineSymbol( QgsLineSymbol *symbol ) = 0;
|
||||
%Docstring
|
||||
Sets the line ``symbol`` of the GPS track and changes the
|
||||
:py:class:`QgsAppGpsDigitizing`.settingTrackLineSymbol setting.
|
||||
|
||||
If there is a current GPS track, its appearance is updated according to
|
||||
the symbol.
|
||||
%End
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/gps/qgsgpstoolsinterface.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,148 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/plot/qgschartregistry.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
class QgsChartAbstractMetadata
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Stores metadata about a chart class.
|
||||
|
||||
.. note::
|
||||
|
||||
In C++ you can use :py:class:`QgsChartAbstractMetadata` convenience class.
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgschartregistry.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsChartAbstractMetadata( const QString &type, const QString &visibleName );
|
||||
%Docstring
|
||||
Constructor for QgsChartAbstractMetadata with the specified class
|
||||
``type``.
|
||||
%End
|
||||
|
||||
virtual ~QgsChartAbstractMetadata();
|
||||
|
||||
QString type() const;
|
||||
%Docstring
|
||||
Returns the unique type code for the chart class.
|
||||
%End
|
||||
|
||||
QString visibleName() const;
|
||||
%Docstring
|
||||
Returns a translated, user visible name for the chart class.
|
||||
%End
|
||||
|
||||
|
||||
virtual QgsPlot *createChart() = 0 /TransferBack/;
|
||||
%Docstring
|
||||
Creates a chart of this class.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
class QgsChartRegistry : QObject
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
Registry of available chart types.
|
||||
|
||||
:py:class:`QgsChartRegistry` is not usually directly created, but rather
|
||||
accessed through :py:func:`QgsApplication.chartRegistry()`.
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgschartregistry.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsChartRegistry( QObject *parent = 0 );
|
||||
%Docstring
|
||||
Creates a new empty item registry.
|
||||
|
||||
QgsChartRegistry is not usually directly created, but rather accessed
|
||||
through :py:func:`QgsApplication.chartRegistry()`.
|
||||
|
||||
.. seealso:: :py:func:`populate`
|
||||
%End
|
||||
~QgsChartRegistry();
|
||||
|
||||
bool populate();
|
||||
%Docstring
|
||||
Populates the registry with standard chart types. If called on a
|
||||
non-empty registry then this will have no effect and will return
|
||||
``False``.
|
||||
%End
|
||||
|
||||
|
||||
QgsChartAbstractMetadata *chartMetadata( const QString &type ) const;
|
||||
%Docstring
|
||||
Returns the metadata for the specified chart ``type``. Returns ``None``
|
||||
if a corresponding type was not found in the registry.
|
||||
%End
|
||||
|
||||
|
||||
bool addChartType( QgsChartAbstractMetadata *metadata /Transfer/ );
|
||||
%Docstring
|
||||
Registers a new chart type.
|
||||
|
||||
.. note::
|
||||
|
||||
Takes ownership of the metadata instance.
|
||||
%End
|
||||
|
||||
bool removeChartType( const QString &type );
|
||||
%Docstring
|
||||
Removes a new a chart type from the registry.
|
||||
%End
|
||||
|
||||
QgsPlot *createChart( const QString &type ) const /TransferBack/;
|
||||
%Docstring
|
||||
Creates a new instance of a chart given the ``type``.
|
||||
%End
|
||||
|
||||
QMap<QString, QString> chartTypes() const;
|
||||
%Docstring
|
||||
Returns a map of available charts types to translated name.
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
void chartAdded( const QString &type, const QString &name );
|
||||
%Docstring
|
||||
Emitted whenever a new chart type is added to the registry, with the
|
||||
specified ``type`` and visible ``name``.
|
||||
%End
|
||||
|
||||
void chartAboutToBeRemoved( const QString &type );
|
||||
%Docstring
|
||||
Emitted whenever a new chart type is added to the registry, with the
|
||||
specified ``type`` and visible ``name``.
|
||||
%End
|
||||
|
||||
private:
|
||||
QgsChartRegistry( const QgsChartRegistry &rh );
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/plot/qgschartregistry.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,93 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilter.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsFeatureFilter : QgsFeatureFilterProvider
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
A feature filter provider allowing to set filter expressions on a
|
||||
per-layer basis.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsfeaturefilter.h"
|
||||
%End
|
||||
public:
|
||||
QgsFeatureFilter();
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QgsVectorLayer *layer, QgsFeatureRequest &filterFeatures ) const /Deprecated="Since 4.0. Use the layer ID variant."/;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer
|
||||
|
||||
:param layer: the layer to control
|
||||
:param filterFeatures: the request to fill
|
||||
|
||||
.. deprecated:: 4.0
|
||||
|
||||
Use the layer ID variant.
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QString &layerId, QgsFeatureRequest &filterFeatures ) const;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer
|
||||
|
||||
:param layerId: the layer ID to control
|
||||
:param filterFeatures: the request to fill
|
||||
%End
|
||||
|
||||
virtual QStringList layerAttributes( const QgsVectorLayer *layer, const QStringList &attributes ) const;
|
||||
|
||||
|
||||
virtual QgsFeatureFilterProvider *clone() const /Factory/;
|
||||
|
||||
%Docstring
|
||||
Returns a clone of the object
|
||||
|
||||
:return: A clone
|
||||
%End
|
||||
|
||||
void setFilter( const QgsVectorLayer *layer, const QgsExpression &expression ) /Deprecated="Since 4.0. Use the layer ID variant."/;
|
||||
%Docstring
|
||||
Set a filter for the given layer.
|
||||
|
||||
:param layer: the layer to filter
|
||||
:param expression: the filter expression
|
||||
|
||||
.. deprecated:: 4.0
|
||||
|
||||
Use the layer ID variant.
|
||||
%End
|
||||
|
||||
void setFilter( const QString &layerId, const QgsExpression &expression );
|
||||
%Docstring
|
||||
Set a filter for the given layer.
|
||||
|
||||
:param layerId: the layer to filter
|
||||
:param expression: the filter expression
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilter.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,81 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilterprovidergroup.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsFeatureFilterProviderGroup : QgsFeatureFilterProvider
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
A filter filter provider grouping several filter providers.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsfeaturefilterprovidergroup.h"
|
||||
%End
|
||||
public:
|
||||
QgsFeatureFilterProviderGroup();
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QgsVectorLayer *layer, QgsFeatureRequest &filterFeatures ) const /Deprecated="Since 4.0. Use the layer ID variant."/;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer.
|
||||
|
||||
:param layer: the layer to control
|
||||
:param filterFeatures: the request to fill
|
||||
|
||||
.. deprecated:: 4.0
|
||||
|
||||
Use the layer ID variant.
|
||||
%End
|
||||
|
||||
virtual void filterFeatures( const QString &layerId, QgsFeatureRequest &filterFeatures ) const;
|
||||
|
||||
%Docstring
|
||||
Filter the features of the layer.
|
||||
|
||||
:param layerId: the layer ID to control
|
||||
:param filterFeatures: the request to fill
|
||||
|
||||
.. versionadded:: 4.0
|
||||
%End
|
||||
|
||||
virtual QStringList layerAttributes( const QgsVectorLayer *layer, const QStringList &attributes ) const;
|
||||
|
||||
|
||||
virtual QgsFeatureFilterProvider *clone() const /Factory/;
|
||||
|
||||
%Docstring
|
||||
Returns a clone of the object
|
||||
|
||||
:return: A clone
|
||||
%End
|
||||
|
||||
QgsFeatureFilterProviderGroup &addProvider( const QgsFeatureFilterProvider *provider );
|
||||
%Docstring
|
||||
Add another filter provider to the group
|
||||
|
||||
:param provider: The provider to add
|
||||
|
||||
:return: itself
|
||||
%End
|
||||
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/core/qgsfeaturefilterprovidergroup.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
||||
************************************************************************/
|
@ -1,391 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/processing/qgsprocessingtoolboxmodel.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsProcessingToolboxModelNode : QObject
|
||||
{
|
||||
%Docstring
|
||||
Abstract base class for nodes contained within a QgsProcessingToolboxModel.
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
%ConvertToSubClassCode
|
||||
if ( sipCpp->inherits( "QgsProcessingToolboxModelNode" ) )
|
||||
{
|
||||
sipType = sipType_QgsProcessingToolboxModelNode;
|
||||
QgsProcessingToolboxModelNode *node = qobject_cast<QgsProcessingToolboxModelNode *>( sipCpp );
|
||||
if ( node->nodeType() == QgsProcessingToolboxModelNode::NodeProvider )
|
||||
sipType = sipType_QgsProcessingToolboxModelProviderNode;
|
||||
else if ( node->nodeType() == QgsProcessingToolboxModelNode::NodeGroup )
|
||||
sipType = sipType_QgsProcessingToolboxModelGroupNode;
|
||||
else if ( node->nodeType() == QgsProcessingToolboxModelNode::NodeAlgorithm )
|
||||
sipType = sipType_QgsProcessingToolboxModelAlgorithmNode;
|
||||
}
|
||||
else
|
||||
sipType = 0;
|
||||
%End
|
||||
public:
|
||||
|
||||
enum NodeType
|
||||
{
|
||||
NodeProvider,
|
||||
NodeGroup,
|
||||
NodeAlgorithm,
|
||||
};
|
||||
|
||||
~QgsProcessingToolboxModelNode();
|
||||
|
||||
virtual NodeType nodeType() const = 0;
|
||||
%Docstring
|
||||
Returns the node's type.
|
||||
%End
|
||||
|
||||
QgsProcessingToolboxModelNode *parent();
|
||||
%Docstring
|
||||
Returns the node's parent. If the node's parent is a null pointer, then the node is a root node.
|
||||
%End
|
||||
|
||||
QList<QgsProcessingToolboxModelNode *> children();
|
||||
%Docstring
|
||||
Returns a list of children belonging to the node.
|
||||
%End
|
||||
|
||||
|
||||
QgsProcessingToolboxModelNode* takeChild( QgsProcessingToolboxModelNode* node );
|
||||
%Docstring
|
||||
Removes the specified ``node`` from this node's children, and gives
|
||||
ownership back to the caller.
|
||||
%End
|
||||
|
||||
QgsProcessingToolboxModelGroupNode *getChildGroupNode( const QString &id );
|
||||
%Docstring
|
||||
Tries to find a child node belonging to this node, which corresponds to
|
||||
a group node with the given group ``id``. Returns None if no matching
|
||||
child group node was found.
|
||||
%End
|
||||
|
||||
void addChildNode( QgsProcessingToolboxModelNode *node /Transfer/ );
|
||||
%Docstring
|
||||
Adds a child ``node`` to this node, transferring ownership of the node
|
||||
to this node.
|
||||
%End
|
||||
|
||||
void deleteChildren();
|
||||
%Docstring
|
||||
Deletes all child nodes from this node.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsProcessingToolboxModelProviderNode : QgsProcessingToolboxModelNode
|
||||
{
|
||||
%Docstring
|
||||
Processing toolbox model node corresponding to a Processing provider.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsProcessingToolboxModelProviderNode( QgsProcessingProvider *provider );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModelProviderNode, linked to the
|
||||
specified ``provider``.
|
||||
%End
|
||||
|
||||
virtual NodeType nodeType() const;
|
||||
|
||||
QgsProcessingProvider *provider();
|
||||
%Docstring
|
||||
Returns the provider associated with this node.
|
||||
%End
|
||||
|
||||
QString providerId() const;
|
||||
%Docstring
|
||||
Returns the provider ID.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsProcessingToolboxModelGroupNode : QgsProcessingToolboxModelNode
|
||||
{
|
||||
%Docstring
|
||||
Processing toolbox model node corresponding to a group of algorithms.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsProcessingToolboxModelGroupNode( const QString &id, const QString &name );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModelGroupNode.
|
||||
|
||||
The ``id`` argument specifies the group ID (unique and untranslated),
|
||||
and the ``name`` argument gives the translated, user-visible name
|
||||
of the group.
|
||||
%End
|
||||
|
||||
virtual NodeType nodeType() const;
|
||||
|
||||
QString id() const;
|
||||
%Docstring
|
||||
Returns the group's ID, which is unique and untranslated.
|
||||
%End
|
||||
|
||||
QString name() const;
|
||||
%Docstring
|
||||
Returns the group's name, which is translated and user-visible.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
class QgsProcessingToolboxModelAlgorithmNode : QgsProcessingToolboxModelNode
|
||||
{
|
||||
%Docstring
|
||||
Processing toolbox model node corresponding to an algorithm.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
Not part of stable API and may change in future QGIS releases.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsProcessingToolboxModelAlgorithmNode( const QgsProcessingAlgorithm *algorithm );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModelAlgorithmNode, associated
|
||||
with the specified ``algorithm``.
|
||||
%End
|
||||
|
||||
virtual NodeType nodeType() const;
|
||||
|
||||
const QgsProcessingAlgorithm *algorithm() const;
|
||||
%Docstring
|
||||
Returns the algorithm associated with this node.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
class QgsProcessingToolboxModel : QAbstractItemModel
|
||||
{
|
||||
%Docstring
|
||||
A model for providers and algorithms shown within the Processing toolbox.
|
||||
|
||||
See QgsProcessingToolboxProxyModel for a sorted, filterable version
|
||||
of this model.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
enum Roles
|
||||
{
|
||||
RoleNodeType,
|
||||
RoleAlgorithmFlags,
|
||||
RoleAlgorithmId,
|
||||
RoleAlgorithmName,
|
||||
RoleAlgorithmTags,
|
||||
};
|
||||
|
||||
QgsProcessingToolboxModel( QObject *parent /TransferThis/ = 0, QgsProcessingRegistry *registry = 0 );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxModel, with the given ``parent`` object.
|
||||
|
||||
If ``registry`` is specified then the model will show providers and algorithms
|
||||
from the given registry. If no registry is specified, then the processing
|
||||
registry attached to QgsApplication.processingRegistry() will be used
|
||||
by the model.
|
||||
%End
|
||||
|
||||
virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
|
||||
|
||||
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
|
||||
|
||||
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
||||
|
||||
virtual int columnCount( const QModelIndex & = QModelIndex() ) const;
|
||||
|
||||
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
|
||||
|
||||
virtual QModelIndex parent( const QModelIndex &index ) const;
|
||||
|
||||
|
||||
QgsProcessingToolboxModelNode *index2node( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the model node corresponding to the given ``index``.
|
||||
|
||||
.. seealso:: :py:func:`node2index`
|
||||
%End
|
||||
|
||||
QModelIndex node2index( QgsProcessingToolboxModelNode *node ) const;
|
||||
%Docstring
|
||||
Returns the model index corresponding to the given ``node``.
|
||||
|
||||
.. seealso:: :py:func:`index2node`
|
||||
%End
|
||||
|
||||
QgsProcessingProvider *providerForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the provider which corresponds to a given ``index``, or
|
||||
a None if the index does not represent a provider.
|
||||
|
||||
.. seealso:: :py:func:`algorithmForIndex`
|
||||
|
||||
.. seealso:: :py:func:`indexForProvider`
|
||||
%End
|
||||
|
||||
QString providerIdForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the provider ID which corresponds to a given ``index``, or
|
||||
an empty string if the index does not represent a provider.
|
||||
|
||||
.. seealso:: :py:func:`algorithmForIndex`
|
||||
|
||||
.. seealso:: :py:func:`indexForProvider`
|
||||
%End
|
||||
|
||||
const QgsProcessingAlgorithm *algorithmForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns the algorithm which corresponds to a given ``index``, or
|
||||
a None if the index does not represent an algorithm.
|
||||
|
||||
.. seealso:: :py:func:`isAlgorithm`
|
||||
|
||||
.. seealso:: :py:func:`providerForIndex`
|
||||
%End
|
||||
|
||||
bool isAlgorithm( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
Returns true if ``index`` corresponds to an algorithm.
|
||||
|
||||
.. seealso:: :py:func:`algorithmForIndex`
|
||||
%End
|
||||
|
||||
QModelIndex indexForProvider(const QString &providerId ) const;
|
||||
%Docstring
|
||||
Returns the index corresponding to the specified ``providerId``.
|
||||
|
||||
.. seealso:: :py:func:`providerForIndex`
|
||||
%End
|
||||
|
||||
QModelIndex indexOfParentTreeNode( QgsProcessingToolboxModelNode *parentNode ) const;
|
||||
%Docstring
|
||||
Returns the index corresponding to the parent of a given node.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
class QgsProcessingToolboxProxyModel: QSortFilterProxyModel
|
||||
{
|
||||
%Docstring
|
||||
A sort/filter proxy model for providers and algorithms shown within the Processing toolbox,
|
||||
which automatically sorts the toolbox in a logical fashion and supports filtering
|
||||
the results.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingtoolboxmodel.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
enum Filter
|
||||
{
|
||||
FilterToolbox,
|
||||
FilterModeler,
|
||||
};
|
||||
typedef QFlags<QgsProcessingToolboxProxyModel::Filter> Filters;
|
||||
|
||||
|
||||
explicit QgsProcessingToolboxProxyModel( QObject *parent /TransferThis/ = 0, QgsProcessingRegistry *registry = 0 );
|
||||
%Docstring
|
||||
Constructor for QgsProcessingToolboxProxyModel, with the given ``parent`` object.
|
||||
|
||||
If ``registry`` is specified then the model will show providers and algorithms
|
||||
from the given registry. If no registry is specified, then the processing
|
||||
registry attached to QgsApplication.processingRegistry() will be used
|
||||
by the model.
|
||||
%End
|
||||
|
||||
void setFilters( QgsProcessingToolboxProxyModel::Filters filters );
|
||||
%Docstring
|
||||
Set ``filters`` that affect how toolbox content is filtered.
|
||||
|
||||
.. seealso:: :py:func:`filters`
|
||||
%End
|
||||
|
||||
Filters filters() const;
|
||||
%Docstring
|
||||
Returns any filters that affect how toolbox content is filtered.
|
||||
|
||||
.. seealso:: :py:func:`setFilters`
|
||||
%End
|
||||
|
||||
void setFilterString(const QString &filter);
|
||||
%Docstring
|
||||
Sets a ``filter`` string, such that only algorithms matching the
|
||||
specified string will be shown.
|
||||
|
||||
.. seealso:: :py:func:`filterString`
|
||||
%End
|
||||
|
||||
QString filterString() const;
|
||||
|
||||
virtual bool filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent ) const;
|
||||
|
||||
virtual bool lessThan( const QModelIndex &left, const QModelIndex &right ) const;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/processing/qgsprocessingtoolboxmodel.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
@ -1,72 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgsfiledropedit.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
class QgsFileDropEdit: QLineEdit
|
||||
{
|
||||
%Docstring
|
||||
A line edit for capturing file names that can have files dropped onto
|
||||
it via drag & drop.
|
||||
|
||||
Dropping can be limited to files only, files with a specific extension
|
||||
or directories only. By default, dropping is limited to files only.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsfiledropedit.h"
|
||||
%End
|
||||
public:
|
||||
QgsFileDropEdit( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
bool isDirOnly() const;
|
||||
%Docstring
|
||||
:rtype: bool
|
||||
%End
|
||||
|
||||
void setDirOnly( bool isDirOnly );
|
||||
%Docstring
|
||||
Limit drops to directories.
|
||||
%End
|
||||
|
||||
bool isFileOnly() const;
|
||||
%Docstring
|
||||
:rtype: bool
|
||||
%End
|
||||
|
||||
void setFileOnly( bool isFileOnly );
|
||||
%Docstring
|
||||
Limit drops to files.
|
||||
%End
|
||||
|
||||
QString suffixFilter() const;
|
||||
%Docstring
|
||||
:rtype: str
|
||||
%End
|
||||
|
||||
void setSuffixFilter( const QString &suffix );
|
||||
%Docstring
|
||||
Limit drops to files with specified extension.
|
||||
%End
|
||||
|
||||
protected:
|
||||
|
||||
virtual void dragEnterEvent( QDragEnterEvent *event );
|
||||
virtual void dragLeaveEvent( QDragLeaveEvent *event );
|
||||
virtual void dropEvent( QDropEvent *event );
|
||||
virtual void paintEvent( QPaintEvent *e );
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgsfiledropedit.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
@ -1,86 +0,0 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgssourceselectdialog.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsSourceSelectDialog : QDialog, protected Ui::QgsSourceSelectBase
|
||||
{
|
||||
%Docstring
|
||||
Generic class listing layers available from a remote service.
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgssourceselectdialog.h"
|
||||
%End
|
||||
public:
|
||||
enum ServiceType { MapService, FeatureService };
|
||||
|
||||
QgsSourceSelectDialog( const QString &serviceName, ServiceType serviceType, QWidget *parent, Qt::WindowFlags fl );
|
||||
%Docstring
|
||||
Constructor
|
||||
%End
|
||||
|
||||
~QgsSourceSelectDialog();
|
||||
void setCurrentExtentAndCrs( const QgsRectangle &canvasExtent, const QgsCoordinateReferenceSystem &canvasCrs );
|
||||
%Docstring
|
||||
Sets the current extent and CRS. Used to select an appropriate CRS and possibly to retrieve data only in the current extent
|
||||
%End
|
||||
|
||||
signals:
|
||||
void addLayer( QString uri, QString typeName );
|
||||
%Docstring
|
||||
Emitted when a layer is added from the dialog
|
||||
%End
|
||||
void connectionsChanged();
|
||||
%Docstring
|
||||
Emitted when the connections for the service were changed
|
||||
%End
|
||||
|
||||
protected:
|
||||
|
||||
virtual bool connectToService( const QgsOwsConnection &connection ) = 0;
|
||||
%Docstring
|
||||
To be implemented in the child class. Called when a new connection is initiated.
|
||||
:rtype: bool
|
||||
%End
|
||||
virtual void buildQuery( const QgsOwsConnection &, const QModelIndex & );
|
||||
%Docstring
|
||||
May be implemented in child classes for services which support customized queries.
|
||||
%End
|
||||
virtual QString getLayerURI( const QgsOwsConnection &connection,
|
||||
const QString &layerTitle,
|
||||
const QString &layerName,
|
||||
const QString &crs = QString(),
|
||||
const QString &filter = QString(),
|
||||
const QgsRectangle &bBox = QgsRectangle() ) const = 0;
|
||||
%Docstring
|
||||
To be implemented in the child class. Constructs an URI for the specified service layer.
|
||||
:rtype: str
|
||||
%End
|
||||
void populateImageEncodings( const QStringList &availableEncodings );
|
||||
%Docstring
|
||||
Updates the UI for the list of available image encodings from the specified list.
|
||||
%End
|
||||
QString getSelectedImageEncoding() const;
|
||||
%Docstring
|
||||
Returns the selected image encoding.
|
||||
:rtype: str
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/qgssourceselectdialog.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
Loading…
x
Reference in New Issue
Block a user