ehouse
0bf21a1b5e
Change About box implementation from separate dialog to str resource
...
passed to MessageBox
2008-03-15 19:24:59 +00:00
ehouse
b7f35d2958
Don't subtract command bar height from client rect height on
...
smartphone. This prevents windows from being too small in
non-fullscreen mode. Make ceSizeIfFullscreen work based on state
rather than assuming it's toggling.
2008-03-15 18:32:22 +00:00
ehouse
cae88f5b6c
Rework dialogs to fit or (eventually) scroll on small screen; put
...
dialogs in fullscreen mode; switch from dropdowns to spinbuttons on
CE; grab OS version on startup (not yet used.)
2008-03-15 15:39:58 +00:00
ehouse
244d58b957
Work on soft key and menu: derive text from menu item being moved so
...
that we can pull out and later replace any item by id alone. Do
something similar on Win32 to ease development. Remove '&' from
menuitem text, allowing winders to assign command keys, so that we
don't have to pull it before assigning text to softkey.
2008-03-10 01:47:46 +00:00
ehouse
885e7f0192
Put back "turn done" menu, and add call to change the left softkey.
...
Call it when turn changes, new game is begun, and hint feature has
been used. Currently menuitem is duplicated. Goal is to remove the
item being attached to the left button and to replace it when another
is chosen.
2008-02-26 13:49:41 +00:00
ehouse
a6575b1a2c
Convert prefs in old format to new when encountered so that users
...
don't lose settings on upgrading.
2008-02-23 22:06:05 +00:00
ehouse
e6a485f653
Add ENABLE_LOGGING define so logging can be used on non-debug builds, e.g. to trace opening of non-debug saved games and prefs files.
2008-02-17 21:48:48 +00:00
ehouse
ccb8fb4df7
Fix timers to work even when message queue is full; make fullScreen
...
choice persistent; clean up resource file and add missing strings.
2008-02-16 17:36:46 +00:00
ehouse
f3b8867518
Mark params unused in compiles for standalone; remove unused param.
2008-02-16 16:02:49 +00:00
ehouse
0913936486
Add resource for two-soft-key commandbar and put it up. The single item is "Done" for now.
2008-02-05 04:57:58 +00:00
ehouse
1ac6326563
Add full-screen mode and menu to get to it (leaving the cmdbar/softkey
...
area in place until I figure out how to work a UI without a visible
menu); rework menu to launch new-style from a single softkey; remove
cmdbuttons and associated resources; limited progress on handling
return key/timeouts for keyboard navigation.
2008-01-20 15:36:17 +00:00
ehouse
b333476d48
Update to use modified newg_store
2008-01-05 16:37:49 +00:00
ehouse
86f5193801
Fix compilation errors. Not tested.
2007-12-03 01:18:13 +00:00
ehouse
5457ea1b59
replace all __FUNCTION__ with __func__
2007-12-02 19:13:25 +00:00
ehouse
dd7a5c8104
type name change only
2007-05-26 14:14:01 +00:00
ehouse
eeebeca542
substitute macro for common sizeof(x)/sizeof(x[0]) pattern; no generated code change
2007-05-26 14:03:07 +00:00
ehouse
aad182c2e3
turn stringFromStream into macro to aid logging for leak detection. Debug builds only effected.
2007-03-18 23:31:51 +00:00
ehouse
7c8b7294cd
add const to a bunch of char* decls in APIs and variables; no code change
2007-02-03 17:54:20 +00:00
ehouse
0b68a917f7
preliminary addition of xplatform-only focus, esp drawing of cursor
...
and handling of arrow keys via WM_KEYUP; added focus/cursor color to
prefs and color edit dialog. Tested only on win32 (WINE), and not
integrated with platform nav/focus model.
2007-01-19 08:24:02 +00:00
ehouse
e9871b1fb6
change constant names. No change to code compiled.
2007-01-19 06:43:52 +00:00
ehouse
c01615e86b
reintroduce board_handleKey
2007-01-18 02:42:37 +00:00
ehouse
593980817f
Clean up for non-keyboard and non-keyboard-nav cases. Wince is the
...
latter: make it compile again.
2007-01-07 01:01:20 +00:00
ehouse
f1def437c3
Use new XP_TriEnable type; begin work to support bluetooth by tracking
...
connType and adding choice how to connect. Bt connect dialog is
invoked, but the fields won't be populated. Pass conn type into
socket constructor, assuming socket code doesn't change much to use BT
rather than TCP.
2006-10-28 14:56:04 +00:00
ehouse
07e2717cc8
add a few consts decls where APIs changed; use XWFEATURE_RELAY rather
...
than BEYOND_IR
2006-10-22 19:44:30 +00:00
ehouse
5f25ba9f57
remove BEYOND_IR, replacing with XWFEATURE_RELAY and
...
XWFEATURE_BLUETOOTH. The goal is to be able to build to support
bluetooth only, or relay/ip only, e.g. for a palm bluetooth beta.
Seems to work.
2006-10-10 01:34:37 +00:00
ehouse
a292e33c03
catch up with recent API changes; fix bug in newgame dialog.
2006-09-15 07:39:57 +00:00
ehouse
4daabf6fe5
Set -Wunused-parameter for those versions of gcc that support it, and
...
deal with the output by removing params where possible and elsewhere
by adding XP_UNUSED macro wrapping __attribute__((unused)). There
should be NO change in function in spite of the large number of files.
2006-08-16 13:44:44 +00:00
ehouse
e68771939e
fix broken ce build: remove ifdefs.
2006-08-11 01:33:19 +00:00
ehouse
de0c62fb39
Compensate for OS' failure to deliver penup events by checking for
...
pendownness at critical points when an up event should have been
processed: when another pen down happens, when about to scroll, and
when events (menus and buttons) occur. This seems to catch all the
lingering miniwindow problems. Add flip menuitem (win32 only for now).
2006-07-07 08:39:31 +00:00
ehouse
8c86ba26d8
add more cases to messageToBuf. Effects debug build only.
2006-07-03 22:32:29 +00:00
ehouse
501e1f7a5f
add messageToBuf (debug-only ); change newgame's J button to R (for
...
"rearrange"); tweak locations of various dialog widgets for better
layout.
2006-07-02 00:42:41 +00:00
ehouse
4da329a482
Get rid of param removed from board_handlePenUp.
2006-07-01 14:22:09 +00:00
ehouse
e32a445788
remove overactive log message
2006-06-22 03:37:21 +00:00
ehouse
77793e31b8
Run server after gameinfo dialog dismissed in case a player's become a robot.
2006-06-15 12:39:54 +00:00
ehouse
133016bd1d
cleanup; fix compile of non-debug win32 version
2006-06-11 20:12:20 +00:00
ehouse
73c0cefb52
Add "Save current game as" to save file dialog; remove frequent-save hack.
2006-06-11 05:27:16 +00:00
ehouse
1af17b7672
Catch up with changes including three enabled states for control and
...
setting dialog strings. Align titles with columns for standalone version.
2006-06-10 16:15:31 +00:00
ehouse
0fe04af4b4
Turned on leak-checking at shutdown for debug version, and fixed leaks and
...
crashes in destructors that had never been called before. Seems now to
free all allocated memory before exiting.
2006-05-30 05:12:02 +00:00
ehouse
e75ef1ca53
fix a couple of compile warnings
2006-05-28 14:53:02 +00:00
ehouse
3e934624a4
modify API for "portraitizing" dialogs, and space the buttons evenly
...
rather than stacking all from bottom. This doesn't quit work on ce
since GetWindowInfo isn't available and IsWindowVisible does the wrong
thing.
2006-05-27 17:18:42 +00:00
ehouse
be930f344c
For dialogs in portrait-mode, move OK and Cancel buttons to the right
...
side and shrink up from the bottom
2006-05-25 03:41:32 +00:00
ehouse
d6ddeb0f87
update nHiddenRows so scrolling finally works
2006-05-20 06:22:33 +00:00
ehouse
19414ae505
Finish scrollbar work by passing number of visible rows to
...
util_trayHiddenChange, which means an API change. In board, calculate
bottom of board based on bottom of tray when tray is hidden, and round
so that it's an exact multiple of cell height. In wince, take
advantage of the new parameter to fix the scrollbar so that very
constrained boards can be scrolled even when the tray is hidden.
2006-05-19 13:44:05 +00:00
ehouse
5dca33c5ab
factor out updateScrollInfo so I can update scroller live once I get
...
super-small boards figured out.
2006-05-14 15:28:57 +00:00
ehouse
dbab3bc4fd
Add ability, in win32 version, to specify height and width on wine's
...
commandline -- to ease debugging of layout code.
2006-05-12 07:54:59 +00:00
ehouse
73b244e11f
Turn on -Wall for compilers, and fix warnings that result. Got 'em
...
all for win32 build, but some remain for wince that I'm unable to fix.
2006-05-12 07:17:35 +00:00
ehouse
469a23a183
fix too-tall cells in vertical scoreboard case
2006-05-11 03:01:39 +00:00
ehouse
468c6efd37
first cut at supporting landscape mode by moving scoreboard to left edge of screen from top.
2006-05-09 02:01:27 +00:00
ehouse
e7868afd67
Alert user of a previous version that dict location is being fixed
2006-05-05 12:51:08 +00:00
ehouse
ef6ebe6bac
Add, and use, stream_putString. Saves 500 bytes on win32.
2006-04-25 13:31:15 +00:00