diff options
Diffstat (limited to 'lib/edc/dialer.edc')
-rwxr-xr-x[-rw-r--r--] | lib/edc/dialer.edc | 645 |
1 files changed, 403 insertions, 242 deletions
diff --git a/lib/edc/dialer.edc b/lib/edc/dialer.edc index b5d22a0..9eda633 100644..100755 --- a/lib/edc/dialer.edc +++ b/lib/edc/dialer.edc @@ -17,55 +17,64 @@ #define MAIN_H 1280 #define MAIN_W 720 #define INDICATOR_H 50 -#define NAVIFRAME_H 100 -#define CONTROLBAR_H 124 -#define KEYPAD_START 265 -#define TEXT_AREA 123 -#define KEYPAD_H 741 -#define BUTTON_W 234 -#define BUTTON_W_PAD 9 -#define BUTTON_H 136 -#define BUTTON_H_PAD 12 -#define MAIN_H_PURE (MAIN_H-INDICATOR_H-CONTROLBAR_H-NAVIFRAME_H) -#define BTN_2_COL_W (BUTTON_W+BUTTON_W_PAD) -#define BTN_3_COL_W ((BUTTON_W*2)+(BUTTON_W_PAD*2)) -#define BTN_2_ROW_H (BUTTON_H+BUTTON_H_PAD) -#define BTN_3_ROW_H ((BUTTON_H*2)+(BUTTON_H_PAD*2)) -#define BTN_4_ROW_H ((BUTTON_H*3)+(BUTTON_H_PAD*3)) -#define BTN_5_ROW_H ((BUTTON_H*4)+(BUTTON_H_PAD*4)) +#define CONTROLBAR_H 117 +#define KEYPAD_START 359 +#define TEXT_AREA 217 +#define KEYPAD_H 754 +#define BUTTON_W 224 +#define BUTTON_W_PAD 12 +#define BUTTON_H 138 +#define BUTTON_H_PAD 10 +#define MAIN_H_PURE (MAIN_H-INDICATOR_H-CONTROLBAR_H) +#define BTN_1_COL_X 12 +#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 12 +#define BTN_2_ROW_Y (BTN_1_ROW_Y + BUTTON_H + BUTTON_H_PAD) +#define BTN_3_ROW_Y (BTN_1_ROW_Y + (BUTTON_H*2)+(BUTTON_H_PAD*2)) +#define BTN_4_ROW_Y (BTN_1_ROW_Y + (BUTTON_H*3)+(BUTTON_H_PAD*3)) +#define BTN_5_ROW_Y (BTN_1_ROW_Y + (BUTTON_H*4)+(BUTTON_H_PAD*4)) #define IMAGE_PATH "../images/dialer_images/" +#define IMAGES "../images/phoneug_images/" #define KEYPAD_ANI_TIME 0.03 images { - image: IMAGE_PATH"C01-3_dialer_btn_01.png" COMP; - image: IMAGE_PATH"C01-3_dialer_btn_02.png" COMP; - image: IMAGE_PATH"C01-3_dialer_btn_03.png" COMP; - image: IMAGE_PATH"C01-3_dialer_btn_press.png" COMP; + image: IMAGE_PATH"C01-3_dialer_btn.png" COMP; + image: IMAGE_PATH"C01-3_dialer_btn_press.png" COMP; + image: IMAGE_PATH"C01-3_dialer_btn_cal.png" COMP; + image: IMAGE_PATH"C01-3_dialer_btn_call_press.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_01.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_01_press.png" COMP; + image: IMAGE_PATH"C01-3_dialer_icon_02.png" COMP; + image: IMAGE_PATH"C01-3_dialer_icon_02_press.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_03.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_03_press.png" COMP; + image: IMAGE_PATH"C01-3_dialer_icon_star.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_call.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_clear.png" COMP; - image: IMAGE_PATH"C01-3_dialer_icon_video_call.png" COMP; - image: IMAGE_PATH"C01-3_dialer_icon_video_call_dim.png" COMP; + image: IMAGE_PATH"C01-3_dialer_btn_option_bg.png" COMP; + image: IMAGE_PATH"C01-3_dialer_btn_option_press.png" COMP; + image: IMAGE_PATH"C01-3_dialer_icon_option.png" COMP; + image: IMAGE_PATH"C01-3_icon_clear.png" COMP; + image: IMAGES"00_button_icon_expand_opened.png" COMP; + image: IMAGES"00_button_icon_expand_closed.png" COMP; } color_classes { color_class { name: "color/textblock/bg"; - color: 0 0 0 255; + color: 232 245 253 255; } } collections { + #include "dialer_btn.edc" /***************************************************************************** * dialer main edc group *****************************************************************************/ group { name: "dialer/main"; - parts { /***************************************************************************** * Main background @@ -78,7 +87,7 @@ collections { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } - color_class: "color/textblock/bg"; + color_class: "color/textblock/bg"; //right below input_field to the end } } @@ -88,133 +97,167 @@ collections { 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"; } - color: 0 0 0 255; + rel2 { relative: 1.0 1.0; offset: 0 0; to: "background";} + color: 32 32 32 255; //bg for only KEYPAD } } /***************************************************************************** * Softkey button *****************************************************************************/ -#define PART_CALL_SOFTKEY(txt,offx, offy, w, h, icon, icon_press, icon_dim, file, file_press, file_dim) \ - part { \ - name: txt; \ - type: IMAGE; \ - scale: 1; \ - description { \ - state: "default" 0.0; \ - rel1 { relative: offx/MAIN_W offy/KEYPAD_H; to:"keypad/bg";} \ - rel2 { relative: (offx+w)/MAIN_W (offy+h)/KEYPAD_H; to:"keypad/bg";} \ - image { \ - normal: file; \ - border: 8 8 8 8; \ - border_scale: 1; \ - } \ - } \ - description { \ - state: "pressed" 0.0; \ - inherit: "default" 0.0; \ - image.normal: file_press; \ - } \ - description { \ - state: "dim" 0.0; \ - inherit: "default" 0.0; \ - image.normal: file_dim; \ - } \ - description { \ - state: "hide" 0.0; \ - visible: 0; \ - } \ - } \ - part { \ - name: txt"_icon"; \ - type: IMAGE; \ - scale: 1; \ - mouse_events: 0; \ - description { \ - state: "default" 0.0; \ - min: 234 h; \ - fixed: 1 1; \ - rel1 { relative: 0.5 0.5; to: txt;} \ - rel2 { relative: 0.5 0.5; to: txt;} \ - align: 0.5 0.5; \ - image.normal: icon; \ - } \ - description { \ - state: "pressed" 0.0; \ - inherit: "default" 0.0; \ - image.normal: icon_press; \ - } \ - description { \ - state: "dim" 0.0; \ - inherit: "default" 0.0; \ - image.normal: icon_dim; \ - } \ - description { \ - state: "hide" 0.0; \ - visible: 0; \ - } \ - } - + // call btn //////////////////////////////////////////////////////////////////////////// part { - name: "input_back"; + name: "normal/call"; type: IMAGE; scale: 1; description { state: "default" 0.0; - rel1 { relative: BTN_3_COL_W/MAIN_W BTN_5_ROW_H/KEYPAD_H; to:"keypad/bg";} - rel2 { relative: (BTN_3_COL_W+BUTTON_W)/MAIN_W (BTN_5_ROW_H+BUTTON_H)/KEYPAD_H; to:"keypad/bg";} + rel1 { relative: BTN_2_COL_X/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";} + rel2 { relative: (BTN_2_COL_X+BUTTON_W)/MAIN_W (BTN_5_ROW_Y+BUTTON_H)/KEYPAD_H; to:"keypad/bg";} image { - border: 8 8 8 8; + normal: IMAGE_PATH"C01-3_dialer_btn_cal.png"; + border: 30 40 35 35; border_scale: 1; - normal: IMAGE_PATH"C01-3_dialer_btn_01.png"; } } description { state: "pressed" 0.0; inherit: "default" 0.0; - image.normal: IMAGE_PATH"C01-3_dialer_btn_press.png"; + image.normal: IMAGE_PATH"C01-3_dialer_btn_call_press.png"; } description { - state: "dim" 0.0; - inherit: "default" 0.0; - image.normal: IMAGE_PATH"C01-3_dialer_btn_01.png"; + state: "expand" 0.0; + rel1 { relative: BTN_1_COL_X/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";} + rel2 { relative: (BTN_2_COL_X+BUTTON_W)/MAIN_W (BTN_5_ROW_Y+BUTTON_H)/KEYPAD_H; to:"keypad/bg";} + image { + normal: IMAGE_PATH"C01-3_dialer_btn_cal.png"; + border: 30 40 35 35; + border_scale: 1; + } + } + description { + state: "expand_pressed" 0.0; + inherit: "expand" 0.0; + image.normal: IMAGE_PATH"C01-3_dialer_btn_call_press.png"; } } - part { - name: "input_back_icon"; + name: "normal/call_icon"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; - rel1 { relative: BTN_3_COL_W/MAIN_W BTN_5_ROW_H/KEYPAD_H; to:"keypad/bg";} - rel2 { relative: (BTN_3_COL_W+BUTTON_W)/MAIN_W (BTN_5_ROW_H+BUTTON_H)/KEYPAD_H; to:"keypad/bg";} - image.normal: IMAGE_PATH"C01-3_dialer_icon_clear.png"; + min: BUTTON_W BUTTON_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_dialer_icon_call.png"; + } + } + + // back_btn //////////////////////////////////////////////////////////////////////////// + part { + name: "input_del"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: BTN_3_COL_X/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";} + rel2 { relative: (BTN_3_COL_X+BUTTON_W)/MAIN_W (BTN_5_ROW_Y+BUTTON_H)/KEYPAD_H; to:"keypad/bg";} + image { + border: 30 40 35 35; + border_scale: 1; + normal: IMAGE_PATH"C01-3_dialer_btn.png"; + } } description { state: "pressed" 0.0; inherit: "default" 0.0; - image.normal: IMAGE_PATH"C01-3_dialer_icon_clear.png"; + image.normal: IMAGE_PATH"C01-3_dialer_btn_press.png"; } + } + part { + name: "input_del_icon"; + type: IMAGE; + scale: 1; + mouse_events: 0; description { - state: "dim" 0.0; - inherit: "default" 0.0; - image.normal: IMAGE_PATH"C01-3_dialer_icon_clear.png"; + state: "default" 0.0; + min : 76 44; + fixed: 1 1; + rel1 { relative: 0.5 0.5; to:"input_del";} + rel2 { relative: 0.5 0.5; to:"input_del";} + + image.normal: IMAGE_PATH"C01-3_icon_clear.png"; } } - PART_CALL_SOFTKEY("normal/call", 0, BTN_5_ROW_H, 477, BUTTON_H, IMAGE_PATH"C01-3_dialer_icon_call.png", IMAGE_PATH"C01-3_dialer_icon_call.png", IMAGE_PATH"C01-3_dialer_icon_call.png", IMAGE_PATH"C01-3_dialer_btn_03.png", IMAGE_PATH"C01-3_dialer_btn_press.png", IMAGE_PATH"C01-3_dialer_btn_03.png") + // return_btn //////////////////////////////////////////////////////////////////////////// +#define PART_KEYPAD_RETURN_BTN \ + part { \ + name: "return_btn"; \ + type: IMAGE; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: BTN_1_COL_X/MAIN_W BTN_5_ROW_Y/KEYPAD_H; to:"keypad/bg";} \ + rel2 { relative: (BTN_1_COL_X+BUTTON_W)/MAIN_W (BTN_5_ROW_Y+BUTTON_H)/KEYPAD_H; to:"keypad/bg";} \ + image { \ + normal: IMAGE_PATH"C01-3_dialer_btn.png"; \ + border: 30 40 35 35; \ + border_scale: 1; \ + } \ + visible: 1; \ + } \ + description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + image.normal: IMAGE_PATH"C01-3_dialer_btn_press.png"; \ + } \ + description { \ + state: "hide" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + part { \ + name: "return_btn/text"; \ + type: TEXT; \ + scale: 1; \ + effect: SHADOW; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: 0.05 0.0; to: "return_btn";} \ + rel2 { relative: 0.95 1.0; to: "return_btn";} \ + fixed: 1 1; \ + align: 0.5 0.5; \ + text { \ + font: "SLP:style=Medium"; \ + text_class: "slp_medium"; \ + size: 35; \ + min: 1 1; \ + fit: 1 1; \ + } \ + visible: 1; \ + } \ + description { \ + state: "hide" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } + PART_KEYPAD_RETURN_BTN /***************************************************************************** * Number Keypad button *****************************************************************************/ -#define PART_KEYPAD_CUSTOM_TWO_LABLE(txt, offx, offy, file, file_press,label_left_text,label_left_font,label_left_size,label_right_text,label_right_font,label_right_size) \ +#define PART_KEYPAD_CUSTOM_TWO_LABLE(txt, offx, offy, file, file_press,label_left_text,label_left_font,label_left_font_class,label_left_size,label_right_text,label_right_font,label_right_font_class,label_right_size) \ part { \ name: txt; \ type: IMAGE; \ @@ -225,7 +268,7 @@ collections { rel2 { relative: (offx+BUTTON_W)/MAIN_W (offy+BUTTON_H)/KEYPAD_H; to:"keypad/bg"; } \ image { \ normal: file; \ - border: 8 8 8 8; \ + border: 30 40 35 35; \ border_scale: 1; \ } \ } \ @@ -254,6 +297,7 @@ collections { color: 249 249 249 255; \ text { \ font: label_left_font; \ + text_class: label_left_font_class; \ text: label_left_text; \ size: label_left_size; \ min: 1 1; \ @@ -277,9 +321,10 @@ collections { rel2 { relative: 0.92 1.0; to: txt;} \ fixed: 1 1; \ align: 0.5 0.5; \ - color: 124 124 124 255; \ + color: 148 177 200 255; \ text { \ font: label_right_font; \ + text_class: label_right_font_class; \ text: label_right_text; \ size: label_right_size; \ min: 1 1; \ @@ -287,13 +332,18 @@ collections { } \ } \ description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + } \ + description { \ state: "hide" 0.0; \ visible: 0; \ } \ } -#define PART_KEYPAD_CUSTOM_ONEICON_ONELABEL(txt, offx, offy, file, file_press,icon_left,icon_left_press,icon_left_sizex,icon_left_sizey,label_right_text,label_right_font,label_right_size) \ +#define PART_KEYPAD_CUSTOM_ONEICON_ONELABEL(txt, offx, offy, file, file_press,icon_left,icon_left_press,icon_left_sizex,icon_left_sizey,label_right_text,label_right_font,label_right_font_class,label_right_size) \ part { \ name: txt; \ type: IMAGE; \ @@ -304,7 +354,7 @@ collections { rel2 { relative: (offx+BUTTON_W)/MAIN_W (offy+BUTTON_H)/KEYPAD_H; to:"keypad/bg"; } \ image { \ normal: file; \ - border: 8 8 8 8; \ + border: 30 40 35 35; \ border_scale: 1; \ } \ } \ @@ -354,9 +404,10 @@ collections { rel2 { relative: 0.92 1.0; to: txt;} \ fixed: 1 1; \ align: 0.5 0.5; \ - color: 124 124 124 255; \ + color: 148 177 200 255; \ text { \ font: label_right_font; \ + text_class: label_right_font_class; \ text: label_right_text; \ size: label_right_size; \ min: 1 1; \ @@ -364,12 +415,17 @@ collections { } \ } \ description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + } \ + description { \ state: "hide" 0.0; \ visible: 0; \ } \ } -#define PART_KEYPAD_CUSTOM_ONELABEL(txt, offx, offy, file, file_press,label_left_text,label_left_font,label_left_size) \ +#define PART_KEYPAD_CUSTOM_ONELABEL_ONEICON(txt, offx, offy, file, file_press,icon_right,icon_right_press,icon_right_sizex,icon_right_sizey,label_left_text,label_left_font,label_left_font_class,label_left_size) \ part { \ name: txt; \ type: IMAGE; \ @@ -380,7 +436,7 @@ collections { rel2 { relative: (offx+BUTTON_W)/MAIN_W (offy+BUTTON_H)/KEYPAD_H; to:"keypad/bg"; } \ image { \ normal: file; \ - border: 8 8 8 8; \ + border: 30 40 35 35; \ border_scale: 1; \ } \ } \ @@ -395,6 +451,30 @@ collections { } \ } \ part { \ + name: txt"_right"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + min: icon_right_sizex icon_right_sizey; \ + rel1 { relative: 0.66 0.5; to: txt;} \ + rel2 { relative: 0.66 0.5; to: txt;} \ + fixed: 1 1; \ + align: 0.5 0.5; \ + image.normal: icon_right; \ + } \ + description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + image.normal: icon_right_press; \ + } \ + description { \ + state: "hide" 0.0; \ + visible: 0; \ + } \ + } \ + part { \ name: txt"_left"; \ type: TEXT; \ scale: 1; \ @@ -402,13 +482,14 @@ collections { mouse_events: 0; \ description { \ state: "default" 0.0; \ - rel1 { relative: 0.0 0.0; to: txt;} \ - rel2 { relative: 1.0 1.0; to: txt;} \ + rel1 { relative: 0.08 0.0; to: txt;} \ + rel2 { relative: 0.4 1.0; to: txt;} \ fixed: 1 1; \ align: 0.5 0.5; \ color: 249 249 249 255; \ text { \ font: label_left_font; \ + text_class: label_left_font_class; \ text: label_left_text; \ size: label_left_size; \ min: 1 1; \ @@ -421,42 +502,68 @@ collections { } \ } - PART_KEYPAD_CUSTOM_ONELABEL("1", 0,0, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","1","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("2", BTN_2_COL_W,0, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","2","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("3", BTN_3_COL_W,0, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","3","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("4", 0,BTN_2_ROW_H, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","4","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("5", BTN_2_COL_W,BTN_2_ROW_H, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","5","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("6", BTN_3_COL_W,BTN_2_ROW_H, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","6","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("7", 0,BTN_3_ROW_H,IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","7","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("8", BTN_2_COL_W,BTN_3_ROW_H,IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","8","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("9", BTN_3_COL_W,BTN_3_ROW_H,IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","9","SLP:style=Light",116) - PART_KEYPAD_CUSTOM_ONELABEL("sharp",BTN_3_COL_W, BTN_4_ROW_H, IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","#","SLP:style=Light",116) + PART_KEYPAD_CUSTOM_ONELABEL_ONEICON("1", BTN_1_COL_X,BTN_1_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png",IMAGE_PATH"C01-3_dialer_icon_01.png",IMAGE_PATH"C01-3_dialer_icon_01_press.png",75,75,"1","SLP:style=Roman","slp_roman",116) + PART_KEYPAD_CUSTOM_TWO_LABLE("2", BTN_2_COL_X, BTN_1_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","2","SLP:style=Regular","slp_regular",116,"ABC","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("3", BTN_3_COL_X, BTN_1_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","3","SLP:style=Regular","slp_regular",116,"DEF","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("4", BTN_1_COL_X, BTN_2_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","4","SLP:style=Regular","slp_regular",116,"GHI","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("5", BTN_2_COL_X, BTN_2_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","5","SLP:style=Regular","slp_regular",116,"JKL","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("6", BTN_3_COL_X, BTN_2_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","6","SLP:style=Regular","slp_regular",116,"MNO","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("7", BTN_1_COL_X, BTN_3_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","7","SLP:style=Regular","slp_regular",116,"PQRS","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("8", BTN_2_COL_X, BTN_3_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","8","SLP:style=Regular","slp_regular",116,"TUV","SLP:style=Roman","slp_roman",40) + PART_KEYPAD_CUSTOM_TWO_LABLE("9", BTN_3_COL_X, BTN_3_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","9","SLP:style=Regular","slp_regular",116,"WXYZ","SLP:style=Roman","slp_roman",40) - PART_KEYPAD_CUSTOM_ONEICON_ONELABEL("star", 0,BTN_4_ROW_H,IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png",IMAGE_PATH"C01-3_dialer_icon_03.png",IMAGE_PATH"C01-3_dialer_icon_03_press.png",75,75,"P","SLP:style=Roman",56) - PART_KEYPAD_CUSTOM_TWO_LABLE("0", BTN_2_COL_W,BTN_4_ROW_H,IMAGE_PATH"C01-3_dialer_btn_01.png",IMAGE_PATH"C01-3_dialer_btn_press.png","0","SLP:style=Light",116,"+","SLP:style=Roman",64) + PART_KEYPAD_CUSTOM_ONEICON_ONELABEL("star", BTN_1_COL_X, BTN_4_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png",IMAGE_PATH"C01-3_dialer_icon_03.png",IMAGE_PATH"C01-3_dialer_icon_03_press.png",75,75,"P","SLP:style=Roman","slp_roman",56) + PART_KEYPAD_CUSTOM_TWO_LABLE("0", BTN_2_COL_X, BTN_4_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png","0","SLP:style=Regular","slp_regular",116,"+","SLP:style=Roman","slp_roman",64) + PART_KEYPAD_CUSTOM_ONELABEL_ONEICON("sharp", BTN_3_COL_X, BTN_4_ROW_Y, IMAGE_PATH"C01-3_dialer_btn.png",IMAGE_PATH"C01-3_dialer_btn_press.png",IMAGE_PATH"C01-3_dialer_icon_02.png",IMAGE_PATH"C01-3_dialer_icon_02_press.png",75,75,"#","SLP:style=Roman","slp_roman",116) /***************************************************************************** - * Common place (1 row) + * option menu *****************************************************************************/ part { - name: "common_place"; - type: RECT; - mouse_events: 0; + name: "option_btn"; + type: IMAGE; scale: 1; description { state: "default" 0.0; - rel1 { relative: 0.0 (TEXT_AREA+1)/MAIN_H_PURE; to: "background"; } - rel2 { relative: 1.0 KEYPAD_START/MAIN_H_PURE; to: "background"; } - color: 0 0 0 0; - align: 0.0 0.0; + rel1 { relative: 602/720 (TEXT_AREA+1)/MAIN_H_PURE; offset: 0 16; to:"background";} + rel2 { relative: 1.0 0.0; offset: -16 -12; to:"keypad/bg";} + image { + border: 8 8 8 8; + border_scale: 1; + normal: IMAGE_PATH"C01-3_dialer_btn_option_bg.png"; + } } description { - state: "hide" 0.0; + state: "pressed" 0.0; inherit: "default" 0.0; + image.normal: IMAGE_PATH"C01-3_dialer_btn_option_press.png"; + } + description { + state: "hide" 0.0; + visible: 0; + } + } + + part { + name: "option_btn_icon"; + type: IMAGE; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min : 40 40; + fixed: 1 1; + rel1 { relative: 0.5 0.5; to:"option_btn";} + rel2 { relative: 0.5 0.5; to:"option_btn";} + image.normal: IMAGE_PATH"C01-3_dialer_icon_option.png"; + } + description { + state: "hide" 0.0; visible: 0; } } + /***************************************************************************** * Textblock *****************************************************************************/ @@ -470,7 +577,7 @@ collections { rel1 { relative: 0.0 0.0; to: "background";} rel2 { relative: 1.0 TEXT_AREA/MAIN_H_PURE; to: "background";} align: 0.5 1.0; - color_class: "color/textblock/bg"; + color_class: "color/textblock/bg"; //bg for entry(phonenumber_input_field) } } @@ -486,6 +593,7 @@ collections { } } + /***************************************************************************** * Programs *****************************************************************************/ @@ -497,15 +605,6 @@ collections { action: SIGNAL_EMIT "EXIT" "EDJ"; } - program { - name: "keyinit"; - source: "keyinit"; - signal: "keyinit"; - script { - emit ("show_star","star"); - } - } - /***************************************************************************** * Program: Keypad button *****************************************************************************/ @@ -516,6 +615,7 @@ collections { source: txt; \ script { \ set_state(PART:txt, "pressed", 0.0); \ + set_state(PART:txt"_right", "pressed", 0.0); \ emit("pad_down", txt); \ } \ } \ @@ -534,6 +634,7 @@ collections { script { \ emit("pad_up", txt); \ emit("ani", txt); \ + set_state(PART:txt"_right", "default", 0.0); \ } \ } \ program { \ @@ -565,14 +666,14 @@ collections { } \ } -#define PROG_KEYPAD_LEFT_EFFECT(txt) \ +#define PROG_KEYPAD_RIGHT_EFFECT(txt) \ program { \ name: "down_"txt; \ signal: "mouse,down,*"; \ source: txt; \ script { \ set_state(PART:txt, "pressed", 0.0); \ - set_state(PART:txt"_left", "pressed", 0.0); \ + set_state(PART:txt"_right", "pressed", 0.0); \ emit("pad_down", txt); \ } \ } \ @@ -591,7 +692,7 @@ collections { script { \ emit("pad_up", txt); \ emit("ani", txt); \ - set_state(PART:txt"_left", "default", 0.0); \ + set_state(PART:txt"_right", "default", 0.0); \ } \ } \ program { \ @@ -623,7 +724,7 @@ collections { } \ } -#define PROG_KEYPAD_ONE_EFFECT(txt) \ +#define PROG_KEYPAD_LEFT_EFFECT(txt) \ program { \ name: "down_"txt; \ signal: "mouse,down,*"; \ @@ -631,6 +732,7 @@ collections { script { \ set_state(PART:txt, "pressed", 0.0); \ set_state(PART:txt"_left", "pressed", 0.0); \ + set_state(PART:txt"_right", "pressed", 0.0); \ emit("pad_down", txt); \ } \ } \ @@ -650,6 +752,7 @@ collections { emit("pad_up", txt); \ emit("ani", txt); \ set_state(PART:txt"_left", "default", 0.0); \ + set_state(PART:txt"_right", "default", 0.0); \ } \ } \ program { \ @@ -666,6 +769,7 @@ collections { source: txt; \ script { \ set_state(PART:txt"_left", "hide", 0.0); \ + set_state(PART:txt"_right", "hide", 0.0); \ set_state(PART:txt, "hide", 0.0); \ } \ } \ @@ -675,132 +779,194 @@ collections { source: txt; \ script { \ set_state(PART:txt"_left", "default", 0.0); \ + set_state(PART:txt"_right", "default", 0.0); \ set_state(PART:txt, "default", 0.0); \ } \ } - PROG_KEYPAD_ONE_EFFECT("1") - PROG_KEYPAD_ONE_EFFECT("2") - PROG_KEYPAD_ONE_EFFECT("3") - PROG_KEYPAD_ONE_EFFECT("4") - PROG_KEYPAD_ONE_EFFECT("5") - PROG_KEYPAD_ONE_EFFECT("6") - PROG_KEYPAD_ONE_EFFECT("7") - PROG_KEYPAD_ONE_EFFECT("8") - PROG_KEYPAD_ONE_EFFECT("9") + PROG_KEYPAD_RIGHT_EFFECT("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_LEFT_EFFECT("star") PROG_KEYPAD("0") - PROG_KEYPAD_ONE_EFFECT("sharp") + PROG_KEYPAD_RIGHT_EFFECT("sharp") /***************************************************************************** * Program: Softkey button *****************************************************************************/ -#define PROG_SOFTKEY(txt) \ - program { \ - name: "down_"txt; \ - signal: "mouse,down,*"; \ - source: txt; \ - script { \ - new st[30]; \ - new Float:vl; \ - get_state (PART:txt, st, 30, vl); \ - if (strcmp(st, "dim") != 0) { \ - set_state(PART:txt, "pressed", 0.0); \ - emit("softkey_down", txt); \ - } \ - } \ - } \ - program { \ - name: "up_"txt; \ - signal: "mouse,up,1"; \ - source: txt; \ - script { \ - new st[30]; \ - new Float:vl; \ - get_state (PART:txt, st, 30, vl); \ - if (strcmp(st, "dim") != 0) { \ - set_state(PART:txt, "default", 0.0); \ - emit("softkey_up", txt); \ - } \ - } \ - } \ - program { \ - name: "clicked_"txt; \ - signal: "mouse,clicked,1"; \ - source: txt; \ - script { \ - new st[30]; \ - new Float:vl; \ - get_state (PART:txt, st, 30, vl); \ - if (strcmp(st, "dim") != 0) { \ - emit("softkey_clicked", txt); \ - } \ - } \ - } - + // call ////////////////////////////////////////////////////////////////////////// program { - name: "down_input_back"; + name: "down_normal/call"; signal: "mouse,down,*"; - source: "input_back"; + source: "normal/call"; script { new st[30]; new Float:vl; - get_state (PART:"input_back", st, 30, vl); - if (strcmp(st, "dim") != 0) { - set_state(PART:"input_back", "pressed", 0.0); - emit("softkey_down", "input_back"); + 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") == 0) { + set_state(PART:"normal/call", "expand_pressed", 0.0); + emit("softkey_down", "normal/call"); } } } - program { - name: "up_input_back"; + name: "up_normal/call"; signal: "mouse,up,1"; - source: "input_back"; + source: "normal/call"; script { new st[30]; new Float:vl; - get_state (PART:"input_back", st, 30, vl); - if (strcmp(st, "dim") != 0) { - set_state(PART:"input_back", "default", 0.0); - emit("softkey_up", "input_back"); + 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_pressed") == 0) { + set_state(PART:"normal/call", "expand", 0.0); + emit("softkey_up", "normal/call"); } } } + program { + name: "clicked_normal/call"; + signal: "mouse,clicked,1"; + source: "normal/call"; + script { + emit("softkey_clicked", "normal/call"); + } + } + + // return_btn ////////////////////////////////////////////////////////////////////////// program { - name: "dim_input_back"; - signal: "input_back/dim"; - source: "input_back"; + name: "down_normal/return_btn"; + signal: "mouse,down,*"; + source: "return_btn"; script { - set_state(PART:"input_back", "dim", 0.0); + set_state(PART:"return_btn", "pressed", 0.0); + emit("softkey_down", "return_btn"); } } program { - name: "default_input_back"; - signal: "input_back/default"; - source: "input_back"; + name: "up_normal/return_btn"; + signal: "mouse,up,1"; + source: "return_btn"; script { - set_state(PART:"input_back", "default", 0.0); + set_state(PART:"return_btn", "default", 0.0); + emit("softkey_up", "return_btn"); } } - program { - name: "clicked_input_back"; + name: "clicked_normal/return_btn"; signal: "mouse,clicked,1"; - source: "input_back"; + source: "return_btn"; script { - new st[30]; - new Float:vl; - get_state (PART:"input_back", st, 30, vl); - if (strcmp(st, "dim") != 0) { - emit("softkey_clicked", "input_back"); - } + emit("softkey_clicked", "return_btn"); + } + } + program { + name: "hide/return_btn"; + signal: "return_btn/hide"; + source: "return_btn"; + script { + set_state(PART:"return_btn", "hide", 0.0); + set_state(PART:"return_btn/text", "hide", 0.0); + } + } + program { + name: "show/return_btn"; + signal: "return_btn/default"; + source: "return_btn"; + script { + set_state(PART:"return_btn", "default", 0.0); + set_state(PART:"return_btn/text", "default", 0.0); } } - PROG_SOFTKEY("normal/call") + // option_btn //////////////////////////////////////////////////// + program { + name: "down_option_btn"; + signal: "mouse,down,*"; + source: "option_btn"; + script { + set_state(PART:"option_btn", "pressed", 0.0); + emit("softkey_down", "option_btn"); + } + } + program { + name: "up_option_btn"; + signal: "mouse,up,1"; + source: "option_btn"; + script { + set_state(PART:"option_btn", "default", 0.0); + emit("softkey_up", "option_btn"); + } + } + program { + name: "clicked_option_btn"; + signal: "mouse,clicked,1"; + source: "option_btn"; + script { + emit("softkey_clicked", "option_btn"); + } + } + program { + name: "hide_option_btn"; + signal: "option_btn/hide"; + source: "option_btn"; + script { + set_state(PART:"option_btn", "hide", 0.0); + set_state(PART:"option_btn_icon", "hide", 0.0); + } + } + program { + name: "default_option_btn"; + signal: "option_btn/default"; + source: "option_btn"; + script { + set_state(PART:"option_btn", "default", 0.0); + set_state(PART:"option_btn_icon", "default", 0.0); + } + } + // input_del //////////////////////////////////////////////////// + program { + name: "down_input_del"; + signal: "mouse,down,*"; + source: "input_del"; + script { + set_state(PART:"input_del", "pressed", 0.0); + emit("softkey_down", "input_del"); + } + } + program { + name: "up_input_del"; + signal: "mouse,up,1"; + source: "input_del"; + script { + set_state(PART:"input_del", "default", 0.0); + emit("softkey_up", "input_del"); + } + } + + program { + name: "clicked_input_del"; + signal: "mouse,clicked,1"; + source: "input_del"; + script { + emit("softkey_clicked", "input_del"); + } + } /***************************************************************************** * Program: Softkey - normal mode @@ -810,8 +976,7 @@ collections { source: "softkey"; signal: "softkey/normal"; script { - set_state (PART:"normal/call", "default", 0.0); - set_state (PART:"normal/call_icon", "default", 0.0); + set_state (PART:"normal/call", "expand", 0.0); } } @@ -824,7 +989,6 @@ collections { signal: "softkey/dc"; script { set_state (PART:"normal/call", "default", 0.0); - set_state (PART:"normal/call_icon", "default", 0.0); } } @@ -837,9 +1001,6 @@ collections { signal: "main/default"; script { emit ("viewcontrol/button", "viewcontrol"); - emit ("keyinit", "keyinit"); - emit ("input_back/dim", "input_back"); - emit ("softkey/normal", "softkey"); } } } // programs end |