ehouse
f1c8dd6190
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
12be76bac4
If search limits in use, try vertical as well as horizontal initial moves.
2008-03-29 19:40:03 +00:00
ehouse
6a83cc94f4
implement util_yOffsetChange; increase pen timer to half second.
2008-03-27 04:12:16 +00:00
ehouse
72ee1032c0
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
63c0cd8aee
Use new APIs to scroll dialogs; use new saved games dialogs.
2008-03-24 12:41:12 +00:00
ehouse
2462bd8cbc
constants for new savegame dialogs
2008-03-23 19:39:08 +00:00
ehouse
e866602426
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
bee16be975
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
e98ba24c47
New functions to replace OpenFileName etc. that don't exist on Smartphone.
2008-03-23 19:25:49 +00:00
ehouse
61272a3a7e
add assertions that formatted string returned fit within the provided space.
2008-03-23 19:14:20 +00:00
ehouse
265a2bcc28
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
b779876fbc
Pick fonts for tray and board based on sizes at runtime; bury tile
...
values menuitem.
2008-03-16 14:23:57 +00:00
ehouse
363f1ce6e4
Use clipping to prevent spillage when cells are very small.
2008-03-15 23:06:06 +00:00
ehouse
c42e76af5b
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
243c645c20
Change About box implementation from separate dialog to str resource
...
passed to MessageBox
2008-03-15 19:24:59 +00:00
ehouse
ef5e20d708
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
c9101ec801
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
835a0ae45e
Remove windows LF chars just in case; take SOURCEDICT via cmdline; add emacs modeline.
2008-03-15 15:00:46 +00:00
ehouse
15a2154720
Compile dict2dawg by default since dict2dawg.pl has problems; fix warnings.
2008-03-15 14:52:23 +00:00
ehouse
08326c6146
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
5581297d05
use sigaction rather than signal
2008-03-15 14:04:02 +00:00
ehouse
ffd7dffd27
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
ddafe8b97a
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
88ef41af15
rewrite invalCellsUnderRect to be less stupid: start from rect passed
...
in rather than whole board.
2008-03-14 09:20:26 +00:00
ehouse
8f7d120b8c
Remove commented-out field. (Forgot to save before checking in....)
2008-03-13 12:43:33 +00:00
ehouse
3dbf026372
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
93a621c65c
fix crash: check that tile exists before removing
2008-03-12 12:21:23 +00:00
ehouse
0f18efb925
Make function static
2008-03-11 12:28:57 +00:00
ehouse
20ea57cf77
Fix errors, all in debug-only code, flagged by __attribute__ format addition.
2008-03-11 12:24:23 +00:00
ehouse
1eb2933d49
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
0988159795
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +00:00
ehouse
e5b8de54aa
Add __attribute__ ((format)) and fix problem it flags.
2008-03-10 12:02:53 +00:00
ehouse
4dfbfb34f7
Quick drawTileMidDrag() so doesn't crash. Still needs to set
...
background color.
2008-03-10 11:59:30 +00:00
ehouse
2c3b7b23db
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
a69d763202
rename constants to begin with GTK so they're unique.
2008-03-10 00:51:20 +00:00
ehouse
42e10c2ac2
invalidate divider when first touched so that it's drawn in-drag immediately.
2008-03-10 00:49:06 +00:00
ehouse
72ada6b1a8
implement drawTileMidDrag (same as tile in tray for now)
2008-03-09 23:32:24 +00:00
ehouse
da665d1bc9
add dragdrpp.{c,h}, since apparently merging doesn't include svn adding
2008-03-08 23:19:04 +00:00
ehouse
c26eed3462
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
7b11fa228b
make new turnChanged notification compile-time conditional
2008-02-27 05:43:27 +00:00
ehouse
497e5beb76
remove dead code
2008-02-27 05:38:28 +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
93f95588d8
add and call util_turnChanged
2008-02-26 13:46:33 +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
e06b2d502b
line column heads up correctly again
2008-02-23 22:00:40 +00:00
ehouse
0ab471e8c3
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