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 84 85 86
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorpython.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsCodeEditorPython : QgsCodeEditor
{
%Docstring(signature="appended")
A Python editor based on QScintilla2. Adds syntax highlighting and
code autocompletion.
.. note::
may not be available in Python bindings, depending on platform support
.. versionadded:: 2.6
%End
%TypeHeaderCode
#include "qgscodeeditorpython.h"
%End
public:
QgsCodeEditorPython( QWidget *parent /TransferThis/ = 0, const QList<QString> &filenames = QList<QString>() );
%Docstring
Construct a new Python editor.
:param parent: The parent QWidget
:param filenames: The list of apis files to load for the Python lexer
.. versionadded:: 2.6
%End
void loadAPIs( const QList<QString> &filenames );
%Docstring
Load APIs from one or more files
:param filenames: The list of apis files to load for the Python lexer
%End
bool loadScript( const QString &script );
%Docstring
Load a script file
:param script: The script file to load
%End
public slots:
void searchSelectedTextInPyQGISDocs();
%Docstring
Searches the selected text in the official PyQGIS online documentation.
.. versionadded:: 3.16
%End
protected:
virtual void initializeLexer();
protected slots:
void autoComplete();
%Docstring
Triggers the autocompletion popup.
.. versionadded:: 3.16
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorpython.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
|