|
QGIS API Documentation
2.12.0-Lyon
|
A Python editor based on QScintilla2. More...
#include <qgscodeeditorpython.h>

Public Member Functions | |
| QgsCodeEditorPython (QWidget *parent=0, const QList< QString > &filenames=QList< QString >()) | |
| Construct a new Python editor. More... | |
| ~QgsCodeEditorPython () | |
| void | loadAPIs (QList< QString > const &filenames) |
| Load APIs from one or more files. More... | |
| bool | loadScript (const QString &script) |
| Load a script file. More... | |
Public Member Functions inherited from QgsCodeEditor | |
| QgsCodeEditor (QWidget *parent=0, const QString &title="", bool folding=false, bool margin=false) | |
| Construct a new code editor. More... | |
| ~QgsCodeEditor () | |
| bool | foldingVisible () |
| void | insertText (const QString &theText) |
| Insert text at cursor position, or replace any selected text if user has made a selection. More... | |
| bool | marginVisible () |
| void | setFoldingVisible (bool folding) |
| Set folding visible state. More... | |
| void | setMarginVisible (bool margin) |
| Set margin visible state. More... | |
| void | setTitle (const QString &title) |
| Set the widget title. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsCodeEditor | |
| QFont | getMonospaceFont () |
| bool | isFixedPitch (const QFont &font) |
A Python editor based on QScintilla2.
Adds syntax highlighting and code autocompletion.
Definition at line 27 of file qgscodeeditorpython.h.
| QgsCodeEditorPython::QgsCodeEditorPython | ( | QWidget * | parent = 0, |
| const QList< QString > & | filenames = QList<QString>() |
||
| ) |
Construct a new Python editor.
| parent | The parent QWidget |
| filenames | The list of apis files to load for the python lexer |
Definition at line 28 of file qgscodeeditorpython.cpp.
| QgsCodeEditorPython::~QgsCodeEditorPython | ( | ) |
Definition at line 39 of file qgscodeeditorpython.cpp.
Load APIs from one or more files.
| filenames | The list of apis files to load for the python lexer |
Definition at line 112 of file qgscodeeditorpython.cpp.
| bool QgsCodeEditorPython::loadScript | ( | const QString & | script | ) |
Load a script file.
| script | The script file to load |
Definition at line 119 of file qgscodeeditorpython.cpp.
1.8.9.1