aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-11-30 08:12:23 +0000
committerFrederic Culot <calcurse@culot.org>2006-11-30 08:12:23 +0000
commitfdcf66ac0fd5a1a070167c5354f9b81bf01b9476 (patch)
tree08cf5a3554cf7bd0936dc627a5b714a61b520f0e /src
parent2f676cbe2a51e9495f56bdb561cdfbbff6ff5ecd (diff)
downloadcalcurse-fdcf66ac0fd5a1a070167c5354f9b81bf01b9476.tar.gz
calcurse-fdcf66ac0fd5a1a070167c5354f9b81bf01b9476.zip
'Edit Itm' command added in the status bar
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils.c20
-rwxr-xr-xsrc/utils.h6
2 files changed, 15 insertions, 11 deletions
diff --git a/src/utils.c b/src/utils.c
index aace87d..7680b91 100755
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,4 +1,4 @@
-/* $calcurse: utils.c,v 1.14 2006/11/28 15:28:43 culot Exp $ */
+/* $calcurse: utils.c,v 1.15 2006/11/30 08:13:03 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -455,9 +455,9 @@ void scroller(WINDOW *win, char *mesg, int x, int y, int nb_row, int nb_col)
/*
* Draws the status bar.
- * To add a keybinding, insert it in the 'keys' and 'labels' tables,
- * and update the NB_CAL_CMDS, NB_APP_CMDS or NB_TOD_CMDS defines
- * in utils.h, depending on which panel the added keybind is assigned to.
+ * To add a keybinding, insert a new binding_t item, add it in the *binding
+ * table, and update the NB_CAL_CMDS, NB_APP_CMDS or NB_TOD_CMDS defines in
+ * utils.h, depending on which panel the added keybind is assigned to.
*/
void status_bar(int which_pan, int colr, int nc_bar, int nl_bar)
{
@@ -470,6 +470,7 @@ void status_bar(int which_pan, int colr, int nc_bar, int nl_bar)
binding_t save = { " S", _("Save") };
binding_t add = { " A", _("Add Item") };
binding_t del = { " D", _("Del Item") };
+ binding_t edit = { " E", _("Edit Itm") };
binding_t day = { "H/L", _("-+1 Day") };
binding_t week = { "K/J", _("-+1 Week") };
binding_t updn = { "K/J", _("Up/Down") };
@@ -491,11 +492,14 @@ void status_bar(int which_pan, int colr, int nc_bar, int nl_bar)
&help, &quit, &save, &togo, &day, &week, &tab, &conf, &draw,
&appt, &todo, &othr, &eday, &ewek, &othr,
/* appointment keys */
- &help, &quit, &save, &togo, &add, &del, &view, &rept, &updn,
- &tab, &conf, &othr, &draw, &appt, &todo, &eday, &ewek, &othr,
+ &help, &quit, &save, &togo, &add, &del, &edit, &view, &rept,
+ &updn, &tab, &othr, &conf, &draw, &appt, &todo, &eday, &ewek,
+ &othr,
/* todo keys */
- &help, &quit, &save, &togo, &add, &del, &view, &prio, &updn,
- &tab, &conf, &othr, &draw, &appt, &todo, &eday, &ewek, &othr };
+ &help, &quit, &save, &togo, &add, &del, &edit, &view, &prio,
+ &updn, &tab, &othr, &conf, &draw, &appt, &todo, &eday, &ewek,
+ &othr
+ };
/* Total length of a command. */
cmd_length = KEY_LENGTH + LABEL_LENGTH;
diff --git a/src/utils.h b/src/utils.h
index 4c8a0fc..14e5607 100755
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,4 +1,4 @@
-/* $calcurse: utils.h,v 1.8 2006/11/02 13:39:36 culot Exp $ */
+/* $calcurse: utils.h,v 1.9 2006/11/30 08:12:23 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -33,8 +33,8 @@
#define SPC 32 /* ASCII code for white space */
#define NB_CAL_CMDS 15 /* number of commands while in cal view */
-#define NB_APP_CMDS 18 /* same thing while in appointment view */
-#define NB_TOD_CMDS 18 /* same thing while in todo view */
+#define NB_APP_CMDS 19 /* same thing while in appointment view */
+#define NB_TOD_CMDS 19 /* same thing while in todo view */
#define TOTAL_CMDS NB_CAL_CMDS + NB_APP_CMDS + NB_TOD_CMDS
#define NB_PANELS 3 /* 3 panels: CALENDAR, APPOINTMENT, TODO */
#define CMDS_PER_LINE 6 /* max number of commands per line */