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})
+++ /dev/null
-/*
- * 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)
- }
-}
-
--- /dev/null
+/*
+ * 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")
+
--- /dev/null
+/*
+ * 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); \
+ } \
+ } \
*
*/
-#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
*
*/
-#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
}
}
}
+
+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")
#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";
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",
}
}
}
+
+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 {
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;
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;
}
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;
}
}
}
+
+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")
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;
}
}
-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")
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)
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)
)
}
}
+
+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")
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; \
} \
} \
-#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 { \
} \
} \
-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 {
}
}
}
+
+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";
}
}
-#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; \
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";
}
}
}
+
+/* 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")
#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.
#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"
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
#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 {
}
}
- #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"
}
+++ /dev/null
-/*
- * 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");
-}
*/
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;
}
/**
- * @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);
}
/**
{
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);
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);
{
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);
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);
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);
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);
{
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);
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;
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);
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);
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);
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);
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) {
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);
{
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);
{
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);
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);
*/
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;
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);
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);
{
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);
{
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);
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;
{
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);
__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);
_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;
}
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);