TizenRefApp-7288 [Call UI] Refactor application graphic sources to compile only one... 28/89728/2 tizen_3.0_old
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Mon, 26 Sep 2016 12:42:38 +0000 (15:42 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Mon, 26 Sep 2016 12:47:41 +0000 (15:47 +0300)
Change-Id: I22f8df1c8aa785dd67377f99586fd2bf3d789be1

125 files changed:
CMake/CMakeLists.txt
edje_src/edc/call_edc/callui-action-bar.edc [deleted file]
edje_src/edc/callui-action-bar.edc [new file with mode: 0644]
edje_src/edc/callui-common-macro-button.edc [new file with mode: 0644]
edje_src/edc/callui-common-macro-image.edc [moved from edje_src/edc/call_edc/callui-image-macro.edc with 100% similarity]
edje_src/edc/callui-common-macro-part.edc [moved from edje_src/edc/callui-parts.edc with 100% similarity]
edje_src/edc/callui-common-utils.edc
edje_src/edc/callui-keypad.edc [moved from edje_src/edc/call_edc/callui-keypad.edc with 99% similarity]
edje_src/edc/callui-view-caller-info.edc [moved from edje_src/edc/call_edc/callui-view-caller-info.edc with 100% similarity]
edje_src/edc/callui-view-elements.edc [moved from edje_src/edc/call_edc/callui-view-elements.edc with 97% similarity]
edje_src/edc/callui-view-end-call.edc [moved from edje_src/edc/call_edc/callui-view-end-call.edc with 75% similarity]
edje_src/edc/callui-view-incoming-call-noti.edc [moved from edje_src/edc/call_edc/callui-view-incoming-call-noti.edc with 56% similarity]
edje_src/edc/callui-view-incoming-call.edc [moved from edje_src/edc/call_edc/callui-view-incoming-call.edc with 99% similarity]
edje_src/edc/callui-view-main-layout.edc [moved from edje_src/edc/call_edc/callui-view-main-layout.edc with 98% similarity]
edje_src/edc/callui-view-multi-call-list.edc [moved from edje_src/edc/call_edc/callui-view-multi-call-list.edc with 86% similarity]
edje_src/edc/callui-view-multi-call-split.edc [moved from edje_src/edc/call_edc/callui-view-multi-call-split.edc with 76% similarity]
edje_src/edc/callui-view-quick-pannel.edc [moved from edje_src/edc/call_edc/callui-view-quick-pannel.edc with 64% similarity]
edje_src/edc/callui-view-touch-lock-screen.edc [moved from edje_src/edc/call_edc/callui-view-touch-lock-screen.edc with 100% similarity]
edje_src/images/action_bar/call_btn_addcall.png [moved from edje_src/images/call_theme/icon/call_btn_addcall.png with 100% similarity]
edje_src/images/action_bar/call_btn_bluetooth.png [moved from edje_src/images/call_theme/icon/call_btn_bluetooth.png with 100% similarity]
edje_src/images/action_bar/call_btn_contacts.png [moved from edje_src/images/call_theme/icon/call_btn_contacts.png with 100% similarity]
edje_src/images/action_bar/call_btn_keypad.png [moved from edje_src/images/call_theme/icon/call_btn_keypad.png with 100% similarity]
edje_src/images/action_bar/call_btn_mute.png [moved from edje_src/images/call_theme/icon/call_btn_mute.png with 100% similarity]
edje_src/images/action_bar/call_btn_volume.png [moved from edje_src/images/call_theme/icon/call_btn_volume.png with 100% similarity]
edje_src/images/action_bar/call_onoff_bar.#.png [moved from edje_src/images/call_theme/icon/call_onoff_bar.#.png with 100% similarity]
edje_src/images/call_active_ic_call.png [moved from edje_src/images/call_edc/call_active_ic_call.png with 100% similarity]
edje_src/images/call_bg_dim.png [moved from edje_src/images/call_edc/call_bg_dim.png with 100% similarity]
edje_src/images/call_btn_circle.png [moved from edje_src/images/call_edc/call_btn_circle.png with 100% similarity]
edje_src/images/call_btn_ic_accept.png [moved from edje_src/images/call_edc/call_btn_ic_accept.png with 100% similarity]
edje_src/images/call_btn_ic_end.png [moved from edje_src/images/call_edc/call_btn_ic_end.png with 100% similarity]
edje_src/images/call_btn_ic_reject.png [moved from edje_src/images/call_edc/call_btn_ic_reject.png with 100% similarity]
edje_src/images/call_btn_ic_split.png [moved from edje_src/images/call_edc/call_btn_ic_split.png with 100% similarity]
edje_src/images/call_button_bg_accept_reject.png [moved from edje_src/images/call_edc/call_button_bg_accept_reject.png with 100% similarity]
edje_src/images/call_button_bg_line_accept_reject.png [moved from edje_src/images/call_edc/call_button_bg_line_accept_reject.png with 100% similarity]
edje_src/images/call_end_call.png [moved from edje_src/images/call_edc/call_end_call.png with 100% similarity]
edje_src/images/call_end_ic_call.png [moved from edje_src/images/call_edc/call_end_ic_call.png with 100% similarity]
edje_src/images/call_end_ic_end.png [moved from edje_src/images/call_edc/call_end_ic_end.png with 100% similarity]
edje_src/images/call_end_message.png [moved from edje_src/images/call_edc/call_end_message.png with 100% similarity]
edje_src/images/call_inline_btn_close.png [moved from edje_src/images/call_edc/call_inline_btn_close.png with 100% similarity]
edje_src/images/call_inline_btn_open.png [moved from edje_src/images/call_edc/call_inline_btn_open.png with 100% similarity]
edje_src/images/call_lock_icon.png [moved from edje_src/images/call_edc/call_lock_icon.png with 100% similarity]
edje_src/images/call_multi_hold_bg.png [moved from edje_src/images/call_edc/call_multi_hold_bg.png with 100% similarity]
edje_src/images/call_multi_hold_btn_merge_bg.png [moved from edje_src/images/call_edc/call_multi_hold_btn_merge_bg.png with 100% similarity]
edje_src/images/call_multi_hold_btn_swap_bg.png [moved from edje_src/images/call_edc/call_multi_hold_btn_swap_bg.png with 100% similarity]
edje_src/images/call_multi_ic_arrow.png [moved from edje_src/images/call_edc/call_multi_ic_arrow.png with 100% similarity]
edje_src/images/call_multi_ic_merge.png [moved from edje_src/images/call_edc/call_multi_ic_merge.png with 100% similarity]
edje_src/images/call_multi_ic_swap.png [moved from edje_src/images/call_edc/call_multi_ic_swap.png with 100% similarity]
edje_src/images/call_open_arrow_01.png [moved from edje_src/images/call_edc/call_open_arrow_01.png with 100% similarity]
edje_src/images/call_theme/bg/call_btn_circle.png [deleted file]
edje_src/images/call_theme/bg/core_button_bg.#.png [deleted file]
edje_src/images/caller_id/138x138/call_multi_photo_id.png [moved from edje_src/images/call_edc/caller_id/138x138/call_multi_photo_id.png with 100% similarity]
edje_src/images/caller_id/138x138/call_multi_photo_id_bg.png [moved from edje_src/images/call_edc/caller_id/138x138/call_multi_photo_id_bg.png with 100% similarity]
edje_src/images/caller_id/138x138/call_photo_id_conference.png [moved from edje_src/images/call_edc/caller_id/138x138/call_photo_id_conference.png with 100% similarity]
edje_src/images/caller_id/138x138/call_photo_id_emergency.png [moved from edje_src/images/call_edc/caller_id/138x138/call_photo_id_emergency.png with 100% similarity]
edje_src/images/caller_id/138x138/call_photo_id_messageinfo.png [moved from edje_src/images/call_edc/caller_id/138x138/call_photo_id_messageinfo.png with 100% similarity]
edje_src/images/caller_id/168x168/call_end_photo_id_bg.png [moved from edje_src/images/call_edc/caller_id/168x168/call_end_photo_id_bg.png with 100% similarity]
edje_src/images/caller_id/168x168/call_end_photo_id_default.png [moved from edje_src/images/call_edc/caller_id/168x168/call_end_photo_id_default.png with 100% similarity]
edje_src/images/caller_id/168x168/call_photo_id_conference.png [moved from edje_src/images/call_edc/caller_id/168x168/call_photo_id_conference.png with 100% similarity]
edje_src/images/caller_id/168x168/call_photo_id_emergency.png [moved from edje_src/images/call_edc/caller_id/168x168/call_photo_id_emergency.png with 100% similarity]
edje_src/images/caller_id/168x168/call_photo_id_messageinfo.png [moved from edje_src/images/call_edc/caller_id/168x168/call_photo_id_messageinfo.png with 100% similarity]
edje_src/images/caller_id/348x348/call_photo_id.png [moved from edje_src/images/call_edc/caller_id/348x348/call_photo_id.png with 100% similarity]
edje_src/images/caller_id/348x348/call_photo_id_bg.png [moved from edje_src/images/call_edc/caller_id/348x348/call_photo_id_bg.png with 100% similarity]
edje_src/images/caller_id/348x348/call_photo_id_conference.png [moved from edje_src/images/call_edc/caller_id/348x348/call_photo_id_conference.png with 100% similarity]
edje_src/images/caller_id/348x348/call_photo_id_emergency.png [moved from edje_src/images/call_edc/caller_id/348x348/call_photo_id_emergency.png with 100% similarity]
edje_src/images/caller_id/348x348/call_photo_id_messageinfo.png [moved from edje_src/images/call_edc/caller_id/348x348/call_photo_id_messageinfo.png with 100% similarity]
edje_src/images/caller_id/96x96/call_active_photo_id_bg.png [moved from edje_src/images/call_edc/caller_id/96x96/call_active_photo_id_bg.png with 100% similarity]
edje_src/images/caller_id/96x96/call_active_photo_id_default.png [moved from edje_src/images/call_edc/caller_id/96x96/call_active_photo_id_default.png with 100% similarity]
edje_src/images/caller_id/96x96/call_photo_id_conference.png [moved from edje_src/images/call_edc/caller_id/96x96/call_photo_id_conference.png with 100% similarity]
edje_src/images/caller_id/96x96/call_photo_id_emergency.png [moved from edje_src/images/call_edc/caller_id/96x96/call_photo_id_emergency.png with 100% similarity]
edje_src/images/caller_id/96x96/call_photo_id_messageinfo.png [moved from edje_src/images/call_edc/caller_id/96x96/call_photo_id_messageinfo.png with 100% similarity]
edje_src/images/core_bg.png [moved from edje_src/images/call_edc/background.png with 100% similarity]
edje_src/images/core_bg_dim.png [moved from edje_src/images/call_edc/background_dim.png with 100% similarity]
edje_src/images/core_button_add.png [moved from edje_src/images/call_edc/core_button_add.png with 100% similarity]
edje_src/images/keypad/keypad_english_01.png [moved from edje_src/images/call_edc/number/keypad_english_01.png with 100% similarity]
edje_src/images/keypad/keypad_english_02.png [moved from edje_src/images/call_edc/number/keypad_english_02.png with 100% similarity]
edje_src/images/keypad/keypad_english_03.png [moved from edje_src/images/call_edc/number/keypad_english_03.png with 100% similarity]
edje_src/images/keypad/keypad_english_04.png [moved from edje_src/images/call_edc/number/keypad_english_04.png with 100% similarity]
edje_src/images/keypad/keypad_english_05.png [moved from edje_src/images/call_edc/number/keypad_english_05.png with 100% similarity]
edje_src/images/keypad/keypad_english_06.png [moved from edje_src/images/call_edc/number/keypad_english_06.png with 100% similarity]
edje_src/images/keypad/keypad_english_07.png [moved from edje_src/images/call_edc/number/keypad_english_07.png with 100% similarity]
edje_src/images/keypad/keypad_english_08.png [moved from edje_src/images/call_edc/number/keypad_english_08.png with 100% similarity]
edje_src/images/keypad/keypad_english_09.png [moved from edje_src/images/call_edc/number/keypad_english_09.png with 100% similarity]
edje_src/images/keypad/keypad_english_10.png [moved from edje_src/images/call_edc/number/keypad_english_10.png with 100% similarity]
edje_src/images/keypad/keypad_english_11.png [moved from edje_src/images/call_edc/number/keypad_english_11.png with 100% similarity]
edje_src/images/keypad/keypad_english_13.png [moved from edje_src/images/call_edc/number/keypad_english_13.png with 100% similarity]
edje_src/images/keypad/keypad_number_00.png [moved from edje_src/images/call_edc/number/keypad_number_00.png with 100% similarity]
edje_src/images/keypad/keypad_number_01.png [moved from edje_src/images/call_edc/number/keypad_number_01.png with 100% similarity]
edje_src/images/keypad/keypad_number_02.png [moved from edje_src/images/call_edc/number/keypad_number_02.png with 100% similarity]
edje_src/images/keypad/keypad_number_03.png [moved from edje_src/images/call_edc/number/keypad_number_03.png with 100% similarity]
edje_src/images/keypad/keypad_number_04.png [moved from edje_src/images/call_edc/number/keypad_number_04.png with 100% similarity]
edje_src/images/keypad/keypad_number_05.png [moved from edje_src/images/call_edc/number/keypad_number_05.png with 100% similarity]
edje_src/images/keypad/keypad_number_06.png [moved from edje_src/images/call_edc/number/keypad_number_06.png with 100% similarity]
edje_src/images/keypad/keypad_number_07.png [moved from edje_src/images/call_edc/number/keypad_number_07.png with 100% similarity]
edje_src/images/keypad/keypad_number_08.png [moved from edje_src/images/call_edc/number/keypad_number_08.png with 100% similarity]
edje_src/images/keypad/keypad_number_09.png [moved from edje_src/images/call_edc/number/keypad_number_09.png with 100% similarity]
edje_src/images/keypad/keypad_number_asterisk.png [moved from edje_src/images/call_edc/number/keypad_number_asterisk.png with 100% similarity]
edje_src/images/keypad/keypad_number_sharp.png [moved from edje_src/images/call_edc/number/keypad_number_sharp.png with 100% similarity]
edje_src/images/quick_panel/call_noti_btn_bg.png [moved from edje_src/images/call_theme/bg/call_noti_btn_bg.png with 100% similarity]
edje_src/images/quick_panel/call_noti_btn_end.png [moved from edje_src/images/call_theme/icon/call_noti_btn_end.png with 100% similarity]
edje_src/images/quick_panel/call_noti_btn_mute.png [moved from edje_src/images/call_theme/icon/call_noti_btn_mute.png with 100% similarity]
edje_src/images/quick_panel/call_noti_btn_resume.png [moved from edje_src/images/call_theme/icon/call_noti_btn_resume.png with 100% similarity]
edje_src/images/quick_panel/call_noti_btn_send.png [moved from edje_src/images/call_theme/icon/call_noti_btn_send.png with 100% similarity]
edje_src/images/quick_panel/call_noti_btn_speaker.png [moved from edje_src/images/call_theme/icon/call_noti_btn_speaker.png with 100% similarity]
inc/callui-color-box.h
inc/callui-common-defines.h
inc/callui-common.h
res/edje/call.edc
res/edje/call_theme.edc [deleted file]
src/callui-action-bar.c
src/callui-common.c
src/callui-keypad.c
src/callui-touch-lock-manager.c
src/callui-view-callend.c
src/callui-view-circle.c
src/callui-view-dialing.c
src/callui-view-elements.c
src/callui-view-incoming-call-noti.c
src/callui-view-incoming-call.c
src/callui-view-manager.c
src/callui-view-multi-call-conf.c
src/callui-view-multi-call-list.c
src/callui-view-multi-call-split.c
src/callui-view-quickpanel.c
src/callui-view-single-call.c
src/callui.c

index 7b4023d..c4ea75a 100755 (executable)
@@ -75,40 +75,28 @@ ADD_CUSTOM_COMMAND(
                DEPENDS ${EDJE_DIR}/call.edc
                        ${INC_DIR}/callui-view-layout.h
                        ${EDC_SRC_DIR}/callui-color-classes.edc
-                       ${EDC_SRC_DIR}/callui-parts.edc
                        ${EDC_SRC_DIR}/callui-common-utils.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-image-macro.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-action-bar.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-keypad.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-caller-info.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-incoming-call.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-multi-call-list.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-main-layout.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-end-call.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-touch-lock-screen.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-quick-pannel.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-incoming-call-noti.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-multi-call-split.edc
-                       ${EDC_SRC_DIR}/call_edc/callui-view-elements.edc
+                       ${EDC_SRC_DIR}/callui-common-macro-part.edc
+                       ${EDC_SRC_DIR}/callui-common-macro-button.edc
+                       ${EDC_SRC_DIR}/callui-common-macro-image.edc
+                       ${EDC_SRC_DIR}/callui-view-end-call.edc
+                       ${EDC_SRC_DIR}/callui-action-bar.edc
+                       ${EDC_SRC_DIR}/callui-view-incoming-call.edc
+                       ${EDC_SRC_DIR}/callui-keypad.edc
+                       ${EDC_SRC_DIR}/callui-view-caller-info.edc
+                       ${EDC_SRC_DIR}/callui-view-main-layout.edc
+                       ${EDC_SRC_DIR}/callui-view-multi-call-list.edc
+                       ${EDC_SRC_DIR}/callui-view-touch-lock-screen.edc
+                       ${EDC_SRC_DIR}/callui-view-quick-pannel.edc
+                       ${EDC_SRC_DIR}/callui-view-incoming-call-noti.edc
+                       ${EDC_SRC_DIR}/callui-view-multi-call-split.edc
+                       ${EDC_SRC_DIR}/callui-view-elements.edc
 )
 
 ADD_CUSTOM_TARGET(call.edje ALL DEPENDS ${CMAKE_BINARY_DIR}/call.edj)
 
-ADD_CUSTOM_COMMAND(
-               OUTPUT ${CMAKE_BINARY_DIR}/call_theme.edj
-               COMMAND edje_cc -id ${EDC_IMG_DIR}
-               ${EDJE_CC_DEFINITIONS}
-               ${EDJE_DIR}/call_theme.edc ${CMAKE_BINARY_DIR}/call_theme.edj
-               DEPENDS ${EDJE_DIR}/call_theme.edc
-                       ${INC_DIR}/callui-view-layout.h
-                       ${EDC_SRC_DIR}/callui-color-classes.edc
-                       ${EDC_SRC_DIR}/callui-common-utils.edc
-)
-ADD_CUSTOM_TARGET(call_theme.edje ALL DEPENDS ${CMAKE_BINARY_DIR}/call_theme.edj)
-
 #install binary & edj files
 INSTALL(FILES ${CMAKE_BINARY_DIR}/call.edj DESTINATION ${EDJ_DIR})
-INSTALL(FILES ${CMAKE_BINARY_DIR}/call_theme.edj DESTINATION ${EDJ_DIR})
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BIN_DIR})
 INSTALL(DIRECTORY DESTINATION ${DATADIR})
diff --git a/edje_src/edc/call_edc/callui-action-bar.edc b/edje_src/edc/call_edc/callui-action-bar.edc
deleted file mode 100644 (file)
index 0478702..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2009-2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- */
-
-#define SWL_BUTTON(part_name, left, top, right, bottom) \
-       part { name: part_name; \
-               type: SWALLOW; \
-               scale: 1; \
-               description { \
-                       state: "default" 0.0; \
-                       rel1 { relative: left top; to: "background";} \
-                       rel2 { relative: right bottom; to: "background";} \
-               } \
-       }
-
-group{
-       name: "action_bar";
-       parts{
-               part { name: "background";
-                       type: RECT;
-                       description {
-                               state: "default" 0.0;
-                               color_class: "action_bar_divider";
-                       }
-               }
-
-               /*TOP FIRST BUTTON*/
-               SWL_BUTTON("swallow.top_first_btn", TOP_FIRST_BUTTON_L, TOP_FIRST_BUTTON_T,
-                       TOP_FIRST_BUTTON_R, TOP_FIRST_BUTTON_B)
-
-               /*TOP SECOND BUTTON*/
-               SWL_BUTTON("swallow.top_second_btn", TOP_SECOND_BUTTON_L, TOP_SECOND_BUTTON_T,
-                       TOP_SECOND_BUTTON_R, TOP_SECOND_BUTTON_B)
-
-               /*TOP THIRD BUTTON*/
-               SWL_BUTTON("swallow.top_third_btn", TOP_THIRD_BUTTON_L, TOP_THIRD_BUTTON_T,
-                       TOP_THIRD_BUTTON_R, TOP_THIRD_BUTTON_B)
-
-               /*BOTTOM FIRST BUTTON*/
-               SWL_BUTTON("swallow.bottom_first_btn", BOTTOM_FIRST_BUTTON_L, BOTTOM_FIRST_BUTTON_T,
-                       BOTTOM_FIRST_BUTTON_R, BOTTOM_FIRST_BUTTON_B)
-
-               /*BOTTOM SECOND BUTTON*/
-               SWL_BUTTON("swallow.bottom_second_btn", BOTTOM_SECOND_BUTTON_L, BOTTOM_SECOND_BUTTON_T,
-                       BOTTOM_SECOND_BUTTON_R, BOTTOM_SECOND_BUTTON_B)
-
-               /*BOTTOM THIRD BUTTON*/
-               SWL_BUTTON("swallow.bottom_third_btn", BOTTOM_THIRD_BUTTON_L, BOTTOM_THIRD_BUTTON_T,
-                       BOTTOM_THIRD_BUTTON_R, BOTTOM_THIRD_BUTTON_B)
-       }
-}
-
diff --git a/edje_src/edc/callui-action-bar.edc b/edje_src/edc/callui-action-bar.edc
new file mode 100644 (file)
index 0000000..f52bbd8
--- /dev/null
@@ -0,0 +1,575 @@
+/*
+ * Copyright (c) 2009-2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+#define ACTION_BAR_ICON_PATH IMG_SRC_DIR/"action_bar"
+
+styles {
+       style { name: "action_btn_norm";
+               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#808080ff align=center valign=center ellipsis=1.0";
+       }
+       style { name: "action_btn_active";
+               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#3db9ccff align=center valign=center ellipsis=1.0";
+       }
+       style { name: "action_btn_dim";
+               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#8080804c align=center valign=center ellipsis=1.0";
+       }
+}
+
+#define ACTION_BTN(grp_name, img1) \
+       group { name: "elm/button/base/"grp_name; \
+               images { \
+                       image: img1 COMP; \
+               } \
+               script { \
+                       public mouse_down = 0; \
+                       public multi_down = 0; \
+                       public disabled = 0; \
+                       public animate = 0; \
+               } \
+               parts { \
+                       part { name: "bg"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color_class: "action_bar_bg_norm"; \
+                               } \
+                       } \
+                       part { name: "bg_press"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color_class: "action_bar_bg_norm"; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       color_class: "action_bar_bg_pressed"; \
+                               } \
+                               description { "pressed_effect"; \
+                                       inherit: "pressed" 0.0; \
+                                       rel1.relative: 0.15 0.15; \
+                                       rel2.relative: 0.85 0.85; \
+                               } \
+                       } \
+                       part { name: "content_image"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       image.normal: img1; \
+                                       aspect: 0.5 1.0; \
+                                       rel1.relative: 0.0 (STYLE_ICN_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       rel2.relative: 1.0 (STYLE_ICN_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       aspect_preference: VERTICAL; \
+                                       color_class: "action_bar_icon_norm";\
+                                       visible: 1; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "action_bar_icon_dim"; \
+                               } \
+                       } \
+                       part { name: "elm.text"; \
+                               type: TEXTBLOCK; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       fixed: 1 1; \
+                                       rel1.relative: (STYLE_TXT_L_PAD/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       rel2.relative: (STYLE_TXT_R/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       min: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
+                                       max: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
+                                       text { \
+                                               style: "action_btn_norm"; \
+                                               min: 0 1; \
+                                       } \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       text { \
+                                               style: "action_btn_dim"; \
+                                               min: 0 1; \
+                                       } \
+                               } \
+                       } \
+                       part { name: "over"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color: COLOR_BG_ALPHA; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
+                               } \
+                       } \
+               } \
+               programs { \
+                       program { name: "pressed_effect"; \
+                               action: STATE_SET "pressed_effect" 0.0; \
+                               target: "bg_press"; \
+                               after: "pressed_effect2"; \
+                       } \
+                       program { name: "pressed_effect2"; \
+                               action: STATE_SET "pressed" 0.0; \
+                               target: "bg_press"; \
+                               transition: TRANSITION_GLIDE(0.15); \
+                               after: "pressed_effect3"; \
+                       } \
+                       program { name: "pressed_effect3"; \
+                               script { \
+                                       set_int(animate, 0); \
+                               } \
+                       } \
+                       program { name: "delay_unpressed_effect"; \
+                               in: 0.1 0.0; \
+                               after: "unpressed_effect"; \
+                       } \
+                       program { name: "unpressed_effect"; \
+                               script { \
+                                       if (get_int(disabled) == 0) { \
+                                               run_program(PROGRAM:"unpressed_effect2"); \
+                                       } else { \
+                                               run_program(PROGRAM:"disabled_effect2"); \
+                                               run_program(PROGRAM:"disabled_effect3"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed_effect2"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "bg_press"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect2"; \
+                               action: STATE_SET "disabled" 0.0; \
+                               target: "elm.text"; \
+                               target: "content_image"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect3"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "bg_press"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "pressed"; \
+                               signal: "mouse,down,1*"; \
+                               source: "over"; \
+                               script { \
+                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
+                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
+                                               set_int(mouse_down, 1); \
+                                               set_int(animate, 1); \
+                                               emit("elm,action,press", ""); \
+                                               run_program(PROGRAM:"pressed_effect"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed"; \
+                               signal: "mouse,up,1"; \
+                               source: "over"; \
+                               script { \
+                                       if (get_int(mouse_down) == 1) { \
+                                               set_int(mouse_down, 0); \
+                                               if (get_int(animate) == 0) { \
+                                                       run_program(PROGRAM:"unpressed_effect"); \
+                                               } else { \
+                                                       set_state(PART:"bg_press", "pressed", 0.0); \
+                                                       set_int(animate, 0); \
+                                                       run_program(PROGRAM:"delay_unpressed_effect"); \
+                                               } \
+                                               emit("elm,action,unpress", ""); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "touch_snd"; \
+                               signal: "mouse,clicked,1"; \
+                               source: "over"; \
+                                       script { \
+                                               if (get_int(multi_down) == 0) { \
+                                                       if (get_int(disabled) == 0) { \
+                                                               run_program(PROGRAM:"touch_sound"); \
+                                                               run_program(PROGRAM:"clicked_signal"); \
+                                                       } \
+                                               } \
+                                       } \
+                       } \
+                       program { name: "touch_sound"; \
+                               action: RUN_PLUGIN "touch_sound"; \
+                       } \
+                       program { name: "clicked_signal"; \
+                               in: 0.001 0.0; \
+                               action: SIGNAL_EMIT "elm,action,click" ""; \
+                       } \
+                       program { name: "disable"; \
+                               signal: "elm,state,disabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 1); \
+                                       if (get_int(animate) == 1) return; \
+                                       set_state(PART:"bg_press", "default", 0.0); \
+                                       set_state(PART:"elm.text", "disabled", 0.0); \
+                                       set_state(PART:"content_image", "disabled", 0.0); \
+                               } \
+                       } \
+                       program { name: "enable"; \
+                               signal: "elm,state,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 0); \
+                                       set_state(PART:"bg_press", "default", 0.0); \
+                                       set_state(PART:"elm.text", "default", 0.0); \
+                                       set_state(PART:"content_image", "default", 0.0); \
+                               } \
+                       } \
+                       program { name: "multi_down"; \
+                               signal: "elm,action,multi,down"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 1); \
+                               } \
+                       } \
+                       program { name: "multi_up"; \
+                               signal: "elm,action,multi,up"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 0); \
+                               } \
+                       } \
+               } \
+       }
+
+#define ACTION_BTN_TOGGLE(grp_name, img1) \
+       group { name: "elm/button/base/"grp_name; \
+               images { \
+                       image: img1 COMP; \
+                       image: ACTION_BAR_ICON_PATH"/call_onoff_bar.#.png" COMP; \
+               } \
+               script { \
+                       public mouse_down = 0; \
+                       public multi_down = 0; \
+                       public disabled = 0; \
+                       public animate = 0; \
+                       public activated = 0; \
+               } \
+               parts { \
+                       part { name: "bg"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       visible: 1; \
+                                       color_class: "action_bar_bg_norm"; \
+                               } \
+                       } \
+                       part { name: "bg_press"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color_class: "action_bar_bg_norm"; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       color_class: "action_bar_bg_pressed"; \
+                               } \
+                               description { "pressed_effect"; \
+                                       inherit: "pressed" 0.0; \
+                                       rel1.relative: 0.15 0.15; \
+                                       rel2.relative: 0.85 0.85; \
+                               } \
+                       } \
+                       part { name: "content_image"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       image.normal: img1; \
+                                       aspect: 0.5 1.0; \
+                                       rel1.relative: 0.0 (STYLE_ICN_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       rel2.relative: 1.0 (STYLE_ICN_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       aspect_preference: VERTICAL; \
+                                       color_class: "action_bar_icon_norm";\
+                                       visible: 1; \
+                               } \
+                               description { state: "active" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "action_bar_icon_on"; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "action_bar_icon_dim"; \
+                               } \
+                       } \
+                       part { name: "elm.text"; \
+                               type: TEXTBLOCK; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       fixed: 1 1; \
+                                       rel1.relative: (STYLE_TXT_L_PAD/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       rel2.relative: (STYLE_TXT_R/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       min: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
+                                       max: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
+                                       text { \
+                                               style: "action_btn_norm"; \
+                                               min: 0 1; \
+                                       } \
+                               } \
+                               description { state: "active" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       text { \
+                                               style: "action_btn_active"; \
+                                               min: 0 1; \
+                                       } \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       text { \
+                                               style: "action_btn_dim"; \
+                                               min: 0 1; \
+                                       } \
+                               } \
+                       } \
+                       part { name: "toggle_bar_image"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       image.normal: ACTION_BAR_ICON_PATH"/call_onoff_bar.#.png"; \
+                                       rel1.relative: (STYLE_ONOFF_BAR_L_PAD/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_ONOFF_BAR_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       rel2.relative: (STYLE_ONOFF_BAR_R/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_ONOFF_BAR_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
+                                       color_class: "action_bar_onoff_bar_norm";\
+                                       visible: 1; \
+                               } \
+                               description { state: "active" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "action_bar_onoff_bar_on"; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "action_bar_onoff_bar_dim"; \
+                               } \
+                       } \
+                       part { name: "over"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color: COLOR_BG_ALPHA; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
+                               } \
+                       } \
+               } \
+               programs { \
+                       program { name: "pressed_effect"; \
+                               action: STATE_SET "pressed_effect" 0.0; \
+                               target: "bg_press"; \
+                               after: "pressed_effect2"; \
+                       } \
+                       program { name: "pressed_effect2"; \
+                               action: STATE_SET "pressed" 0.0; \
+                               target: "bg_press"; \
+                               transition: TRANSITION_GLIDE(0.15); \
+                               after: "pressed_effect3"; \
+                       } \
+                       program { name: "pressed_effect3"; \
+                               script { \
+                                       set_int(animate, 0); \
+                               } \
+                       } \
+                       program { name: "delay_unpressed_effect"; \
+                               in: 0.1 0.0; \
+                               after: "unpressed_effect"; \
+                       } \
+                       program { name: "unpressed_effect"; \
+                               script { \
+                                       if (get_int(disabled) == 0) { \
+                                               run_program(PROGRAM:"unpressed_effect2"); \
+                                       } else { \
+                                               run_program(PROGRAM:"disabled_effect2"); \
+                                               run_program(PROGRAM:"disabled_effect3"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed_effect2"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "bg_press"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect2"; \
+                               action: STATE_SET "disabled" 0.0; \
+                               target: "elm.text"; \
+                               target: "content_image"; \
+                               target: "toggle_bar_image"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect3"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "bg_press"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "pressed"; \
+                               signal: "mouse,down,1*"; \
+                               source: "over"; \
+                               script { \
+                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
+                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
+                                               set_int(mouse_down, 1); \
+                                               set_int(animate, 1); \
+                                               emit("elm,action,press", ""); \
+                                               run_program(PROGRAM:"pressed_effect"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed"; \
+                               signal: "mouse,up,1"; \
+                               source: "over"; \
+                               script { \
+                                       if (get_int(mouse_down) == 1) { \
+                                               set_int(mouse_down, 0); \
+                                               if (get_int(animate) == 0) { \
+                                                       run_program(PROGRAM:"unpressed_effect"); \
+                                               } else { \
+                                                       set_state(PART:"bg_press", "pressed", 0.0); \
+                                                       set_int(animate, 0); \
+                                                       run_program(PROGRAM:"delay_unpressed_effect"); \
+                                               } \
+                                               emit("elm,action,unpress", ""); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "touch_snd"; \
+                               signal: "mouse,clicked,1"; \
+                               source: "over"; \
+                                       script { \
+                                               if (get_int(multi_down) == 0) { \
+                                                       if (get_int(disabled) == 0) { \
+                                                               run_program(PROGRAM:"touch_sound"); \
+                                                               run_program(PROGRAM:"clicked_signal"); \
+                                                       } \
+                                               } \
+                                       } \
+                       } \
+                       program { name: "touch_sound"; \
+                               action: RUN_PLUGIN "touch_sound"; \
+                       } \
+                       program { name: "clicked_signal"; \
+                               in: 0.001 0.0; \
+                               action: SIGNAL_EMIT "elm,action,click" ""; \
+                       } \
+                       program { name: "disable"; \
+                               signal: "elm,state,disabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 1); \
+                                       if (get_int(animate) == 1) return; \
+                                       set_state(PART:"bg_press", "default", 0.0); \
+                                       set_state(PART:"elm.text", "disabled", 0.0); \
+                                       set_state(PART:"content_image", "disabled", 0.0); \
+                                       set_state(PART:"toggle_bar_image", "disabled", 0.0); \
+                               } \
+                       } \
+                       program { name: "enable"; \
+                               signal: "elm,state,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 0); \
+                                       if (get_int(activated) == 0) { \
+                                               set_state(PART:"elm.text", "default", 0.0); \
+                                               set_state(PART:"content_image", "default", 0.0); \
+                                               set_state(PART:"toggle_bar_image", "default", 0.0); \
+                                       } else { \
+                                               set_state(PART:"elm.text", "active", 0.0); \
+                                               set_state(PART:"content_image", "active", 0.0); \
+                                               set_state(PART:"toggle_bar_image", "active", 0.0); \
+                                       } \
+                                       set_state(PART:"bg_press", "default", 0.0); \
+                               } \
+                       } \
+                       program { name: "multi_down"; \
+                               signal: "elm,action,multi,down"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 1); \
+                               } \
+                       } \
+                       program { name: "multi_up"; \
+                               signal: "elm,action,multi,up"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 0); \
+                               } \
+                       } \
+                       program { name: "activate"; \
+                               signal: "activate"; \
+                               source: "action_btn"; \
+                               script { \
+                                       if (get_int(disabled) == 0) { \
+                                               set_state(PART:"elm.text", "active", 0.0); \
+                                               set_state(PART:"content_image", "active", 0.0); \
+                                               set_state(PART:"toggle_bar_image", "active", 0.0); \
+                                       } \
+                                       set_int(activated, 1); \
+                               } \
+                       } \
+                       program { name: "deactivate"; \
+                               signal: "deactivate"; \
+                               source: "action_btn"; \
+                               script { \
+                                       if (get_int(disabled) == 0)  { \
+                                               set_state(PART:"elm.text", "default", 0.0); \
+                                               set_state(PART:"content_image", "default", 0.0); \
+                                               set_state(PART:"toggle_bar_image", "default", 0.0); \
+                                       } \
+                                       set_int(activated, 0); \
+                               } \
+                       } \
+               } \
+       }
+
+#define SWL_BUTTON(part_name, left, top, right, bottom) \
+       part { name: part_name; \
+               type: SWALLOW; \
+               scale: 1; \
+               description { \
+                       state: "default" 0.0; \
+                       rel1 { relative: left top; to: "background";} \
+                       rel2 { relative: right bottom; to: "background";} \
+               } \
+       }
+
+group{
+       name: "action_bar";
+       parts{
+               part { name: "background";
+                       type: RECT;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               color_class: "action_bar_divider";
+                       }
+               }
+               SWL_BUTTON("swallow.top_first_btn", TOP_FIRST_BUTTON_L, TOP_FIRST_BUTTON_T,
+                       TOP_FIRST_BUTTON_R, TOP_FIRST_BUTTON_B)
+               SWL_BUTTON("swallow.top_second_btn", TOP_SECOND_BUTTON_L, TOP_SECOND_BUTTON_T,
+                       TOP_SECOND_BUTTON_R, TOP_SECOND_BUTTON_B)
+               SWL_BUTTON("swallow.top_third_btn", TOP_THIRD_BUTTON_L, TOP_THIRD_BUTTON_T,
+                       TOP_THIRD_BUTTON_R, TOP_THIRD_BUTTON_B)
+               SWL_BUTTON("swallow.bottom_first_btn", BOTTOM_FIRST_BUTTON_L, BOTTOM_FIRST_BUTTON_T,
+                       BOTTOM_FIRST_BUTTON_R, BOTTOM_FIRST_BUTTON_B)
+               SWL_BUTTON("swallow.bottom_second_btn", BOTTOM_SECOND_BUTTON_L, BOTTOM_SECOND_BUTTON_T,
+                       BOTTOM_SECOND_BUTTON_R, BOTTOM_SECOND_BUTTON_B)
+               SWL_BUTTON("swallow.bottom_third_btn", BOTTOM_THIRD_BUTTON_L, BOTTOM_THIRD_BUTTON_T,
+                       BOTTOM_THIRD_BUTTON_R, BOTTOM_THIRD_BUTTON_B)
+       }
+}
+
+ACTION_BTN("callui_action_btn_add", ACTION_BAR_ICON_PATH"/call_btn_addcall.png")
+ACTION_BTN("callui_action_btn_keypad", ACTION_BAR_ICON_PATH"/call_btn_keypad.png")
+ACTION_BTN("callui_action_btn_contacts", ACTION_BAR_ICON_PATH"/call_btn_contacts.png")
+
+ACTION_BTN_TOGGLE("callui_action_btn_speaker", ACTION_BAR_ICON_PATH"/call_btn_volume.png")
+ACTION_BTN_TOGGLE("callui_action_btn_mute", ACTION_BAR_ICON_PATH"/call_btn_mute.png")
+ACTION_BTN_TOGGLE("callui_action_btn_headset", ACTION_BAR_ICON_PATH"/call_btn_bluetooth.png")
+
diff --git a/edje_src/edc/callui-common-macro-button.edc b/edje_src/edc/callui-common-macro-button.edc
new file mode 100644 (file)
index 0000000..c540fd9
--- /dev/null
@@ -0,0 +1,414 @@
+/*
+ * Copyright (c) 2009-2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+#define CU_CIRCLE_BTN_DEF_ICON_SIZE    60 60
+
+#define CIRCLE_BTN_WITH_ICON(grp_name, btn_size, btn_bg_color_norm, btn_bg_color_dim, btn_icon_path, btn_icon_color_norm) \
+       group { name: "elm/button/base/"grp_name; \
+               data.item: "vector_ux" "circle"; \
+               images { \
+                       image: btn_icon_path COMP; \
+               } \
+               script { \
+                       public mouse_down = 0; \
+                       public multi_down = 0; \
+                       public disabled = 0; \
+                       public animate = 0; \
+               } \
+               parts { \
+                       part { name: "base"; \
+                               scale: 1; \
+                               type: SPACER; \
+                               description { state: "default" 0.0; \
+                                       min: btn_size btn_size; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape"; \
+                               type: SWALLOW; \
+                               clip_to: "tizen_vg_shape_clipper"; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       min: btn_size btn_size; \
+                                       rel1.relative: 0.5 0; \
+                                       rel2.relative: 0.5 0; \
+                                       align: 0.5 0; \
+                                       fixed: 1 1; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape_clipper"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color_class: btn_bg_color_norm; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       color_class: btn_bg_color_dim; \
+                               } \
+                       } \
+                       part { name: "effect_spacer"; \
+                               type: SPACER; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "tizen_vg_shape"; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape2"; \
+                               type: SWALLOW; \
+                               clip_to: "tizen_vg_shape_clipper2"; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1.to: "effect_spacer"; \
+                                       rel2.to: "effect_spacer"; \
+                                       rel1.relative: 0.15 0.15; \
+                                       rel2.relative: 0.85 0.85; \
+                               } \
+                               description { state: "ready" 0.0; \
+                                       inherit: "default" 0.0; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       rel1.relative: 0.0 0.0; \
+                                       rel2.relative: 1.0 1.0; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape_clipper2"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       visible: 0; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                               description { state: "ready" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       visible: 1; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       color: 0 0 0 77; \
+                               } \
+                       } \
+                       part { name: "elm.icon"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               clip_to: "clipper"; \
+                               description { state: "default" 0.0; \
+                                       min: CU_CIRCLE_BTN_DEF_ICON_SIZE; \
+                                       aspect_preference: SOURCE; \
+                                       color_class: btn_icon_color_norm; \
+                                       fixed: 1 1; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "tizen_vg_shape"; \
+                                       rel1.relative: 0.5 0.5; \
+                                       rel2.relative: 0.5 0.5; \
+                                       image { \
+                                               normal: btn_icon_path; \
+                                               middle: DEFAULT; \
+                                       } \
+                               } \
+                       } \
+                       part { name: "clipper"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       color: 255 255 255 127; \
+                               } \
+                       } \
+                       part { name: "event"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "elm.icon"; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                       } \
+               } \
+               programs { \
+                       program { name: "pressed_effect"; \
+                               action: STATE_SET "ready" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               after: "pressed_effect2"; \
+                       } \
+                       program { name: "pressed_effect2"; \
+                               action: STATE_SET "pressed" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               target: "clipper"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               transition: TRANSITION_GLIDE(0.15); \
+                               after: "pressed_effect3"; \
+                       } \
+                       program { name: "pressed_effect3"; \
+                               script { \
+                                       set_int(animate, 0); \
+                               } \
+                       } \
+                       program { name: "delay_unpressed_effect"; \
+                               in: 0.1 0.0; \
+                               after: "unpressed_effect"; \
+                       } \
+                       program { name: "unpressed_effect"; \
+                               script { \
+                                       if (get_int(disabled) == 0) { \
+                                               run_program(PROGRAM:"unpressed_effect2"); \
+                                       } else { \
+                                               run_program(PROGRAM:"disabled_effect"); \
+                                               run_program(PROGRAM:"disabled_effect3"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed_effect2"; \
+                               action: STATE_SET "ready" 0.0; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                               after: "unpressed_effect4"; \
+                       } \
+                       program { name: "unpressed_effect4"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "clipper"; \
+                               after: "finished_animation"; \
+                       } \
+                       program { name: "disabled_effect"; \
+                               action: STATE_SET "ready" 0.0; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect3"; \
+                               action: STATE_SET "disabled" 0.0; \
+                               target: "clipper"; \
+                               target: "tizen_vg_shape_clipper"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                               after: "finished_animation"; \
+                       } \
+                       program { name: "finished_animation"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                       } \
+                       program { name: "pressed"; \
+                               signal: "mouse,down,1*"; \
+                               source: "event"; \
+                               script { \
+                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
+                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
+                                               set_int(mouse_down, 1); \
+                                               set_int(animate, 1); \
+                                               emit("elm,action,press", ""); \
+                                               run_program(PROGRAM:"pressed_effect"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed"; \
+                               signal: "mouse,up,1"; \
+                               source: "event"; \
+                               script { \
+                                       if (get_int(mouse_down) == 1) { \
+                                               set_int(mouse_down, 0); \
+                                               if (get_int(disabled) == 0) { \
+                                                       if (get_int(animate) == 0) { \
+                                                               emit("elm,action,unpress", ""); \
+                                                               run_program(PROGRAM:"unpressed_effect"); \
+                                                       } else { \
+                                                               set_state(PART:"clipper", "pressed", 0.0); \
+                                                               set_state(PART:"tizen_vg_shape2", "pressed", 0.0); \
+                                                               set_state(PART:"tizen_vg_shape_clipper2", "pressed", 0.0); \
+                                                               set_int(animate, 0); \
+                                                               run_program(PROGRAM:"delay_unpressed_effect"); \
+                                                       } \
+                                               } \
+                                       } \
+                               } \
+                       } \
+                       program { name: "touch_snd"; \
+                               signal: "mouse,clicked,1"; \
+                               source: "event"; \
+                               script { \
+                                       if (get_int(multi_down) == 0) { \
+                                               if (get_int(disabled) == 0) { \
+                                                       run_program(PROGRAM:"touch_sound"); \
+                                                       run_program(PROGRAM:"clicked_signal"); \
+                                               } \
+                                       } \
+                               } \
+                       } \
+                       program { name: "touch_sound"; \
+                               action: RUN_PLUGIN "touch_sound"; \
+                       } \
+                       program { name: "clicked_signal"; \
+                               in: 0.001 0.0; \
+                               action: SIGNAL_EMIT "elm,action,click" ""; \
+                       } \
+                       program { name: "disable"; \
+                               signal: "elm,state,disabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 1); \
+                                       if (get_int(animate) == 1) return; \
+                                       set_state(PART:"clipper", "disabled", 0.0); \
+                                       set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0); \
+                               } \
+                       } \
+                       program { name: "enable"; \
+                               signal: "elm,state,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 0); \
+                                       set_state(PART:"clipper", "default", 0.0); \
+                                       set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); \
+                               } \
+                       } \
+                       program { name: "multi_down"; \
+                               signal: "elm,action,multi,down"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 1); \
+                               } \
+                       } \
+                       program { name: "multi_up"; \
+                               signal: "elm,action,multi,up"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 0); \
+                               } \
+                       } \
+                       program { name: "pass_event_enable"; \
+                               signal: "elm,event,pass,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_mouse_events(PART:"event", 0); \
+                               } \
+                       } \
+                       program { name: "pass_event_disable"; \
+                               signal: "elm,event,pass,disabled"; \
+                               source:"elm"; \
+                               script { \
+                                       set_mouse_events(PART:"event", 1); \
+                               } \
+                       } \
+                       program { name: "repeat_event_enable"; \
+                               signal: "elm,event,repeat,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_mouse_events(PART:"event", 1); \
+                               } \
+                       } \
+                       program { name: "repeat_event_disable"; \
+                               signal: "elm,event,repeat,disabled"; \
+                               source:"elm"; \
+                               script { \
+                                       set_mouse_events(PART:"event", 0); \
+                               } \
+                       } \
+               } \
+       }
+
+#define PRESS_EFFECT_DEFAULT_SCRIPT_VAR \
+       public mouse_down = 0; \
+       public multi_down = 0; \
+       public animate = 0; \
+
+#define PRESS_EFFECT_DEFAULT_PROGRAMS \
+       program { name: "pressed_effect"; \
+               action: STATE_SET "pressed_effect" 0.0; \
+               target: "bg_press"; \
+               after: "pressed_effect2"; \
+       } \
+       program { name: "pressed_effect2"; \
+               action: STATE_SET "pressed" 0.0; \
+               target: "bg_press"; \
+               transition: TRANSITION_GLIDE(0.15); \
+               after: "pressed_effect3"; \
+       } \
+       program { name: "pressed_effect3"; \
+               script { \
+                       set_int(animate, 0); \
+               } \
+       } \
+       program { name: "delay_unpressed_effect"; \
+               in: 0.1 0.0; \
+               after: "unpressed_effect"; \
+       } \
+       program { name: "unpressed_effect"; \
+               action: STATE_SET "default" 0.0; \
+               target: "bg_press"; \
+               transition: TRANSITION_GLIDE(0.45); \
+       } \
+       program { name: "pressed"; \
+               signal: "mouse,down,1*"; \
+               source: "over"; \
+               script { \
+                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) { \
+                               stop_program(PROGRAM:"delay_unpressed_effect"); \
+                               set_int(mouse_down, 1); \
+                               set_int(animate, 1); \
+                               emit("elm,action,press", ""); \
+                               run_program(PROGRAM:"pressed_effect"); \
+                       } \
+               } \
+       } \
+       program { name: "unpressed"; \
+               signal: "mouse,up,1"; \
+               source: "over"; \
+               script { \
+                       if (get_int(mouse_down) == 1) { \
+                               set_int(mouse_down, 0); \
+                               if (get_int(animate) == 0) { \
+                                       run_program(PROGRAM:"unpressed_effect"); \
+                               } else { \
+                                       set_state(PART:"bg_press", "pressed", 0.0); \
+                                       set_int(animate, 0); \
+                                       run_program(PROGRAM:"delay_unpressed_effect"); \
+                               } \
+                               emit("elm,action,unpress", ""); \
+                       } \
+               } \
+       } \
+       program { name: "touch_snd"; \
+               signal: "mouse,clicked,1"; \
+               source: "over"; \
+                       script { \
+                               if (get_int(multi_down) == 0) { \
+                                       run_program(PROGRAM:"touch_sound"); \
+                                       run_program(PROGRAM:"clicked_signal"); \
+                               } \
+                       } \
+       } \
+       program { name: "touch_sound"; \
+               action: RUN_PLUGIN "touch_sound"; \
+       } \
+       program { name: "clicked_signal"; \
+               in: 0.001 0.0; \
+               action: SIGNAL_EMIT "elm,action,click" ""; \
+       } \
+       program { name: "multi_down"; \
+               signal: "elm,action,multi,down"; \
+               source: "elm"; \
+               script { \
+                       set_int(multi_down, 1); \
+               } \
+       } \
+       program { name: "multi_up"; \
+               signal: "elm,action,multi,up"; \
+               source: "elm"; \
+               script { \
+                       set_int(multi_down, 0); \
+               } \
+       } \
index 8c9452c..68919cd 100644 (file)
@@ -15,4 +15,7 @@
  *
  */
 
-#define TRANSITION_GLIDE(duration) CUBIC_BEZIER (duration) 0.25 0.46 0.45 1.0
\ No newline at end of file
+// TODO need to be removed separately
+#define        IMG_SRC_DIR ""
+
+#define TRANSITION_GLIDE(duration) CUBIC_BEZIER (duration) 0.25 0.46 0.45 1.0
similarity index 99%
rename from edje_src/edc/call_edc/callui-keypad.edc
rename to edje_src/edc/callui-keypad.edc
index 5ed3c10..9ed8e49 100644 (file)
@@ -15,7 +15,7 @@
  *
  */
 
-#define CU_KEYPAD_NUM_IMG_SRC_DIR                      IMG_SRC_DIR/"number"
+#define CU_KEYPAD_NUM_IMG_SRC_DIR                      IMG_SRC_DIR/"keypad"
 
 #define CU_KEYPAD_ANIMATION_DURATION           0.8
 #define CU_KEYPAD_ANIMATION_DELAY                      0.6 0.0
similarity index 97%
rename from edje_src/edc/call_edc/callui-view-elements.edc
rename to edje_src/edc/callui-view-elements.edc
index 4bcfad6..f959704 100644 (file)
@@ -260,3 +260,5 @@ group { name: "caller_id";
                }
        }
 }
+
+CIRCLE_BTN_WITH_ICON("callui_circle_bottom_end_call", ENDCALL_BTN_SIZE, "bottom_bar_end_call", "bottom_bar_end_call", IMG_SRC_DIR/"call_btn_ic_reject.png", "btn_icon_def_color")
similarity index 75%
rename from edje_src/edc/call_edc/callui-view-end-call.edc
rename to edje_src/edc/callui-view-end-call.edc
index 0a5a64e..205e76c 100644 (file)
 #define EC_LAYOUT_MINIMIZE_SIZE                                (CALL_STATUS_TXT_PAD_TOP + CALL_STATUS_TXT_HEIGHT + EC_STATE_TXT_PAD_CONT_ICON + EC_CONT_ICON_DIMENT + EC_CONT_ICON_PAD_BOTTOM)
 #define EC_REPLY_BTN_HEIGHT                                    190
 
+// REPLY BUTTONS DEFINES
+
+#define EC_REPLY_BTN_HEIGHT                                    190
+#define EC_REPLY_BTN_ICON_PAD_TOP                      36
+#define EC_REPLY_BTN_ICON_DIMENT                       64
+#define EC_REPLY_BTN_TXT_HEIGHT                                38
+#define EC_REPLY_BTN_TXT_PAD_REPLY_BTN_ICON    20
+#define EC_REPLY_BTN_TXT_PAD_TOP                       (EC_REPLY_BTN_ICON_PAD_TOP + EC_REPLY_BTN_ICON_DIMENT + EC_REPLY_BTN_TXT_PAD_REPLY_BTN_ICON)
+#define EC_REPLY_BTN_ICON_SIZE                         EC_REPLY_BTN_ICON_DIMENT EC_REPLY_BTN_ICON_DIMENT
+
 styles {
        style { name: "ec_contact_name";
                base: "font=Tizen:style=Light font_size=56 color=#fafafaff align=left ellipsis=1.0";
@@ -79,23 +89,125 @@ styles {
        style { name: "ec_call_status";
                base: "font=Tizen:style=Regular font_size=40 color=#fafafaff align=left ellipsis=1.0";
        }
+       style { name: "ec_reply_btn";
+               base: "font=Tizen:style=Regular font_size=28 text_class=tizen color=#808080ff align=center valign=center ellipsis=1.0";
+       }
 }
 
+#define END_CALL_REPLY_BTN(grp_name, img_path) \
+       group { name: "elm/button/base/"grp_name; \
+               images { \
+                       image: img_path COMP; \
+               } \
+               script { \
+                       PRESS_EFFECT_DEFAULT_SCRIPT_VAR \
+               } \
+               parts { \
+                       part { name: "bg"; \
+                               type: RECT; \
+                               scale: 1 ; \
+                               description { state: "default" 0.0; \
+                                       min: 0 EC_REPLY_BTN_HEIGHT; \
+                                       color_class: "ec_reply_btn_bg_norm"; \
+                               } \
+                       } \
+                       part { "bg_press"; \
+                               type: RECT; \
+                               scale: 1 ; \
+                               description { state: "default" 0.0; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
+                                       color_class: "ec_reply_btn_bg_norm"; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "ec_reply_btn_bg_pressed"; \
+                               } \
+                               description { state: "pressed_effect" 0.0; \
+                                       inherit: "pressed" 0.0; \
+                                       rel1 { relative: 0.15 0.15; to: "bg"; } \
+                                       rel2 { relative: 0.85 0.85; to: "bg"; } \
+                               } \
+                       } \
+                       part { name: "icon.padding.top"; \
+                               type: SPACER; \
+                               scale: 1 ; \
+                               description { state: "default" 0.0; \
+                                       min: 0 EC_REPLY_BTN_ICON_PAD_TOP; \
+                                       fixed: 0 1; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 0.0; to: "bg"; } \
+                                       align: 0.0 0.0; \
+                               } \
+                       } \
+                       part { name: "icon"; \
+                               type: IMAGE; \
+                               scale: 1 ; \
+                               description { state: "default" 0.0; \
+                                       rel1 { relative: 0.0 1.0; to: "icon.padding.top"; } \
+                                       rel2 { relative: 1.0 1.0; to: "icon.padding.top"; } \
+                                       min: EC_REPLY_BTN_ICON_SIZE; \
+                                       max: EC_REPLY_BTN_ICON_SIZE; \
+                                       fixed: 1 1; \
+                                       image.normal: img_path; \
+                                       color_class: "ec_reply_btn_icon"; \
+                                       align: 0.5 0.0; \
+                               } \
+                       } \
+                       part { name: "text.padding.top"; \
+                               type: SPACER; \
+                               scale: 1 ; \
+                               description { state: "default" 0.0; \
+                                       min: 0 EC_REPLY_BTN_TXT_PAD_TOP; \
+                                       fixed: 0 1; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 0.0; to: "bg"; } \
+                                       align: 0.0 0.0; \
+                               } \
+                       } \
+                       part { name: "text"; \
+                               type: TEXTBLOCK; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1 { relative: 0.0 1.0; to: "text.padding.top"; } \
+                                       rel2 { relative: 1.0 1.0; to: "text.padding.top"; } \
+                                       min: 0 EC_REPLY_BTN_TXT_HEIGHT; \
+                                       text { \
+                                               fit: 1 1; \
+                                               style:"ec_reply_btn"; \
+                                       } \
+                               } \
+                       } \
+                       part { name: "over"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color: COLOR_BG_ALPHA; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
+                               } \
+                       } \
+               } \
+               programs { \
+                       PRESS_EFFECT_DEFAULT_PROGRAMS \
+               } \
+       }
+
 group { name: "end_call_view_ly";
        images {
-               image: IMG_SRC_DIR/"background.png" COMP;
-               image: IMG_SRC_DIR/"background_dim.png" COMP;
+               image: IMG_SRC_DIR/"core_bg.png" COMP;
+               image: IMG_SRC_DIR/"core_bg_dim.png" COMP;
        }
        parts {
                CU_PART_IMAGE( "dim_bg",
                        description { state: "default" 0.0;
-                               image.normal: IMG_SRC_DIR/"background_dim.png";
+                               image.normal: IMG_SRC_DIR/"core_bg_dim.png";
                        }
                )
                CU_PART_IMAGE( "bg",
                        clip_to: "content.clipper";
                        description { state: "default" 0.0;
-                               image.normal: IMG_SRC_DIR/"background.png";
+                               image.normal: IMG_SRC_DIR/"core_bg.png";
                        }
                )
                CU_PART_SPACER( "content.clipper.maximized",
@@ -371,3 +483,6 @@ group { name: "end_call_view_ly";
                }
        }
 }
+
+END_CALL_REPLY_BTN("callui_endcall_callback", IMG_SRC_DIR/"call_end_call.png")
+END_CALL_REPLY_BTN("callui_endcall_message", IMG_SRC_DIR/"call_end_message.png")
 #define AN_RM_ITEM_ADD_ICON_PAD_LEFT   32
 #define AN_RM_ITEM_ADD_ICON_SIZE               80 80
 
+#define AN_BTN_MIN_W                                   50
+#define AN_BTN_MIN_H                                   78
+#define AN_BTN_CORNER_RADIUS                   "39"
+#define AN_BTN_PAD_ICON_R                              14
+#define AN_BTN_PAD_LR                                  22
+#define AN_BTN_PAD_TOP_H                               0
+#define AN_BTN_PAD_BOTTOM_H                            4
+#define AN_BTN_ICON_DEF_H                              60
+#define AN_BTN_ICON_DEF_W                              60
+
 #define AO024  0 0 0 77
 #define AO026  0 0 0 26
 #define AO027  0 0 0 77
 
 styles {
        style { name: "an_contacts_name";
-               base: "font=Tizen:style=Regular font_size=40 color=#fafafaff align=left ellipsis=1.0";
+               base: "font=Tizen:style=Regular font_size=40 color=#fafafaff align=left valign=center ellipsis=1.0";
        }
        style { name: "an_contacts_info";
-               base: "font=Tizen:style=Regular font_size=32 color=#fafafaff align=left ellipsis=1.0";
+               base: "font=Tizen:style=Regular font_size=32 color=#fafafaff align=left valign=center ellipsis=1.0";
        }
        style { name: "an_reject_msg_item";
-               base: "font=Tizen:style=Regular font_size=40 color=#fafafaff align=left ellipsis=1.0";
+               base: "font=Tizen:style=Regular font_size=40 color=#fafafaff align=left valign=center ellipsis=1.0";
+       }
+       style { name: "an_button";
+               base: "font=Tizen:style=Regular font_size=40 color=#ffffffff align=center valign=center ellipsis=1.0";
        }
 }
 
-RESOURCE_IMAGE("call_end_ic_call", IMG_SRC_DIR/"call_end_ic_call.png");
-RESOURCE_IMAGE("call_end_ic_end", IMG_SRC_DIR/"call_end_ic_end.png");
+#define ACTIVE_NOTI_BTN(grp_name, bg_color_normal, bg_color_dim) \
+       group { name: "elm/button/base/"grp_name; \
+               data.item: "vector_ux" "default"; \
+               data.item: "corner_radius" AN_BTN_CORNER_RADIUS; \
+               script { \
+                       public mouse_down = 0; \
+                       public multi_down = 0; \
+                       public disabled = 0; \
+                       public text = 0; \
+                       public content = 0; \
+                       public animate = 0; \
+                       public selected = 0; \
+                       public minw = 0; \
+                       public minh = 0; \
+                       public get_effect_min_size(base_effect, Float:ratio, min_w, min_h) { \
+                               new x, y, w, h; \
+                               get_geometry(base_effect, x, y, w, h); \
+                               if (w > h) { \
+                                       set_float(min_w, (w - h * (1 - ratio)) / w); \
+                                       set_float(min_h, ratio); \
+                               } else { \
+                                       set_float(min_w, ratio); \
+                                       set_float(min_h, (h - w * (1 - ratio)) / h); \
+                               } \
+                       } \
+               } \
+               parts { \
+                       part { name: "base"; \
+                               scale: 1; \
+                               type: SPACER; \
+                               description { state: "default" 0.0; \
+                                       min: AN_BTN_MIN_W AN_BTN_MIN_H; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape"; \
+                               type: SWALLOW; \
+                               clip_to: "tizen_vg_shape_clipper"; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       min: 0 AN_BTN_MIN_H; \
+                                       rel1.relative: 0 0.0; \
+                                       rel2.relative: 1 1.0; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape_clipper"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color_class: bg_color_normal; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       color_class: bg_color_dim; \
+                               } \
+                       } \
+                       part { name: "effect_spacer"; \
+                               type: SPACER; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "tizen_vg_shape"; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape2"; \
+                               type: SWALLOW; \
+                               clip_to: "tizen_vg_shape_clipper2"; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       fixed: 1 1; \
+                                       rel1.relative: 0.5 0.5; \
+                                       rel2.relative: 0.5 0.5; \
+                               } \
+                               description { state: "ready" 0.0; \
+                                       rel1.to: "effect_spacer"; \
+                                       rel2.to: "effect_spacer"; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       inherit: "ready" 0.0; \
+                               } \
+                       } \
+                       part { name: "tizen_vg_shape_clipper2"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       visible: 0; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                               description { state: "ready" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       visible: 1; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       color_class: "active_noti_vg_shape_pressed"; \
+                               } \
+                       } \
+                       part { name: "padding_left_top"; \
+                               type: SPACER; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       align: 0.0 0.0; \
+                                       rel2.relative: 0.0 0.0; \
+                                       min: AN_BTN_PAD_LR AN_BTN_PAD_TOP_H; \
+                                       fixed: 1 1; \
+                               } \
+                       } \
+                       part { name: "padding_right_bottom"; \
+                               type: SPACER; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "tizen_vg_shape"; \
+                                       align: 1.0 1.0; \
+                                       rel1.relative: 1.0 1.0; \
+                                       min: AN_BTN_PAD_LR AN_BTN_PAD_BOTTOM_H; \
+                                       fixed: 1 1; \
+                               } \
+                       } \
+                       part { name: "icon_rect"; \
+                               type: SPACER; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       align: 0.0 0.5; \
+                                       rel1 { \
+                                               relative: 1.0 1.0; \
+                                               to: "padding_left_top"; \
+                                       } \
+                                       rel2 { \
+                                               relative: 1.0 0.0; \
+                                               to_x: "padding_left_top"; \
+                                               to_y: "padding_right_bottom"; \
+                                       } \
+                                       min: 0 AN_BTN_ICON_DEF_H; \
+                                       fixed: 1 1; \
+                               } \
+                               description { state: "visible" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       min: AN_BTN_ICON_DEF_W AN_BTN_ICON_DEF_H; \
+                                       max: AN_BTN_ICON_DEF_W AN_BTN_ICON_DEF_H; \
+                                       fixed: 1 1; \
+                               } \
+                               description { state: "icon_only" 0.0; \
+                                       inherit: "default" 0.0; \
+                               } \
+                       } \
+                       part { name: "icon_text_padding"; \
+                               type: SPACER; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       align: 1.0 0.5; \
+                                       min: 0 0; \
+                                       rel1 { \
+                                               relative: 0.0 0.0; \
+                                               to: "elm.text"; \
+                                       } \
+                                       rel2 { \
+                                               relative: 0.0 1.0; \
+                                               to: "elm.text"; \
+                                       } \
+                                       fixed: 1 1; \
+                               } \
+                               description { state: "visible" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       min: AN_BTN_PAD_ICON_R 0; \
+                               } \
+                       } \
+                       part { name: "elm.swallow.content"; \
+                               type: SWALLOW; \
+                               scale: 1; \
+                               clip_to: "clipper"; \
+                               description { state: "default" 0.0; \
+                                       align: 0.0 1.0; \
+                                       rel1 { \
+                                               relative: 1.0 1.0; \
+                                               to: "padding_left_top"; \
+                                       } \
+                                       rel2 { \
+                                               relative: 1.0 1.0; \
+                                               to_x: "padding_left_top"; \
+                                               to_y: "padding_right_bottom"; \
+                                       } \
+                                       min: 0 AN_BTN_ICON_DEF_H; \
+                                       fixed: 1 0; \
+                               } \
+                               description { state: "visible" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       align: 1.0 0.5; \
+                                       rel1 { \
+                                               relative: 0.0 1.0; \
+                                               to_x: "icon_text_padding"; \
+                                               to_y: "padding_left_top"; \
+                                       } \
+                                       rel2 { \
+                                               relative: 0.0 0.0; \
+                                               to_x: "icon_text_padding"; \
+                                               to_y: "padding_right_bottom"; \
+                                       } \
+                                       min: AN_BTN_ICON_DEF_W AN_BTN_ICON_DEF_H; \
+                                       fixed: 1 1; \
+                               } \
+                               description { state: "icon_only" 0.0; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "tizen_vg_shape"; \
+                                       min: AN_BTN_ICON_DEF_W AN_BTN_ICON_DEF_H; \
+                                       max: AN_BTN_ICON_DEF_W AN_BTN_ICON_DEF_H; \
+                                       fixed: 1 1; \
+                               } \
+                       } \
+                       part { name: "elm.text"; \
+                               type: TEXTBLOCK; \
+                               mouse_events: 0; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       fixed: 1 1; \
+                                       rel1 { \
+                                               relative: 1.0 1.0; \
+                                               to_x: "icon_rect"; \
+                                               to_y: "padding_left_top"; \
+                                       } \
+                                       rel2 { \
+                                               relative: 0.0 0.0; \
+                                               to: "padding_right_bottom"; \
+                                       } \
+                                       text { \
+                                               style: "an_button"; \
+                                               max: 1 0; \
+                                       } \
+                                       color: 250 250 250 255; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       text.style: "an_button"; \
+                                       color: 250 250 250 255; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       text.style: "an_button"; \
+                                       color: 250 250 250 163; \
+                               } \
+                       } \
+                       part { name: "clipper"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color: 255 255 255 163; \
+                               } \
+                       } \
+                       part { name: "event"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1.to: "tizen_vg_shape"; \
+                                       rel2.to: "tizen_vg_shape"; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                       } \
+               } \
+               programs { \
+                       program { name: "pressed_effect"; \
+                               action: STATE_SET "ready" 0.0; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               action: STATE_SET "custom" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               after: "pressed_effect2"; \
+                       } \
+                       program { name: "pressed_effect2"; \
+                               action: STATE_SET "pressed" 0.0; \
+                               target: "elm.text"; \
+                               target: "clipper"; \
+                               target: "tizen_vg_shape2"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               transition: TRANSITION_GLIDE(0.15); \
+                               after: "pressed_effect3"; \
+                       } \
+                       program { name: "pressed_effect3"; \
+                               script { \
+                                       set_int(animate, 0); \
+                               } \
+                       } \
+                       program { name: "delay_unpressed_effect"; \
+                               in: 0.1 0.0; \
+                               after: "unpressed_effect"; \
+                       } \
+                       program { name: "unpressed_effect"; \
+                               script { \
+                                       if (get_int(disabled) == 0) { \
+                                               run_program(PROGRAM:"unpressed_effect2"); \
+                                               run_program(PROGRAM:"unpressed_effect3"); \
+                                       } else { \
+                                               run_program(PROGRAM:"disabled_effect"); \
+                                               run_program(PROGRAM:"disabled_effect2"); \
+                                               run_program(PROGRAM:"disabled_effect3"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed_effect2"; \
+                               action: STATE_SET "ready" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "unpressed_effect3"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "elm.text"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                               after: "unpressed_effect4"; \
+                       } \
+                       program { name: "unpressed_effect4"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "clipper"; \
+                               after: "finished_animation"; \
+                       } \
+                       program { name: "disabled_effect"; \
+                               action: STATE_SET "ready" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect2"; \
+                               action: STATE_SET "disabled" 0.0; \
+                               target: "elm.text"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                       } \
+                       program { name: "disabled_effect3"; \
+                               action: STATE_SET "disabled" 0.0; \
+                               target: "clipper"; \
+                               target: "tizen_vg_shape_clipper"; \
+                               transition: TRANSITION_GLIDE(0.45); \
+                               after: "finished_animation"; \
+                       } \
+                       program { name: "finished_animation"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "tizen_vg_shape2"; \
+                               target: "tizen_vg_shape_clipper2"; \
+                       } \
+                       program { name: "pressed"; \
+                               signal: "mouse,down,1*"; \
+                               source: "event"; \
+                               script { \
+                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
+                                               new Float:rel_w, Float:rel_h; \
+                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
+                                               set_int(mouse_down, 1); \
+                                               set_int(animate, 1); \
+                                               custom_state(PART:"tizen_vg_shape2", "default", 0.0); \
+                                               get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh); \
+                                               rel_w = (1 - get_float(minw)) / 2; \
+                                               rel_h = (1 - get_float(minh)) / 2; \
+                                               set_state_val(PART:"tizen_vg_shape2", STATE_REL1, rel_w, rel_h); \
+                                               set_state_val(PART:"tizen_vg_shape2", STATE_REL2, 1 - rel_w, 1 - rel_h); \
+                                               emit("elm,action,press", ""); \
+                                               run_program(PROGRAM:"pressed_effect"); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "unpressed"; \
+                               signal: "mouse,up,1"; \
+                               source: "event"; \
+                               script { \
+                                       if (get_int(mouse_down) == 1) { \
+                                               set_int(mouse_down, 0); \
+                                               if (get_int(disabled) == 0) { \
+                                                       if (get_int(animate) == 0) { \
+                                                               run_program(PROGRAM:"unpressed_effect"); \
+                                                       } else { \
+                                                               set_state(PART:"elm.text", "pressed", 0.0); \
+                                                               set_state(PART:"clipper", "pressed", 0.0); \
+                                                               set_state(PART:"tizen_vg_shape2", "pressed", 0.0); \
+                                                               set_state(PART:"tizen_vg_shape_clipper2", "pressed", 0.0); \
+                                                               set_int(animate, 0); \
+                                                               run_program(PROGRAM:"delay_unpressed_effect"); \
+                                                       } \
+                                                       emit("elm,action,unpress", ""); \
+                                               } \
+                                       } \
+                               } \
+                       } \
+                       program { name: "touch_snd"; \
+                               signal: "mouse,clicked,1"; \
+                               source: "event"; \
+                               script { \
+                                       if (get_int(multi_down) == 0) { \
+                                               if (get_int(disabled) == 0) { \
+                                                       run_program(PROGRAM:"touch_sound"); \
+                                                       run_program(PROGRAM:"clicked_signal"); \
+                                               } \
+                                       } \
+                               } \
+                       } \
+                       program { name: "touch_sound"; \
+                               action: RUN_PLUGIN "touch_sound"; \
+                       } \
+                       program { name: "clicked_signal"; \
+                               in: 0.001 0.0; \
+                               action: SIGNAL_EMIT "elm,action,click" ""; \
+                       } \
+                       program { name: "icon_show"; \
+                               signal: "elm,state,icon,visible"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(content, 1); \
+                                       set_state(PART:"icon_text_padding", "visible", 0.0); \
+                                       if (get_int(text) == 1) { \
+                                               set_state(PART:"icon_rect", "visible", 0.0); \
+                                               set_state(PART:"elm.swallow.content", "visible", 0.0); \
+                                       } else { \
+                                               set_state(PART:"icon_rect", "icon_only", 0.0); \
+                                               set_state(PART:"elm.swallow.content", "icon_only", 0.0); \
+                                               set_state(PART:"padding_left_top", "icon_only", 0.0); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "icon_hide"; \
+                               signal: "elm,state,icon,hidden"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(content, 0); \
+                                       set_state(PART:"icon_text_padding", "default", 0.0); \
+                                       set_state(PART:"icon_rect", "default", 0.0); \
+                                       set_state(PART:"elm.swallow.content", "default", 0.0); \
+                               } \
+                       } \
+                       program { name: "text_show"; \
+                               signal: "elm,state,text,visible"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(text, 1); \
+                                       if (get_int(content) == 1) { \
+                                               set_state(PART:"icon_rect", "visible", 0.0); \
+                                               set_state(PART:"elm.swallow.content", "visible", 0.0); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "text_hide"; \
+                               signal: "elm,state,text,hidden"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(text, 0); \
+                                       if (get_int(content) == 1) { \
+                                               set_state(PART:"icon_rect", "icon_only", 0.0); \
+                                               set_state(PART:"elm.swallow.content", "icon_only", 0.0); \
+                                       } \
+                               } \
+                       } \
+                       program { name: "disable"; \
+                               signal: "elm,state,disabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 1); \
+                                       if (get_int(animate) == 1) return; \
+                                       set_state(PART:"clipper", "disabled", 0.0); \
+                                       set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0); \
+                                       set_state(PART:"elm.text", "disabled", 0.0); \
+                               } \
+                       } \
+                       program { name: "enable"; \
+                               signal: "elm,state,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(disabled, 0); \
+                                       set_state(PART:"clipper", "default", 0.0); \
+                                       set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); \
+                                       set_state(PART:"elm.text", "default", 0.0); \
+                               } \
+                       } \
+                       program { name: "multi_down"; \
+                               signal: "elm,action,multi,down"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 1); \
+                               } \
+                       } \
+                       program { name: "multi_up"; \
+                               signal: "elm,action,multi,up"; \
+                               source: "elm"; \
+                               script { \
+                                       set_int(multi_down, 0); \
+                               } \
+                       } \
+                       program { name: "pass_event_enable"; \
+                               signal: "elm,event,pass,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_mouse_events(PART:"event", 0); \
+                               } \
+                       } \
+                       program { name: "pass_event_disable"; \
+                               signal: "elm,event,pass,disabled"; \
+                               source:"elm"; \
+                               script { \
+                                       set_mouse_events(PART:"event", 1); \
+                               } \
+                       } \
+                       program { name: "repeat_event_enable"; \
+                               signal: "elm,event,repeat,enabled"; \
+                               source: "elm"; \
+                               script { \
+                                       set_repeat_events(PART:"event", 1); \
+                               } \
+                       } \
+                       program { name: "repeat_event_disable"; \
+                               signal: "elm,event,repeat,disabled"; \
+                               source:"elm"; \
+                               script { \
+                                       set_repeat_events(PART:"event", 0); \
+                               } \
+                       } \
+               } \
+       }
 
 group { name: "reject_msg_item";
        parts {
@@ -236,13 +759,13 @@ group { name: "reject_msg_item_compose";
 group {
        name: "reject_msg_scroller_bg";
        images {
-               image: IMG_SRC_DIR/"background.png" COMP;
+               image: IMG_SRC_DIR/"core_bg.png" COMP;
        }
        parts {
                CU_PART_IMAGE( "bg",
                        clip_to: "bg.clipper";
                        description { state: "default" 0.0;
-                               image.normal: IMG_SRC_DIR/"background.png";
+                               image.normal: IMG_SRC_DIR/"core_bg.png";
                                rel1 { relative: 0.0 0.0; to: "bg.clipper"; }
                                fill {
                                        type: TILE;
@@ -277,7 +800,7 @@ group {
 group {
        name: "main_active_noti_call";
        images {
-               image: IMG_SRC_DIR/"background.png" COMP;
+               image: IMG_SRC_DIR/"core_bg.png" COMP;
                image: IMG_SRC_DIR/"call_inline_btn_open.png" COMP;
                image: IMG_SRC_DIR/"call_active_ic_call.png" COMP;
        }
@@ -285,7 +808,7 @@ group {
                CU_PART_IMAGE( "bg",
                        clip_to: "bg.clipper";
                        description { state: "default" 0.0;
-                               image.normal: IMG_SRC_DIR/"background.png";
+                               image.normal: IMG_SRC_DIR/"core_bg.png";
                                rel1 { relative: 0.0 0.0; to: "contact_info"; }
                                fill {
                                        type: TILE;
@@ -705,3 +1228,11 @@ group {
                }
        }
 }
+
+RESOURCE_IMAGE("call_end_ic_call", IMG_SRC_DIR/"call_end_ic_call.png")
+RESOURCE_IMAGE("call_end_ic_end", IMG_SRC_DIR/"call_end_ic_end.png")
+
+/* Active notification buttons */
+ACTIVE_NOTI_BTN("callui_active_noti_accept", "active_noti_accept_call", "active_noti_accept_call")
+ACTIVE_NOTI_BTN("callui_active_noti_reject", "active_noti_reject_call", "active_noti_reject_call")
+ACTIVE_NOTI_BTN("callui_active_noti_reject_with_msg", "active_noti_reject_message", "active_noti_reject_message")
@@ -288,7 +288,6 @@ group { name: "lock_reject_with_msg";
                                rel2 { relative: 1 1; to: "reject_msg_text_area";}
                                fixed: 1 1;
                                text.style: "reject_with_msg";
-                               align: 0.5 0.5;
                        }
                        description { state: "list_close" 0.0;
                                inherit: "default" 0.0;
@@ -455,5 +454,5 @@ group { name: "lock_reject_with_msg";
        }
 }
 
-BG_IMAGE("incoming_call_bg_ly", IMG_SRC_DIR/"background.png")
-BG_IMAGE("incoming_call_bg_dim_ly", IMG_SRC_DIR/"background_dim.png")
+BG_IMAGE("incoming_call_bg_ly", IMG_SRC_DIR/"core_bg.png")
+BG_IMAGE("incoming_call_bg_dim_ly", IMG_SRC_DIR/"core_bg_dim.png")
similarity index 98%
rename from edje_src/edc/call_edc/callui-view-main-layout.edc
rename to edje_src/edc/callui-view-main-layout.edc
index 7a0161d..7d133a2 100644 (file)
@@ -116,12 +116,12 @@ styles {
 
 group { name: "view_main_ly";
        images {
-               image: IMG_SRC_DIR/"background.png" COMP;
+               image: IMG_SRC_DIR/"core_bg.png" COMP;
        }
        parts {
                CU_PART_IMAGE( "bg",
                        description { state: "default" 0.0;
-                               image.normal: IMG_SRC_DIR/"background.png";
+                               image.normal: IMG_SRC_DIR/"core_bg.png";
                        }
                )
                CU_PART_PADDING_LEFT(MAIN_VIEW_LAYOUT_PAD_LEFT)
@@ -32,7 +32,7 @@ group { name: "multicall_list_view_ly";
                        type: IMAGE;
                        scale: 1;
                        description { state: "default" 0.0;
-                               image.normal: IMG_SRC_DIR/"background.png";
+                               image.normal: IMG_SRC_DIR/"core_bg.png";
                        }
                }
                CU_PART_PADDING_TOP_NAME("call_time_bg", MULTICALL_LIST_CONTENT_PADDING)
@@ -79,3 +79,6 @@ group { name: "multicall_list_view_ly";
                )
        }
 }
+
+CIRCLE_BTN_WITH_ICON("callui_multi_list_end_call", MULTI_LIST_LIST_ICON_BG_SIZE, "multi_list_btn_end_call", "multi_list_btn_end_call", IMG_SRC_DIR/"call_btn_ic_end.png", "btn_icon_def_color")
+CIRCLE_BTN_WITH_ICON("callui_multi_list_split_call", MULTI_LIST_LIST_ICON_BG_SIZE, "multi_list_btn_split_call", "multi_list_btn_split_call", IMG_SRC_DIR/"call_btn_ic_split.png", "btn_icon_def_color")
@@ -44,9 +44,85 @@ styles {
        style { name: "sc_call_duration";
                base: "font=Tizen:style=Regular font_size=40 color=#fafafaff align=left ellipsis=1.0";
        }
+       style { name: "sc_manage_call_btn";
+               base: "font=Tizen:style=Regular font_size=27 color=#fafafaff align=center valign=center ellipsis=1.0";
+       }
 }
 
-#define BG_PART_IMAGE \
+#define SPLIT_CALL_MANAGE_BTN(grp_name, bg_image, icon, bg_color_norm, bg_color_press) \
+       group { name: "elm/button/base/"grp_name; \
+               images { \
+                       image: bg_image COMP; \
+                       image: icon COMP; \
+               } \
+               script { \
+                       PRESS_EFFECT_DEFAULT_SCRIPT_VAR \
+               } \
+               parts { part { name: "bg"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { \
+                                       state: "default" 0.0; \
+                                       image.normal: bg_image; \
+                                       color_class: bg_color_norm; \
+                               } \
+                       } \
+                       part { name: "bg_press"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               mouse_events: 1; \
+                               description { state: "default" 0.0; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
+                                       image.normal: bg_image; \
+                                       color_class: "transparent_black"; \
+                               } \
+                               description { state: "pressed" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: bg_color_press; \
+                               } \
+                               description { state: "pressed_effect" 0.0; \
+                                       inherit: "pressed" 0.0; \
+                                       rel1 { relative: 0.15 0.15; to: "bg"; } \
+                                       rel2 { relative: 0.85 0.85; to: "bg"; } \
+                               } \
+                       } \
+                       part { name: "icon"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { \
+                                       state: "default" 0.0; \
+                                       rel1.relative: MS_BTN_ICON_L MS_BTN_ICON_T; \
+                                       rel2.relative: MS_BTN_ICON_R MS_BTN_ICON_B; \
+                                       image.normal: icon; \
+                               } \
+                       } \
+                       part { name: "text"; \
+                               type: TEXTBLOCK; \
+                               scale: 1; \
+                               description { \
+                                       state: "default" 0.0; \
+                                       rel1 { relative: 0.0 1.0; to_y: "icon"; } \
+                                       rel2.relative: 1.0 MS_BTN_TEXT_B; \
+                                       text.style: "sc_manage_call_btn"; \
+                               } \
+                       } \
+                       part { name: "over"; \
+                               type: RECT; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       color: COLOR_BG_ALPHA; \
+                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
+                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
+                               } \
+                       } \
+               } \
+               programs { \
+                       PRESS_EFFECT_DEFAULT_PROGRAMS \
+               } \
+       }
+
+#define SPLIT_CALL_BG_PART_IMAGE \
        part { name: "bg"; \
                type: IMAGE; \
                scale: 1; \
@@ -56,14 +132,14 @@ styles {
                } \
        } \
 
-#define BG_PART_SPACER \
+#define SPLIT_CALL_BG_PART_SPACER \
        part { name: "bg"; \
                type: SPACER; \
                scale: 1; \
                description { state: "default" 0.0; } \
        } \
 
-#define SPLIT_CALLER_INFO_LAYOUT(_name, _bg_part, _status_pad_top, _status_pad_bottom) \
+#define SPLIT_CALL_CALLER_INFO_LY(_name, _bg_part, _status_pad_top, _status_pad_bottom) \
 group { \
        name: _name; \
        images { \
@@ -264,8 +340,8 @@ group { \
        } \
 } \
 
-SPLIT_CALLER_INFO_LAYOUT("split_hold_info", BG_PART_IMAGE, HOLD_INFO_PADDING_TOP_MIN_H, HOLD_INFO_STATUS_TXT_PADDING_BOTTOM_H)
-SPLIT_CALLER_INFO_LAYOUT("split_active_info", BG_PART_SPACER, ACTIVE_INFO_PADDING_TOP_MIN_H, ACTIVE_INFO_STATUS_TXT_PADDING_BOTTOM_H)
+SPLIT_CALL_CALLER_INFO_LY("split_hold_info", SPLIT_CALL_BG_PART_IMAGE, HOLD_INFO_PADDING_TOP_MIN_H, HOLD_INFO_STATUS_TXT_PADDING_BOTTOM_H)
+SPLIT_CALL_CALLER_INFO_LY("split_active_info", SPLIT_CALL_BG_PART_SPACER, ACTIVE_INFO_PADDING_TOP_MIN_H, ACTIVE_INFO_STATUS_TXT_PADDING_BOTTOM_H)
 
 group { name: "split_callers_info";
        parts {
@@ -329,3 +405,6 @@ group { name: "split_callers_info";
                }
        }
 }
+
+SPLIT_CALL_MANAGE_BTN("callui_multi_split_merge_btn", IMG_SRC_DIR/"call_multi_hold_btn_merge_bg.png", IMG_SRC_DIR/"call_multi_ic_merge.png", "multi_hold_merge_btn_norm", "multi_hold_merge_btn_press");
+SPLIT_CALL_MANAGE_BTN("callui_multi_split_swap_btn", IMG_SRC_DIR/"call_multi_hold_btn_swap_bg.png", IMG_SRC_DIR/"call_multi_ic_swap.png", "multi_hold_swap_btn_norm", "multi_hold_swap_btn_press");
 #define QP_CALL_NAME_TXT_PAD_B 3
 #define QP_TIMER_TXT_H                 43
 
+#define QP_TOGGLE_BTN_MIN_SIZE 90 90
+
+#define QUICK_PANEL_ICON_PATH IMG_SRC_DIR/"quick_panel"
+
 styles {
        style { name: "qp_mc_caller_name";
                base: "font=Tizen:style=Regular font_size=40 color=#000000ff align=left ellipsis=0.0";
@@ -43,7 +47,140 @@ styles {
        }
 }
 
-#define QP_SWALLOW_BTN_WITH_PAD_L(part_name, _from_right_part_name, inco, duri, out, resume) \
+#define QP_MC_TOGGLE_BTN(grp_name, bg_cc, bg_cc_p, img) \
+       group { name: "elm/button/base/"grp_name; \
+               data { \
+                       item: "focus_highlight" "on"; \
+               } \
+               images { \
+                       image: QUICK_PANEL_ICON_PATH"/call_noti_btn_bg.png" COMP; \
+                       image: img COMP; \
+               } \
+               script { \
+                       public button_state = 0; \
+               } \
+               parts { \
+                       part { name: "button_image"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       min: QP_TOGGLE_BTN_MIN_SIZE; \
+                                       color_class: bg_cc; \
+                                       image { \
+                                               normal: QUICK_PANEL_ICON_PATH"/call_noti_btn_bg.png"; \
+                                               middle: DEFAULT; \
+                                       } \
+                               } \
+                               description { state: "clicked" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: bg_cc_p; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "qp_mc_toogle_dim"; \
+                               } \
+                       } \
+                       part { name: "content_image"; \
+                               type: IMAGE; \
+                               scale: 1; \
+                               description { state: "default" 0.0; \
+                                       min: QP_TOGGLE_BTN_MIN_SIZE; \
+                                       aspect_preference: SOURCE; \
+                                       color_class: qp_mc_toogle_icon; \
+                                       rel1 { to: "button_image"; } \
+                                       rel2 { to: "button_image"; } \
+                                       image { \
+                                               normal: img; \
+                                               middle: DEFAULT; \
+                                       } \
+                               } \
+                               description { state: "clicked" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: qp_mc_toogle_icon; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       inherit: "default" 0.0; \
+                                       color_class: "qp_mc_toogle_dim"; \
+                               } \
+                       } \
+                       part { name: "over"; \
+                               type: RECT; \
+                               repeat_events: 1; \
+                               ignore_flags: "ON_HOLD"; \
+                               description { state: "default" 0.0; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                       } \
+                       part { name: "disabler"; \
+                               type: RECT; \
+                               description { state: "default" 0.0; \
+                                       visible: 0; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                               description { state: "disabled" 0.0; \
+                                       color: COLOR_BG_ALPHA; \
+                               } \
+                       } \
+               } \
+               programs { \
+                       program { name: "btn_press"; \
+                               signal: "mouse,down,1"; \
+                               source: "over"; \
+                               action: SIGNAL_EMIT "elm,action,press" ""; \
+                               after: "button_click_anim"; \
+                       } \
+                       program { name: "btn_double_click"; \
+                               signal: "mouse,down,1,double"; \
+                               source: "over"; \
+                               after: "button_click_anim"; \
+                       } \
+                       program { name: "btn_unpress"; \
+                               signal: "mouse,up,1"; \
+                               source: "over"; \
+                               script { \
+                                       if (get_int(button_state) != 1) \
+                                               set_state(PART:"button_image", "default", 0.0); \
+                                       set_state(PART:"content_image", "default", 0.0); \
+                               } \
+                               after: "btn_unpress_emit"; \
+                       } \
+                       program { name: "touch_snd"; \
+                               signal: "mouse,clicked,1"; \
+                               source: "over"; \
+                               action: RUN_PLUGIN "touch_sound"; \
+                               after: "button_unclick3"; \
+                       } \
+                       program { name: "disable"; \
+                               signal: "elm,state,disabled"; \
+                               source: "elm"; \
+                               action: STATE_SET "disabled" 0.0; \
+                               target: "button_image"; \
+                               target: "content_image"; \
+                               target: "disabler"; \
+                       } \
+                       program { name: "enable"; \
+                               signal: "elm,state,enabled"; \
+                               source: "elm"; \
+                               action: STATE_SET "default" 0.0; \
+                               target: "button_image"; \
+                               target: "content_image"; \
+                               target: "disabler"; \
+                       } \
+                       program { name: "button_click_anim"; \
+                               action: STATE_SET "clicked" 0.0; \
+                               target: "button_image"; \
+                               target: "content_image"; \
+                       } \
+                       program { name: "btn_unpress_emit"; \
+                               action: SIGNAL_EMIT "elm,action,unpress" ""; \
+                       } \
+                       program { name: "button_unclick3"; \
+                               action: SIGNAL_EMIT "elm,action,click" ""; \
+                       } \
+               } \
+       }
+
+#define QP_MC_SWALLOW_WITH_PAD_L(part_name, _from_right_part_name, inco, duri, out, resume) \
                part { name: part_name; \
                        type: SWALLOW; \
                        scale: 1; \
@@ -310,10 +447,10 @@ group { name: "quickpanel";
                                visible: 0;
                        }
                }
-               QP_SWALLOW_BTN_WITH_PAD_L("swallow.end_button", "pad.right", 1, 1, 1, 1)
-               QP_SWALLOW_BTN_WITH_PAD_L("swallow.mute_button", "pad.swallow.end_button.left", 0, 1, 0, 0)
-               QP_SWALLOW_BTN_WITH_PAD_L("swallow.resume_button", "pad.swallow.end_button.left", 0, 0, 0, 1)
-               QP_SWALLOW_BTN_WITH_PAD_L("swallow.call_button", "pad.swallow.end_button.left", 1, 0, 0, 0)
+               QP_MC_SWALLOW_WITH_PAD_L("swallow.end_button", "pad.right", 1, 1, 1, 1)
+               QP_MC_SWALLOW_WITH_PAD_L("swallow.mute_button", "pad.swallow.end_button.left", 0, 1, 0, 0)
+               QP_MC_SWALLOW_WITH_PAD_L("swallow.resume_button", "pad.swallow.end_button.left", 0, 0, 0, 1)
+               QP_MC_SWALLOW_WITH_PAD_L("swallow.call_button", "pad.swallow.end_button.left", 1, 0, 0, 0)
        }
        programs{
                program { name: "resume_call";
@@ -366,3 +503,19 @@ group { name: "quickpanel";
                }
        }
 }
+
+/* Quick panel Mini Control accept and reject buttons */
+QP_MC_TOGGLE_BTN("callui_qp_btn_end", "qp_mc_reject_norm", "qp_mc_reject_press", QUICK_PANEL_ICON_PATH"/call_noti_btn_end.png")
+QP_MC_TOGGLE_BTN("callui_qp_btn_call", "qp_mc_accept_norm", "qp_mc_accept_press", QUICK_PANEL_ICON_PATH"/call_noti_btn_send.png")
+
+/* Quick panel Mini Control mute button */
+QP_MC_TOGGLE_BTN("callui_qp_btn_mute", "qp_mc_toogle_norm", "qp_mc_toogle_norm", QUICK_PANEL_ICON_PATH"/call_noti_btn_mute.png")
+QP_MC_TOGGLE_BTN("callui_qp_btn_mute_on", "qp_mc_toogle_off", "qp_mc_toogle_off", QUICK_PANEL_ICON_PATH"/call_noti_btn_mute.png")
+
+/* Quick panel Mini Control speaker button */
+QP_MC_TOGGLE_BTN("callui_qp_btn_speaker", "qp_mc_toogle_norm", "qp_mc_toogle_norm", QUICK_PANEL_ICON_PATH"/call_noti_btn_speaker.png")
+QP_MC_TOGGLE_BTN("callui_qp_btn_speaker_on", "qp_mc_toogle_off", "qp_mc_toogle_off", QUICK_PANEL_ICON_PATH"/call_noti_btn_speaker.png")
+
+/* Quick panel Mini Control resume button */
+QP_MC_TOGGLE_BTN("callui_qp_btn_resume", "qp_mc_toogle_norm", "qp_mc_toogle_norm", QUICK_PANEL_ICON_PATH"/call_noti_btn_resume.png")
+QP_MC_TOGGLE_BTN("callui_qp_btn_resume_on", "qp_mc_toogle_off", "qp_mc_toogle_off", QUICK_PANEL_ICON_PATH"/call_noti_btn_resume.png")
diff --git a/edje_src/images/call_theme/bg/call_btn_circle.png b/edje_src/images/call_theme/bg/call_btn_circle.png
deleted file mode 100644 (file)
index 58ddf4f..0000000
Binary files a/edje_src/images/call_theme/bg/call_btn_circle.png and /dev/null differ
diff --git a/edje_src/images/call_theme/bg/core_button_bg.#.png b/edje_src/images/call_theme/bg/core_button_bg.#.png
deleted file mode 100644 (file)
index eba1fe5..0000000
Binary files a/edje_src/images/call_theme/bg/core_button_bg.#.png and /dev/null differ
index af2e2a0..ec3a37a 100644 (file)
@@ -23,7 +23,7 @@
 #include "callui-common-types.h"
 /*
  * In order to use this functionality first create background
- * under the scroller object: "background.png".
+ * under the scroller object: "core_bg.png".
  * Size of the background should match the size of the scroller.
  *
  * Second, each item of the box should be a layout with "email.swallow.bg" part.
index 4d9a9e2..4ccd033 100644 (file)
 #define CALLUI_EXPORT_API __attribute__ ((visibility("default")))
 #endif
 
-#define CALLUI_PACKAGE "org.tizen.call-ui"
-
-#define CALLUI_CALL_EDJ_NAME           "/edje/call.edj"
-#define CALLUI_CALL_THEME_EDJ_NAME     "/edje/call_theme.edj"
-
-#define CALLUI_CALL_EDJ_PATH           _callui_common_get_call_edj_path()
-#define CALLUI_CALL_THEME_EDJ_PATH     _callui_common_get_call_theme_path()
+#define CALLUI_PACKAGE                 "org.tizen.call-ui"
+#define CALLUI_THEME_EDJ_NAME  "/edje/call.edj"
+#define CALLUI_THEME_PATH              _callui_common_get_call_theme_path()
 
 #define CALLUI_GROUP_VIEW_MAIN_LY                                      "view_main_ly"
 #define CALLUI_GROUP_CALLER_INFO                                       "caller_info"
index 0ce7c87..1f795e9 100644 (file)
@@ -107,13 +107,6 @@ void _callui_common_set_lock_state_changed_cb();
 void _callui_common_unset_lock_state_changed_cb();
 
 /**
- * @brief Gets call edj file path
- *
- * @return Call edj file path
- */
-const char *_callui_common_get_call_edj_path();
-
-/**
  * @brief Gets call theme edj file path
  *
  * @return Call theme edj file path
index df4edc4..f6ed488 100644 (file)
 #include "../../inc/callui-view-layout.h"
 
 #include "../../edje_src/edc/callui-color-classes.edc"
-#include "../../edje_src/edc/callui-parts.edc"
 #include "../../edje_src/edc/callui-common-utils.edc"
-
-#include "../../edje_src/edc/call_edc/callui-image-macro.edc"
-
-#define        IMG_SRC_DIR     "call_edc"
+#include "../../edje_src/edc/callui-common-macro-part.edc"
+#include "../../edje_src/edc/callui-common-macro-image.edc"
+#include "../../edje_src/edc/callui-common-macro-button.edc"
 
 collections {
 
@@ -36,16 +34,16 @@ collections {
                }
        }
 
-       #include "../../edje_src/edc/call_edc/callui-view-end-call.edc"
-       #include "../../edje_src/edc/call_edc/callui-action-bar.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-incoming-call.edc"
-       #include "../../edje_src/edc/call_edc/callui-keypad.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-caller-info.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-main-layout.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-multi-call-list.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-touch-lock-screen.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-quick-pannel.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-incoming-call-noti.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-multi-call-split.edc"
-       #include "../../edje_src/edc/call_edc/callui-view-elements.edc"
+       #include "../../edje_src/edc/callui-view-end-call.edc"
+       #include "../../edje_src/edc/callui-action-bar.edc"
+       #include "../../edje_src/edc/callui-view-incoming-call.edc"
+       #include "../../edje_src/edc/callui-keypad.edc"
+       #include "../../edje_src/edc/callui-view-caller-info.edc"
+       #include "../../edje_src/edc/callui-view-main-layout.edc"
+       #include "../../edje_src/edc/callui-view-multi-call-list.edc"
+       #include "../../edje_src/edc/callui-view-touch-lock-screen.edc"
+       #include "../../edje_src/edc/callui-view-quick-pannel.edc"
+       #include "../../edje_src/edc/callui-view-incoming-call-noti.edc"
+       #include "../../edje_src/edc/callui-view-multi-call-split.edc"
+       #include "../../edje_src/edc/callui-view-elements.edc"
 }
diff --git a/res/edje/call_theme.edc b/res/edje/call_theme.edc
deleted file mode 100644 (file)
index 02d4324..0000000
+++ /dev/null
@@ -1,1842 +0,0 @@
-/*
- * Copyright (c) 2009-2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- */
-
-#include "../../inc/callui-view-layout.h"
-#include "../../edje_src/edc/callui-color-classes.edc"
-#include "../../edje_src/edc/callui-common-utils.edc"
-
-#define IMG_SOURCE_DIR "call_theme"
-#define BG_IMG_PATH IMG_SOURCE_DIR"/bg"
-#define ICON_IMG_PATH IMG_SOURCE_DIR"/icon"
-#define        IMG_SRC_DIR     "call_edc"
-
-#define ACTIVE_NOTI_BTN_MIN_W                  50
-#define ACTIVE_NOTI_BTN_MIN_H                  78
-#define ACTIVE_NOTI_BTN_CORNER_RADIUS  "39"
-#define ACTIVE_NOTI_BTN_PAD_ICON_R             14
-#define ACTIVE_NOTI_BTN_PAD_LR                 22
-#define ACTIVE_NOTI_BTN_PAD_TOP_H              0
-#define ACTIVE_NOTI_BTN_PAD_BOTTOM_H   4
-#define ACTIVE_NOTI_BTN_ICON_DEF_H             60
-#define ACTIVE_NOTI_BTN_ICON_DEF_W             60
-
-#define CIRCLE_BTN_DEF_ICON_SIZE               60 60
-
-#define TOGGLE_BTN_MIN_SIZE                            90 90
-
-#define END_CALL_REPLY_BTN_HEIGHT                                      190
-#define END_CALL_REPLY_BTN_ICON_PAD_TOP                                36
-#define END_CALL_REPLY_BTN_ICON_DIMENT                         64
-#define END_CALL_REPLY_BTN_TXT_HEIGHT                          38
-#define END_CALL_REPLY_BTN_TXT_PAD_REPLY_BTN_ICON      20
-#define END_CALL_REPLY_BTN_TXT_PAD_TOP                         (END_CALL_REPLY_BTN_ICON_PAD_TOP + END_CALL_REPLY_BTN_ICON_DIMENT + END_CALL_REPLY_BTN_TXT_PAD_REPLY_BTN_ICON)
-#define END_CALL_REPLY_BTN_ICON_SIZE                           END_CALL_REPLY_BTN_ICON_DIMENT END_CALL_REPLY_BTN_ICON_DIMENT
-
-styles {
-       style { name: "action_btn_norm";
-               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#808080ff align=center valign=center ellipsis=1.0";
-       }
-       style { name: "action_btn_active";
-               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#3db9ccff align=center valign=center ellipsis=1.0";
-       }
-       style { name: "action_btn_dim";
-               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#8080804c align=center valign=center ellipsis=1.0";
-       }
-       style { name: "active_noti_btn";
-               base: "font=Tizen:style=Regular font_size=40 text_class=tizen color=#ffffffff align=center valign=center ellipsis=1.0";
-       }
-       style { name: "sc_manage_call_btn";
-               base: "font=Tizen:style=Regular font_size=27 text_class=tizen color=#fafafaff align=center valign=center ellipsis=1.0";
-       }
-       style { name: "ec_reply_btn";
-               base: "font=Tizen:style=Regular font_size=28 text_class=tizen color=#808080ff align=center valign=center ellipsis=1.0";
-       }
-}
-
-#define ACTION_BTN(grp_name, img1) \
-       group { name: "elm/button/base/"grp_name; \
-               images { \
-                       image: img1 COMP; \
-               } \
-               script { \
-                       public mouse_down = 0; \
-                       public multi_down = 0; \
-                       public disabled = 0; \
-                       public animate = 0; \
-               } \
-               parts { \
-                       part { name: "bg"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color_class: "action_bar_bg_norm"; \
-                               } \
-                       } \
-                       part { name: "bg_press"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color_class: "action_bar_bg_norm"; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       color_class: "action_bar_bg_pressed"; \
-                               } \
-                               description { "pressed_effect"; \
-                                       inherit: "pressed" 0.0; \
-                                       rel1.relative: 0.15 0.15; \
-                                       rel2.relative: 0.85 0.85; \
-                               } \
-                       } \
-                       part { name: "content_image"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       image.normal: img1; \
-                                       aspect: 0.5 1.0; \
-                                       rel1.relative: 0.0 (STYLE_ICN_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       rel2.relative: 1.0 (STYLE_ICN_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       aspect_preference: VERTICAL; \
-                                       color_class: "action_bar_icon_norm";\
-                                       visible: 1; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "action_bar_icon_dim"; \
-                               } \
-                       } \
-                       part { name: "elm.text"; \
-                               type: TEXTBLOCK; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       fixed: 1 1; \
-                                       rel1.relative: (STYLE_TXT_L_PAD/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       rel2.relative: (STYLE_TXT_R/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       min: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
-                                       max: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
-                                       text { \
-                                               style: "action_btn_norm"; \
-                                               min: 0 1; \
-                                       } \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       text { \
-                                               style: "action_btn_dim"; \
-                                               min: 0 1; \
-                                       } \
-                               } \
-                       } \
-                       part { name: "over"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color: COLOR_BG_ALPHA; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
-                               } \
-                       } \
-               } \
-               programs { \
-                       program { name: "pressed_effect"; \
-                               action: STATE_SET "pressed_effect" 0.0; \
-                               target: "bg_press"; \
-                               after: "pressed_effect2"; \
-                       } \
-                       program { name: "pressed_effect2"; \
-                               action: STATE_SET "pressed" 0.0; \
-                               target: "bg_press"; \
-                               transition: TRANSITION_GLIDE(0.15); \
-                               after: "pressed_effect3"; \
-                       } \
-                       program { name: "pressed_effect3"; \
-                               script { \
-                                       set_int(animate, 0); \
-                               } \
-                       } \
-                       program { name: "delay_unpressed_effect"; \
-                               in: 0.1 0.0; \
-                               after: "unpressed_effect"; \
-                       } \
-                       program { name: "unpressed_effect"; \
-                               script { \
-                                       if (get_int(disabled) == 0) { \
-                                               run_program(PROGRAM:"unpressed_effect2"); \
-                                       } else { \
-                                               run_program(PROGRAM:"disabled_effect2"); \
-                                               run_program(PROGRAM:"disabled_effect3"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed_effect2"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "bg_press"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect2"; \
-                               action: STATE_SET "disabled" 0.0; \
-                               target: "elm.text"; \
-                               target: "content_image"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect3"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "bg_press"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "pressed"; \
-                               signal: "mouse,down,1*"; \
-                               source: "over"; \
-                               script { \
-                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
-                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
-                                               set_int(mouse_down, 1); \
-                                               set_int(animate, 1); \
-                                               emit("elm,action,press", ""); \
-                                               run_program(PROGRAM:"pressed_effect"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed"; \
-                               signal: "mouse,up,1"; \
-                               source: "over"; \
-                               script { \
-                                       if (get_int(mouse_down) == 1) { \
-                                               set_int(mouse_down, 0); \
-                                               if (get_int(animate) == 0) { \
-                                                       run_program(PROGRAM:"unpressed_effect"); \
-                                               } else { \
-                                                       set_state(PART:"bg_press", "pressed", 0.0); \
-                                                       set_int(animate, 0); \
-                                                       run_program(PROGRAM:"delay_unpressed_effect"); \
-                                               } \
-                                               emit("elm,action,unpress", ""); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "touch_snd"; \
-                               signal: "mouse,clicked,1"; \
-                               source: "over"; \
-                                       script { \
-                                               if (get_int(multi_down) == 0) { \
-                                                       if (get_int(disabled) == 0) { \
-                                                               run_program(PROGRAM:"touch_sound"); \
-                                                               run_program(PROGRAM:"clicked_signal"); \
-                                                       } \
-                                               } \
-                                       } \
-                       } \
-                       program { name: "touch_sound"; \
-                               action: RUN_PLUGIN "touch_sound"; \
-                       } \
-                       program { name: "clicked_signal"; \
-                               in: 0.001 0.0; \
-                               action: SIGNAL_EMIT "elm,action,click" ""; \
-                       } \
-                       program { name: "disable"; \
-                               signal: "elm,state,disabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 1); \
-                                       if (get_int(animate) == 1) return; \
-                                       set_state(PART:"bg_press", "default", 0.0); \
-                                       set_state(PART:"elm.text", "disabled", 0.0); \
-                                       set_state(PART:"content_image", "disabled", 0.0); \
-                               } \
-                       } \
-                       program { name: "enable"; \
-                               signal: "elm,state,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 0); \
-                                       set_state(PART:"bg_press", "default", 0.0); \
-                                       set_state(PART:"elm.text", "default", 0.0); \
-                                       set_state(PART:"content_image", "default", 0.0); \
-                               } \
-                       } \
-                       program { name: "multi_down"; \
-                               signal: "elm,action,multi,down"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 1); \
-                               } \
-                       } \
-                       program { name: "multi_up"; \
-                               signal: "elm,action,multi,up"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 0); \
-                               } \
-                       } \
-               } \
-       }
-
-#define ACTION_BTN_TOGGLE(grp_name, img1) \
-       group { name: "elm/button/base/"grp_name; \
-               images { \
-                       image: img1 COMP; \
-                       image: ICON_IMG_PATH"/call_onoff_bar.#.png" COMP; \
-               } \
-               script { \
-                       public mouse_down = 0; \
-                       public multi_down = 0; \
-                       public disabled = 0; \
-                       public animate = 0; \
-                       public activated = 0; \
-               } \
-               parts { \
-                       part { name: "bg"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       visible: 1; \
-                                       color_class: "action_bar_bg_norm"; \
-                               } \
-                       } \
-                       part { name: "bg_press"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color_class: "action_bar_bg_norm"; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       color_class: "action_bar_bg_pressed"; \
-                               } \
-                               description { "pressed_effect"; \
-                                       inherit: "pressed" 0.0; \
-                                       rel1.relative: 0.15 0.15; \
-                                       rel2.relative: 0.85 0.85; \
-                               } \
-                       } \
-                       part { name: "content_image"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       image.normal: img1; \
-                                       aspect: 0.5 1.0; \
-                                       rel1.relative: 0.0 (STYLE_ICN_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       rel2.relative: 1.0 (STYLE_ICN_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       aspect_preference: VERTICAL; \
-                                       color_class: "action_bar_icon_norm";\
-                                       visible: 1; \
-                               } \
-                               description { state: "active" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "action_bar_icon_on"; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "action_bar_icon_dim"; \
-                               } \
-                       } \
-                       part { name: "elm.text"; \
-                               type: TEXTBLOCK; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       fixed: 1 1; \
-                                       rel1.relative: (STYLE_TXT_L_PAD/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       rel2.relative: (STYLE_TXT_R/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_TXT_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       min: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
-                                       max: STYLE_TXT_WIDTH STYLE_TXT_HEIGHT; \
-                                       text { \
-                                               style: "action_btn_norm"; \
-                                               min: 0 1; \
-                                       } \
-                               } \
-                               description { state: "active" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       text { \
-                                               style: "action_btn_active"; \
-                                               min: 0 1; \
-                                       } \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       text { \
-                                               style: "action_btn_dim"; \
-                                               min: 0 1; \
-                                       } \
-                               } \
-                       } \
-                       part { name: "toggle_bar_image"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       image { \
-                                               normal: ICON_IMG_PATH"/call_onoff_bar.#.png"; \
-                                       } \
-                                       align: 0.5 0.5; \
-                                       rel1.relative: (STYLE_ONOFF_BAR_L_PAD/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_ONOFF_BAR_T_PAD/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       rel2.relative: (STYLE_ONOFF_BAR_R/BTN_LAYOUT_SINGLE_BTN_WIDTH) (STYLE_ONOFF_BAR_B/BTN_LAYOUT_SINGLE_BTN_HEIGHT); \
-                                       color_class: "action_bar_onoff_bar_norm";\
-                                       visible: 1; \
-                               } \
-                               description { state: "active" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "action_bar_onoff_bar_on"; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "action_bar_onoff_bar_dim"; \
-                               } \
-                       } \
-                       part { name: "over"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color: COLOR_BG_ALPHA; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
-                               } \
-                       } \
-               } \
-               programs { \
-                       program { name: "pressed_effect"; \
-                               action: STATE_SET "pressed_effect" 0.0; \
-                               target: "bg_press"; \
-                               after: "pressed_effect2"; \
-                       } \
-                       program { name: "pressed_effect2"; \
-                               action: STATE_SET "pressed" 0.0; \
-                               target: "bg_press"; \
-                               transition: TRANSITION_GLIDE(0.15); \
-                               after: "pressed_effect3"; \
-                       } \
-                       program { name: "pressed_effect3"; \
-                               script { \
-                                       set_int(animate, 0); \
-                               } \
-                       } \
-                       program { name: "delay_unpressed_effect"; \
-                               in: 0.1 0.0; \
-                               after: "unpressed_effect"; \
-                       } \
-                       program { name: "unpressed_effect"; \
-                               script { \
-                                       if (get_int(disabled) == 0) { \
-                                               run_program(PROGRAM:"unpressed_effect2"); \
-                                       } else { \
-                                               run_program(PROGRAM:"disabled_effect2"); \
-                                               run_program(PROGRAM:"disabled_effect3"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed_effect2"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "bg_press"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect2"; \
-                               action: STATE_SET "disabled" 0.0; \
-                               target: "elm.text"; \
-                               target: "content_image"; \
-                               target: "toggle_bar_image"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect3"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "bg_press"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "pressed"; \
-                               signal: "mouse,down,1*"; \
-                               source: "over"; \
-                               script { \
-                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
-                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
-                                               set_int(mouse_down, 1); \
-                                               set_int(animate, 1); \
-                                               emit("elm,action,press", ""); \
-                                               run_program(PROGRAM:"pressed_effect"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed"; \
-                               signal: "mouse,up,1"; \
-                               source: "over"; \
-                               script { \
-                                       if (get_int(mouse_down) == 1) { \
-                                               set_int(mouse_down, 0); \
-                                               if (get_int(animate) == 0) { \
-                                                       run_program(PROGRAM:"unpressed_effect"); \
-                                               } else { \
-                                                       set_state(PART:"bg_press", "pressed", 0.0); \
-                                                       set_int(animate, 0); \
-                                                       run_program(PROGRAM:"delay_unpressed_effect"); \
-                                               } \
-                                               emit("elm,action,unpress", ""); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "touch_snd"; \
-                               signal: "mouse,clicked,1"; \
-                               source: "over"; \
-                                       script { \
-                                               if (get_int(multi_down) == 0) { \
-                                                       if (get_int(disabled) == 0) { \
-                                                               run_program(PROGRAM:"touch_sound"); \
-                                                               run_program(PROGRAM:"clicked_signal"); \
-                                                       } \
-                                               } \
-                                       } \
-                       } \
-                       program { name: "touch_sound"; \
-                               action: RUN_PLUGIN "touch_sound"; \
-                       } \
-                       program { name: "clicked_signal"; \
-                               in: 0.001 0.0; \
-                               action: SIGNAL_EMIT "elm,action,click" ""; \
-                       } \
-                       program { name: "disable"; \
-                               signal: "elm,state,disabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 1); \
-                                       if (get_int(animate) == 1) return; \
-                                       set_state(PART:"bg_press", "default", 0.0); \
-                                       set_state(PART:"elm.text", "disabled", 0.0); \
-                                       set_state(PART:"content_image", "disabled", 0.0); \
-                                       set_state(PART:"toggle_bar_image", "disabled", 0.0); \
-                               } \
-                       } \
-                       program { name: "enable"; \
-                               signal: "elm,state,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 0); \
-                                       if (get_int(activated) == 0) { \
-                                               set_state(PART:"elm.text", "default", 0.0); \
-                                               set_state(PART:"content_image", "default", 0.0); \
-                                               set_state(PART:"toggle_bar_image", "default", 0.0); \
-                                       } else { \
-                                               set_state(PART:"elm.text", "active", 0.0); \
-                                               set_state(PART:"content_image", "active", 0.0); \
-                                               set_state(PART:"toggle_bar_image", "active", 0.0); \
-                                       } \
-                                       set_state(PART:"bg_press", "default", 0.0); \
-                               } \
-                       } \
-                       program { name: "multi_down"; \
-                               signal: "elm,action,multi,down"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 1); \
-                               } \
-                       } \
-                       program { name: "multi_up"; \
-                               signal: "elm,action,multi,up"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 0); \
-                               } \
-                       } \
-                       program { name: "activate"; \
-                               signal: "activate"; \
-                               source: "action_btn"; \
-                               script { \
-                                       if (get_int(disabled) == 0) { \
-                                               set_state(PART:"elm.text", "active", 0.0); \
-                                               set_state(PART:"content_image", "active", 0.0); \
-                                               set_state(PART:"toggle_bar_image", "active", 0.0); \
-                                       } \
-                                       set_int(activated, 1); \
-                               } \
-                       } \
-                       program { name: "deactivate"; \
-                               signal: "deactivate"; \
-                               source: "action_btn"; \
-                               script { \
-                                       if (get_int(disabled) == 0)  { \
-                                               set_state(PART:"elm.text", "default", 0.0); \
-                                               set_state(PART:"content_image", "default", 0.0); \
-                                               set_state(PART:"toggle_bar_image", "default", 0.0); \
-                                       } \
-                                       set_int(activated, 0); \
-                               } \
-                       } \
-               } \
-       }
-
-#define QP_MC_TOGGLE_BTN(grp_name, bg_cc, bg_cc_p, img) \
-       group { name: "elm/button/base/"grp_name; \
-               data { \
-                       item: "focus_highlight" "on"; \
-               } \
-               images { \
-                       image: BG_IMG_PATH"/call_noti_btn_bg.png" COMP; \
-                       image: img COMP; \
-               } \
-               script { \
-                       public button_state = 0; \
-               } \
-               parts { \
-                       part { name: "button_image"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       min: TOGGLE_BTN_MIN_SIZE; \
-                                       color_class: bg_cc; \
-                                       image { \
-                                               normal: BG_IMG_PATH"/call_noti_btn_bg.png"; \
-                                               middle: DEFAULT; \
-                                       } \
-                               } \
-                               description { state: "clicked" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: bg_cc_p; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "qp_mc_toogle_dim"; \
-                               } \
-                       } \
-                       part { name: "content_image"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       min: TOGGLE_BTN_MIN_SIZE; \
-                                       aspect_preference: SOURCE; \
-                                       color_class: qp_mc_toogle_icon; \
-                                       rel1 { to: "button_image"; } \
-                                       rel2 { to: "button_image"; } \
-                                       image { \
-                                               normal: img; \
-                                               middle: DEFAULT; \
-                                       } \
-                               } \
-                               description { state: "clicked" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: qp_mc_toogle_icon; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "qp_mc_toogle_dim"; \
-                               } \
-                       } \
-                       part { name: "over"; \
-                               type: RECT; \
-                               repeat_events: 1; \
-                               ignore_flags: "ON_HOLD"; \
-                               description { state: "default" 0.0; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                       } \
-                       part { name: "disabler"; \
-                               type: RECT; \
-                               description { state: "default" 0.0; \
-                                       visible: 0; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                       } \
-               } \
-               programs { \
-                       program { name: "btn_press"; \
-                               signal: "mouse,down,1"; \
-                               source: "over"; \
-                               action: SIGNAL_EMIT "elm,action,press" ""; \
-                               after: "button_click_anim"; \
-                       } \
-                       program { name: "btn_double_click"; \
-                               signal: "mouse,down,1,double"; \
-                               source: "over"; \
-                               after: "button_click_anim"; \
-                       } \
-                       program { name: "btn_unpress"; \
-                               signal: "mouse,up,1"; \
-                               source: "over"; \
-                               script { \
-                                       if (get_int(button_state) != 1) \
-                                               set_state(PART:"button_image", "default", 0.0); \
-                                       set_state(PART:"content_image", "default", 0.0); \
-                               } \
-                               after: "btn_unpress_emit"; \
-                       } \
-                       program { name: "touch_snd"; \
-                               signal: "mouse,clicked,1"; \
-                               source: "over"; \
-                               action: RUN_PLUGIN "touch_sound"; \
-                               after: "button_unclick3"; \
-                       } \
-                       program { name: "disable"; \
-                               signal: "elm,state,disabled"; \
-                               source: "elm"; \
-                               action: STATE_SET "disabled" 0.0; \
-                               target: "button_image"; \
-                               target: "content_image"; \
-                               target: "disabler"; \
-                       } \
-                       program { name: "enable"; \
-                               signal: "elm,state,enabled"; \
-                               source: "elm"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "button_image"; \
-                               target: "content_image"; \
-                               target: "disabler"; \
-                       } \
-                       program { name: "button_click_anim"; \
-                               action: STATE_SET "clicked" 0.0; \
-                               target: "button_image"; \
-                               target: "content_image"; \
-                       } \
-                       program { name: "btn_unpress_emit"; \
-                               action: SIGNAL_EMIT "elm,action,unpress" ""; \
-                       } \
-                       program { name: "button_unclick3"; \
-                               action: SIGNAL_EMIT "elm,action,click" ""; \
-                       } \
-               } \
-       }
-
-#define ACTIVE_NOTI_BTN(grp_name, bg_color_normal, bg_color_dim) \
-       group { name: "elm/button/base/"grp_name; \
-               data.item: "vector_ux" "default"; \
-               data.item: "corner_radius" ACTIVE_NOTI_BTN_CORNER_RADIUS; \
-               script { \
-                       public mouse_down = 0; \
-                       public multi_down = 0; \
-                       public disabled = 0; \
-                       public text = 0; \
-                       public content = 0; \
-                       public animate = 0; \
-                       public selected = 0; \
-                       public minw = 0; \
-                       public minh = 0; \
-                       public get_effect_min_size(base_effect, Float:ratio, min_w, min_h) { \
-                               new x, y, w, h; \
-                               get_geometry(base_effect, x, y, w, h); \
-                               if (w > h) { \
-                                       set_float(min_w, (w - h * (1 - ratio)) / w); \
-                                       set_float(min_h, ratio); \
-                               } else { \
-                                       set_float(min_w, ratio); \
-                                       set_float(min_h, (h - w * (1 - ratio)) / h); \
-                               } \
-                       } \
-               } \
-               parts { \
-                       part { name: "base"; \
-                               scale: 1; \
-                               type: SPACER; \
-                               description { state: "default" 0.0; \
-                                       min: ACTIVE_NOTI_BTN_MIN_W ACTIVE_NOTI_BTN_MIN_H; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape"; \
-                               type: SWALLOW; \
-                               clip_to: "tizen_vg_shape_clipper"; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       min: 0 ACTIVE_NOTI_BTN_MIN_H; \
-                                       rel1.relative: 0 0.0; \
-                                       rel2.relative: 1 1.0; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape_clipper"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color_class: bg_color_normal; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       color_class: bg_color_dim; \
-                               } \
-                       } \
-                       part { name: "effect_spacer"; \
-                               type: SPACER; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "tizen_vg_shape"; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape2"; \
-                               type: SWALLOW; \
-                               clip_to: "tizen_vg_shape_clipper2"; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       fixed: 1 1; \
-                                       rel1.relative: 0.5 0.5; \
-                                       rel2.relative: 0.5 0.5; \
-                               } \
-                               description { state: "ready" 0.0; \
-                                       rel1.to: "effect_spacer"; \
-                                       rel2.to: "effect_spacer"; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       inherit: "ready" 0.0; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape_clipper2"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       visible: 0; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                               description { state: "ready" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       visible: 1; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       color_class: "active_noti_vg_shape_pressed"; \
-                               } \
-                       } \
-                       part { name: "padding_left_top"; \
-                               type: SPACER; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       align: 0.0 0.0; \
-                                       rel2.relative: 0.0 0.0; \
-                                       min: ACTIVE_NOTI_BTN_PAD_LR ACTIVE_NOTI_BTN_PAD_TOP_H; \
-                                       fixed: 1 1; \
-                               } \
-                       } \
-                       part { name: "padding_right_bottom"; \
-                               type: SPACER; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "tizen_vg_shape"; \
-                                       align: 1.0 1.0; \
-                                       rel1.relative: 1.0 1.0; \
-                                       min: ACTIVE_NOTI_BTN_PAD_LR ACTIVE_NOTI_BTN_PAD_BOTTOM_H; \
-                                       fixed: 1 1; \
-                               } \
-                       } \
-                       part { name: "icon_rect"; \
-                               type: SPACER; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       align: 0.0 0.5; \
-                                       rel1 { \
-                                               relative: 1.0 1.0; \
-                                               to: "padding_left_top"; \
-                                       } \
-                                       rel2 { \
-                                               relative: 1.0 0.0; \
-                                               to_x: "padding_left_top"; \
-                                               to_y: "padding_right_bottom"; \
-                                       } \
-                                       min: 0 ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       fixed: 1 1; \
-                               } \
-                               description { state: "visible" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       min: ACTIVE_NOTI_BTN_ICON_DEF_W ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       max: ACTIVE_NOTI_BTN_ICON_DEF_W ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       fixed: 1 1; \
-                               } \
-                               description { state: "icon_only" 0.0; \
-                                       inherit: "default" 0.0; \
-                               } \
-                       } \
-                       part { name: "icon_text_padding"; \
-                               type: SPACER; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       align: 1.0 0.5; \
-                                       min: 0 0; \
-                                       rel1 { \
-                                               relative: 0.0 0.0; \
-                                               to: "elm.text"; \
-                                       } \
-                                       rel2 { \
-                                               relative: 0.0 1.0; \
-                                               to: "elm.text"; \
-                                       } \
-                                       fixed: 1 1; \
-                               } \
-                               description { state: "visible" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       min: ACTIVE_NOTI_BTN_PAD_ICON_R 0; \
-                               } \
-                       } \
-                       part { name: "elm.swallow.content"; \
-                               type: SWALLOW; \
-                               scale: 1; \
-                               clip_to: "clipper"; \
-                               description { state: "default" 0.0; \
-                                       align: 0.0 1.0; \
-                                       rel1 { \
-                                               relative: 1.0 1.0; \
-                                               to: "padding_left_top"; \
-                                       } \
-                                       rel2 { \
-                                               relative: 1.0 1.0; \
-                                               to_x: "padding_left_top"; \
-                                               to_y: "padding_right_bottom"; \
-                                       } \
-                                       min: 0 ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       fixed: 1 0; \
-                               } \
-                               description { state: "visible" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       align: 1.0 0.5; \
-                                       rel1 { \
-                                               relative: 0.0 1.0; \
-                                               to_x: "icon_text_padding"; \
-                                               to_y: "padding_left_top"; \
-                                       } \
-                                       rel2 { \
-                                               relative: 0.0 0.0; \
-                                               to_x: "icon_text_padding"; \
-                                               to_y: "padding_right_bottom"; \
-                                       } \
-                                       min: ACTIVE_NOTI_BTN_ICON_DEF_W ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       fixed: 1 1; \
-                               } \
-                               description { state: "icon_only" 0.0; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "tizen_vg_shape"; \
-                                       min: ACTIVE_NOTI_BTN_ICON_DEF_W ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       max: ACTIVE_NOTI_BTN_ICON_DEF_W ACTIVE_NOTI_BTN_ICON_DEF_H; \
-                                       align: 0.5 0.5; \
-                                       fixed: 1 1; \
-                               } \
-                       } \
-                       part { name: "elm.text"; \
-                               type: TEXTBLOCK; \
-                               mouse_events: 0; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       fixed: 1 1; \
-                                       rel1 { \
-                                               relative: 1.0 1.0; \
-                                               to_x: "icon_rect"; \
-                                               to_y: "padding_left_top"; \
-                                       } \
-                                       rel2 { \
-                                               relative: 0.0 0.0; \
-                                               to: "padding_right_bottom"; \
-                                       } \
-                                       text { \
-                                               style: "active_noti_btn"; \
-                                               max: 1 0; \
-                                       } \
-                                       color: 250 250 250 255; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       text.style: "active_noti_btn"; \
-                                       color: 250 250 250 255; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       text.style: "active_noti_btn"; \
-                                       color: 250 250 250 163; \
-                               } \
-                       } \
-                       part { name: "clipper"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color: 255 255 255 163; \
-                               } \
-                       } \
-                       part { name: "event"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "tizen_vg_shape"; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                       } \
-               } \
-               programs { \
-                       program { name: "pressed_effect"; \
-                               action: STATE_SET "ready" 0.0; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               action: STATE_SET "custom" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               after: "pressed_effect2"; \
-                       } \
-                       program { name: "pressed_effect2"; \
-                               action: STATE_SET "pressed" 0.0; \
-                               target: "elm.text"; \
-                               target: "clipper"; \
-                               target: "tizen_vg_shape2"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               transition: TRANSITION_GLIDE(0.15); \
-                               after: "pressed_effect3"; \
-                       } \
-                       program { name: "pressed_effect3"; \
-                               script { \
-                                       set_int(animate, 0); \
-                               } \
-                       } \
-                       program { name: "delay_unpressed_effect"; \
-                               in: 0.1 0.0; \
-                               after: "unpressed_effect"; \
-                       } \
-                       program { name: "unpressed_effect"; \
-                               script { \
-                                       if (get_int(disabled) == 0) { \
-                                               run_program(PROGRAM:"unpressed_effect2"); \
-                                               run_program(PROGRAM:"unpressed_effect3"); \
-                                       } else { \
-                                               run_program(PROGRAM:"disabled_effect"); \
-                                               run_program(PROGRAM:"disabled_effect2"); \
-                                               run_program(PROGRAM:"disabled_effect3"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed_effect2"; \
-                               action: STATE_SET "ready" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "unpressed_effect3"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "elm.text"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                               after: "unpressed_effect4"; \
-                       } \
-                       program { name: "unpressed_effect4"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "clipper"; \
-                               after: "finished_animation"; \
-                       } \
-                       program { name: "disabled_effect"; \
-                               action: STATE_SET "ready" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect2"; \
-                               action: STATE_SET "disabled" 0.0; \
-                               target: "elm.text"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect3"; \
-                               action: STATE_SET "disabled" 0.0; \
-                               target: "clipper"; \
-                               target: "tizen_vg_shape_clipper"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                               after: "finished_animation"; \
-                       } \
-                       program { name: "finished_animation"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                       } \
-                       program { name: "pressed"; \
-                               signal: "mouse,down,1*"; \
-                               source: "event"; \
-                               script { \
-                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
-                                               new Float:rel_w, Float:rel_h; \
-                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
-                                               set_int(mouse_down, 1); \
-                                               set_int(animate, 1); \
-                                               custom_state(PART:"tizen_vg_shape2", "default", 0.0); \
-                                               get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh); \
-                                               rel_w = (1 - get_float(minw)) / 2; \
-                                               rel_h = (1 - get_float(minh)) / 2; \
-                                               set_state_val(PART:"tizen_vg_shape2", STATE_REL1, rel_w, rel_h); \
-                                               set_state_val(PART:"tizen_vg_shape2", STATE_REL2, 1 - rel_w, 1 - rel_h); \
-                                               emit("elm,action,press", ""); \
-                                               run_program(PROGRAM:"pressed_effect"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed"; \
-                               signal: "mouse,up,1"; \
-                               source: "event"; \
-                               script { \
-                                       if (get_int(mouse_down) == 1) { \
-                                               set_int(mouse_down, 0); \
-                                               if (get_int(disabled) == 0) { \
-                                                       if (get_int(animate) == 0) { \
-                                                               run_program(PROGRAM:"unpressed_effect"); \
-                                                       } else { \
-                                                               set_state(PART:"elm.text", "pressed", 0.0); \
-                                                               set_state(PART:"clipper", "pressed", 0.0); \
-                                                               set_state(PART:"tizen_vg_shape2", "pressed", 0.0); \
-                                                               set_state(PART:"tizen_vg_shape_clipper2", "pressed", 0.0); \
-                                                               set_int(animate, 0); \
-                                                               run_program(PROGRAM:"delay_unpressed_effect"); \
-                                                       } \
-                                                       emit("elm,action,unpress", ""); \
-                                               } \
-                                       } \
-                               } \
-                       } \
-                       program { name: "touch_snd"; \
-                               signal: "mouse,clicked,1"; \
-                               source: "event"; \
-                               script { \
-                                       if (get_int(multi_down) == 0) { \
-                                               if (get_int(disabled) == 0) { \
-                                                       run_program(PROGRAM:"touch_sound"); \
-                                                       run_program(PROGRAM:"clicked_signal"); \
-                                               } \
-                                       } \
-                               } \
-                       } \
-                       program { name: "touch_sound"; \
-                               action: RUN_PLUGIN "touch_sound"; \
-                       } \
-                       program { name: "clicked_signal"; \
-                               in: 0.001 0.0; \
-                               action: SIGNAL_EMIT "elm,action,click" ""; \
-                       } \
-                       program { name: "icon_show"; \
-                               signal: "elm,state,icon,visible"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(content, 1); \
-                                       set_state(PART:"icon_text_padding", "visible", 0.0); \
-                                       if (get_int(text) == 1) { \
-                                               set_state(PART:"icon_rect", "visible", 0.0); \
-                                               set_state(PART:"elm.swallow.content", "visible", 0.0); \
-                                       } else { \
-                                               set_state(PART:"icon_rect", "icon_only", 0.0); \
-                                               set_state(PART:"elm.swallow.content", "icon_only", 0.0); \
-                                               set_state(PART:"padding_left_top", "icon_only", 0.0); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "icon_hide"; \
-                               signal: "elm,state,icon,hidden"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(content, 0); \
-                                       set_state(PART:"icon_text_padding", "default", 0.0); \
-                                       set_state(PART:"icon_rect", "default", 0.0); \
-                                       set_state(PART:"elm.swallow.content", "default", 0.0); \
-                               } \
-                       } \
-                       program { name: "text_show"; \
-                               signal: "elm,state,text,visible"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(text, 1); \
-                                       if (get_int(content) == 1) { \
-                                               set_state(PART:"icon_rect", "visible", 0.0); \
-                                               set_state(PART:"elm.swallow.content", "visible", 0.0); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "text_hide"; \
-                               signal: "elm,state,text,hidden"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(text, 0); \
-                                       if (get_int(content) == 1) { \
-                                               set_state(PART:"icon_rect", "icon_only", 0.0); \
-                                               set_state(PART:"elm.swallow.content", "icon_only", 0.0); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "disable"; \
-                               signal: "elm,state,disabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 1); \
-                                       if (get_int(animate) == 1) return; \
-                                       set_state(PART:"clipper", "disabled", 0.0); \
-                                       set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0); \
-                                       set_state(PART:"elm.text", "disabled", 0.0); \
-                               } \
-                       } \
-                       program { name: "enable"; \
-                               signal: "elm,state,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 0); \
-                                       set_state(PART:"clipper", "default", 0.0); \
-                                       set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); \
-                                       set_state(PART:"elm.text", "default", 0.0); \
-                               } \
-                       } \
-                       program { name: "multi_down"; \
-                               signal: "elm,action,multi,down"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 1); \
-                               } \
-                       } \
-                       program { name: "multi_up"; \
-                               signal: "elm,action,multi,up"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 0); \
-                               } \
-                       } \
-                       program { name: "pass_event_enable"; \
-                               signal: "elm,event,pass,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_mouse_events(PART:"event", 0); \
-                               } \
-                       } \
-                       program { name: "pass_event_disable"; \
-                               signal: "elm,event,pass,disabled"; \
-                               source:"elm"; \
-                               script { \
-                                       set_mouse_events(PART:"event", 1); \
-                               } \
-                       } \
-                       program { name: "repeat_event_enable"; \
-                               signal: "elm,event,repeat,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_repeat_events(PART:"event", 1); \
-                               } \
-                       } \
-                       program { name: "repeat_event_disable"; \
-                               signal: "elm,event,repeat,disabled"; \
-                               source:"elm"; \
-                               script { \
-                                       set_repeat_events(PART:"event", 0); \
-                               } \
-                       } \
-               } \
-       }
-
-#define CIRCLE_BTN_WITH_ICON(grp_name, btn_size, btn_bg_color_norm, btn_bg_color_dim, btn_icon_path, btn_icon_color_norm) \
-       group { name: "elm/button/base/"grp_name; \
-               data.item: "vector_ux" "circle"; \
-               images { \
-                       image: btn_icon_path COMP; \
-               } \
-               script { \
-                       public mouse_down = 0; \
-                       public multi_down = 0; \
-                       public disabled = 0; \
-                       public animate = 0; \
-               } \
-               parts { \
-                       part { name: "base"; \
-                               scale: 1; \
-                               type: SPACER; \
-                               description { state: "default" 0.0; \
-                                       min: btn_size btn_size; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape"; \
-                               type: SWALLOW; \
-                               clip_to: "tizen_vg_shape_clipper"; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       min: btn_size btn_size; \
-                                       rel1.relative: 0.5 0; \
-                                       rel2.relative: 0.5 0; \
-                                       align: 0.5 0; \
-                                       fixed: 1 1; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape_clipper"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color_class: btn_bg_color_norm; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       color_class: btn_bg_color_dim; \
-                               } \
-                       } \
-                       part { name: "effect_spacer"; \
-                               type: SPACER; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "tizen_vg_shape"; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape2"; \
-                               type: SWALLOW; \
-                               clip_to: "tizen_vg_shape_clipper2"; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1.to: "effect_spacer"; \
-                                       rel2.to: "effect_spacer"; \
-                                       rel1.relative: 0.15 0.15; \
-                                       rel2.relative: 0.85 0.85; \
-                               } \
-                               description { state: "ready" 0.0; \
-                                       inherit: "default" 0.0; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       rel1.relative: 0.0 0.0; \
-                                       rel2.relative: 1.0 1.0; \
-                               } \
-                       } \
-                       part { name: "tizen_vg_shape_clipper2"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       visible: 0; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                               description { state: "ready" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       visible: 1; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       color: 0 0 0 77; \
-                               } \
-                       } \
-                       part { name: "elm.icon"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               clip_to: "clipper"; \
-                               description { state: "default" 0.0; \
-                                       min: CIRCLE_BTN_DEF_ICON_SIZE; \
-                                       aspect_preference: SOURCE; \
-                                       color_class: btn_icon_color_norm; \
-                                       fixed: 1 1; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "tizen_vg_shape"; \
-                                       rel1.relative: 0.5 0.5; \
-                                       rel2.relative: 0.5 0.5; \
-                                       image { \
-                                               normal: btn_icon_path; \
-                                               middle: DEFAULT; \
-                                       } \
-                               } \
-                       } \
-                       part { name: "clipper"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                               } \
-                               description { state: "disabled" 0.0; \
-                                       color: 255 255 255 127; \
-                               } \
-                       } \
-                       part { name: "event"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1.to: "tizen_vg_shape"; \
-                                       rel2.to: "elm.icon"; \
-                                       color: COLOR_BG_ALPHA; \
-                               } \
-                       } \
-               } \
-               programs { \
-                       program { name: "pressed_effect"; \
-                               action: STATE_SET "ready" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               after: "pressed_effect2"; \
-                       } \
-                       program { name: "pressed_effect2"; \
-                               action: STATE_SET "pressed" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               target: "clipper"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               transition: TRANSITION_GLIDE(0.15); \
-                               after: "pressed_effect3"; \
-                       } \
-                       program { name: "pressed_effect3"; \
-                               script { \
-                                       set_int(animate, 0); \
-                               } \
-                       } \
-                       program { name: "delay_unpressed_effect"; \
-                               in: 0.1 0.0; \
-                               after: "unpressed_effect"; \
-                       } \
-                       program { name: "unpressed_effect"; \
-                               script { \
-                                       if (get_int(disabled) == 0) { \
-                                               run_program(PROGRAM:"unpressed_effect2"); \
-                                       } else { \
-                                               run_program(PROGRAM:"disabled_effect"); \
-                                               run_program(PROGRAM:"disabled_effect3"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed_effect2"; \
-                               action: STATE_SET "ready" 0.0; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                               after: "unpressed_effect4"; \
-                       } \
-                       program { name: "unpressed_effect4"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "clipper"; \
-                               after: "finished_animation"; \
-                       } \
-                       program { name: "disabled_effect"; \
-                               action: STATE_SET "ready" 0.0; \
-                               target: "tizen_vg_shape_clipper2"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                       } \
-                       program { name: "disabled_effect3"; \
-                               action: STATE_SET "disabled" 0.0; \
-                               target: "clipper"; \
-                               target: "tizen_vg_shape_clipper"; \
-                               transition: TRANSITION_GLIDE(0.45); \
-                               after: "finished_animation"; \
-                       } \
-                       program { name: "finished_animation"; \
-                               action: STATE_SET "default" 0.0; \
-                               target: "tizen_vg_shape2"; \
-                               target: "tizen_vg_shape_clipper2"; \
-                       } \
-                       program { name: "pressed"; \
-                               signal: "mouse,down,1*"; \
-                               source: "event"; \
-                               script { \
-                                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { \
-                                               stop_program(PROGRAM:"delay_unpressed_effect"); \
-                                               set_int(mouse_down, 1); \
-                                               set_int(animate, 1); \
-                                               emit("elm,action,press", ""); \
-                                               run_program(PROGRAM:"pressed_effect"); \
-                                       } \
-                               } \
-                       } \
-                       program { name: "unpressed"; \
-                               signal: "mouse,up,1"; \
-                               source: "event"; \
-                               script { \
-                                       if (get_int(mouse_down) == 1) { \
-                                               set_int(mouse_down, 0); \
-                                               if (get_int(disabled) == 0) { \
-                                                       if (get_int(animate) == 0) { \
-                                                               emit("elm,action,unpress", ""); \
-                                                               run_program(PROGRAM:"unpressed_effect"); \
-                                                       } else { \
-                                                               set_state(PART:"clipper", "pressed", 0.0); \
-                                                               set_state(PART:"tizen_vg_shape2", "pressed", 0.0); \
-                                                               set_state(PART:"tizen_vg_shape_clipper2", "pressed", 0.0); \
-                                                               set_int(animate, 0); \
-                                                               run_program(PROGRAM:"delay_unpressed_effect"); \
-                                                       } \
-                                               } \
-                                       } \
-                               } \
-                       } \
-                       program { name: "touch_snd"; \
-                               signal: "mouse,clicked,1"; \
-                               source: "event"; \
-                               script { \
-                                       if (get_int(multi_down) == 0) { \
-                                               if (get_int(disabled) == 0) { \
-                                                       run_program(PROGRAM:"touch_sound"); \
-                                                       run_program(PROGRAM:"clicked_signal"); \
-                                               } \
-                                       } \
-                               } \
-                       } \
-                       program { name: "touch_sound"; \
-                               action: RUN_PLUGIN "touch_sound"; \
-                       } \
-                       program { name: "clicked_signal"; \
-                               in: 0.001 0.0; \
-                               action: SIGNAL_EMIT "elm,action,click" ""; \
-                       } \
-                       program { name: "disable"; \
-                               signal: "elm,state,disabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 1); \
-                                       if (get_int(animate) == 1) return; \
-                                       set_state(PART:"clipper", "disabled", 0.0); \
-                                       set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0); \
-                               } \
-                       } \
-                       program { name: "enable"; \
-                               signal: "elm,state,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(disabled, 0); \
-                                       set_state(PART:"clipper", "default", 0.0); \
-                                       set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); \
-                               } \
-                       } \
-                       program { name: "multi_down"; \
-                               signal: "elm,action,multi,down"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 1); \
-                               } \
-                       } \
-                       program { name: "multi_up"; \
-                               signal: "elm,action,multi,up"; \
-                               source: "elm"; \
-                               script { \
-                                       set_int(multi_down, 0); \
-                               } \
-                       } \
-                       program { name: "pass_event_enable"; \
-                               signal: "elm,event,pass,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_mouse_events(PART:"event", 0); \
-                               } \
-                       } \
-                       program { name: "pass_event_disable"; \
-                               signal: "elm,event,pass,disabled"; \
-                               source:"elm"; \
-                               script { \
-                                       set_mouse_events(PART:"event", 1); \
-                               } \
-                       } \
-                       program { name: "repeat_event_enable"; \
-                               signal: "elm,event,repeat,enabled"; \
-                               source: "elm"; \
-                               script { \
-                                       set_mouse_events(PART:"event", 1); \
-                               } \
-                       } \
-                       program { name: "repeat_event_disable"; \
-                               signal: "elm,event,repeat,disabled"; \
-                               source:"elm"; \
-                               script { \
-                                       set_mouse_events(PART:"event", 0); \
-                               } \
-                       } \
-               } \
-       }
-
-#define PRESS_EFFECT_DEFAULT_SCRIPT_VAR \
-       public mouse_down = 0; \
-       public multi_down = 0; \
-       public animate = 0; \
-
-#define PRESS_EFFECT_DEFAULT_PROGRAMS \
-       program { name: "pressed_effect"; \
-               action: STATE_SET "pressed_effect" 0.0; \
-               target: "bg_press"; \
-               after: "pressed_effect2"; \
-       } \
-       program { name: "pressed_effect2"; \
-               action: STATE_SET "pressed" 0.0; \
-               target: "bg_press"; \
-               transition: TRANSITION_GLIDE(0.15); \
-               after: "pressed_effect3"; \
-       } \
-       program { name: "pressed_effect3"; \
-               script { \
-                       set_int(animate, 0); \
-               } \
-       } \
-       program { name: "delay_unpressed_effect"; \
-               in: 0.1 0.0; \
-               after: "unpressed_effect"; \
-       } \
-       program { name: "unpressed_effect"; \
-               action: STATE_SET "default" 0.0; \
-               target: "bg_press"; \
-               transition: TRANSITION_GLIDE(0.45); \
-       } \
-       program { name: "pressed"; \
-               signal: "mouse,down,1*"; \
-               source: "over"; \
-               script { \
-                       if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) { \
-                               stop_program(PROGRAM:"delay_unpressed_effect"); \
-                               set_int(mouse_down, 1); \
-                               set_int(animate, 1); \
-                               emit("elm,action,press", ""); \
-                               run_program(PROGRAM:"pressed_effect"); \
-                       } \
-               } \
-       } \
-       program { name: "unpressed"; \
-               signal: "mouse,up,1"; \
-               source: "over"; \
-               script { \
-                       if (get_int(mouse_down) == 1) { \
-                               set_int(mouse_down, 0); \
-                               if (get_int(animate) == 0) { \
-                                       run_program(PROGRAM:"unpressed_effect"); \
-                               } else { \
-                                       set_state(PART:"bg_press", "pressed", 0.0); \
-                                       set_int(animate, 0); \
-                                       run_program(PROGRAM:"delay_unpressed_effect"); \
-                               } \
-                               emit("elm,action,unpress", ""); \
-                       } \
-               } \
-       } \
-       program { name: "touch_snd"; \
-               signal: "mouse,clicked,1"; \
-               source: "over"; \
-                       script { \
-                               if (get_int(multi_down) == 0) { \
-                                       run_program(PROGRAM:"touch_sound"); \
-                                       run_program(PROGRAM:"clicked_signal"); \
-                               } \
-                       } \
-       } \
-       program { name: "touch_sound"; \
-               action: RUN_PLUGIN "touch_sound"; \
-       } \
-       program { name: "clicked_signal"; \
-               in: 0.001 0.0; \
-               action: SIGNAL_EMIT "elm,action,click" ""; \
-       } \
-       program { name: "multi_down"; \
-               signal: "elm,action,multi,down"; \
-               source: "elm"; \
-               script { \
-                       set_int(multi_down, 1); \
-               } \
-       } \
-       program { name: "multi_up"; \
-               signal: "elm,action,multi,up"; \
-               source: "elm"; \
-               script { \
-                       set_int(multi_down, 0); \
-               } \
-       } \
-
-#define SPLIT_CALL_MANAGE_BTN(grp_name, bg_image, icon, bg_color_norm, bg_color_press) \
-       group { name: "elm/button/base/"grp_name; \
-               images { \
-                       image: bg_image COMP; \
-                       image: icon COMP; \
-               } \
-               script { \
-                       PRESS_EFFECT_DEFAULT_SCRIPT_VAR \
-               } \
-               parts { part { name: "bg"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { \
-                                       state: "default" 0.0; \
-                                       image.normal: bg_image; \
-                                       color_class: bg_color_norm; \
-                               } \
-                       } \
-                       part { name: "bg_press"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               mouse_events: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
-                                       image.normal: bg_image; \
-                                       color_class: "transparent_black"; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: bg_color_press; \
-                               } \
-                               description { state: "pressed_effect" 0.0; \
-                                       inherit: "pressed" 0.0; \
-                                       rel1 { relative: 0.15 0.15; to: "bg"; } \
-                                       rel2 { relative: 0.85 0.85; to: "bg"; } \
-                               } \
-                       } \
-                       part { name: "icon"; \
-                               type: IMAGE; \
-                               scale: 1; \
-                               description { \
-                                       state: "default" 0.0; \
-                                       rel1.relative: MS_BTN_ICON_L MS_BTN_ICON_T; \
-                                       rel2.relative: MS_BTN_ICON_R MS_BTN_ICON_B; \
-                                       image.normal: icon; \
-                               } \
-                       } \
-                       part { name: "text"; \
-                               type: TEXTBLOCK; \
-                               scale: 1; \
-                               description { \
-                                       state: "default" 0.0; \
-                                       rel1 { relative: 0.0 1.0; to_y: "icon"; } \
-                                       rel2.relative: 1.0 MS_BTN_TEXT_B; \
-                                       text.style: "sc_manage_call_btn"; \
-                               } \
-                       } \
-                       part { name: "over"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color: COLOR_BG_ALPHA; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
-                               } \
-                       } \
-               } \
-               programs { \
-                       PRESS_EFFECT_DEFAULT_PROGRAMS \
-               } \
-       }
-
-#define END_CALL_REPLY_BTN(grp_name, img_path) \
-       group { name: "elm/button/base/"grp_name; \
-               images { \
-                       image: img_path COMP; \
-               } \
-               script { \
-                       PRESS_EFFECT_DEFAULT_SCRIPT_VAR \
-               } \
-               parts { \
-                       part { name: "bg"; \
-                               type: RECT; \
-                               scale: 1 ; \
-                               description { state: "default" 0.0; \
-                                       min: 0 END_CALL_REPLY_BTN_HEIGHT; \
-                                       color_class: "ec_reply_btn_bg_norm"; \
-                               } \
-                       } \
-                       part { "bg_press"; \
-                               type: RECT; \
-                               scale: 1 ; \
-                               description { state: "default" 0.0; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
-                                       color_class: "ec_reply_btn_bg_norm"; \
-                               } \
-                               description { state: "pressed" 0.0; \
-                                       inherit: "default" 0.0; \
-                                       color_class: "ec_reply_btn_bg_pressed"; \
-                               } \
-                               description { state: "pressed_effect" 0.0; \
-                                       inherit: "pressed" 0.0; \
-                                       rel1 { relative: 0.15 0.15; to: "bg"; } \
-                                       rel2 { relative: 0.85 0.85; to: "bg"; } \
-                               } \
-                       } \
-                       part { name: "icon.padding.top"; \
-                               type: SPACER; \
-                               scale: 1 ; \
-                               description { state: "default" 0.0; \
-                                       min: 0 END_CALL_REPLY_BTN_ICON_PAD_TOP; \
-                                       fixed: 0 1; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 0.0; to: "bg"; } \
-                                       align: 0.0 0.0; \
-                               } \
-                       } \
-                       part { name: "icon"; \
-                               type: IMAGE; \
-                               scale: 1 ; \
-                               description { state: "default" 0.0; \
-                                       rel1 { relative: 0.0 1.0; to: "icon.padding.top"; } \
-                                       rel2 { relative: 1.0 1.0; to: "icon.padding.top"; } \
-                                       min: END_CALL_REPLY_BTN_ICON_SIZE; \
-                                       max: END_CALL_REPLY_BTN_ICON_SIZE; \
-                                       fixed: 1 1; \
-                                       image.normal: img_path; \
-                                       color_class: "ec_reply_btn_icon"; \
-                                       align: 0.5 0.0; \
-                               } \
-                       } \
-                       part { name: "text.padding.top"; \
-                               type: SPACER; \
-                               scale: 1 ; \
-                               description { state: "default" 0.0; \
-                                       min: 0 END_CALL_REPLY_BTN_TXT_PAD_TOP; \
-                                       fixed: 0 1; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 0.0; to: "bg"; } \
-                                       align: 0.0 0.0; \
-                               } \
-                       } \
-                       part { name: "text"; \
-                               type: TEXTBLOCK; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       rel1 { relative: 0.0 1.0; to: "text.padding.top"; } \
-                                       rel2 { relative: 1.0 1.0; to: "text.padding.top"; } \
-                                       min: 0 END_CALL_REPLY_BTN_TXT_HEIGHT; \
-                                       text { \
-                                               fit: 1 1; \
-                                               style:"ec_reply_btn"; \
-                                       } \
-                               } \
-                       } \
-                       part { name: "over"; \
-                               type: RECT; \
-                               scale: 1; \
-                               description { state: "default" 0.0; \
-                                       color: COLOR_BG_ALPHA; \
-                                       rel1 { relative: 0.0 0.0; to: "bg"; } \
-                                       rel2 { relative: 1.0 1.0; to: "bg"; } \
-                               } \
-                       } \
-               } \
-               programs { \
-                       PRESS_EFFECT_DEFAULT_PROGRAMS \
-               } \
-       }
-
-collections {
-
-       base_scale: 2.6;
-
-       plugins {
-               plugin { name: "touch_sound";
-                       source: "feedback";
-                       param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP";
-               }
-       }
-
-/* Action bar buttons */
-       ACTION_BTN("callui_action_btn_add", ICON_IMG_PATH"/call_btn_addcall.png")
-       ACTION_BTN("callui_action_btn_keypad", ICON_IMG_PATH"/call_btn_keypad.png")
-       ACTION_BTN("callui_action_btn_contacts", ICON_IMG_PATH"/call_btn_contacts.png")
-       ACTION_BTN_TOGGLE("callui_action_btn_speaker", ICON_IMG_PATH"/call_btn_volume.png")
-       ACTION_BTN_TOGGLE("callui_action_btn_mute", ICON_IMG_PATH"/call_btn_mute.png")
-       ACTION_BTN_TOGGLE("callui_action_btn_headset", ICON_IMG_PATH"/call_btn_bluetooth.png")
-
-/* Quick panel Mini Control accept and reject buttons */
-       QP_MC_TOGGLE_BTN("callui_qp_btn_end", "qp_mc_reject_norm", "qp_mc_reject_press", ICON_IMG_PATH"/call_noti_btn_end.png");
-       QP_MC_TOGGLE_BTN("callui_qp_btn_call", "qp_mc_accept_norm", "qp_mc_accept_press", ICON_IMG_PATH"/call_noti_btn_send.png");
-
-/* Quick panel Mini Control mute button */
-       QP_MC_TOGGLE_BTN("callui_qp_btn_mute", "qp_mc_toogle_norm", "qp_mc_toogle_norm", ICON_IMG_PATH"/call_noti_btn_mute.png");
-       QP_MC_TOGGLE_BTN("callui_qp_btn_mute_on", "qp_mc_toogle_off", "qp_mc_toogle_off", ICON_IMG_PATH"/call_noti_btn_mute.png");
-
-/* Quick panel Mini Control speaker button */
-       QP_MC_TOGGLE_BTN("callui_qp_btn_speaker", "qp_mc_toogle_norm", "qp_mc_toogle_norm", ICON_IMG_PATH"/call_noti_btn_speaker.png");
-       QP_MC_TOGGLE_BTN("callui_qp_btn_speaker_on", "qp_mc_toogle_off", "qp_mc_toogle_off", ICON_IMG_PATH"/call_noti_btn_speaker.png");
-
-/* Quick panel Mini Control resume button */
-       QP_MC_TOGGLE_BTN("callui_qp_btn_resume", "qp_mc_toogle_norm", "qp_mc_toogle_norm", ICON_IMG_PATH"/call_noti_btn_resume.png");
-       QP_MC_TOGGLE_BTN("callui_qp_btn_resume_on", "qp_mc_toogle_off", "qp_mc_toogle_off", ICON_IMG_PATH"/call_noti_btn_resume.png");
-
-/* Active notification buttons */
-       ACTIVE_NOTI_BTN("callui_active_noti_accept", "active_noti_accept_call", "active_noti_accept_call");
-       ACTIVE_NOTI_BTN("callui_active_noti_reject", "active_noti_reject_call", "active_noti_reject_call");
-       ACTIVE_NOTI_BTN("callui_active_noti_reject_with_msg", "active_noti_reject_message", "active_noti_reject_message");
-
-/* Bottom bar end call button */
-       CIRCLE_BTN_WITH_ICON("callui_circle_bottom_end_call", ENDCALL_BTN_SIZE, "bottom_bar_end_call", "bottom_bar_end_call", IMG_SRC_DIR/"call_btn_ic_reject.png", "btn_icon_def_color");
-
-/* Multicall list buttons */
-       CIRCLE_BTN_WITH_ICON("callui_multi_list_end_call", MULTI_LIST_LIST_ICON_BG_SIZE, "multi_list_btn_end_call", "multi_list_btn_end_call", IMG_SRC_DIR/"call_btn_ic_end.png", "btn_icon_def_color");
-       CIRCLE_BTN_WITH_ICON("callui_multi_list_split_call", MULTI_LIST_LIST_ICON_BG_SIZE, "multi_list_btn_split_call", "multi_list_btn_split_call", IMG_SRC_DIR/"call_btn_ic_split.png", "btn_icon_def_color");
-
-/* Multicall split call manage buttons */
-       SPLIT_CALL_MANAGE_BTN("callui_multi_split_merge_btn", IMG_SRC_DIR/"call_multi_hold_btn_merge_bg.png", IMG_SRC_DIR/"call_multi_ic_merge.png", "multi_hold_merge_btn_norm", "multi_hold_merge_btn_press");
-       SPLIT_CALL_MANAGE_BTN("callui_multi_split_swap_btn", IMG_SRC_DIR/"call_multi_hold_btn_swap_bg.png", IMG_SRC_DIR/"call_multi_ic_swap.png", "multi_hold_swap_btn_norm", "multi_hold_swap_btn_press");
-
-/* End call buttons */
-       END_CALL_REPLY_BTN("callui_endcall_callback", IMG_SRC_DIR/"call_end_call.png");
-       END_CALL_REPLY_BTN("callui_endcall_message", IMG_SRC_DIR/"call_end_message.png");
-}
index 74a06dc..c8d37ce 100644 (file)
@@ -377,7 +377,7 @@ static void __main_layout_del_cb(void *data, Evas *evas, Evas_Object *obj, void
  */
 static Evas_Object *__create_main_layout(callui_action_bar_h action_bar, Evas_Object *parent)
 {
-       Evas_Object *layout = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_BUTTON_LAYOUT);
+       Evas_Object *layout = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_BUTTON_LAYOUT);
        CALLUI_RETURN_NULL_IF_FAIL(layout);
        evas_object_event_callback_add(layout, EVAS_CALLBACK_DEL, __main_layout_del_cb, action_bar);
        return layout;
index 5e62fec..850b444 100755 (executable)
@@ -520,23 +520,13 @@ static const char *__get_resource(const char *res_name)
 }
 
 /**
- * @brief Gets call edj file path
- *
- * @return Call edj file path
- */
-const char *_callui_common_get_call_edj_path()
-{
-       return __get_resource(CALLUI_CALL_EDJ_NAME);
-}
-
-/**
  * @brief Gets call theme edj file path
  *
  * @return Call theme edj file path
  */
 const char *_callui_common_get_call_theme_path()
 {
-       return __get_resource(CALLUI_CALL_THEME_EDJ_NAME);
+       return __get_resource(CALLUI_THEME_EDJ_NAME);
 }
 
 /**
index 5dda844..22d2027 100755 (executable)
@@ -86,12 +86,12 @@ static callui_result_e __callui_keypad_init(callui_keypad_h keypad, callui_app_d
 {
        keypad->ad = appdata;
 
-       keypad->main_layout = _callui_load_edj(_callui_vm_get_main_ly(appdata->view_manager), CALLUI_CALL_EDJ_PATH, "keypad_layout");
+       keypad->main_layout = _callui_load_edj(_callui_vm_get_main_ly(appdata->view_manager), CALLUI_THEME_PATH, "keypad_layout");
        CALLUI_RETURN_VALUE_IF_FAIL(keypad->main_layout, CALLUI_RESULT_ALLOCATION_FAIL);
 
        elm_object_signal_callback_add(keypad->main_layout, "hide_completed", "*", __on_hide_completed, keypad);
 
-       keypad->btns_layout = _callui_load_edj(keypad->main_layout, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_KEYPAD);
+       keypad->btns_layout = _callui_load_edj(keypad->main_layout, CALLUI_THEME_PATH, CALLUI_GROUP_KEYPAD);
        CALLUI_RETURN_VALUE_IF_FAIL(keypad->btns_layout, CALLUI_RESULT_ALLOCATION_FAIL);
 
        elm_object_part_content_set(keypad->main_layout, CALLUI_PART_SWALLOW_KEYPAD, keypad->btns_layout);
index 5baeb12..05b0cea 100755 (executable)
@@ -161,7 +161,7 @@ static bool __callui_touch_lock_manager_create_layout(_callui_touch_lock_manager
        evas_object_show(hit_rect);
        tlm_h->hit_rect = hit_rect;
 
-       layout = _callui_load_edj(_callui_vm_get_main_ly(ad->view_manager), CALLUI_CALL_EDJ_PATH, "lock-screen");
+       layout = _callui_load_edj(_callui_vm_get_main_ly(ad->view_manager), CALLUI_THEME_PATH, "lock-screen");
        CALLUI_RETURN_VALUE_IF_FAIL(layout, false);
 
        evas_object_resize(layout, ad->root_w, ad->root_h);
index 7fcebdb..b23efa8 100644 (file)
@@ -184,7 +184,7 @@ static callui_result_e __create_main_content(callui_view_callend_h vd, Evas_Obje
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_ENDCALL_VIEW_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_ENDCALL_VIEW_LY);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content", vd->base_view.contents);
 
@@ -195,7 +195,7 @@ static callui_result_e __create_main_content(callui_view_callend_h vd, Evas_Obje
        elm_object_signal_callback_add(vd->base_view.contents,
                        "maximize.anim.finished", "end_call_view_ly", __maximize_anim_completed_cb, vd);
 
-       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_CALLER_INFO);
+       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_CALLER_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->caller_info, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->base_view.contents, "swallow.caller_info", vd->caller_info);
 
index cba016d..eb86c67 100755 (executable)
@@ -361,7 +361,7 @@ callui_result_e _callui_view_circle_create_reject_layout(callui_app_data_t *ad,
                CALLUI_RETURN_VALUE_IF_FAIL(res == CALLUI_RESULT_OK, CALLUI_RESULT_FAIL);
        }
 
-       lock_reject = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_LOCK_REJECT);
+       lock_reject = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_LOCK_REJECT);
        CALLUI_RETURN_VALUE_IF_FAIL(lock_reject, CALLUI_RESULT_ALLOCATION_FAIL);
        evas_object_resize(lock_reject, ad->root_w, ad->root_h);
        evas_object_move(lock_reject, 0, 0);
@@ -419,7 +419,7 @@ callui_result_e _callui_view_circle_create_accept_layout(callui_app_data_t *ad,
                CALLUI_RETURN_VALUE_IF_FAIL(res == CALLUI_RESULT_OK, CALLUI_RESULT_FAIL);
        }
 
-       lock_accept = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_LOCK_ACCEPT);
+       lock_accept = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_LOCK_ACCEPT);
        CALLUI_RETURN_VALUE_IF_FAIL(lock_accept, CALLUI_RESULT_ALLOCATION_FAIL);
        evas_object_resize(lock_accept, ad->root_w, ad->root_h);
        evas_object_move(lock_accept, 0, 0);
index e61ce19..f4189f5 100644 (file)
@@ -77,12 +77,12 @@ static callui_result_e __create_main_content(callui_view_dialing_h vd, Evas_Obje
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
 
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content", vd->base_view.contents);
 
-       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_CALLER_INFO);
+       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_CALLER_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->caller_info, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->base_view.contents, "swallow.caller_info", vd->caller_info);
 
index e40b5fb..c308a59 100755 (executable)
@@ -157,7 +157,7 @@ Evas_Object *_callui_create_cid_thumbnail_with_size(Evas_Object *parent,
 
        Evas_Object *layout = elm_layout_add(parent);
        CALLUI_RETURN_NULL_IF_FAIL(layout);
-       elm_layout_file_set(layout, CALLUI_CALL_EDJ_PATH, "caller_id");
+       elm_layout_file_set(layout, CALLUI_THEME_PATH, "caller_id");
        evas_object_show(layout);
 
        Evas_Object *thumbnail = layout;
index 2cfd308..5d88215 100644 (file)
@@ -583,7 +583,7 @@ static callui_result_e __rm_create_message_items(callui_view_incoming_call_noti_
 
        int i = 0;
        for (; i < item_count; i++) {
-               Evas_Object *item_ly = _callui_load_edj(box, CALLUI_CALL_EDJ_PATH, "reject_msg_item");
+               Evas_Object *item_ly = _callui_load_edj(box, CALLUI_THEME_PATH, "reject_msg_item");
                CALLUI_RETURN_VALUE_IF_FAIL(item_ly, CALLUI_RESULT_FAIL);
 
                evas_object_size_hint_weight_set(item_ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -605,7 +605,7 @@ static callui_result_e __rm_create_message_items(callui_view_incoming_call_noti_
 
 static callui_result_e __rm_create_compose_item(callui_view_incoming_call_noti_h vd, Evas_Object *box)
 {
-       Evas_Object *item_ly = _callui_load_edj(vd->box, CALLUI_CALL_EDJ_PATH, "reject_msg_item_compose");
+       Evas_Object *item_ly = _callui_load_edj(vd->box, CALLUI_THEME_PATH, "reject_msg_item_compose");
        CALLUI_RETURN_VALUE_IF_FAIL(item_ly, CALLUI_RESULT_FAIL);
 
        evas_object_size_hint_weight_set(item_ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -663,7 +663,7 @@ static void __rm_strock_move_cb(void *data, Evas *e, Evas_Object *obj, void *eve
 static void __rm_create_content(callui_view_incoming_call_noti_h vd)
 {
        /* Reject message list background gradient color layout */
-       vd->rm_scroller_bg = _callui_load_edj(vd->box, CALLUI_CALL_EDJ_PATH, "reject_msg_scroller_bg");
+       vd->rm_scroller_bg = _callui_load_edj(vd->box, CALLUI_THEME_PATH, "reject_msg_scroller_bg");
        evas_object_event_callback_add(vd->rm_scroller_bg, EVAS_CALLBACK_RESIZE, __rm_scroller_bg_resize_cb, vd);
        evas_object_event_callback_add(vd->rm_scroller_bg, EVAS_CALLBACK_MOVE, __rm_scroller_bg_move_cb, vd);
        CALLUI_RETURN_IF_FAIL(vd->rm_scroller_bg);
@@ -805,7 +805,7 @@ static callui_result_e __create_main_content(callui_view_incoming_call_noti_h vd
        elm_box_horizontal_set(vd->box, EINA_FALSE);
        evas_object_show(vd->box);
 
-       vd->layout = _callui_load_edj(vd->box, CALLUI_CALL_EDJ_PATH,  "main_active_noti_call");
+       vd->layout = _callui_load_edj(vd->box, CALLUI_THEME_PATH,  "main_active_noti_call");
        CALLUI_RETURN_VALUE_IF_FAIL(vd->layout, CALLUI_RESULT_ALLOCATION_FAIL);
        evas_object_size_hint_weight_set(vd->layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(vd->layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -851,7 +851,7 @@ static Evas_Object *__create_btn(callui_view_incoming_call_noti_h vd,
        if (icon_name) {
                Evas_Object *icon = elm_image_add(button);
                CALLUI_RETURN_NULL_IF_FAIL(icon);
-               elm_image_file_set(icon, CALLUI_CALL_EDJ_PATH, icon_name);
+               elm_image_file_set(icon, CALLUI_THEME_PATH, icon_name);
                elm_object_part_content_set(button, "elm.swallow.content", icon);
        }
        if (txt) {
index 52d87a6..20d4354 100644 (file)
@@ -229,7 +229,7 @@ static void __reject_msg_genlist_create(callui_view_incoming_call_h vd)
        elm_layout_theme_set(ly, "layout", "application", "default");
 
        Evas_Object *bg = elm_layout_add(ly);
-       elm_bg_file_set(bg, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_BG_LAYOUT);
+       elm_bg_file_set(bg, CALLUI_THEME_PATH, CALLUI_GROUP_BG_LAYOUT);
 
        vd->reject_msg_genlist = elm_genlist_add(ly);
        elm_genlist_homogeneous_set(vd->reject_msg_genlist, EINA_TRUE);
@@ -769,7 +769,7 @@ static void __create_reject_msg_layout(callui_view_incoming_call_h vd)
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->reject_msg_layout = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_LOCK_REJECT_WITH_MSG);
+       vd->reject_msg_layout = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_LOCK_REJECT_WITH_MSG);
 
        evas_object_resize(vd->reject_msg_layout, ad->root_w, ad->root_h);
 
@@ -796,13 +796,13 @@ static callui_result_e __create_main_content(callui_view_incoming_call_h vd, Eva
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content",  vd->base_view.contents);
 
        elm_object_signal_emit(vd->base_view.contents, "hide_endcall_bar",  "view_main_ly");
 
-       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_CALLER_INFO);
+       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_CALLER_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->caller_info, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->base_view.contents, "swallow.caller_info", vd->caller_info);
 
@@ -813,7 +813,7 @@ static callui_result_e __create_main_content(callui_view_incoming_call_h vd, Eva
        res = _callui_view_circle_create_reject_layout(ad, vd, vd->base_view.contents);
        CALLUI_RETURN_VALUE_IF_FAIL(res == CALLUI_RESULT_OK, res);
 
-       vd->dimming_ly = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_BG_DIM_LAYOUT);
+       vd->dimming_ly = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_BG_DIM_LAYOUT);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->dimming_ly, CALLUI_RESULT_ALLOCATION_FAIL);
        evas_object_resize(vd->dimming_ly, ad->root_w, ad->root_h);
        evas_object_move(vd->dimming_ly, 0, 0);
index ecd4a69..9932288 100644 (file)
@@ -244,7 +244,7 @@ static void __end_call_called_cb(void *user_data, unsigned int call_id, callui_c
  */
 static Evas_Object *__create_eo_layout(Evas_Object *parent)
 {
-       Evas_Object *layout = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH,  CALLUI_GROUP_APP_MAIN_LY);
+       Evas_Object *layout = _callui_load_edj(parent, CALLUI_THEME_PATH,  CALLUI_GROUP_APP_MAIN_LY);
        elm_object_content_set(parent, layout);
        evas_object_show(layout);
        return layout;
index e28a884..45529a9 100755 (executable)
@@ -69,7 +69,7 @@ static callui_result_e __create_main_content(callui_view_mc_conf_h vd, Evas_Obje
        callui_app_data_t *ad = vd->base_view.ad;
 
        /* Main Layout */
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content", vd->base_view.contents);
 
@@ -77,12 +77,12 @@ static callui_result_e __create_main_content(callui_view_mc_conf_h vd, Evas_Obje
        eext_object_event_callback_add(vd->base_view.contents, EEXT_CALLBACK_MORE, __more_btn_click_cb, ad);
 
        /* Caller info layout */
-       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_CALLER_INFO);
+       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_CALLER_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->caller_info, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->base_view.contents, "swallow.caller_info", vd->caller_info);
 
        /* Manage button Layout */
-       Evas_Object *manage_calls_ly = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_MANAGE_CALLS);
+       Evas_Object *manage_calls_ly = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_MANAGE_CALLS);
        CALLUI_RETURN_VALUE_IF_FAIL(manage_calls_ly, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->caller_info, "manage_calls_btn", manage_calls_ly);
        edje_object_signal_callback_add(_EDJ(manage_calls_ly), "mouse,clicked,1", "btn", __manage_calls_btn_clicked_cb, vd);
index 4eea9c9..4d04a67 100755 (executable)
@@ -184,7 +184,7 @@ static callui_result_e __create_main_content(callui_view_mc_list_h vd, Evas_Obje
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_MULTICALL_LIST_VIEW_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_MULTICALL_LIST_VIEW_LY);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content", vd->base_view.contents);
 
index b2874ea..46ed64c 100755 (executable)
@@ -185,20 +185,20 @@ static callui_result_e __create_main_content(callui_view_mc_split_h vd, Evas_Obj
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content", vd->base_view.contents);
 
        elm_object_signal_emit(vd->base_view.contents, "hide_call_duration", "view_main_ly");
 
-       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_SPLIT_CALLERS_INFO);
+       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_SPLIT_CALLERS_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->caller_info, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->base_view.contents, "swallow.caller_info", vd->caller_info);
 
-       vd->hold_layout = _callui_load_edj(vd->caller_info, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_SPLIT_HOLD_INFO);
+       vd->hold_layout = _callui_load_edj(vd->caller_info, CALLUI_THEME_PATH, CALLUI_GROUP_SPLIT_HOLD_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->hold_layout, CALLUI_RESULT_ALLOCATION_FAIL);
 
-       vd->active_layout = _callui_load_edj(vd->caller_info, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_SPLIT_ACTIVE_INFO);
+       vd->active_layout = _callui_load_edj(vd->caller_info, CALLUI_THEME_PATH, CALLUI_GROUP_SPLIT_ACTIVE_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->active_layout, CALLUI_RESULT_ALLOCATION_FAIL);
 
        callui_result_e res = __create_merge_swap_btns(vd->caller_info, ad);
index bffa7b2..ef38abb 100755 (executable)
@@ -572,7 +572,7 @@ static callui_result_e __activate(callui_qp_mc_h qp)
                qp->rotate_angle = elm_win_rotation_get(qp->win_quickpanel);
                dbg("current rotate angle(%d)", qp->rotate_angle);
 
-               qp->quickpanel_layout = _callui_load_edj(qp->win_quickpanel, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_QUICKPANEL);
+               qp->quickpanel_layout = _callui_load_edj(qp->win_quickpanel, CALLUI_THEME_PATH, CALLUI_GROUP_QUICKPANEL);
                if (qp->quickpanel_layout == NULL) {
                        err("__callui_qp_mc_create_contents() FAILED!");
                        return CALLUI_RESULT_FAIL;
index a4b5503..ed29c5c 100644 (file)
@@ -229,14 +229,14 @@ static callui_result_e __create_main_content(call_view_single_call_h vd, Evas_Ob
 {
        callui_app_data_t *ad = vd->base_view.ad;
 
-       vd->base_view.contents = _callui_load_edj(parent, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
+       vd->base_view.contents = _callui_load_edj(parent, CALLUI_THEME_PATH, CALLUI_GROUP_VIEW_MAIN_LY);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.contents, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(parent, "elm.swallow.content", vd->base_view.contents);
 
        // TODO: replace this into view manager in nearest future
        eext_object_event_callback_add(vd->base_view.contents, EEXT_CALLBACK_MORE, __more_btn_click_cb, ad);
 
-       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_CALL_EDJ_PATH, CALLUI_GROUP_CALLER_INFO);
+       vd->caller_info = _callui_load_edj(vd->base_view.contents, CALLUI_THEME_PATH, CALLUI_GROUP_CALLER_INFO);
        CALLUI_RETURN_VALUE_IF_FAIL(vd->caller_info, CALLUI_RESULT_ALLOCATION_FAIL);
        elm_object_part_content_set(vd->base_view.contents, "swallow.caller_info", vd->caller_info);
 
index d175204..ba18bb6 100755 (executable)
@@ -369,7 +369,7 @@ static bool __app_init(callui_app_data_t *ad)
 
        __bt_init();
 
-       elm_theme_extension_add(NULL, CALLUI_CALL_THEME_EDJ_PATH);
+       elm_theme_extension_add(NULL, CALLUI_THEME_PATH);
 
        ad->window = _callui_window_create(ad);
        CALLUI_RETURN_VALUE_IF_FAIL(ad->window, false);
@@ -427,7 +427,7 @@ static bool __app_init(callui_app_data_t *ad)
 
        _callui_common_set_lock_state_changed_cb(ad);
 
-       elm_theme_extension_add(NULL, CALLUI_CALL_THEME_EDJ_PATH);
+       elm_theme_extension_add(NULL, CALLUI_THEME_PATH);
 
        return true;
 }
@@ -541,7 +541,7 @@ static void __app_deinit(callui_app_data_t *ad)
                ad->window = NULL;
        }
 
-       elm_theme_extension_del(NULL, CALLUI_CALL_THEME_EDJ_PATH);
+       elm_theme_extension_del(NULL, CALLUI_THEME_PATH);
 
        free(ad->end_call_data);