diff options
author | mongo <andmarti@gmail.com> | 2017-04-03 16:32:04 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2017-04-03 16:32:04 -0300 |
commit | 451d00fc159a9811f036994a39d2c8646d01e7ee (patch) | |
tree | b3c6588b79d444578ef5bc668562be5f0db40c39 /src/tui.h | |
parent | e829f116491fa441452cbc77cb52e1a511fb13ba (diff) |
cleaning code. removing unneeded/comments lines. starting to isolate UI code
Diffstat (limited to 'src/tui.h')
-rw-r--r-- | src/tui.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/tui.h b/src/tui.h new file mode 100644 index 0000000..5a9de73 --- /dev/null +++ b/src/tui.h @@ -0,0 +1,33 @@ +#include <ncurses.h> +#include <wchar.h> + +extern WINDOW * main_win; +extern WINDOW * input_win; +extern int offscr_sc_rows, offscr_sc_cols; +extern unsigned int curmode; +extern struct srange * ranges; +extern struct ent ** p; + +void start_screen(); +void stop_screen(); +void do_welcome(); +void update(int header); +void show_content(WINDOW * win, int mxrow, int mxcol); +void show_sc_row_headings(WINDOW * win, int mxrow); +void show_sc_col_headings(WINDOW * win, int mxcol); +void show_celldetails(WINDOW * win); +void pad_and_align (char * str_value, char * numeric_value, int col_width, int align, int padding, wchar_t * str_out); +int get_formated_value(struct ent ** p, int col, char * value); +int calc_offscr_sc_rows(); +int calc_offscr_sc_cols(); +int calc_cols_show(); +void clr_header(WINDOW * win, int row); +void print_mode(WINDOW * win); +void print_mult_pend(WINDOW * win); +void show_cursor(WINDOW * win); +void show_header(WINDOW * win); +void handle_cursor(); +void add_cell_detail(char * d, struct ent * p1); +void write_j(WINDOW * win, const char * word, const unsigned int row, const unsigned int justif); +void yyerror(char *err); // error routine for yacc (gram.y) +void show_text(char * val); |