// Copyright (c) 2003,2004,2005 Juraj Kolesár #include "../lib/lt.h" #define LOCAL_ESCAPE_KEY 27 //old should be removed but not tested to compile without #define __TT_STR_MAX 256 //maximum length of input string #define __TT_GET_NUM_MAX 10 //maximum length(size) of number input #define __TT_NULL 0 #define __TT_OK 0 #define __TT_ERR -1 #define __TT_ENTER 10 #define __TT_ESC 27 #define __TT_TAB 9 #define __TT_SHIFT_TAB 4 #define __TT_INS 331 #define __TT_SPACE 32 #define __TT_NEXT KEY_DOWN #define __TT_PREVIOUS KEY_UP #define __TT_DOWN KEY_DOWN #define __TT_UP KEY_UP #define __TT_LEFT KEY_LEFT #define __TT_RIGHT KEY_RIGHT #define __TT_BACKSPACE KEY_BACKSPACE #define __TT_DEL KEY_DC //exit codes after key pressing /* POS {{{ ********************************************************************/ struct tt_pos { WINDOW * win; int y; int x; }; typedef struct tt_pos POS; #define GET_POS(pos) pos.win, pos.y, pos.x #define SET_POS(pos, Mwin, My, Mx) pos.win = Mwin; pos.y = My; pos.x = Mx #define OFFSET_POS(pos, My, Mx) pos.y += My; pos.x += Mx /* it is structure for describing POSition on screen acording to ncurses library /* }}} */ #include "tt_str.h" #include "tt_datum.h" #include "tt_table.h" #include "tt_menu.h" #include "tt_label.h" //#include "tt_get_number.h"