aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vars.h')
-rwxr-xr-xsrc/vars.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/vars.h b/src/vars.h
new file mode 100755
index 0000000..d9bb13e
--- /dev/null
+++ b/src/vars.h
@@ -0,0 +1,69 @@
+/* $calcurse: vars.h,v 1.1 2006/07/31 21:00:03 culot Exp $ */
+
+/*
+ * Calcurse - text-based organizer
+ * Copyright (c) 2004-2006 Frederic Culot
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Send your feedback or comments to : calcurse@culot.org
+ * Calcurse home page : http://culot.org/calcurse
+ *
+ */
+
+#ifndef CALCURSE_VARS_H
+#define CALCURSE_VARS_H
+
+#include <ncurses.h>
+#include <stdbool.h>
+
+#define DIR_NAME ".calcurse"
+#define TODO_PATH ".calcurse/todo"
+#define APTS_PATH ".calcurse/apts"
+#define CONF_PATH ".calcurse/conf"
+
+#define MAX_LENGTH 512
+
+#define CTRL(x) ((x) & 0x1f)
+
+#define ATTR_FALSE 0
+#define ATTR_TRUE 1
+#define ATTR_LOWEST 2
+#define ATTR_LOW 3
+#define ATTR_MIDDLE 4
+#define ATTR_HIGH 5
+#define ATTR_HIGHEST 6
+
+struct pad_s {
+ int width;
+ int length;
+ int first_onscreen; /* first line to be displayed inside window */
+ WINDOW *ptrwin; /* pointer to the pad window */
+};
+
+extern int col, row;
+extern bool colorize;
+extern int days[12];
+extern char *monthnames[12];
+extern char *daynames[8];
+extern char path_dir[MAX_LENGTH];
+extern char path_todo[MAX_LENGTH];
+extern char path_apts[MAX_LENGTH];
+extern char path_conf[MAX_LENGTH];
+extern WINDOW *awin, *cwin, *twin, *swin;
+extern struct pad_s *apad;
+
+#endif /* CALCURSE_VARS_H */