![]() |
Blamite Game Engine - Keystone
00432.02.10.25.1019.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
A dialog used for general-purpose text and code editing. More...
#include <CodeEditorDialog.h>
Public Member Functions | |
CodeEditorDialog (std::string contents="", QWidget *parent=Q_NULLPTR) | |
Initializes a new code editor dialog. More... | |
~CodeEditorDialog () | |
std::string | GetText () |
Retrieves the updated text. More... | |
bool | IsCancelled () |
Checks if the dialog was cancelled. More... | |
BlamDatarefValueHintType | GetDatarefValueHintType () |
A dialog used for general-purpose text and code editing.
Syntax highlighting is provided using the QSourceHighlite library.
CodeEditorDialog::CodeEditorDialog | ( | std::string | contents = "" , |
QWidget * | parent = Q_NULLPTR |
||
) |
Initializes a new code editor dialog.
contents | - The initial contents of the file. Defaults to a blank string. |
parent | - The parent of this dialog. Defaults to nullptr . |
CodeEditorDialog::~CodeEditorDialog | ( | ) |
BlamDatarefValueHintType CodeEditorDialog::GetDatarefValueHintType | ( | ) |
std::string CodeEditorDialog::GetText | ( | ) |
Retrieves the updated text.
bool CodeEditorDialog::IsCancelled | ( | ) |
Checks if the dialog was cancelled.
true
if the user closed without saving, otherwise returns false
.