OSDN Git Service

Add UI for switching and managing terminal sessions.
authorSteven Luo <steven+android@steven676.net>
Sat, 27 Aug 2011 20:33:30 +0000 (13:33 -0700)
committerJack Palevich <jack.palevich@gmail.com>
Sat, 27 Aug 2011 20:33:30 +0000 (13:33 -0700)
commit9c11960500eb43050c00883be4d28a68537a4cb7
tree8c49b051ee1046887967d282c7ad927bad503bfb
parent5f4114849ba84e8bbab65ca8076915173bb95f7d
Add UI for switching and managing terminal sessions.

We expose three different ways to manage terminal sessions:

* Options menu items to open a new window and close the current window.
* A WindowList activity, reachable from the options menu, which lists
  all the open windows and allows opening, closing, and switching of
  windows.  The behavior is patterned after the window list activity in
  the Android browser.
* Gestures to change windows -- swipe right-to-left for the next window,
  left-to-right for the previous window.

The options menu items have been reordered to make what should be the
five most frequently used items (new window, close window, window list,
toggle keyboard, special keys reference) appear in the icon menu so that
the user doesn't have to touch "More" to reach them.

This patch adds several icons.  btn_close_window and ic_menu_windows
come from the Android browser source, while the rest come from the
Android 2.3.3 SDK platform, revision 2 (platforms/android-10/data/res).
17 files changed:
AndroidManifest.xml
res/drawable-hdpi/btn_close_window.png [new file with mode: 0644]
res/drawable-hdpi/ic_menu_back.png [new file with mode: 0644]
res/drawable-hdpi/ic_menu_forward.png [new file with mode: 0644]
res/drawable-hdpi/ic_menu_windows.png [new file with mode: 0644]
res/drawable-mdpi/btn_close_window.png [new file with mode: 0644]
res/drawable-mdpi/ic_menu_back.png [new file with mode: 0644]
res/drawable-mdpi/ic_menu_forward.png [new file with mode: 0644]
res/drawable-mdpi/ic_menu_windows.png [new file with mode: 0644]
res/drawable/close_background.xml [new file with mode: 0644]
res/layout/window_list_item.xml [new file with mode: 0644]
res/layout/window_list_new_window.xml [new file with mode: 0644]
res/menu/main.xml
res/values/strings.xml
src/jackpal/androidterm/EmulatorView.java
src/jackpal/androidterm/Term.java
src/jackpal/androidterm/WindowList.java [new file with mode: 0644]