ehouse
4516cde69c
Force redraw after timer fires. This allows scrolling to happen
...
during drag, but isn't the right fix. The timerProc should probably
return a boolean indicating whether redraw is needed.
2008-03-31 00:25:18 +00:00
ehouse
6c0d196f6c
Remove params from ceDlgSetup and ceDoDlgFocusScroll; use DM_SETDEFID
...
message to make self-drawn buttons respond to cr key.
2008-03-31 00:24:04 +00:00
ehouse
10c9b15980
Remove params from ceDlgSetup and ceDoDlgFocusScroll
2008-03-31 00:23:07 +00:00
ehouse
7790bf13ff
make ceDlgSetup figure out from sizes whether to scroll; make
...
ceDoDlgFocusScroll parse params passed into WM_NEXTDLGCTL message to
figure out what object is about to get focus.
2008-03-31 00:22:24 +00:00
ehouse
da118a485a
Tweak layouts. Wrap color prefs dialog controls in macros so easier to tweak. Up version number.
2008-03-31 00:17:41 +00:00
ehouse
9e38eb7336
name change only
2008-03-30 23:58:04 +00:00
ehouse
a6dda53907
Use new APIs to scroll dialogs; use new saved games dialogs.
2008-03-24 12:41:12 +00:00
ehouse
3aaebbc1da
constants for new savegame dialogs
2008-03-23 19:39:08 +00:00
ehouse
8e285f1097
rename ceStackButtonsRight ceDlgSetup, and make it do more general
...
setup of dialogs on CE. No need to move buttons, but now scrolling
may need to be enabled, dialogs made fullscreen, and softkeys added.
Add functions to be called from dialog's wndprocs to implement
scrolling.
2008-03-23 19:37:53 +00:00
ehouse
c06434dd5c
Lots of changes for smartphone, in particular removing Ok and cancel
...
buttons for non-win32 dialogs where they'll be replaced by softkeys.
Also, new dialogs to replace OpenFileName etc. that don't exist on
Smartphone.
2008-03-23 19:29:51 +00:00
ehouse
7759cc98be
New functions to replace OpenFileName etc. that don't exist on Smartphone.
2008-03-23 19:25:49 +00:00
ehouse
996e88a575
Pick fonts for tray and board based on sizes at runtime; bury tile
...
values menuitem.
2008-03-16 14:23:57 +00:00
ehouse
a69092bc53
Use clipping to prevent spillage when cells are very small.
2008-03-15 23:06:06 +00:00
ehouse
f0658b3b20
Use MessageBox instead of my StrBox on Smarthphone; do away with
...
scrollbar on Smarthphone since there's no touchscreen and I want the
space. Still need to find a way to scroll screen.
2008-03-15 21:56:37 +00:00
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
439dd4d84a
add __attribute__ format and fix resulting compile warnings; add a few
...
new WM_ strings for debugging.
2008-03-15 14:14:39 +00:00
ehouse
a3bc875191
Fix errors, all in debug-only code, flagged by __attribute__ format addition.
2008-03-11 12:24:23 +00:00
ehouse
355cfa9fcc
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +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
963c59b0b5
implement drawTileMidDrag (same as tile in tray for now)
2008-03-09 23:32:24 +00:00
ehouse
4c730be669
make new turnChanged notification compile-time conditional
2008-02-27 05:43:27 +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
da60e6211c
add -D_WIN32_IE=0x0400 (needed for some structs in mingw headers)
2008-02-26 13:47:28 +00:00
ehouse
dfe0249490
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
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
04ff991298
Add more message strings
2008-02-23 22:02:10 +00:00
ehouse
551cad98ed
put file menu last where easier to get to
2008-02-23 22:01:36 +00:00
ehouse
bbbad5cbd8
Draw color samples to look more like buttons including thicker border to indicate focus.
2008-02-22 13:27:33 +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
5a951647e2
add mingwm10.dll to .cab files
2008-02-16 20:26:47 +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
a79dfdecc0
fix warning
2008-02-16 17:19:31 +00:00
ehouse
02f3e10edc
move or add ceStackButtonsRight
2008-02-16 17:19:06 +00:00
ehouse
4a464b6ef5
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
e3b39a9834
Add missing files.
2008-02-16 16:36:37 +00:00
ehouse
de6e0d4f2d
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
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
a05138790c
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
3532f7fa61
make "next hint" top sub-item since it'll be most frequently used
2008-02-05 03:38:15 +00:00
ehouse
6e715d63ee
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
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
211100c247
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
b333476d48
Update to use modified newg_store
2008-01-05 16:37:49 +00:00
ehouse
3b1fcceb16
Fix compilation errors due to constant name changes -- no change to binary.
2007-12-14 13:06:44 +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
3f111c5657
name change only: Connectedness becomes DeviceRole
2007-02-02 08:34:37 +00:00
ehouse
a998e96de9
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
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
382848f556
Fix to work with draw API changes
2006-11-12 15:22:26 +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
72cd7c7ec7
tweak svnversion output so make stays happy
2006-09-15 07:52:45 +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
35261484a2
include svn version in name of generated .exe file.
2006-08-16 01:30:31 +00:00
ehouse
61959b394a
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
e68771939e
fix broken ce build: remove ifdefs.
2006-08-11 01:33:19 +00:00
ehouse
6e88146396
turn on flip menu for PPC build too
2006-07-28 07:52:40 +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
4beb291f0d
remove rc3 from version: ready to ship
2006-07-05 00:16:18 +00:00
ehouse
e76e23f7f5
Enlarge Preferences... button by one pixel
2006-07-03 22:34:36 +00:00
ehouse
8c86ba26d8
add more cases to messageToBuf. Effects debug build only.
2006-07-03 22:32:29 +00:00
ehouse
ef941e2c75
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
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
f8aea3b953
keep calling newg_juggle until there's a change.
2006-07-02 00:40:16 +00:00
ehouse
1c65ffaac2
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
4da329a482
Get rid of param removed from board_handlePenUp.
2006-07-01 14:22:09 +00:00
ehouse
f2906db239
Up version string to rc2.
2006-06-24 01:22:47 +00:00
ehouse
a6d140581c
Turn on BitBlt scrolling.
2006-06-24 01:22:10 +00:00
ehouse
6870178490
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
e32a445788
remove overactive log message
2006-06-22 03:37:21 +00:00
ehouse
4d79c85e94
up version string to rc1; add DEBUG to makefile help.
2006-06-18 21:54:59 +00:00
ehouse
45979f547a
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
f271aee094
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
a4cabd9cf7
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
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
1967a137ef
Tweak widget positions to fit juggle button on device
2006-06-08 02:03:33 +00:00
ehouse
16dd84b059
Fix to compile in STANDALONE mode, e.g. for current PPC.
2006-06-08 01:51:34 +00:00
ehouse
5fff2997d6
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
003f801314
up version number; add to list of dirs searched for .xwd files
2006-06-07 01:20:56 +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
d029d6600d
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
e26e149f4c
silence compiler warnings.
2006-05-28 16:16:46 +00:00
ehouse
e75ef1ca53
fix a couple of compile warnings
2006-05-28 14:53:02 +00:00
ehouse
8639c4e5cd
define CALLBACK to quiet warnings for CE build.
2006-05-28 00:42:34 +00:00
ehouse
b9f5925ceb
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
3db196156b
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
fde2ef1ee2
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
054fd21981
Cleanup password dialog
2006-05-27 22:47:33 +00:00
ehouse
4a28deb1b1
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
ecb7243714
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
14eef0a4b8
Move buttons in landscape mode for color sel dialogs too.
2006-05-27 22:19:30 +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
04e9dfb76a
strcat becomes strcpy: trivial optimization
2006-05-25 04:07:49 +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
340214d87d
remove trailing <cr> to sometimes eliminate scrollbar
2006-05-23 02:01:26 +00:00
ehouse
113b9cea5f
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
d6ddeb0f87
update nHiddenRows so scrolling finally works
2006-05-20 06:22:33 +00:00
ehouse
27b740c03b
draw lines rather than bullets to indicate whose turn it is in vertical mode
2006-05-20 06:21:53 +00:00
ehouse
5df612c1cd
Change misleading function name; no code change.
2006-05-19 13:45:48 +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
afa496cb19
Incorporate svnversion output in About box; add CAB target
2006-05-14 15:22:48 +00:00
ehouse
54e17e76b1
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
308aa3ae42
fix compiler warning
2006-05-12 07:55:36 +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
121163e586
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
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
216615577b
minor fixes to drawing spacing (what I meant to check in)
2006-05-11 03:00:50 +00:00
ehouse
3b7e22dc1c
minor fixes to drawing spacing
2006-05-11 02:58:36 +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
e8377f242c
Alert user of a previous version that dict location is being fixed
2006-05-05 12:51:35 +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
fd7c649cb0
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
3d5345f53b
pretty up About text.
2006-04-30 21:51:19 +00:00
ehouse
f700c88bca
update version number
2006-04-30 21:06:25 +00:00
ehouse
3c7b895bed
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
7d60d05436
move CE_MAXDICTS to header
2006-04-30 19:45:48 +00:00
ehouse
ef6ebe6bac
Add, and use, stream_putString. Saves 500 bytes on win32.
2006-04-25 13:31:15 +00:00
ehouse
3b94d0f0a2
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
6687984bf0
On win32 too, return null when dict not found.
2006-04-24 13:36:23 +00:00
ehouse
1b447272b2
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
d4bb0f307f
pass the rigth size to LoadString
2006-04-22 14:31:43 +00:00
ehouse
bc2a99b474
More of dict search change: failed to save buffer before checkin
2006-04-22 14:28:22 +00:00
ehouse
eb7f62308e
Show current dict in dropdown in game info mode. (Had disappeared in recent changes.)
2006-04-22 14:19:21 +00:00
ehouse
4b8e877205
Go back to writing to \Program Files\Crosswords, since we now look
...
there automatically.
2006-04-22 14:06:11 +00:00
ehouse
d8ab05a04e
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
dc908e52b2
set DEBUG in compile-command; no code change
2006-04-22 13:55:19 +00:00
ehouse
13e584ac68
make combobox tall enough that it can pop down
2006-04-20 13:48:44 +00:00
ehouse
7d14763d8c
rename function to link with pocketpc-sdk
2006-04-20 13:47:58 +00:00
ehouse
97d3deffdd
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
e96aaccef9
debug-only function for logging wchar_t strings
2006-04-20 04:38:40 +00:00
ehouse
fc0c7c3f80
When creating dicts dropdown, set 0th as default if there's been no match.
2006-04-20 03:56:38 +00:00
ehouse
b5843a5486
forgot to save before commiting....
2006-04-19 04:57:51 +00:00
ehouse
5a8c1ef2af
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
ddb21c3cfc
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
6680edebb6
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
b26982a3df
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
dd779cebbc
Quick meaningless checkin (update comments) to check svn config
2006-04-03 03:37:53 +00:00
ehouse
2300d55567
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
88b37a1beb
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
63a8e0adbb
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
3f819b871d
implement ResetEvent and SetEvent
2006-03-21 03:47:58 +00:00
ehouse
9166d66589
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
25b0d63b1a
get rid of unneeded DH()
2006-03-20 04:13:40 +00:00
ehouse
3ad2b8e38e
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
8332e6746b
colorsel dialog works now on wince, so remove warning dialog
2006-03-04 15:56:31 +00:00
ehouse
67c638643d
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
b91ad07b03
add target to upload binary
2006-03-04 06:09:42 +00:00
ehouse
091f8ca2e3
move on to next beta
2006-02-28 05:29:37 +00:00
ehouse
a393bd97b7
update copyright -- thought I'd done this...
2006-02-20 02:07:18 +00:00
ehouse
667c705f44
strip all .exe files, not just for release.
2006-02-20 01:57:18 +00:00
ehouse
afb90f6d90
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
e9ef9bea2c
change about box text for beta 5.
2006-02-20 01:51:46 +00:00
ehouse
95a7f64eff
strip release binaries
2006-02-19 16:07:14 +00:00
ehouse
788ebda35b
tweak code so board is right width in release build. Looks as if I'm
...
working around a code-gen bug, but I haven't looked at the asm output.
2006-02-19 05:48:51 +00:00
ehouse
7a6c44de80
update comments to describe building with Linux tools
2006-02-18 21:59:04 +00:00
ehouse
e12abddcd9
new directories to ignore
2006-02-18 14:08:04 +00:00
ehouse
fb0d471dae
add const decls to draw.h and dictnry.h functions where appropriate,
...
and modify "subclass" methods to match. Should be no code change, but
this makes the intent of the APIs clearer.
2006-02-18 06:39:40 +00:00
ehouse
6161e9d0ad
new directories and file extensions to ignore
2006-02-17 07:33:08 +00:00
ehouse
b9aa155761
cast threadstart func ptrs. Not sure why...
2006-02-17 07:31:21 +00:00
ehouse
826a6dd82e
tie aygshell to Wince rather than making it separate feature
2006-02-17 07:30:54 +00:00
ehouse
268442b782
use __VA_ARGS__ in debug macros
2006-02-17 07:29:25 +00:00
ehouse
472b61dbe3
get rid of printf
2006-02-16 03:32:19 +00:00
ehouse
7dccae2d3c
make color buttons owner-draw, and draw them. This fixes bug where
...
all are the background color, and seems to fix win32 build altogether.
Wince build still needs to respond to the buttons being pressed.
2006-02-16 03:31:44 +00:00
ehouse
d601ba3488
provide sensible path for saved files on win32 so state can be preserved
2006-02-15 13:09:36 +00:00
ehouse
32454235cc
use native color-picker on win32
2006-02-14 04:54:28 +00:00
ehouse
92fb9fb9b2
turn off broken color sel until have time to fix
2006-02-14 04:52:31 +00:00
ehouse
098adea254
better way of doing debug builds
2006-02-07 14:46:08 +00:00
ehouse
1fd52dee8f
back out change that had window drawing too narrow
2006-02-07 14:45:30 +00:00
ehouse
257afd1474
separate debug build; pass flags to linker so OS won't run in emulation mode
2006-02-06 15:00:46 +00:00
ehouse
ffd9b66bc5
lots of tweaks toward a beta build on linux. works now, but takes a
...
hex editor.
2006-02-06 04:48:20 +00:00
ehouse
e7dd853d07
attempt to show different title when in debug mode
2006-02-06 04:44:09 +00:00
ehouse
2ee7e7a0f2
tweak -- but these will be going away as soon as mingw and debian's
...
pocketpc-sdk catch up with me.
2006-02-06 04:43:32 +00:00
ehouse
8f7e41e89d
cleanup closing in on building correctly -- which now works, though it
...
takes a hex editor. May have fixed a bug with a missing CloseHandle
call.
2006-02-06 04:41:14 +00:00
ehouse
96a45af102
type changes to stop warnings
2006-01-31 14:40:49 +00:00
ehouse
323240fa6b
missed one ce-specific struct. This makes it work on ce!
2006-01-31 06:41:49 +00:00
ehouse
559662ea98
pass the right param to WinMain. This makes it work on ce!
2006-01-31 06:41:16 +00:00
ehouse
8fc0404158
use debhacks; add flags to compile for wince
2006-01-28 19:05:39 +00:00
ehouse
3f577181dd
use debhacks
2006-01-28 19:03:10 +00:00
ehouse
2ea8c2e0cd
use debhacks; ifdef out cmdbar stuff which debian tools don't support yet
2006-01-28 19:02:04 +00:00
ehouse
a3feee8027
first checked in. may have bugs
2006-01-28 18:58:04 +00:00
ehouse
92485783af
update email address in header comments: no code change
2006-01-08 01:25:02 +00:00
ehouse
b852eb5ca5
add random seed in win32 case
2005-11-27 23:11:05 +00:00
ehouse
3676a8b55f
need to set flag before making calls that will result in a stream of
...
messages.
2005-11-27 22:24:25 +00:00
ehouse
cab0622c9d
Increase size of tray and fonts for win32; turn on windoze-style
...
menus.
2005-11-27 22:06:04 +00:00
ehouse
a79052513e
Turn off STUBBED_DICT -- can now load and execute from an .xwd file
...
running on WINE.
2005-11-27 21:39:06 +00:00
ehouse
870af10a63
first checked in. Builds for Win32, but crashes on XP after drawing
...
its board.
2005-11-27 20:27:46 +00:00
ehouse
24cf6bda2f
hide new obj dirs
2005-11-27 20:17:39 +00:00
ehouse
33779bf1b3
changes for gcc compilation: conditionally define out stuff that
...
doesn't work on win32 (e.g. CommandBar).
2005-11-27 20:17:09 +00:00
ehouse
92948425b9
changes for gcc compilation: fix syntax errors and API usage,
...
conditionally define out stuff that doesn't work on win32
(e.g. CommandBar).
2005-11-27 20:16:43 +00:00
ehouse
66fffb7fe9
fix for STUBBED_DICT case
2005-11-27 20:13:42 +00:00
ehouse
aba81b8627
OpenFileForMapping doesn't seem to exist in win32 -- or at least not
...
in MinGW's view.
2005-11-27 20:13:13 +00:00
ehouse
65611289fd
for gcc: fix caps and remove commas after last item in array
2005-11-27 20:10:06 +00:00
ehouse
7c26e79dda
fix caps; use rand() on win32
2005-11-27 20:09:15 +00:00
ehouse
b9de2acebf
change how struct is defined for gcc
2005-11-27 20:06:36 +00:00
ehouse
b462252ebb
fix syntax errors; other catch up with changes
2005-11-27 20:05:33 +00:00
ehouse
f228cc3b46
fix syntax error
2005-11-27 20:04:46 +00:00
ehouse
e8e408afd4
fix capitalization of header file -- which gcc cares about.
2005-11-27 20:04:06 +00:00
ehouse
0bf1dcdcf8
remove connect info button, instead bring it up every time role
...
changes to one that needs it.
2005-10-06 02:34:07 +00:00
ehouse
23c436a75c
make network play on by default
2005-09-07 12:32:29 +00:00
ehouse
77a8df77ac
add strings for relay errors
2005-09-07 12:31:32 +00:00
ehouse
6ebce9ff5e
protect logging with mutex since happens from multiple threads now.
2005-08-21 14:54:49 +00:00
ehouse
a227dfd605
flesh out interaction with comms. Now able to play a complete game vs
...
linux version over GPRS.
2005-08-21 14:36:11 +00:00
ehouse
a236d6a972
tweak how timers stored
2005-08-21 14:07:29 +00:00
ehouse
13d9e7e8c8
timeout isn't an assertion failure
2005-08-21 14:07:12 +00:00
ehouse
f77a4854b6
use renamed constant
2005-08-21 14:05:29 +00:00
ehouse
dcb5783924
add vc60.pdb
2005-07-30 02:07:20 +00:00
ehouse
f6649e17f6
make some conn-related IDs conditional
2005-07-30 02:05:59 +00:00
ehouse
7d4700622e
add cesockwr.o
2005-07-30 02:04:29 +00:00
ehouse
294ce5f513
Add and use driver for communication over TCP. Driver uses two
...
threads, reader and writer, on a single socket. With this checkin a
connect request reaches the relay and a response comes back and is
passed to and recognized by the common code. A full game should now
work, but hasn't been tried. Nor is there any handling of socket
errors, retries, etc.
2005-07-30 02:02:49 +00:00
ehouse
aa27360761
tweak conn dialog
2005-07-30 01:51:24 +00:00
ehouse
3ecc871515
begin work of allowing multi-device play over WiFi/Cellular: add
...
dialog to gather params, save 'em, and stub out send proc. Still need
to debug a bit, and add threads to send/receive packets.
2005-07-23 15:31:21 +00:00
ehouse
d6fac2014e
add assertion on null string
2005-07-23 15:16:26 +00:00
ehouse
bc3515272c
Get rid of unused param
2005-07-14 02:54:47 +00:00
ehouse
fc4fd3ea93
fix compile error
2005-07-13 12:35:38 +00:00
ehouse
7d388c3a2a
fix compile error!
2005-06-30 01:51:40 +00:00
ehouse
4f57cadd75
Refactor ce_dictionary_make so that it returns NULL rather than an
...
broken dict when the file's missing or corrupt. Casts to stop
warnings.
2005-06-30 01:48:07 +00:00
ehouse
39669d9680
change dialog title when it's called from new game menuitem
2005-06-30 01:44:56 +00:00
ehouse
8fb0b4685a
Refactor ce_dictionary_make so that it returns NULL rather than an
...
broken dict when the file's missing or corrupt.
2005-06-30 01:36:51 +00:00
ehouse
acd3bdf24b
copy null byte along with rest of string
2005-06-28 04:42:08 +00:00
ehouse
c2fe26ec77
up version to b4 to match next tag
2005-06-27 04:01:51 +00:00
ehouse
f6a6827c59
fix compile warnings
2005-06-23 14:12:09 +00:00
ehouse
2fbfeee378
util_setTimer changes
2005-06-23 14:09:20 +00:00
ehouse
001058da03
add a couple of consts to fix warnings
2005-06-13 14:34:01 +00:00
ehouse
9a09a24aab
fix DEBUG compile error
2005-06-13 14:33:05 +00:00
ehouse
8eb0b50cec
fix scrolling; resize board, enabling scrolling, when SIP is revealed.
...
And make it possible for user to reveal it.
2005-06-13 14:29:49 +00:00
ehouse
7c906a70ba
add debug-version logging to catch dictionary corruption
2005-06-13 13:36:26 +00:00
ehouse
6c9caadd43
use clipping when drawing bitmaps, can center 'em. This fixes
...
overwriting borders when cells shrink when SIP is visible.
2005-06-13 13:32:06 +00:00
ehouse
5803496007
turn on scrolling by default
2005-06-13 13:24:15 +00:00
ehouse
b0e6ac2b7c
add relay dir to -I list
2005-06-13 13:23:33 +00:00
ehouse
c2297590eb
fix incorrect signature that was causing all scores to be drawn as 0.
2005-06-09 14:18:55 +00:00
ehouse
7d1fa77c5f
make it easier to tweak compiler optimizations (since some produce
...
crashing code)
2005-02-15 14:34:50 +00:00
ehouse
07fd09f7b1
revert to an earlier version that didn't build crashing code.
2005-02-11 02:50:04 +00:00