diff options
Diffstat (limited to 'lib-phone/ph-dialer/res')
39 files changed, 950 insertions, 0 deletions
diff --git a/lib-phone/ph-dialer/res/edje/CMakeLists.txt b/lib-phone/ph-dialer/res/edje/CMakeLists.txt new file mode 100644 index 0000000..aebb2a6 --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/CMakeLists.txt @@ -0,0 +1,30 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +SET(PH_EDJ_PATH "${CMAKE_APP_RES_DIR}/edje/phone") + +ADD_CUSTOM_TARGET(ph-dialer-layout.edj + COMMAND edje_cc ${EDJE_CFLAGS} + -id ${CMAKE_CURRENT_SOURCE_DIR}/../images + ${CMAKE_CURRENT_SOURCE_DIR}/ph-dialer-layout.edc ph-dialer-layout.edj + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ph-dialer-layout.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} ph-dialer-layout.edj) +INSTALL(FILES ph-dialer-layout.edj DESTINATION ${PH_EDJ_PATH}) + +ADD_CUSTOM_TARGET(ph-dialer-keypad.edj + COMMAND edje_cc ${EDJE_CFLAGS} + -id ${CMAKE_CURRENT_SOURCE_DIR}/../images + ${CMAKE_CURRENT_SOURCE_DIR}/ph-dialer-keypad.edc ph-dialer-keypad.edj + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ph-dialer-keypad.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} ph-dialer-keypad.edj) +INSTALL(FILES ph-dialer-keypad.edj DESTINATION ${PH_EDJ_PATH}) + +ADD_CUSTOM_TARGET(ph-dialer-predictive.edj + COMMAND edje_cc ${EDJE_CFLAGS} + -id ${CMAKE_CURRENT_SOURCE_DIR}/../images + ${CMAKE_CURRENT_SOURCE_DIR}/ph-dialer-predictive.edc ph-dialer-predictive.edj + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ph-dialer-predictive.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} ph-dialer-predictive.edj) +INSTALL(FILES ph-dialer-predictive.edj DESTINATION ${PH_EDJ_PATH}) diff --git a/lib-phone/ph-dialer/res/edje/PhDialerLayout.h b/lib-phone/ph-dialer/res/edje/PhDialerLayout.h new file mode 100644 index 0000000..de831f8 --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/PhDialerLayout.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef _PH_DIALER_LAYOUT_H_ +#define _PH_DIALER_LAYOUT_H_ + +#define GROUP_DIALER "dialer" +#define PART_SWALLOW_ENTRY "swallow.entry" +#define PART_SWALLOW_PREDICTIVE "swallow.predictive" +#define PART_SWALLOW_KEYPAD "swallow.keypad" +#define PART_SWALLOW_CALL "swallow.call" +#define PART_SWALLOW_BACKSPACE "swallow.backspace" + +#define GROUP_PREDICTIVE_NO_RESULTS "predictive_noresults" +#define PART_TEXT_ADD "text.add" + +#define GROUP_PREDICTIVE "predictive" +#define PART_SWALLOW_THUMBNAIL "swallow.thumbnail" +#define PART_SWALLOW_SPEEDDIAL "swallow.speeddial" +#define PART_TEXT_NAME "text.name" +#define PART_TEXT_NUMBER "text.number" +#define PART_TEXT_1_LINE "text.1line" +#define PART_SWALLOW_RESULTS "swallow.results" + +#define GROUP_SPEEDDIAL_NUMBER "speeddial_number" + +#define GROUP_PREDICTIVE_RES_COUNT "predictive_res_count" +#define PART_TEXT_COUNT "text.count" +#define PART_SWALLOW_ARROW "swallow.arrow" + +#define KEYPAD_NUMBER_1 "keypad_number_01" +#define KEYPAD_NUMBER_2 "keypad_number_02" +#define KEYPAD_NUMBER_3 "keypad_number_03" +#define KEYPAD_NUMBER_4 "keypad_number_04" +#define KEYPAD_NUMBER_5 "keypad_number_05" +#define KEYPAD_NUMBER_6 "keypad_number_06" +#define KEYPAD_NUMBER_7 "keypad_number_07" +#define KEYPAD_NUMBER_8 "keypad_number_08" +#define KEYPAD_NUMBER_9 "keypad_number_09" +#define KEYPAD_NUMBER_ASTERISK "keypad_number_asterisk" +#define KEYPAD_NUMBER_0 "keypad_number_00" +#define KEYPAD_NUMBER_SHARP "keypad_number_sharp" + +#define KEYPAD_LETTERS_2 "keypad_english_01" +#define KEYPAD_LETTERS_3 "keypad_english_02" +#define KEYPAD_LETTERS_4 "keypad_english_03" +#define KEYPAD_LETTERS_5 "keypad_english_04" +#define KEYPAD_LETTERS_6 "keypad_english_05" +#define KEYPAD_LETTERS_7 "keypad_english_06" +#define KEYPAD_LETTERS_8 "keypad_english_07" +#define KEYPAD_LETTERS_9 "keypad_english_08" +#define KEYPAD_LETTERS_0 "keypad_english_10" + +#define BUTTON_CALL "keypad_ic_call" +#define BUTTON_BACKSPACE "keypad_ic_back" + +#define PREDICTIVE_ADD "keypad_speed_dial_add" + +#define PREDICTIVE_RESULTS_MASK "predictive_results_mask" +#define PREDICTIVE_ARROW "keypad_predictive_arrow" + +#define SPEEDDIAL_IC_BG "keypad_speed_dial_ic_bg.#" +#define SPEEDDIAL_IC "keypad_speed_dial_ic" +#define PART_TEXT_NUMBER "text.number" + +#define BUTTON_CALL_NORMAL 89, 176, 58, 255 +#define BUTTON_CALL_PRESSED 127, 184, 106, 255 + +#endif /* _PH_DIALER_LAYOUT_H_ */ diff --git a/lib-phone/ph-dialer/res/edje/PhDialerLayoutColors.h b/lib-phone/ph-dialer/res/edje/PhDialerLayoutColors.h new file mode 100644 index 0000000..161ba41 --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/PhDialerLayoutColors.h @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef _PH_DIALER_LAYOUT_COLORS_H_ +#define _PH_DIALER_LAYOUT_COLORS_H_ + +color_classes { + color_class {//AO005 + name: "keypad_bg_normal"; + color: 255 255 255 255; + } + color_class {//AO005P + name: "keypad_bg_pressed"; + color: 61 185 204 77; + } + color_class {//AO003 + name: "button_number"; + color: 0 0 0 217; + } + color_class {//AO003D + name: "button_number_pressed"; + color: 0 0 0 77; + } + color_class {//AO004 + name: "button_letter"; + color: 51 51 51 205; + } + color_class {//AO004D + name: "button_letter_pressed"; + color: 51 51 51 64; + } + color_class {//AO002 + name: "action_button_normal"; + color: 90 176 58 255; + } + color_class {//AO002D + name: "action_button_pressed"; + color: 120 84 97 255; + } + color_class {//AO008 + name: "divider_bg"; + color: 217 217 217 255; + } + color_class {//AO006 + name: "predictive_bg"; + color: 255 255 255 26; + } + color_class { + name: "predictive_bg_pressed"; + color: 0 0 0 26; + } + color_class {//A03O003L1 + name: "predictive_icon"; + color: 61 185 204 128; + } + color_class {//A03O003 + name: "predictive_icon_bg"; + color: 255 255 255 255; + } + color_class {//AO001 + name: "action_panel_bg"; + color: 255 255 255 255; + } + color_class {//AO014 + name: "action_button_icon_normal"; + color: 255 255 255 255; + } + color_class { + name: "back_button_icon_normal"; + color: 180 180 180 255; + } + color_class {//AO014D + name: "action_button_icon_pressed"; + color: 255 255 255 128; + } + color_class { + name: "transparent_bg"; + color: 0 0 0 0; + } + color_class {//AO027 + name: "speeddial_ic_bg"; + color: 250 250 250 102; + } +} + +#endif /* _PH_DIALER_LAYOUT_COLORS_H_ */ diff --git a/lib-phone/ph-dialer/res/edje/PhDialerLayoutMetrics.h b/lib-phone/ph-dialer/res/edje/PhDialerLayoutMetrics.h new file mode 100644 index 0000000..b3e9988 --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/PhDialerLayoutMetrics.h @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef _PH_DIALER_LAYOUT_METRICS_H_ +#define _PH_DIALER_LAYOUT_METRICS_H_ + +#define TOTAL_W 720 +#define TOTAL_H 1120 + +#define ENTRY_H 296 +#define PREDICTIVE_H 144 +#define KEYPAD_H 528 +#define ACTION_PANEL_H 152 + +#define BUTTON_NUMBER_W 238 +#define BUTTON_NUMBER_H 130 +#define DIVIDER_SIZE 2 + +#define BUTTON_PART_W 108 +#define BUTTON_PART_NUMBER_H 71 +#define BUTTON_PART_LETTERS_H 36 + +#define OFFSET_BUTTON_PART_X 65 +#define OFFSET_BUTTON_PART_Y 12 + +#define ACTION_BUTTONS_H 152 + +#define BUTTON_CALL_SIZE 104 +#define BUTTON_CALL_X ((TOTAL_W - BUTTON_CALL_SIZE) / 2) +#define BUTTON_CALL_Y ((ACTION_BUTTONS_H - BUTTON_CALL_SIZE) / 2) + +#define BUTTON_BACKSPACE_SIZE 90 +#define BUTTON_BACKSPACE_X 82 +#define BUTTON_BACKSPACE_Y ((ACTION_BUTTONS_H - BUTTON_BACKSPACE_SIZE) / 2) + +#define PREDICTIVE_PICTURE_BG_W 162 +#define PREDICTIVE_PICTURE_SIZE 98 +#define PREDICTIVE_MAIN_TEXT_H 57 +#define PREDICTIVE_SUB_TEXT_H 45 +#define PREDICTIVE_TEXT_W 446 +#define PREDICTIVE_PARTS_H 48 +#define PREDICTIVE_PARTS_W 48 +#define PREDICTIVE_RESULTS_BG_W 112 +#define PREDICTIVE_ADD_SIZE 80 + +#define OFFSET_PREDICTIVE_Y 24 +#define OFFSET_PREDICTIVE_TEXT_Y ((PREDICTIVE_H - PREDICTIVE_MAIN_TEXT_H - PREDICTIVE_SUB_TEXT_H) / 2) +#define OFFSET_PREDICTIVE_1_LINE_TEXT_Y ((PREDICTIVE_H - PREDICTIVE_MAIN_TEXT_H) / 2) +#define SPACER_PREDICTIVE_Y 1 +#define SPACER_PREDICTIVE_X 32 +#define OFFSET_PREDICTIVE_ADD 32 + +#define SPEEDDIAL_AREA_W 76 +#define SPEEDDIAL_AREA_H 45 +#define SPEEDDIAL_IC_SIZE 28 +#define SPEEDIAL_TEXT_W 18 + +#define SPEEDDIAL_SPACER 12 +#define OFFSET_INNER_SPEEDDIAL_AREA_H ((SPEEDDIAL_AREA_W - SPEEDDIAL_IC_SIZE - SPEEDIAL_TEXT_W) / 2) +#define OFFSET_T_SPEEDDIAL_IC 9 +#define OFFSET_B_SPEEDDIAL_IC 8 + + +#endif /* _PH_DIALER_LAYOUT_METRICS_H_ */ diff --git a/lib-phone/ph-dialer/res/edje/ph-dialer-keypad.edc b/lib-phone/ph-dialer/res/edje/ph-dialer-keypad.edc new file mode 100644 index 0000000..0882b6a --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/ph-dialer-keypad.edc @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "PhDialerLayout.h" +#include "PhDialerLayoutMetrics.h" +#include "PhDialerLayoutColors.h" + +#define PART_BG \ + part { \ + name: "bg"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + color_class: "keypad_bg_normal"; \ + } \ + description { \ + state: "pressed" 0.0; \ + color_class: "keypad_bg_pressed"; \ + } \ + } + +#define PART_NUMBER(number_name) \ + part { \ + name: "image.number"; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + aspect: 0.0 1.0; \ + aspect_preference: SOURCE; \ + color_class: "button_number"; \ + rel1 { relative: (OFFSET_BUTTON_PART_X / BUTTON_NUMBER_W) (OFFSET_BUTTON_PART_Y / BUTTON_NUMBER_H); } \ + rel2 { relative: ((OFFSET_BUTTON_PART_X + BUTTON_PART_W) / BUTTON_NUMBER_W) ((OFFSET_BUTTON_PART_Y + BUTTON_PART_NUMBER_H) / BUTTON_NUMBER_H); } \ + image.normal: number_name".png"; \ + } \ + description { \ + inherit: "default" 0.0; \ + state: "pressed" 0.0; \ + color_class: "button_number_pressed"; \ + } \ + } + +#define PART_LETTERS(letter_name) \ + part { \ + name: "image.letters"; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + aspect: 1.0 1.0; \ + aspect_preference: SOURCE; \ + color_class: "button_letter"; \ + rel1 { relative: (OFFSET_BUTTON_PART_X / BUTTON_NUMBER_W) ((OFFSET_BUTTON_PART_Y + BUTTON_PART_NUMBER_H) / BUTTON_NUMBER_H); } \ + rel2 { relative: ((OFFSET_BUTTON_PART_X + BUTTON_PART_W) / BUTTON_NUMBER_W) ((OFFSET_BUTTON_PART_Y + BUTTON_PART_NUMBER_H + BUTTON_PART_LETTERS_H) / BUTTON_NUMBER_H); } \ + image.normal: letter_name".png"; \ + } \ + description { \ + inherit: "default" 0.0; \ + state: "pressed" 0.0; \ + color_class: "button_letter_pressed"; \ + } \ + } + +#define PROGRAMS \ + programs { \ + program { \ + name: "pressed"; \ + signal: "mouse,down,*"; \ + source: "*"; \ + action: STATE_SET "pressed" 0.0; \ + target: "bg"; \ + } \ + program { \ + name: "unpressed"; \ + signal: "mouse,up,*"; \ + source: "*"; \ + action: STATE_SET "default" 0.0; \ + target: "bg"; \ + } \ + } + +#define KEYPAD_BUTTON_WITH_LETTERS(number_name, letter_name) \ + group { \ + name: number_name; \ + parts { \ + PART_BG \ + PART_NUMBER(number_name) \ + PART_LETTERS(letter_name) \ + } \ + PROGRAMS \ + } + +#define KEYPAD_BUTTON_WITHOUT_LETTERS(number_name) \ + group { \ + name: number_name; \ + parts { \ + PART_BG \ + PART_NUMBER(number_name) \ + } \ + PROGRAMS \ + } + +images { + image: KEYPAD_NUMBER_1".png" COMP; + image: KEYPAD_NUMBER_2".png" COMP; + image: KEYPAD_NUMBER_3".png" COMP; + image: KEYPAD_NUMBER_4".png" COMP; + image: KEYPAD_NUMBER_5".png" COMP; + image: KEYPAD_NUMBER_6".png" COMP; + image: KEYPAD_NUMBER_7".png" COMP; + image: KEYPAD_NUMBER_8".png" COMP; + image: KEYPAD_NUMBER_9".png" COMP; + image: KEYPAD_NUMBER_ASTERISK".png" COMP; + image: KEYPAD_NUMBER_0".png" COMP; + image: KEYPAD_NUMBER_SHARP".png" COMP; + + image: KEYPAD_LETTERS_2".png" COMP; + image: KEYPAD_LETTERS_3".png" COMP; + image: KEYPAD_LETTERS_4".png" COMP; + image: KEYPAD_LETTERS_5".png" COMP; + image: KEYPAD_LETTERS_6".png" COMP; + image: KEYPAD_LETTERS_7".png" COMP; + image: KEYPAD_LETTERS_8".png" COMP; + image: KEYPAD_LETTERS_9".png" COMP; + image: KEYPAD_LETTERS_0".png" COMP; +} + +collections { + KEYPAD_BUTTON_WITHOUT_LETTERS(KEYPAD_NUMBER_1); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_2, KEYPAD_LETTERS_2); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_3, KEYPAD_LETTERS_3); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_4, KEYPAD_LETTERS_4); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_5, KEYPAD_LETTERS_5); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_6, KEYPAD_LETTERS_6); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_7, KEYPAD_LETTERS_7); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_8, KEYPAD_LETTERS_8); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_9, KEYPAD_LETTERS_9); + KEYPAD_BUTTON_WITHOUT_LETTERS(KEYPAD_NUMBER_ASTERISK); + KEYPAD_BUTTON_WITH_LETTERS(KEYPAD_NUMBER_0, KEYPAD_LETTERS_0); + KEYPAD_BUTTON_WITHOUT_LETTERS(KEYPAD_NUMBER_SHARP); +}
\ No newline at end of file diff --git a/lib-phone/ph-dialer/res/edje/ph-dialer-layout.edc b/lib-phone/ph-dialer/res/edje/ph-dialer-layout.edc new file mode 100644 index 0000000..b9f381b --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/ph-dialer-layout.edc @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "PhDialerLayout.h" +#include "PhDialerLayoutMetrics.h" +#include "../../../../lib-common/res/edje/Utils.h" +#include "PhDialerLayoutColors.h" + + +collections { + base_scale: 2.6; + + group { + name: GROUP_DIALER; + + parts { + part { + name: PART_SWALLOW_ENTRY; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 (ENTRY_H / TOTAL_H); } + } + } + part { + name: PART_SWALLOW_PREDICTIVE; + type: SWALLOW; + description { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 ((ENTRY_H + 1) / TOTAL_H); } + rel2 { relative: 1.0 ((ENTRY_H + PREDICTIVE_H) / TOTAL_H); } + } + } + part { + name: "keypad_bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "divider_bg"; + rel1 { relative: 0.0 ((ENTRY_H + PREDICTIVE_H + 1) / TOTAL_H); } + rel2 { relative: 1.0 ((ENTRY_H + PREDICTIVE_H + KEYPAD_H - DIVIDER_SIZE) / TOTAL_H); } + } + } + part { + name: PART_SWALLOW_KEYPAD; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "keypad_bg"; } + rel2 { relative: 1.0 1.0; to: "keypad_bg"; } + } + } + part { + name: "divider"; + type: RECT; + description { + state: "default" 0.0; + color_class: "divider_bg"; + rel1 { relative: 0.0 1.0; to: "keypad_bg"; } + rel2 { relative: 1.0 ((ENTRY_H + PREDICTIVE_H + KEYPAD_H) / TOTAL_H); } + } + } + part { + name: "action_panel_bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "action_panel_bg"; + rel1 { relative: 0.0 1.0; to: "divider"; } + rel2 { relative: 1.0 1.0; } + } + } + part { + name: PART_SWALLOW_CALL; + type: SWALLOW; + description { + state: "default" 0.0; + aspect: 1.0 1.0; + aspect_preference: SOURCE; + fixed: 1 1; + rel1 { relative: (BUTTON_CALL_X / TOTAL_W) (BUTTON_CALL_Y / ACTION_PANEL_H); to: "action_panel_bg"; } + rel2 { relative: (1.0 - (BUTTON_CALL_X / TOTAL_W)) (1.0 - (BUTTON_CALL_Y / ACTION_PANEL_H)); to: "action_panel_bg"; } + } + } + part { + name: PART_SWALLOW_BACKSPACE; + type: SWALLOW; + description { + state: "default" 0.0; + aspect: 1.0 1.0; + aspect_preference: SOURCE; + fixed: 1 1; + rel1 { relative: (1.0 - ((BUTTON_BACKSPACE_X + BUTTON_BACKSPACE_SIZE) / TOTAL_W)) (BUTTON_BACKSPACE_Y / ACTION_PANEL_H); to: "action_panel_bg"; } + rel2 { relative: (1.0 - (BUTTON_BACKSPACE_X / TOTAL_W)) (1.0 - (BUTTON_BACKSPACE_Y / ACTION_PANEL_H)); to: "action_panel_bg"; } + } + } + } + } + + RESOURCE_IMAGE_WITH_COLOR_CODE(BUTTON_CALL, "action_button_icon_normal"); + RESOURCE_IMAGE_WITH_COLOR_CODE(BUTTON_BACKSPACE, "back_button_icon_normal"); +} diff --git a/lib-phone/ph-dialer/res/edje/ph-dialer-predictive.edc b/lib-phone/ph-dialer/res/edje/ph-dialer-predictive.edc new file mode 100644 index 0000000..7ff0bb9 --- /dev/null +++ b/lib-phone/ph-dialer/res/edje/ph-dialer-predictive.edc @@ -0,0 +1,388 @@ +/* + * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "PhDialerLayout.h" +#include "PhDialerLayoutMetrics.h" +#include "PhDialerLayoutColors.h" + +images { + image: PREDICTIVE_ADD".png" COMP; + image: PREDICTIVE_ARROW".png" COMP; + image: SPEEDDIAL_IC_BG".png" COMP; + image: SPEEDDIAL_IC".png" COMP; +} + +styles { + style { + name: "add_to_contacts_style"; + base: "font=Tizen:style=Light font_size=46 color=#FAFAFA ellipsis=1.0"; + } + style { + name: "highlight_style"; + base: "font=Tizen:style=Light font_size=40 color=#FAFAFA ellipsis=1.0"; + tag: "match" "+color=#86EDFC"; + } + style { + name: "small_highlight_style"; + base: "font=Tizen:style=Light font_size=32 color=#FAFAFA ellipsis=1.0"; + tag: "match" "+color=#86EDFC"; + } + style { + name: "count_style"; + base: "font=Tizen:style=Regular font_size=36 align=center color=#FAFAFA ellipsis=1.0"; + } + style { + name: "predictive_speeddial_style"; + base: "font=Tizen:style=Regular font_size=32 color=#FFFAFA"; + } + +} + +collections { + base_scale: 2.6; + group { + name: GROUP_PREDICTIVE_NO_RESULTS; + parts { + part { + name: "bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "predictive_bg"; + } + } + part { + name: PART_TEXT_ADD; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + text { + align: 0.1 0.5; + style: "add_to_contacts_style"; + } + rel1 { relative: ((OFFSET_PREDICTIVE_ADD + 1) / TOTAL_W) ((OFFSET_PREDICTIVE_ADD + 1) / PREDICTIVE_H); } + rel2 { relative: ((TOTAL_W - PREDICTIVE_H) / TOTAL_W) ((OFFSET_PREDICTIVE_ADD + PREDICTIVE_ADD_SIZE) / PREDICTIVE_H); to_x: "add_bg"; } + } + } + part { + name: "add_bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "transparent_bg"; + rel1 { relative: ((TOTAL_W - PREDICTIVE_H + 1) / TOTAL_W) 0.0; } + rel2 { relative: 1.0 1.0; } + } + } + part { + name: "image.add"; + type: IMAGE; + description { + state: "default" 0.0; + aspect: 1.0 1.0; + aspect_preference: SOURCE; + image.normal: PREDICTIVE_ADD".png"; + rel1 { relative: ((OFFSET_PREDICTIVE_ADD + 1) / PREDICTIVE_H) ((OFFSET_PREDICTIVE_ADD + 1) / PREDICTIVE_H); to:"add_bg"; } + rel2 { relative: ((OFFSET_PREDICTIVE_ADD + PREDICTIVE_ADD_SIZE) / PREDICTIVE_H) ((OFFSET_PREDICTIVE_ADD + PREDICTIVE_ADD_SIZE) / PREDICTIVE_H); to:"add_bg"; } + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + color_class: "predictive_icon"; + } + } + } + + programs { + program { + name: "pressed"; + signal: "mouse,down,*"; + source: "*"; + action: STATE_SET "pressed" 0.0; + target: "image.add"; + } + program { + name: "unpressed"; + signal: "mouse,up,*"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "image.add"; + } + } + } + + group { + name: GROUP_PREDICTIVE; + parts { + part { + name: "bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "predictive_bg"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + color_class: "predictive_bg_pressed"; + } + } + part { + name: "thumbnail_bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "transparent_bg"; + rel2 { relative: (PREDICTIVE_PICTURE_BG_W / TOTAL_W) 1.0; } + } + } + part { + name: PART_SWALLOW_THUMBNAIL; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { relative: ((SPACER_PREDICTIVE_X + 1) / PREDICTIVE_PICTURE_BG_W) ((OFFSET_PREDICTIVE_Y + 1) / PREDICTIVE_H); to: "thumbnail_bg"; } + rel2 { relative: ((SPACER_PREDICTIVE_X + PREDICTIVE_PICTURE_SIZE) / PREDICTIVE_PICTURE_BG_W) ((OFFSET_PREDICTIVE_Y + PREDICTIVE_PICTURE_SIZE) / PREDICTIVE_H); to: "thumbnail_bg"; } + } + } + part { + name: PART_SWALLOW_SPEEDDIAL; + type: SWALLOW; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 1.0 ((OFFSET_PREDICTIVE_TEXT_Y + 1) / PREDICTIVE_H); to_x: "thumbnail_bg"; } + rel2 { relative: ((PREDICTIVE_PICTURE_BG_W + SPEEDDIAL_AREA_W) / TOTAL_W) ((OFFSET_PREDICTIVE_TEXT_Y + PREDICTIVE_MAIN_TEXT_H) / PREDICTIVE_H); } + } + description { + state: "speeddial" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: PART_TEXT_NAME; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + text { + align: 0.0 0.5; + style: "highlight_style"; + } + rel1 { relative: 1.0 ((OFFSET_PREDICTIVE_TEXT_Y + 1) / PREDICTIVE_H); to_x: "thumbnail_bg"; } + rel2 { relative: 0.0 ((OFFSET_PREDICTIVE_TEXT_Y + PREDICTIVE_MAIN_TEXT_H) / PREDICTIVE_H); to_x: "result_bg"; } + } + description { + state: "speeddial" 0.0; + inherit: "default" 0.0; + rel1 { + relative: ((PREDICTIVE_PICTURE_BG_W + SPEEDDIAL_AREA_W + SPEEDDIAL_SPACER) / TOTAL_W) ((OFFSET_PREDICTIVE_TEXT_Y + 1) / PREDICTIVE_H); + to_x: ""; + } + rel2 { + relative: 0.0 ((OFFSET_PREDICTIVE_TEXT_Y + PREDICTIVE_MAIN_TEXT_H) / PREDICTIVE_H); + to_x: "result_bg"; + } + } + } + part { + name: PART_TEXT_NUMBER; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + text { + align: 0.0 0.5; + style: "small_highlight_style"; + } + rel1 { relative: 1.0 ((OFFSET_PREDICTIVE_TEXT_Y + PREDICTIVE_MAIN_TEXT_H + 1) / PREDICTIVE_H); to_x: "thumbnail_bg"; } + rel2 { relative: 0.0 ((OFFSET_PREDICTIVE_TEXT_Y + PREDICTIVE_MAIN_TEXT_H + PREDICTIVE_SUB_TEXT_H) / PREDICTIVE_H); to_x: "result_bg"; } + } + } + part { + name: PART_TEXT_1_LINE; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + text { + align: 0.0 0.5; + style: "highlight_style"; + } + rel1 { relative: 1.0 ((OFFSET_PREDICTIVE_1_LINE_TEXT_Y + 1) / PREDICTIVE_H); to_x: "thumbnail_bg"; } + rel2 { relative: 0.0 ((OFFSET_PREDICTIVE_1_LINE_TEXT_Y + PREDICTIVE_MAIN_TEXT_H) / PREDICTIVE_H); to_x: "result_bg"; } + } + } + part { + name: "result_bg"; + type: RECT; + description { + state: "default" 0.0; + color_class: "transparent_bg"; + rel1 { relative: ((PREDICTIVE_PICTURE_BG_W + PREDICTIVE_TEXT_W + 1) / TOTAL_W) 0.0; } + rel2 { relative: 1.0 1.0; } + } + } + part { + name: PART_SWALLOW_RESULTS; + type: SWALLOW; + description { + state: "default" 0.0; + rel1.to: "result_bg"; + rel2.to: "result_bg"; + } + } + } + programs { + program { + name: "pressed"; + signal: "mouse,down,*"; + source: "*"; + action: STATE_SET "pressed" 0.0; + target: "bg"; + } + program { + name: "unpressed"; + signal: "mouse,up,*"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "bg"; + } + program { + name: "show_speeddial_icon"; + signal: "show,speeddial,icon"; + action: STATE_SET "speeddial" 0.0; + target: PART_SWALLOW_SPEEDDIAL; + target: PART_TEXT_NAME; + } + program { + name: "hide_speeddial_icon"; + signal: "hide,speeddial,icon"; + action: STATE_SET "default" 0.0; + target: PART_SWALLOW_SPEEDDIAL; + target: PART_TEXT_NAME; + } + } + } + + group { + name: GROUP_SPEEDDIAL_NUMBER; + parts { + part { + name: "bg"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + image.normal: SPEEDDIAL_IC_BG".png"; + color_class: "speeddial_ic_bg"; + } + } + part { + name: "swallow.icon"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + rel1.relative: (OFFSET_INNER_SPEEDDIAL_AREA_H / SPEEDDIAL_AREA_W) (OFFSET_T_SPEEDDIAL_IC / SPEEDDIAL_AREA_H); + rel2.relative: ((OFFSET_INNER_SPEEDDIAL_AREA_H + SPEEDDIAL_IC_SIZE) / SPEEDDIAL_AREA_W) ((OFFSET_T_SPEEDDIAL_IC + SPEEDDIAL_IC_SIZE) / SPEEDDIAL_AREA_H); + image.normal: SPEEDDIAL_IC".png"; + } + } + part { + name: PART_TEXT_NUMBER; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.0; + to_x: "swallow.icon"; + } + rel2.relative: 1.0 1.0; + text { + align: 0.0 0.5; + style: "predictive_speeddial_style"; + } + } + } + } + } + + group { + name: GROUP_PREDICTIVE_RES_COUNT; + parts { + part { + name: "bg"; + type: "RECT"; + description { + state: "default" 0.0; + color_class: "transparent_bg"; + } + } + part { + name: PART_TEXT_COUNT; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + text { + align: 0.5 0.0; + style: "count_style"; + } + rel1 { relative: 0.0 ((OFFSET_PREDICTIVE_Y + 1) / PREDICTIVE_H); } + rel2 { relative: 1.0 ((OFFSET_PREDICTIVE_Y + PREDICTIVE_PARTS_H) / PREDICTIVE_H); } + } + } + part { + name: PART_SWALLOW_ARROW; + type: IMAGE; + description { + state: "default" 0.0; + aspect: 1.0 1.0; + aspect_preference: SOURCE; + rel1 { relative: ((SPACER_PREDICTIVE_X + 1) / PREDICTIVE_RESULTS_BG_W) ((OFFSET_PREDICTIVE_Y + PREDICTIVE_PARTS_H + SPACER_PREDICTIVE_Y + 1) / PREDICTIVE_H); } + rel2 { relative: ((SPACER_PREDICTIVE_X + PREDICTIVE_PARTS_W) / PREDICTIVE_RESULTS_BG_W) ((OFFSET_PREDICTIVE_Y + 2 * PREDICTIVE_PARTS_H + SPACER_PREDICTIVE_Y) / PREDICTIVE_H); } + image.normal: PREDICTIVE_ARROW".png"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + color_class: "predictive_icon"; + } + } + } + programs { + program { + name: "pressed"; + signal: "mouse,down,*"; + source: "*"; + action: STATE_SET "pressed" 0.0; + target: PART_SWALLOW_ARROW; + } + program { + name: "unpressed"; + signal: "mouse,up,*"; + source: "*"; + action: STATE_SET "default" 0.0; + target: PART_SWALLOW_ARROW; + } + } + } +} diff --git a/lib-phone/ph-dialer/res/images/contacts_caller_id_default_02.png b/lib-phone/ph-dialer/res/images/contacts_caller_id_default_02.png Binary files differnew file mode 100644 index 0000000..9715b8b --- /dev/null +++ b/lib-phone/ph-dialer/res/images/contacts_caller_id_default_02.png diff --git a/lib-phone/ph-dialer/res/images/contacts_caller_id_default_bg_02.png b/lib-phone/ph-dialer/res/images/contacts_caller_id_default_bg_02.png Binary files differnew file mode 100644 index 0000000..6c51cac --- /dev/null +++ b/lib-phone/ph-dialer/res/images/contacts_caller_id_default_bg_02.png diff --git a/lib-phone/ph-dialer/res/images/contacts_caller_id_default_masking_02.png b/lib-phone/ph-dialer/res/images/contacts_caller_id_default_masking_02.png Binary files differnew file mode 100644 index 0000000..37787dd --- /dev/null +++ b/lib-phone/ph-dialer/res/images/contacts_caller_id_default_masking_02.png diff --git a/lib-phone/ph-dialer/res/images/default_contact.png b/lib-phone/ph-dialer/res/images/default_contact.png Binary files differnew file mode 100755 index 0000000..c63d7f0 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/default_contact.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_01.png b/lib-phone/ph-dialer/res/images/keypad_english_01.png Binary files differnew file mode 100644 index 0000000..309dd86 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_01.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_02.png b/lib-phone/ph-dialer/res/images/keypad_english_02.png Binary files differnew file mode 100644 index 0000000..2fa7a0b --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_02.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_03.png b/lib-phone/ph-dialer/res/images/keypad_english_03.png Binary files differnew file mode 100644 index 0000000..98f7ad1 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_03.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_04.png b/lib-phone/ph-dialer/res/images/keypad_english_04.png Binary files differnew file mode 100644 index 0000000..6b6a172 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_04.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_05.png b/lib-phone/ph-dialer/res/images/keypad_english_05.png Binary files differnew file mode 100644 index 0000000..288854f --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_05.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_06.png b/lib-phone/ph-dialer/res/images/keypad_english_06.png Binary files differnew file mode 100644 index 0000000..f346c46 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_06.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_07.png b/lib-phone/ph-dialer/res/images/keypad_english_07.png Binary files differnew file mode 100644 index 0000000..e70e9a8 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_07.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_08.png b/lib-phone/ph-dialer/res/images/keypad_english_08.png Binary files differnew file mode 100644 index 0000000..f4de8af --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_08.png diff --git a/lib-phone/ph-dialer/res/images/keypad_english_10.png b/lib-phone/ph-dialer/res/images/keypad_english_10.png Binary files differnew file mode 100644 index 0000000..2072f56 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_english_10.png diff --git a/lib-phone/ph-dialer/res/images/keypad_ic_back.png b/lib-phone/ph-dialer/res/images/keypad_ic_back.png Binary files differnew file mode 100644 index 0000000..2f08d97 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_ic_back.png diff --git a/lib-phone/ph-dialer/res/images/keypad_ic_call.png b/lib-phone/ph-dialer/res/images/keypad_ic_call.png Binary files differnew file mode 100644 index 0000000..526483c --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_ic_call.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_00.png b/lib-phone/ph-dialer/res/images/keypad_number_00.png Binary files differnew file mode 100644 index 0000000..255c897 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_00.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_01.png b/lib-phone/ph-dialer/res/images/keypad_number_01.png Binary files differnew file mode 100644 index 0000000..409bfb8 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_01.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_02.png b/lib-phone/ph-dialer/res/images/keypad_number_02.png Binary files differnew file mode 100644 index 0000000..b12b92f --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_02.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_03.png b/lib-phone/ph-dialer/res/images/keypad_number_03.png Binary files differnew file mode 100644 index 0000000..058876c --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_03.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_04.png b/lib-phone/ph-dialer/res/images/keypad_number_04.png Binary files differnew file mode 100644 index 0000000..3906f18 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_04.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_05.png b/lib-phone/ph-dialer/res/images/keypad_number_05.png Binary files differnew file mode 100644 index 0000000..a104591 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_05.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_06.png b/lib-phone/ph-dialer/res/images/keypad_number_06.png Binary files differnew file mode 100644 index 0000000..4c0893b --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_06.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_07.png b/lib-phone/ph-dialer/res/images/keypad_number_07.png Binary files differnew file mode 100644 index 0000000..e9eb6a0 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_07.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_08.png b/lib-phone/ph-dialer/res/images/keypad_number_08.png Binary files differnew file mode 100644 index 0000000..f6bd01b --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_08.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_09.png b/lib-phone/ph-dialer/res/images/keypad_number_09.png Binary files differnew file mode 100644 index 0000000..ede6db2 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_09.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_asterisk.png b/lib-phone/ph-dialer/res/images/keypad_number_asterisk.png Binary files differnew file mode 100644 index 0000000..923ea88 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_asterisk.png diff --git a/lib-phone/ph-dialer/res/images/keypad_number_sharp.png b/lib-phone/ph-dialer/res/images/keypad_number_sharp.png Binary files differnew file mode 100644 index 0000000..e0118d4 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_number_sharp.png diff --git a/lib-phone/ph-dialer/res/images/keypad_predictive_arrow.png b/lib-phone/ph-dialer/res/images/keypad_predictive_arrow.png Binary files differnew file mode 100644 index 0000000..7617f4e --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_predictive_arrow.png diff --git a/lib-phone/ph-dialer/res/images/keypad_speed_dial_add.png b/lib-phone/ph-dialer/res/images/keypad_speed_dial_add.png Binary files differnew file mode 100644 index 0000000..39c6a86 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_speed_dial_add.png diff --git a/lib-phone/ph-dialer/res/images/keypad_speed_dial_ic.png b/lib-phone/ph-dialer/res/images/keypad_speed_dial_ic.png Binary files differnew file mode 100644 index 0000000..7297b95 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_speed_dial_ic.png diff --git a/lib-phone/ph-dialer/res/images/keypad_speed_dial_ic_bg.#.png b/lib-phone/ph-dialer/res/images/keypad_speed_dial_ic_bg.#.png Binary files differnew file mode 100644 index 0000000..584f366 --- /dev/null +++ b/lib-phone/ph-dialer/res/images/keypad_speed_dial_ic_bg.#.png diff --git a/lib-phone/ph-dialer/res/images/predictive_results_mask.png b/lib-phone/ph-dialer/res/images/predictive_results_mask.png Binary files differnew file mode 100644 index 0000000..b247e5d --- /dev/null +++ b/lib-phone/ph-dialer/res/images/predictive_results_mask.png |