QGIS/python/gui/auto_generated/codeeditors/qgscodeeditorexpression.sip.in
2025-04-25 08:17:13 +10:00

65 lines
1.9 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorexpression.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsCodeEditorExpression : QgsCodeEditor
{
%Docstring(signature="appended")
A QGIS expression editor based on QScintilla2.
Adds syntax highlighting and code autocompletion.
.. versionadded:: 3.4
%End
%TypeHeaderCode
#include "qgscodeeditorexpression.h"
%End
public:
QgsCodeEditorExpression( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorExpression
%End
virtual Qgis::ScriptLanguage language() const;
virtual Qgis::ScriptLanguageCapabilities languageCapabilities() const;
void setExpressionContext( const QgsExpressionContext &context );
%Docstring
Variables and functions from this expression context will be added to
the API. Will also reload all globally registered functions.
%End
void setFields( const QgsFields &fields );
%Docstring
Field names will be added to the API.
%End
virtual void toggleComment();
protected:
virtual void initializeLexer();
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorexpression.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/