1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/proj/qgscoordinatereferencesystemmodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsCoordinateReferenceSystemModel : QAbstractItemModel
{
%Docstring(signature="appended")
A tree model for display of known coordinate reference systems.
.. versionadded:: 3.34
%End
%TypeHeaderCode
#include "qgscoordinatereferencesystemmodel.h"
%End
public:
enum class CustomRole /BaseType=IntEnum/
{
NodeType,
Name,
AuthId,
Deprecated,
Type,
GroupId,
Wkt,
Proj,
Group,
Projection,
};
QgsCoordinateReferenceSystemModel( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCoordinateReferenceSystemModel, with the specified
``parent`` object.
%End
virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
virtual QVariant data( const QModelIndex &index, int role ) const;
virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) 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;
QModelIndex addCustomCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Adds a custom ``crs`` to the model.
This method can be used to add CRS which aren't present in either the
standard PROJ SRS database or the user's custom CRS database to the
model.
%End
QModelIndex authIdToIndex( const QString &authId ) const;
%Docstring
Retrieves the model index corresponding to a CRS with the specified
``authId``.
Returns an invalid index if the CRS was not found.
%End
};
class QgsCoordinateReferenceSystemProxyModel : QSortFilterProxyModel
{
%Docstring(signature="appended")
A sort/filter proxy model for coordinate reference systems.
.. versionadded:: 3.34
%End
%TypeHeaderCode
#include "qgscoordinatereferencesystemmodel.h"
%End
public:
enum Filter /BaseType=IntEnum/
{
FilterHorizontal,
FilterVertical,
FilterCompound,
};
typedef QFlags<QgsCoordinateReferenceSystemProxyModel::Filter> Filters;
explicit QgsCoordinateReferenceSystemProxyModel( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCoordinateReferenceSystemProxyModel, with the given
``parent`` object.
%End
QgsCoordinateReferenceSystemModel *coordinateReferenceSystemModel();
%Docstring
Returns the underlying source model.
%End
void setFilters( QgsCoordinateReferenceSystemProxyModel::Filters filters );
%Docstring
Set ``filters`` that affect how CRS are filtered.
.. seealso:: :py:func:`filters`
%End
Filters filters() const;
%Docstring
Returns any filters that affect how CRS are filtered.
.. seealso:: :py:func:`setFilters`
%End
void setFilterString( const QString &filter );
%Docstring
Sets a ``filter`` string, such that only coordinate reference systems
matching the specified string will be shown.
.. seealso:: :py:func:`filterString`
%End
QString filterString() const;
%Docstring
Returns the current filter string, if set.
.. seealso:: :py:func:`setFilterString`
%End
void setFilterAuthIds( const QSet<QString> &filter );
%Docstring
Sets a ``filter`` list of CRS auth ID strings, such that only coordinate
reference systems matching the specified auth IDs will be shown.
.. seealso:: :py:func:`filterAuthIds`
%End
QSet<QString> filterAuthIds() const;
%Docstring
Returns the current filter list of auth ID strings, if set.
.. seealso:: :py:func:`setFilterString`
%End
void setFilterDeprecated( bool filter );
%Docstring
Sets whether deprecated CRS should be filtered from the results.
.. seealso:: :py:func:`filterDeprecated`
%End
bool filterDeprecated() const;
%Docstring
Returns whether deprecated CRS will be filtered from the results.
.. seealso:: :py:func:`setFilterDeprecated`
%End
virtual bool filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent ) const;
virtual bool lessThan( const QModelIndex &left, const QModelIndex &right ) const;
};
QFlags<QgsCoordinateReferenceSystemProxyModel::Filter> operator|(QgsCoordinateReferenceSystemProxyModel::Filter f1, QFlags<QgsCoordinateReferenceSystemProxyModel::Filter> f2);
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/proj/qgscoordinatereferencesystemmodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|