Commit graph

19 commits

Author SHA1 Message Date
Simon Howard
f0d613f188 textscreen: Remove superfluous first_widget param.
This avoids a warning from doxygen about the fact that the parameter
is undocumented. Since it's not necessary anyway, it can just be
removed.
2018-12-26 13:58:58 -05:00
Simon Howard
1d2fe63a94 textscreen: Add TXT_MakeTable().
When creating a table widget is is often convenient to be able to create
and populate it in a single function call. It's possible to do this with
"horizontal boxes" already but there wasn't a more generic mechanism for
making a table. So add one as TXT_MakeTable().
2017-01-25 21:08:53 +00:00
Simon Howard
c754eaf364 textscreen: Add TXT_SetTableColumns() function.
It's common to want to divide a window into columns, but this has
until now only been possible by adding an inner table with multiple
columns. To simplify laying out windows, this function allows the
number of columns in a window (or any table) to be changed after it
is allocated.
2015-07-10 01:18:23 -04:00
Simon Howard
e365e664d7 textscreen: Add further table conveniences.
Add TXT_TABLE_EMPTY to work around the inability to add a NULL cell
using TXT_AddWidgets(), and TXT_TABLE_EOL to immediately start a new
row, padding appropriately.
2015-07-09 02:19:02 -04:00
Simon Howard
5da27e00a5 textscreen: Add table cell overflowing.
It's a common pattern in the setup tool that widgets are laid out in
a grid, except there inevitably end up being widgets that do not
conform to this grid. This become ugly to code around, as it ends up
requiring packing tables inside tables to get the desired result, when
all that is really wanted is a widget that can take up more than one
cell in the table. Overflowing allows cells in the table to be
designated as "overflows" of neighboring cells, to facilitate this.
2015-07-09 01:51:05 -04:00
Simon Howard
7684ddcfd8 Clean up file headers.
This change rewrites and simplifies the copyright headers at the top
of all source files:

 * Remove "Emacs style mode select" line; this line was included in
   the headers for the originally released source files and appears
   to be to set the file type for old versions of Emacs. I'm not sure
   entirely why it was required but I don't think it is any more.
 * Remove "You should have received a copy of..." text from copyright
   header. This refers to the old 59 Temple Place address where the
   FSF headquarters used to be located and is no longer correct.
   Rather than change to the new address, just remove the paragraph
   as it is superfluous anyway. This fixes #311.
 * Remove ---- separator lines so that the file headers are barer
   and more simplified.
2014-05-05 00:20:54 -04:00
Simon Howard
ec81c27ef5 Allow PGUP/PGDN to scroll up and down in scroll panes (thanks
LionsPhil).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1631
2009-08-27 23:27:47 +00:00
Simon Howard
f9c51c1b5c Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags
to start of header files so that Doxygen will process them.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1451
2009-03-08 22:51:25 +00:00
Simon Howard
2b5dae761b Add documentation for high-level textscreen functions.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1449
2009-03-07 00:24:45 +00:00
Simon Howard
39b7cb7bb2 Fix layout of widgets within scroll panes. Scroll scroll panes in
response to keyboard events.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1440
2009-01-30 23:53:47 +00:00
Simon Howard
65ed2a3208 Update chocolate-setup to the new screen mode config system.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1042
2008-02-04 22:43:11 +00:00
Simon Howard
0755f5ac88 Add TXT_AddWidgets for adding multiple widgets to a table.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 672
2006-09-26 23:47:27 +00:00
Simon Howard
c083656d0e Convenience function for creating a horizontal box.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 659
2006-09-24 13:07:30 +00:00
Simon Howard
c0d6fcfe03 Add missing copyright notices to textscreen and setup files.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 590
2006-08-31 20:40:48 +00:00
Simon Howard
7cd8727f6c Add TXT_SelectWidget function to select a widget in a table,
TXT_SetColumnWidths to set table column widths. Don't send key presses
to unselectable widgets.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 573
2006-08-31 18:09:34 +00:00
Simon Howard
7c18ad6ccf CAST -> TXT_CAST_ARG, UNCAST -> TXT_UNCAST_ARG.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 509
2006-05-22 11:59:11 +00:00
Simon Howard
11643c0887 Add casting macros to allow for easy casts between types.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 503
2006-05-22 00:56:12 +00:00
Simon Howard
56912a4dcc Make all windows be tables with one column.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 493
2006-05-20 21:01:04 +00:00
Simon Howard
8741ed0339 Add table class. Allow widgets with heights of more than one line.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 492
2006-05-20 20:49:50 +00:00