Andy2
c125edd2cb
make text bulleted -- easier to read/follow
2010-11-05 05:53:28 -07:00
eehouse@eehouse.org
fc739e2c67
Merge branch 'android_branch' into relay_proxy
2010-11-05 05:19:16 -07:00
eehouse@eehouse.org
6d205011f5
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
2010-11-05 05:12:59 -07:00
Andy2
145ab6f356
remove wordy explanation
2010-11-05 05:11:40 -07:00
eehouse@eehouse.org
64cc199e1a
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-11-05 05:10:24 -07:00
Eric House
0d863d2d3f
fix casting error caught by compiler
2010-11-05 05:06:24 -07:00
Eric House
7b3691662a
version of build.xml modified to pass -xline to javac. For future use...
2010-11-05 05:06:04 -07:00
Andy2
2f38ce3d92
add button leading to the main config dialog plus an explanation of
...
what it's for.
2010-11-04 20:37:59 -07:00
Andy2
23924ff74e
add new activity that's popped up on creation of a networked game to
...
ask only for the room name to make it as easy as possible to
get started.
2010-11-04 19:48:46 -07:00
Andy2
c9239fc921
make method public
2010-11-04 19:46:05 -07:00
Andy2
9c48c91156
init room name to current text -- duh! -- preventing close process
...
from thinking a change has been made (room name nulled) when none had
been.
2010-11-04 06:36:28 -07:00
eehouse@eehouse.org
d04a5870af
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-11-03 21:00:43 -07:00
Andy2
c630697c59
Fix crash on 2.2 emulator by turning of ipv6 on emulator. per
...
workarounds found online. Suggested fix is to use io instead of nio.
2010-11-03 20:54:35 -07:00
Andy2
d1fcdb69da
double max room name len since the old value was too small -- only
...
filled half a text field on android
2010-11-03 18:38:43 -07:00
Andy2
e2ee0755cb
set max len for roomname field (with comment that it should be kept in
...
sync with the C constant)
2010-11-03 18:38:13 -07:00
Andy2
c7febf0d10
nuke unused constant
2010-11-03 18:30:05 -07:00
Andy2
9e05e6c2b3
add lastMsgRcd to status printout
2010-11-03 18:28:54 -07:00
Andy2
c039b92339
don't send 0-length message
2010-11-03 18:26:20 -07:00
Andy2
0148a93f3e
add a constraint to the stored messages table to avoid dupes. Then
...
remove the artificial limit on number of stored messages. This seems
to fix problems where lots of chats in a row clog up the relay so that
messages never get flowing again. Works more cleanly than
artificially ACKing.
2010-11-03 18:14:19 -07:00
Andy2
633d4c95a7
fix buffer overflow sql error with large messages; combine logged messages.
2010-11-03 18:12:26 -07:00
Eric House
31df12747b
fix prev hint to work not just compile
2010-11-01 22:20:35 -07:00
Eric House
892f30692b
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-11-01 21:54:28 -07:00
Eric House
e54bf588ab
fix to compile on wince/win32
2010-11-01 21:54:04 -07:00
Andy2
8bf8383d60
reread preferences in case of an upgrade. Fixes bug where default
...
port was 0 because the new key, meant to change the value, was not
being initialized. It's a hack to use a side-effect to determine
whether this is an upgrade, but since I'm already calculating it
didn't see any point to doing it again.
2010-11-01 18:56:23 -07:00
Andy2
1e5a856287
log host/port connecting to. Too useful to omit.
2010-11-01 18:53:36 -07:00
Andy2
8f55469930
remove strings no longer in English
2010-11-01 18:12:14 -07:00
Andy2
3d70da5a8d
cleanup
2010-11-01 06:57:54 -07:00
Andy2
804070efc7
base comms_canChat() on whether connID's been assigned. It's possible
...
to send a message from a client immediately after its initial message
but init-message dupe-detection in comms will drop that because only
one channel-0 message is expected -- the initial connection message.
So don't encourage platform code to enable the feature before common
code can deliver the message.
2010-11-01 06:57:41 -07:00
Andy2
2d9851902c
replace chat menuitem with chat button enabled using comms_canChat()
2010-11-01 06:55:37 -07:00
Andy2
40e42b79c5
up version numbers and strings -- getting ready for release
2010-10-30 09:11:47 -07:00
Andy2
b2fd178d60
tray->rack; clarify not-again text for 'turn done' button so it isn't
...
stupid when displayed for ending a trade.
2010-10-29 20:24:50 -07:00
Andy2
64a8b1e61a
change confusing const name
2010-10-29 20:20:25 -07:00
Andy2
8c7043d42c
fix crash using undo/redo after a turn has overwritten pending tiles:
...
when redoing need to check that cell is still empty.
2010-10-29 20:07:09 -07:00
Andy2
5b33df4e25
modify model_getTile to take NULL for out parms where the result is
...
often ignored, then pass NULL instead of the address of variables
called 'ignore'. Should be no behavior change.
2010-10-29 19:52:15 -07:00
Andy2
3d52698939
don't show all-here not-again dialog to host host -- already got the
...
first-in version.
2010-10-29 19:14:56 -07:00
Andy2
148fe848c2
get rid of implication that some deletions are undoable.
2010-10-29 19:02:57 -07:00
Andy2
fd1ca2c9c5
confirm single game delete.
2010-10-29 19:02:21 -07:00
Andy2
5b6a5aafe8
add three not-again messages displayed after connection is first made
...
with the relay, for first-in-room, last-in-room, and the less common
middle case. Add confirmation dialog for game reset.
2010-10-29 18:44:07 -07:00
Andy2
6de7fb28e3
add lock-setting checkbox to game config dialog and toggle
...
setEnabled() on most widgets as it's checked. Add not-again dialog
explaining possibility of reset of started game. Don't even show the
checkbox for non-started game.
2010-10-29 07:42:16 -07:00
Andy2
814dd89458
remove unused ivar; override setEnabled to dis/enable delete button
2010-10-29 07:40:41 -07:00
Andy2
30b6a6b54e
remove unused and confusing id
2010-10-29 06:48:45 -07:00
Andy2
a7c1319527
call super only in the default case
2010-10-29 06:48:18 -07:00
Andy2
d98525de95
make chat display dialog blocking. This fixes problem where multiple
...
chats received at once see all but the first dropped, and probably
fixes reported problem where only one message every got displayed.
2010-10-29 06:46:27 -07:00
Andy2
b115ce14ed
add devOrder (= hostID) to params passed on connect. Fix to pass new
...
param from jni; use object to pass params into UI thread since there
are now too many for handler.
2010-10-29 06:34:39 -07:00
Andy2
ab708e4db1
add devOrder (= hostID) to params passed on connect. Make linux apps compile after API change.
2010-10-29 06:32:18 -07:00
Andy2
0d7f2c4f23
add devOrder (= hostID) to params passed on connect. Should make for
...
better explanatory message.
2010-10-29 06:31:33 -07:00
Andy2
4cd15a9c6a
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
...
Conflicts:
xwords4/common/comms.c
2010-10-29 05:27:07 -07:00
Eric House
e069a268cd
implement dialog to edit chat text
2010-10-28 21:31:40 -07:00
Andy2
c087b4b031
add room name to callback used when device connects: pass the new
...
parameter through and format into messages posted via Toast.
2010-10-28 18:48:07 -07:00
Andy2
645a042481
add room name to callback used when device connects: fix jni to compile
2010-10-28 18:46:28 -07:00
Andy2
7e0bcee6d2
add room name to callback used when device connects: fix linux to compile
2010-10-28 18:46:07 -07:00
Andy2
41fc05106b
add room name to callback used when device connects
2010-10-28 18:45:55 -07:00
Andy2
5400fad50d
log timeout-dlg messages so there's a record
2010-10-28 18:44:37 -07:00
Andy2
ddeb744ff7
init room name to empty string
2010-10-28 18:43:06 -07:00
Eric House
4ae58342da
test, don't assert: comms can be null
2010-10-28 05:45:56 -07:00
Eric House
670f7982ea
add comms_isConnected
2010-10-27 21:58:36 -07:00
Eric House
1b83b13101
make player name and password single-line
2010-10-27 21:58:02 -07:00
Eric House
eba5b77494
add comms_isConnected; public room variables default to false
2010-10-27 20:50:11 -07:00
Andy2
7ad4a43468
use new confirm-delete-all dialog to confirm deletion of dictionary
2010-10-27 06:33:13 -07:00
Andy2
4c17ea8802
generalize confirm-delete-all dialog into confirm-then-do
2010-10-27 06:25:29 -07:00
eehouse@eehouse.org
3ffc93a637
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-10-27 05:51:54 -07:00
Eric House
b878599f7b
remove comment
2010-10-26 20:57:27 -07:00
Eric House
fd85bd35da
set dictLang to 0 (unknown) when reading old-version stream
2010-10-26 20:56:41 -07:00
Andy2
559f933ef5
tweak not-again hint wording
2010-10-26 19:33:38 -07:00
Andy2
11c68797bf
unique title for not-again dialogs
2010-10-26 19:28:22 -07:00
Andy2
eb41e24c4e
show language of dict that can't be found
2010-10-26 18:48:28 -07:00
Andy2
84e6d94919
add languages to dict names in set-default spinner
2010-10-26 18:35:54 -07:00
Andy2
c8a6f453c9
dismiss underlying activity when no-dict dialog is cancelled too.
2010-10-26 18:28:54 -07:00
Andy2
1ceea2cde2
check that default dict exists and if it doesn't use same as if hadn't
...
been specified. Catches case where dict is downloaded, made new-game
default, and then deleted.
2010-10-26 18:20:49 -07:00
Andy2
26210e1cf2
new function for reporting missing dict called from two places
2010-10-26 18:08:53 -07:00
Andy2
89c7e02928
add CollegeEng dict and make it default for new games
2010-10-26 06:54:54 -07:00
Andy2
f9b2eb4a3e
attach not-again dialog to turn done menuitem
2010-10-25 21:32:07 -07:00
Andy2
d7b6cb0691
use resetGame() to populate a newly created game. With this change a
...
new network game will connect without first having been opened in the
GameConfig dialog.
2010-10-25 18:56:51 -07:00
Andy2
e1b7a0f44d
when resetting game, if it's multi-device but doesn't have a default
...
address (as will be the case if it was just created), get and give it
one.
2010-10-25 18:55:53 -07:00
Andy2
3cbda7471c
init public room vars to false
2010-10-25 18:55:15 -07:00
Andy2
54d312e523
saveSummary(0 needs to be passed context in case must init dbhelper.
2010-10-25 18:51:07 -07:00
Andy2
2e122fe9f3
default for new networked game is no robots, second player remote.
2010-10-25 18:08:09 -07:00
Andy2
b237277544
put back enum just removed; it's screwing up existing code having all
...
the followers change.
2010-10-25 18:06:48 -07:00
Andy2
39e502fe71
add not-again hints to all the buttons
2010-10-24 17:47:11 -07:00
Andy2
e909e4b343
remove redundant message; advance state to ALLCONNECTED on receipt of
...
RECONN or CONN that lists the game as full. This means we get the
all-green icon (or the A in the gtk case) when in a consummated game
rather than only when all devices are actually connected.
2010-10-23 20:29:24 -07:00
eehouse@eehouse.org
24fae0f53b
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-10-23 19:50:11 -07:00
Eric House
8a038dc748
Merge branch 'relay_proxy' of ssh://xwords.git.sf.net/gitroot/xwords/xwords into relay_proxy
2010-10-23 19:45:03 -07:00
Andy2
2fa76a9e24
add second button to games list to add networked game, and remove
...
ability from config dialog to make a game networked or not. This
should confuse people less. Better would be if the two buttons had
icons and those icons were associated with games in the list according
to which type of game they represent.
2010-10-23 18:41:37 -07:00
Andy2
cff95ce3de
go back to play being the onclick action (removing preference to make
...
it that way); add more newbie hints; fix DIALOG id definitions to not
overlap superclass's.
2010-10-23 14:08:57 -07:00
Andy2
038f6bd94c
rename some private methods; add onPrepareDialog to fix problem where
...
msg stuck from previous invocation
2010-10-23 14:06:03 -07:00
Andy2
dd82fa02ad
remove chat menuitem -- it's only a button now.
2010-10-23 14:00:24 -07:00
Andy2
314872d533
shrink needs-sync flag icon
2010-10-23 13:52:56 -07:00
Andy2
9383ef064d
use sync icon instead of "M" to mark games with data.
2010-10-23 13:45:31 -07:00
Andy2
43ad43b604
change meetup server back to relay
2010-10-23 11:24:19 -07:00
Andy2
b6dfa0be8b
disable background-checking code for now: make default be disabled and
...
remove Preference that allows to change it.
2010-10-23 11:19:55 -07:00
Andy2
5a5c73916e
Don't allow copy of relay-connected game.
2010-10-23 11:08:33 -07:00
Andy2
7cf4535b4c
new dbmgr API returns number of players in game; use that rather than
...
currently connected devices to populate [RE]CONNECT message
2010-10-22 22:34:43 -07:00
Andy2
593dac9d99
rotate 90 degrees
2010-10-22 22:04:09 -07:00
Eric House
85d29cf560
if can't send allcond to a device because it's not connected queue the
...
message to be sent next time it does. And since the cookieID will
change and should be there already anyway, remove it. (Should remove
the hostID too for the same reason.)
2010-10-22 19:02:52 -07:00
Eric House
6e843dec6c
make 10997 default relay port
2010-10-22 18:30:19 -07:00
Andy2
7765bd0a1a
move decision how to display connection info from CommsTransport to
...
BoardActivity (where it'll be easier to include optional not-again dialog)
2010-10-21 20:13:41 -07:00
Andy2
8fac0945b9
chat not-again message without obscenities
2010-10-21 19:22:17 -07:00
Andy2
99dbbb443c
add comms_canChat, which knows better than java code what state a
...
connected game is in, and call it to determine whether to show the
chat icon.
2010-10-21 19:14:10 -07:00
Andy2
198f39b606
don't use yes button for simple ok dialog
2010-10-21 19:12:04 -07:00
Andy2
ae97d7d0f4
shouldn't have commented that out...
2010-10-21 06:51:26 -07:00
Andy2
aa0be5e2f2
remove unused imports
2010-10-21 06:50:29 -07:00
Andy2
ea617f39fa
to deal with not being implement a common superclass for Activity and
...
ListActivity create a delegate they use for dialog-related stuff.
Move code from them into it -- and delegate.
2010-10-21 06:33:04 -07:00
Andy2
5599f91232
new prefs key and string for not-again help dlg for chat
2010-10-21 06:31:28 -07:00
Andy2
848c1493fd
chat button enabled only for multi-device games. Needs to be disabled
...
for unconnected games as well....
2010-10-21 06:30:48 -07:00
Andy2
8a891816b4
add chat button
2010-10-21 06:28:01 -07:00
Andy2
5c9cf0ebc8
add first helptext dialog, with do-not-show-again button, attached to
...
the sync menuitem. The plan's that a bunch of these will make the
game easier for newbies to use.
2010-10-20 20:48:18 -07:00
Andy2
0d4f77fb0a
add sync icon to games list menu
2010-10-20 20:00:40 -07:00
Andy2
8788f9d4d5
move OK dialog to new scheme. Using a static global Bundle instead of
...
the newer form of showDialog because that requires version 8 of the
SDK.
2010-10-20 19:52:13 -07:00
Andy2
c1dc34e25d
move common dialog code from Utils to XWActivity and XWListActivity
...
(which delegates to XWActivity.)
2010-10-20 18:34:41 -07:00
Andy2
8db6c7ad7f
add setPrefsBoolean
2010-10-20 18:09:24 -07:00
Andy2
95f5c2e023
cleanup: add missing string; remove unused strings and array.
2010-10-19 18:43:26 -07:00
Andy2
01e926e8b3
up sdk version to silence warning
2010-10-19 18:42:32 -07:00
Andy2
17f1790d52
remove unused layout files (since they take up space in the .apk even
...
if never referenced)
2010-10-19 18:42:07 -07:00
Andy2
85e32907f0
remove '\r's
2010-10-19 18:39:27 -07:00
Andy2
1fecf9dbb4
implement new check-relay menu, and use new task to check for messages
...
if there are any connected games.
2010-10-19 07:54:52 -07:00
Andy2
4a5c0832d4
use new generalized code to check for messages.
2010-10-19 07:54:10 -07:00
Andy2
94b8aedda7
generalize relay-msg-check code so can be used from two places.
2010-10-19 07:53:26 -07:00
Andy2
d1b1e6db14
refactor into common subroutine -- no behavior change
2010-10-19 07:50:23 -07:00
Andy2
994a73e28b
return null, not empty list, when nothing found
2010-10-19 07:49:54 -07:00
Andy2
f31e28dbd7
menu and strings for check-server menu added to GamesList
2010-10-19 07:49:23 -07:00
Andy2
ab8c3f985e
add generic info dialog that, with luck, can be reused.
2010-10-19 07:48:34 -07:00
Andy2
b718804a4b
new AsyncTask for pinging server on demand
2010-10-19 07:47:05 -07:00
Andy2
b9e3ca212b
turn off glib-dependant checksuming for non-linux builds
2010-10-18 22:08:04 -07:00
eehouse@eehouse.org
6e56fb3544
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-10-18 20:56:31 -07:00
Eric House
7b5d88cbba
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-10-18 20:20:14 -07:00
Eric House
9ba2d2f177
default msgs entry timestamps to 'now'
2010-10-18 20:19:09 -07:00
Eric House
211e9ded7f
TIMEOUT needs to be bigger for small NGAMES values
2010-10-18 20:18:24 -07:00
Eric House
3648c22bd4
fix long-standing bug where initial messages were not getting deleted
...
and multiplying; log md5 sums of messages in debug build.
2010-10-18 20:17:44 -07:00
Andy2
9cfb302a2f
don't populate room name; better that people see the hint
2010-10-18 06:48:26 -07:00
Andy2
db3c4da01f
set a default value that actually exists
2010-10-18 06:47:31 -07:00
Andy2
b4c1710c66
remove strings dropped with prev change
2010-10-18 06:31:19 -07:00
Andy2
62d054cd46
default show-robot-scores to true; move background-check-frequency
...
within existing PreferenceScreen
2010-10-18 06:30:56 -07:00
Andy2
a2f0ec232a
put back RestartTimer call inadvertently removed
2010-10-18 06:23:24 -07:00
Andy2
dda6e056a0
set summary from the array of use-visible values
2010-10-18 06:18:37 -07:00
Andy2
2d66913323
populate public rooms list as soon as checkbox set -- and mention
...
language and number of players in failure message
2010-10-17 21:13:14 -07:00
Andy2
56e83bfc1c
trim leading and trailing whitespace from roomnames. If somebody has
...
two spaces between words those will still matter.
2010-10-17 20:45:48 -07:00
Andy2
6b7a92534a
make default relay port 10997 (and change key so it'll apply for everybody)
2010-10-17 20:37:51 -07:00
Andy2
332ff27d8a
use same string for both
2010-10-17 20:30:43 -07:00
Andy2
a58e74b70a
add play game button at bottom of game config dialog.
2010-10-17 20:27:21 -07:00
Andy2
5c958eaadb
deal with null socket (e.g. if in airplane mode); deal with new public
...
rooms format.
2010-10-17 20:18:24 -07:00
Andy2
1621e5932a
give label different text from dialog title
2010-10-17 20:00:41 -07:00
Andy2
8972df7b88
add explanatory title to phonies spinner
2010-10-17 18:55:09 -07:00
Andy2
885bfe4779
remove values button. Seven buttons is too much. Add back when have
...
means of assigning priority so it only shows up when there's space.
2010-10-17 18:42:44 -07:00
Andy2
2cd0bf8c24
add singleline and selectonfocus for roomname edit
2010-10-17 12:45:34 -07:00
Andy2
2bfb26cded
sleep (in thread) before closing proxy socket. This works around
...
problem where, on PRX_HAS_MSGS path only, device reading socket gets
EOF early though logging here confirms additional bytes have been
written. Gross but effective.
2010-10-17 06:38:28 -07:00
Andy2
b63d730b53
compare languages rather than actual dict names so can switch dicts
...
mid-game.
2010-10-16 15:05:46 -07:00
Andy2
60e4c624e4
implement reply button; clear message edit field each time
2010-10-16 15:05:16 -07:00
Andy2
21afd79751
make send message first rather than last menuitem
2010-10-16 15:04:12 -07:00
Andy2
26b777acf8
don't post notification when results list returns empty
2010-10-16 11:01:12 -07:00
eehouse@eehouse.org
5d9989eb1b
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-10-16 10:50:23 -07:00