]> Pileus Git - lackey/blob - views/edit.c
8e8c87177ec64d3c43205c70da0170e1e5bd638b
[lackey] / views / edit.c
1 /*
2  * Copyright (C) 2013 Andy Spencer <andy753421@gmail.com>
3  *
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.
8  *
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.
13  *
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/>.
16  */
17
18 #include <string.h>
19 #include <ncurses.h>
20
21 #include "util.h"
22 #include "conf.h"
23 #include "date.h"
24 #include "cal.h"
25 #include "view.h"
26
27 /* Static data */
28 static WINDOW *win;
29
30 /* Edit init */
31 void edit_init(WINDOW *_win)
32 {
33         win = _win;
34 }
35
36 /* Edit init */
37 void edit_size(int rows, int cols)
38 {
39 }
40
41 /* Edit draw */
42 void edit_draw(void)
43 {
44         mvwprintw(win, 1, 1, "Edit\n");
45 }
46
47 /* Edit run */
48 int edit_run(int key, mmask_t btn, int row, int col)
49 {
50         return 0;
51 }