Elaztek Developer Hub
Blamite Game Engine - Keystone  00433.02.16.25.2127.blamite
A library that enables the use of Qt in Blamite's editing tools.
CodeEditorWidget Class Reference

#include <CodeEditorWidget.h>

+ Inheritance diagram for CodeEditorWidget:
+ Collaboration diagram for CodeEditorWidget:

Public Member Functions

 CodeEditorWidget (std::string contents="", QWidget *parent=Q_NULLPTR)
 
 ~CodeEditorWidget ()
 
void SetLanguage (QSourceHighlite::QSourceHighliter::Language language)
 Sets the language used for syntax highlighting. More...
 
void SetLanguage (std::string language_name)
 Sets the language used for syntax highlighting. More...
 
std::string GetText ()
 Retrieves the updated text. More...
 
BlamDatarefValueHintType GetDatarefValueHintType ()
 
- Public Member Functions inherited from BlamEditorDocumentWidget
 BlamEditorDocumentWidget (QWidget *parent=nullptr)
 

Additional Inherited Members

- Public Attributes inherited from BlamEditorDocumentWidget
BlamEditorDocumentdocument = nullptr
 The document associated with this widget. More...
 

Constructor & Destructor Documentation

◆ CodeEditorWidget()

CodeEditorWidget::CodeEditorWidget ( std::string  contents = "",
QWidget *  parent = Q_NULLPTR 
)

◆ ~CodeEditorWidget()

CodeEditorWidget::~CodeEditorWidget ( )

Member Function Documentation

◆ GetDatarefValueHintType()

BlamDatarefValueHintType CodeEditorWidget::GetDatarefValueHintType ( )
+ Here is the caller graph for this function:

◆ 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.
+ Here is the caller graph for this function:

◆ SetLanguage() [1/2]

void CodeEditorWidget::SetLanguage ( QSourceHighlite::QSourceHighliter::Language  language)

Sets the language used for syntax highlighting.

Parameters
language- The new language to use for syntax highlighting.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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.
+ Here is the call graph for this function:

The documentation for this class was generated from the following files: