From 3cb52a38385f300199b939f18dfcfe76d8e2cf97 Mon Sep 17 00:00:00 2001 From: Haifeng Deng Date: Thu, 26 Feb 2015 15:33:39 +0800 Subject: [PATCH] Support Password NumberOnly layout Change-Id: Ief7747d7cfc419dbd5182f645ca5f31e5113ac74 Signed-off-by: Haifeng Deng --- data/layout/sdk/LYT_PORTRAIT_3X4_PASSWD.xml | 137 +++++++++++----------------- data/layout/sdk/input_mode_configure.xml | 6 ++ data/layout/sdk/label_property.xml | 16 ++++ src/include/ise.h | 4 + src/ise.cpp | 2 + 5 files changed, 83 insertions(+), 82 deletions(-) mode change 100644 => 100755 data/layout/sdk/LYT_PORTRAIT_3X4_PASSWD.xml diff --git a/data/layout/sdk/LYT_PORTRAIT_3X4_PASSWD.xml b/data/layout/sdk/LYT_PORTRAIT_3X4_PASSWD.xml old mode 100644 new mode 100755 index 5055c90..04e9e47 --- a/data/layout/sdk/LYT_PORTRAIT_3X4_PASSWD.xml +++ b/data/layout/sdk/LYT_PORTRAIT_3X4_PASSWD.xml @@ -1,15 +1,15 @@ - + - textinput_panel_bg.png + B09_panel.png - B09_key_btn_01.png - B09_key_btn_press.png - B09_key_btn_01.png + button/B09_key_btn_01.png + button/B09_key_btn_press.png + button/B09_key_btn_01.png - - + + @@ -17,120 +17,99 @@ 1 - + 2 - + 3 - - - textinput_3x4_icon_clear2.png - textinput_3x4_icon_clear2.png - - - B09_key_btn_02.png - B09_key_btn_press.png - B09_key_btn_02.png - - - BackSpace - - - + + + 4 - + 5 - + 6 - - - textinput_3x4_icon_enter.png - textinput_3x4_icon_enter.png - - - B09_key_btn_02.png - B09_key_btn_press.png - B09_key_btn_02.png - - - Enter - - - + + + 7 - + 8 - + 9 - - + + + + + B09_icon_back.png + B09_icon_back_press.png + - B09_key_btn_02.png - B09_key_btn_press.png - B09_key_btn_02.png + button/B09_key_btn_02.png + button/B09_key_btn_press.png + button/B09_key_btn_02.png - - CUR_LANG - - - - - * + BackSpace - + @@ -138,27 +117,21 @@ 0 - - - - # - - - + - language_icon_port.png - language_icon_port.png + B09_icon_enter.png + B09_icon_enter_press.png + B09_icon_enter_dim.png - B09_key_btn_02.png - B09_key_btn_press.png - B09_key_btn_02.png + button/B09_key_btn_02.png + button/B09_key_btn_press.png + button/B09_key_btn_02.png - - NEXT_LANG - + + Enter + + diff --git a/data/layout/sdk/input_mode_configure.xml b/data/layout/sdk/input_mode_configure.xml index 9254c74..1954d49 100755 --- a/data/layout/sdk/input_mode_configure.xml +++ b/data/layout/sdk/input_mode_configure.xml @@ -558,6 +558,12 @@ LYT_LANDSCAPE_3X4_DATETIME.xml + + + LYT_PORTRAIT_3X4_PASSWD.xml + LYT_LANDSCAPE_3X4_PASSWD.xml + + LYT_EMOTICON_POPUP.xml diff --git a/data/layout/sdk/label_property.xml b/data/layout/sdk/label_property.xml index 31c7a7c..b5b7ea6 100755 --- a/data/layout/sdk/label_property.xml +++ b/data/layout/sdk/label_property.xml @@ -193,6 +193,22 @@ + + + + 0x171717ff + 0x000000ff + 0x17171733 + + + + + 0x0000004c + 0x0000004c + 0x0000004c + + + diff --git a/src/include/ise.h b/src/include/ise.h index 423b5f8..b109df4 100755 --- a/src/include/ise.h +++ b/src/include/ise.h @@ -61,6 +61,8 @@ enum ISE_LAYOUT{ ISE_LAYOUT_STYLE_NUMBERONLY_DEC, ISE_LAYOUT_STYLE_NUMBERONLY_SIGDEC, + ISE_LAYOUT_STYLE_PASSWD_3X4, + ISE_LAYOUT_STYLE_MAX }; @@ -89,6 +91,8 @@ const ISE_DEFAULT_VALUES g_ise_default_values[ISE_LAYOUT_STYLE_MAX] = { {"NUMONLY_3X4_SIG", "DEFAULT", FALSE }, /* ISE_LAYOUT_STYLE_NUMBERONLY_SIG */ {"NUMONLY_3X4_DEC", "DEFAULT", FALSE }, /* ISE_LAYOUT_STYLE_NUMBERONLY_DEC */ {"NUMONLY_3X4_SIGDEC", "DEFAULT", FALSE }, /* ISE_LAYOUT_STYLE_NUMBERONLY_SIGDEC */ + + {"PASSWD_3X4", "DEFAULT", FALSE }, /* ISE_LAYOUT_STYLE_PASSWD_3X4 */ }; #define ISE_RETURN_KEY_LABEL_DONE gettext("IDS_IME_SK_DONE_ABB") diff --git a/src/ise.cpp b/src/ise.cpp index f24c438..58126e7 100755 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -671,6 +671,8 @@ ise_show(int ic) g_keyboard_state.layout_variation > 0 && g_keyboard_state.layout_variation < ISE_LAYOUT_NUMBERONLY_VARIATION_MAX) { layout_index = ISE_LAYOUT_STYLE_NUMBERONLY_SIG + g_keyboard_state.layout_variation - 1; + } else if (g_keyboard_state.layout == ISE_LAYOUT_STYLE_PASSWORD && g_keyboard_state.layout_variation > 0) { + layout_index = ISE_LAYOUT_STYLE_PASSWD_3X4; } /* If this layout requires specific input mode, set it */ -- 2.7.4