#include <CodeEditorWidget.h>
◆ CodeEditorWidget()
CodeEditorWidget::CodeEditorWidget |
( |
std::string |
contents = "" , |
|
|
QWidget * |
parent = Q_NULLPTR |
|
) |
| |
◆ ~CodeEditorWidget()
CodeEditorWidget::~CodeEditorWidget |
( |
| ) |
|
◆ GetDatarefValueHintType()
BlamDatarefValueHintType CodeEditorWidget::GetDatarefValueHintType |
( |
| ) |
|
◆ GetText()
std::string CodeEditorWidget::GetText |
( |
| ) |
|
Retrieves the updated text.
- Returns
- The modified text if the save button was clicked, otherwise this returns the original contents provided when the dialog was constructed. If no contents were provided and the dialog was cancelled, then this will return an empty string.
◆ SetLanguage() [1/2]
Sets the language used for syntax highlighting.
- Parameters
-
language | - The new language to use for syntax highlighting. |
◆ SetLanguage() [2/2]
void CodeEditorWidget::SetLanguage |
( |
std::string |
language_name | ) |
|
Sets the language used for syntax highlighting.
- Parameters
-
language_name | - The string representing the language name. If no matching language was found, then the language is left unchanged. |
The documentation for this class was generated from the following files: