 |
Blamite Game Engine - Keystone
00402.09.29.23.0627.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Go to the documentation of this file.
4 #include "ui_CodeEditorDialog.h"
6 #include <Strings/components/classes/map/map.h>
7 #include <HEKGuerilla/components/tags/fields/fields.h>
20 Ui::CodeEditorDialog ui;
22 bool cancelled =
true;
23 std::string text =
"";
29 BlamDatarefValueHintType current_value_hint = BlamDatarefValueHintType::NONE;
36 BlamMap<std::string, QSourceHighlite::QSourceHighliter::Language> language_map =
37 BlamMap<std::string, QSourceHighlite::QSourceHighliter::Language>();
46 BlamMap<BlamDatarefValueHintType, QSourceHighlite::QSourceHighliter::Language> value_hint_language_map =
47 BlamMap<BlamDatarefValueHintType, QSourceHighlite::QSourceHighliter::Language>();
97 void CancelButtonClicked();
102 void SaveButtonClicked();
109 void LanguageDropdownChanged(
int index);
Definition: qsourcehighliter.h:35
void SetLanguage(QSourceHighlite::QSourceHighliter::Language language)
Sets the language used for syntax highlighting.
Definition: CodeEditorDialog.cpp:82
Language
When adding a language make sure that its value is a multiple of 2 This is because we use the next nu...
Definition: qsourcehighliter.h:56
BlamDatarefValueHintType GetDatarefValueHintType()
Definition: CodeEditorDialog.cpp:107
~CodeEditorDialog()
Definition: CodeEditorDialog.cpp:77
void setCurrentLanguage(Language language)
Definition: qsourcehighliter.cpp:86
A dialog used for general-purpose text and code editing.
Definition: CodeEditorDialog.h:16
bool IsCancelled()
Checks if the dialog was cancelled.
Definition: CodeEditorDialog.cpp:102
std::string GetText()
Retrieves the updated text.
Definition: CodeEditorDialog.cpp:97
CodeEditorDialog(std::string contents="", QWidget *parent=Q_NULLPTR)
Initializes a new code editor dialog.
Definition: CodeEditorDialog.cpp:7