Commit graph

337 commits

Author SHA1 Message Date
Simon Howard
6ea4e1e25c Add input box widget, and include in guitest.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 520
2006-05-23 22:52:01 +00:00
Simon Howard
3fbef9d278 Make TXT_GetChar return the unicode value of the key pressed. For text
boxes.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 519
2006-05-23 22:51:09 +00:00
Simon Howard
240a1cfcca Add a default action to close windows when escape is pressed. Do not
make escape quit the program unless there are no open windows. Add
TXT_ExitMainLoop().

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 518
2006-05-23 19:33:35 +00:00
Simon Howard
59864df095 Fix compiler warnings caused by missing includes.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 517
2006-05-23 11:46:09 +00:00
Simon Howard
a27b3c9287 Add actions demonstration to guitest.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 516
2006-05-23 00:25:36 +00:00
Simon Howard
1de18c1397 Add window action class for action area labels at the bottom of windows.
Adjust txt_table_t to expand tables to their maximum width when they
only have one column (ensures separators reach the window edges).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 515
2006-05-23 00:07:02 +00:00
Simon Howard
7666630775 Eat keypresses when pressing buttons.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 514
2006-05-23 00:05:05 +00:00
Simon Howard
1d79686ecf Add TXT_GetKeyDescription() to provide descriptions of key codes.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 513
2006-05-23 00:04:27 +00:00
Simon Howard
aafc38483e Updated GUI test which demonstrates signals used to update a label.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 512
2006-05-22 19:25:19 +00:00
Simon Howard
2ad24f982e Add TXT_SetLabel() function to set the label value.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 511
2006-05-22 19:23:28 +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
8d188ff3d1 More signals to detect when checkboxes/radiobuttons are changed.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 502
2006-05-22 00:26:34 +00:00
Simon Howard
283f71d0f5 Add a signals architecture to allow callbacks on GUI events.
Make all widget classes initialise widgets by calling TXT_InitWidget.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 501
2006-05-22 00:20:48 +00:00
Simon Howard
d90a63ed26 Reformat source files in Makefile.am.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 500
2006-05-21 21:01:46 +00:00
Simon Howard
992856ec4f Add radio button class.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 499
2006-05-21 20:58:24 +00:00
Simon Howard
9908aee502 Initialise the table selection on table creation.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 498
2006-05-21 20:56:28 +00:00
Simon Howard
9ba105fa4e Always select a valid widget in a table before drawing the table.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 497
2006-05-21 00:07:11 +00:00
Simon Howard
47287b6532 Add missing free() call.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 496
2006-05-20 21:37:34 +00:00
Simon Howard
1df732ab78 Updated guitest.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 495
2006-05-20 21:37:07 +00:00
Simon Howard
27307fa2d7 Add label class.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 494
2006-05-20 21:36:28 +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
Simon Howard
6ecffa76f7 Checkbox class
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 491
2006-05-20 17:37:57 +00:00
Simon Howard
62b5f95367 Add main loop function and forward key presses to widgets.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 490
2006-05-20 16:34:34 +00:00
Simon Howard
1ba69c88d2 Clip windows against the workspace boundaries.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 487
2006-05-20 15:45:36 +00:00
Simon Howard
f761f821f9 Add selectable and visible properties to widgets. Allow the position of
windows to be set based on position of top/bottom/center,left/right,center
coordinates.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 486
2006-05-20 15:15:17 +00:00
Simon Howard
344823214b Split off text mode gui desktop code into a separate file. Rename some
of the functions in txt_gui.c.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 483
2006-05-19 19:57:59 +00:00
Simon Howard
aaf96ab501 Add TXT_SetDesktopTitle()
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 482
2006-05-18 19:48:03 +00:00
Simon Howard
f6e8d4c46e Make TXT_AddWidget take a NULL pointer so different widget types can
be passed to it.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 481
2006-05-18 18:55:24 +00:00
Simon Howard
978ddf5398 Initial working text-mode GUI framework.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 480
2006-05-18 18:48:24 +00:00
Simon Howard
e3e4b06115 Change the format of color commands. Reorganise the waiting dialog.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 292
2006-01-14 00:10:54 +00:00
Simon Howard
d78780cfc3 Add text-mode I/O functions.
Use text-mode screen for the waiting screen.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 291
2006-01-13 23:56:00 +00:00
Simon Howard
01a403802e Textscreen getchar() function; remove SDL code from I_Endoom.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 289
2006-01-13 18:23:28 +00:00
Simon Howard
443163fc15 Handle blinking text in ENDOOM lumps properly.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 183
2005-10-09 20:19:21 +00:00
Simon Howard
6a9e5dd7e7 Cannot do arithmetic on void pointers in standard C
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 181
2005-10-09 16:42:46 +00:00
Simon Howard
f75826fa71 Text mode emulation code
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 146
2005-10-02 03:16:03 +00:00