QGIS/python/gui/qgscodeeditorpython.sip

64 lines
1.9 KiB
Plaintext
Raw Normal View History

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
2017-12-15 10:36:55 -04:00
A Python editor based on QScintilla2. Adds syntax highlighting and
code autocompletion.
2017-05-23 14:39:33 +02:00
.. versionadded:: 2.6
2017-12-15 10:36:55 -04:00
2017-05-23 14:39:33 +02:00
.. 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
2017-12-15 10:36:55 -04:00
Construct a new Python editor.
:param parent: The parent QWidget
:param filenames: The list of apis files to load for the Python lexer
2017-05-23 14:39:33 +02:00
.. 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
2017-12-15 10:36:55 -04:00
Load APIs from one or more files
:param filenames: The list of apis files to load for the Python lexer
2017-05-23 14:39:33 +02:00
%End
2014-07-12 20:50:08 +10:00
bool loadScript( const QString &script );
2017-05-23 14:39:33 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Load a script file
:param script: The script file to load
:rtype: bool
2017-05-23 14:39:33 +02:00
%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 *
************************************************************************/