Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6621a9
commit e7621be
Showing
7 changed files
with
700 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsfieldmappingwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsFieldMappingWidget : QWidget | ||
{ | ||
%Docstring | ||
The QgsFieldMappingWidget class allows to define a map from one set of QgsFields to another, | ||
for each set of "destination" fields an expression defines how to obtain the values of the | ||
"destination" fields. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsfieldmappingwidget.h" | ||
%End | ||
public: | ||
|
||
explicit QgsFieldMappingWidget(const QgsFields &sourceFields, | ||
const QgsFields &destinationFields, | ||
const QMap<QString, QgsExpression> &expressions = QMap<QString, QgsExpression>(), | ||
QWidget *parent = 0); | ||
|
||
QMap<QString, QgsExpression> expressions() const; | ||
|
||
signals: | ||
|
||
public: | ||
}; | ||
|
||
|
||
class QgsFieldMappingModel: QAbstractTableModel | ||
{ | ||
%Docstring | ||
The QgsFieldMappingModel holds mapping information for mapping from one set of QgsFields to another, | ||
for each set of "destination" fields an expression defines how to obtain the values of the | ||
"destination" fields. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsfieldmappingwidget.h" | ||
%End | ||
public: | ||
|
||
QgsFieldMappingModel(const QgsFields &sourceFields, | ||
const QgsFields &destinationFields, | ||
const QMap<QString, QgsExpression> &expressions = QMap<QString, QgsExpression>(), | ||
QObject* parent = 0); | ||
|
||
QgsExpressionContextGenerator* contextGenerator(); | ||
|
||
virtual int rowCount(const QModelIndex& parent) const; | ||
|
||
virtual int columnCount(const QModelIndex& parent) const; | ||
|
||
virtual QVariant data(const QModelIndex& index, int role) const; | ||
|
||
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; | ||
|
||
|
||
|
||
public: | ||
public: | ||
virtual Qt::ItemFlags flags(const QModelIndex& index) const; | ||
|
||
QgsFields sourceFields() const; | ||
|
||
public: | ||
virtual bool setData(const QModelIndex& index, const QVariant& value, int role); | ||
|
||
}; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsfieldmappingwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.