37#ifndef H_SKIN_IMGUI_TEXT_EDITOR_H
38#define H_SKIN_IMGUI_TEXT_EDITOR_H
94 void set_text(
const std::string& value);
130 void draw(
const std::string& title);
136 void load(
const std::string& filename);
142 void save(
const std::string& filename);
190 std::string language_;
191 std::vector<std::string> completions_;
Abstract base class for the GOM interpreter.
Base class for all objects in the GOM system.
A TextEditor for writing LUA functions.
void load(const std::string &filename)
Loads a file in the editor.
void show_find_and_replace_dialog()
Opens the find and replace dialog.
void clear_error_markers()
Removes all error markers.
void draw(const std::string &title)
Draws the editor.
const std::string & get_language() const
Gets the language used for syntax highlighting.
void set_language(const std::string &language)
Sets the language used for syntax highlighting.
void save_request()
Invoked when <F2> is pressed.
::TextEditor * impl()
Gets the implementation.
std::vector< std::string > & completions()
Gets the current list of completions.
void add_error_marker(index_t line, const std::string &error_message)
Adds an error marker on a specific line.
void stop_request()
Invoked when <Ctrl> is pressed.
TextEditor(Interpreter *interpreter)
TextEditor constructor.
std::string get_text() const
Gets the text.
void save(const std::string &filename)
Saves the contents of the editor into a file.
void tooltip_request(const std::string &context)
Invoked when the cursor hovers over a word.
~TextEditor() override
TextEditor destructor.
Interpreter * interpreter()
Gets the Interpreter.
std::string get_selection() const
Gets the selected text.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
The base class for all composite objects in the GOM system.
Definitions common to all include files in the skin_imgui library.