Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add QgsCodeEditorShell code editor subclass for Bash or Batch scripts
- Loading branch information
1 parent
2cc500d
commit 8282b66
Showing
12 changed files
with
572 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1641,6 +1641,8 @@ The development version | |
Python, | ||
R, | ||
Sql, | ||
Batch, | ||
Bash, | ||
Unknown, | ||
}; | ||
|
||
|
54 changes: 54 additions & 0 deletions
54
python/gui/auto_generated/codeeditors/qgscodeeditorshell.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/************************************************************************ | ||
* 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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.