]> Pileus Git - lackey/blobdiff - src/view.h
Support multiple ical files
[lackey] / src / view.h
index f263353b7cce78a71c091573f7e304ad888bc603..da63b8c8179c5e9a7f8108225600bc1cc2736c41 100644 (file)
@@ -1,16 +1,16 @@
 /*
  * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
- * 
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 #define COLOR_TITLE 1
 #define COLOR_ERROR 2
 
-#define COLOR_CLASS 3
-#define COLOR_EC    4
-#define COLOR_WORK  5
-#define COLOR_OTHER 6
+#define COLOR_NEW   3
+#define COLOR_WIP   4
+#define COLOR_DONE  5
+
+#define COLOR_CLASS 6
+#define COLOR_EC    7
+#define COLOR_WORK  8
+#define COLOR_OTHER 9
+
+/* Config data */
+extern int COMPACT;
+extern int ACTIVE;
+
+/* Curses functions */
+void wmvresize(WINDOW *win, int top, int left, int rows, int cols);
+void wshrink(WINDOW *win, int top);
 
 /* Helper functions */
 void event_box(WINDOW *win, event_t *event, int y, int x, int h, int w);
 void event_line(WINDOW *win, event_t *event, int y, int x, int w, int full);
+void todo_line(WINDOW *win, todo_t *todo, int y, int x, int w, int full);
 
 /* View functions */
 void view_init(void);