2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspathresolver.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-16 09:56:11 +08:00
|
|
|
|
|
|
|
class QgsPathResolver
|
|
|
|
{
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Resolves relative paths into absolute paths and vice versa. Used for writing
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-02-16 09:56:11 +08:00
|
|
|
%End
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspathresolver.h"
|
|
|
|
%End
|
2017-02-16 09:56:11 +08:00
|
|
|
public:
|
2017-05-01 16:42:33 +02:00
|
|
|
explicit QgsPathResolver( const QString &baseFileName = QString() );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Initialize path resolver with a base filename. Null filename means no conversion between relative/absolute path
|
|
|
|
%End
|
2017-02-16 09:56:11 +08:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QString writePath( const QString &filename ) const;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Prepare a filename to save it to the project file.
|
|
|
|
Creates an absolute or relative path according to the project settings.
|
|
|
|
Paths written to the project file should be prepared with this method.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-02-16 09:56:11 +08:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QString readPath( const QString &filename ) const;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Turn filename read from the project file to an absolute path
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-02-16 09:56:11 +08:00
|
|
|
|
|
|
|
};
|
2017-05-18 07:50:23 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspathresolver.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|