12 #define POPUP_BORDER 2
14 enum TaskasaurColors {
22 typedef struct PopupMenu {
27 typedef struct BoardMenu {
35 /* the ts is used to not conflict with builtin names */
36 extern int init_tscurses(void);
37 extern int exit_tscurses(void);
39 extern int curs_on(void);
40 extern int curs_off(void);
43 extern BoardMenu* create_board_menu(Board* board);
44 extern Menu** make_menus(Board* board, int todolist_length);
45 extern MenuItem** todolist_to_menuitem(TodoItem** item_list, int list_length);
46 extern Board* boardmenu_to_board(BoardMenu* boardmenu);
47 extern int render_board(Board* board);
49 extern int set_selected_menu(BoardMenu* boardmenu, int index);
50 extern int swap_menu(BoardMenu* boardmenu, int src_index, int dest_index);
53 extern int update_menuitem_descrip(MenuItem* menuitem);
55 /* popup menu for menu item */
56 extern PopupMenu* make_popupmenu(TodoItem* itemdata);
57 extern WINDOW* create_popup_win(TodoItem* item_info);
58 extern int render_popupmenu(PopupMenu* popupmenu);
59 extern MenuItem** subtasklist_to_menuitem(SubTask** subtask_list, int list_length);
62 extern int ungetstr(char* str);