2 * Copyright (C) 2012-2013 Andy Spencer <andy753421@gmail.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
32 #define SHOW_DETAILS 0x1
33 #define SHOW_ACTIVE 0x2
44 extern int COMPACT; // reduce layout spacing
45 extern int MORNING; // first line to display
48 extern edit_t EDIT; // edit mode 0=cal 1=event 3=todo
51 typedef struct _win_st WINDOW;
53 /* Curses functions */
54 void wmvresize(WINDOW *win, int top, int left, int rows, int cols);
55 void wshrink(WINDOW *win, int top);
57 /* Helper functions */
58 void event_box(WINDOW *win, event_t *event, int y, int x, int h, int w);
59 void event_line(WINDOW *win, event_t *event, int y, int x, int w, int flags);
60 void todo_line(WINDOW *win, todo_t *todo, int y, int x, int w, int flags);
66 void view_config(const char *group, const char *name, const char *key, const char *value);
67 void view_edit(edit_t mode);