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
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/project/qgsprojectfiletransform.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsProjectFileTransform
{
%Docstring(signature="appended")
Class to convert from older project file versions to newer.
This class provides possibility to store a project file as a
QDomDocument, and provides the ability to specify version of the project
file, and perform upgrades to a more recent version
%End
%TypeHeaderCode
#include "qgsprojectfiletransform.h"
%End
public:
QgsProjectFileTransform( QDomDocument &domDocument,
const QgsProjectVersion &version );
%Docstring
Create an instance from a Dom and a supplied version
:param domDocument: The Dom document to use as content
:param version: Version number
%End
bool updateRevision( const QgsProjectVersion &version );
void dump();
%Docstring
Prints the contents to the console.
%End
static void convertRasterProperties( QDomDocument &doc, QDomNode &parentNode, QDomElement &rasterPropertiesElem, QgsRasterLayer *rlayer );
QDomDocument &dom();
%Docstring
The current dom document
.. versionadded:: 3.12
%End
QgsProjectVersion currentVersion() const;
%Docstring
The current project version
.. versionadded:: 3.12
%End
static void fixOldSymbolLayerReferences( const QMap<QString, QgsMapLayer *> &mapLayers );
%Docstring
:py:class:`QgsSymbolLayerReference` uses :py:class:`QgsSymbolLayer`
unique uuid identifier since QGIS 3.30, instead of the symbol key (rule
for :py:class:`QgsRuleBasedRenderer` for instance) and index path, so
this method migrates ``mapLayers`` old references to new ones.
.. versionadded:: 3.30
.. deprecated:: 3.30
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/project/qgsprojectfiletransform.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|