2 * Copyright (C) 2012 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/>.
35 /* Curses functions */
36 void wmvresize(WINDOW *win, int top, int left, int rows, int cols);
37 void wshrink(WINDOW *win, int top);
39 /* Helper functions */
40 void event_box(WINDOW *win, event_t *event, int y, int x, int h, int w);
41 void event_line(WINDOW *win, event_t *event, int y, int x, int w, int full);
42 void todo_line(WINDOW *win, todo_t *todo, int y, int x, int w, int full);
46 void view_resize(void);
48 int view_run(int key, mmask_t btn, int row, int col);
50 /* View init functions */
51 void day_init(WINDOW *win);
52 void week_init(WINDOW *win);
53 void month_init(WINDOW *win);
54 void year_init(WINDOW *win);
55 void events_init(WINDOW *win);
56 void todo_init(WINDOW *win);
57 void settings_init(WINDOW *win);
58 void help_init(WINDOW *win);
60 /* View size functions */
61 void day_size(int,int);
62 void week_size(int,int);
63 void month_size(int,int);
64 void year_size(int,int);
65 void events_size(int,int);
66 void todo_size(int,int);
67 void settings_size(int,int);
68 void help_size(int,int);
70 /* View draw functions */
73 void month_draw(void);
75 void events_draw(void);
77 void settings_draw(void);
80 /* View run functions */
81 int day_run(int,mmask_t,int,int);
82 int week_run(int,mmask_t,int,int);
83 int month_run(int,mmask_t,int,int);
84 int year_run(int,mmask_t,int,int);
85 int events_run(int,mmask_t,int,int);
86 int todo_run(int,mmask_t,int,int);
87 int settings_run(int,mmask_t,int,int);
88 int help_run(int,mmask_t,int,int);