2017-05-23 14:39:33 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgscodeeditorpython.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
class QgsCodeEditorPython : QgsCodeEditor
|
2014-07-12 20:50:08 +10:00
|
|
|
{
|
2017-05-23 14:39:33 +02:00
|
|
|
%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
|
2014-07-12 20:50:08 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgscodeeditorpython.h"
|
|
|
|
%End
|
2014-07-12 20:50:08 +10:00
|
|
|
public:
|
2017-05-23 14:39:33 +02:00
|
|
|
|
2014-07-12 20:50:08 +10:00
|
|
|
QgsCodeEditorPython( QWidget *parent /TransferThis/ = 0, const QList<QString> &filenames = QList<QString>() );
|
2017-05-23 14:39:33 +02:00
|
|
|
%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
|
2014-07-12 20:50:08 +10:00
|
|
|
|
2015-02-03 02:21:52 +01:00
|
|
|
void loadAPIs( const QList<QString> &filenames );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Load APIs from one or more files
|
|
|
|
\param filenames The list of apis files to load for the Python lexer
|
|
|
|
%End
|
2014-07-12 20:50:08 +10:00
|
|
|
|
2014-07-16 22:51:27 +10:00
|
|
|
bool loadScript( const QString &script );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Load a script file
|
|
|
|
\param script The script file to load
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2014-07-12 20:50:08 +10:00
|
|
|
|
|
|
|
};
|
2017-05-23 14:39:33 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgscodeeditorpython.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|