Commit graph

1530 commits

Author SHA1 Message Date
ehouse
70be257d8c First attempt to set board bounds based on tray bottom if tray
overlaps board.
2006-05-17 06:12:40 +00:00
ehouse
912d221b1c Replace overlap param with nHidden to give more flexibility in
creating situations where board must be scrolled.
2006-05-17 06:10:24 +00:00
ehouse
fd5355b627 Include output of svnversion in Palm version's About dialog. For
Catalan and Spanish as well as English.  There's also some character
conversion in the former two that may be linked to my local LANG
setting now being en_US.utf8.  May need to revisit if there are
problems.
2006-05-15 04:24:30 +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
bb7e827703 for vertical scoreboards, force miniwindow to be entirely inside the board. 2006-05-14 15:27:29 +00:00
ehouse
e98ef5b962 move scrollbar into its own box so it doesn't force buttons to be over-tall 2006-05-14 15:26:21 +00:00
ehouse
afa496cb19 Incorporate svnversion output in About box; add CAB target 2006-05-14 15:22:48 +00:00
ehouse
94b46bc6c6 Incorporate svnversion output in usage() 2006-05-14 14:47:32 +00:00
ehouse
4bb82554e5 Since board can now sometimes only partially hide tray, introduce
distinction between obscuring and completely hiding.  In former case,
erase the tray rather than draw it partially hidden.  This means
drawing the tray before rather than after the board, which is a big
change that so far doesn't seem to have hurt anything.  If it does, it
might be necessary to draw it before and after the board.
2006-05-12 08:03:08 +00:00
ehouse
3ea23396d2 add compile-command 2006-05-12 07:59:38 +00:00
ehouse
ba1aefcd49 make tray hide button toggle hidden state 2006-05-12 07:59:21 +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
543df9f681 minor code improvement 2006-05-11 03:02:11 +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
c496593800 tweak score layout, and remove a U8 that was overflowing on win32 2006-05-10 13:42:44 +00:00
ehouse
7297ab4be8 fix layout for vertical scoreboard option 2006-05-09 12:31:41 +00:00
ehouse
36993ba258 catch up with API change 2006-05-09 04:05:19 +00:00
ehouse
3a4c5dfff6 catch up with API change 2006-05-09 04:04:56 +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
28411a4466 API change: board is responsible for figuring tile size and giving
extra pixels to divider.
2006-05-06 14:42:38 +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
aa09dfba91 catch up with API changes 2006-05-05 12:49:02 +00:00
ehouse
99ba48ce3e add poolsize and fsize args to better warn users when dict is too big.
Later need to modify the build process to specify the size needed.
2006-05-02 13:28:07 +00:00
ehouse
653fdb6a7b Improve out-of-memory message; don't double-count words. 2006-05-01 14:00:06 +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
22e6ddde2a Bring over from personal archive. I don't know if this works yet:
waiting for a wordlist.
2006-04-30 16:17:21 +00:00
ehouse
c0c5332098 add 'sort -u' to get rid of duplicates. All info files should have this.... 2006-04-30 15:15:28 +00:00
ehouse
328c96c617 fix filter to eliminate words with unused letters; catch up count of
'G' tiles with gtoal's list.
2006-04-30 14:52:43 +00:00
ehouse
4ec6af22cb Include name of dict so it can get printed. 2006-04-30 13:58:24 +00:00
ehouse
0295579e32 More cleanup for Spanish dict building. Seems to work now. 2006-04-30 04:44:10 +00:00
ehouse
8124a01010 Cleanup for Spanish dict building: die when can't build correctly, and
do same for WINCE as for FRANK re: specials
2006-04-30 04:27:33 +00:00
ehouse
834c43e131 sort to get rid of duplicates and so sort inside dict2dawg won't be needed 2006-04-30 02:35:26 +00:00
ehouse
3a37c11970 check that this version number stuff works 2006-04-29 16:47:01 +00:00
ehouse
4493ed8482 attempt to print subversion revision number with -v option 2006-04-29 16:40:48 +00:00
ehouse
993ab25c61 use stream_putString 2006-04-25 13:46:59 +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
1d40eddbb5 exit if can't open table file; include assert for compile on sarge 2006-04-14 08:23:28 +00:00
ehouse
3df1e461e4 For already-sorted case, read words from file on as-needed basis rather
than build a vector to hold them.
2006-04-14 05:23:30 +00:00
ehouse
8f909cd3a7 Use new compiled dict2dawg when present. 2006-04-13 15:30:15 +00:00
ehouse
b70bee3d53 A final bit of cleanup. All the perl is gone. 2006-04-13 04:04:03 +00:00
ehouse
d6dc4bf30c Cleanup: remove dead code. 2006-04-13 03:58:54 +00:00
ehouse
131d4c9bd4 Use a single huge buffer for all strings rather than calling malloc
for each.  Makes a measureable speed difference.
2006-04-13 03:52:48 +00:00
ehouse
08557184a5 debug: works now! Also ifdef out debug/verbose code. 2006-04-13 03:49:41 +00:00
ehouse
72532d72a8 print letter as well as tile in text dumps (same as cpp version) 2006-04-13 03:06:18 +00:00
ehouse
b89ed5b999 add -debug arg for parity with cpp version, and add -mn flag to usage(). 2006-04-13 02:58:39 +00:00
ehouse
0c7081bf36 Tons of changes continuing port from perl. Doesn't quite work yet, but close. 2006-04-13 02:57:43 +00:00
ehouse
2863379b9b Starting work on cpp version of dict2dawg.pl. This is nowhere near complete. 2006-04-12 04:39:49 +00:00
ehouse
b10ca04e07 don't exclude BEYOND_IR-only fields 2006-04-07 03:08:23 +00:00
ehouse
cb05850fe3 Catch up with draw.h API changes (mostly just adding consts) 2006-04-04 02:43:12 +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
08e8c4a858 Get rid of TALL_FONT macro, since it's permanently on anyway. 2006-04-01 21:25:58 +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
9be9e55986 Fix formatting (by way of playing with svn) 2006-04-01 16:54:40 +00:00
ehouse
0563b244bb Catch up with API changes (all adding const to rect and char ptrs) 2006-04-01 16:48:13 +00:00
ehouse
3388fc9f7b Remove HIGHRES compile-time tests: all palm releases will have HIGHRES
support now; build in different directories.
2006-03-31 10:57:01 +00:00
ehouse
3da83805cc handle cmdline opts in a less-fancy way that works on freebsd too. 2006-03-22 04:33:34 +00:00
ehouse
a8463b9341 link pthreads in a way that works on freebsd too 2006-03-22 04:31:27 +00:00
ehouse
b29bde8e37 include stdio.h for freebsd 2006-03-21 04:05:33 +00:00
ehouse
96d6623026 include pthread.h for freebsd 2006-03-21 04:04:43 +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
6f9e7ed94c add an underbar to separate numerals 2006-03-18 03:35:20 +00:00
ehouse
300c29be35 add a couple of missing icon images 2006-03-18 03:34:15 +00:00
ehouse
a121388762 no harm in copying field when feature not available; may help newer
version to open file.
2006-03-04 16:07:21 +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
162cb99c53 ignore .stamp files 2006-03-04 15:36:06 +00:00
ehouse
6b140d641b fix b5 crasher: check for stream equivalence with the older version
now that current version's been upped.  Rename old version to better
indicate when it was current.
2006-03-04 06:12:38 +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
10d38faa33 add install target 2006-02-27 00:08:32 +00:00
ehouse
90412fe9d4 bring in transparant small icon change from 4.1 branch 2006-02-26 23:56:06 +00:00
ehouse
eb2a4d513e up alpha version 2006-02-26 23:53:55 +00:00
ehouse
772c262b5e first checked in. works 2006-02-26 23:51:57 +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
dde823a5ca update help target 2006-02-18 06:37:01 +00:00
ehouse
a4c7d48eb5 make XP_UCHAR signed to avoid warnings calling string.h funcs 2006-02-18 06:36:39 +00:00
ehouse
447af498a2 fix warning 2006-02-18 06:35:48 +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
a8add11453 clean up usage 2006-02-17 07:28:41 +00:00
ehouse
de830f328f don't include in curses-only build 2006-02-17 07:28:17 +00:00
ehouse
e9499cb4ed formatting only 2006-02-17 07:27:58 +00:00
ehouse
5aeb5dc6fa makefile cleanup 2006-02-17 07:27:36 +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
dd9298e95f make remDim 16-bit so doesn't overflow on large-screened devices 2006-02-14 04:53:45 +00:00
ehouse
92fb9fb9b2 turn off broken color sel until have time to fix 2006-02-14 04:52:31 +00:00
ehouse
233479a959 get rid of null-termination and 'sort -z' since that option isn't on
new ISP's BSD sort.
2006-02-10 05:12:25 +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
502cddcf1f debug macros and wierd rewrite of code using random and mod. This makes it work on ce! 2006-01-31 06:42:53 +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