|
C-Menu 0.2.9
A User Interface Toolkit
|
#include <view.h>
| int View::argc |
command line arguments count
Definition at line 82 of file view.h.
Referenced by build_prompt(), destroy_view(), new_view(), view_cmd_processor(), and view_file().
| char** View::argv |
command line arguments vector
Definition at line 83 of file view.h.
Referenced by build_prompt(), destroy_view(), init_view_files(), new_view(), view_cmd_processor(), and view_file().
| uint View::begx |
screen column upper left corner of window
Definition at line 75 of file view.h.
Referenced by init_view_boxwin(), init_view_files(), new_pick_view(), popup_view(), and view_calc_boxwin_dimensions().
| uint View::begy |
screen line upper left corner of window
Definition at line 74 of file view.h.
Referenced by enter_file_spec(), init_view_boxwin(), init_view_files(), new_pick_view(), popup_view(), and view_calc_boxwin_dimensions().
| char View::bg_clr_x[COLOR_LEN] |
| char View::bo_clr_x[COLOR_LEN] |
| char* View::buf |
pointer to first byte of virtual buffer
Definition at line 183 of file view.h.
Referenced by destroy_pick_view(), new_view_file(), view_file(), and view_init_input().
| char* View::buf_curr_ptr |
pointer to current position in virtual buffer
Definition at line 184 of file view.h.
Referenced by view_init_input().
| char* View::buf_end_ptr |
| char View::cmd[MAXLEN] |
command to execute in foreground, e.g. an editor
Definition at line 78 of file view.h.
Referenced by init_view_files(), view_cmd_processor(), and view_init_input().
| char View::cmd_all[MAXLEN] |
View - command to execute at start of program
Definition at line 79 of file view.h.
Referenced by init_view_files(), and view_init_input().
| char View::cmd_arg[MAXLEN] |
argument string
Definition at line 106 of file view.h.
Referenced by get_cmd_arg(), get_cmd_char(), and view_cmd_processor().
| uint View::cmd_line |
command line location on pad
Definition at line 136 of file view.h.
Referenced by display_prompt(), get_cmd_arg(), get_cmd_char(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), and view_cmd_processor().
complex character buffer
Definition at line 129 of file view.h.
Referenced by display_line(), fmt_line(), and search().
| uint View::cols |
number of columns for window size
Definition at line 73 of file view.h.
Referenced by build_prompt(), fmt_line(), get_cmd_arg(), get_cmd_char(), init_view_boxwin(), init_view_files(), init_view_full_screen(), main(), new_pick_view(), popup_view(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), and view_cmd_processor().
| SplitLine View::cur |
flag - wrap lines longer than window width split line structure for current line displayed
Definition at line 202 of file view.h.
Referenced by display_line(), display_split_line(), fmt_line(), log_cc_buf(), log_split_lines(), log_stripped_line_out(), prev_page(), scroll_down(), scroll_up(), and view_display_page().
| char View::cur_file_str[MAXLEN] |
file currently open for viewing
Definition at line 125 of file view.h.
Referenced by view_cmd_processor(), view_file(), and view_init_input().
| int View::curr_argc |
current argument count when processing multiple
Definition at line 104 of file view.h.
Referenced by build_prompt(), view_cmd_processor(), and view_file().
| uint View::curx |
curx is the pad column of the cursor location
Definition at line 134 of file view.h.
Referenced by display_prompt(), get_cmd_arg(), get_cmd_char(), and view_cmd_processor().
| uint View::cury |
cury is the pad row of the cursor location
Definition at line 133 of file view.h.
Referenced by display_line(), display_line_eod(), display_split_line(), get_cmd_char(), go_to_eof(), next_page(), prev_page(), scroll_down(), scroll_up(), search(), view_cmd_processor(), and view_display_page().
| bool View::f_at_end_remove |
obsolete, unneeded
Definition at line 86 of file view.h.
Referenced by init_view_files(), and new_pick_view().
| bool View::f_bod |
beginning of data
Definition at line 111 of file view.h.
Referenced by new_view_file(), scroll_down(), scroll_up(), and view_file().
| bool View::f_displaying_help |
currently didsplaying help information
Definition at line 117 of file view.h.
Referenced by view_cmd_processor().
| bool View::f_eod |
end of data
Definition at line 112 of file view.h.
Referenced by build_prompt(), cat_file(), fmt_line(), get_line(), go_to_eof(), new_view_file(), scroll_down(), scroll_up(), sync_ln(), view_display_page(), view_file(), and write_view_buffer().
| bool View::f_first_iter |
first iteration of search
Definition at line 118 of file view.h.
Referenced by search(), and view_cmd_processor().
| bool View::f_full_screen |
default mode if lines and columns not specified
Definition at line 120 of file view.h.
Referenced by init_view_boxwin(), init_view_full_screen(), popup_view(), view_cmd_processor(), and view_file().
| bool View::f_help_spec |
output file verified
Definition at line 157 of file view.h.
Referenced by init_view_files(), new_pick_view(), and view_display_help().
| bool View::f_ignore_case |
View - ignore case in search
Definition at line 85 of file view.h.
Referenced by init_view_files(), new_pick_view(), search(), and view_cmd_processor().
| bool View::f_in_pipe |
| bool View::f_is_pipe |
input is from a pipe
Definition at line 114 of file view.h.
Referenced by build_prompt(), and view_cmd_processor().
| bool View::f_ln |
flag - number lines
Definition at line 193 of file view.h.
Referenced by display_line(), display_line_eod(), display_split_line(), fmt_line(), init_view_files(), new_pick_view(), scroll_down(), scroll_up(), view_calc_boxwin_dimensions(), view_cmd_processor(), and view_display_page().
| bool View::f_multiple_cmd_args |
| bool View::f_redisplay_page |
flag indicating page needs to be redisplayed
Definition at line 116 of file view.h.
Referenced by view_cmd_processor(), and view_display_help().
| bool View::f_search_complete |
Entire file has been searched
Definition at line 119 of file view.h.
Referenced by search(), and view_cmd_processor().
| bool View::f_squeeze |
View - print one line for each group of blank lines
Definition at line 87 of file view.h.
Referenced by get_line(), init_view_files(), new_pick_view(), and view_cmd_processor().
| bool View::f_strip_ansi |
strip ansi escape sequences when writing buffer
Definition at line 88 of file view.h.
Referenced by view_cmd_processor().
| bool View::f_timer |
| char View::fg_clr_x[COLOR_LEN] |
| char View::file_name[MAXLEN] |
basename of file being viewed
Definition at line 115 of file view.h.
Referenced by build_prompt(), and view_init_input().
| off_t View::file_pos |
current file position
Definition at line 162 of file view.h.
Referenced by get_line(), go_to_eof(), go_to_line(), go_to_mark(), go_to_percent(), go_to_position(), increment_ln(), new_view_file(), next_page(), sync_ln(), view_cmd_processor(), view_display_page(), and view_file().
| off_t View::file_size |
size of file being viewed
Definition at line 161 of file view.h.
Referenced by build_prompt(), destroy_pick_view(), go_to_eof(), go_to_percent(), new_view_file(), next_page(), search(), view_file(), and view_init_input().
| char* View::file_spec_ptr |
pointer to current file spec
Definition at line 158 of file view.h.
Referenced by view_cmd_processor(), and view_file().
| uint View::first_match_x |
| int View::h_shift |
horizontal scroll shift width
Definition at line 108 of file view.h.
Referenced by init_view_files(), new_pick_view(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), and view_cmd_processor().
| char View::help_spec[MAXLEN] |
help file spec
Definition at line 154 of file view.h.
Referenced by init_view_files(), new_pick_view(), and view_display_help().
| int View::in_fd |
input file descriptor
Definition at line 175 of file view.h.
Referenced by enter_file_spec(), and view_init_input().
| char View::in_spec[MAXLEN] |
input file spec
Definition at line 152 of file view.h.
Referenced by view_cmd_processor(), and write_view_buffer().
| uint View::last_match_x |
| char* View::line_in_beg_p |
pointer used in matching search targets
Definition at line 131 of file view.h.
Referenced by get_line().
| char* View::line_in_end_p |
pointer used in matching search targets
Definition at line 132 of file view.h.
Referenced by get_line().
| char View::line_in_s[PAD_COLS] |
raw input line from buffer
Definition at line 126 of file view.h.
Referenced by fmt_line(), get_line(), and write_view_buffer().
| char* View::line_out_p |
| char View::line_out_s[PAD_COLS] |
| uint View::lines |
number of lines for window size
Definition at line 72 of file view.h.
Referenced by enter_file_spec(), init_view_boxwin(), init_view_files(), init_view_full_screen(), new_pick_view(), popup_view(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), and view_cmd_processor().
| char View::ln_bg_clr_x[COLOR_LEN] |
| char View::ln_clr_x[COLOR_LEN] |
| off_t View::ln_max_pos |
position of last page number increment
Definition at line 200 of file view.h.
Referenced by destroy_line_table(), increment_ln(), initialize_line_table(), new_view_file(), sync_ln(), and view_file().
| off_t View::ln_no |
line number
Definition at line 194 of file view.h.
Referenced by destroy_line_table(), display_line(), display_line_eod(), display_split_line(), fmt_line(), get_line(), go_to_eof(), go_to_line(), go_to_percent(), go_to_position(), increment_ln(), initialize_line_table(), new_view_file(), next_page(), prev_page(), scroll_down(), scroll_up(), search(), sync_ln(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), view_cmd_processor(), and view_display_page().
| off_t View::ln_no_max |
last line number
Definition at line 195 of file view.h.
Referenced by go_to_eof(), prev_page(), and scroll_down().
| off_t* View::ln_tbl |
line number table - array of file positions
Definition at line 197 of file view.h.
Referenced by build_prompt(), destroy_line_table(), get_line(), go_to_line(), go_to_percent(), go_to_position(), increment_ln(), initialize_line_table(), line_number(), next_page(), and sync_ln().
| off_t View::ln_tbl_cnt |
number of entries used in line_tbl
Definition at line 199 of file view.h.
Referenced by increment_ln(), and sync_ln().
| off_t View::ln_tbl_size |
number of entries allocated in line_tbl
Definition at line 198 of file view.h.
Referenced by destroy_line_table(), go_to_line(), increment_ln(), initialize_line_table(), line_number(), and write_view_buffer().
| uint View::ln_win_cols |
number of columns in line number window
Definition at line 192 of file view.h.
Referenced by fmt_line(), init_view_boxwin(), init_view_full_screen(), view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| uint View::ln_win_lines |
number of lines in line number window
Definition at line 191 of file view.h.
Referenced by view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| char* View::lnbuf_curr_ptr |
| char* View::lnbuf_end_ptr |
| off_t View::mark_tbl[NMARKS] |
not implemented
Definition at line 173 of file view.h.
Referenced by go_to_mark(), view_cmd_processor(), and view_init_input().
| uint View::maxcol |
length of longest line on pad
Definition at line 137 of file view.h.
Referenced by build_prompt(), fmt_line(), new_view_file(), next_page(), view_cmd_processor(), and view_file().
| int View::next_cmd_char |
index of next character in cmd string to process when building prompt
Definition at line 109 of file view.h.
Referenced by view_cmd_processor().
| char* View::next_file_spec_ptr |
pointer to next file spec
Definition at line 159 of file view.h.
Referenced by view_cmd_processor(), and view_file().
| int View::optind |
| int View::out_fd |
| char View::out_spec[MAXLEN] |
output file spec
Definition at line 153 of file view.h.
Referenced by view_cmd_processor(), and write_view_buffer().
| off_t View::page_bot_end_pos |
file position of last line displayed
Definition at line 166 of file view.h.
Referenced by view_display_page().
| off_t View::page_bot_ln_no |
line number of last line displayed
Definition at line 170 of file view.h.
Referenced by build_prompt(), display_line(), display_line_eod(), display_split_line(), new_view_file(), scroll_down(), scroll_up(), search(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), view_display_page(), and view_file().
| off_t View::page_bot_pos |
file position of last line displayed
Definition at line 165 of file view.h.
Referenced by build_prompt(), go_to_line(), go_to_percent(), new_view_file(), view_cmd_processor(), view_display_page(), and view_file().
| bool View::page_bot_sl |
flag - flag bottom line split
Definition at line 204 of file view.h.
Referenced by display_split_line(), scroll_down(), scroll_up(), and view_display_page().
| uint View::page_bot_sl_cnt |
flag - bottom line split count
Definition at line 208 of file view.h.
Referenced by display_split_line(), scroll_down(), and scroll_up().
| uint View::page_bot_sl_idx |
flag - bottom line split index
Definition at line 206 of file view.h.
Referenced by display_split_line(), scroll_down(), and scroll_up().
| off_t View::page_top_ln_no |
line number of top line displayed
Definition at line 169 of file view.h.
Referenced by build_prompt(), display_line(), display_split_line(), go_to_eof(), go_to_percent(), new_view_file(), next_page(), prev_page(), scroll_down(), scroll_up(), search(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), view_display_page(), and view_file().
| off_t View::page_top_pos |
file position of top line displayed
Definition at line 164 of file view.h.
Referenced by build_prompt(), go_to_line(), go_to_percent(), new_view_file(), view_cmd_processor(), and view_file().
| bool View::page_top_sl |
flag - flag top line split
Definition at line 203 of file view.h.
Referenced by display_split_line(), prev_page(), scroll_down(), scroll_up(), and view_display_page().
| uint View::page_top_sl_cnt |
flag - top line split count
Definition at line 207 of file view.h.
Referenced by display_split_line(), prev_page(), scroll_down(), and scroll_up().
| uint View::page_top_sl_idx |
flag - top line split index
Definition at line 205 of file view.h.
Referenced by display_split_line(), prev_page(), scroll_down(), scroll_up(), and view_display_page().
| uint View::pmincol |
first pad column displayed in view window
Definition at line 139 of file view.h.
Referenced by build_prompt(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), and view_cmd_processor().
| uint View::pminrow |
first pad row displayed in view window
Definition at line 138 of file view.h.
Referenced by view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| off_t View::prev_file_pos |
previous file position
Definition at line 163 of file view.h.
Referenced by view_cmd_processor(), and view_init_input().
| char View::prompt_str[MAXLEN] |
prompt string for chyron
Definition at line 80 of file view.h.
Referenced by build_prompt(), get_cmd_char(), new_view_file(), and view_cmd_processor().
| char View::provider_cmd[MAXLEN] |
command provides input
Definition at line 76 of file view.h.
Referenced by init_view_files(), new_view_file(), and view_init_input().
| char View::receiver_cmd[MAXLEN] |
command receives output
Definition at line 77 of file view.h.
Referenced by init_view_files(), and new_pick_view().
| uint View::scroll_lines |
number of lines to scroll
Definition at line 135 of file view.h.
Referenced by display_line(), display_split_line(), go_to_eof(), go_to_percent(), init_view_boxwin(), init_view_full_screen(), prev_page(), scroll_down(), scroll_up(), search(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), view_cmd_processor(), and view_display_page().
| UiSurface* View::sfc |
pointer to UI surface structure
Definition at line 101 of file view.h.
Referenced by destroy_pick_view(), display_line(), display_line_eod(), display_prompt(), display_split_line(), get_cmd_arg(), get_cmd_char(), init_view_boxwin(), init_view_full_screen(), new_view_file(), scroll_down(), scroll_up(), search(), view_boxwin_resize(), view_cmd_processor(), view_display_page(), view_file(), and view_full_screen_resize().
| uint View::smaxcol |
screen position of last column of pad displayed in view window
Definition at line 146 of file view.h.
Referenced by view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| uint View::smaxrow |
screen position of last row of pad displayed in view windiow
Definition at line 144 of file view.h.
Referenced by view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| uint View::smincol |
screen position of first column of pad displayed in view window
Definition at line 142 of file view.h.
Referenced by view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| uint View::sminrow |
screen position of first row of pad displayed in view window
Definition at line 140 of file view.h.
Referenced by view_calc_boxwin_dimensions(), and view_calc_full_screen_dimensions().
| off_t View::srch_beg_ln_no |
| off_t View::srch_beg_pos |
file position when search started
Definition at line 168 of file view.h.
Referenced by view_cmd_processor().
| off_t View::srch_curr_ln_no |
| off_t View::srch_curr_pos |
| FILE* View::stdin_fp |
| FILE* View::stdout_fp |
| char View::stripped_line_out[PAD_COLS] |
printable characters only
Definition at line 128 of file view.h.
Referenced by fmt_line(), and search().
| int View::tab_stop |
number of spaces between tab stops
Definition at line 107 of file view.h.
Referenced by fmt_line(), init_view_files(), new_pick_view(), and view_cmd_processor().
| char View::title[MAXLEN] |
title string for window
Definition at line 81 of file view.h.
Referenced by init_view_files(), new_view_file(), view_boxwin_resize(), and view_file().
| int View::tmp_fd |
| char* View::tmp_file_name_ptr |
pointer to temporary file spec
Definition at line 160 of file view.h.
Referenced by view_cmd_processor().
| char View::tmp_prompt_str[MAXLEN] |
| bool View::wrap |
Definition at line 201 of file view.h.
Referenced by display_line(), fmt_line(), go_to_eof(), init_view_files(), prev_page(), scroll_down(), scroll_up(), view_cmd_processor(), and view_display_page().