summaryrefslogtreecommitdiff
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-12 22:42:28 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-13 00:12:27 +0200
commit42c486d30d8e6f82d27651e19029e332af86cba3 (patch)
treec02b65cdda719ca0f1f30a85696737071c2b798c /src/calcurse.h
parent844d35e851b5ef51bc8c0822dbd699b619ddd194 (diff)
downloadcalcurse-42c486d30d8e6f82d27651e19029e332af86cba3.zip
Rename displacement enumeration elements
* Rename "LEFT" to "DAY_PREV", "RIGHT" to "DAY_NEXT", "UP" to "WEEK_PREV" and "DOWN" to "WEEK_NEXT" to reflect the semantics of these operations. Remove the unneeded "MOVES" element. * Reorder code to improve consistency. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index be16a98..ec6335f 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -399,10 +399,10 @@ enum key {
KEY_GENERIC_REDRAW,
KEY_GENERIC_ADD_APPT,
KEY_GENERIC_ADD_TODO,
- KEY_GENERIC_NEXT_DAY,
KEY_GENERIC_PREV_DAY,
- KEY_GENERIC_NEXT_WEEK,
+ KEY_GENERIC_NEXT_DAY,
KEY_GENERIC_PREV_WEEK,
+ KEY_GENERIC_NEXT_WEEK,
KEY_GENERIC_SCROLL_DOWN,
KEY_GENERIC_SCROLL_UP,
KEY_GENERIC_GOTO_TODAY,
@@ -534,13 +534,12 @@ enum wday {
/* Possible movements inside calendar. */
enum move {
- UP,
- DOWN,
- LEFT,
- RIGHT,
+ DAY_PREV,
+ DAY_NEXT,
+ WEEK_PREV,
+ WEEK_NEXT,
WEEK_START,
- WEEK_END,
- MOVES
+ WEEK_END
};
/* Available color pairs. */