History log of /freebsd-9.3-release/gnu/lib/libodialog/menubox.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 217309 12-Jan-2011 nwhitehorn

Update dialog to version 20100428. This changes the license under which
dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new
features and a new and better libdialog API. The existing libdialog will
be kept temporarily as libodialog for compatibility purposes until sade,
sysinstall and tzsetup have been either updated or replaced.

__FreeBSD_version is now 900030.

Discussed on: -current
Approved by: core
Obtained from: http://invisible-island.net/dialog


# 126257 25-Feb-2004 eric

Test data before using it.

Of course, libdialog is still chock-full of similar bugs, but it's been
multiple years and no one has any better suggestions so the bugs will just
be dealt with case-by-case.

PR: 28221


# 114603 03-May-2003 obrien

Use __FBSDID over rcsid[].


# 79843 18-Jul-2001 eric

Improve the interface provided by libdialog. Move a cursor around over
the components and trigger actions based on its position. This reduces
the need to remember the functions of various keys, and makes the
interface more consistant across library.
~


# 54720 17-Dec-1999 jkh

*Really* make space accelerators work; no wonder Brian McGovern was
confused! I fat-fingered the first commit.


# 54585 14-Dec-1999 jkh

Prevent spaces from being interpreted as accelerators.


# 46077 25-Apr-1999 imp

Use braces to avoid potentially ambiguous else clause.
main's return type is int not void.

Reviewed by: obrien and chuckr


# 30333 12-Oct-1997 jkh

Fix improperly re-entrant code which caused the menu spammage we've
been seeing since 2.2.1.
Pointed-in-the-right-direction by: phk


# 23220 28-Feb-1997 ache

Fix various overflows for items longer then menu width.
Fix cursor place after PgUp/PgDn.

Should go into 2.2
Submitted by: "Anatoly A. Orehovsky" <tolik@mpeks.tomsk.su>


# 21790 17-Jan-1997 jkh

Go on one of my periodic rampages through this code, trying to make
it DTRT. In the process, discover the usual 10-15 evil bogons which
have been lurking in it for years. This closes, for one thing, the
recent report Mike Smith made about nested checklist menus returning
with the scrolling region messed up.


# 21697 15-Jan-1997 jkh

Allow emacs-style next/prev characters as well as arrow keys so that
I can offer this as a consistent feature.


# 17098 11-Jul-1996 jkh

1. Remove some ancient bogons from when I initially added dialogMenuItem
support.
2. Have message boxes say "Continue" instead of "Exit"


# 17092 11-Jul-1996 jkh

Fix a couple of whoopers which somehow went undetected until now.


# 16973 05-Jul-1996 jkh

Add missing dialog_clear() calls.


# 15418 28-Apr-1996 jkh

Fix the OK/Cancel accellerator bogon I introduced a few days back.


# 15410 27-Apr-1996 jkh

Fix what I just broke with DITEM_LEAVE_MENU


# 15382 25-Apr-1996 jkh

More custom hackery to deal with issues discovered in sysinstall.


# 15380 25-Apr-1996 jkh

Allow some post-fire actions to be combined in ways that weren't
possible before.


# 15322 19-Apr-1996 jkh

Make the DITEM_RECREATE option work properly.


# 15290 18-Apr-1996 jkh

Remove a long-standing window leak I just noticed.


# 15289 18-Apr-1996 jkh

Remove the special-case behavior for fire actions that return
DITEM_FAILURE - formerly they would simply act as an implicit "continue",
but this is wrong. If you want this behavior, you should now return
with the DITEM_CONTINUE flag set.

Also make the semantics of DITEM_RESTORE quite a bit different - rather
than restore the screen back to pre-menu state, we restore the menu
itself. This is more correct for a variety of reasons when dealing with
nested menus (whoops!).


# 15273 16-Apr-1996 jkh

More changes to attempt to make this whole new dialog scheme more
robust. The new "fire" actions, while affording signficantly more
interactivity to libdialog, come at a cost - if the fire action trashes
the screen then you're not going to be in Kansas anymore when you
come back to the menu and there had better be considerable extra
smarts in place for coping with such a situation. These changes are my
attempt to do just that.


# 15240 13-Apr-1996 jkh

Remove some of the grot I added to try and save/restore screen contents.
This shouldn't be done here, it should be done in the client as needed.


# 15143 08-Apr-1996 jkh

Save screen before calling any fire() callbacks - you never know what
they might do to the screen.


# 15142 08-Apr-1996 jkh

Refresh dialogs if a callback action fails.


# 13135 01-Jan-1996 jkh

Next round of changes - make dialog boxes drawable at arbitrary X,Y locations
and add selection traversal callbacks so context-sensitive behavior can
even be implemented for individual menu items. These work around the two
largest issues holding me back with some of my sysinstall changes.


# 12983 22-Dec-1995 jkh

Add changes to:
o Support a new, fully backwards-compatible API for controling
individual items in dialog menus.
o Write a man page.
o Add some test code.


# 8858 30-May-1995 rgrimes

Remove trailing whitespace.


# 7203 20-Mar-1995 ache

Saved scroll fixed.


# 6818 01-Mar-1995 ache

Fix arrows printout for non-arrows keys in menubox
Move arrows printout to single kernel function
Add PgUp/PgDn/Home/End to checkbox and radiobox


# 6458 15-Feb-1995 ache

file selector, helpline, helpfile and more, with my fixes
Submitted by: wmbfmk@urc.tue.nl


# 6035 30-Jan-1995 ache

Add more range/argument checking
Submitted by: charnier@lirmm.fr


# 4658 18-Nov-1994 ache

silently restrict all boxes to LINES, COLS


# 4565 17-Nov-1994 ache

Fix original bug with wrong calculated dims for items list.
Add args check for functions when autosizing impossible.


# 4527 16-Nov-1994 ache

Full autosizing support, now you can pass -1, -1 for any
string


# 4024 31-Oct-1994 ache

Add pointer check after each newwin/subwin with error diagnostic


# 3950 28-Oct-1994 ache

Implement dialog_prgbox() function which allows run program
(via pipe) with output to dialog box


# 3740 20-Oct-1994 ache

Declare more functions externally.
Don't forget to use 'make beforeinstall'...


# 3516 11-Oct-1994 ache

This commit was generated by cvs2svn to compensate for changes in r3515,
which included commits to RCS files with non-trunk default branches.


# 3515 11-Oct-1994 ache

Make all dialog box available from C programs via functions calls