From 1a4bf2b0a2a54393c401522611f85c2637d1de88 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 17 Jan 2016 20:04:25 +0100 Subject: Add a "hide completed" view to the todo panel Add a second view to the todo panel that hides all completed items. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 2b5b055..27fcc68 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -425,13 +425,20 @@ struct day_item { union aptev_ptr item; }; -/* Available view for the calendar panel. */ +/* Available views for the calendar panel. */ enum { CAL_MONTH_VIEW, CAL_WEEK_VIEW, CAL_VIEWS }; +/* Available views for the todo panel. */ +enum { + TODO_SHOW_COMPLETED_VIEW, + TODO_HIDE_COMPLETED_VIEW, + TODO_VIEWS +}; + struct notify_app { long time; int got_app; @@ -1009,7 +1016,7 @@ int string_printf(struct string *, const char *, ...); /* todo.c */ extern llist_t todolist; -struct todo *todo_get_item(int); +struct todo *todo_get_item(int, int); struct todo *todo_add(char *, int, char *); char *todo_tostr(struct todo *); char *todo_hash(struct todo *); @@ -1062,6 +1069,8 @@ void ui_todo_popup_item(void); void ui_todo_flag(void); void ui_todo_view_note(void); void ui_todo_edit_note(void); +void ui_todo_view_prev(void); +void ui_todo_view_next(void); /* utf8.c */ int utf8_width(char *); -- cgit v1.2.3-54-g00ecf