Lukas Fleischer
9e60084262
Add todo_pipe_item() function
...
Pipe a serialized todo item to an external process, similar to what
day_pipe_item() does (cf. c3f532d814e555abf67efb136491956428f19965).
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-07-05 16:25:32 +02:00
Lukas Fleischer
3076670a76
Refactor out todo item serialization
...
Add a todo_write() function that allows one to serialize todo items and
write serialized data to an output stream in a fashion similar to
apoint_write() and event_write().
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-07-02 10:15:35 +02:00
Lukas Fleischer
e85501e5ef
Use constant for maximum UTF-8 character size
...
Introduce a UTF8_MAXLEN constant instead of using the literal value "6"
at various places.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-07-02 10:09:13 +02:00
Lukas Fleischer
c4246779ff
Make display_todo_item() UTF-8 compatible
...
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-07-02 10:08:46 +02:00
Lukas Fleischer
38865b8e48
Update copyright notices in source files, documentation and "COPYING".
...
* Update copyright dates (use 2004-2011 as date range everywhere).
* Change copyright holder from "Frederic Culot" to "calcurse Development
Team".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-22 07:26:05 +02:00
Lukas Fleischer
621b335179
Return -1 in io_file_is_empty() if file cannot be accessed.
...
Ensure files don't appear as empty if fopen() fails (e.g. on temporary
EACCES failures).
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-22 02:47:38 +02:00
Lukas Fleischer
bf431d6cd9
Use generic lists for todo items.
...
Use the new generic list implementation instead of "next" pointers in
todo items.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-19 11:42:34 +02:00
Lukas Fleischer
b9c1969126
Drop empty notes after editing.
...
Keeping empty notes doesn't make sense here. Also, there doesn't seem to
be a simple way to erase notes yet. This will make calcurse delete any
notes that are empty (meaning that they are either 0-byte files or
contain nothing but a newline character) when returning from the editor.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-12 12:02:23 +02:00
Lukas Fleischer
6fb0f6f4c6
Compare pointers to "NULL" instead of "0".
...
"bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php .
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-05 09:27:04 +02:00
Lukas Fleischer
5b12c236cf
Remove dead assignments spotted by clang-analyzer.
...
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-03 22:09:00 +02:00
Lukas Fleischer
9c9fd5da15
Overall indentation fixes.
...
Use spaces instead of tabs for source code indentation only, strip
trailing whitespaces from lines.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-14 19:03:53 +01:00
Lukas Fleischer
c22dcaf6be
Update website links to match the new URL.
...
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:07:49 +01:00
Lukas Fleischer
73e9649387
Update mail addresses to match the new mailing lists.
...
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:07:40 +01:00
Lukas Fleischer
91c9cac898
Remove CVS "$Id" headers.
...
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 16:19:45 +01:00
Lukas Fleischer
56b9cbcb84
Fixed file permissions.
2011-03-03 12:21:16 +01:00
Frederic Culot
a8cb1c92ef
All headers gathered into a single one. Typedefs suppressed.
2010-03-20 10:54:41 +00:00
Frederic Culot
5dcc213c16
Make use of erase_note() whenever possible.
2009-07-19 08:19:37 +00:00
Frederic Culot
5694955002
stdbool header removed, unsigned type used instead
2009-07-12 16:21:57 +00:00
Frederic Culot
27b25548a4
Switch to BSD license.
2009-07-05 20:33:13 +00:00
Frederic Culot
ea107cfd81
Ability to flag todo items as completed.
2009-06-26 21:44:11 +00:00
Frederic Culot
936b6fe373
more code cleanup
2009-01-03 21:32:10 +00:00
Frederic Culot
aa7d6c5eb7
various bugfixes
2009-01-02 19:52:32 +00:00
Frederic Culot
5352496984
Added wrappers around libc's memory management functions, to easily debug memory usage
2008-12-28 13:13:58 +00:00
Frederic Culot
b1d3178bba
small bugfixes and a major one (freeze when deleting an appointment's note, thanks Jan for reporting it)
2008-12-15 20:02:00 +00:00
Frederic Culot
53db22a380
code cleanup
2008-12-12 20:44:50 +00:00
Frederic Culot
7ff22e9b3f
color configuration menu adapted to handle user-defined key bindings
2008-12-08 19:17:06 +00:00
Frederic Culot
639058740a
Checks added while loading key bindings configuration.
2008-12-07 09:20:38 +00:00
Frederic Culot
9d4899110a
More work on implementing user-definable keybindings
2008-11-16 17:42:53 +00:00
Frederic Culot
e8f12c65ca
Loading of user-configurable keys implemented
2008-11-09 20:10:18 +00:00
Frederic Culot
2341c90003
some memory leaks fixed using valgrind and some minor code cleanup
2008-04-19 21:04:47 +00:00
Frederic Culot
efd782699b
Yet another style for source code. GNU style now used (I am fed up with tabs...)
2008-04-12 21:14:03 +00:00
Frederic Culot
54e2b815ec
no more segfault when changing item priority (fixes Debian Bug #469297 )
2008-04-04 21:31:20 +00:00
Frederic Culot
407a262938
Code parts related to item update rewritten
2008-01-20 10:45:38 +00:00
Frederic Culot
738a3a4170
Ability to attach notes to appointments and events added
2008-01-13 12:40:45 +00:00
Frederic Culot
b7115fbcf2
Notes attached to todos can now be suppressed
2007-12-31 17:36:34 +00:00
Frederic Culot
478b2762e6
Ability to attach notes to todo items added
2007-12-30 16:27:58 +00:00
Frederic Culot
53ead324ad
routines updated to handle new window_t and window_e types
2007-10-21 13:42:34 +00:00
Frederic Culot
9ee3eecfa6
hilt_tod moved to static variable hilt
...
todo_hilt(), todo_hilt_set(), todo_hilt_decrease(), todo_hilt_increase(),
todo_saved_mesg(), todo_nb(), todo_set_nb(), todo_set_first(),
todo_first_increase(), todo_first_decrease(), todo_hilt_pos() added
2007-08-15 15:35:25 +00:00
Frederic Culot
4b987f70ac
unuseful headers removed and some functions became static
2007-07-28 13:11:42 +00:00
Frederic Culot
d069415d0d
todo_update_panel() and todo_delete() added
2007-07-21 19:35:40 +00:00
Frederic Culot
2496888682
MAX_LENGTH replaced by stdio.h's BUFSIZ
2007-04-04 19:38:18 +00:00
Frederic Culot
f82590c811
global variable 'colr' suppressed
2007-03-10 15:54:24 +00:00
Frederic Culot
6bbf3e5f2e
use of getstring() defines
2007-01-16 07:49:54 +00:00
Frederic Culot
9d7650295c
strcpy replaced by strncpy
2006-12-15 15:25:09 +00:00
Frederic Culot
86dbf7b63d
bugfix: call to getstring() corrected in todo_new_item()
2006-12-13 09:32:22 +00:00
Frederic Culot
cf1a0713e7
todo_edit_item() created
2006-11-02 13:43:36 +00:00
Frederic Culot
0cfe1182f6
getstring() call in todo_new_item() updated
2006-10-28 10:35:55 +00:00
Frederic Culot
cc95f9f8ef
fixed a possible infinite loop in todo_get_position()
2006-09-02 09:20:35 +00:00
Frederic Culot
bdbc063e9e
todo_insert() suppressed
...
todo_new_item() updated to ask for priority
todo_add() updated to sort items by priority order
todo_get_priority(), todo_get_item() and todo_get_position() created
2006-08-31 18:47:54 +00:00
Frederic Culot
bcb08b329d
add_todo() moved from calcurse.c to todo_new_item()
2006-08-30 17:48:41 +00:00