ehouse
6a5454ad74
gtk/ncurses support for Rem: focus and showing remaining tiles. Also
...
rewrite gtkask to use gtk_message_dialog and add sigint handler.
2008-10-24 09:07:30 +00:00
ehouse
a4eb339c59
wince support for Rem: focus and showing remaining tiles
2008-10-24 09:05:13 +00:00
ehouse
3b28583d0d
track focus on Rem: region of scoreboard in addition to players' score
...
areas, pass into draw whether to show it highlighted, and fire a util
method when it's clicked on. Intent is that platforms show the
remaining tiles dialog.
2008-10-24 08:56:20 +00:00
ehouse
f1a975c106
Save games in different directory for debug version to prevent
...
crashing when opening wrong-format files.
2008-10-24 08:36:44 +00:00
ehouse
9b75a4e4e8
change name of platform in about box
2008-10-24 08:35:50 +00:00
ehouse
bc8ebcc1b2
use three bits for scoreboard cursor in anticipate of making Rem selectable.
2008-10-21 03:19:54 +00:00
ehouse
1fb537ba41
back out 2245: having scrollbar be focusable is a better way of allowing scrolling than overloading cursor movement; scroll cursor onscreen when diving and it is off
2008-10-20 02:23:17 +00:00
ehouse
76688cd706
Fix bug: tray too short on large screen. Always make tray a multiple
...
of cell size when possible, using minimum when needed.
2008-10-20 01:24:59 +00:00
ehouse
1bb0217785
Send message on back key only when coming up, not going down, to
...
prevent double-dismiss of dialogs.
2008-10-18 19:38:31 +00:00
ehouse
ff0bbb7c54
Remove overdesigned edit-control-caching mechanism in favor of just
...
asking if the current focus owner is an edit control.
2008-10-14 05:25:15 +00:00
ehouse
be93f274ee
Walk dialog's controls and make a list of Edit controls so that dialog
...
procs don't have to pass them in. Compare handles rather than IDs.
2008-10-13 05:46:45 +00:00
ehouse
20bcdea816
Trapped back key should exit dialog even if it has an edit control if
...
that control does not have focus. Do that. And since I can't figure
out how to use APIs available in CE to find edit controls dynamically
each dialog proc has to pass its IDs in. May fix that later, in which
case ceDlgSetEdits() should be removed.
2008-10-13 01:26:20 +00:00
ehouse
6b6d5d79d0
Remove logging; add WM_ constants for message logging.
2008-10-13 01:22:58 +00:00
ehouse
cfb42822e4
Test (including a hack on undocumented bits in WM_HOTKEY's lParam)
...
whether back key resulted in a focus undive, and if it didn't, quit
the app. Not quitting would best be done using SHNavigateBack, but
cegcc doesn't seem to have that. And even the default behavior,
without messing with back keys at all, is to minimize, which means you
can't delete the .exe later without soft reset. That may be my bug,
but for now we're exiting.
2008-10-13 01:17:13 +00:00
ehouse
af6a7970a2
add 22x22 icon for smartphone
2008-10-13 01:05:42 +00:00
ehouse
3bbf428485
Fix bug: don't delete current game name when user might still cancel
...
new game creation.
2008-10-11 23:56:04 +00:00
ehouse
dd0f688b92
first cut at script to produce zipfile and readme
2008-10-11 22:59:18 +00:00
ehouse
e35a0c5e79
mark debug-only formals and wrap in #defines to fix compile-time
...
warnings of clean wince build.
2008-10-11 17:58:43 +00:00
ehouse
c3d23e889d
Fix to compile and run for IP-direct case, possibly breaking
...
heartbeats used over bluetooth.
2008-10-11 17:33:07 +00:00
ehouse
8c6c177c99
flag unusued param to fix compile error; move code used only in
...
multi-device games inside ifdefs.
2008-10-11 17:30:35 +00:00
ehouse
4f11e4270e
inval font cache when new dict has different chars; use cell size as a
...
minimum font heigth for tray; darken default player 4 color for better
contrast.
2008-10-11 16:53:22 +00:00
ehouse
182db5a396
debug changes: change defines to remove gremlin-only code; add missing constants.
2008-10-11 16:46:08 +00:00
ehouse
1c7455a2e6
Really old change: write struct differently in RFCOMM case
2008-10-11 15:04:11 +00:00
ehouse
b5acad0e35
fix bug: need to reset engine when divider moved via keys as well as
...
when dragged.
2008-10-10 08:38:23 +00:00
ehouse
373a931b3e
drawing tweaks: better test for wide short tray tile; don't inval
...
scroll rects unless focus shifting.
2008-10-09 12:12:25 +00:00
ehouse
b25f20587a
get rid of excessive logging
2008-10-09 12:07:30 +00:00
ehouse
e01f8db17e
add function for logging location reached when debugging
2008-10-09 12:04:57 +00:00
ehouse
8c9cfc358a
Modify layout code to keep cells close to square when possible,
...
leaving significant border space on highly rectangular screens.
2008-10-08 04:42:16 +00:00
ehouse
5d7a82a73f
Don't choke when words are longer than 15 letters.
2008-10-08 04:37:44 +00:00
ehouse
ab1cc03e41
Draw focussed scrollbar using WM_CTLCOLORSCROLLBAR. Onlyworks on
...
Win32, so keep old method for Wince.
2008-10-07 04:00:37 +00:00
ehouse
2bc132627f
Set aside portion of scrollbar rect above and below it and color that
...
with focus color when the scrollbar has keyboard focus. This should
help users figure out how one-handed nav works. Better would be to
override background color of the scrollbar and draw it full-sized, but
I havne't figured out how. This is good enough for beta.
2008-10-01 08:31:43 +00:00
ehouse
9289df31a0
add width x height to title bar correctly (debug w32 only)
2008-09-29 05:07:35 +00:00
ehouse
305e9891e1
put dictionary in place if none there
2008-09-29 05:06:24 +00:00
ehouse
658a8f91fa
Draw divider using player color, not always black.
2008-09-28 17:55:27 +00:00
ehouse
79bb886495
Two large changes. First, layout board etc. based only on screen
...
dimensions and one constant giving the minimum height of a cell.
Replaces a bunch of constants that didn't scale to different sized
screens well. Second, add the vertical scrollbar into the focus
rotation. Once I have it showing that it's focussed it'll be easier
to figure out how to scroll the screen.
2008-09-28 17:50:04 +00:00
ehouse
0f3752ee12
Script for testing a bunch of Wince device resolution under Wine.
2008-09-28 17:38:18 +00:00
ehouse
d2afc68ba8
Fix nasty crashers: restore previous game when unable to open new,
...
e.g. because it was created with a dict that's no longer available (in
which case warn to that effect.)
2008-09-28 16:48:30 +00:00
ehouse
a72e4d0c13
comments and assertions
2008-09-28 16:47:11 +00:00
ehouse
b5a823fd93
Fix crash when switching to game with same-language dict: inform draw
...
even if tile sets the same since old is about to be destroyed.
2008-09-28 16:43:24 +00:00
ehouse
960fee16cc
Bug: tap on hidden tray doesn't reveal it (likely new). Fix by always
...
reversing hidden tray on giving it focus and by finding tray to be
location of pen even when hidden (but only the part not under the
board.)
2008-09-27 16:59:04 +00:00
ehouse
5ea12405c0
clean up tile-picker dlg
2008-09-27 15:58:07 +00:00
ehouse
c1c7c34f84
Add more WM_ constants
2008-09-27 15:15:14 +00:00
ehouse
cac8497e3f
Improve the font dialog
2008-09-27 15:10:53 +00:00
ehouse
42ad517e52
When moving cursor within board, scroll board if it's possible to do
...
so, and only if it is not move the cursor (or if needed to keep it
visible after scroll.) This makes it easier for users to scroll --
but may not be needed if focussing scrolbar works.
2008-09-27 15:07:48 +00:00
ehouse
949a67b15f
{G|S}etWindowLong -> {G|S}etWindowLongPtr as per MSDN docs
2008-09-27 15:05:26 +00:00
ehouse
3ac39b1290
Make new FAA 4.1 the default Spanish dictionary source; build three
...
dicts (8, 9 and 15) by default (all: target).
2008-09-18 03:55:04 +00:00
ehouse
918c876e13
Require two key events to reveal tray and act on a tile; don't treat
...
divider as wider (to make it easier to tap on) when keyboard being
used to select.
2008-09-18 03:53:53 +00:00
ehouse
a9d255592a
cleanup: name changes; don't measure the same glyph twice.
2008-09-18 03:50:04 +00:00
ehouse
ed12a83a34
bug fix: check which combo is generating events rather than assume all
...
are meant to change number of players.
2008-09-18 03:48:29 +00:00
ehouse
eea0f9e925
Check in files forgotten before: simple font browser.
2008-09-18 03:47:04 +00:00