A text editor based on QScintilla2.
More...
#include <qgscodeeditor.h>
Detailed Description
A text editor based on QScintilla2.
- Note
- added in 2.6
Constructor & Destructor Documentation
QgsCodeEditor::QgsCodeEditor |
( |
QWidget * |
parent = 0 , |
|
|
QString |
title = "" , |
|
|
bool |
folding = false , |
|
|
bool |
margin = false |
|
) |
| |
Construct a new code editor.
- Parameters
-
parent | The parent QWidget |
title | The title to show in the code editor dialog |
folding | False: Enable margin for code editor |
margin | False: Enable folding for code editor |
- Note
- added in 2.6
QgsCodeEditor::~QgsCodeEditor |
( |
| ) |
|
Member Function Documentation
bool QgsCodeEditor::foldingVisible |
( |
| ) |
|
|
inline |
QFont QgsCodeEditor::getMonospaceFont |
( |
| ) |
|
|
protected |
void QgsCodeEditor::insertText |
( |
const QString |
theText | ) |
|
Insert text at cursor position, or replace any selected text if user has made a selection.
- Parameters
-
theText | The text to be inserted |
bool QgsCodeEditor::isFixedPitch |
( |
const QFont & |
font | ) |
|
|
protected |
bool QgsCodeEditor::marginVisible |
( |
| ) |
|
|
inline |
void QgsCodeEditor::setFoldingVisible |
( |
bool |
folding | ) |
|
Set folding visible state.
- Parameters
-
folding | Set folding in the editor |
void QgsCodeEditor::setMarginVisible |
( |
bool |
margin | ) |
|
Set margin visible state.
- Parameters
-
margin | Set margin in the editor |
void QgsCodeEditor::setTitle |
( |
const QString |
title | ) |
|
Set the widget title.
- Parameters
-
The documentation for this class was generated from the following files: