|
| QgsCodeEditorCSS (QWidget *parent=nullptr) |
| Constructor for QgsCodeEditorCSS. More...
|
|
Qgis::ScriptLanguage | language () const override |
| Returns the associated scripting language. More...
|
|
| QgsCodeEditor (QWidget *parent=nullptr, const QString &title=QString(), bool folding=false, bool margin=false, QgsCodeEditor::Flags flags=QgsCodeEditor::Flags(), QgsCodeEditor::Mode mode=QgsCodeEditor::Mode::ScriptEditor) |
| Flags controlling behavior of code editor. More...
|
|
void | addWarning (int lineNumber, const QString &warning) |
| Adds a warning message and indicator to the specified a lineNumber. More...
|
|
void | clearWarnings () |
| Clears all warning messages from the editor. More...
|
|
bool | foldingVisible () |
| Returns true if the folding controls are visible in the editor. More...
|
|
QStringList | history () const |
| Returns the list of commands previously executed in the editor. More...
|
|
void | insertText (const QString &text) |
| Insert text at cursor position, or replace any selected text if user has made a selection. More...
|
|
QgsCodeInterpreter * | interpreter () const |
| Returns the attached code interpreter, or nullptr if not set. More...
|
|
bool | isCursorOnLastLine () const |
| Returns true if the cursor is on the last line of the document. More...
|
|
virtual Qgis::ScriptLanguage | language () const |
| Returns the associated scripting language. More...
|
|
bool | lineNumbersVisible () const |
| Returns whether line numbers are visible in the editor. More...
|
|
Q_DECL_DEPRECATED bool | marginVisible () |
| Returns whether margins are in a visible state. More...
|
|
QgsCodeEditor::Mode | mode () const |
| Returns the code editor mode. More...
|
|
void | setCustomAppearance (const QString &scheme=QString(), const QMap< QgsCodeEditorColorScheme::ColorRole, QColor > &customColors=QMap< QgsCodeEditorColorScheme::ColorRole, QColor >(), const QString &fontFamily=QString(), int fontSize=0) |
| Sets a custom appearance for the widget, disconnecting it from using the standard appearance taken from QSettings. More...
|
|
void | setFoldingVisible (bool folding) |
| Set whether the folding controls are visible in the editor. More...
|
|
void | setHistoryFilePath (const QString &path) |
| Sets the file path to use for recording and retrieving previously executed commands. More...
|
|
void | setInterpreter (QgsCodeInterpreter *newInterpreter) |
| Sets an attached code interpreter for executing commands when the editor is in the QgsCodeEditor::Mode::CommandInput mode. More...
|
|
void | setLineNumbersVisible (bool visible) |
| Sets whether line numbers should be visible in the editor. More...
|
|
Q_DECL_DEPRECATED void | setMarginVisible (bool margin) |
| Set margin visible state. More...
|
|
void | setTitle (const QString &title) |
| Set the widget title. More...
|
|