ehouse
72ada6b1a8
implement drawTileMidDrag (same as tile in tray for now)
2008-03-09 23:32:24 +00:00
ehouse
7b11fa228b
make new turnChanged notification compile-time conditional
2008-02-27 05:43:27 +00:00
ehouse
78dfed6c59
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
d5475fa89f
add -D_WIN32_IE=0x0400 (needed for some structs in mingw headers)
2008-02-26 13:47:28 +00:00
ehouse
b614b9b14c
Add name of color edited to title of color edited. Clean up names and constants in support.
2008-02-26 13:31:36 +00:00
ehouse
7da5ce74f4
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
6c052fb801
Add more message strings
2008-02-23 22:02:10 +00:00
ehouse
e081747cb9
put file menu last where easier to get to
2008-02-23 22:01:36 +00:00
ehouse
073aa6716b
Draw color samples to look more like buttons including thicker border to indicate focus.
2008-02-22 13:27:33 +00:00
ehouse
0b5a14c424
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
eee7fd01b0
add mingwm10.dll to .cab files
2008-02-16 20:26:47 +00:00
ehouse
25b568d22e
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
89a7a6fd01
fix warning
2008-02-16 17:19:31 +00:00
ehouse
f81d1a6f5d
move or add ceStackButtonsRight
2008-02-16 17:19:06 +00:00
ehouse
ce3131fb06
modify ceStackButtonsRight to place dialog ok/cancel buttons in
...
bottom menubar where possible; move XP_LOGW to cedebug.c
2008-02-16 17:14:35 +00:00
ehouse
a65886d417
Add missing files.
2008-02-16 16:36:37 +00:00
ehouse
266038a463
Make cegcc the default build environment for wince. Make inclusion of hacks needed to work with mingw/pocketpc-sdk conditional.
2008-02-16 16:33:46 +00:00
ehouse
642e6611db
Mark params unused in compiles for standalone; remove unused param.
2008-02-16 16:02:49 +00:00
ehouse
145e55c7f0
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
2649017752
Modify to switch between cegcc and pocketpc-sdk, with pocketpc-sdk
...
choice commented out. cegcc builds it about 30% smaller, in line with
what the older M$ tools could do.
2008-02-05 03:45:24 +00:00
ehouse
7a2faeec61
make "next hint" top sub-item since it'll be most frequently used
2008-02-05 03:38:15 +00:00
ehouse
19ea3e1f6e
change name of field. No code change. Pending on symbian and franklin which don't compile.
2008-02-02 15:17:53 +00:00
ehouse
2386ab6b31
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
fc3dcc3586
Turn off experimental multi-device features; up copyright; define XP_UCHAR as signed char to fix lots of warnings.
2008-01-19 16:34:21 +00:00
ehouse
a9d1697c7b
Update to use modified newg_store
2008-01-05 16:37:49 +00:00
ehouse
9d42d1b902
Fix compilation errors due to constant name changes -- no change to binary.
2007-12-14 13:06:44 +00:00
ehouse
e894a44b61
Fix compilation errors. Not tested.
2007-12-03 01:18:13 +00:00
ehouse
b527110379
replace all __FUNCTION__ with __func__
2007-12-02 19:13:25 +00:00
ehouse
5878ea6018
type name change only
2007-05-26 14:14:01 +00:00
ehouse
e891a26756
substitute macro for common sizeof(x)/sizeof(x[0]) pattern; no generated code change
2007-05-26 14:03:07 +00:00
ehouse
6dc75914a6
turn stringFromStream into macro to aid logging for leak detection. Debug builds only effected.
2007-03-18 23:31:51 +00:00
ehouse
2fe75a19a2
add const to a bunch of char* decls in APIs and variables; no code change
2007-02-03 17:54:20 +00:00
ehouse
916ea4abc2
name change only: Connectedness becomes DeviceRole
2007-02-02 08:34:37 +00:00
ehouse
17993fea06
Tweak scroll-of-focussed-board inval code so we don't inval the whole
...
board, which looks crappy. Instead inval only what was previously a
border row, and pass a new param to draw_vertScrollBoard so the
platform can choose not to scroll cells that will just get overwritten
with different bits.
2007-01-21 22:59:29 +00:00
ehouse
b4d01f15f2
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
3a0b5af472
change constant names. No change to code compiled.
2007-01-19 06:43:52 +00:00
ehouse
40832e6ea5
reintroduce board_handleKey
2007-01-18 02:42:37 +00:00
ehouse
4646ac5711
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
0924cc29b8
Fix to work with draw API changes
2006-11-12 15:22:26 +00:00
ehouse
e5e36f0fa4
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
912fe93829
add a few consts decls where APIs changed; use XWFEATURE_RELAY rather
...
than BEYOND_IR
2006-10-22 19:44:30 +00:00
ehouse
ba4f91d9e0
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
1f163665ba
tweak svnversion output so make stays happy
2006-09-15 07:52:45 +00:00
ehouse
5780da7b93
catch up with recent API changes; fix bug in newgame dialog.
2006-09-15 07:39:57 +00:00
ehouse
f561989644
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
9c1b48d0e4
include svn version in name of generated .exe file.
2006-08-16 01:30:31 +00:00
ehouse
f8e4579116
patch from Peter Rovnak. For Slovak support, need to specify the tray
...
font by name in order to get one that has all the necessary faces. Seems
to make no difference on US/English systems, but it works for him on a
localized device.
2006-08-16 01:29:21 +00:00
ehouse
cfb5e57d07
fix broken ce build: remove ifdefs.
2006-08-11 01:33:19 +00:00
ehouse
b07854961e
turn on flip menu for PPC build too
2006-07-28 07:52:40 +00:00
ehouse
d35f5100ab
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
74e97d0bb9
remove rc3 from version: ready to ship
2006-07-05 00:16:18 +00:00
ehouse
0d466f34b1
Enlarge Preferences... button by one pixel
2006-07-03 22:34:36 +00:00
ehouse
78dd247307
add more cases to messageToBuf. Effects debug build only.
2006-07-03 22:32:29 +00:00
ehouse
147c55ee43
up version to rc3; make all elements of prefs dlg the same height so they
...
line up when moving between global and local sets.
2006-07-02 01:08:45 +00:00
ehouse
00e4c06857
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
a71d2a6f33
keep calling newg_juggle until there's a change.
2006-07-02 00:40:16 +00:00
ehouse
762070e6a9
fix showing of timer field when timer disabled when switching from global
...
to local prefs; use num-getter utils rather than convert to/from text.
2006-07-02 00:39:31 +00:00
ehouse
a272ab15ef
Get rid of param removed from board_handlePenUp.
2006-07-01 14:22:09 +00:00
ehouse
78b67f5200
Up version string to rc2.
2006-06-24 01:22:47 +00:00
ehouse
33c94620fb
Turn on BitBlt scrolling.
2006-06-24 01:22:10 +00:00
ehouse
e8731492b4
implement vertical scrolling using BitBlt. It's faster and smoother, but
...
commented out for now since it may be better not to add so late in the cycle.
2006-06-22 04:59:18 +00:00
ehouse
ea5ba414cd
remove overactive log message
2006-06-22 03:37:21 +00:00
ehouse
8d675a4114
up version string to rc1; add DEBUG to makefile help.
2006-06-18 21:54:59 +00:00
ehouse
c4de8b5ba5
disable juggle button if only one player active; copy all four players when saving game state after dismissal.
2006-06-18 19:02:47 +00:00
ehouse
3fc8fdcc18
add commented-out code to draw juggle icon instead of "J" button. It's too much work to get it looking good before ship.
2006-06-16 01:30:20 +00:00
ehouse
4561d86601
Allow no space for REM text when no tiles left to allow more room for scores.
2006-06-16 01:15:44 +00:00
ehouse
29621ec4d1
Run server after gameinfo dialog dismissed in case a player's become a robot.
2006-06-15 12:39:54 +00:00
ehouse
c956b0858a
cleanup; fix compile of non-debug win32 version
2006-06-11 20:12:20 +00:00
ehouse
9d18e8df95
Add "Save current game as" to save file dialog; remove frequent-save hack.
2006-06-11 05:27:16 +00:00
ehouse
f7ee793df3
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
8b892bcf19
Tweak widget positions to fit juggle button on device
2006-06-08 02:03:33 +00:00
ehouse
8c8313a2ca
Fix to compile in STANDALONE mode, e.g. for current PPC.
2006-06-08 01:51:34 +00:00
ehouse
7d9fec90d3
First cut at using new nwgamest common code to replace PPC-only logic
...
for updating fields of new game dialog as players are added, made
remote, robots enabled, etc. Removes a lot of code and fixes some
bugs in (non-yet-shipped) multi-device version. As a bonus, added "J"
button to juggle players. Seems to work well on Win32. Haven't
tested on PPC yet.
2006-06-08 01:35:20 +00:00
ehouse
e2fd99e3ef
up version number; add to list of dirs searched for .xwd files
2006-06-07 01:20:56 +00:00
ehouse
12daa9bfbb
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
d66c27cd35
To show it and to prevent it's being cleared, write current password
...
into field in game info dialog.
2006-05-28 18:16:08 +00:00
ehouse
b498d3d18d
silence compiler warnings.
2006-05-28 16:16:46 +00:00
ehouse
35f8004d43
fix a couple of compile warnings
2006-05-28 14:53:02 +00:00
ehouse
e252d51669
define CALLBACK to quiet warnings for CE build.
2006-05-28 00:42:34 +00:00
ehouse
5846a0f8f6
Move button size #defines into .rc file. They're scaled by the time C
...
code sees them and so shouldn't be relied on outside the .rc file.
2006-05-28 00:41:44 +00:00
ehouse
9f0df402ce
Calculate old window width correctly when figuring new width. Fixes
...
problem of buttons drawn too close to right edge.
2006-05-28 00:40:28 +00:00
ehouse
af7a0ad216
Before putting dialog into landscape mode, make sure it won't be wider
...
than the screen. That is, don't be fooled when in portrait mode by a
screen height that's SIP-reduced.
2006-05-27 22:52:10 +00:00
ehouse
21df8e09d8
Cleanup password dialog
2006-05-27 22:47:33 +00:00
ehouse
fd0e2370aa
Lots of little tweaks to dialogs to get them looking better and to
...
work better in landscape mode; got rid of multiple DEFPUSHBUTTONs.
2006-05-27 22:21:21 +00:00
ehouse
9558cc902e
Lots of little tweaks to dialogs to get them looking better and to
...
work better in landscape mode; got rid of multiple DEFPUSHBUTTONs.
2006-05-27 22:21:09 +00:00
ehouse
62fe2be84b
Move buttons in landscape mode for color sel dialogs too.
2006-05-27 22:19:30 +00:00
ehouse
c2ddb62591
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
75431f774c
strcat becomes strcpy: trivial optimization
2006-05-25 04:07:49 +00:00
ehouse
3ca36f57fc
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
fbe384d431
remove trailing <cr> to sometimes eliminate scrollbar
2006-05-23 02:01:26 +00:00
ehouse
f3c56df8aa
n## Lines starting with '## ' will be removed from the log message.
...
change version string to include b8
2006-05-21 02:09:03 +00:00
ehouse
54468b01bb
update nHiddenRows so scrolling finally works
2006-05-20 06:22:33 +00:00
ehouse
c096b77561
draw lines rather than bullets to indicate whose turn it is in vertical mode
2006-05-20 06:21:53 +00:00
ehouse
b51cdd32b0
Change misleading function name; no code change.
2006-05-19 13:45:48 +00:00
ehouse
e8273bc9f0
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
4c1f0f7454
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
b5bd5e74d2
Incorporate svnversion output in About box; add CAB target
2006-05-14 15:22:48 +00:00
ehouse
50e03abdea
rewrite score formatting to put is-turn bullets above/below for
...
vertical scoreboard; reduce inter-line spacing and otherwise tweak
drawing.
2006-05-12 07:58:31 +00:00
ehouse
8a0b2f3bbb
fix compiler warning
2006-05-12 07:55:36 +00:00
ehouse
bdc2300f84
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
37250643ee
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:25:43 +00:00
ehouse
7d9d97cd88
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
c9606b6d0b
fix too-tall cells in vertical scoreboard case
2006-05-11 03:01:39 +00:00
ehouse
a1b0a11baa
minor fixes to drawing spacing (what I meant to check in)
2006-05-11 03:00:50 +00:00
ehouse
6c8d4c663f
minor fixes to drawing spacing
2006-05-11 02:58:36 +00:00
ehouse
58f4b08623
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
9014ef3fd7
Alert user of a previous version that dict location is being fixed
2006-05-05 12:51:35 +00:00
ehouse
f4844efd2f
Alert user of a previous version that dict location is being fixed
2006-05-05 12:51:08 +00:00
ehouse
b75f719c1b
first cut at script to package binary, shortcut and BasEnglish
...
dictionary into an installable .cab file.
2006-04-30 21:52:17 +00:00
ehouse
0c29968974
pretty up About text.
2006-04-30 21:51:19 +00:00
ehouse
efe18256b4
update version number
2006-04-30 21:06:25 +00:00
ehouse
a1d2b28a24
List dictionaries alphabetically, which requires first storing them in
...
sorted order then adding all at once to the menu.
2006-04-30 19:54:40 +00:00
ehouse
5410f1f9f7
move CE_MAXDICTS to header
2006-04-30 19:45:48 +00:00
ehouse
4e2b080be5
Add, and use, stream_putString. Saves 500 bytes on win32.
2006-04-25 13:31:15 +00:00
ehouse
1c4f0a47b7
When unable to open a dictionary whose path has been saved, look for
...
it elsewhere in the set of possible directories. This should help
ease the transition to there being a limited number of places where
dicts can be, since games saved previously will still work after the
dicts they reference have been moved. Also, clean up callbacks making
their return values consistent: true means done.
2006-04-25 04:25:08 +00:00
ehouse
7c50cacc18
On win32 too, return null when dict not found.
2006-04-24 13:36:23 +00:00
ehouse
9acbe29bf5
Replace generic "no dictionaries found" warning with list of directories searched and URL from which to download.
2006-04-24 04:34:42 +00:00
ehouse
6439096812
pass the rigth size to LoadString
2006-04-22 14:31:43 +00:00
ehouse
08b20dc431
More of dict search change: failed to save buffer before checkin
2006-04-22 14:28:22 +00:00
ehouse
ffc4de8c47
Show current dict in dropdown in game info mode. (Had disappeared in recent changes.)
2006-04-22 14:19:21 +00:00
ehouse
dcc07ad95b
Go back to writing to \Program Files\Crosswords, since we now look
...
there automatically.
2006-04-22 14:06:11 +00:00
ehouse
e8a18f10de
rewrite ceLocateNDicts to do recursive searches from a list of
...
directories stored in resources. On device this is currently
"\Program Files\Crosswords" and "\SD Card". (Just "." for win32.)
Later may need to restrict on the card too. Still to do: make "no
dicts found" Alert list the places searched.
2006-04-22 14:05:09 +00:00
ehouse
0d5a44b596
set DEBUG in compile-command; no code change
2006-04-22 13:55:19 +00:00
ehouse
42c35363ef
make combobox tall enough that it can pop down
2006-04-20 13:48:44 +00:00
ehouse
d3c3947756
rename function to link with pocketpc-sdk
2006-04-20 13:47:58 +00:00
ehouse
e867d743f8
display filename only (no path, and no extention) in dropdown, but retain full path internally to use after choice is made.
2006-04-20 04:39:46 +00:00
ehouse
23e26a3ba9
debug-only function for logging wchar_t strings
2006-04-20 04:38:40 +00:00
ehouse
ed1bac4a16
When creating dicts dropdown, set 0th as default if there's been no match.
2006-04-20 03:56:38 +00:00
ehouse
4e483b03a5
forgot to save before commiting....
2006-04-19 04:57:51 +00:00
ehouse
25b1fb4ecf
ceLocateNDicts now takes a callback. Use that to build menu of dicts
...
rather than call OpenFile, which doesn't let you browse much of the
file system on CE. Heading for installing dicts in Program Files so
users never have to worry about them.
2006-04-19 04:56:00 +00:00
ehouse
936e4868a2
Install into /My Documents/Crosswords since that's the only place the
...
OpenFile dialog will let you browse. And use filename as -a option so
more than one dictionary can be installed -- without that the
installer treats all dicts as versions of the same app and removes the
old before installing the new.
2006-04-16 05:49:59 +00:00
ehouse
76c6a56f93
Rewrite dictionary location code so that it can more effeciently
...
produce a list of dictionaries. The API has changed slightly, but the
new ability isn't used yet.
2006-04-16 05:12:52 +00:00
ehouse
144e7b408b
Seems to work to pack a .xwd file so that it's installed on a device
...
when clicked. Still haven't figured out how to include info about the
app name, developer name etc.
2006-04-15 23:46:24 +00:00
ehouse
b05fe65389
Quick meaningless checkin (update comments) to check svn config
2006-04-03 03:37:53 +00:00
ehouse
0f6437345b
Draw bitmap chars ("specials", e.g. for Spanish) centered in rect
...
rather than at x,y. This lines them up with normal letters on the
board as it changes size.
2006-04-02 22:27:44 +00:00
ehouse
ea812d81ea
Fix crash when no dictionary by checking for null model before calling
...
cePositionBoard on WM_SETTINGCHANGE event
2006-04-02 21:52:15 +00:00
ehouse
13b7fa62aa
Add macros to draw.h, and use 'em for wince, so that a platform can choose to call draw.h methods via a vtable or static linking.
2006-04-01 21:01:20 +00:00
ehouse
e18982919c
implement ResetEvent and SetEvent
2006-03-21 03:47:58 +00:00
ehouse
eca8fa28b0
use MS macro to get winsock functions instead of eponymous posix ones.
...
With this change, play over IP works again!
2006-03-21 03:47:15 +00:00
ehouse
eef7b20544
get rid of unneeded DH()
2006-03-20 04:13:40 +00:00
ehouse
b0e5668093
fix errors that became apparant when feature flags turned on and
...
stopped building wince resources with _WIN32_WCE on.
2006-03-04 15:57:39 +00:00
ehouse
56050fff5a
colorsel dialog works now on wince, so remove warning dialog
2006-03-04 15:56:31 +00:00
ehouse
523798cd3a
fix colorsel dialog on wince by defining MY_COLOR_SEL for .rc files
...
too. Also stop defining _WIN32_WCE for win32 .rc files. Turn on all
other missing XW-feature flags in .rc file too.
2006-03-04 15:55:57 +00:00
ehouse
3e06bc56f7
add target to upload binary
2006-03-04 06:09:42 +00:00
ehouse
81f36474a8
move on to next beta
2006-02-28 05:29:37 +00:00
ehouse
7427f29832
update copyright -- thought I'd done this...
2006-02-20 02:07:18 +00:00
ehouse
4f99915aeb
strip all .exe files, not just for release.
2006-02-20 01:57:18 +00:00
ehouse
9b77537905
Check .xwd files coming back from OpenFile dlg, and reject with msg to
...
user those that aren't valid. This catches corrupt files and other app
files ending with .xwd.
2006-02-20 01:56:34 +00:00
ehouse
c277762396
change about box text for beta 5.
2006-02-20 01:51:46 +00:00
ehouse
3b3e35b38f
strip release binaries
2006-02-19 16:07:14 +00:00