summaryrefslogtreecommitdiff
path: root/lib/edc/dialer.edc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/edc/dialer.edc')
-rwxr-xr-xlib/edc/dialer.edc1744
1 files changed, 1744 insertions, 0 deletions
diff --git a/lib/edc/dialer.edc b/lib/edc/dialer.edc
new file mode 100755
index 0000000..a6ed9fa
--- /dev/null
+++ b/lib/edc/dialer.edc
@@ -0,0 +1,1744 @@
+/*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://floralicense.org/license/
+*
+* 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.
+*/
+
+#define MAIN_H (1280)
+#define MAIN_W (720)
+
+#define INDICATOR_H (50)
+#define TABBAR_H (121)
+#define MAIN_H_PURE (MAIN_H-INDICATOR_H-TABBAR_H)
+
+#define KEYPAD_H (785)
+#define KEYPAD_START (MAIN_H_PURE-KEYPAD_H)
+
+#define TEXT_AREA_H (KEYPAD_START)
+#define TEXT_AREA_W (630)
+#define TEXT_ENTRY_H (156)
+
+#define PSEARCH_ITEM_H (140)
+
+#define BUTTON_W (218)
+#define BUTTON_W_PAD (19)
+#define BUTTON_H (130)
+#define BUTTON_H_PRESSED (150)
+#define BUTTON_H_PAD (24)
+#define BTN_1_COL_X (10)
+#define BTN_2_COL_X (BTN_1_COL_X+BUTTON_W+BUTTON_W_PAD)
+#define BTN_3_COL_X (BTN_1_COL_X+(BUTTON_W*2)+(BUTTON_W_PAD*2))
+#define BTN_1_ROW_Y (43)
+#define BTN_2_ROW_Y (BTN_1_ROW_Y+BUTTON_H+BUTTON_H_PAD)
+#define BTN_3_ROW_Y (BTN_2_ROW_Y+BUTTON_H+BUTTON_H_PAD)
+#define BTN_4_ROW_Y (BTN_3_ROW_Y+BUTTON_H+BUTTON_H_PAD)
+#define BTN_5_ROW_Y (BTN_4_ROW_Y+BUTTON_H+23)
+#define KEYPAD_TOP_ICON_W (218)
+#define KEYPAD_TOP_ICON_H (90)
+#define KEYPAD_BTM_ICON_W (50)
+#define KEYPAD_BTM_ICON_H (40)
+#define SOFTKEY_ICON_W (64)
+#define SOFTKEY_ICON_H (64)
+#define SOFTKEY_BTN_H (104)
+#define SOFTKEY_BTN_PAD (24)
+#define SOFTKEY_BTN1_X (36)
+#define SOFTKEY_BTN1_W (180)
+#define SOFTKEY_BTN_W (160)
+#define SOFTKEY_BTN_OFFSET (10)
+#define SOFTKEY_BTN2_X (SOFTKEY_BTN1_X+SOFTKEY_BTN1_W+SOFTKEY_BTN_PAD+KEYPAD_BTM_ICON_H)
+#define SOFTKEY_BTN2_W (240)
+#define SOFTKEY_BTN3_X (SOFTKEY_BTN1_X+SOFTKEY_BTN1_W+SOFTKEY_BTN_PAD+SOFTKEY_BTN2_W+SOFTKEY_BTN_PAD)
+#define SOFTKEY_BTN3_W (SOFTKEY_BTN1_W)
+
+#define SUGGESTION_PART_NORMAL_BG_COLOR 249 249 249 255
+#define SUGGESTION_PART_PRESSED_BG_COLOR 42 137 194 255
+#define SUGGESTION_PART_PRIMARY_COLOR 0 0 64 255
+#define SUGGESTION_PART_SECONDARY_COLOR 96 96 96 255
+
+#define IMAGE_PATH "../images/dialer_images/"
+#define IMAGES "../images/phoneug_images/"
+#define KEYPAD_ANI_TIME 0.03
+
+#define _DBG_OPA (30)
+
+images {
+//NUMBER KEY BUTTON
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_00.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_01.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_02.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_03.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_04.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_05.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_06.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_07.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_08.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_09.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_asterisk.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_auto_answer.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_mute.png" COMP;
+ image: IMAGE_PATH"keypad/C01-3_keypad_number_sharp.png" COMP;
+ image: IMAGE_PATH"C01-3_keypad_bg.png" COMP;
+ image: IMAGE_PATH"C01-3_keypad_press.png" COMP;
+ image: IMAGE_PATH"C01-3_keypad_bg_reduction.png" COMP;
+
+//SOFT KEY BUTTON
+ image: IMAGE_PATH"C01-3_button_01.png" COMP;
+ image: IMAGE_PATH"C01-3_button_01_dim.png" COMP;
+ image: IMAGE_PATH"C01-3_button_02.png" COMP;
+ image: IMAGE_PATH"C01-3_button_02_dim.png" COMP;
+ image: IMAGE_PATH"C01-3_dialer_button_01_press.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_call.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_call_dim.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_call_press.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_delete.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_expand_01.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_expand_02.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_message.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_message_dim.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_message_press.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_video_call.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_video_call_dim.png" COMP;
+ image: IMAGE_PATH"C01-3_icon_video_call_press.png" COMP;
+
+//SEARCH BAR
+ image: IMAGE_PATH"C01-3_search_bg_01.png" COMP;
+ image: IMAGE_PATH"C01-3_search_bg_02.png" COMP;
+ image: IMAGE_PATH"C01-3_search_field.png" COMP;
+ image: IMAGE_PATH"C01-3_search_icon.png" COMP;
+
+// image: IMAGE_PATH"C01-3_thumbnail_bg.png" COMP; //CONTACT SEARCH LIST
+// image: IMAGE_PATH"C01-3_title_divider.png" COMP; //TABBAR DIVIDER
+
+//SUGGESTION BOX
+ image: IMAGE_PATH"C01-3_icon_expand_01.png" COMP;
+ image: IMAGES"caller_ID_default_70x70_man.png" COMP;
+ image: IMAGE_PATH"C01-3_title_divider.png" COMP;
+}
+
+color_classes {
+ color_class {
+ name: "color/textblock/bg";
+ color: 177 164 150 255;
+ }
+}
+
+collections {
+ #include "dialer_btn.edc"
+ /*****************************************************************************
+ * dialer main edc group
+ *****************************************************************************/
+ group {
+ name: "dialer/main";
+ styles {
+ style
+ {
+ name: "chapter_text_style";
+ base: "style=Regular font="Tizen" linesize=40 font_size=32 color=#81796D valign=top wrap=word";
+ tag: "mark" "+ font_weight=Bold color=#0000ff";
+ }
+ }
+
+ parts {
+ /*****************************************************************************
+ * Main background
+ *****************************************************************************/
+ part {
+ name: "background";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ color_class: "color/textblock/bg"; //right below input_field to the end
+ }
+ }
+
+ /*****************************************************************************
+ * Entry area
+ *****************************************************************************/
+ part {
+ name: "entry/bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "background";}
+ rel2 { relative: 1.0 KEYPAD_START/MAIN_H_PURE; to: "background";}
+ }
+ }
+ part {
+ name: "entry/bg/image";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "entry/bg";}
+ rel2 { relative: 1.0 1.0; to: "entry/bg";}
+ image.normal: IMAGE_PATH"C01-3_search_bg_01.png";
+ }
+ }
+
+ /*****************************************************************************
+ * Number Keypad bg
+ *****************************************************************************/
+ part {
+ name: "keypad/bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 KEYPAD_START/MAIN_H_PURE; to: "background";}
+ rel2 { relative: 1.0 1.0; to: "background";}
+ }
+ }
+ part {
+ name: "keypad/bg/image";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "keypad/bg";}
+ rel2 { relative: 1.0 1.0; to: "keypad/bg";}
+ image.normal: IMAGE_PATH"C01-3_keypad_bg.png";
+ }
+ }
+ //Number Keypad swallow
+ part {
+ name: "keypad/swallow";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "keypad/bg"; }
+ rel2 { relative: 1.0 1.0; to: "keypad/bg"; }
+ }
+ }
+
+
+ /*****************************************************************************
+ * Softkey button
+ *****************************************************************************/
+/***************/
+/**** call btn ****/
+/***************/
+ part {
+ name: "normal/call";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: (SOFTKEY_BTN2_X-SOFTKEY_BTN_OFFSET)/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";}
+ rel2 { relative: (SOFTKEY_BTN2_X+SOFTKEY_BTN_W)/MAIN_W (BTN_5_ROW_Y+SOFTKEY_BTN_H)/KEYPAD_H; to:"keypad/bg";}
+ image {
+ normal: IMAGE_PATH"C01-3_button_01.png";
+ border: 52 52 52 52;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_dialer_button_01_press.png";
+ }
+ description {
+ state: "expand_R" 0.0;
+ rel1 { relative: (SOFTKEY_BTN2_X-SOFTKEY_BTN_OFFSET)/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";}
+ rel2 { relative: (SOFTKEY_BTN2_X+SOFTKEY_BTN_W)/MAIN_W (BTN_5_ROW_Y+SOFTKEY_BTN_H)/KEYPAD_H; to:"keypad/bg";}
+ image {
+ normal: IMAGE_PATH"C01-3_button_01.png";
+ border: 52 52 52 52;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "expand_R_pressed" 0.0;
+ inherit: "expand_R" 0.0;
+ image.normal: IMAGE_PATH"C01-3_dialer_button_01_press.png";
+ }
+ description {
+ state: "expand_L" 0.0;
+ rel1 { relative: (SOFTKEY_BTN2_X-SOFTKEY_BTN_OFFSET)/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";}
+ rel2 { relative: (SOFTKEY_BTN2_X+SOFTKEY_BTN_W)/MAIN_W (BTN_5_ROW_Y+SOFTKEY_BTN_H)/KEYPAD_H; to:"keypad/bg";}
+ image {
+ normal: IMAGE_PATH"C01-3_button_01.png";
+ border: 52 52 52 52;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "expand_L_pressed" 0.0;
+ inherit: "expand_L" 0.0;
+ image.normal: IMAGE_PATH"C01-3_dialer_button_01_press.png";
+ }
+ }
+ part {
+ name: "normal/call_icon";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ min: SOFTKEY_ICON_W SOFTKEY_ICON_H;
+ fixed: 1 1;
+ rel1 { relative: 0.5 0.5; to: "normal/call";}
+ rel2 { relative: 0.5 0.5; to: "normal/call";}
+ align: 0.5 0.5;
+ image.normal: IMAGE_PATH"C01-3_icon_call.png";
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_icon_call_press.png";
+ }
+ }
+/********************/
+/**** MESSAGE btn ****/
+/********************/
+ part {
+ name: "normal/message";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: (INDICATOR_H)/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";}
+ rel2 { relative: (SOFTKEY_BTN2_W-SOFTKEY_BTN_OFFSET-SOFTKEY_BTN_OFFSET)/MAIN_W (BTN_5_ROW_Y+SOFTKEY_BTN_H)/KEYPAD_H; to:"keypad/bg";}
+ image {
+ normal: IMAGE_PATH"C01-3_button_02.png";
+ border: 52 52 52 52;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_dialer_button_01_press.png";
+ }
+ description {
+ state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "normal/message_icon";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ min: SOFTKEY_ICON_W SOFTKEY_ICON_H;
+ fixed: 1 1;
+ rel1 { relative: 0.5 0.5; to: "normal/message";}
+ rel2 { relative: 0.5 0.5; to: "normal/message";}
+ align: 0.5 0.5;
+ image.normal: IMAGE_PATH"C01-3_icon_message.png";
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_icon_message_press.png";
+ }
+ description {
+ state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+/********************/
+/**** EMERGENCY btn ****/
+/********************/
+ part {
+ name: "normal/emergency";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: (INDICATOR_H)/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";}
+ rel2 { relative: (SOFTKEY_BTN2_W-SOFTKEY_BTN_OFFSET-SOFTKEY_BTN_OFFSET)/MAIN_W (BTN_5_ROW_Y+SOFTKEY_BTN_H)/KEYPAD_H; to:"keypad/bg";}
+ image {
+ normal: IMAGE_PATH"C01-3_button_02.png";
+ border: 52 52 52 52;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_dialer_button_01_press.png";
+ }
+ description {
+ state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "normal/emergency_icon";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ min: SOFTKEY_ICON_W SOFTKEY_ICON_H;
+ fixed: 1 1;
+ rel1 { relative: 0.5 0.5; to: "normal/emergency";}
+ rel2 { relative: 0.5 0.5; to: "normal/emergency";}
+ align: 0.5 0.5;
+ image.normal: IMAGE_PATH"C01-3_icon_message.png";
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_icon_message_press.png";
+ }
+ description {
+ state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+/*******************/
+/**** BackSpace btn ****/
+/*******************/
+ part {
+ name: "normal/backspace";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: SOFTKEY_BTN3_X/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";}
+ rel2 { relative: (SOFTKEY_BTN3_X+SOFTKEY_BTN_W)/MAIN_W (BTN_5_ROW_Y+SOFTKEY_BTN_H)/KEYPAD_H; to:"keypad/bg";}
+ image {
+ normal: IMAGE_PATH"C01-3_button_02.png";
+ border: 52 52 52 52;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_dialer_button_01_press.png";
+ }
+ description {
+ state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "normal/backspace_icon";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ min: SOFTKEY_ICON_W 40;
+ fixed: 1 1;
+ rel1 { relative: 0.5 0.5; to: "normal/backspace";}
+ rel2 { relative: 0.5 0.5; to: "normal/backspace";}
+ align: 0.5 0.5;
+ image.normal: IMAGE_PATH"C01-3_icon_delete.png";
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: IMAGE_PATH"C01-3_icon_delete.png";
+ }
+ description {
+ state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+/*****************************************************************************
+* Number Keypad button
+*****************************************************************************/
+#define PART_KEYPAD_TWO_ICON(_TXT, _X_POS, _Y_POS, _TOP_ICON, _BOTTOM_ICON) \
+ part { \
+ name: _TXT; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: _X_POS/MAIN_W _Y_POS/KEYPAD_H; to:"keypad/bg";} \
+ rel2 { relative: (_X_POS+BUTTON_W)/MAIN_W (_Y_POS+BUTTON_H)/KEYPAD_H; to:"keypad/bg"; } \
+ fixed: 1 1; \
+ align: 0.5 0.5; \
+ color: 255 0 0 0; \
+ visible: 1; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ } \
+ part { \
+ name: _TXT"_TOP"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ min: 218 90; \
+ fixed: 1 1; \
+ rel1 { relative: 0.0 0.0; to: _TXT;} \
+ rel2 { relative: 1.0 90/BUTTON_H; to: _TXT;} \
+ align: 0.5 0.5; \
+ image.normal: _TOP_ICON; \
+ } \
+ description { \
+ state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: _TOP_ICON; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { \
+ name: _TXT"_BOTTOM"; \
+ type: IMAGE; \
+ scale: 0; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ min: 50 40; \
+ fixed: 1 1; \
+ rel1 { relative: 0.5 90/BUTTON_H; to: _TXT;} \
+ rel2 { relative: 0.5 1.0; to: _TXT;} \
+ align: 0.5 0.5; \
+ image.normal: _BOTTOM_ICON; \
+ } \
+ description { \
+ state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: _BOTTOM_ICON; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { \
+ name: _TXT"_BG"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ min: BUTTON_W BUTTON_H_PRESSED; \
+ fixed: 1 1; \
+ align: 0.5 0.5; \
+ rel1 { relative: 0.5 0.5; to:_TXT;} \
+ rel2 { relative: 0.5 0.5; to:_TXT;} \
+ image { \
+ normal: IMAGE_PATH"C01-3_keypad_press.png"; \
+ } \
+ visible: 0; \
+ } \
+ description { \
+ state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ visible: 0; \
+ } \
+ }
+
+#define PART_KEYPAD_ONE_ICON_ONE_LABEL(_TXT, _X_POS, _Y_POS, _TOP_ICON, _BOTTOM_TEXT) \
+ part { \
+ name: _TXT; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ fixed: 1 1; \
+ rel1 { relative: _X_POS/MAIN_W _Y_POS/KEYPAD_H; to:"keypad/bg";} \
+ rel2 { relative: (_X_POS+BUTTON_W)/MAIN_W (_Y_POS+BUTTON_H)/KEYPAD_H; to:"keypad/bg"; } \
+ align: 0.5 0.5; \
+ color: 0 255 0 0; \
+ visible: 1; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ } \
+ part { \
+ name: _TXT"_TOP"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ min: 218 90; \
+ fixed: 1 1; \
+ rel1 { relative: 0.0 0.0; to: _TXT;} \
+ rel2 { relative: 1.0 90/BUTTON_H; to: _TXT;} \
+ align: 0.5 0.5; \
+ image.normal: _TOP_ICON; \
+ } \
+ description { \
+ state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: _TOP_ICON; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { \
+ name: _TXT"_BOTTOM"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ fixed: 1 1; \
+ rel1 { relative: 0.0 90/BUTTON_H; to: _TXT;} \
+ rel2 { relative: 1.0 1.0; to: _TXT;} \
+ align: 0.5 0.5; \
+ color: 145 135 114 255; \
+ text { \
+ text: _BOTTOM_TEXT; \
+ font: "Tizen:style=Regular"; \
+ text_class: "tizen"; \
+ size: 28; \
+ min: 1 1; \
+ fit: 1 1; \
+ } \
+ visible: 1; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { \
+ name: _TXT"_BG"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ min: BUTTON_W BUTTON_H_PRESSED; \
+ fixed: 1 1; \
+ align: 0.5 0.5; \
+ rel1 { relative: 0.5 0.5; to:_TXT;} \
+ rel2 { relative: 0.5 0.5; to:_TXT;} \
+ image { \
+ normal: IMAGE_PATH"C01-3_keypad_press.png"; \
+ } \
+ visible: 0; \
+ } \
+ description { \
+ state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ visible: 0; \
+ } \
+ }
+
+ PART_KEYPAD_TWO_ICON("1",BTN_1_COL_X, BTN_1_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_01.png", IMAGE_PATH"keypad/C01-3_keypad_number_auto_answer.png")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("2",BTN_2_COL_X, BTN_1_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_02.png", "ABC")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("3",BTN_3_COL_X, BTN_1_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_03.png", "DEF")
+
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("4",BTN_1_COL_X, BTN_2_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_04.png", "GHI")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("5",BTN_2_COL_X, BTN_2_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_05.png", "JKL")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("6",BTN_3_COL_X, BTN_2_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_06.png", "MNO")
+
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("7",BTN_1_COL_X, BTN_3_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_07.png", "PQRS")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("8",BTN_2_COL_X, BTN_3_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_08.png", "TUV")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("9",BTN_3_COL_X, BTN_3_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_09.png", "WXYZ")
+
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("star", BTN_1_COL_X, BTN_4_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_asterisk.png", "P")
+ PART_KEYPAD_ONE_ICON_ONE_LABEL("0", BTN_2_COL_X, BTN_4_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_00.png", "+")
+ PART_KEYPAD_TWO_ICON("sharp",BTN_3_COL_X, BTN_4_ROW_Y, IMAGE_PATH"keypad/C01-3_keypad_number_sharp.png", IMAGE_PATH"keypad/C01-3_keypad_number_mute.png")
+
+
+/*****************************************************************************
+* "Contact Search" input field
+*****************************************************************************/
+ part {
+ name: "search/bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "entry/bg";}
+ rel2 { relative: 1.0 TEXT_ENTRY_H/TEXT_AREA_H; to: "entry/bg";}
+ align: 0.5 1.0;
+ color: 255 0 0 0;
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "search/inputarea/image";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 66;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.5; offset: 26+74+10 0; to: "search/bg"; }
+ rel2 { relative: 1.0 0.5; offset: -26 0; to: "search/bg"; }
+ image{
+ border: 8 8 33 33;
+ border_scale: 1;
+ normal: IMAGE_PATH"C01-3_search_field.png";
+ }
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+
+/* part {
+ name: "search/inputarea";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "search/inputarea/image"; }
+ rel2 { relative: 1.0 1.0; to: "search/inputarea/image"; }
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+*/
+ part {
+ name: "search/icon";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 74 74;
+ fixed: 1 1;
+ rel1 { relative: 26/MAIN_W 0.5; to: "search/bg";}
+ rel2 { relative: (26+74)/MAIN_W 0.5; to: "search/bg";}
+ image.normal: IMAGE_PATH"C01-3_search_icon.png";
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "search/defaulttext";
+ type: TEXT;
+ scale: 1;
+ effect: SHADOW;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; offset: 16 0; to: "search/inputarea/image";}
+ rel2 { relative: 1.0 1.0; offset: -16 0; to: "search/inputarea/image";}
+ fixed: 1 1;
+ align: 0.0 0.5;
+ color: 156 159 162 153;
+ text {
+ text: "Contact Search";
+ font: "Tizen:style=Regular";
+ text_class: "tizen";
+ size: 36;
+ min: 1 1;
+ fit: 1 1;
+ align: 0.0 0.5;
+ }
+ visible: 1;
+ }
+ description {
+ state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+
+/*****************************************************************************
+* Entry area
+*****************************************************************************/
+ part {
+ name: "textblock/bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "entry/bg";}
+ rel2 { relative: 1.0 TEXT_ENTRY_H/TEXT_AREA_H; to: "entry/bg";}
+ align: 0.5 1.0;
+ color: 0 255 0 0;
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "textblock/bg/image";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "textblock/bg";}
+ rel2 { relative: 1.0 1.0; to: "textblock/bg";}
+ image.normal: IMAGE_PATH"C01-3_search_bg_02.png";
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "textblock/textarea";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.5; offset: 26 0; to: "textblock/bg"; }
+ rel2 { relative: 1.0 0.5; offset: -26 0; to: "textblock/bg"; }
+ color: 0 0 255 100;
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+
+/*****************************************************************************
+* Suggestion box
+*****************************************************************************/
+ part {
+ name: "suggestion";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.05 TEXT_ENTRY_H/TEXT_AREA_H; to: "entry/bg";}
+ rel2 { relative: 0.95 0.9; to: "entry/bg";}
+ color: SUGGESTION_PART_NORMAL_BG_COLOR;
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "show" 0.0;
+ color: SUGGESTION_PART_PRESSED_BG_COLOR;
+ }
+ }
+ part {
+ name: "suggestionListTopItem";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.05 TEXT_ENTRY_H/TEXT_AREA_H; to: "entry/bg";}
+ rel2 { relative: 0.95 0.9; to: "entry/bg";}
+ color: SUGGESTION_PART_NORMAL_BG_COLOR;
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "show" 0.0;
+ color: SUGGESTION_PART_PRESSED_BG_COLOR;
+ }
+ }
+ part {
+ name: "icon";
+ type: SWALLOW;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 12 12;
+ to: "suggestion";
+ }
+ rel2 {
+ relative: 0.2 1.0;
+ offset: -12 -12;
+ to: "suggestion";
+ }
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "textName";
+ type: TEXT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: SUGGESTION_PART_PRIMARY_COLOR;
+ rel1 {
+ relative: 1.0 0.1;
+ offset: 18 2;
+ to_x: "icon";
+ to_y: "suggestion";
+ }
+ rel2 {
+ relative: 1.0 0.5;
+ offset: -2 -2;
+ to: "suggestion";
+ }
+ text {
+ font: "Tizen:style=Bold";
+ text_class: "tizen";
+ size: 25;
+ align: 0.0 0.5;
+ }
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "textNumber";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: SUGGESTION_PART_SECONDARY_COLOR;
+ align: 0 0;
+ rel1 {
+ relative: 1.0 0.5;
+ offset: 18 0;
+ to_x: "icon";
+ to_y: "suggestion";
+ }
+ rel2 {
+ relative: 1.0 0.9;
+ offset: -2 -2;
+ to: "suggestion";
+ }
+ text {
+ style: "chapter_text_style";
+ font: "Tizen:style=Bold";
+ text_class: "tizen";
+ size: 21;
+ align: 0.0 0.5;
+ }
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "delimeter";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.8 0.0;
+ offset: 0 0;
+ to: "suggestion";
+ }
+ rel2 {
+ relative: 0.8 1.0;
+ offset: 2 -1;
+ to: "suggestion";
+ }
+ image.normal: IMAGE_PATH"C01-3_title_divider.png";
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "suggestionListButton";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {
+ relative: 0.8 0.0;
+ offset: 2 0;
+ to: "suggestion";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "suggestion";
+ }
+ color: SUGGESTION_PART_NORMAL_BG_COLOR;
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "show" 0.0;
+ color: SUGGESTION_PART_PRESSED_BG_COLOR;
+ }
+ }
+ part {
+ name: "textNumberOfMatches";
+ type: TEXT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: SUGGESTION_PART_PRIMARY_COLOR;
+ rel1 {
+ relative: 0.8 0.1;
+ to: "suggestion";
+ }
+ rel2 {
+ relative: 1.0 0.6;
+ to: "suggestion";
+ }
+ text {
+ font: "Tizen:style=Bold";
+ text_class: "tizen";
+ size: 28;
+ min: 1 1;
+ fit: 1 1;
+ align: 0.5 1.0;
+ }
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "arrow";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.88 0.6;
+ offset: 0 5;
+ to: "suggestion";
+ }
+ rel2 {
+ relative: 0.92 0.75;
+ to: "suggestion";
+ }
+ image.normal: IMAGE_PATH"C01-3_icon_expand_01.png";
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "textAddToContacts";
+ type: TEXT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: SUGGESTION_PART_SECONDARY_COLOR;
+ align: 0 0;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "suggestion";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "suggestion";
+ }
+ text {
+ font: "Tizen:style=Bold";
+ text_class: "tizen";
+ size: 28;
+ align: 0.5 0.5;
+ }
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+
+ /*****************************************************************************
+ * Programs
+ *****************************************************************************/
+ programs {
+ program {
+ name: "click_exit";
+ source: "background";
+ signal: "mouse,clicked,1";
+ action: SIGNAL_EMIT "EXIT" "EDJ";
+ }
+ program {
+ name: "prog/viewobject/entry/hide";
+ source: "viewobject/entry";
+ signal: "viewobject/entry/hide";
+ script {
+ set_state (PART:"textblock/bg", "default", 0.0);
+ set_state (PART:"textblock/bg/image", "default", 0.0);
+ set_state (PART:"textblock/textarea", "default", 0.0);
+ set_state (PART:"search/bg", "default", 0.0);
+ set_state (PART:"search/inputarea/image", "default", 0.0);
+// set_state (PART:"search/inputarea", "default", 0.0);
+ set_state (PART:"search/icon", "default", 0.0);
+ set_state (PART:"search/defaulttext", "default", 0.0);
+ }
+ }
+
+ program {
+ name: "prog/viewobject/entry/show";
+ source: "viewobject/entry";
+ signal: "viewobject/entry/show";
+ script {
+ set_state (PART:"search/bg", "hide", 0.0);
+ set_state (PART:"search/inputarea/image", "hide", 0.0);
+// set_state (PART:"search/inputarea", "hide", 0.0);
+ set_state (PART:"search/icon", "hide", 0.0);
+ set_state (PART:"search/defaulttext", "hide", 0.0);
+ set_state (PART:"textblock/bg", "show", 0.0);
+ set_state (PART:"textblock/bg/image", "show", 0.0);
+ set_state (PART:"textblock/textarea", "show", 0.0);
+ }
+ }
+
+ // suggestion box ////////////////////////////////////////////////
+ program {
+ name: "prog/suggestion/hide";
+ source: "suggestion";
+ signal: "suggestion/hide";
+ script {
+ set_state (PART:"suggestion", "default", 0.0);
+ set_state (PART:"suggestionListTopItem", "default", 0.0);
+ set_state (PART:"icon", "default", 0.0);
+ set_state (PART:"textName", "default", 0.0);
+ set_state (PART:"textNumber", "default", 0.0);
+ set_state (PART:"delimeter", "default", 0.0);
+ set_state (PART:"suggestionListButton", "default", 0.0);
+ set_state (PART:"textNumberOfMatches", "default", 0.0);
+ set_state (PART:"arrow", "default", 0.0);
+ set_state (PART:"textAddToContacts", "default", 0.0);
+ }
+ }
+
+ program {
+ name: "prog/suggestion/showSingleItemView";
+ source: "suggestion";
+ signal: "suggestion/showSingleItemView";
+ script {
+ set_state (PART:"suggestion", "default", 0.0);
+ set_state (PART:"suggestionListTopItem", "show", 0.0);
+ set_state (PART:"icon", "show", 0.0);
+ set_state (PART:"textName", "show", 0.0);
+ set_state (PART:"textNumber", "show", 0.0);
+ set_state (PART:"delimeter", "default", 0.0);
+ set_state (PART:"suggestionListButton", "default", 0.0);
+ set_state (PART:"textNumberOfMatches", "default", 0.0);
+ set_state (PART:"arrow", "default", 0.0);
+ set_state (PART:"textAddToContacts", "default", 0.0);
+ }
+ }
+
+ program {
+ name: "prog/suggestion/showMultiItemView";
+ source: "suggestion";
+ signal: "suggestion/showMultiItemView";
+ script {
+ set_state (PART:"suggestion", "default", 0.0);
+ set_state (PART:"suggestionListTopItem", "show", 0.0);
+ set_state (PART:"icon", "show", 0.0);
+ set_state (PART:"textName", "show", 0.0);
+ set_state (PART:"textNumber", "show", 0.0);
+ set_state (PART:"delimeter", "show", 0.0);
+ set_state (PART:"suggestionListButton", "show", 0.0);
+ set_state (PART:"textNumberOfMatches", "show", 0.0);
+ set_state (PART:"arrow", "show", 0.0);
+ set_state (PART:"textAddToContacts", "default", 0.0);
+ }
+ }
+
+ program {
+ name: "prog/suggestion/showAddToContacts";
+ source: "suggestion";
+ signal: "suggestion/showAddToContacts";
+ script {
+ set_state (PART:"suggestion", "show", 0.0);
+ set_state (PART:"suggestionListTopItem", "default", 0.0);
+ set_state (PART:"icon", "default", 0.0);
+ set_state (PART:"textName", "default", 0.0);
+ set_state (PART:"textNumber", "default", 0.0);
+ set_state (PART:"delimeter", "default", 0.0);
+ set_state (PART:"suggestionListButton", "default", 0.0);
+ set_state (PART:"textNumberOfMatches", "default", 0.0);
+ set_state (PART:"arrow", "default", 0.0);
+ set_state (PART:"arrow", "default", 0.0);
+ set_state (PART:"textAddToContacts", "show", 0.0);
+ }
+ }
+
+ program {
+ name: "down_suggestion";
+ signal: "mouse,down,*";
+ source: "suggestion";
+ script {
+ set_state(PART:"suggestion", "pressed", 0.0);
+ emit("softkey_down", "suggestion");
+ }
+ }
+ program {
+ name: "up_suggestion";
+ signal: "mouse,up,1";
+ source: "suggestion";
+ script {
+ set_state(PART:"suggestion", "show", 0.0);
+ emit("softkey_up", "suggestion");
+ }
+ }
+
+ program {
+ name: "clicked_suggestion";
+ signal: "mouse,clicked,1";
+ source: "suggestion";
+ script {
+ emit("softkey_clicked", "suggestion");
+ }
+ }
+
+ program {
+ name: "down_suggestionListTopItem";
+ signal: "mouse,down,*";
+ source: "suggestionListTopItem";
+ script {
+ set_state(PART:"suggestionListTopItem", "pressed", 0.0);
+ emit("softkey_down", "suggestionListTopItem");
+ }
+ }
+ program {
+ name: "up_suggestionListTopItem";
+ signal: "mouse,up,1";
+ source: "suggestionListTopItem";
+ script {
+ set_state(PART:"suggestionListTopItem", "show", 0.0);
+ emit("softkey_up", "suggestionListTopItem");
+ }
+ }
+
+ program {
+ name: "clicked_suggestionListTopItem";
+ signal: "mouse,clicked,1";
+ source: "suggestionListTopItem";
+ script {
+ emit("softkey_clicked", "suggestionListTopItem");
+ }
+ }
+
+ program {
+ name: "down_suggestionListButton";
+ signal: "mouse,down,*";
+ source: "suggestionListButton";
+ script {
+ set_state(PART:"suggestionListButton", "pressed", 0.0);
+ emit("softkey_down", "suggestionListButton");
+ }
+ }
+ program {
+ name: "up_suggestionListButton";
+ signal: "mouse,up,1";
+ source: "suggestionListButton";
+ script {
+ set_state(PART:"suggestionListButton", "show", 0.0);
+ emit("softkey_up", "suggestionListButton");
+ }
+ }
+
+ program {
+ name: "clicked_suggestionListButton";
+ signal: "mouse,clicked,1";
+ source: "suggestionListButton";
+ script {
+ emit("softkey_clicked", "suggestionListButton");
+ }
+ }
+
+ /*****************************************************************************
+ * Program: Keypad button
+ *****************************************************************************/
+#define PROG_KEYPAD(txt) \
+ program { \
+ name: "down_"txt; \
+ signal: "mouse,down,*"; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_BG", "pressed", 0.0); \
+ emit("pad_down", txt); \
+ } \
+ } \
+ program { \
+ name: "ani_"txt; \
+ signal: "ani"; \
+ source: txt; \
+ action: STATE_SET "default" 0.0; \
+ transition: SINUSOIDAL KEYPAD_ANI_TIME; \
+ target: txt; \
+ } \
+ program { \
+ name: "up_"txt; \
+ signal: "mouse,up,1"; \
+ source: txt; \
+ script { \
+ emit("pad_up", txt); \
+ emit("ani", txt); \
+ set_state(PART:txt"_BG", "default", 0.0); \
+ } \
+ } \
+ program { \
+ name: "clicked_"txt; \
+ signal: "mouse,clicked,1"; \
+ source: txt; \
+ script { \
+ emit("pad_clicked", txt); \
+ } \
+ } \
+ program { \
+ name: "hide_"txt; \
+ signal: "hide_"txt; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_TOP", "hide", 0.0); \
+ set_state(PART:txt"_BOTTOM", "hide", 0.0); \
+ set_state(PART:txt, "hide", 0.0); \
+ } \
+ } \
+ program { \
+ name: "show_"txt; \
+ signal: "show_"txt; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_TOP", "default", 0.0); \
+ set_state(PART:txt"_BOTTOM", "default", 0.0); \
+ set_state(PART:txt, "default", 0.0); \
+ } \
+ }
+
+#define PROG_KEYPAD_BOTTOM_EFFECT(txt) \
+ program { \
+ name: "down_"txt; \
+ signal: "mouse,down,*"; \
+ source: txt; \
+ script { \
+ set_state(PART:txt, "pressed", 0.0); \
+ set_state(PART:txt"_BOTTOM", "pressed", 0.0); \
+ emit("pad_down", txt); \
+ } \
+ } \
+ program { \
+ name: "ani_"txt; \
+ signal: "ani"; \
+ source: txt; \
+ action: STATE_SET "default" 0.0; \
+ transition: SINUSOIDAL KEYPAD_ANI_TIME; \
+ target: txt; \
+ } \
+ program { \
+ name: "up_"txt; \
+ signal: "mouse,up,1"; \
+ source: txt; \
+ script { \
+ emit("pad_up", txt); \
+ emit("ani", txt); \
+ set_state(PART:txt"_BOTTOM", "default", 0.0); \
+ } \
+ } \
+ program { \
+ name: "clicked_"txt; \
+ signal: "mouse,clicked,1"; \
+ source: txt; \
+ script { \
+ emit("pad_clicked", txt); \
+ } \
+ } \
+ program { \
+ name: "hide_"txt; \
+ signal: "hide_"txt; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_TOP", "hide", 0.0); \
+ set_state(PART:txt"_BOTTOM", "hide", 0.0); \
+ set_state(PART:txt, "hide", 0.0); \
+ } \
+ } \
+ program { \
+ name: "show_"txt; \
+ signal: "show_"txt; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_TOP", "default", 0.0); \
+ set_state(PART:txt"_BOTTOM", "default", 0.0); \
+ set_state(PART:txt, "default", 0.0); \
+ } \
+ }
+
+#define PROG_KEYPAD_TOP_EFFECT(txt) \
+ program { \
+ name: "down_"txt; \
+ signal: "mouse,down,*"; \
+ source: txt; \
+ script { \
+ set_state(PART:txt, "pressed", 0.0); \
+ set_state(PART:txt"_TOP", "pressed", 0.0); \
+ set_state(PART:txt"_BOTTOM", "pressed", 0.0); \
+ emit("pad_down", txt); \
+ } \
+ } \
+ program { \
+ name: "ani_"txt; \
+ signal: "ani"; \
+ source: txt; \
+ action: STATE_SET "default" 0.0; \
+ transition: SINUSOIDAL KEYPAD_ANI_TIME; \
+ target: txt; \
+ } \
+ program { \
+ name: "up_"txt; \
+ signal: "mouse,up,1"; \
+ source: txt; \
+ script { \
+ emit("pad_up", txt); \
+ emit("ani", txt); \
+ set_state(PART:txt"_TOP", "default", 0.0); \
+ set_state(PART:txt"_BOTTOM", "default", 0.0); \
+ } \
+ } \
+ program { \
+ name: "clicked_"txt; \
+ signal: "mouse,clicked,1"; \
+ source: txt; \
+ script { \
+ emit("pad_clicked", txt); \
+ } \
+ } \
+ program { \
+ name: "hide_"txt; \
+ signal: "hide_"txt; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_TOP", "hide", 0.0); \
+ set_state(PART:txt"_BOTTOM", "hide", 0.0); \
+ set_state(PART:txt, "hide", 0.0); \
+ } \
+ } \
+ program { \
+ name: "show_"txt; \
+ signal: "show_"txt; \
+ source: txt; \
+ script { \
+ set_state(PART:txt"_TOP", "default", 0.0); \
+ set_state(PART:txt"_BOTTOM", "default", 0.0); \
+ set_state(PART:txt, "default", 0.0); \
+ } \
+ }
+
+ PROG_KEYPAD("1")
+ PROG_KEYPAD("2")
+ PROG_KEYPAD("3")
+ PROG_KEYPAD("4")
+ PROG_KEYPAD("5")
+ PROG_KEYPAD("6")
+ PROG_KEYPAD("7")
+ PROG_KEYPAD("8")
+ PROG_KEYPAD("9")
+ PROG_KEYPAD("star")
+ PROG_KEYPAD("0")
+ PROG_KEYPAD("sharp")
+
+ /*****************************************************************************
+ * Program: Softkey button
+ *****************************************************************************/
+ // call //////////////////////////////////////////////////////////////////////////
+ program {
+ name: "down_normal/call";
+ signal: "mouse,down,*";
+ source: "normal/call";
+ script {
+ new st[30];
+ new Float:vl;
+ get_state (PART:"normal/call", st, 30, vl);
+ if (strcmp(st, "default") == 0) {
+ set_state(PART:"normal/call", "pressed", 0.0);
+ emit("softkey_down", "normal/call");
+ }
+ else if (strcmp(st, "expand_R") == 0) {
+ set_state(PART:"normal/call", "expand_R_pressed", 0.0);
+ emit("softkey_down", "normal/call");
+ }
+ else if (strcmp(st, "expand_L") == 0) {
+ set_state(PART:"normal/call", "expand_L_pressed", 0.0);
+ emit("softkey_down", "normal/call");
+ }
+ set_state(PART:"normal/call_icon", "pressed", 0.0);
+ }
+ }
+ program {
+ name: "up_normal/call";
+ signal: "mouse,up,1";
+ source: "normal/call";
+ script {
+ new st[30];
+ new Float:vl;
+ get_state (PART:"normal/call", st, 30, vl);
+ if (strcmp(st, "pressed") == 0) {
+ set_state(PART:"normal/call", "default", 0.0);
+ emit("softkey_up", "normal/call");
+ }
+ else if (strcmp(st, "expand_R_pressed") == 0) {
+ set_state(PART:"normal/call", "expand_R", 0.0);
+ emit("softkey_up", "normal/call");
+ }
+ else if (strcmp(st, "expand_L_pressed") == 0) {
+ set_state(PART:"normal/call", "expand_L", 0.0);
+ emit("softkey_up", "normal/call");
+ }
+ set_state(PART:"normal/call_icon", "default", 0.0);
+ }
+ }
+ program {
+ name: "clicked_normal/call";
+ signal: "mouse,clicked,1";
+ source: "normal/call";
+ script {
+ emit ("viewobject/entry/show", "viewobject/entry");
+ emit("softkey_clicked", "normal/call");
+ }
+ }
+
+ // message //////////////////////////////////////////////////////////////////////////
+ program {
+ name: "down_normal/message";
+ signal: "mouse,down,*";
+ source: "normal/message";
+ script {
+ set_state(PART:"normal/message", "pressed", 0.0);
+ set_state(PART:"normal/message_icon", "pressed", 0.0);
+ emit("softkey_down", "normal/message");
+ }
+ }
+ program {
+ name: "up_normal/message";
+ signal: "mouse,up,1";
+ source: "normal/message";
+ script {
+ set_state(PART:"normal/message", "default", 0.0);
+ set_state(PART:"normal/message_icon", "default", 0.0);
+ emit("softkey_up", "normal/message");
+ }
+ }
+ program {
+ name: "clicked_normal/message";
+ signal: "mouse,clicked,1";
+ source: "normal/message";
+ script {
+ emit("softkey_clicked", "normal/message");
+ }
+ }
+ // emergency //////////////////////////////////////////////////////////////////////////
+ program {
+ name: "down_normal/emergency";
+ signal: "mouse,down,*";
+ source: "normal/emergency";
+ script {
+ set_state(PART:"normal/emergency", "pressed", 0.0);
+ set_state(PART:"normal/emergency_icon", "pressed", 0.0);
+ emit("softkey_down", "normal/emergency");
+ }
+ }
+ program {
+ name: "up_normal/emergency";
+ signal: "mouse,up,1";
+ source: "normal/emergency";
+ script {
+ set_state(PART:"normal/emergency", "default", 0.0);
+ set_state(PART:"normal/emergency_icon", "default", 0.0);
+ emit("softkey_up", "normal/emergency");
+ }
+ }
+ program {
+ name: "clicked_normal/emergency";
+ signal: "mouse,clicked,1";
+ source: "normal/emergency";
+ script {
+ emit("softkey_clicked", "normal/emergency");
+ }
+ }
+
+ // backspace //////////////////////////////////////////////////////////////////////////
+ program {
+ name: "down_normal/backspace";
+ signal: "mouse,down,*";
+ source: "normal/backspace";
+ script {
+ set_state(PART:"normal/backspace", "pressed", 0.0);
+ set_state(PART:"normal/backspace_icon", "pressed", 0.0);
+ emit("softkey_down", "normal/backspace");
+ }
+ }
+ program {
+ name: "up_normal/backspace";
+ signal: "mouse,up,1";
+ source: "normal/backspace";
+ script {
+ set_state(PART:"normal/backspace", "default", 0.0);
+ set_state(PART:"normal/backspace_icon", "default", 0.0);
+ emit("softkey_up", "normal/backspace");
+ }
+ }
+ program {
+ name: "clicked_normal/backspace";
+ signal: "mouse,clicked,1";
+ source: "normal/backspace";
+ script {
+ emit("softkey_clicked", "normal/backspace");
+ }
+ }
+
+
+
+ // PROG: contactsearch input field ////////////////////////////////////////////////////
+ program {
+ name: "clicked_contactsearch";
+ signal: "mouse,clicked,1";
+ source: "search/inputarea/image";
+ script {
+ emit("softkey_clicked", "search/inputarea/image");
+ }
+ }
+
+ /*****************************************************************************
+ * Program: Softkey - normal mode
+ *****************************************************************************/
+ program {
+ name: "prog_softkey_normal";
+ source: "softkey";
+ signal: "softkey/normal";
+ script {
+ set_state (PART:"normal/call", "expand_L", 0.0);
+ set_state (PART:"normal/call_icon", "default", 0.0);
+ set_state (PART:"normal/message", "default", 0.0);
+ set_state (PART:"normal/message_icon", "default", 0.0);
+ set_state (PART:"normal/backspace", "default", 0.0);
+ set_state (PART:"normal/backspace_icon", "default", 0.0);
+ }
+ }
+
+ /*****************************************************************************
+ * Program: Softkey - during call mode
+ *****************************************************************************/
+ program {
+ name: "prog_softkey_dc";
+ source: "softkey";
+ signal: "softkey/dc";
+ script {
+ set_state (PART:"normal/call", "default", 0.0);
+ set_state (PART:"normal/call_icon", "default", 0.0);
+ set_state (PART:"normal/message", "default", 0.0);
+ set_state (PART:"normal/message_icon", "default", 0.0);
+ set_state (PART:"normal/backspace", "default", 0.0);
+ set_state (PART:"normal/backspace_icon", "default", 0.0);
+ }
+ }
+
+ /*****************************************************************************
+ * Program: Softkey - emergency mode
+ *****************************************************************************/
+ program {
+ name: "prog_softkey_emergency";
+ source: "softkey";
+ signal: "softkey/emergency";
+ script {
+ set_state (PART:"normal/emergency", "hide", 0.0);
+ set_state (PART:"normal/emergency_icon", "hide", 0.0);
+ set_state (PART:"normal/call", "expand_R", 0.0);
+ set_state (PART:"normal/call_icon", "default", 0.0);
+ set_state (PART:"normal/message", "hide", 0.0);
+ set_state (PART:"normal/message_icon", "hide", 0.0);
+ }
+ }
+
+ /*****************************************************************************
+ * Program: Dialer default
+ *****************************************************************************/
+ program {
+ name: "prog/main";
+ source: "main";
+ signal: "main/default";
+ script {
+ emit ("viewcontrol/button", "viewcontrol");
+// emit ("viewobject/entry/hide", "viewobject/entry");
+ }
+ }
+ } // programs end
+ } // end of group
+}