aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-17 20:04:25 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-18 18:04:18 +0100
commit1a4bf2b0a2a54393c401522611f85c2637d1de88 (patch)
treeba67832cbddbe7fd3a45a7797b369e8dd5d357aa /src/calcurse.h
parent2857bac97163ea43bf087e6350d44016fe1764b6 (diff)
downloadcalcurse-1a4bf2b0a2a54393c401522611f85c2637d1de88.tar.gz
calcurse-1a4bf2b0a2a54393c401522611f85c2637d1de88.zip
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 <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h13
1 files changed, 11 insertions, 2 deletions
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 *);