ADD_DEPENDENCIES(${PROJECT_NAME} layout_keypad.edj)
INSTALL(FILES ${CMAKE_BINARY_DIR}/layout_keypad.edj DESTINATION ${ISE_LAYOUTDIR}/sdk/edc)
+if(${TARGET} STREQUAL "wearable")
ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
- -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/images
- ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/w-input-stt.edc
- ${CMAKE_BINARY_DIR}/res/edje/w-input-stt.edj
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/w-input-stt.edc)
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt.edc
+ ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt.edc)
ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt.edj)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-stt.edj DESTINATION ${ISE_RESDIR}/edje)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt.edj DESTINATION
+${ISE_RESDIR}/edje/wearable)
ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
- -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/images
- ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/w-input-stt-button.edc
- ${CMAKE_BINARY_DIR}/res/edje/w-input-stt-button.edj
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/edje/w-input-stt-button.edc)
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt-button.edc
+ ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt-button.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt-button.edc)
ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt-button.edj)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-stt-button.edj DESTINATION ${ISE_RESDIR}/edje)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt-button.edj DESTINATION
+${ISE_RESDIR}/edje/wearable)
+
+else()
+ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt.edc
+ ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt.edc)
+ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt.edj)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt.edj DESTINATION
+${ISE_RESDIR}/edje/mobile)
+
+ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt-button.edc
+ ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt-button.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt-button.edc)
+ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt-button.edj)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt-button.edj DESTINATION
+${ISE_RESDIR}/edje/mobile)
+endif()
# For edc File end
INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.xml DESTINATION
${TZ_SYS_RO_PACKAGES})
-FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/images/*.png")
-INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/images)
+if(${TARGET} STREQUAL "wearable")
+FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/images/*.png")
+INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/wearable/images)
+else()
+FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/images/*.png")
+INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/mobile/images)
+endif()
if(${TARGET} STREQUAL "tv")
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/pixmaps/default/tv/
DESTINATION ${ISE_LAYOUTDIR}/wearable/image)
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/layout/wearable/ DESTINATION
${ISE_LAYOUTDIR}/wearable FILES_MATCHING PATTERN "*.xml")
-else(${TARGET} STREQUAL "tv")
+else()
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/pixmaps/default/mobile/
DESTINATION ${ISE_LAYOUTDIR}/mobile/image)
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/layout/mobile/ DESTINATION
--- /dev/null
+/*
+ * Copyright (c) 2011 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 NORMAL_BG_IMAGE "B09_voice_input_panel.png"
+
+#define PROGRESSING_DELAY 0.03
+#define PROGRESS_BG_DESC1( param_name, param_num ) \
+description \
+{ \
+ state, "pulse" 0.#param_num; \
+ inherit, "default" 0.0; \
+ image.normal, "B09_"#param_name"_"#param_num".png"; \
+}
+
+#define LISTEN_BG_DESC( param_name, param_num ) \
+description \
+{ \
+ state, "wave" 0.#param_num; \
+ inherit, "default" 0.0; \
+ image.normal, "B09_"#param_name"_"#param_num".png"; \
+}
+
+#define BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC 112 112
+#define BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC 45 45
+#define BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC 45 45
+#define BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC 13 13
+#define BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC 14 14
+
+#define BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC 0 2
+#define BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC -1 1
+#define BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC 0 -2
+#define BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC -1 -3
+
+#define BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC 0 0 0 255
+#define BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC 0 0 0 255
+#define BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC 21 22 25 255
+
+#define BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC 250 250 250 255
+#define BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC 250 250 250 255
+#define BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC 166 167 169 255
+
+
+///////////////////////////////////////////////////////////////////////////////////////
+
+
+//============================================================================
+//============================================================================
+
+/**
+ * Resources
+ *
+ */
+
+/**
+ * Macro
+ *
+ */
+#define BTN_IMAGE() \
+part \
+{ \
+ name, "button_image"; \
+ mouse_events, 1; \
+ scale, 1; \
+ description \
+ { \
+ state, "default" 0.0; \
+ } \
+ description \
+ { \
+ state, "clicked" 0.0; \
+ inherit, "default" 0.0; \
+ } \
+ description \
+ { \
+ state, "disabled" 0.0; \
+ inherit, "default" 0.0; \
+ visible, 1; \
+ } \
+ description \
+ { \
+ state, "focused" 0.0; \
+ inherit, "default" 0.0; \
+ } \
+}
+
+#define OVER() \
+part \
+{ \
+ name, "over2"; \
+ type, RECT; \
+ mouse_events, 1; \
+ repeat_events, 1; \
+ ignore_flags, ON_HOLD; \
+ description \
+ { \
+ state, "default" 0.0; \
+ color, 0 0 0 0; \
+ } \
+ description \
+ { \
+ state, "disabled" 0.0; \
+ inherit, "default" 0.0; \
+ visible, 0; \
+ } \
+} \
+part \
+{ \
+ name, "over3"; \
+ type, RECT; \
+ mouse_events, 1; \
+ repeat_events, 1; \
+ description \
+ { \
+ state, "default" 0.0; \
+ color, 0 0 0 0; \
+ } \
+ description \
+ { \
+ state, "clicked" 0.0; \
+ inherit, "default" 0.0; \
+ visible, 1; \
+ } \
+}
+
+#define DISABLER() \
+part \
+{ \
+ name, "disabler"; \
+ type, RECT; \
+ description \
+ { \
+ state, "default" 0.0; \
+ color, 255 255 255 0; \
+ visible, 0; \
+ } \
+ description \
+ { \
+ state, "disabled" 0.0; \
+ inherit, "default" 0.0; \
+ visible, 1; \
+ } \
+}
+
+#define PROG_FOCUS \
+program \
+{ \
+ name, "focused"; \
+ signal, "elm,action,focus"; \
+ source, "elm"; \
+ action, STATE_SET "focused" 0.0; \
+ target, "button_image"; \
+} \
+program \
+{ \
+ name, "unfocused"; \
+ signal, "elm,action,unfocus"; \
+ source, "elm"; \
+ action, STATE_SET "default" 0.0; \
+ target, "button_image"; \
+}
+
+#define PROG_ENABLE \
+program \
+{ \
+ name: "disable"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "button_image"; \
+ target: "over2"; \
+ target: "disabler"; \
+} \
+program \
+{ \
+ name: "enable"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "button_image"; \
+ target: "over2"; \
+ target: "disabler"; \
+}
+
+#define PROG_CLICK \
+program \
+{ \
+ name: "button_click"; \
+ signal: "mouse,down,1"; \
+ source: "over2"; \
+ action: SIGNAL_EMIT "elm,action,press" ""; \
+ after: "button_click_anim"; \
+} \
+program \
+{ \
+ name: "button_click_anim"; \
+ action: STATE_SET "clicked" 0.0; \
+ target: "button_image"; \
+} \
+program \
+{ \
+ name: "button_unclick"; \
+ signal: "mouse,up,1"; \
+ source: "over2"; \
+ action: SIGNAL_EMIT "elm,action,unpress" ""; \
+ after: "button_unclick_anim"; \
+} \
+program \
+{ \
+ name: "button_unclick_anim"; \
+ action: STATE_SET "default" 0.0; \
+ target: "button_image"; \
+} \
+program \
+{ \
+ name: "button_mouseout_clicked"; \
+ signal: "mouse,out"; \
+ source: "over2"; \
+ script \
+ { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"button_image", st, 30, vl); \
+ if (!strcmp(st, "clicked")) \
+ { \
+ set_state(PART:"button_image", "visible", 0.0); \
+ } \
+ } \
+} \
+program \
+{ \
+ name: "button_click2"; \
+ signal: "mouse,down,1"; \
+ source: "over3"; \
+ action: STATE_SET "clicked" 0.0; \
+ target: "over3"; \
+ action: SIGNAL_EMIT "elm,action,click" ""; \
+} \
+program \
+{ \
+ name: "button_unclick2"; \
+ signal: "mouse,up,1"; \
+ source: "over3"; \
+ action: STATE_SET "default" 0.0; \
+ target: "over3"; \
+} \
+program \
+{ \
+ name: "button_unclick3"; \
+ signal: "mouse,up,1"; \
+ source: "over2"; \
+}
+
+#define VIC_BUTTON() \
+group \
+{ \
+ name, "elm/button/base/vic/micbutton"; \
+ parts \
+ { \
+ BTN_IMAGE() \
+ OVER() \
+ DISABLER() \
+ } \
+ programs \
+ { \
+ PROG_CLICK \
+ PROG_ENABLE \
+ PROG_FOCUS \
+ } \
+}
+
+collections
+{
+ VIC_BUTTON()
+}
--- /dev/null
+#include "w-input-stt-button.edc"
+
+#define VOICE_CANDIDATE_AREA_HEIGHT 56
+
+collections
+{
+ base_scale: 1.3;
+
+ plugins {
+ plugin {
+ name: "touch_sound";
+ source: "feedback";
+ param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP";
+ /* 2014.06.11 updated from libsvi(feedback)
+ Above plugin will run below external function:
+ int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
+
+ param1: feedback_type_e
+ FEEDBACK_TYPE_NONE = 0,
+ FEEDBACK_TYPE_SOUND = 1,
+ FEEDBACK_TYPE_VIBRATION,
+ FEEDBACK_TYPE_LED,
+ FEEDBACK_TYPE_END
+
+ * param2 enumeration:
+ FEEDBACK_PATTERN_TAP = 0,
+ FEEDBACK_PATTERN_SIP,
+ FEEDBACK_PATTERN_SIP_BACKSPACE,
+ FEEDBACK_PATTERN_SIP_FUNCTION,
+ FEEDBACK_PATTERN_SIP_FJKEY,
+ ...
+ */
+ }
+ plugin {
+ name: "haptic_tap";
+ source: "feedback";
+ param: "FEEDBACK_TYPE_VIBRATION FEEDBACK_PATTERN_TAP";
+ }
+ }
+
+ images {
+ // MIC
+ image, "./bg/B13_mic_bg.png" COMP;
+ image, "./icon/B13_mic.png" COMP;
+ image, "./icon/B13_mic_Que.png" COMP;
+ image, "./icon/B13_mic_Que_01.png" COMP;
+ image, "./icon/B13_mic_procecessing_bg.png" COMP;
+ image, "./text_downdrop.#.png" COMP;
+ image, "./text_downdrop_press.#.png" COMP;
+
+ image, "./input_ic_voice_mic.png" COMP;
+ image, "./w_sip_mask_bg.png" COMP;
+ image, "./tw_bottom_btn_bg.png" COMP;
+
+ image, "./w_mode_ic_bg.png" COMP;
+
+ image, "./b_stt_text_fade_out.png" COMP;
+ image, "./b_stt_icon_btn.png" COMP;
+ image, "./b_stt_confirm_icon.png" COMP;
+ image, "./b_stt_send_icon.png" COMP;
+ }
+
+ color_classes
+ {
+ color_class
+ {
+ name: "AO013";
+ color: 68 71 77 100;
+ }
+ color_class
+ {
+ name: "AO014";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO014P";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO014D";
+ color: 0 0 0 35;
+ }
+ color_class
+ {
+ name: "AO015L1";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO015L1P";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO015L1D";
+ color: 0 0 0 40;
+ }
+ color_class
+ {
+ name: "AO0151";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0151P";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO0151D";
+ color: 0 0 0 20;
+ }
+ color_class
+ {
+ name: "AO0152";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO015L2";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO015L2P";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO015L2D";
+ color: 0 0 0 40;
+ }
+ color_class
+ {
+ name: "AO015L3";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO01151";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO01153L1";
+ color: 163 163 163 100;
+ }
+ color_class
+ {
+ name: "AO01153L1P";
+ color: 61 61 61 100;
+ }
+ color_class
+ {
+ name: "AO01153L1D";
+ color: 163 163 163 100;
+ }
+ color_class
+ {
+ name: "AO01154L1";
+ color: 110 110 110 100;
+ }
+ color_class
+ {
+ name: "AO01154L1P";
+ color: 41 41 41 100;
+ }
+ color_class
+ {
+ name: "AO01154L1D";
+ color: 110 110 110 100;
+ }
+ color_class
+ {
+ name: "AO01155L1";
+ color: 122 122 122 100;
+ }
+ color_class
+ {
+ name: "AO01155L1P";
+ color: 33 33 33 100;
+ }
+ color_class
+ {
+ name: "AO01155L1D";
+ color: 122 122 122 100;
+ }
+ color_class
+ {
+ name: "AO01153L2";
+ color: 18 18 18 30;
+ }
+ color_class
+ {
+ name: "AO01153L3";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO01153L3P";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO01153L3D";
+ color: 0 0 0 40;
+ }
+ color_class
+ {
+ name: "AO0116";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0116P";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO0116D";
+ color: 0 0 0 30;
+ }
+ color_class
+ {
+ name: "AO01161";
+ color: 64 64 64 100;
+ }
+ color_class
+ {
+ name: "AO01161P";
+ color: 38 38 38 100;
+ }
+ color_class
+ {
+ name: "AO01161D";
+ color: 26 26 26 100;
+ }
+ color_class
+ {
+ name: "AO0117";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0118";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0119";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0119P";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0119D";
+ color: 0 0 0 5;
+ }
+ color_class
+ {
+ name: "AO031";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO031P";
+ color: 0 0 0 40;
+ }
+ color_class
+ {
+ name: "AO031L1";
+ color: 0 0 0 41;
+ }
+ color_class
+ {
+ name: "AO031L1P";
+ color: 0 0 0 70;
+ }
+ color_class
+ {
+ name: "AO0331";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO0332";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO034";
+ color: 102 102 102 100;
+ }
+ color_class
+ {
+ name: "AO034P";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO034D";
+ color: 0 0 0 30;
+ }
+ color_class
+ {
+ name: "AO035";
+ color: 5 5 5 100;
+ }
+ color_class
+ {
+ name: "AO0351";
+ color: 0 0 0 15;
+ }
+ color_class
+ {
+ name: "AO036";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO0361";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO037";
+ color: 10 10 10 100;
+ }
+ color_class
+ {
+ name: "AO037P";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO037S";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO038";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AO038P";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AO038D";
+ color: 0 0 0 40;
+ }
+ color_class
+ {
+ name: "AT0113";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT0113P";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT0113D";
+ color: 0 0 0 70;
+ }
+ color_class
+ {
+ name: "AT0113S";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT0114";
+# color: 0 0 0 100;
+ color: 128 128 128 100;
+ }
+ color_class
+ {
+ name: "AT0114D";
+ color: 0 0 0 5;
+ }
+ color_class
+ {
+ name: "AT02111";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT02112";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT02113";
+ color: 10 10 10 100;
+ }
+ color_class
+ {
+ name: "AT021";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT022";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT023";
+ color: 0 0 0 100;
+ }
+ color_class
+ {
+ name: "AT023P";
+ color: 0 0 0 50;
+ }
+ color_class
+ {
+ name: "AT023D";
+ color: 0 0 0 40;
+ }
+ }
+
+ styles
+ {
+ style { name, "textblock_style";
+ base, "font=Tizen:style=Regular font_size=36 align=center color=#FFFFFF text_class=text_class wrap=word ellipsis=1.0";
+ tag, "br" "\n";
+ tag, "ps" "ps";
+ tag, "hilight" "+ font=Tizen:style=Bold";
+ tag, "b" "+ font=Tizen:style=Bold";
+ tag, "tab" "\t";
+ }
+ style { name, "textblock_style_bottom";
+ base, "font=Tizen:style=Regular font_size=36 align=center color=#FFFFFF text_class=text_class wrap=word ellipsis=1.0";
+ tag, "br" "\n";
+ tag, "ps" "ps";
+ tag, "hilight" "+ font=Tizen:style=Bold";
+ tag, "b" "+ font=Tizen:style=Bold";
+ tag, "tab" "\t";
+ }
+ }
+
+ group
+ {
+ name, "mic_control";
+ parts
+ {
+ part
+ {
+ name, "bg";
+ type, RECT;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ rel1
+ {
+ relative, 0.0 0.0;
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ }
+ visible: 0;
+ color_class, "AO0118";
+ }
+ }
+ part
+ {
+ name, "top_block";
+ type, SPACER;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 360 (360-103);
+ align, 0.5 0;
+ rel1
+ {
+ relative, 0.0 0.0;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, 1.0 0.0;
+ to, "bg";
+ }
+ }
+ }
+
+ part
+ {
+ name, "text_area";
+ type, SWALLOW;
+ description
+ {
+ state, "default" 0.0;
+ align, 0.5 1;
+ min, 282 (360-103);
+ max, 282 (360-103);
+
+ rel1
+ {
+ relative, 39/360 1;
+ to, "top_block";
+ offset, 0 -1;
+ }
+ rel2
+ {
+ relative, 321/360 1;
+ to, "top_block";
+ offset, 0 -1;
+ }
+ }
+ }
+ part
+ {
+ name, "left_panel_area";
+ type, SWALLOW;
+ description
+ {
+ state, "default" 0.0;
+ align, 0.5 0.5;
+ rel1
+ {
+ relative, 0.0 0.0;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ to, "bg";
+ }
+ }
+ }
+
+
+ part
+ {
+ name, "background";
+ type, IMAGE;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 360 100;
+ max, 360 100;
+ rel1
+ {
+ relative, 0 260/360;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, 1 1;
+ to, "bg";
+ }
+ image.normal, "./tw_bottom_btn_bg.png";
+ color: 128 128 128 128;
+ }
+ description
+ {
+ state, "pressed" 0.0;
+ inherit, "default" 0.0;
+ color: 128 128 128 128;
+ }
+ description
+ {
+ state, "dim" 0.0;
+ inherit, "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+
+ part
+ {
+ name, "EFFECT_BG_AREA";
+ type, SPACER;
+ description
+ {
+ state, "default" 0.0;
+ min, 0 74;
+ max, 9999 74;
+ align, 0.5 1;
+ rel1
+ {
+ relative, 0 1;
+ to, "bg";
+ offset, 0 -14;
+ }
+ rel2
+ {
+ relative, 1 1;
+ to, "bg";
+ offset, 0 -14;
+ }
+ }
+ }
+ part
+ {
+ name, "EFFECT_BG";
+ type, SWALLOW;
+ description
+ {
+ state, "default" 0.0;
+ visible, 0;
+ rel1
+ {
+ relative, 0 0;
+ to, "EFFECT_BG_AREA";
+ }
+ rel2
+ {
+ relative, 1 1;
+ to, "EFFECT_BG_AREA";
+ }
+ }
+ description
+ {
+ state, "default" 0.1;
+ inherit, "default" 0.0;
+ visible, 1;
+ }
+ }
+
+
+ part
+ {
+ name, "MIC_ICON";
+ type, IMAGE;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 50 50;
+ max, 50 50;
+ rel1
+ {
+ relative, 155/360 26/100;
+ to, "background";
+ }
+ rel2
+ {
+ relative, 205/360 76/100;
+ to, "background";
+ }
+ image.normal, "./input_ic_voice_mic.png";
+ }
+ description
+ {
+ state, "recording" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
+ description
+ {
+ state, "processing" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
+ description
+ {
+ state, "message" 0.0;
+ inherit, "default" 0.0;
+ rel1
+ {
+ relative, 155/360 41/100;
+ to, "background";
+ }
+ rel2
+ {
+ relative, 205/360 91/100;
+ to, "background";
+ }
+ visible, 1;
+ }
+ }
+
+
+
+ //Part for mic button
+ part
+ {
+ name, "MIC";
+ type, SWALLOW;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ visible, 1;
+ min, 290 100;
+ max, 290 100;
+ rel1
+ {
+ relative, 35/360 0.0;
+ to, "background";
+ }
+ rel2
+ {
+ relative, 325/360 1.0;
+ to, "background";
+ }
+ }
+ }
+ part
+ {
+ name, "PROGRESS_BAR";
+ type, SWALLOW;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 50 50;
+ max, 50 50;
+ visible, 0;
+ rel1
+ {
+ relative, 155/360 27/100;
+ to, "background";
+ }
+ rel2
+ {
+ relative, 205/360 77/100;
+ to, "background";
+ }
+ }
+ description
+ {
+ state, "message" 0.0;
+ inherit, "default" 0.0;
+ }
+ description
+ {
+ state, "processing" 0.0;
+ inherit, "default" 0.0;
+ visible, 1;
+ }
+ }
+
+ part
+ {
+ name, "guide_text_block";
+ type, SPACER;
+ description
+ {
+ state, "default" 0.0;
+ align, 0.5 0;
+ rel1
+ {
+ relative, 39/360 140/360;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, (360-39)/360 (140+42)/360;
+ to, "bg";
+ }
+ }
+ description
+ {
+ state, "bottom" 0.0;
+ align, 0.5 0;
+ rel1
+ {
+ relative, 74/360 (360-91)/360;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, (360-74)/360 (360-57)/360;
+ to, "bg";
+ }
+ }
+ }
+
+ part
+ {
+ name, "elm.text";
+ type, TEXTBLOCK;
+ mouse_events, 0;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ visible, 1;
+ align, 0.5 0.6;
+ rel1.to, "guide_text_block";
+ rel2.to, "guide_text_block";
+ text
+ {
+ fit: 1 1;
+ style, "textblock_style";
+ }
+ color, 255 255 255 255;
+ }
+ description
+ {
+ state, "bottom" 0.0;
+ inherit, "default" 0.0;
+ text
+ {
+ fit: 1 1;
+ style, "textblock_style_bottom";
+ }
+ color, 255 255 255 255;
+ }
+ }
+ }
+
+ programs
+ {
+ program
+ {
+ name, "initial_view";
+ signal, "mouse,clicked,1";
+ source, "background";
+ in, 0 0.3;
+ after, "emit_signal1";
+ }
+
+ program
+ {
+ name, "emit_signal1";
+ action, SIGNAL_EMIT "idle,state,pulse,visible" "";
+ }
+
+ program
+ {
+ name, "listening";
+ signal, "elm,state,listening";
+ source, "elm";
+ action, STATE_SET "recording" 0.0;
+ target, "MIC_ICON";
+ }
+
+ program
+ {
+ name, "start_processing";
+ signal, "elm,state,processing";
+ source, "elm";
+ action, STATE_SET "processing" 0.0;
+ target, "PROGRESS_BAR";
+ target, "MIC_ICON";
+ transition, DECELERATE 0.3;
+ }
+
+ program
+ {
+ name, "idle";
+ signal, "elm,state,init";
+ source, "elm";
+ action, STATE_SET "default" 0.0;
+ target, "PROGRESS_BAR";
+ target, "MIC_ICON";
+ transition, DECELERATE 0.3;
+ }
+ program
+ {
+ name, "idle_message";
+ signal, "elm,state,init_message";
+ source, "elm";
+ action, STATE_SET "message" 0.0;
+ target, "PROGRESS_BAR";
+ target, "MIC_ICON";
+ }
+
+ program
+ {
+ name, "text_show";
+ signal, "idle,state,text,visible";
+ source, "elm";
+ action, STATE_SET "expand" 0.0;
+ target, "elm.text";
+ }
+
+ program
+ {
+ name, "text_hide";
+ signal, "idle,state,text,hidden";
+ source, "elm";
+ action, STATE_SET "default" 0.0;
+ target, "elm.text";
+ }
+ program
+ {
+ name, "show_effect_part";
+ signal, "elm,state,eq,show";
+ source, "eq";
+ action, STATE_SET "default" 0.1;
+ target, "EFFECT_BG";
+ }
+
+ program
+ {
+ name, "hide_effect_part";
+ signal, "elm,state,eq,hide";
+ source, "eq";
+ action, STATE_SET "default" 0.0;
+ target, "EFFECT_BG";
+ }
+
+ program
+ {
+ name, "guide_text_up";
+ signal, "idle,state,guide_text,up";
+ source, "elm";
+ action, STATE_SET "default" 0.0;
+ target, "guide_text_block";
+ }
+ program
+ {
+ name, "guide_text_bottom";
+ signal, "idle,state,guide_text,bottom";
+ source, "elm";
+ action, STATE_SET "bottom" 0.0;
+ target, "guide_text_block";
+ }
+
+
+ }
+ }
+
+
+#define PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC 50
+ group
+ {
+ name: "elm/progressbar/horizontal/voice_input/process/small";
+ images {
+ image: "style/tw_loading_small_00.png" COMP;
+ image: "style/tw_loading_small_01.png" COMP;
+ image: "style/tw_loading_small_02.png" COMP;
+ image: "style/tw_loading_small_03.png" COMP;
+ image: "style/tw_loading_small_04.png" COMP;
+ image: "style/tw_loading_small_05.png" COMP;
+ image: "style/tw_loading_small_06.png" COMP;
+ image: "style/tw_loading_small_07.png" COMP;
+ image: "style/tw_loading_small_08.png" COMP;
+ image: "style/tw_loading_small_09.png" COMP;
+ image: "style/tw_loading_small_10.png" COMP;
+ image: "style/tw_loading_small_11.png" COMP;
+ image: "style/tw_loading_small_12.png" COMP;
+ image: "style/tw_loading_small_13.png" COMP;
+ image: "style/tw_loading_small_14.png" COMP;
+ image: "style/tw_loading_small_15.png" COMP;
+ image: "style/tw_loading_small_16.png" COMP;
+ image: "style/tw_loading_small_17.png" COMP;
+ image: "style/tw_loading_small_18.png" COMP;
+ image: "style/tw_loading_small_19.png" COMP;
+ image: "style/tw_loading_small_20.png" COMP;
+ image: "style/tw_loading_small_21.png" COMP;
+ image: "style/tw_loading_small_22.png" COMP;
+ image: "style/tw_loading_small_23.png" COMP;
+ image: "style/tw_loading_small_24.png" COMP;
+ image: "style/tw_loading_small_25.png" COMP;
+ image: "style/tw_loading_small_26.png" COMP;
+ image: "style/tw_loading_small_27.png" COMP;
+ image: "style/tw_loading_small_28.png" COMP;
+ image: "style/tw_loading_small_29.png" COMP;
+ image: "style/tw_loading_small_30.png" COMP;
+ image: "style/tw_loading_small_31.png" COMP;
+ image: "style/tw_loading_small_32.png" COMP;
+ image: "style/tw_loading_small_33.png" COMP;
+ image: "style/tw_loading_small_34.png" COMP;
+ image: "style/tw_loading_small_35.png" COMP;
+ image: "style/tw_loading_small_36.png" COMP;
+ image: "style/tw_loading_small_37.png" COMP;
+ image: "style/tw_loading_small_38.png" COMP;
+ image: "style/tw_loading_small_39.png" COMP;
+ image: "style/tw_loading_small_40.png" COMP;
+ image: "style/tw_loading_small_41.png" COMP;
+ image: "style/tw_loading_small_42.png" COMP;
+ image: "style/tw_loading_small_43.png" COMP;
+ image: "style/tw_loading_small_44.png" COMP;
+ image: "style/tw_loading_small_45.png" COMP;
+ image: "style/tw_loading_small_46.png" COMP;
+ image: "style/tw_loading_small_47.png" COMP;
+ image: "style/tw_loading_small_48.png" COMP;
+ image: "style/tw_loading_small_49.png" COMP;
+ image: "style/tw_loading_small_50.png" COMP;
+ image: "style/tw_loading_small_51.png" COMP;
+ image: "style/tw_loading_small_52.png" COMP;
+ image: "style/tw_loading_small_53.png" COMP;
+ image: "style/tw_loading_small_54.png" COMP;
+ image: "style/tw_loading_small_55.png" COMP;
+ image: "style/tw_loading_small_56.png" COMP;
+ image: "style/tw_loading_small_57.png" COMP;
+ image: "style/tw_loading_small_58.png" COMP;
+ image: "style/tw_loading_small_59.png" COMP;
+ image: "style/tw_loading_small_60.png" COMP;
+ image: "style/tw_loading_small_61.png" COMP;
+ image: "style/tw_loading_small_62.png" COMP;
+ image: "style/tw_loading_small_63.png" COMP;
+ image: "style/tw_loading_small_64.png" COMP;
+ }
+ parts {
+ part {
+ name: "access";
+ type: RECT;
+ description
+ {
+ state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm.background.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ }
+ }
+ part {
+ name: "bar";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "elm.background.progressbar";
+ description {
+ state: "default" 0.0;
+ min: PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC;
+ max: PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC;
+ fixed, 1 1;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "style/tw_loading_small_00.png";
+ image.tween: "style/tw_loading_small_01.png";
+ image.tween: "style/tw_loading_small_02.png";
+ image.tween: "style/tw_loading_small_03.png";
+ image.tween: "style/tw_loading_small_04.png";
+ image.tween: "style/tw_loading_small_05.png";
+ image.tween: "style/tw_loading_small_06.png";
+ image.tween: "style/tw_loading_small_07.png";
+ image.tween: "style/tw_loading_small_08.png";
+ image.tween: "style/tw_loading_small_09.png";
+ image.tween: "style/tw_loading_small_10.png";
+ image.tween: "style/tw_loading_small_11.png";
+ image.tween: "style/tw_loading_small_12.png";
+ image.tween: "style/tw_loading_small_13.png";
+ image.tween: "style/tw_loading_small_14.png";
+ image.tween: "style/tw_loading_small_15.png";
+ image.tween: "style/tw_loading_small_16.png";
+ image.tween: "style/tw_loading_small_17.png";
+ image.tween: "style/tw_loading_small_18.png";
+ image.tween: "style/tw_loading_small_19.png";
+ image.tween: "style/tw_loading_small_20.png";
+ image.tween: "style/tw_loading_small_21.png";
+ image.tween: "style/tw_loading_small_22.png";
+ image.tween: "style/tw_loading_small_23.png";
+ image.tween: "style/tw_loading_small_24.png";
+ image.tween: "style/tw_loading_small_25.png";
+ image.tween: "style/tw_loading_small_26.png";
+ image.tween: "style/tw_loading_small_27.png";
+ image.tween: "style/tw_loading_small_28.png";
+ image.tween: "style/tw_loading_small_29.png";
+ image.tween: "style/tw_loading_small_30.png";
+ image.tween: "style/tw_loading_small_31.png";
+ image.tween: "style/tw_loading_small_32.png";
+ image.tween: "style/tw_loading_small_33.png";
+ image.tween: "style/tw_loading_small_34.png";
+ image.tween: "style/tw_loading_small_35.png";
+ image.tween: "style/tw_loading_small_36.png";
+ image.tween: "style/tw_loading_small_37.png";
+ image.tween: "style/tw_loading_small_38.png";
+ image.tween: "style/tw_loading_small_39.png";
+ image.tween: "style/tw_loading_small_40.png";
+ image.tween: "style/tw_loading_small_41.png";
+ image.tween: "style/tw_loading_small_42.png";
+ image.tween: "style/tw_loading_small_43.png";
+ image.tween: "style/tw_loading_small_44.png";
+ image.tween: "style/tw_loading_small_45.png";
+ image.tween: "style/tw_loading_small_46.png";
+ image.tween: "style/tw_loading_small_47.png";
+ image.tween: "style/tw_loading_small_48.png";
+ image.tween: "style/tw_loading_small_48.png";
+ image.tween: "style/tw_loading_small_49.png";
+ image.tween: "style/tw_loading_small_50.png";
+ image.tween: "style/tw_loading_small_51.png";
+ image.tween: "style/tw_loading_small_52.png";
+ image.tween: "style/tw_loading_small_53.png";
+ image.tween: "style/tw_loading_small_54.png";
+ image.tween: "style/tw_loading_small_55.png";
+ image.tween: "style/tw_loading_small_56.png";
+ image.tween: "style/tw_loading_small_57.png";
+ image.tween: "style/tw_loading_small_58.png";
+ image.tween: "style/tw_loading_small_59.png";
+ image.tween: "style/tw_loading_small_60.png";
+ image.tween: "style/tw_loading_small_61.png";
+ image.tween: "style/tw_loading_small_62.png";
+ image.tween: "style/tw_loading_small_63.png";
+ image.tween: "style/tw_loading_small_64.png";
+ color: 128 128 128 128;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "start_pulse";
+ signal: "elm,state,pulse,start";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bar";
+ transition: LINEAR 1.8;
+ after: "start_pulse";
+ }
+ program {
+ name: "stop_pulse";
+ signal: "elm,state,pulse,stop";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "start_pulse";
+ after: "init_pulse";
+ }
+ program { name: "init_pulse";
+ action: STATE_SET "default" 0.0;
+ target: "bar";
+ }
+ }
+ }
+
+}