Commit Graph

28 Commits

Author SHA1 Message Date
paul
d500436e5d Removed libdialog. 1995-09-16 16:25:25 +00:00
paul
110bf828a7 Add missing internal object functions, hard-coded for ncurses for now. 1995-09-13 18:04:35 +00:00
bde
6579f34131 Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.

Previously I missed dozens of Makefiles that skip the install after
using `cmp -s' to decide that the install isn't necessary.
1995-08-06 12:24:38 +00:00
rgrimes
f05428e4cd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
paul
8e1c58addb Forgot to add these. 1995-05-12 17:31:45 +00:00
paul
65e32573aa New libforms.
Bumped major number.

Ncurses backend still needs improving.
Other back-ends need to be written.
1995-05-12 17:20:06 +00:00
ats
160723cf92 Removed the y.tab.h file from the sources. It is automatically generated
from yacc.
Put the lex.c parser.c and y.tab.h into a CLEANFILES target in the
makefile, they are all generated and need to be removed on a clean.
1995-04-15 17:15:11 +00:00
jkh
837a13ef49 Tweak a few things just to show how form traversal might work fully.
Fix some spelling errors in the example.c file and make error handling
a little more explanatory.
1995-03-28 10:42:09 +00:00
jkh
ce961aa18e Include <strhash.h> instead now. 1995-03-28 10:25:13 +00:00
jkh
ecda10a06f change hash.h to strhash.h to match new convention.
Manpage for strhash functions to follow tomorrow.
1995-03-26 10:25:00 +00:00
paul
e0abbde8cf Use a hash table to hold all the bindings info rather than a linked list.
Forms now have their own local bindings table so that anything
declared within a form is local to that form. This means you can
have fields of the same name in different forms.

Added inlined attribute setting for strings e.g. "This is \bold bold"

Added entry and exit functions for fields.
1995-03-26 07:44:33 +00:00
paul
d381c0681f Pull old lex.l out of attic and update to new one. 1995-03-01 08:25:40 +00:00
paul
e5372aca25 Completely rewrite libforms so everything is done at runtime rather
than at compile time.

Should have same functionality as old libforms but with new mechanism.

Lots of new features that use the new mechanism are still to be added.
1995-03-01 08:19:06 +00:00
paul
0305d2ddc1 Implemented height field for text fields so they can now be more than
one line long.

Fixed a bug in the input field with cursor positioning at the end of
the field.

Make the print_status function available to apps so they can print
status messages.

Updated the example for the new fib parser.
1995-02-01 04:06:37 +00:00
paul
98c415953e Add all the necessary bits to use color if the terminal allows it.
You can now specify separate attributes for selected/not selected
cases individually for each field and also an attr for the form as
a whole so you can now have colored backgrounds for the form and
different coloured fields etc.

Update the example.

Change the copyright to a BSD style one.
1995-01-30 02:41:29 +00:00
paul
3d46fa5ebf Truncate any default inputs to the input width.
Update the example so it works properly.
1995-01-25 08:26:17 +00:00
paul
f30e38dd6d New example that uses the new forms language. 1995-01-25 03:34:48 +00:00
paul
dad15ae4bd Update libforms to agree with new fib. 1995-01-25 03:33:43 +00:00
ache
e5e62aa35e CFLAGS: = --> += 1995-01-24 22:09:46 +00:00
paul
d28e5686e3 Changed the example to use the forms spec file. 1995-01-24 13:29:30 +00:00
paul
d0f75ce585 Changed the example to use the forms spec file.
Made a couple of variable name changes.
1995-01-24 13:27:46 +00:00
paul
c81d36156b Added emacs ^A,^E,^B & ^F keybindings to field editor.
Changed a constant to a sizeof in test.c
1995-01-11 06:08:45 +00:00
paul
1f1323291e Change size of example form from 80x25 to 80x24 so it works
in a standard xterm.
1995-01-11 01:29:38 +00:00
jkh
dfe96532e9 As long as I can't figure out why this doesn't work, I might as well
add some error checking to it and clean this up a bit.
1995-01-10 12:36:44 +00:00
paul
f2fb5b52fa Place the cursor better on buttons.
Stop field display attributes getting clobbered.
1995-01-10 04:10:55 +00:00
paul
62368d936e New forms library. This provides some basic functions for writing
input forms. It has the following simple fields:

Text fields: Just titles, labels etc.

Input fields: An editable text field that may or may not have an
initial default value.

Labelled input field: This is an input field that has an initial
informative entry in it but it vanishes when you start editing the
field.

Toggle fields: These are fields with a pre-defined list of options
which you cycle through using the space bar.

Action fields: These are button type fields that call functions when
they are selected.

A simple demo is included in examples.
1995-01-10 04:00:37 +00:00
paul
5fde216ffb Fix some bugs with forms that have only text fields.
Add an extern form to forms.h for apps to pick up.
1994-11-13 07:43:43 +00:00
paul
ec3127d29c The start of a forms editor library. Currently implements text and
input fields. It reads a template file passed to init_forms(char *)
and creates a curses based form editor. See the examples directory
for a basic demo.
1994-11-13 06:45:44 +00:00