#include <textedit.h>
Inheritance diagram for ht_text_editor:
Public Member Functions | |
void | init (bounds *b, bool own_textfile, ht_textfile *textfile, ht_list *lexers, UINT edit_options) |
virtual void | done () |
virtual void | config_changed () |
virtual char * | func (UINT i, bool execute) |
virtual void | handlemsg (htmsg *msg) |
virtual void | get_pindicator_str (char *buf) |
virtual cursor_mode | get_cursor_mode () |
bool | concat_lines (UINT a) |
void | delete_chars (UINT line, UINT ofs, UINT count) |
void | delete_lines (UINT line, UINT count) |
void | indent (UINT line, UINT start, UINT size) |
void | insert_chars (UINT line, UINT ofs, void *chars, UINT len) |
void | insert_lines (UINT line, UINT count) |
void | split_line (UINT a, UINT pos) |
void | unindent (UINT line, UINT start, UINT size) |
void | textoperation_apply (ht_undo_data *ud) |
void | redo () |
void | show_protocol () |
void | undo (bool place_cursor_first) |
Protected Member Functions | |
void | clipboard_cut_cmd () |
void | clipboard_delete_cmd () |
void | clipboard_paste_cmd () |
virtual vcp | get_bgcolor () |
bool | save () |
Protected Attributes | |
UINT | edit_options |
ht_text_editor_undo * | undo_list |
bool | auto_indent |
bool | overwrite_mode |
|
Definition at line 2068 of file textedit.cc. References ht_text_viewer::clipboard_copy_cmd(), and clipboard_delete_cmd(). Referenced by handlemsg(). |
|
Definition at line 2074 of file textedit.cc. References ht_text_viewer::ht_undo_data_delete_block, text_viewer_pos::line, ht_text_viewer::physical_cursorx(), text_viewer_pos::pofs, textoperation_apply(), and UINT. Referenced by clipboard_cut_cmd(), and handlemsg(). |
|
Definition at line 2086 of file textedit.cc. References clipboard_getsize(), clipboard_paste(), ht_text_viewer::ht_undo_data_insert_block, text_viewer_pos::line, malloc(), ht_text_viewer::physical_cursorx(), text_viewer_pos::pofs, textoperation_apply(), and UINT. Referenced by handlemsg(). |
|
Definition at line 2100 of file textedit.cc. References delete_lines(), ht_textfile::getline(), ht_textfile::getlinelength(), ht_textfile::has_line(), insert_chars(), text_viewer_pos::line, malloc(), ht_text_viewer::normalize_selection(), NULL, text_viewer_pos::pofs, and UINT. Referenced by ht_undo_data_join_line::apply(), delete_text_block(), and ht_undo_data_split_line::unapply(). |
|
Reimplemented from ht_text_viewer. Definition at line 2143 of file textedit.cc. References auto_indent, ht_text_viewer::config_changed(), and get_config_dword(). |
|
Definition at line 2149 of file textedit.cc. References ht_textfile::delete_chars(), text_viewer_pos::line, text_viewer_pos::pofs, text_viewer_pos_compare(), and UINT. Referenced by ht_undo_data_overwrite_string::apply(), ht_undo_data_delete_string2::apply(), ht_undo_data_delete_string::apply(), delete_text_block(), and split_line(). |
|
Definition at line 2166 of file textedit.cc. References ht_textfile::delete_lines(), text_viewer_pos::line, ht_text_viewer::normalize_selection(), and UINT. Referenced by concat_lines(), and delete_text_block(). |
|
Reimplemented from ht_text_viewer. Definition at line 2059 of file textedit.cc. References ht_clist::destroy(), ht_text_viewer::done(), and undo_list. |
|
Reimplemented from ht_text_viewer. Definition at line 2174 of file textedit.cc. References app, cmd_file_save, cmd_file_saveas, ht_streamfile::cntl(), FCNTL_MODS_IS_DIRTY, ht_text_viewer::func(), ht_layer_streamfile::get_filename(), ht_text_editor_undo::mark_clean(), ht_view::sendmsg(), UINT, and undo_list. |
|
Reimplemented from ht_text_viewer. Definition at line 2197 of file textedit.cc. References ht_view::getcolor(), palidx_generic_input_focused, palidx_generic_input_unfocused, and vcp. |
|
Reimplemented from ht_text_viewer. Definition at line 2203 of file textedit.cc. References cm_normal, cm_overwrite, cursor_mode, and overwrite_mode. |
|
Reimplemented from ht_text_viewer. Definition at line 2208 of file textedit.cc. References buf, ht_streamfile::cntl(), FCNTL_MODS_IS_DIRTY, ht_text_viewer::get_lexer(), ht_syntax_lexer::getname(), and NULL. |
|
|
Definition at line 2463 of file textedit.cc. References ht_textfile::insert_chars(), malloc(), size, and UINT. Referenced by ht_undo_data_join_line::apply(), ht_undo_data_split_line::apply(), ht_undo_data_overwrite_string::apply(), ht_undo_data_insert_string::apply(), handlemsg(), and insert_text_block(). |
|
Definition at line 2043 of file textedit.cc. References edit_options, ht_text_editor_undo::init(), Object::init(), NULL, overwrite_mode, TEXTEDITOPT_UNDO, UINT, and undo_list. Referenced by ht_app::create_window_file_text(), and ht_aviewer::showComments(). |
|
Definition at line 2476 of file textedit.cc. References ht_textfile::insert_chars(), len, text_viewer_pos::line, text_viewer_pos::pofs, text_viewer_pos_compare(), and UINT. Referenced by ht_undo_data_overwrite_string::apply(), ht_undo_data_insert_string::apply(), concat_lines(), split_line(), ht_undo_data_overwrite_string::unapply(), ht_undo_data_delete_string2::unapply(), and ht_undo_data_delete_string::unapply(). |
|
Definition at line 2493 of file textedit.cc. References ht_textfile::insert_lines(), text_viewer_pos::line, ht_text_viewer::normalize_selection(), and UINT. Referenced by split_line(). |
|
Definition at line 2668 of file textedit.cc. References ht_streamfile::cntl(), FCNTL_MODS_CLEAR_DIRTY, ht_text_editor_undo::is_clean(), ht_text_editor_undo::redo(), and undo_list. Referenced by handlemsg(), and show_protocol(). |
|
|
Definition at line 2559 of file textedit.cc. References align_left, app, buf, button_ok, ht_clist::count(), ht_view::databuf_get(), ht_dialog::done(), FS_KILLER, FS_MOVE, FS_TITLE, ht_clist::get(), ht_text_editor_undo::get_current_position(), ht_view::getbounds(), ht_text_listbox::getID(), ht_listbox::gotoItemByPosition(), ht_window::insert(), ht_text_listbox::insert_str(), ht_text_editor_undo::is_clean(), redo(), ht_dialog::run(), UINT, undo(), undo_list, and ht_text_listbox::update(). Referenced by handlemsg(). |
|
Definition at line 2618 of file textedit.cc. References delete_chars(), ht_textfile::getline(), ht_textfile::getlinelength(), insert_chars(), insert_lines(), text_viewer_pos::line, malloc(), ht_text_viewer::normalize_selection(), NULL, text_viewer_pos::pofs, text_viewer_pos_compare(), and UINT. Referenced by ht_undo_data_split_line::apply(), and ht_undo_data_join_line::unapply(). |
|
Definition at line 2658 of file textedit.cc. References ht_undo_data::apply(), ht_text_editor_undo::insert_undo(), and undo_list. Referenced by clipboard_delete_cmd(), clipboard_paste_cmd(), and handlemsg(). |
|
Definition at line 2676 of file textedit.cc. References ht_streamfile::cntl(), FCNTL_MODS_CLEAR_DIRTY, ht_text_editor_undo::is_clean(), ht_text_editor_undo::undo(), and undo_list. Referenced by handlemsg(), and show_protocol(). |
|
Definition at line 2471 of file textedit.cc. References ht_textfile::delete_chars(), size, and UINT. Referenced by delete_text_block(), ht_undo_data_join_line::unapply(), ht_undo_data_split_line::unapply(), ht_undo_data_overwrite_string::unapply(), and ht_undo_data_insert_string::unapply(). |
|
Definition at line 373 of file textedit.h. Referenced by config_changed(), and handlemsg(). |
|
Definition at line 371 of file textedit.h. Referenced by handlemsg(), and init(). |
|
Definition at line 374 of file textedit.h. Referenced by get_cursor_mode(), handlemsg(), and init(). |
|
Definition at line 372 of file textedit.h. Referenced by done(), func(), handlemsg(), init(), redo(), save(), show_protocol(), textoperation_apply(), and undo(). |