diff options
author | Kenny Root <kenny@the-b.org> | 2008-11-07 11:30:23 +0000 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2008-11-07 11:30:23 +0000 |
commit | 706a57a55373b68604acc9a54ddcf5fd8f47d9d2 (patch) | |
tree | 3ab7e2c99284bb8a9f3d1348ae136739ea4e0034 /res/layout/dia_portforward.xml | |
parent | 1a6ca4d897fe789a589e165e49281f1fb27785ca (diff) | |
download | connectbot-706a57a55373b68604acc9a54ddcf5fd8f47d9d2.tar.gz connectbot-706a57a55373b68604acc9a54ddcf5fd8f47d9d2.tar.bz2 connectbot-706a57a55373b68604acc9a54ddcf5fd8f47d9d2.zip |
* Add port forward list activity so port forwards can be saved in database
* Start saved port forwards when host is connected
* Add titles to activities to distinguish where user is
Diffstat (limited to 'res/layout/dia_portforward.xml')
-rw-r--r-- | res/layout/dia_portforward.xml | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/res/layout/dia_portforward.xml b/res/layout/dia_portforward.xml new file mode 100644 index 0000000..e8743f9 --- /dev/null +++ b/res/layout/dia_portforward.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ConnectBot: simple, powerful, open-source SSH client for Android + Copyright (C) 2007-2008 Kenny Root, Jeffrey Sharkey + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +--> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:scrollbars="vertical" + android:layout_width="fill_parent" + > + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + > + + <TableLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + > + + <TableRow> + <TextView android:text="@string/prompt_nickname" android:paddingRight="10dip" android:gravity="right|center_vertical" android:textAppearance="?android:attr/textAppearanceMedium" /> + <EditText android:id="@+id/nickname" android:hint="Internal Webserver" android:layout_width="200dip" android:layout_height="wrap_content" /> + </TableRow> + </TableLayout> + + <RadioGroup + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + > + + <RadioButton + android:id="@+id/portforward_local" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/portforward_local" + android:paddingRight="30dip" + /> + + <RadioButton + android:id="@+id/portforward_remote" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/portforward_remote" + /> + + </RadioGroup> + + <TableLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + > + + <TableRow> + <TextView android:text="@string/prompt_source_port" android:paddingRight="10dip" android:gravity="right|center_vertical" android:textAppearance="?android:attr/textAppearanceMedium" /> + <EditText android:id="@+id/portforward_source" android:hint="143" android:layout_width="200dip" android:layout_height="wrap_content" /> + </TableRow> + + <TableRow> + <TextView android:text="@string/prompt_destination" android:paddingRight="10dip" android:gravity="right|center_vertical" android:textAppearance="?android:attr/textAppearanceMedium" /> + <EditText android:id="@+id/portforward_destination" android:hint="localhost:143" android:layout_width="200dip" android:layout_height="wrap_content" /> + </TableRow> + + </TableLayout> + + </LinearLayout> +</ScrollView>
\ No newline at end of file |