Public Member Functions |
| QgsCodeEditorPython (QWidget *parent=0, const QList< QString > &filenames=QList< QString >()) |
| Construct a new Python editor.
|
| ~QgsCodeEditorPython () |
void | loadAPIs (QList< QString > const &filenames) |
| Load APIs from one or more files.
|
bool | loadScript (const QString &script) |
| Load a script file.
|
| QgsCodeEditor (QWidget *parent=0, QString title="", bool folding=false, bool margin=false) |
| Construct a new code editor.
|
| ~QgsCodeEditor () |
void | setTitle (const QString title) |
| Set the widget title.
|
void | setMarginVisible (bool margin) |
| Set margin visible state.
|
bool | marginVisible () |
void | setFoldingVisible (bool folding) |
| Set folding visible state.
|
bool | foldingVisible () |
void | insertText (const QString theText) |
| Insert text at cursor position, or replace any selected text if user has made a selection.
|
A Python editor based on QScintilla2.
Adds syntax highlighting and code autocompletion.
- Note
- added in 2.6