16#ifndef QGSCODEEDITORPYTHON_H
17#define QGSCODEEDITORPYTHON_H
22#include <Qsci/qscilexerpython.h>
28class QgsQsciLexerPython :
public QsciLexerPython
33 QgsQsciLexerPython( QObject *parent =
nullptr );
35 const char *keywords(
int set )
const override;
71 void loadAPIs(
const QList<QString> &filenames );
76 bool loadScript(
const QString &script );
83 bool isCursorInsideStringLiteralOrComment()
const;
90 QString characterBeforeCursor()
const;
97 QString characterAfterCursor()
const;
106 void searchSelectedTextInPyQGISDocs();
113 void toggleComment();
132 QList<QString> mAPISFilesList;
135 static const QMap<QString, QString> sCompletionPairs;
138 static const QStringList sCompletionSingleCharacters;
ScriptLanguage
Scripting languages.
A Python editor based on QScintilla2.
A text editor based on QScintilla2.
@ ScriptEditor
Standard mode, allows for display and edit of entire scripts.
void keyPressEvent(QKeyEvent *event) override
virtual void initializeLexer()
Called when the dialect specific code lexer needs to be initialized (or reinitialized).
virtual Qgis::ScriptLanguage language() const
Returns the associated scripting language.
#define SIP_IF_MODULE(condition)