This class holds the actual guts of a viewer. More...

Public Member Functions | |
| void | display_line (viewport *, size_t line) |
| bool | find_string (size_t line_no) |
| search for string starting at line_no + 1 < return true if the string is found. | |
| void | set_text_attribute (TextViewer *, viewport *, size_t line_no, bool is_bottom, bool highlight=true) |
Public Attributes | |
| bool | active_ |
| does this viewer have focus | |
| size_t | col_ |
| column cursor is in, 0 origin | |
| size_t | cur_ |
| current cursor position | |
| FileName | filename_ |
| saved name of the file | |
| size_t | first_mark_ |
| first marked line | |
| int | first_row_ |
| where file text is displayed | |
| size_t | last_mark_ |
| last marked line ( 1 past last marked line, really) | |
| int | left_ |
| column bias to skip the bordering '|'s | |
| std::vector< std::string > | lines_ |
| actual text of the file | |
| size_t | page_left_ |
| column of left side of visible page | |
| size_t | page_top_ |
| top of displayed page | |
| std::string | search_ |
| string to use in find string operations | |
This class holds the actual guts of a viewer.
Definition at line 45 of file textviewer.cxx.
| void display_line | ( | viewport * | vp, | |
| size_t | line | |||
| ) |
| bool find_string | ( | size_t | line_no | ) |
search for string starting at line_no + 1 < return true if the string is found.
Definition at line 1014 of file textviewer.cxx.
| void set_text_attribute | ( | TextViewer * | viewer, | |
| viewport * | vp, | |||
| size_t | line_no, | |||
| bool | is_bottom, | |||
| bool | highlight = true | |||
| ) |
| bool active_ |
does this viewer have focus
Definition at line 52 of file textviewer.cxx.
| size_t col_ |
column cursor is in, 0 origin
Definition at line 59 of file textviewer.cxx.
| size_t cur_ |
current cursor position
Definition at line 58 of file textviewer.cxx.
saved name of the file
Definition at line 50 of file textviewer.cxx.
| size_t first_mark_ |
first marked line
Definition at line 55 of file textviewer.cxx.
| int first_row_ |
where file text is displayed
Definition at line 54 of file textviewer.cxx.
| size_t last_mark_ |
last marked line ( 1 past last marked line, really)
Definition at line 56 of file textviewer.cxx.
| int left_ |
column bias to skip the bordering '|'s
Definition at line 53 of file textviewer.cxx.
| std::vector<std::string> lines_ |
actual text of the file
Definition at line 51 of file textviewer.cxx.
| size_t page_left_ |
column of left side of visible page
Definition at line 60 of file textviewer.cxx.
| size_t page_top_ |
top of displayed page
Definition at line 57 of file textviewer.cxx.
| std::string search_ |
string to use in find string operations
Definition at line 61 of file textviewer.cxx.
1.6.3