mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
90 lines
2.7 KiB
Plaintext
90 lines
2.7 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/editorwidgets/qgsqmlwidgetwrapper.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
class QgsQmlWidgetWrapper : QgsWidgetWrapper
|
|
{
|
|
%Docstring
|
|
*************************************************************************
|
|
qgsqmlwidgetwrapper.h
|
|
|
|
---------------------
|
|
begin : 25.6.2018
|
|
copyright : (C) 2018 by Matthias Kuhn
|
|
email : matthias@opengis.ch
|
|
**************************************************************************
|
|
|
|
This program is free software; you can redistribute it and/or modify *
|
|
it under the terms of the GNU General Public License as published by *
|
|
the Free Software Foundation; either version 2 of the License, or *
|
|
(at your option) any later version. *
|
|
|
|
**************************************************************************
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsqmlwidgetwrapper.h"
|
|
%End
|
|
public:
|
|
|
|
QgsQmlWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
|
|
|
|
virtual bool valid() const;
|
|
|
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
|
|
virtual void initWidget( QWidget *editor );
|
|
|
|
|
|
void reinitWidget();
|
|
%Docstring
|
|
Clears the content and makes new intialisaton
|
|
%End
|
|
|
|
void setQmlCode( const QString &qmlCode );
|
|
%Docstring
|
|
writes the ``qmlCode`` into a temporary file
|
|
%End
|
|
|
|
public slots:
|
|
|
|
virtual void setFeature( const QgsFeature &feature );
|
|
|
|
%Docstring
|
|
passes the ``feature`` into the context property of the widget
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
class QmlExpression : QObject
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsqmlwidgetwrapper.h"
|
|
%End
|
|
public:
|
|
void setExpressionContext( const QgsExpressionContext &context );
|
|
|
|
QVariant evaluate( const QString &expression ) const;
|
|
%Docstring
|
|
evaluates the value regarding the /a expression and the context
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/editorwidgets/qgsqmlwidgetwrapper.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|