Simon Howard
7216263bb7
Shut up compiler warnings
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 695
2006-10-11 23:03:19 +00:00
Simon Howard
be3d314a61
Add float spin control and use it for the acceleration controller in setup.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 692
2006-10-07 00:59:03 +00:00
Simon Howard
88b3410b6a
Alternate textscreen palette that fits the Tango desktop guidelines: see
...
http://uwstopia.nl/blog/2006/07/tango-terminal
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 690
2006-10-06 17:10:16 +00:00
Simon Howard
d3d4f6587f
Add TXT_NewButton2 for creating a button with a callback (for convenience).
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 673
2006-09-26 23:48:23 +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
84e1b1ac11
Make examples call TXT_Shutdown before quit.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 669
2006-09-25 23:09:32 +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
681c7bee78
Debug code for drawing an ASCII chart.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 658
2006-09-24 13:06:32 +00:00
Simon Howard
ae660b7198
Use proper arrow characters on spin controls and change their color.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 657
2006-09-24 13:05:44 +00:00
Simon Howard
a904f5b3ea
Fix declaration of TXT_NewWindowSelectAction
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 656
2006-09-24 13:04:40 +00:00
Simon Howard
165a20cf3e
Add the ability to type in values for spin controls, like with normal
...
input boxes.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 651
2006-09-22 18:24:53 +00:00
Simon Howard
a825be92fb
Rename Accept to Select.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 648
2006-09-21 18:25:55 +00:00
Simon Howard
0cff90defc
Fix some warnings in textscreen code.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 645
2006-09-21 16:25:10 +00:00
Simon Howard
e903ecbffb
Use NULL for initialising pointers rather than 0.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 644
2006-09-21 11:49:13 +00:00
Russell Rice
6339c4cbeb
Fix a lot of warnings (for fussy compilers) and one always-true check
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 641
2006-09-21 11:13:28 +00:00
Simon Howard
7768cfde84
Add spin control widget.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 635
2006-09-20 18:05:10 +00:00
Simon Howard
7bc72c666d
Fix textscreen warnings.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 626
2006-09-19 23:49:20 +00:00
Simon Howard
d7ef9e1512
'widgets' variable was used uninitialised. For some reason this didn't
...
always crash!
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 624
2006-09-19 23:20:14 +00:00
Simon Howard
3dd7131d41
Check column is valid when finding a selectable column. Fixes weird
...
scrolling behavior.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 620
2006-09-19 21:13:56 +00:00
Simon Howard
e558fa3f2d
Fix TXT_SelectWidgets with NULL spacers.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 615
2006-09-18 22:19:30 +00:00
Simon Howard
ef8bdb1fea
Add function to set button label.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 614
2006-09-18 22:19:00 +00:00
Simon Howard
47ae7506fc
Repeat key presses when the key is held down - thanks to Mad_Mac for this
...
one :-)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 613
2006-09-18 12:13:40 +00:00
Simon Howard
fb5f3408be
Add command line arguments to main() in textscreen examples.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 602
2006-09-09 19:11:05 +00:00
Simon Howard
80cdf0868c
Include SDL.h in the textscreen headers; the SDL headers need to be
...
included where main() is defined.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 600
2006-09-09 16:52:01 +00:00
Simon Howard
bf2f9ea62a
Add reference counts on callback tables so that if a callback destroys
...
the widget that owns the callback the program doesnt crash.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 599
2006-09-09 16:48:09 +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
2fd49a65af
Add dropdown listbox widget
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 578
2006-08-31 18:12:05 +00:00
Simon Howard
fe1a0afdd7
Exit the main loop automatically after all windows are closed
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 577
2006-08-31 18:11:47 +00:00
Simon Howard
5e303c43da
Add window listener functions to allow spying on keys and mouse buttons
...
received by windows. Emit a 'closed' signal when a window is closed.
Allow windows to have no action buttons.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 576
2006-08-31 18:11:26 +00:00
Simon Howard
b20f94345c
Change name of escape window actions to 'Close' and add a separate
...
'Abort' button creator.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 575
2006-08-31 18:11:07 +00:00
Simon Howard
4306fa5993
Center the calculator in the window.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 574
2006-08-31 18:10:49 +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
58978769f5
Allow multiple callbacks for the same signal on widgets
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 572
2006-08-31 18:09:25 +00:00
Simon Howard
e9376daee4
Initialise string input boxes to not editing
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 571
2006-08-31 18:09:17 +00:00
Simon Howard
e5d6ce3318
More efficient TXT_Sleep function that puts the textscreen code to sleep
...
until an event is received or the screen needs to blink.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 570
2006-08-31 18:08:43 +00:00
Simon Howard
6b9f3748cf
Add inverted checkboxes (tick in box when value is false)
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 565
2006-06-29 18:07:32 +00:00
Simon Howard
cef6abcea6
Always add a bit of padding inside windows (removes the need to add padding
...
explicitly in labels). Set the window title from the desktop title.
Only draw widget selection highlight in the window with focus (top window).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 560
2006-06-20 18:48:21 +00:00
Simon Howard
48d2fd26ca
Make clicking on "accept" action buttons send enter keypresses to the window.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 554
2006-06-02 20:50:51 +00:00
Simon Howard
ef92ce016e
Make mouse button presses on widgets actually do useful things
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 553
2006-06-02 20:14:39 +00:00
Simon Howard
02f4a0dcf4
Add utility functions to create "Abort" and "Accept" window actions
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 551
2006-06-02 19:45:41 +00:00
Simon Howard
e9619f83e9
Draw the bottom separator in windows at the full window width.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 550
2006-06-02 19:36:37 +00:00
Simon Howard
517af9477b
textscreen: Rejig how the entire drawing process works. Add a recursive
...
layout method that assigns the position and size of widgets for the whole
window before drawing. Add another method that responds to mouse button
presses. Allow windows to have no title bar by specifying NULL as the
title.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 547
2006-06-02 19:29:24 +00:00
Simon Howard
b3e5170bbb
Add ability to make widgets right aligned or centered within tables.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 546
2006-05-29 21:39:12 +00:00
Simon Howard
64b2890756
Convert calculator example to struts
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 545
2006-05-29 21:02:38 +00:00
Simon Howard
22b0863185
Add textscreen.h top level header to avoid having to include all txt_*
...
headers individually.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 542
2006-05-29 20:00:41 +00:00
Simon Howard
1531993b05
Allow struts to force height as well as width. Hide "start game" button
...
for players which are not the game controller.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 541
2006-05-29 19:54:11 +00:00
Simon Howard
936e7e116d
Shut up compiler warnings.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 540
2006-05-29 19:31:45 +00:00
Simon Howard
3a5668eeb6
Add strut class to allow table column width to be forced.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 539
2006-05-29 19:22:51 +00:00
Simon Howard
2ceb004be6
Add key description for spacebar.
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 533
2006-05-26 19:15:05 +00:00
Simon Howard
42ebb5bebb
Allow NULL to be added to tables to specify a spacer (empty cell).
...
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 530
2006-05-25 21:27:34 +00:00