mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-07 01:15:14 +01:00
28 lines
518 B
C++
28 lines
518 B
C++
#pragma once
|
|
|
|
#include "TextEditor.h"
|
|
#include "window_base.h"
|
|
|
|
class CodeEditor : public WindowBase
|
|
{
|
|
public:
|
|
CodeEditor();
|
|
|
|
virtual void Draw() override;
|
|
|
|
void Initialize();
|
|
|
|
void SetScript(const std::string &txt);
|
|
void ClearErrors();
|
|
void AddError(int line, const std::string &text);
|
|
|
|
void HighlightLine(int line)
|
|
{
|
|
mEditor.SetExecutionMarker(line);
|
|
}
|
|
private:
|
|
TextEditor mEditor;
|
|
TextEditor::Breakpoints m_breakPoints;
|
|
TextEditor::ErrorMarkers m_markers;
|
|
};
|