From 1b085b8f7337f78248c24701c2ab61772e3ceaf3 Mon Sep 17 00:00:00 2001 From: Artur Dryomov Date: Sun, 14 Jul 2013 22:01:38 +0300 Subject: Add adding and removing computers. Change-Id: I52166bbe848e1b877a91d8ad83859e9f6345c3aa --- android/sdremote/AndroidManifest.xml | 6 ++ .../res/drawable-hdpi/ic_action_add_computer.png | Bin 0 -> 1142 bytes .../res/drawable-hdpi/ic_action_cancel.png | Bin 0 -> 1285 bytes .../sdremote/res/drawable-hdpi/ic_action_save.png | Bin 0 -> 1335 bytes .../res/drawable-mdpi/ic_action_add_computer.png | Bin 0 -> 1090 bytes .../res/drawable-mdpi/ic_action_cancel.png | Bin 0 -> 1138 bytes .../sdremote/res/drawable-mdpi/ic_action_save.png | Bin 0 -> 1191 bytes .../res/drawable-xhdpi/ic_action_add_computer.png | Bin 0 -> 1221 bytes .../res/drawable-xhdpi/ic_action_cancel.png | Bin 0 -> 1348 bytes .../sdremote/res/drawable-xhdpi/ic_action_save.png | Bin 0 -> 1599 bytes .../layout-v11/action_bar_computer_creation.xml | 50 +++++++++ .../res/layout/action_bar_computer_creation.xml | 54 ++++++++++ .../res/layout/activity_computer_creation.xml | 25 +++++ .../res/menu/menu_action_bar_computers.xml | 6 ++ .../sdremote/res/menu/menu_context_computers.xml | 8 ++ android/sdremote/res/values/colors.xml | 2 + android/sdremote/res/values/dimens.xml | 10 ++ android/sdremote/res/values/strings.xml | 10 ++ android/sdremote/res/values/themes.xml | 10 ++ .../impressremote/ComputerCreationActivity.java | 118 +++++++++++++++++++++ .../impressremote/ComputersActivity.java | 2 +- .../impressremote/ComputersFragment.java | 92 ++++++++++++++++ .../src/org/libreoffice/impressremote/Intents.java | 25 +++++ .../communication/ServersManager.java | 12 ++- 24 files changed, 428 insertions(+), 2 deletions(-) create mode 100755 android/sdremote/res/drawable-hdpi/ic_action_add_computer.png create mode 100755 android/sdremote/res/drawable-hdpi/ic_action_cancel.png create mode 100755 android/sdremote/res/drawable-hdpi/ic_action_save.png create mode 100755 android/sdremote/res/drawable-mdpi/ic_action_add_computer.png create mode 100755 android/sdremote/res/drawable-mdpi/ic_action_cancel.png create mode 100755 android/sdremote/res/drawable-mdpi/ic_action_save.png create mode 100755 android/sdremote/res/drawable-xhdpi/ic_action_add_computer.png create mode 100755 android/sdremote/res/drawable-xhdpi/ic_action_cancel.png create mode 100755 android/sdremote/res/drawable-xhdpi/ic_action_save.png create mode 100644 android/sdremote/res/layout-v11/action_bar_computer_creation.xml create mode 100644 android/sdremote/res/layout/action_bar_computer_creation.xml create mode 100644 android/sdremote/res/layout/activity_computer_creation.xml create mode 100644 android/sdremote/res/menu/menu_context_computers.xml create mode 100644 android/sdremote/src/org/libreoffice/impressremote/ComputerCreationActivity.java (limited to 'android') diff --git a/android/sdremote/AndroidManifest.xml b/android/sdremote/AndroidManifest.xml index e8225a33cc3c..72d692b0eb6d 100644 --- a/android/sdremote/AndroidManifest.xml +++ b/android/sdremote/AndroidManifest.xml @@ -36,6 +36,12 @@ android:label="@string/title_connection"> + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/sdremote/res/layout/action_bar_computer_creation.xml b/android/sdremote/res/layout/action_bar_computer_creation.xml new file mode 100644 index 000000000000..5e6ea3696fb6 --- /dev/null +++ b/android/sdremote/res/layout/action_bar_computer_creation.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/sdremote/res/layout/activity_computer_creation.xml b/android/sdremote/res/layout/activity_computer_creation.xml new file mode 100644 index 000000000000..be1f31395436 --- /dev/null +++ b/android/sdremote/res/layout/activity_computer_creation.xml @@ -0,0 +1,25 @@ + + + + + + + + \ No newline at end of file diff --git a/android/sdremote/res/menu/menu_action_bar_computers.xml b/android/sdremote/res/menu/menu_action_bar_computers.xml index ee7cfb8c1ef2..7835fa986feb 100644 --- a/android/sdremote/res/menu/menu_action_bar_computers.xml +++ b/android/sdremote/res/menu/menu_action_bar_computers.xml @@ -1,6 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/android/sdremote/res/values/colors.xml b/android/sdremote/res/values/colors.xml index 5cbe66a6b3ed..f15f73bd3826 100644 --- a/android/sdremote/res/values/colors.xml +++ b/android/sdremote/res/values/colors.xml @@ -3,6 +3,8 @@ #e46f1f + #55ffffff + #EE4400 #303030 #FFFFFF diff --git a/android/sdremote/res/values/dimens.xml b/android/sdremote/res/values/dimens.xml index 4af04087d552..694e02e64eee 100644 --- a/android/sdremote/res/values/dimens.xml +++ b/android/sdremote/res/values/dimens.xml @@ -1,11 +1,21 @@ + 8dp + 16dp + 8dp 40dp + 20dp + 12dp 10dp 10dp + 8dp + + 12dp + + 0.5dp 18sp 35sp diff --git a/android/sdremote/res/values/strings.xml b/android/sdremote/res/values/strings.xml index ab3a73b184d5..4e7502dfd3a2 100644 --- a/android/sdremote/res/values/strings.xml +++ b/android/sdremote/res/values/strings.xml @@ -73,11 +73,21 @@ Open source licenses Reconnect + Add computer + Remove + + Cancel + Save Go to “Slide Show → Impress Remote” in LibreOffice Impress and enter the code. Connection failed Make sure you enabled remote control. Go to “Tools → Options → LibreOffice Impress → General” in LibreOffice Impress. You should enable experimental features at “Tools → Options → LibreOffice → Advanced” as well. If you have Bluetooth pairing issues check instructions related to your desktop OS. + You should type a valid IP address. + Name should not be empty. + + IP address + Name diff --git a/android/sdremote/res/values/themes.xml b/android/sdremote/res/values/themes.xml index 2dcde14acfcf..21f5be187576 100644 --- a/android/sdremote/res/values/themes.xml +++ b/android/sdremote/res/values/themes.xml @@ -37,6 +37,16 @@ showTitle|showHome|useLogo + + + +