summaryrefslogtreecommitdiff
path: root/src/help.c
AgeCommit message (Collapse)Author
2012-05-08Declare several parameters/variables constantLukas Fleischer
Add the "const" keyword to parameters and variables that are never modified. Most of these were spotted by "-Wwrite-strings". We cast the second parameter to execvp() explicitly as it expects a "char *const[]" where it should expect a "const char *const[]" (according to the documentation, this is due to compatibility reasons). This should be changed once we come up with a better solution. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-03-29Fix semantics of "general."{systemdialogs,progressbar}Lukas Fleischer
These were renamed from "skip_"* to *. However, we only changed syntax and didn't invert their semantic meaning. Fix this by negating the semantics of those variables. Also, negate these in the configuration file automatically when running `calcurse-upgrade`. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-03-26Update copyright rangesLukas Fleischer
Add 2012 to the copyright range for all source and documentation files. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-03-12Do not strncpy() strings returned by gettext()Lukas Fleischer
Translated strings returned by gettext() are statically allocated. There's no need to copy them to a buffer, we can use the pointers returned by gettext() instead. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-11-02Remove parentheses from return statementsLukas Fleischer
No reason to use "return (x);" here. Refer to the GNU coding guidelines for details. Created using following semantic patch: @@ expression expr; @@ - return (expr); + return expr; Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-11-02Do not cast unused return values to voidLukas Fleischer
A small style fix that removes all remaining "(void)" casts. Using these isn't encouraged in GNU coding guidelines and doesn't serve a certain purpose, except for satisfying a few static code analysis tools. We already nuked some of these in previous patches, but this semantic patch should fix what's left: @@ identifier func; @@ - (void)func ( + func ( ...); Long lines were re-formatted manually. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-11-02Avoid use of printf()/fprintf()Lukas Fleischer
Use one of the following functions where appropriate: * puts() (whenever we print hard coded strings to stdout) * fputs() (whenever we print hard coded strings to a stream) * putchar() (whenever we print a single character to stdout) * fputc() (whenever we print a single character to a stream) * strncpy() (whenever we copy hard coded strings to a buffer) This removes the overhead introduced by the format string parser and reduces the number of false positive C-format strings spotted by xgettext(1)'s heuristics. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-10-06src/help.c: Update messages referring to durationsLukas Fleischer
Fix help texts to vaguely match the new duration string formats. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-10-06Add count buffer to keys_getch()Lukas Fleischer
Key commands can be prefixed with a natural number - keys_getch() will store this number in the buffer pointed to by the second parameter. Set this parameter to NULL to disable count prefixes. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-07-07Add key binding for pipe-item commandLukas Fleischer
This removes the need of reading the whole data file and find matching entries if we want to parse appointments in external programs. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-06-28Avoid redundant redraws on resizeLukas Fleischer
Use a global flag to record whether the terminal was resized instead of redrawing everything each time a KEY_RESIZE is read. Add some additional checks to help_write_pad() as invalid actions may be passed now due to using signals instead of virtual key presses. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-22Update copyright notices in source files, documentation and "COPYING".Lukas Fleischer
* 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-03Remove dead assignments spotted by clang-analyzer.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-14Overall indentation fixes.Lukas Fleischer
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-04Update website links to match the new URL.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04Update mail addresses to match the new mailing lists.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03Remove CVS "$Id" headers.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03Avoid a segfault when resizing the help window.Lukas Fleischer
2011-03-03Fixed file permissions.Lukas Fleischer
2011-01-11Code cleanup and fixed compiler warning.Lukas Fleischer
2010-03-21Avoid concurrent screen refreshes.Frederic Culot
2010-03-20All headers gathered into a single one. Typedefs suppressed.Frederic Culot
2009-10-28Description of the scroll keys added to the generic keys help screen.Frederic Culot
2009-07-12calcurse version removed from menu titlesFrederic Culot
2009-07-05Switch to BSD license.Frederic Culot
2009-06-27Help page updated for the flag commandFrederic Culot
2009-01-04help page added to describe the cut and paste featureFrederic Culot
2009-01-03more code cleanupFrederic Culot
2008-12-28Added wrappers around libc's memory management functions, to easily debug ↵Frederic Culot
memory usage
2008-12-20new layout configuration menuFrederic Culot
2008-12-03more work on updating online help pagesFrederic Culot
2008-11-30online help pages updatedFrederic Culot
2008-11-28Online help updated to display user-defined keys.Frederic Culot
2008-11-23Building configuration menu to assign keybindingsFrederic Culot
2008-11-16More work on implementing user-definable keybindingsFrederic Culot
2008-09-21import flag and 'i' keybinding addedFrederic Culot
2008-08-11Optional 'format' option added to '-x' flag, help updatedFrederic Culot
2008-08-03new keybindings addedFrederic Culot
2008-04-20* french translation updatedFrederic Culot
* correction done in the '>' command help text
2008-04-19some memory leaks fixed using valgrind and some minor code cleanupFrederic Culot
2008-04-19Scrollbar added in general configuration menuFrederic Culot
2008-04-18Generic functions to handle scrolling windows createdFrederic Culot
2008-04-12Yet another style for source code. GNU style now used (I am fed up with tabs...)Frederic Culot
2008-02-11TODO list updatedFrederic Culot
status bar updated to display the new 'N' (edit note) and '>' (view note) keybindings online help pages added for 'N' and '>' keybindings
2007-10-21help_screen() updated to make automatic resize available inside helpFrederic Culot
screens (thanks Sebastian for reporting the problem) help_wins_reset(), help_wins_init(), help_wins_reinit() and wanted_page() created help_pages_e enum added
2007-07-28unuseful headers removed and some functions became staticFrederic Culot
2007-07-23which_pan dependency suppressed in help_screen()Frederic Culot
2007-07-21call to wins_show() updatedFrederic Culot
2007-04-04MAX_LENGTH replaced by stdio.h's BUFSIZFrederic Culot
2007-03-24help_screen() updated to add the export and flag command help textFrederic Culot