/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.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.tizenopensource.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 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 IMAGE_PATH "../images/dialer_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_icon_01.png" COMP; image: IMAGE_PATH"C01-3_dialer_icon_01_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_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; } color_classes { color_class { name: "color/textblock/bg"; color: 0 0 0 255; } } collections { /***************************************************************************** * dialer main edc group *****************************************************************************/ group { name: "dialer/main"; 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"; } } /***************************************************************************** * 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"; } color: 0 0 0 255; } } /***************************************************************************** * 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; \ } \ } part { name: "input_back"; 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";} image { border: 8 8 8 8; 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"; } description { state: "dim" 0.0; inherit: "default" 0.0; image.normal: IMAGE_PATH"C01-3_dialer_btn_01.png"; } } part { name: "input_back_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"; } description { state: "pressed" 0.0; inherit: "default" 0.0; image.normal: IMAGE_PATH"C01-3_dialer_icon_clear.png"; } description { state: "dim" 0.0; inherit: "default" 0.0; image.normal: IMAGE_PATH"C01-3_dialer_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") /***************************************************************************** * 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) \ 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+BUTTON_W)/MAIN_W (offy+BUTTON_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: "hide" 0.0; \ visible: 0; \ } \ } \ part { \ name: txt"_left"; \ type: TEXT; \ scale: 1; \ effect: SHADOW; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ 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: label_left_text; \ size: label_left_size; \ min: 1 1; \ align: 0.5 0.5; \ } \ } \ description { \ state: "hide" 0.0; \ visible: 0; \ } \ } \ part { \ name: txt"_right"; \ type: TEXT; \ scale: 1; \ effect: SHADOW; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ rel1 { relative: 0.4 0.0; to: txt;} \ rel2 { relative: 0.92 1.0; to: txt;} \ fixed: 1 1; \ align: 0.5 0.5; \ color: 124 124 124 255; \ text { \ font: label_right_font; \ text: label_right_text; \ size: label_right_size; \ min: 1 1; \ align: 0.5 0.5; \ } \ } \ 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) \ 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+BUTTON_W)/MAIN_W (offy+BUTTON_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: "hide" 0.0; \ visible: 0; \ } \ } \ part { \ name: txt"_left"; \ type: IMAGE; \ scale: 1; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ min: icon_left_sizex icon_left_sizey; \ fixed: 1 1; \ rel1 { relative: 0.24 0.5; to: txt;} \ rel2 { relative: 0.24 0.5; to: txt;} \ align: 0.5 0.5; \ image.normal: icon_left; \ } \ description { \ state: "pressed" 0.0; \ inherit: "default" 0.0; \ image.normal: icon_left_press; \ } \ description { \ state: "hide" 0.0; \ visible: 0; \ } \ } \ part { \ name: txt"_right"; \ type: TEXT; \ scale: 1; \ effect: SHADOW; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ rel1 { relative: 0.4 0.0; to: txt;} \ rel2 { relative: 0.92 1.0; to: txt;} \ fixed: 1 1; \ align: 0.5 0.5; \ color: 124 124 124 255; \ text { \ font: label_right_font; \ text: label_right_text; \ size: label_right_size; \ min: 1 1; \ align: 0.5 0.5; \ } \ } \ 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) \ 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+BUTTON_W)/MAIN_W (offy+BUTTON_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: "hide" 0.0; \ visible: 0; \ } \ } \ part { \ name: txt"_left"; \ type: TEXT; \ scale: 1; \ effect: SHADOW; \ mouse_events: 0; \ description { \ state: "default" 0.0; \ rel1 { relative: 0.0 0.0; to: txt;} \ rel2 { relative: 1.0 1.0; to: txt;} \ fixed: 1 1; \ align: 0.5 0.5; \ color: 249 249 249 255; \ text { \ font: label_left_font; \ text: label_left_text; \ size: label_left_size; \ min: 1 1; \ align: 0.5 0.5; \ } \ } \ description { \ state: "hide" 0.0; \ visible: 0; \ } \ } 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_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) /***************************************************************************** * Common place (1 row) *****************************************************************************/ part { name: "common_place"; type: RECT; mouse_events: 0; 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; } description { state: "hide" 0.0; inherit: "default" 0.0; visible: 0; } } /***************************************************************************** * Textblock *****************************************************************************/ // for color part { name: "textblock/bg"; type: RECT; scale: 1; description { state: "default" 0.0; 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"; } } part { name: "textblock/textarea"; type: SWALLOW; scale: 1; description { state: "default" 0.0; fixed: 1 1; rel1 { relative: 0.0 0.5; to: "textblock/bg"; } rel2 { relative: 1.0 0.5; to: "textblock/bg"; } } } /***************************************************************************** * Programs *****************************************************************************/ programs { program { name: "click_exit"; source: "background"; signal: "mouse,clicked,1"; action: SIGNAL_EMIT "EXIT" "EDJ"; } program { name: "keyinit"; source: "keyinit"; signal: "keyinit"; script { emit ("show_star","star"); } } /***************************************************************************** * Program: Keypad button *****************************************************************************/ #define PROG_KEYPAD(txt) \ program { \ name: "down_"txt; \ signal: "mouse,down,*"; \ source: txt; \ script { \ set_state(PART:txt, "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); \ } \ } \ 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"_left", "hide", 0.0); \ set_state(PART:txt"_right", "hide", 0.0); \ set_state(PART:txt, "hide", 0.0); \ } \ } \ program { \ name: "show_"txt; \ signal: "show_"txt; \ 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); \ } \ } #define PROG_KEYPAD_LEFT_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); \ 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"_left", "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"_left", "hide", 0.0); \ set_state(PART:txt"_right", "hide", 0.0); \ set_state(PART:txt, "hide", 0.0); \ } \ } \ program { \ name: "show_"txt; \ signal: "show_"txt; \ 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); \ } \ } #define PROG_KEYPAD_ONE_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); \ 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"_left", "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"_left", "hide", 0.0); \ set_state(PART:txt, "hide", 0.0); \ } \ } \ program { \ name: "show_"txt; \ signal: "show_"txt; \ source: txt; \ script { \ set_state(PART:txt"_left", "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_LEFT_EFFECT("star") PROG_KEYPAD("0") PROG_KEYPAD_ONE_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); \ } \ } \ } program { name: "down_input_back"; signal: "mouse,down,*"; source: "input_back"; 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"); } } } program { name: "up_input_back"; signal: "mouse,up,1"; source: "input_back"; 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"); } } } program { name: "dim_input_back"; signal: "input_back/dim"; source: "input_back"; script { set_state(PART:"input_back", "dim", 0.0); } } program { name: "default_input_back"; signal: "input_back/default"; source: "input_back"; script { set_state(PART:"input_back", "default", 0.0); } } program { name: "clicked_input_back"; signal: "mouse,clicked,1"; source: "input_back"; 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"); } } } PROG_SOFTKEY("normal/call") /***************************************************************************** * Program: Softkey - normal mode *****************************************************************************/ program { name: "prog_softkey_normal"; source: "softkey"; signal: "softkey/normal"; script { set_state (PART:"normal/call", "default", 0.0); set_state (PART:"normal/call_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); } } /***************************************************************************** * Program: Dialer default *****************************************************************************/ program { name: "prog/main"; source: "main"; signal: "main/default"; script { emit ("viewcontrol/button", "viewcontrol"); emit ("keyinit", "keyinit"); emit ("input_back/dim", "input_back"); emit ("softkey/normal", "softkey"); } } } // programs end } // end of group }