16#ifndef QGSCODEEDITORPYTHON_H 
   17#define QGSCODEEDITORPYTHON_H 
   22#include <Qsci/qscilexerpython.h> 
   32class QgsQsciLexerPython : 
public QsciLexerPython
 
   36    QgsQsciLexerPython( QObject *parent = 
nullptr );
 
   38    const char *keywords( 
int set ) 
const override;
 
   85    void loadAPIs( 
const QList<QString> &filenames );
 
   90    bool loadScript( 
const QString &script );
 
   97    bool isCursorInsideStringLiteralOrComment() 
const;
 
  104    QString characterBeforeCursor() 
const;
 
  111    QString characterAfterCursor() 
const;
 
  118    void updateCapabilities();
 
  129    void searchSelectedTextInPyQGISDocs();
 
  136    virtual void showApiDocumentation( 
const QString &item );
 
  161    QList<QString> mAPISFilesList;
 
  166    static const QMap<QString, QString> sCompletionPairs;
 
  169    static const QStringList sCompletionSingleCharacters;
 
 
ScriptLanguage
Scripting languages.
 
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
 
A Python editor based on QScintilla2.
 
A text editor based on QScintilla2.
 
@ ScriptEditor
Standard mode, allows for display and edit of entire scripts.
 
virtual void toggleComment()
Toggle comment for the selected text.
 
void keyPressEvent(QKeyEvent *event) override
 
virtual void populateContextMenu(QMenu *menu)
Called when the context menu for the widget is about to be shown, after it has been fully populated w...
 
QFlags< Flag > Flags
Flags controlling behavior of code editor.
 
static QgsSettingsTreeNode * sTreeCodeEditor
 
virtual Qgis::ScriptLanguageCapabilities languageCapabilities() const
Returns the associated scripting language capabilities.
 
virtual void initializeLexer()
Called when the dialect specific code lexer needs to be initialized (or reinitialized).
 
@ CodeFolding
Indicates that code folding should be enabled for the editor.
 
virtual Qgis::ScriptLanguage language() const
Returns the associated scripting language.
 
virtual QString reformatCodeString(const QString &string)
Applies code reformatting to a string and returns the result.
 
virtual bool checkSyntax()
Applies syntax checking to the editor.
 
A boolean settings entry.
 
A template class for enum and flag settings entry.
 
An integer settings entry.
 
A tree node for the settings tree to help organizing and introspecting the tree.
 
QgsSettingsTreeNode * createChildNode(const QString &key)
Creates a normal tree node It will return the existing child node if it exists at the given key.
 
#define SIP_IF_MODULE(condition)