Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ht_text_viewer Class Reference

#include <textedit.h>

Inheritance diagram for ht_text_viewer:

ht_view Object ht_info_viewer ht_text_editor TerminalViewer List of all members.

Public Member Functions

void init (bounds *b, bool own_textfile, ht_textfile *textfile, ht_list *lexers)
virtual void done ()
virtual void config_changed ()
virtual void draw ()
virtual void handlemsg (htmsg *msg)
virtual void resize (int rw, int rh)
virtual char * func (UINT i, bool execute)
UINT get_line_length (UINT line)
UINT get_line_vlength (UINT line)
UINT get_line_indent (UINT line)
void get_selection (text_viewer_pos *start, text_viewer_pos *end)
bool goto_line (UINT line)
virtual void get_pindicator_str (char *buf)
virtual bool get_hscrollbar_pos (int *pstart, int *psize)
virtual bool get_vscrollbar_pos (int *pstart, int *psize)
virtual cursor_mode get_cursor_mode ()
virtual void get_cursor_pos (text_viewer_pos *cursor)
virtual bool pos_to_offset (text_viewer_pos *pos, FILEOFS *ofs)
ht_syntax_lexerget_lexer ()
int ppos_str (char *buf, UINT bufsize, text_viewer_pos *ppos)
void set_lexer (ht_syntax_lexer *l, bool own_l)
void set_textfile (ht_textfile *t, bool own_t)
ht_textfileget_textfile ()
UINT cursor_up (UINT n)
UINT cursor_down (UINT n)
UINT cursor_left (UINT n)
UINT cursor_right (UINT n)
void cursor_home ()
void cursor_end ()
void cursor_vput (UINT vx)
void cursor_pput (UINT px)
void cursor_set (text_viewer_pos *pos)
UINT scroll_up (UINT n)
UINT scroll_down (UINT n)
UINT scroll_left (UINT n)
UINT scroll_right (UINT n)
void select_add (text_viewer_pos *from, text_viewer_pos *to)
void select_clear ()
void select_end ()
void select_set (text_viewer_pos *from, text_viewer_pos *to)
void select_start ()

Protected Member Functions

int buf_lprint0 (int x, int y, int c, int l, char *text)
UINT char_vsize (char c, UINT x)
void clipboard_copy_cmd ()
bool continue_search ()
virtual vcp get_bgcolor ()
void make_pos_physical (text_viewer_pos *p)
void normalize_selection ()
UINT physical_cursorx ()
void popup_change_highlight ()
void render_meta (UINT x, UINT y, text_viewer_pos *pos, vcp color)
void render_str (int x, int y, vcp color, text_viewer_pos *pos, UINT len, char *str, bool multi)
void render_str_color (vcp *color, text_viewer_pos *pos)
ht_search_resultsearch (ht_search_request *request, text_search_pos *start, text_search_pos *end)
bool show_search_result (ht_search_result *result)

Protected Attributes

ht_textfiletextfile
bool own_textfile
ht_listlexers
ht_syntax_lexerlexer
bool own_lexer
UINT cursorx
UINT cursory
text_viewer_pos sel_start
text_viewer_pos sel_end
UINT top_line
UINT xofs
bool selectcursor
bool selectmode
text_viewer_pos selectstart
char * EOL_string
char * EOF_string
bool show_EOL
bool show_EOF
bool highlight_wrap
UINT tab_size
ht_search_requestlast_search_request
FILEOFS last_search_end_ofs

Friends

class ht_undo_data
class ht_undo_data_delete_string
class ht_undo_data_delete_string2
class ht_undo_data_insert_string
class ht_undo_data_overwrite_string
class ht_undo_data_split_line
class ht_undo_data_join_line
class ht_undo_data_insert_block
class ht_undo_data_delete_block

Member Function Documentation

int ht_text_viewer::buf_lprint0 int  x,
int  y,
int  c,
int  l,
char *  text
[protected]
 

Definition at line 1848 of file textedit.cc.

References ht_view::buf_printchar().

Referenced by render_str().

UINT ht_text_viewer::char_vsize char  c,
UINT  x
[protected]
 

Definition at line 1014 of file textedit.cc.

References tab_size, and UINT.

Referenced by cursor_pput(), draw(), get_line_indent(), get_line_vlength(), and physical_cursorx().

void ht_text_viewer::clipboard_copy_cmd  )  [protected]
 

Definition at line 1020 of file textedit.cc.

References clipboard_copy(), ht_textfile::convert_line2ofs(), FILEOFS, ht_layer_streamfile::get_desc(), ht_snprintf(), text_viewer_pos::line, text_viewer_pos::pofs, sel_end, sel_start, text_viewer_pos_compare(), and textfile.

Referenced by ht_text_editor::clipboard_cut_cmd(), and handlemsg().

void ht_text_viewer::config_changed  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_text_editor.

Definition at line 1033 of file textedit.cc.

References ht_view::config_changed(), ht_syntax_lexer::config_changed(), EOF_string, EOL_string, get_config_dword(), get_config_string(), lexer, MAX, MIN, and tab_size.

Referenced by ht_text_editor::config_changed(), and init().

bool ht_text_viewer::continue_search  )  [protected]
 

Definition at line 1046 of file textedit.cc.

References errorbox, FILEOFS, get_cursor_pos(), last_search_end_ofs, last_search_request, NULL, text_search_pos::offset, pos_to_offset(), SC_PHYSICAL, search(), ht_search_request::search_class, and show_search_result().

Referenced by handlemsg().

UINT ht_text_viewer::cursor_down UINT  n  ) 
 

Definition at line 1081 of file textedit.cc.

References cursory, ht_textfile::linecount(), scroll_down(), textfile, top_line, and UINT.

Referenced by goto_line(), and handlemsg().

void ht_text_viewer::cursor_end  ) 
 

Definition at line 1114 of file textedit.cc.

References cursor_vput(), cursory, get_line_vlength(), and top_line.

Referenced by handlemsg().

void ht_text_viewer::cursor_home  ) 
 

Definition at line 1109 of file textedit.cc.

References cursor_vput().

Referenced by handlemsg().

UINT ht_text_viewer::cursor_left UINT  n  ) 
 

Definition at line 1095 of file textedit.cc.

References cursor_vput(), cursorx, UINT, and xofs.

Referenced by handlemsg().

void ht_text_viewer::cursor_pput UINT  px  ) 
 

Definition at line 1119 of file textedit.cc.

References char_vsize(), cursorx, cursory, ht_textfile::getline(), NULL, textfile, top_line, UINT, and xofs.

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(), ht_undo_data_delete_string2::apply(), ht_undo_data_delete_string::apply(), cursor_set(), delete_text_block(), ht_text_editor::handlemsg(), handlemsg(), ht_info_viewer::handlemsg(), insert_text_block(), ht_undo_data_delete_block::unapply(), ht_undo_data_insert_block::unapply(), ht_undo_data_join_line::unapply(), ht_undo_data_split_line::unapply(), ht_undo_data_overwrite_string::unapply(), ht_undo_data_insert_string::unapply(), ht_undo_data_delete_string2::unapply(), and ht_undo_data_delete_string::unapply().

UINT ht_text_viewer::cursor_right UINT  n  ) 
 

Definition at line 1103 of file textedit.cc.

References cursor_vput(), cursorx, UINT, and xofs.

Referenced by handlemsg().

void ht_text_viewer::cursor_set text_viewer_pos pos  ) 
 

Definition at line 1147 of file textedit.cc.

References cursor_pput(), goto_line(), text_viewer_pos::line, and text_viewer_pos::pofs.

Referenced by show_search_result().

UINT ht_text_viewer::cursor_up UINT  n  ) 
 

Definition at line 1072 of file textedit.cc.

References cursory, scroll_up(), and UINT.

Referenced by goto_line(), and handlemsg().

void ht_text_viewer::cursor_vput UINT  vx  ) 
 

Definition at line 1153 of file textedit.cc.

References cursorx, UINT, and xofs.

Referenced by cursor_end(), cursor_home(), cursor_left(), and cursor_right().

void ht_text_viewer::done  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_info_viewer, TerminalViewer, and ht_text_editor.

Definition at line 994 of file textedit.cc.

References ht_view::done(), Object::done(), ht_layer_streamfile::done(), EOF_string, EOL_string, last_search_request, lexer, own_lexer, own_textfile, and textfile.

Referenced by ht_text_editor::done(), TerminalViewer::done(), and ht_info_viewer::done().

void ht_text_viewer::draw  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_info_viewer.

Definition at line 1169 of file textedit.cc.

References ht_view::buf_lprint(), ht_view::buf_printchar(), ht_view::buf_printf(), char_vsize(), ht_view::clear(), cursorx, cursory, delete_timer(), EOL_string, ht_view::fill(), get_bgcolor(), get_cursor_mode(), get_timer_tick(), ht_syntax_lexer::getcolor_syntax(), ht_textfile::getline(), ht_syntax_lexer::gettoken(), ht_syntax_lexer::gettoken_color(), highlight_wrap, lexer, lexer_state, lexer_token, text_pos::line, text_viewer_pos::line, new_timer(), NULL, palidx_generic_input_selected, palidx_syntax_meta, text_pos::pofs, text_viewer_pos::pofs, render_meta(), render_str(), render_str_color(), sel_end, sel_start, ht_view::setcursor(), show_EOL, start_timer(), stop_timer(), tab_size, textfile, timer_handle, top_line, UINT, VCP, vcp, VCP_BACKGROUND, and xofs.

Referenced by ht_info_viewer::draw().

char * ht_text_viewer::func UINT  i,
bool  execute
[virtual]
 

Reimplemented in ht_text_editor.

Definition at line 1294 of file textedit.cc.

References cmd_text_viewer_goto, get_cursor_pos(), infobox, NULL, text_search_pos::offset, pos_to_offset(), search(), SEARCHMODE_BIN, ht_view::sendmsg(), show_search_result(), text_search_dialog(), and UINT.

Referenced by ht_text_editor::func(), and handlemsg().

vcp ht_text_viewer::get_bgcolor  )  [protected, virtual]
 

Reimplemented in ht_text_editor.

Definition at line 1331 of file textedit.cc.

References ht_view::getcolor(), palidx_generic_body, and vcp.

Referenced by draw().

cursor_mode ht_text_viewer::get_cursor_mode  )  [virtual]
 

Reimplemented in ht_text_editor.

Definition at line 1342 of file textedit.cc.

References cm_normal, and cursor_mode.

Referenced by draw().

void ht_text_viewer::get_cursor_pos text_viewer_pos cursor  )  [virtual]
 

Definition at line 1336 of file textedit.cc.

References cursory, text_viewer_pos::line, physical_cursorx(), text_viewer_pos::pofs, and top_line.

Referenced by continue_search(), func(), and text_search_dialog().

bool ht_text_viewer::get_hscrollbar_pos int *  pstart,
int *  psize
[virtual]
 

Definition at line 1417 of file textedit.cc.

Referenced by handlemsg().

ht_syntax_lexer * ht_text_viewer::get_lexer  ) 
 

Definition at line 1347 of file textedit.cc.

References lexer.

Referenced by ht_text_editor::get_pindicator_str(), and get_pindicator_str().

UINT ht_text_viewer::get_line_indent UINT  line  ) 
 

Definition at line 1355 of file textedit.cc.

References char_vsize(), ht_textfile::getline(), NULL, textfile, and UINT.

Referenced by ht_text_editor::handlemsg().

UINT ht_text_viewer::get_line_length UINT  line  ) 
 

Definition at line 1373 of file textedit.cc.

References ht_textfile::getlinelength(), textfile, and UINT.

Referenced by ht_undo_data_join_line::apply(), ht_undo_data_overwrite_string::apply(), ht_undo_data_insert_string::apply(), ht_text_editor::handlemsg(), and insert_text_block().

UINT ht_text_viewer::get_line_vlength UINT  line  ) 
 

Definition at line 1378 of file textedit.cc.

References char_vsize(), ht_textfile::getline(), NULL, textfile, and UINT.

Referenced by cursor_end().

void ht_text_viewer::get_pindicator_str char *  buf  )  [virtual]
 

Reimplemented in ht_info_viewer, and ht_text_editor.

Definition at line 1392 of file textedit.cc.

References buf, cursorx, cursory, get_lexer(), ht_syntax_lexer::getname(), NULL, top_line, and xofs.

Referenced by handlemsg().

void ht_text_viewer::get_selection text_viewer_pos start,
text_viewer_pos end
 

Definition at line 1406 of file textedit.cc.

References sel_end, and sel_start.

Referenced by ht_undo_data_insert_block::apply().

ht_textfile * ht_text_viewer::get_textfile  ) 
 

Definition at line 1412 of file textedit.cc.

References textfile.

Referenced by delete_text_block(), and insert_text_block().

bool ht_text_viewer::get_vscrollbar_pos int *  pstart,
int *  psize
[virtual]
 

Definition at line 1401 of file textedit.cc.

References ht_textfile::linecount(), scrollbar_pos(), textfile, and top_line.

Referenced by handlemsg().

bool ht_text_viewer::goto_line UINT  line  ) 
 

Definition at line 1422 of file textedit.cc.

References cursor_down(), cursor_up(), cursory, ht_textfile::linecount(), textfile, top_line, 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(), ht_undo_data_delete_string2::apply(), ht_undo_data_delete_string::apply(), cursor_set(), delete_text_block(), handlemsg(), ht_info_viewer::handlemsg(), insert_text_block(), ht_undo_data_delete_block::unapply(), ht_undo_data_insert_block::unapply(), ht_undo_data_join_line::unapply(), ht_undo_data_split_line::unapply(), ht_undo_data_overwrite_string::unapply(), ht_undo_data_insert_string::unapply(), ht_undo_data_delete_string2::unapply(), and ht_undo_data_delete_string::unapply().

void ht_text_viewer::handlemsg htmsg *  msg  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_info_viewer, TerminalViewer, and ht_text_editor.

Definition at line 1442 of file textedit.cc.

References clearmsg(), clipboard_copy_cmd(), cmd_edit_copy, cmd_text_viewer_change_highlight, cmd_text_viewer_goto, continue_search(), cursor_down(), cursor_end(), cursor_home(), cursor_left(), cursor_pput(), cursor_right(), cursor_up(), cursorx, cursory, ht_view::dirtyview(), errorbox, eval(), func(), get_hscrollbar_pos(), get_pindicator_str(), get_vscrollbar_pos(), ht_textfile::getline(), goto_line(), gsi_hscrollbar, gsi_pindicator, gsi_vscrollbar, ht_view::handlemsg(), infobox, inputbox(), K_Alt_C, K_Alt_S, K_Control_Insert, K_Control_J, K_Control_L, K_Control_Left, K_Control_PageDown, K_Control_PageUp, K_Control_Right, K_Control_Shift_Left, K_Control_Shift_Right, K_Down, K_End, K_Home, K_Left, K_PageDown, K_PageUp, K_Right, K_Shift_Down, K_Shift_End, K_Shift_F7, K_Shift_Home, K_Shift_Left, K_Shift_PageDown, K_Shift_PageUp, K_Shift_Right, K_Shift_Up, K_Up, ht_textfile::linecount(), msg_funcexec, msg_funcquery, msg_get_scrollinfo, msg_keypressed, msg_retval, NULL, physical_cursorx(), popup_change_highlight(), gsi_scrollbar_t::psize, gsi_scrollbar_t::pstart, QWORD_GET_INT, scalar_context_int(), scroll_down(), scroll_up(), select_end(), select_start(), selectcursor, ht_view::sendmsg(), textfile, top_line, UINT, and eval_int::value.

Referenced by ht_text_editor::handlemsg(), TerminalViewer::handlemsg(), and ht_info_viewer::handlemsg().

void ht_text_viewer::init bounds *  b,
bool  own_textfile,
ht_textfile textfile,
ht_list lexers
 

Definition at line 958 of file textedit.cc.

References config_changed(), cursorx, cursory, EOF_string, EOL_string, GMH_FIT, GMV_FIT, highlight_wrap, Object::init(), last_search_request, lexer, lexers, MK_GM, NULL, own_lexer, own_textfile, select_clear(), selectcursor, set_textfile(), show_EOF, show_EOL, textfile, top_line, VIEW_DEBUG_NAME, VO_OWNBUFFER, VO_RESIZE, VO_SELECTABLE, and xofs.

void ht_text_viewer::make_pos_physical text_viewer_pos p  )  [protected]
 

Definition at line 1702 of file textedit.cc.

References ht_textfile::getlinelength(), text_viewer_pos::line, text_viewer_pos::pofs, textfile, and UINT.

Referenced by select_add().

void ht_text_viewer::normalize_selection  )  [protected]
 

Definition at line 1708 of file textedit.cc.

References text_viewer_pos::line, text_viewer_pos::pofs, sel_end, sel_start, and text_viewer_pos_compare().

Referenced by ht_text_editor::concat_lines(), ht_text_editor::delete_lines(), ht_text_editor::insert_lines(), select_add(), select_set(), and ht_text_editor::split_line().

UINT ht_text_viewer::physical_cursorx  )  [protected]
 

Definition at line 1718 of file textedit.cc.

References char_vsize(), cursorx, cursory, ht_textfile::getline(), NULL, textfile, top_line, UINT, and xofs.

Referenced by ht_text_editor::clipboard_delete_cmd(), ht_text_editor::clipboard_paste_cmd(), ht_info_viewer::draw(), get_cursor_pos(), ht_text_editor::handlemsg(), handlemsg(), ht_info_viewer::handlemsg(), select_end(), select_start(), ht_undo_data_delete_block::unapply(), ht_undo_data_insert_block::unapply(), ht_undo_data_join_line::unapply(), ht_undo_data_split_line::unapply(), ht_undo_data_overwrite_string::unapply(), ht_undo_data_insert_string::unapply(), ht_undo_data_delete_string2::unapply(), and ht_undo_data_delete_string::unapply().

void ht_text_viewer::popup_change_highlight  )  [protected]
 

Definition at line 1739 of file textedit.cc.

References app, ht_list::count(), ht_view::databuf_get(), ht_dialog::done(), FS_KILLER, FS_MOVE, FS_RESIZE, FS_TITLE, ht_list::get(), ht_view::getbounds(), ht_text_listbox::getID(), ht_syntax_lexer::getname(), ht_listbox::gotoItemByPosition(), ht_label::init(), ht_itext_listbox::init(), ht_dialog::init(), ht_window::insert(), ht_text_listbox::insert_str(), lexer, lexers, ht_dialog::run(), set_lexer(), UINT, and ht_text_listbox::update().

Referenced by handlemsg().

bool ht_text_viewer::pos_to_offset text_viewer_pos pos,
FILEOFS ofs
[virtual]
 

Definition at line 1808 of file textedit.cc.

References ht_textfile::convert_line2ofs(), FILEOFS, text_viewer_pos::line, text_viewer_pos::pofs, and textfile.

Referenced by continue_search(), func(), and text_search_dialog().

int ht_text_viewer::ppos_str char *  buf,
UINT  bufsize,
text_viewer_pos ppos
 

Definition at line 1813 of file textedit.cc.

References buf, ht_snprintf(), and UINT.

void ht_text_viewer::render_meta UINT  x,
UINT  y,
text_viewer_pos pos,
vcp  color
[protected]
 

Definition at line 1818 of file textedit.cc.

References ht_view::buf_print(), EOF_string, EOL_string, text_viewer_pos::line, ht_textfile::linecount(), render_str_color(), show_EOF, show_EOL, textfile, UINT, and vcp.

Referenced by draw().

void ht_text_viewer::render_str int  x,
int  y,
vcp  color,
text_viewer_pos pos,
UINT  len,
char *  str,
bool  multi
[protected]
 

Definition at line 1829 of file textedit.cc.

References buf_lprint0(), len, text_viewer_pos::line, text_viewer_pos::pofs, render_str_color(), sel_end, sel_start, text_viewer_pos_compare(), UINT, and vcp.

Referenced by draw().

void ht_text_viewer::render_str_color vcp color,
text_viewer_pos pos
[protected]
 

Definition at line 1859 of file textedit.cc.

References ht_view::getcolor(), palidx_generic_input_selected, sel_end, sel_start, text_viewer_pos_compare(), vcp, and vcp_mix().

Referenced by draw(), render_meta(), and render_str().

void ht_text_viewer::resize int  rw,
int  rh
[virtual]
 

Reimplemented from ht_view.

Definition at line 1868 of file textedit.cc.

References cursorx, cursory, ht_view::resize(), top_line, and xofs.

UINT ht_text_viewer::scroll_down UINT  n  ) 
 

Definition at line 1892 of file textedit.cc.

References cursory, ht_textfile::linecount(), textfile, top_line, and UINT.

Referenced by cursor_down(), and handlemsg().

UINT ht_text_viewer::scroll_left UINT  n  ) 
 

Definition at line 1908 of file textedit.cc.

References UINT, and xofs.

UINT ht_text_viewer::scroll_right UINT  n  ) 
 

Definition at line 1914 of file textedit.cc.

References UINT, and xofs.

UINT ht_text_viewer::scroll_up UINT  n  ) 
 

Definition at line 1881 of file textedit.cc.

References cursory, top_line, and UINT.

Referenced by cursor_up(), and handlemsg().

ht_search_result * ht_text_viewer::search ht_search_request request,
text_search_pos start,
text_search_pos end
[protected]
 

Definition at line 1920 of file textedit.cc.

References Object::duplicate(), FILEOFS, last_search_end_ofs, last_search_request, linear_bin_search(), NULL, text_search_pos::offset, SC_PHYSICAL, ht_search_request::search_class, and textfile.

Referenced by continue_search(), and func().

void ht_text_viewer::select_add text_viewer_pos from,
text_viewer_pos to
 

Definition at line 1937 of file textedit.cc.

References make_pos_physical(), normalize_selection(), sel_end, sel_start, and text_viewer_pos_compare().

Referenced by select_end().

void ht_text_viewer::select_clear  ) 
 

Definition at line 1970 of file textedit.cc.

References text_viewer_pos::line, text_viewer_pos::pofs, sel_end, and sel_start.

Referenced by delete_text_block(), ht_info_viewer::igotonode(), and init().

void ht_text_viewer::select_end  ) 
 

Definition at line 1992 of file textedit.cc.

References cursory, text_viewer_pos::line, physical_cursorx(), text_viewer_pos::pofs, select_add(), selectmode, selectstart, and top_line.

Referenced by handlemsg().

void ht_text_viewer::select_set text_viewer_pos from,
text_viewer_pos to
 

Definition at line 1978 of file textedit.cc.

References normalize_selection(), sel_end, and sel_start.

Referenced by insert_text_block(), and show_search_result().

void ht_text_viewer::select_start  ) 
 

Definition at line 1985 of file textedit.cc.

References cursory, text_viewer_pos::line, physical_cursorx(), text_viewer_pos::pofs, selectmode, selectstart, and top_line.

Referenced by handlemsg().

void ht_text_viewer::set_lexer ht_syntax_lexer l,
bool  own_l
 

Definition at line 2001 of file textedit.cc.

References ht_syntax_lexer::config_changed(), Object::done(), lexer, own_lexer, ht_textfile::set_lexer(), and textfile.

Referenced by ht_app::create_window_file_text(), ht_info_viewer::igotonode(), and popup_change_highlight().

void ht_text_viewer::set_textfile ht_textfile t,
bool  own_t
 

Definition at line 2014 of file textedit.cc.

References ht_layer_streamfile::done(), own_textfile, and textfile.

Referenced by ht_info_viewer::igotonode(), and init().

bool ht_text_viewer::show_search_result ht_search_result result  )  [protected]
 

Definition at line 2024 of file textedit.cc.

References ht_textfile::convert_ofs2line(), cursor_set(), text_viewer_pos::line, ht_physical_search_result::offset, text_viewer_pos::pofs, SC_PHYSICAL, ht_search_result::search_class, select_set(), ht_physical_search_result::size, and textfile.

Referenced by continue_search(), and func().


Friends And Related Function Documentation

friend class ht_undo_data [friend]
 

Definition at line 260 of file textedit.h.

friend class ht_undo_data_delete_block [friend]
 

Definition at line 268 of file textedit.h.

Referenced by ht_text_editor::clipboard_delete_cmd(), and ht_text_editor::handlemsg().

friend class ht_undo_data_delete_string [friend]
 

Definition at line 261 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

friend class ht_undo_data_delete_string2 [friend]
 

Definition at line 262 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

friend class ht_undo_data_insert_block [friend]
 

Definition at line 267 of file textedit.h.

Referenced by ht_text_editor::clipboard_paste_cmd().

friend class ht_undo_data_insert_string [friend]
 

Definition at line 263 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

friend class ht_undo_data_join_line [friend]
 

Definition at line 266 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

friend class ht_undo_data_overwrite_string [friend]
 

Definition at line 264 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

friend class ht_undo_data_split_line [friend]
 

Definition at line 265 of file textedit.h.

Referenced by ht_text_editor::handlemsg().


Member Data Documentation

UINT ht_text_viewer::cursorx [protected]
 

Definition at line 278 of file textedit.h.

Referenced by cursor_left(), cursor_pput(), cursor_right(), cursor_vput(), draw(), get_pindicator_str(), handlemsg(), init(), physical_cursorx(), and resize().

UINT ht_text_viewer::cursory [protected]
 

Definition at line 278 of file textedit.h.

Referenced by cursor_down(), cursor_end(), cursor_pput(), cursor_up(), draw(), get_cursor_pos(), get_pindicator_str(), goto_line(), handlemsg(), init(), physical_cursorx(), resize(), scroll_down(), scroll_up(), select_end(), select_start(), ht_undo_data_delete_block::unapply(), ht_undo_data_insert_block::unapply(), ht_undo_data_join_line::unapply(), ht_undo_data_split_line::unapply(), ht_undo_data_overwrite_string::unapply(), ht_undo_data_insert_string::unapply(), ht_undo_data_delete_string2::unapply(), and ht_undo_data_delete_string::unapply().

char* ht_text_viewer::EOF_string [protected]
 

Definition at line 289 of file textedit.h.

Referenced by config_changed(), done(), init(), and render_meta().

char* ht_text_viewer::EOL_string [protected]
 

Definition at line 288 of file textedit.h.

Referenced by config_changed(), done(), draw(), init(), and render_meta().

bool ht_text_viewer::highlight_wrap [protected]
 

Definition at line 292 of file textedit.h.

Referenced by draw(), and init().

FILEOFS ht_text_viewer::last_search_end_ofs [protected]
 

Definition at line 296 of file textedit.h.

Referenced by continue_search(), and search().

ht_search_request* ht_text_viewer::last_search_request [protected]
 

Definition at line 295 of file textedit.h.

Referenced by continue_search(), done(), init(), and search().

ht_syntax_lexer* ht_text_viewer::lexer [protected]
 

Definition at line 275 of file textedit.h.

Referenced by config_changed(), done(), draw(), get_lexer(), init(), popup_change_highlight(), and set_lexer().

ht_list* ht_text_viewer::lexers [protected]
 

Definition at line 273 of file textedit.h.

Referenced by init(), and popup_change_highlight().

bool ht_text_viewer::own_lexer [protected]
 

Definition at line 276 of file textedit.h.

Referenced by done(), init(), and set_lexer().

bool ht_text_viewer::own_textfile [protected]
 

Definition at line 271 of file textedit.h.

Referenced by done(), init(), and set_textfile().

text_viewer_pos ht_text_viewer::sel_end [protected]
 

Definition at line 279 of file textedit.h.

Referenced by clipboard_copy_cmd(), draw(), get_selection(), normalize_selection(), render_str(), render_str_color(), select_add(), select_clear(), and select_set().

text_viewer_pos ht_text_viewer::sel_start [protected]
 

Definition at line 279 of file textedit.h.

Referenced by clipboard_copy_cmd(), draw(), get_selection(), normalize_selection(), render_str(), render_str_color(), select_add(), select_clear(), and select_set().

bool ht_text_viewer::selectcursor [protected]
 

Definition at line 284 of file textedit.h.

Referenced by handlemsg(), and init().

bool ht_text_viewer::selectmode [protected]
 

Definition at line 285 of file textedit.h.

Referenced by select_end(), and select_start().

text_viewer_pos ht_text_viewer::selectstart [protected]
 

Definition at line 286 of file textedit.h.

Referenced by select_end(), and select_start().

bool ht_text_viewer::show_EOF [protected]
 

Definition at line 291 of file textedit.h.

Referenced by init(), and render_meta().

bool ht_text_viewer::show_EOL [protected]
 

Definition at line 290 of file textedit.h.

Referenced by draw(), init(), and render_meta().

UINT ht_text_viewer::tab_size [protected]
 

Definition at line 293 of file textedit.h.

Referenced by char_vsize(), config_changed(), and draw().

ht_textfile* ht_text_viewer::textfile [protected]
 

Definition at line 270 of file textedit.h.

Referenced by clipboard_copy_cmd(), cursor_down(), cursor_pput(), done(), draw(), get_line_indent(), get_line_length(), get_line_vlength(), get_textfile(), get_vscrollbar_pos(), goto_line(), handlemsg(), init(), make_pos_physical(), physical_cursorx(), pos_to_offset(), render_meta(), scroll_down(), search(), set_lexer(), set_textfile(), and show_search_result().

UINT ht_text_viewer::top_line [protected]
 

Definition at line 281 of file textedit.h.

Referenced by cursor_down(), cursor_end(), cursor_pput(), draw(), get_cursor_pos(), get_pindicator_str(), get_vscrollbar_pos(), goto_line(), handlemsg(), init(), physical_cursorx(), resize(), scroll_down(), scroll_up(), select_end(), select_start(), ht_undo_data_delete_block::unapply(), ht_undo_data_insert_block::unapply(), ht_undo_data_join_line::unapply(), ht_undo_data_split_line::unapply(), ht_undo_data_overwrite_string::unapply(), ht_undo_data_insert_string::unapply(), ht_undo_data_delete_string2::unapply(), and ht_undo_data_delete_string::unapply().

UINT ht_text_viewer::xofs [protected]
 

Definition at line 282 of file textedit.h.

Referenced by cursor_left(), cursor_pput(), cursor_right(), cursor_vput(), draw(), get_pindicator_str(), init(), physical_cursorx(), resize(), scroll_left(), and scroll_right().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:04 2004 by doxygen 1.3.5