cgv
|
implement this interface to interact with the text editor More...
#include <text_editor.h>
Public Member Functions | |
virtual void | on_close_editor () |
called when the editor window is closed | |
virtual void | after_read () |
called when new file has been read | |
virtual void | after_save () |
called when text has been saved | |
virtual void | on_text_insertion (int text_pos, int nr_inserted) |
called when nr_inserted characters have been inserted at text_pos | |
virtual void | on_text_deletion (int text_pos, int nr_deleted, const char *deleted_text) |
called when the nr_deleted characters in deleted_text have been deleted at text position text_pos | |
virtual void | on_update_callback () |
called when text has been saved | |
implement this interface to interact with the text editor
Definition at line 13 of file text_editor.h.
|
virtual |
called when new file has been read
Definition at line 28 of file text_editor.cxx.
|
virtual |
called when text has been saved
Definition at line 33 of file text_editor.cxx.
|
virtual |
called when the editor window is closed
Definition at line 18 of file text_editor.cxx.
|
virtual |
called when the nr_deleted characters in deleted_text have been deleted at text position text_pos
Definition at line 44 of file text_editor.cxx.
|
virtual |
called when nr_inserted characters have been inserted at text_pos
Definition at line 39 of file text_editor.cxx.
|
virtual |
called when text has been saved
Definition at line 23 of file text_editor.cxx.