mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsxmlutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsXmlUtils
|
|
{
|
|
%Docstring
|
|
Assorted helper methods for reading and writing chunks of XML
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsxmlutils.h"
|
|
%End
|
|
public:
|
|
|
|
|
|
static QgsUnitTypes::DistanceUnit readMapUnits( const QDomElement &element );
|
|
%Docstring
|
|
Decodes a distance unit from a DOM element.
|
|
\param element DOM element to decode
|
|
:return: distance units
|
|
.. seealso:: writeMapUnits()
|
|
:rtype: QgsUnitTypes.DistanceUnit
|
|
%End
|
|
|
|
static QgsRectangle readRectangle( const QDomElement &element );
|
|
%Docstring
|
|
:rtype: QgsRectangle
|
|
%End
|
|
|
|
|
|
static QDomElement writeMapUnits( QgsUnitTypes::DistanceUnit units, QDomDocument &doc );
|
|
%Docstring
|
|
Encodes a distance unit to a DOM element.
|
|
\param units units to encode
|
|
\param doc DOM document
|
|
:return: element containing encoded units
|
|
.. seealso:: readMapUnits()
|
|
:rtype: QDomElement
|
|
%End
|
|
|
|
static QDomElement writeRectangle( const QgsRectangle &rect, QDomDocument &doc );
|
|
%Docstring
|
|
:rtype: QDomElement
|
|
%End
|
|
|
|
static QDomElement writeVariant( const QVariant &value, QDomDocument &doc );
|
|
%Docstring
|
|
Write a QVariant to a QDomElement.
|
|
|
|
Supported types are
|
|
|
|
- QVariant.Map
|
|
- QVariant.Int
|
|
- QVariant.Double
|
|
- QVariant.String
|
|
:rtype: QDomElement
|
|
%End
|
|
|
|
static QVariant readVariant( const QDomElement &element );
|
|
%Docstring
|
|
Read a QVariant from a QDomElement.
|
|
:rtype: QVariant
|
|
%End
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsxmlutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|