mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/codeeditors/qgscodeeditorshell.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsCodeEditorShell : QgsCodeEditor
|
|
{
|
|
%Docstring(signature="appended")
|
|
A shell script code editor based on QScintilla2. Adds syntax highlighting and
|
|
code autocompletion.
|
|
|
|
:py:class:`QgsCodeEditorShell` supports either Bash (Linux) or Batch (Windows) code interpreters.
|
|
By default the Batch interpreter will be used on Windows platforms and the Bash interpreter
|
|
on all other platforms.
|
|
|
|
.. versionadded:: 3.32
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgscodeeditorshell.h"
|
|
%End
|
|
public:
|
|
|
|
QgsCodeEditorShell( QWidget *parent /TransferThis/ = 0, QgsCodeEditor::Mode mode = QgsCodeEditor::Mode::ScriptEditor, Qgis::ScriptLanguage language = Qgis::ScriptLanguage::Unknown );
|
|
%Docstring
|
|
Constructor for QgsCodeEditorShell.
|
|
|
|
The ``language`` argument may be :py:class:`Qgis`.ScriptLanguage.Unknown, :py:class:`Qgis`.ScriptLanguage.Bash or :py:class:`Qgis`.ScriptLanguage.Batch.
|
|
If the ``language`` is :py:class:`Qgis`.ScriptLanguage.Unknown, then the :py:class:`Qgis`.ScriptLanguage.Batch interpreter will be used on Windows platforms and the :py:class:`Qgis`.ScriptLanguage.Bash interpreter
|
|
on all other platforms.
|
|
%End
|
|
virtual Qgis::ScriptLanguage language() const;
|
|
|
|
|
|
protected:
|
|
virtual void initializeLexer();
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/codeeditors/qgscodeeditorshell.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|