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
47 extern edit_t EDIT; // edit mode 0=cal 1=event 3=todo
49 /* Curses functions */
50 void wmvresize(WINDOW *win, int top, int left, int rows, int cols);
51 void wshrink(WINDOW *win, int top);
53 /* Helper functions */
54 void event_box(WINDOW *win, event_t *event, int y, int x, int h, int w);
55 void event_line(WINDOW *win, event_t *event, int y, int x, int w, int flags);
56 void todo_line(WINDOW *win, todo_t *todo, int y, int x, int w, int flags);
60 void view_config(const char *group, const char *name, const char *key, const char *value);
61 void view_resize(void);
63 int view_run(int key, mmask_t btn, int row, int col);
64 void view_edit(edit_t mode);