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
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
4b4d3fb56a
use a gharish color for focus so doesn't get lost
2008-11-22 16:37:58 +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
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
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
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
f40b534719
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +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
0988159795
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48: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
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
044a889d6d
Don't draw negative number of tiles left.
2007-11-25 15:12:22 +00:00
ehouse
bcb25d96b2
fix oversized font when scoreboard miniwindow has two lines.
2007-11-14 05:57:12 +00:00
ehouse
38a7c6a87e
Fix tray hanging below main window; draw pending tiles white-on-black as on other platforms.
2007-10-24 12:46:15 +00:00
ehouse
d929af49ad
Instead of three fixed-sized fonts, choose fonts (lazily) based on the size of the rect into which it's to be drawn.
2007-10-23 03:08:47 +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
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
952e8de4f2
get rid of draw methods; always highlight cursor same way;
...
board_handleKeyUp becomse board_handleKey for curses
2007-01-19 08:20:58 +00:00
ehouse
23fcaa65ab
Use new keydown/up APIs from linux, and add key support and drawing
...
changes to implement keyboard navigation/focus in gtk port.
2007-01-06 17:46:02 +00:00
ehouse
539a7b4ab5
Fix to compile and work with draw API changes
2006-11-12 14:51:47 +00:00
ehouse
005fd92fd4
More progress on one-handed navigation: fix ncurses board clipped to
...
bottom of tray; add focus-related params to draw*Finished routines
(and simplify to one) so platforms don't have to save from Begin
routines (and stop palm doing that); check version of saved game, and
handle case where older binary tries to open newer version; redraw
Palm tray buttons after focus change to stop focus-rect ghosting; fix
annoying overlap in saved games dialog; palm version goes to a3.
2006-11-05 16:54:18 +00:00
ehouse
b0102f8baa
Lots of progress on one-handed navigation: add gadgets to stand in for board
...
scoreboard and tray on palm; make center drill into the focussed object and
spacebar come back up then move the focus among them. Integrate with other
focussable objects on main form. Go from separate drawCursor routines to
same for all three, with cursor only visible when focus is drilled down.
On curses, add a hilite rect routine that can be called after text is laid
down, and use for cursors.
2006-11-03 06:23:54 +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
c3bcff83e0
use signed types to avoid overflow and disappearing scores
2006-05-28 16:02:16 +00:00
ehouse
9776c57eea
center letter in tile even when it's too big.
2006-05-28 15:04:57 +00:00
ehouse
8d67d30c3d
minor code improvement
2006-05-11 03:02:11 +00:00
ehouse
13b7fa62aa
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
9ff5259d4e
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
dcd31cd092
update email address in header comments: no code change
2006-01-08 01:25:02 +00:00
ehouse
889ebf6ce9
catch up with API changes
2005-09-02 06:24:47 +00:00
ehouse
22c492b450
add justification to draw_string_at to better position using pango.
2005-05-30 00:03:58 +00:00
ehouse
8fc13f1548
give tiles a background color
2005-05-29 21:17:23 +00:00
ehouse
57bb5b1e80
huge set of changes to get working with GTK 2.n. Use pango for text
...
drawing, getting rid of all GdkFonts; get rid of clipping until I
understand why it was prevent all drawing. Etc.
2005-05-29 20:32:48 +00:00
ehouse
670f5d8673
move playerNum into dsi so can be used in formatting score
2005-03-15 03:27:24 +00:00
ehouse
1b0ab6037f
add HintAtts param to draw_drawBoardArrow
2004-11-14 16:27:51 +00:00
ehouse
6acff20b42
draw borders on cells that are part of hint-constraint rect
2004-06-15 01:44:39 +00:00
ehouse
bef321eb6b
fix formatting
2004-02-28 05:23:10 +00:00
ehouse
4c693e0bb8
drawBegin sig change
2004-02-13 13:54:52 +00:00
ehouse
6a57cef012
first checkin
2003-11-01 05:35:29 +00:00