mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgscodeeditorpython.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsCodeEditorPython : QgsCodeEditor
|
|
{
|
|
%Docstring
|
|
A Python editor based on QScintilla2. Adds syntax highlighting and
|
|
code autocompletion.
|
|
|
|
.. versionadded:: 2.6
|
|
|
|
.. note::
|
|
|
|
may not be available in Python bindings, depending on platform support
|
|
%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
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgscodeeditorpython.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|