ehouse
51a42ce2a2
Cleanup: fix for win32; remove constants that belong in cegcc; etc.
2008-06-07 14:42:20 +00:00
ehouse
5e06c72f5d
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
662bc9ec5f
for win32, look for dicts locally.
2008-06-07 13:46:27 +00:00
ehouse
588c16d45f
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
7da66696ed
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
2dceb054b8
Move to new cegcc, whose tools have slightly different name.
2008-05-26 00:47:40 +00:00
ehouse
7b781b9ff1
set background color in timer, preventing flash of color when focus on scoreboard.
2008-05-25 15:54:34 +00:00
ehouse
3d7595fb2c
clip so arrow doesn't overwrite cell border on smartphone with small cells.
2008-05-25 15:31:54 +00:00
ehouse
7821a4c5e5
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
41192e60a0
cleanup: remove dead function; move variables closer to where used
2008-05-25 15:08:03 +00:00
ehouse
467f93ce4f
Don't include mingwm10.dll in .cab. Doesn't seem to be needed.
2008-05-12 02:51:22 +00:00
ehouse
1d5446bfdf
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
90a10345b8
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
2744bcef97
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
255592ddec
remove unnecessary memset
2008-05-11 13:55:58 +00:00
ehouse
f24965c093
Make prefs dialog narrower so fits smartphone screen.
2008-05-10 22:33:07 +00:00
ehouse
cba5a023d1
fix win32 build
2008-05-10 21:11:54 +00:00
ehouse
3b1d566eed
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
bec57181ed
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
44186e220d
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
8a6df572ae
add some consts.
2008-05-06 12:49:37 +00:00
ehouse
d7d8c054b2
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
536de24e1d
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
37af03cae3
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
39212dcde2
Fix drawing of cursor arrow by moving the clip rect.
2008-04-12 15:47:15 +00:00
ehouse
f1ec47aa93
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
72457bf28c
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
f7c48a729f
shorten dialog
2008-04-02 03:51:12 +00:00
ehouse
120592324a
remove excessive logging
2008-04-02 03:50:55 +00:00
ehouse
95f26fe5c3
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
4518bbdc05
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
cde4a4dd6b
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
cdd8ce3960
Remove params from ceDlgSetup and ceDoDlgFocusScroll
2008-03-31 00:23:07 +00:00
ehouse
e8765fb12c
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
e7b1e7d927
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
e572034ac5
name change only
2008-03-30 23:58:04 +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
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
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
20ea57cf77
Fix errors, all in debug-only code, flagged by __attribute__ format addition.
2008-03-11 12:24:23 +00:00
ehouse
0988159795
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +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
72ada6b1a8
implement drawTileMidDrag (same as tile in tray for now)
2008-03-09 23:32:24 +00:00
ehouse
7b11fa228b
make new turnChanged notification compile-time conditional
2008-02-27 05:43:27 +00:00
ehouse
78dfed6c59
Put back "turn done" menu, and add call to change the left softkey.
...
Call it when turn changes, new game is begun, and hint feature has
been used. Currently menuitem is duplicated. Goal is to remove the
item being attached to the left button and to replace it when another
is chosen.
2008-02-26 13:49:41 +00:00
ehouse
d5475fa89f
add -D_WIN32_IE=0x0400 (needed for some structs in mingw headers)
2008-02-26 13:47:28 +00:00
ehouse
b614b9b14c
Add name of color edited to title of color edited. Clean up names and constants in support.
2008-02-26 13:31:36 +00:00
ehouse
7da5ce74f4
Convert prefs in old format to new when encountered so that users
...
don't lose settings on upgrading.
2008-02-23 22:06:05 +00:00
ehouse
6c052fb801
Add more message strings
2008-02-23 22:02:10 +00:00
ehouse
e081747cb9
put file menu last where easier to get to
2008-02-23 22:01:36 +00:00
ehouse
073aa6716b
Draw color samples to look more like buttons including thicker border to indicate focus.
2008-02-22 13:27:33 +00:00
ehouse
0b5a14c424
Add ENABLE_LOGGING define so logging can be used on non-debug builds, e.g. to trace opening of non-debug saved games and prefs files.
2008-02-17 21:48:48 +00:00
ehouse
eee7fd01b0
add mingwm10.dll to .cab files
2008-02-16 20:26:47 +00:00
ehouse
25b568d22e
Fix timers to work even when message queue is full; make fullScreen
...
choice persistent; clean up resource file and add missing strings.
2008-02-16 17:36:46 +00:00
ehouse
89a7a6fd01
fix warning
2008-02-16 17:19:31 +00:00
ehouse
f81d1a6f5d
move or add ceStackButtonsRight
2008-02-16 17:19:06 +00:00
ehouse
ce3131fb06
modify ceStackButtonsRight to place dialog ok/cancel buttons in
...
bottom menubar where possible; move XP_LOGW to cedebug.c
2008-02-16 17:14:35 +00:00
ehouse
a65886d417
Add missing files.
2008-02-16 16:36:37 +00:00
ehouse
266038a463
Make cegcc the default build environment for wince. Make inclusion of hacks needed to work with mingw/pocketpc-sdk conditional.
2008-02-16 16:33:46 +00:00
ehouse
642e6611db
Mark params unused in compiles for standalone; remove unused param.
2008-02-16 16:02:49 +00:00
ehouse
145e55c7f0
Add resource for two-soft-key commandbar and put it up. The single item is "Done" for now.
2008-02-05 04:57:58 +00:00
ehouse
2649017752
Modify to switch between cegcc and pocketpc-sdk, with pocketpc-sdk
...
choice commented out. cegcc builds it about 30% smaller, in line with
what the older M$ tools could do.
2008-02-05 03:45:24 +00:00
ehouse
7a2faeec61
make "next hint" top sub-item since it'll be most frequently used
2008-02-05 03:38:15 +00:00
ehouse
19ea3e1f6e
change name of field. No code change. Pending on symbian and franklin which don't compile.
2008-02-02 15:17:53 +00:00
ehouse
2386ab6b31
Add full-screen mode and menu to get to it (leaving the cmdbar/softkey
...
area in place until I figure out how to work a UI without a visible
menu); rework menu to launch new-style from a single softkey; remove
cmdbuttons and associated resources; limited progress on handling
return key/timeouts for keyboard navigation.
2008-01-20 15:36:17 +00:00
ehouse
fc3dcc3586
Turn off experimental multi-device features; up copyright; define XP_UCHAR as signed char to fix lots of warnings.
2008-01-19 16:34:21 +00:00
ehouse
a9d1697c7b
Update to use modified newg_store
2008-01-05 16:37:49 +00:00
ehouse
9d42d1b902
Fix compilation errors due to constant name changes -- no change to binary.
2007-12-14 13:06:44 +00:00
ehouse
e894a44b61
Fix compilation errors. Not tested.
2007-12-03 01:18:13 +00:00
ehouse
b527110379
replace all __FUNCTION__ with __func__
2007-12-02 19:13:25 +00:00
ehouse
5878ea6018
type name change only
2007-05-26 14:14:01 +00:00
ehouse
e891a26756
substitute macro for common sizeof(x)/sizeof(x[0]) pattern; no generated code change
2007-05-26 14:03:07 +00:00
ehouse
6dc75914a6
turn stringFromStream into macro to aid logging for leak detection. Debug builds only effected.
2007-03-18 23:31:51 +00:00
ehouse
2fe75a19a2
add const to a bunch of char* decls in APIs and variables; no code change
2007-02-03 17:54:20 +00:00
ehouse
916ea4abc2
name change only: Connectedness becomes DeviceRole
2007-02-02 08:34:37 +00:00
ehouse
17993fea06
Tweak scroll-of-focussed-board inval code so we don't inval the whole
...
board, which looks crappy. Instead inval only what was previously a
border row, and pass a new param to draw_vertScrollBoard so the
platform can choose not to scroll cells that will just get overwritten
with different bits.
2007-01-21 22:59:29 +00:00
ehouse
b4d01f15f2
preliminary addition of xplatform-only focus, esp drawing of cursor
...
and handling of arrow keys via WM_KEYUP; added focus/cursor color to
prefs and color edit dialog. Tested only on win32 (WINE), and not
integrated with platform nav/focus model.
2007-01-19 08:24:02 +00:00
ehouse
3a0b5af472
change constant names. No change to code compiled.
2007-01-19 06:43:52 +00:00
ehouse
40832e6ea5
reintroduce board_handleKey
2007-01-18 02:42:37 +00:00
ehouse
4646ac5711
Clean up for non-keyboard and non-keyboard-nav cases. Wince is the
...
latter: make it compile again.
2007-01-07 01:01:20 +00:00
ehouse
0924cc29b8
Fix to work with draw API changes
2006-11-12 15:22:26 +00:00
ehouse
e5e36f0fa4
Use new XP_TriEnable type; begin work to support bluetooth by tracking
...
connType and adding choice how to connect. Bt connect dialog is
invoked, but the fields won't be populated. Pass conn type into
socket constructor, assuming socket code doesn't change much to use BT
rather than TCP.
2006-10-28 14:56:04 +00:00
ehouse
912fe93829
add a few consts decls where APIs changed; use XWFEATURE_RELAY rather
...
than BEYOND_IR
2006-10-22 19:44:30 +00:00
ehouse
ba4f91d9e0
remove BEYOND_IR, replacing with XWFEATURE_RELAY and
...
XWFEATURE_BLUETOOTH. The goal is to be able to build to support
bluetooth only, or relay/ip only, e.g. for a palm bluetooth beta.
Seems to work.
2006-10-10 01:34:37 +00:00
ehouse
1f163665ba
tweak svnversion output so make stays happy
2006-09-15 07:52:45 +00:00
ehouse
5780da7b93
catch up with recent API changes; fix bug in newgame dialog.
2006-09-15 07:39:57 +00:00
ehouse
f561989644
Set -Wunused-parameter for those versions of gcc that support it, and
...
deal with the output by removing params where possible and elsewhere
by adding XP_UNUSED macro wrapping __attribute__((unused)). There
should be NO change in function in spite of the large number of files.
2006-08-16 13:44:44 +00:00
ehouse
9c1b48d0e4
include svn version in name of generated .exe file.
2006-08-16 01:30:31 +00:00
ehouse
f8e4579116
patch from Peter Rovnak. For Slovak support, need to specify the tray
...
font by name in order to get one that has all the necessary faces. Seems
to make no difference on US/English systems, but it works for him on a
localized device.
2006-08-16 01:29:21 +00:00
ehouse
cfb5e57d07
fix broken ce build: remove ifdefs.
2006-08-11 01:33:19 +00:00
ehouse
b07854961e
turn on flip menu for PPC build too
2006-07-28 07:52:40 +00:00