ehouse
41e6f4abe2
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
8a6992132b
comments and assertions
2008-09-28 16:47:11 +00:00
ehouse
d1603aa543
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
79ec57be8d
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
e84a7c7a2d
clean up tile-picker dlg
2008-09-27 15:58:07 +00:00
ehouse
7627672324
Add more WM_ constants
2008-09-27 15:15:14 +00:00
ehouse
df28e86fc8
Improve the font dialog
2008-09-27 15:10:53 +00:00
ehouse
63422f9c1d
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
0fd14dc0b7
{G|S}etWindowLong -> {G|S}etWindowLongPtr as per MSDN docs
2008-09-27 15:05:26 +00:00
ehouse
564b827f6d
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
eb1f083a19
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
1a1beed2f3
cleanup: name changes; don't measure the same glyph twice.
2008-09-18 03:50:04 +00:00
ehouse
1536a05ac2
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
b3f8902307
Check in files forgotten before: simple font browser.
2008-09-18 03:47:04 +00:00
ehouse
f021964213
fix ncurses version so it can save games and read them back in: make existing gtk code run on both.
2008-09-18 03:46:27 +00:00
ehouse
ac03c4be61
Fix to compile with newer g++; increase size of buffer to handle largest Spanish wordlist.
2008-09-18 03:44:43 +00:00
ehouse
33c99a2371
cleanup; to get better idea of what fonts are available on smartphone
...
add rough font chooser dialog. Is commented out and not meant to
ship.
2008-09-17 04:19:20 +00:00
ehouse
fd6345c1cb
move logLastError
2008-09-14 16:06:51 +00:00
ehouse
82030b5382
plug leak: DeleteObject can't nuke an object CE didn't create
2008-09-14 16:06:18 +00:00
ehouse
4d7a781673
move logLastError
2008-09-14 16:01:28 +00:00
ehouse
e176540b5e
remove unused defines
2008-09-14 14:38:16 +00:00
ehouse
93f120e274
Up copyright date.
2008-09-14 14:37:44 +00:00
ehouse
302f7524ef
Up beta version; fix sizes to avoid clipping on some CE devices.
2008-09-14 14:36:31 +00:00
ehouse
d27b0d4eed
Extend use of fitted fonts to scoreboard, allowing scoreboard to have
...
non-constant size eventually.
2008-09-13 15:24:23 +00:00
ehouse
720160e7de
Pass streams to cedraw on save and restore, adding version flag for
...
backward compatibility. Within cedraw, save cached font info to
remove the visible delay on startup.
2008-09-10 12:18:30 +00:00
ehouse
1825939981
Reduce parameter count. No logic change.
2008-09-10 11:57:30 +00:00
ehouse
34c4bdab9a
In case where board can't fully fill screen, track the rects on either
...
side and erase them when they're invalidated. When seeking best-fit
font, pull glyphs to measure from dictionary rather than assuming
A-Z. Speed font measuring code by passing over all glyphs only once,
noting tallest and lowest-extending then measuring only those two as
smaller sizes are tried. This *may* make the process fast enough that
I don't need to cache the information across boots: need to try on
real hardware.
2008-09-09 12:31:02 +00:00
ehouse
69f667fba3
logRect utility
2008-09-09 12:20:45 +00:00
ehouse
d2cb36029b
Had to comment out BLANKS_FIRST to compile new wince font code, so
...
assert that blank test catches only one tile per dict.
2008-09-09 12:20:09 +00:00
ehouse
61a3602dc5
Don't save dict as part of model. It's redundant as the platform code
...
already saves the name and passes the dict in.
2008-09-09 12:18:32 +00:00
ehouse
a1f3e3d174
call draw_dictChanged on load so draw can calc fonts immediately
2008-09-09 12:16:06 +00:00
ehouse
36627fb051
Add listeners to model so board can be notified whenever dictionary
...
changes. Pass dict into draw via new API, removing it from the
draw_begin calls.
2008-09-05 12:11:37 +00:00
ehouse
36213460e0
Make CEDrawCtx def private; erase background when OS invalidates it.
...
This gets rid of what's visible behind the board when it's not
full-screen width, but causes a lot of flashing. Better will be to
make board.c own an entire rectangle and to decide board dimensions
itself.
2008-09-01 15:10:28 +00:00
ehouse
cc627f6b6d
Shrink scoreboard a bit. Goal's to not needs scrolling on small
...
screens, but still needs work.
2008-09-01 15:07:46 +00:00
ehouse
2daf7d503a
Pick fonts based on actual size of the subset of glyphs we'll use.
...
This allows a better fit without hard-coding offsets. It also takes
considerable time at startup, so either the algorithm has to be
improved or I need to cache the data as part of prefs (and delete it
when switching between landscape and portrait on devices that allow
that.)
2008-08-30 18:55:20 +00:00
ehouse
bd2eff236c
catch up with API changes. GTK to use this still needs to be fixed!
2008-08-30 13:54:47 +00:00
ehouse
797b859c8e
add pointer support to LIB_NO_UI case
2008-08-30 13:28:53 +00:00
ehouse
4d6aec67fe
error message when hit feature is off but you try to use it; clean up memory on way out.
2008-08-30 13:27:27 +00:00
ehouse
1384be6895
Get rid of cute-but-confusing feature whereby the menuitem to which
...
the left softkey is set is removed from the right key's menu. More
important is that menu-9-6 always mean "exit".
2008-08-27 12:38:01 +00:00
ehouse
bf505d1a62
Go back to using combobox on PPC but keep spinners on Smartphone.
...
Meaning: both exist in the resource, and at runtime we disable the
unwanted one and lookup IDs and sometimes window messages in order to
operate on 'em. Also, spinners send WM_NOTIFY messages, so handle
that. Current implementation is a bit of a hack but works.
2008-08-27 12:16:33 +00:00
ehouse
5e6ba430fe
fix newg_attrChanged to exit quickly when there's no change
2008-08-27 12:09:30 +00:00
ehouse
07e7032c16
give serverRole a default value.
2008-08-27 12:08:07 +00:00
ehouse
5588ed30ad
Fix cached pen remaining after color preference changed.
2008-08-02 14:35:40 +00:00
ehouse
39eb88b14f
Replace dropdowns in limited-hint dialog with spinners. Combine flags
...
for spinners into a macro to guarantee all same.
2008-08-01 11:13:13 +00:00
ehouse
3859e84c52
fix major leakage by closing one game before opening another.
2008-08-01 10:47:32 +00:00
ehouse
be219b71f2
fix scrollbars now that I finally understand what nPage is supposed to be.
2008-08-01 10:37:52 +00:00
ehouse
691f5fea19
fix drawing on 320x320 devices by forcing Wince to treat them as 320x320.
2008-07-30 04:08:45 +00:00
ehouse
454788ad04
better leak debugging
2008-07-28 05:05:39 +00:00
ehouse
6c5e3b7149
draw divider focussed when all of tray has focus
2008-07-28 05:04:34 +00:00
ehouse
30fcb88e43
fix problems drawing focus so letters still visible on board.
2008-07-28 05:03:37 +00:00
ehouse
925964675a
add game names in sorted order
2008-07-28 05:02:39 +00:00
ehouse
da105cfb16
fix typo
2008-07-28 05:02:11 +00:00
ehouse
507c5e87d8
add new warning message
2008-07-28 05:01:03 +00:00
ehouse
0c751cc4d1
Add feature lost when five-way drag of divider became possible: don't
...
allow focus rect to stop on any empty tray slot but the leftmost.
2008-07-24 12:39:46 +00:00
ehouse
ac0a9f4ac5
Put up dialog when user asks for hint and the feature's disabled.
2008-07-24 12:37:05 +00:00
ehouse
b00a2ac384
Fix drawing of divider -- is too narrow to shrink horizontally so do so vertically; implement warnf with a dialog.
2008-07-24 04:16:48 +00:00
ehouse
9f82df49f6
Draw top-level board and tray focus as rect (like palm) rather than by
...
shading certain tiles/cells. Up version number. Change capitalization.
2008-07-20 16:33:19 +00:00
ehouse
7ded50b908
nuke unused variable
2008-07-20 16:31:50 +00:00
ehouse
8d6ae9424c
Draw divider smaller when focussed so color shows. Looks like crap,
...
but better than having focus disappear when on divider.
2008-07-18 09:20:20 +00:00
ehouse
fd805791e4
Quiet over-enthusiastic logging of state transitions.
2008-07-18 09:06:09 +00:00
ehouse
47088c8030
Return true on preflight for cursor move so will get called again.
...
Fixes tray nav on Palm.
2008-07-18 09:05:04 +00:00
ehouse
ab89d78ac8
selInfo can't be left null when board created, as selPlayer is 0.
...
Point at pti[0] to fix crasher.
2008-07-18 09:03:54 +00:00
ehouse
c20e85eccd
combine all per-player arrays in board into a single array of structs.
...
access can then be via a ptr, more effecient and faster. The change
seems to save 1K of generated code. No changes to algorithms, only to
field access.
2008-07-18 07:49:00 +00:00
ehouse
5422b82fd3
Implement new model for focus/tray interaction aimed at smartphones
...
with five-ways and no obvious alt key. Focus once dived into tray
moves over tiles *and* divider. Tap of center key toggles
selectedness of object under focus. Movement of focus when object is
selected drags the object (tile or divider) unless in trade mode.
This is easier to discover and behaves more like drag-and-drop -- and
lets you move the divider. Works for linux and win32. Key nav in
tray is broken on palm.
2008-07-17 05:16:09 +00:00
ehouse
e1c7211738
make function signature match param type
2008-07-17 05:07:01 +00:00
ehouse
0d44c26373
break board.c up so isn't too large for 68K on palm when compiled for
...
debugging.
2008-07-17 05:06:08 +00:00
ehouse
bc05761c4a
change API for drawing divider so it can be focussed as well as
...
selected. Being using that information in palm and wince. For GTK,
use color rather than ugly black rects to indicate focus.
2008-07-17 05:03:01 +00:00
ehouse
47b27f0e46
remove unused variable
2008-07-17 05:01:24 +00:00
ehouse
df52f6a47a
Accept words that contain no vowels.
2008-07-12 19:37:27 +00:00
ehouse
8e25e205fc
update in accordance with current Dutch practice (says an informant)
2008-07-10 03:13:33 +00:00
ehouse
ad52e63ff0
separate UI-specific code so that a non-UI linux library can be compiled, e.g. for use with a toolkit not gtk or ncurses
2008-06-30 03:39:27 +00:00
ehouse
ebc481ddc0
Implement dup, delete and rename buttons in saved games dialog.
...
Differs from Palm in having no edit field. Rather, a separate dialog
comes up to get the new name. Rather than reload the spinbox with a
new set of saved games after an action, just close and reopen the
dialog.
2008-06-26 04:17:14 +00:00
ehouse
951d7e1c7e
Use GetModuleFileName to find dictionaries in same directory as executable. Replace cute attempt to cons up list of possible dict locations with a string in a resource. Get rid of two-year-old code explaining a change in where dicts live. Fix typo putting 4K buffer on stack.
2008-06-13 05:25:20 +00:00
ehouse
2ed08ac7da
Fix cosmetic problems when changing focus and board overlaps tray.
...
The goal is to have the tray drawn on top, even if it's otherwise
hidden, when the whole thing's focussed. Fix is to inval and
recalculate rects more often as focus changes or tray is hidden.
2008-06-07 23:14:26 +00:00
ehouse
2905af749e
Fix crasher: don't start a board-scroll operation and attempt to end
...
by dropping a tile. (This part is to detect that no drag actuall happened.)
2008-06-07 23:07:31 +00:00
ehouse
183d5514ca
Fix crasher: don't start a board-scroll operation and attempt to end
...
by dropping a tile.
2008-06-07 23:05:54 +00:00
ehouse
bbfdeb6bf8
Draw tiles hanging a bit below board when hidden to allow testing of
...
common case on wince devices.
2008-06-07 23:03:47 +00:00
ehouse
6153fc9854
Up version of APIs being used. Using non-hex may have been a mistake
...
anyway. Remove locally defined function that's available with higher
version.
2008-06-07 15:59:56 +00:00
ehouse
49a897c0de
Remove tabs. Whitespace changes only.
2008-06-07 14:47:55 +00:00
ehouse
80b73824e1
Cleanup: fix for win32; remove constants that belong in cegcc; etc.
2008-06-07 14:42:20 +00:00
ehouse
930ed69d6b
Finally fix scroll-follows-focus for color edit dialog (the tallest).
...
Trick was to add BS_NOTIFY property to dialog controls and look for
the WM_COMMAND->BN_SETFOCUS message.
2008-06-07 14:40:05 +00:00
ehouse
fa1f65283f
for win32, look for dicts locally.
2008-06-07 13:46:27 +00:00
ehouse
a29ab639fc
rename and reorganize/simplify dialog-handling code common to all
...
dialogs, handling scrolling and backspace key (smartphone only) and
scroll-by-focus in a single place.
2008-06-05 04:29:28 +00:00
ehouse
3555414ffc
Fix dictionary-search code to look in top-level temporary directories
...
rather than hard-coded "SD Card" etc. to work in non-English cases;
fix password dialog to fit, and simplify it; fix backspace on
smartphone for all dialogs with EDIT fields to actually backspace
rather than exiting app; and in main window have it raise focus. This
change requires SHSendBackToFocusWindow(), which is not yet in cegcc.
Until I get a patch accepted this breaks wince builds.
2008-05-31 22:07:29 +00:00
ehouse
f749fdd560
Remove all tabs. No code changes.
2008-05-31 03:26:16 +00:00
ehouse
af089de849
Move to new cegcc, whose tools have slightly different name.
2008-05-26 00:47:40 +00:00
ehouse
bd6aed4b5a
Fix so curses-only builds and curses build doesn't segfault.
2008-05-26 00:27:48 +00:00
ehouse
1355b61906
set background color in timer, preventing flash of color when focus on scoreboard.
2008-05-25 15:54:34 +00:00
ehouse
64199cf1ec
clip so arrow doesn't overwrite cell border on smartphone with small cells.
2008-05-25 15:31:54 +00:00
ehouse
556e947cad
Prevent Pts in temp score display from overwriting number: draw it
...
first, and use a font the right size.
2008-05-25 15:08:59 +00:00
ehouse
ec8786b2a7
cleanup: remove dead function; move variables closer to where used
2008-05-25 15:08:03 +00:00
ehouse
8fa530303a
fix bug: don't advance arrow if unable to move tile to board (introduced with recent tile index changes)
2008-05-24 16:21:03 +00:00
ehouse
c6da605b56
add missing error message
2008-05-24 16:08:13 +00:00
ehouse
4c191e0755
Don't specify g++ version; add some consts to fix warnings with newer g++.
2008-05-21 03:49:11 +00:00
ehouse
6280129788
Fix bug that number key tries to move tile to board even during trade.
...
Generalize use of number to select tile in tray so that during trade
keys will toggle selected tiles. Letters too.
2008-05-19 01:18:43 +00:00
ehouse
51d4c608f9
Don't include mingwm10.dll in .cab. Doesn't seem to be needed.
2008-05-12 02:51:22 +00:00
ehouse
5502c3ef8b
Trying to give smartphone users way to use keypad to move tiles to
...
board. Enabling key-to-text works, but constants to turn it off
aren't in cegcc. So for b2 add a quick hack where 1 means first tile
in tray, 7 means last (rightmost). Enable and test on gtk.
2008-05-11 20:29:43 +00:00
ehouse
290f505a98
While tap on draggable tile should not return it to tray, return-key on same tile should.
...
That's the only way to return a single tile on smartphone.
2008-05-11 16:20:37 +00:00
ehouse
f5b5da9dc5
Fix trade window draw and timer draw by setting clip rect. Change
...
softkey to turnDone when trading. Tweak trade-related user messages.
2008-05-11 15:25:04 +00:00
ehouse
1a2ce36bb0
A bit of cleanup; no code change.
2008-05-11 15:23:22 +00:00
ehouse
cf6a3db940
Work around what appears to be smartphone bug where grouped radio
...
buttons are not kept in sync by manually unchecking one when the
other's selected. Also add terminating WS_GROUP bits; they're supposed
to be there, but did not help.
2008-05-11 13:58:04 +00:00
ehouse
4e9f1c6c2b
remove unnecessary memset
2008-05-11 13:55:58 +00:00
ehouse
9617f503a9
Make prefs dialog narrower so fits smartphone screen.
2008-05-10 22:33:07 +00:00
ehouse
bbd9384a9e
fix win32 build
2008-05-10 21:11:54 +00:00
ehouse
180de81e58
Fix color edit dialog itself. Shrink to fit smartphone screen. And
...
use another owner-drawn button for the sample so it can be located in
the resource file.
2008-05-10 21:09:12 +00:00
ehouse
3d6f26cc3d
Work around apparent limitation to smartphone/ppc, that ownerdraw
...
buttons don't generate WM_MESSAGE events and ownerdraw static controls
don't get drawn: have one disabled ownerdraw button as the color
sample and a real button to trigger the edit.
2008-05-10 18:41:16 +00:00
ehouse
e178b7ccf5
Use SHInitDialog on smartphone to create fullscreen dialogs. Move
...
test for smartphone into util functions so can't forget it. This
fixes scrolling on smartphone.
2008-05-10 15:42:52 +00:00
ehouse
ebad668227
add some consts.
2008-05-06 12:49:37 +00:00
ehouse
6c81a63fce
redraw tray (if dirty) even if hidden. On wince at least this
...
prevents the bottoms of the tiles from peeking out from under a
partially obscuring board, giving away information. In cases where
the board completely hides the tray this is unnecessary, but making
that optimiztion can come later. This is a bug.
2008-04-14 01:31:53 +00:00
ehouse
ac63d5621f
Clean up saved games dialogs, and remove (temporarily) controls that
...
won't do anything for b2. Rename a couple of structs.
2008-04-13 17:14:16 +00:00
ehouse
63419db11a
Put game name in title bar on launch as well as after opening saved
...
game. Clear when opening unnamed/defaultnamed game
2008-04-13 17:01:09 +00:00
ehouse
18ea57fa38
Set clip rect before scrolling screen. Fixes bug where scroll forced
...
by hint left board drawn incorrectly.
2008-04-12 19:29:20 +00:00
ehouse
4730a23188
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +00:00
ehouse
b085e0cea7
Fix drawing of cursor arrow by moving the clip rect.
2008-04-12 15:47:15 +00:00
ehouse
c2fbb06438
force miniwindow entirely onto board even if natural position is on
...
tray; fix overdrawing onto miniwindow by making timer proc return a
boolean and only redrawing (on wince) when it's true.
2008-04-12 15:36:31 +00:00
ehouse
ff254fcef4
add ability to scroll the board by dragging it. add new method
...
util_altKeyDown to allow user to choose between scrolling board and
dragging the hint rect when both are possible. add adjustYOffset;
make it and board_setYOffset more tolerant of out-of-bounds inputs and
use that to simplify calling code.
2008-04-08 03:55:53 +00:00
ehouse
fd4cc02c13
shorten dialog
2008-04-02 03:51:12 +00:00
ehouse
97b8d81d40
remove excessive logging
2008-04-02 03:50:55 +00:00
ehouse
11b0b4d254
up version number; test for CELL_DRAGSRC and treat same as empty.
2008-04-01 13:00:10 +00:00
ehouse
0225343c09
Remove params from ceDlgSetup and ceDoDlgFocusScroll; use the right
...
message to fetch text from listbox on CE.
2008-03-31 00:26:18 +00:00
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
1e7bc3839b
Implement scrolling during drag via timer rather than by counting on
...
getting notified when pen is dragged off the board. The latter won't
happen if the board is up against the edge of the screen.
2008-03-29 20:23:27 +00:00
ehouse
1172502b04
If search limits in use, try vertical as well as horizontal initial moves.
2008-03-29 19:40:03 +00:00
ehouse
75ab88565d
implement util_yOffsetChange; increase pen timer to half second.
2008-03-27 04:12:16 +00:00
ehouse
ae67a58a26
Attempt to find font that best fits string to encosing rect. Works
...
but only with a hack: need to understand pango better.
2008-03-25 12:47:05 +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
ed2452cbc2
add assertions that formatted string returned fit within the provided space.
2008-03-23 19:14:20 +00:00
ehouse
5fd535d853
Break Czech into two "languages" as a way to support the two encodings in common use.
2008-03-19 04:47:03 +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
dda5042690
Remove windows LF chars just in case; take SOURCEDICT via cmdline; add emacs modeline.
2008-03-15 15:00:46 +00:00
ehouse
a028b34a11
Compile dict2dawg by default since dict2dawg.pl has problems; fix warnings.
2008-03-15 14:52:23 +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
4beb818de3
use sigaction rather than signal
2008-03-15 14:04:02 +00:00
ehouse
1de7ca6697
When scrolling in response to a drag, invalidate under the tile both
...
before and after the scroll. Otherwise on platforms where scrolling
is via a bitmove the old position gets scrolled away and never redrawn
leaving ghost tile parts lying around.
2008-03-15 14:00:05 +00:00
ehouse
d3ce87b057
Indicate empty cell with CELL_ISEMPTY rather than an empty string; fix
...
palm to not draw star on top of placed tile.
2008-03-14 09:36:42 +00:00
ehouse
123923fd4b
rewrite invalCellsUnderRect to be less stupid: start from rect passed
...
in rather than whole board.
2008-03-14 09:20:26 +00:00
ehouse
cb22f01d2b
Remove commented-out field. (Forgot to save before checking in....)
2008-03-13 12:43:33 +00:00
ehouse
d00aa75a12
fold hint-region-drag into dragdrpp, saving a bunch of code and
...
gaining scrolling during drag on small screens.
2008-03-13 12:23:22 +00:00
ehouse
5c8756856d
fix crash: check that tile exists before removing
2008-03-12 12:21:23 +00:00
ehouse
6083142344
Make function static
2008-03-11 12:28:57 +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
4a6f07d1fa
Don't return tile to tray on a simple tap when drag-drop is available; move
...
function between files.
2008-03-11 12:22:10 +00:00
ehouse
355cfa9fcc
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +00:00
ehouse
bc873169f1
Add __attribute__ ((format)) and fix problem it flags.
2008-03-10 12:02:53 +00:00
ehouse
559700e27b
Quick drawTileMidDrag() so doesn't crash. Still needs to set
...
background color.
2008-03-10 11:59:30 +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
f30dd17e00
rename constants to begin with GTK so they're unique.
2008-03-10 00:51:20 +00:00
ehouse
c526d86a88
invalidate divider when first touched so that it's drawn in-drag immediately.
2008-03-10 00:49:06 +00:00
ehouse
963c59b0b5
implement drawTileMidDrag (same as tile in tray for now)
2008-03-09 23:32:24 +00:00
ehouse
193bc90a06
add dragdrpp.{c,h}, since apparently merging doesn't include svn adding
2008-03-08 23:19:04 +00:00
ehouse
0b1f4b8f0a
merge with drag_n_drop branch: apply patch generated with this command on that branch: svn diff -r 2080:2087
2008-03-08 23:16:21 +00:00
ehouse
4c730be669
make new turnChanged notification compile-time conditional
2008-02-27 05:43:27 +00:00
ehouse
067c3c8cd0
remove dead code
2008-02-27 05:38:28 +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
b397c30178
add and call util_turnChanged
2008-02-26 13:46:33 +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
9d0231a8b7
line column heads up correctly again
2008-02-23 22:00:40 +00:00
ehouse
907838591e
Fix to work with BYOD: pass -r rather than use grep to pull illegal words; fix language code; include charset.
2008-02-23 21:59:38 +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
f0b53fd605
First cut at handling Czech. Correspondent says the Palm dict looks right. Still need to test on Windows and on BYOD.
2008-02-20 03:50:32 +00:00
ehouse
ab73fc4d38
cleanup; add lineno so number of letters is apparent
2008-02-20 03:44:31 +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
f5ae6b9809
add -Werror
2008-02-16 19:05:30 +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
3ec8ee536e
fix compile warning
2008-02-16 17:09:21 +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
005694b0b1
Don't hide tray if there's only one player.
2008-02-16 15:53:00 +00:00
ehouse
c3555440fd
get rid of const-related warnings
2008-02-16 15:49:03 +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
1d61635ebd
Don't cast char array to long and write to it! Newer arm compilers
...
don't like this -- or maybe I was just lucky until now.
2008-02-04 06:13:11 +00:00
ehouse
ea7949dd22
Make a couple of dialogs format for narrower screen and respect keypad buttons.
2008-02-02 20:58:44 +00:00
ehouse
2910bab3a0
fix perimeter focus clearing and board size setting.
2008-02-02 17:21:57 +00:00
ehouse
b98b7fd993
Move toward running curses on a small screen: replace omnipresent menu
...
with one drawn on demand; change size and location of scoreboard and
tray if needed; use wgetch rather than reading stdin to support keypad
keys for navigation. Also stick g_ in front of some frequently used
global names.
2008-02-02 16:56:20 +00:00
ehouse
bae6890c35
fix to build without Bluetooth headers
2008-02-02 16:53:36 +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
f90b6d35e8
Fix to compile and run standalone
2008-01-19 16:04:48 +00:00
ehouse
6e9e5b5c99
Fix to compile and run standalone
2008-01-19 16:03:53 +00:00
ehouse
3d314081b2
Latest strings translated.
2008-01-08 14:35:41 +00:00
ehouse
f0bad7dc38
Tweak text around locating host device
2008-01-07 13:56:53 +00:00
ehouse
f2e5f4f2a4
fix so non-debug builds compile
2008-01-07 13:56:20 +00:00
ehouse
3e04e89803
remove newly-added palm_bt_nameForAddr
2008-01-07 13:36:00 +00:00
ehouse
7153bbb574
Add method to lookup hostname without access to btlib state. Some cleanup.
2008-01-07 01:27:45 +00:00
ehouse
b4f2df5eb5
Log unusual case.
2008-01-07 01:19:47 +00:00
ehouse
c6a6ec1fb0
Get rid of unused enum.
2008-01-07 01:19:24 +00:00
ehouse
e9ac7f53c4
Error code used with method to check consistency of BT address.
2008-01-07 01:18:51 +00:00
ehouse
3de08b9908
non-code change to make debugging easier
2008-01-07 01:17:42 +00:00
ehouse
9246ca78a5
Revert to default values for conType-specific fields for all types but
...
the current. This prevents random-string hostnames when switching
from IR to BT. Also some code cleanup.
2008-01-07 01:15:18 +00:00
ehouse
92c37d836c
Error string used with method to check consistency of BT address.
2008-01-07 01:12:12 +00:00
ehouse
ff7a3bfe63
Error code used with method to check consistency of BT address.
2008-01-07 01:11:29 +00:00
ehouse
3374849111
Unify lookup by address and by channelNo; add method to check consistency of BT address.
2008-01-07 01:10:43 +00:00
ehouse
b333476d48
Update to use modified newg_store
2008-01-05 16:37:49 +00:00
ehouse
08da013d4d
Warn user, and refuse to continue, when new game is as host and has no remote players. API
...
changes, so other platforms won't compile until changed.
2008-01-04 14:47:52 +00:00
ehouse
81c3d1681a
when variables in callback indicate we're running in another app's context, do nothing
2008-01-02 01:46:35 +00:00
ehouse
bad6415484
log date on startup; don't always put up about dialog on first boot; remove excessive logging
2008-01-02 01:45:58 +00:00
ehouse
22909ce6fb
add target for dict2dawg
2008-01-02 01:44:12 +00:00
ehouse
b115cc6f0c
fix unused param warning
2008-01-02 01:43:45 +00:00
ehouse
1828cfcf11
up copyright date and beta version number
2008-01-02 01:28:30 +00:00
ehouse
40f7295802
test for duplicate initial client message and if so drop it; add const keyword; add assertion in addr comparion in attempt to learn why duplicates are getting through.
2007-12-31 20:00:13 +00:00
ehouse
4074417b33
ignore timers if state changes after they're set; take down links when resetting
2007-12-31 01:22:03 +00:00
ehouse
81dac2ec1b
draw hint borders wider on high-res devices so they're actually visible (part 2)
2007-12-19 05:31:53 +00:00
ehouse
f1ee7db34c
Add what may be final French translations; remove pre-release part of aboutbox text.
2007-12-19 05:30:51 +00:00
ehouse
995990d70a
draw hint borders wider on high-res devices so they're actually visible
2007-12-19 05:29:53 +00:00
ehouse
02ca3eb9d7
Make initial value of confirmBTConnect true.
2007-12-15 18:55:32 +00:00
ehouse
9292e38cab
Substitute name of remote host into request for connection
...
initialization confirmation.
2007-12-15 07:22:12 +00:00
ehouse
484025a21f
Catch French up with change for BT connect confirmation (pending
...
translation.)
2007-12-14 13:37:12 +00:00
ehouse
8668420dd0
Don't end game when player has no tiles left in tray but still
...
tentative tiles on board.
2007-12-14 13:25:40 +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
711bdf54f2
Instead of warning user on failure to connect via BT, add preference
...
to allow user to confirm before every attempt. Users will learn to
set this when T650s are in the mix. Save a new preference, and up the
stream version. Up beta version. Add the preference both to the prefs
dialog and to the bluetooth connection (for guest) dialog, with both
impacting the same field in gamePrefs.
2007-12-14 03:38:55 +00:00
ehouse
872ae90c94
fix bug using same string and code to warn and to reject phonies.
2007-12-14 03:21:46 +00:00
ehouse
d6a161b939
fix bug introduced by what was supposed to be risk-free change: send prefsChangedEvent rather than the wrong one so preferences get honored again.
2007-12-13 14:44:29 +00:00
ehouse
5cf30db8f0
Change Resend menu text, and to make it clearer put up an error message when it's used in a standalone game.
2007-12-12 04:23:42 +00:00
ehouse
01fec3742c
Substitute French translations of new BT-related strings; since this
...
results in overlapping buttons, add code to space them evenly across
window.
2007-12-11 04:36:50 +00:00
ehouse
8035955814
Add non-sf.net contact options; make params const.
2007-12-09 23:37:47 +00:00
ehouse
4c686bdaa0
Add strings and make other changes needed for compilation with BT on
...
for French, marked for translation. Fix formatting and add emacs
compile string for English.
2007-12-09 04:02:24 +00:00
ehouse
a07a5f2822
cleanup; replace a bunch of EvtAddEventToQueue calls with
...
postEmptyEvent; pass transport type with incoming packets so they can
be rejected if not on expected channel (to stop IR, which is always
on, from injecting into a BT game); do BT work and fire timers even
when menu is down; don't let robot run until after board is drawn for
the first time; on startup, don't let robot run until after board is
drawn once. Up version to b3.
2007-12-09 01:59:15 +00:00
ehouse
8dfff86cff
Fix crash on restart when app had been exited with some form other
...
than main on top. focusOwner was saved based on front form but on
startup I tried to set it in the main form. This will need to be
merged into a branch based on the 4.2.1 release for a 4.2.1.
2007-12-08 21:04:44 +00:00
ehouse
75a3c36ad6
Remove unused code and constants; fix to compile with relay; don't
...
show connection type dialog unless more than IR is available and
supported, and then build the dropdown dynamically based on what's
compiled-in and available on the device. This means you don't see the
BT option at all if you don't have BT.
2007-12-08 18:11:42 +00:00
ehouse
348111ece2
Remove unused FindTrustedDevice calls; don't try to become master or slave
...
until we know which we'll be. This likely fixes the problem where devices
have trouble connecting after switching roles.
2007-12-07 09:50:48 +00:00
ehouse
619e7d14c0
call util_addrChange prior to closing comms to fix crash moving from
...
BT to standalone game; add a couple of similar assertions; up beta
version.
2007-12-07 07:50:19 +00:00
ehouse
33cb34abfe
Remove excessive focus logging; fix timer bug for BT by posting event so EvtGetEvent can exit
2007-12-06 05:26:44 +00:00
ehouse
ad78ec1fd8
Rewrite of checkIncomingStream to be cleaner and fix bug with initial messages getting dropped
...
while heartbeat feature was enabled. Fixed the problem on Linux, but experience on Treo650
is still better without HB feature, so turning it off on Palm. This seems ready for beta,
but will test a bit more.
2007-12-05 06:33:37 +00:00
ehouse
7929865ad9
Comments only.
2007-12-05 06:31:30 +00:00