ehouse
1fa517693a
log size of incoming packets
2009-02-07 18:15:17 +00:00
ehouse
7556ecf49f
Make it possible to run same binary against relay with relay heartbeat
...
and direct with comms heartbeat. This mostly means changing ifdefs.
2009-02-01 15:50:58 +00:00
ehouse
7698393780
cleanup; set locale based on ENV
2009-01-25 20:31:13 +00:00
ehouse
f387cd5fa2
Add sms support, largely untested.
2009-01-13 13:33:56 +00:00
ehouse
77381a1d5d
Use new draw API but same bitmap as always (large in tile, small in
...
cell.) In cases where bitmap and text provided, prefer bitmap.
2009-01-13 13:02:17 +00:00
ehouse
eddd7fe55b
Cleanup; add sms example to usage()
2009-01-05 02:11:13 +00:00
ehouse
ab8741f8a9
Use the new common/strutils binToSms routines. For now, use glib's
...
too and assert output is the same.
2009-01-05 02:10:27 +00:00
ehouse
ad9d0b7ee1
Remove newlines from debug statements.
2009-01-05 01:59:04 +00:00
ehouse
5e905686fa
Cleanup to build with relay enabled; don't enable any network features
...
if STANDALONE_ONLY is defined.
2009-01-03 23:56:20 +00:00
ehouse
84bd5f24cc
Fix compile errors using latest gcc (fread etc must have return value checked)
2009-01-03 18:12:34 +00:00
ehouse
227a58d115
Since there's now a flag indicating whether to show the value of a
...
tile, make value unsigned. Adjust/fix platforms. Add cmdline flag to
linux apps for hiding values.
2008-12-29 03:09:35 +00:00
ehouse
fa4adbfcea
Add support to gtk app for tranport over "sms", with files containing
...
base64-encoded data as the messages. Make necessary changes to comms.
This is the foundation for doing real SMS transport on handhelds.
Currently a full robot game works for two gtk clients provided the
server is launched first.
2008-12-29 01:35:29 +00:00
ehouse
e5b5ce15df
fix warning when DEBUG not defined
2008-11-22 17:14:08 +00:00
ehouse
4b4d3fb56a
use a gharish color for focus so doesn't get lost
2008-11-22 16:37:58 +00:00
ehouse
e1cf1573b0
fix inval of focussed tile to take divider into account.
2008-11-20 05:12:48 +00:00
ehouse
e26a01dd62
New Ubuntu has a stricter compiler...
2008-11-06 03:16:09 +00:00
ehouse
76c0a7becf
make -q option take number of seconds to pause before quitting
2008-10-26 15:33:21 +00:00
ehouse
6a5454ad74
gtk/ncurses support for Rem: focus and showing remaining tiles. Also
...
rewrite gtkask to use gtk_message_dialog and add sigint handler.
2008-10-24 09:07:30 +00:00
ehouse
c3d23e889d
Fix to compile and run for IP-direct case, possibly breaking
...
heartbeats used over bluetooth.
2008-10-11 17:33:07 +00:00
ehouse
c6da802dc9
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
181e880d8d
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
fe25eebdbd
add pointer support to LIB_NO_UI case
2008-08-30 13:28:53 +00:00
ehouse
442d5bdd4b
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
2d199f2a9c
fix problems drawing focus so letters still visible on board.
2008-07-28 05:03:37 +00:00
ehouse
89edef9c18
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
7899217aa4
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
6cbf62d4f0
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
d053f0731f
Fix so curses-only builds and curses build doesn't segfault.
2008-05-26 00:27:48 +00:00
ehouse
321dbb6471
add missing error message
2008-05-24 16:08:13 +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
8a6df572ae
add some consts.
2008-05-06 12:49:37 +00:00
ehouse
f40b534719
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +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
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
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
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
e5b8de54aa
Add __attribute__ ((format)) and fix problem it flags.
2008-03-10 12:02:53 +00:00
ehouse
a69d763202
rename constants to begin with GTK so they're unique.
2008-03-10 00:51:20 +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
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
a16c9a5f08
add -Werror
2008-02-16 19:05:30 +00:00
ehouse
c811943e12
get rid of const-related warnings
2008-02-16 15:49:03 +00:00
ehouse
f3197b00e3
Make a couple of dialogs format for narrower screen and respect keypad buttons.
2008-02-02 20:58:44 +00:00
ehouse
b39063237e
fix perimeter focus clearing and board size setting.
2008-02-02 17:21:57 +00:00
ehouse
caf7a38672
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
3b449f3211
fix to build without Bluetooth headers
2008-02-02 16:53:36 +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
b25ffefb88
Fix to compile and run standalone
2008-01-19 16:03:53 +00:00