Eric House
7da7dbc731
shoulda tried compiling before committing a large merge....
2011-12-01 19:54:56 -08:00
Eric House
9d42e3f4d0
move logf and showf into their own DbgUtils class
2011-12-01 19:51:02 -08:00
Eric House
47884b8387
ignore new tools-generated file
2011-12-01 19:50:22 -08:00
Andy2
577c2c8538
move MultiHandler implementation inside BoardView.
2011-12-01 19:44:22 -08:00
Andy2
15503522f2
implement pinch-to-zoom on board -- and do it in such a way that class
...
loader doesn't barf on older versions of the OS that don't provide the
necessary APIs. Tested only on original Motorola Droid so far (and
emulator running 1.6, which is too old.)
2011-12-01 18:56:44 -08:00
Andy2
b242d70029
up target SDK to pull in multitouch APIs
2011-12-01 05:40:50 -08:00
Andy2
1575279cd8
replace restore menus in prefs activity with buttons at bottom of
...
screen. The trick involves getting the OS to insert the prefs xml
layout as a ListView, and seems like a hack, but it works so far.
Ought to be tested on several OS versions before next release.
2011-11-22 19:00:03 -08:00
Andy2
cd23022cde
Get rid of int m_msgID, storing all dialog messages as String m_msg.
...
The code was getting confused and sometimes set one then tried to
display the other.
2011-11-22 18:28:57 -08:00
Andy2
91eeee0f72
new file that build.xml comments say should be checked in.
2011-11-21 22:21:28 -08:00
Andy2
a8859599dd
update emacs compile-command for new SDK. No code change.
2011-11-21 22:16:33 -08:00
Andy2
795b86e569
when asked to browse empty dict, put up explanatory dialog then exit
...
activity. Required new DlgDelegate method to send event after posting
alert. Note that eventually when the dict browser shows tile info as
well as words this will change.
2011-11-21 18:08:51 -08:00
Andy2
e1e9a68d8f
fix ptr out-of-bounds test. Was failing an empty dict.
2011-11-21 18:04:20 -08:00
Andy2
c7906c3bd4
prevent min from exceed max by not including values below min as
...
possible max settings and vice-versa. Since spinner values no longer
have a consistent base, parse them rather than relying on position --
requires assumptions such as that View is a TextView, but that is
probably not changing.
2011-11-21 08:19:25 -08:00
Andy2
aba4e02cac
use a standard list item for words rather than consing up a TextView
...
and having to worry about text size.
2011-11-21 07:20:12 -08:00
Eric House
1d13f7d1f2
update instructions for building
2011-11-19 20:05:04 -08:00
Eric House
33496914a4
More new SDK fixes: put back script to generate GitVersion.java.
2011-11-19 19:49:15 -08:00
Eric House
e335f5cf61
fix to use new sdk version to generate local.properties
2011-11-19 19:23:58 -08:00
Eric House
d806e3f906
changes made by android tool for compatibility with new SDK version
2011-11-19 19:07:16 -08:00
Andy2
c781bfc29e
remove hard-coded 2-15 array for word-len limit spinners and instead
...
create at runtime arrays that represent the words actually in the dict
-- e.g. showing a max of 8 when there are no words longer than that.
2011-11-18 21:24:59 -08:00
Andy2
b86330c71f
add dict_iter_getCounts()
2011-11-18 21:10:17 -08:00
Andy2
f06eaa573b
fix to compile with API changes
2011-11-18 07:41:13 -08:00
Andy2
4760ceda5a
Merge branch 'android_branch' into android_browsedict
...
Conflicts:
xwords4/android/XWords4/jni/anddict.c
2011-11-17 20:55:02 -08:00
Andy2
1889fbd78b
relaunch activity, with pararms in intent, every time min or max
...
changed. Can't figure any other way to change the list of section
heads, as setListAdapter() is ignored when called a second time.
Note: I got an assertion failure in the jni indexing code so there
may be a bug here.
2011-11-17 19:52:10 -08:00
Andy2
aab9fd9df2
test the variable that may have been changed, not the one that holds
...
the pre-change value.
2011-11-17 06:54:26 -08:00
Andy2
63c0c5cf09
fix compile warning by passing ptr to embedded super
2011-11-17 06:11:42 -08:00
Andy2
4edca4ee4c
Check for null return from getInfo(), the result when it tries to open
...
a corrupt dict. Such dicts should never get this far, but it doesn't
hurt to be safe.
2011-11-11 18:30:53 -08:00
Andy2
44c5500ab0
don't crash when empty or corrupt dict file passed in.
2011-11-11 18:29:26 -08:00
Andy2
b334e688bb
use getInfo to run sanity check on .xwd files in download directory.
...
This prevents deliberately corrupted files from making it into dict
lists. To the extent that checkSanity() works, it should make use of
that dir safe.
2011-11-11 07:45:25 -08:00
Andy2
9ff4596667
fix compile warning by passing ptr to embedded super
2011-11-11 07:42:00 -08:00
Andy2
92eb6b857d
allow null info ptr so getInfo can be used solely to run sanity check
...
on dict.
2011-11-11 07:41:31 -08:00
Andy2
dddec50f1d
Merge branch 'android_branch' into android_browsedict
...
Conflicts:
xwords4/android/XWords4/jni/Android.mk
xwords4/linux/Makefile
xwords4/linux/linuxmain.c
2011-11-10 19:22:57 -08:00
Andy2
284bd2d0c4
turn on sanity checking of dicts in download directory, but from
...
DictLangCache rather than when the directory's walked initially. Need
to test still with bogus dict and make sure it's never shown.
2011-11-10 19:02:18 -08:00
Andy2
e4aa2ff180
finish changelog
2011-11-07 06:51:27 -08:00
Andy2
995c410b7c
revert unintended checkin: logging should not always be on.
2011-11-07 06:49:55 -08:00
eehouse@eehouse.org
214f8990bf
Merge branch 'android_branch' into android_browsedict
2011-11-04 17:23:27 -07:00
Andy2
ac875894a6
replace assert that occasionally fails with logging. Not sure why it
...
fails, but I just drop the (timer) event in the non-debug case so it's
probably harmless.
2011-11-04 17:19:50 -07:00
Andy2
5123bebe50
don't set dict name to "download more". Just not a good idea.
2011-11-04 17:15:12 -07:00
Andy2
0561ca5ab9
make buttons a bit wider since the bar scrolls now, and rearrange.
2011-11-04 17:14:37 -07:00
Andy2
223d2d6e92
set configchanges on chat activity -- it handles orientations changes fine.
2011-11-04 07:11:34 -07:00
eehouse@eehouse.org
71b09b80ab
Merge remote branch 'origin/android_branch' into android_branch
2011-11-04 07:05:56 -07:00
eehouse@eehouse.org
6c1b0e9b58
Merge branch 'android_branch' into android_browsedict
2011-11-04 07:05:16 -07:00
Andy2
61681745c2
sort languages (groups) in dicts activity alphabetically
2011-11-04 07:03:40 -07:00
Andy2
57a1069efe
wire min/max through jni: now selecting numbers changes the number and
...
length of words selected. But it's really slow, and indexing seems
broken in some cases. Not ready for release yet.
2011-11-04 06:56:59 -07:00
Andy2
fa14f02b69
add ui support for min,max filtering of wordlist. Not yet wired into
...
jni. But: even disabled it seems to lead to much slower scrolling, so
I need to investigate that before taking this any further.
2011-11-04 06:18:11 -07:00
Andy2
1bba95a985
add minmax compile-time flag, commented-out
2011-11-04 06:17:09 -07:00
Andy2
4e66747bbc
fix for changed API
2011-11-03 21:35:17 -07:00
Eric House
30387bc528
up version codes
2011-11-03 21:27:43 -07:00
Andy2
948def8223
replace burried launch-dict-browser menuitem with toolbar button and
...
newbie hint.
2011-11-03 18:14:01 -07:00
Andy2
8db6b0bddd
wrap toolbar in a HorizontalScrollView. Comes into action when all
...
buttons are enabled.
2011-11-03 17:24:56 -07:00
Andy2
d19858d6bb
add (buried) menuitem to launch dict browser from game. Required
...
adding method to get current player from BoardView.
2011-11-03 05:51:38 -07:00