Eric House
0b379a941b
snapshot: add menu to xlation item editor.
2014-05-21 06:59:38 -07:00
Eric House
049c55e2d2
toward adding default menu to all activities and eventually tracking
...
translations by where they're used so most relevant can be shown: put
back common superclasses XWActivity and XWListActivity with default
implemenations of activity lifecycle methods that call through to
delegates (and that later can help LocUtils track what's been seen
when.) Not thoroughly tested, but seems to work for the main screens
anyway.
2014-05-12 21:26:31 -07:00
Eric House
67bca0dd4e
Because loc: strings can't be supplied for all Views, don't do
...
that. Instead use the English strings themselves as keys. Generate a
java array of all R.string.whatever contants at build time, and use
that at runtime to build a hashmap of localizable strings that may be
found in UI widgets. When one is found and there's a translation,
substitute.
2014-04-09 21:09:46 -07:00
Eric House
aad4872f68
generate menu resources from the old files, adding the 'loc:' key for those title strings listed in strings.xml
2014-04-07 08:14:09 -07:00
Eric House
1bed9e3bec
move menu xml files outside build tree: scripts will generate now
2014-04-07 07:59:55 -07:00
Eric House
4ce7f923c1
revert changes adding loc: to mark localizable strings: will be doing that automatically
2014-04-07 07:54:59 -07:00
Eric House
86cc8f6dbf
move onCreateOptionsMenu into superclass
2014-04-06 16:48:17 -07:00
Eric House
0e7676b301
make board menu localizable -- but submenus don't work yet
2014-04-03 22:37:13 -07:00
Eric House
f2bfd36780
menus are broken: you don't get access to an AttributeSet when inflating them. So replace string references with strings equal to the name of the id (xxx in R.string.xxx); next I'll need to harvest the strings from R.java and map them to their numbers in a way that's runtime-accessible.
2014-04-03 06:21:02 -07:00
Eric House
73a1083dff
only show lookup menuitem when there's a single word selected, and include that word in the menu title
2014-03-22 10:37:48 -07:00
Eric House
9dab6bc772
add studylist menu to lookup selected words -- same as tapping, but maybe easier to discover.
2014-03-21 19:42:23 -07:00
Eric House
fd817a98da
implement menus, including adding crappy placeholder icons
2014-03-19 21:29:20 -07:00
Eric House
aa6fbf8605
snapshot on the way to making studylists editable: add checkbox to xwlistitem. It's to be an alterative to long tap to select. Implement selectAll and deselectAll.
2014-03-19 20:42:29 -07:00
Eric House
df771f50c4
add function that resends all pending (un-ackd, at the comms level) messages for unlocked games and, for testing mostly, a menuitem on the main activity to trigger it. Probably crashes if there's a message for a game connected by other than relay.
2014-03-04 07:05:55 -08:00
Eric House
5274a803b2
move menuitem
2014-02-27 19:13:22 -08:00
Eric House
29d08b95ce
expose comms_getStats() via a debug-build-only menu and dialog
2014-02-26 21:41:49 -08:00
Eric House
652ce75277
add actionbar icon for copy
2014-01-30 06:38:03 -08:00
Eric House
32ecd1d026
more studylist: add lookup-on-tap, show language in title bar, and add
...
menuitem to board menu too
2014-01-29 19:37:04 -08:00
Eric House
2520fb4c05
add menu and implement copy-to-clipboard
2014-01-29 07:15:25 -08:00
Eric House
4421472391
add (empty so far) studylist browser and menu to invoke it
2014-01-28 06:50:27 -08:00
Eric House
acb090154d
add rate-me menu
2014-01-23 19:32:06 -08:00
Eric House
37083c3ea1
fix menu titles -- were reversed
2013-11-18 06:17:26 -08:00
Eric House
8704efd38e
add send-invites menuitem that's at top of board menu but only visible
...
when game's unconnected
2013-11-12 18:39:13 -08:00
Eric House
148da01fdc
use save icon for commit/trade too
2013-11-12 06:43:56 -08:00
Eric House
35721975db
add menuitems for back/commit for trade mode parallel to the buttons
...
at bottom (which should go when you have an action bar)
2013-11-11 05:23:25 -08:00
Eric House
eefcd18fa8
part one of modernizing wordlists browser: long-tap selects and
...
de-selects, but menus aren't updated and don't work.
2013-10-30 07:03:15 -07:00
Eric House
3067b5f9c1
make menu id names more consistent
2013-10-25 07:15:43 -07:00
Eric House
3422b27f97
add reset (rewind) icon
2013-10-24 06:47:54 -07:00
Eric House
6827350f7a
rearrange menus and add some new icons
2013-10-24 06:33:33 -07:00
Eric House
b9afc47a25
placeholder icons for up and down, and fix to show only when there's room to move
2013-10-19 22:09:07 -07:00
Eric House
91142b1976
replace three more pngs with an .svg
2013-10-18 22:47:57 -07:00
Eric House
33a8c30ade
replace checked-in images with another generated
2013-10-18 22:40:53 -07:00
Eric House
d838151c0c
modify build system to generate .png files from .svg files, with one
...
.svg as an example.
2013-10-18 22:36:45 -07:00
Eric House
43e69c7627
make group head view selectable, and separate group and game selection
...
so that only one type can be selected at once. Combine all three
menus into one, but only enable subsets equivalent to the old menus
depending on what's selected. Snapshot: menus pretty much don't work.
2013-10-18 20:40:20 -07:00
Eric House
9fe34e4183
Merge branch 'from_android_beta_69' into android_branch
2013-10-17 06:31:17 -07:00
Eric House
055b4ce04e
don't try to hide whole submenu -- crashes on 2.3 devices
2013-10-17 06:12:37 -07:00
Eric House
0c3057f75c
use different icon
2013-10-15 22:20:59 -07:00
Eric House
9217eb71dd
move config into actionbar from context menu, deprecating it there.
2013-10-15 22:06:29 -07:00
Eric House
9beef6d51e
move Trade menu into actionbar
2013-10-15 22:04:50 -07:00
Eric House
4af68196a6
use same icon for both add menuitems
2013-10-15 07:37:31 -07:00
Eric House
638ad7b2c2
use proper Holo icons for delete and add
2013-10-14 08:08:46 -07:00
Eric House
e7a23afc4a
add delete item to menu/actionbar, visible only if number of selected
...
games > 0
2013-10-13 20:15:51 -07:00
Eric House
ec77be8a2a
put the pass/turn done menuitem in the action bar as a first cut
2013-10-01 07:50:01 -07:00
Eric House
0d9f1a3ba7
add move-up and move-down menuitems so group order can be controlled
...
by user. Store position as array of rowids in preferences, and make
game info hashed by rowid rather than name.
2012-12-26 18:55:15 -08:00
Eric House
0a7fcb2de4
remove deleteAll menuitem
2012-12-22 23:21:01 -08:00
Eric House
dcf239ca48
add newGroup menu for when button's hidden; add deleteAll menuitem to
...
set of debug-features (but this should probably not ship until
deleting is changed.)
2012-11-21 06:17:09 -08:00
Eric House
82c39489f0
lots of changes toward grouping games in user-definable groups.
...
Creation and movement between work. Deletion crashes. Expansion
doesn't stick. All's rough.
2012-11-19 07:41:15 -08:00
Eric House
e64ecfb78d
implement resign on top of existing endGame logic, adding "quitter" as
...
new param passed to remote and changing final score formatting and
menu items to match. Still need to show old menu on android in case
where game has already ended.
2012-10-07 12:47:06 -07:00
Eric House
75d8820b98
make check-for-updates a debug-only menuitem
2012-08-16 07:48:34 -07:00
Eric House
3ef81f248b
start on checking for updates/latest version: a menu item that
...
triggers new code that sends an HTTP POST to a python script on the
server that returns whether the current version is correct.
2012-08-13 21:10:22 -07:00