Commit Graph
52 Commits
Author SHA1 Message Date
mmdolze f36642ab69 Fix a segmentation fault occuring when using menu_add_item without a text
label. While there sync code and documentation about the possibility to use
a label and options.
2012-10-10 16:29:39 +00:00
mmdolze bfd35b4dfc Extend enumerations with the values used for error handling to silence more
clang warnings.
2012-04-25 19:53:15 +00:00
mmdolze a151ee0fc4 Mega change to the LCDd's header files:
1. Use <stdbool.h> if it is available but keep a compatibility shim in
   shared/defines.h in case it is not.
2. Unbreak the circular header dependencies (mostly):
   2a. client.c and client.h may NOT depend on 'struct Menu'. Use a void pointer
       and casts instead.
   2b. Separate the data type definitions in client.h and screen.h from
       function prototypes which may require other data structures. This makes
       header dependencies much more easy to maintain. Usually the data types
       should have been moved to their own files but I (mmdolze) chose to
       separate them using different header guards.
   2c. Remove many now unused header includes.
Apply (old BSD-) style on menuscreens.c.
2012-02-22 22:25:32 +00:00
toykeeper cac9a56299 updated ToyKeeper's contact info 2011-01-05 23:34:37 +00:00
mmdolze fd9b2ce713 Big cleanup: Remove trailing whitespace from files (except those imported
from external sources).
2010-10-30 18:04:21 +00:00
mmdolze f8d7efd868 Add a little more comments to hBars/vBars. 2010-05-11 20:55:23 +00:00
mmdolze 8644e5a347 Add checks for null pointer / failed malloc to menu code 2009-06-06 14:48:48 +00:00
mmdolze 54a8a63112 Partly revert previous commit. The doxygen style escape sequences look
nice on the web, but make the source comments really hard to read.
Therefore copy the command descriptions preformatted to html.
2009-05-14 18:13:29 +00:00
mmdolze 92185c9ea0 Update comments for server commands to doxygen style 2009-03-22 09:15:25 +00:00
marschap 064ed18866 plug memory leak around argv2string() (patch by Andre Guibert de Bruet) 2008-12-13 08:03:53 +00:00
marschap d326841b37 add path to Doxygen headers 2008-11-30 22:42:34 +00:00
marschap dcc643ec18 extend deletion functions in LL.c, use them to make "bye" client command work 2008-11-30 15:30:28 +00:00
marschap 0dde525a46 first steps towards supporting the "bye" command 2008-11-28 18:34:10 +00:00
marschap 8c8e12364d fix interpretation of numeric priorities (Andrew M. Bishop) 2008-09-17 06:31:33 +00:00
marschap 0a955208e3 nicer comment 2007-10-09 16:27:54 +00:00
marschap fb3deae51b avoid sending duplicate success result for extended menu_add_item client command 2007-10-09 16:23:30 +00:00
marschap 7c023ce1b1 silence a warning 2007-10-04 13:57:09 +00:00
marschap a5bdc61ad8 code & style cleanup 2007-06-23 21:41:50 +00:00
marschap 0e6b1253a9 a few changes to better support gcc 2.95 (paul_c) 2007-05-28 17:55:59 +00:00
marschap 08bb695d8d add 'bye' command (currently ignored), harmonize errors due to wrong number of arguments 2006-05-07 16:49:31 +00:00
marschap d4a3e7444d cleanup: remove unnecessary (=invisible) leading spaces 2006-04-27 15:10:59 +00:00
marschap 587085a292 clarification: get_info() returns const char * 2006-04-12 08:12:13 +00:00
marschap 1c1ade5f56 update screen_set usage 2006-04-05 06:00:25 +00:00
marschap 0765fb4c81 fix syntax: priorities aren't numeric any more 2006-03-29 11:42:19 +00:00
marschap 8acd3f9564 increase buffer for client name; spotted by M. Dolze; original patch by A. Foss 2006-03-28 10:57:38 +00:00
marschap aeffd250a1 require automake 1.7 in condifure.in; update all Makefile.am: add comments,
replace obsoleted INCLUDES by AM_CPPFLAGS
2006-01-16 19:36:58 +00:00
boercher d0b137d5a5 - new option -prev, corrections for option -next
- clients gets more information if an error occurs
- use sock_printf() and sock_printf_error() if necessary
2005-07-17 16:14:22 +00:00
boercher 93f162ff48 - new socket function sock_send_error() and
sock_printf_error(): factored out the 'huh?-stuff, added error report
 log)
- use sock_printf() and sock_printf_error() if necessary (no need to
  use sprintf())
2005-07-17 16:14:07 +00:00
marschap f9d35cad9e remove unused code, cleanup & shorten parse_message() function;
hide commands[] table; make it's contents accessible using a function
2005-06-28 17:12:30 +00:00
boercher 24fa24b86d - new option -next
- option -parent is marked as for menus only
2005-06-01 22:44:39 +00:00
marschap 3771a8273e added .cvsignore files, thanks to Volker Boerchers for his contribution 2005-05-22 07:16:48 +00:00
marschap a6ddf8b990 new menu_set options: -parent and -is_hidden
So all types ahve the following options:
 -text "text"                        ("")
     Sets the visible text.
 -is_hidden false|true       (false)
     If the item currently should not appear in a menu.
 -parent id                  ()
     Sets the parent of this item.

Additionally menu_goto accepts an optional <parentid>
arg. (V.Boerchers)
2005-05-20 09:44:47 +00:00
marschap 30d5d97c68 new: 'menu_set_main' (V.Boerchers) 2005-05-20 09:44:37 +00:00
marschap 28f812bef8 - implemented menuevents enter+leave
- new method menuitem_get_client()
- more maintainable way to specify count of enums
- corrected some typos (VB)
2005-04-05 07:28:35 +00:00
marschap 7f8d84f026 added IP address input method to menus by Jeff Costlow, f5
(IPv6 support is not in good shape yet)
a few more bug fixes, more error checks
extended input methods using more key (left, righ) if they are available
2005-03-13 21:23:56 +00:00
marschap 846b6fb740 more error checks in menuitem.c
option value in ALPHA mode is treated special in menu_commands.c
2005-03-13 13:17:32 +00:00
marschap 72bae4afde add & document D. Greaves marquee patch, clean up render.c 2004-12-30 17:34:02 +00:00
marschap 28101f649a added patches by M.Dolze:
- patch_server_widget_command
- patch_client_load
- patch_client_mem (using speed 12 instead of 8)
- patch_client_mode
2004-12-19 15:19:07 +00:00
reenoo ef2dfe0aae fix buffer overflow and format string vulnerabilities 2004-04-13 18:50:36 +00:00
gfk d3223644a2 Portability: patch by Christian Grigis <christian.grigis@smartdata.ch> to allow building the software from a directory different 2003-08-02 00:37:10 +00:00
blt b5f750f4f3 Remove unnecessary #include dlfcn.h 2003-07-20 01:22:13 +00:00
robijn 71922063b8 Change to priority classes. Will probably require some fixings.
- Now using priority classes internally and in protocol
- Converting (depreciated) priorty numbers to the classes BACKGROUND,
  INFO and FOREGROUND
- Added menu_goto command (only works when menu not active)
2003-02-27 21:20:20 +00:00
robijn bcee881c3a Fixed bug on cursor on/off command. 2002-07-17 22:07:41 +00:00
robijn c8fc08f6e3 Reporting cleaned up and levels made more consistent. 2002-07-14 20:30:33 +00:00
robijn 1156c51062 Menu stuff update. Fixed some of the probably many bugs and made things a
bit more consistent.
2002-07-09 22:56:05 +00:00
robijn 8ff8857eda Added support for client supplied menus.
Also modified existing menustuff slightly (on some points I made some
things more consistent).
2002-06-28 23:35:55 +00:00
robijn 78d8886c47 Icon command is now really processed and icons are rendered.
Also updated icon code in curses_drv a bit.
2002-05-20 21:25:17 +00:00
robijn 7c49cb535c Added some icon definitions in lcd.h;
Using ICON_BLOCK_FILLED now in titles.
2002-05-18 23:42:46 +00:00
gfk 0f5b336514 Added a newline at the end of these files, because gcc was complaining about it. 2002-04-29 23:27:24 +00:00
robijn 1e8746a62f Inccorectly added server/commands/Makefile.in. .am was needed. 2002-04-26 00:12:38 +00:00