CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(org.tizen.inputdelegator CXX C)
+PROJECT(inputdelegator CXX C)
+
+SET(INPUTDELEGATOR_SRCS
+ src/MicEffector.cpp
+ src/MoreOption.cpp
+ src/SttFeedback.cpp
+ src/SttManager.cpp
+ src/w-input-emoticon.cpp
+ src/w-input-keyboard.cpp
+ src/w-input-selector.cpp
+ src/w-input-stt-engine.cpp
+ src/w-input-stt-ise.cpp
+ src/WInputSttMicEffect.cpp
+ src/w-input-stt-voice.cpp
+ src/w-input-template.cpp
+)
+
+SET(INPUTDELEGATOR_PACKAGE ${PROJECT_NAME})
+SET(INPUTDELEGATOR_PKGNAME "org.tizen.${INPUTDELEGATOR_PACKAGE}")
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+SET(INPUTDELEGATOR_BINDIR "${TZ_SYS_RO_APP}/${INPUTDELEGATOR_PKGNAME}/bin")
+SET(INPUTDELEGATOR_LIBDIR "${TZ_SYS_RO_APP}/${INPUTDELEGATOR_PKGNAME}/lib")
+SET(INPUTDELEGATOR_RESDIR "${TZ_SYS_RO_APP}/${INPUTDELEGATOR_PKGNAME}/res")
+IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+ SET(CMAKE_BUILD_TYPE "Release")
+ENDIF()
+MESSAGE(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
+
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc
+ ${CMAKE_SOURCE_DIR}/src
+)
-INCLUDE(GNUInstallDirs)
INCLUDE(FindPkgConfig)
+SET(PKGS_CHECK_MODULES
+ dlog
+ capi-appfw-application
+ capi-appfw-app-control
+ capi-appfw-preference
+ capi-media-wav-player
+ capi-system-device
+ eina
+ elementary
+ efl-extension
+ feedback
+ stt
+ vconf
+ db-util
+ sqlite3
+ capi-media-audio-io
+ capi-system-info
+ )
+
+
+pkg_check_modules(INPUTDELEGATOR_PKGS REQUIRED ${PKGS_CHECK_MODULES})
-SET(VERSION_MAJOR 1)
-SET(VERSION ${VERSION_MAJOR}.0.0)
+FOREACH(flag ${INPUTDELEGATOR_PKGS_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall -fPIE")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -fPIE")
-SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall -fPIE")
-SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -fPIE")
-SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g -fPIE")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -fPIE -Wall")
+#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -finstrument-functions")
+SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
ADD_DEFINITIONS("-DEXPORTED=__attribute__((visibility(\"default\")))")
+ADD_DEFINITIONS(-DPACKAGE=\"/inputdelegator\")
+#ADD_DEFINITIONS("-DPACKAGE=\"${INPUTDELEGATOR_PKGNAME}\"")
+ADD_DEFINITIONS("-DPACKAGE_NAME=\"${INPUTDELEGATOR_PKGNAME}\"")
+ADD_DEFINITIONS("-DRESDIR=\"${INPUTDELEGATOR_RESDIR}\"")
+ADD_DEFINITIONS(-DINPUTDELEGATOR_NAME=\"/inputdelegator\")
+ADD_DEFINITIONS(-DSUPPORTS_EMOTICONS)
+
+ADD_EXECUTABLE(${PROJECT_NAME} ${INPUTDELEGATOR_SRCS})
+
+
+
+if(${TARGET} STREQUAL "wearable")
+file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/wearable/edje)
+ADD_CUSTOM_TARGET(w-input-selector.edj COMMAND edje_cc
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-selector.edc
+ ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-selector.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-selector.edc)
+ADD_DEPENDENCIES(${PROJECT_NAME} w-input-selector.edj)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-selector.edj DESTINATION
+${INPUTDELEGATOR_RESDIR}/edje/wearable)
+
+ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
+ -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/wearable/edje/w-input-stt.edj DESTINATION
+${INPUTDELEGATOR_RESDIR}/edje/wearable)
+
+ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
+ -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/wearable/edje/w-input-stt-button.edj DESTINATION
+${INPUTDELEGATOR_RESDIR}/edje/wearable)
+
+else()
+file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/mobile/edje)
+ADD_CUSTOM_TARGET(w-input-selector.edj COMMAND edje_cc
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-selector.edc
+ ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-selector.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-selector.edc)
+ADD_DEPENDENCIES(${PROJECT_NAME} w-input-selector.edj)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-selector.edj DESTINATION
+${INPUTDELEGATOR_RESDIR}/edje/mobile)
+
+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
+${INPUTDELEGATOR_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
+${INPUTDELEGATOR_RESDIR}/edje/mobile)
+
+endif()
+
+
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${INPUTDELEGATOR_PKGS_LDFLAGS})
+
+set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${INPUTDELEGATOR_BINDIR})
+
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${INPUTDELEGATOR_PKGNAME}.xml DESTINATION
+ ${TZ_SYS_RO_PACKAGES})
+
+if(${TARGET} STREQUAL "wearable")
+FILE(GLOB_RECURSE INPUTDELEGATOR_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/images/*.png")
+INSTALL(FILES ${INPUTDELEGATOR_DEFAULT_IMAGES} DESTINATION ${INPUTDELEGATOR_RESDIR}/wearable/images)
+FILE(GLOB_RECURSE INPUTDELEGATOR_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/images/emoticons/*.png")
+INSTALL(FILES ${INPUTDELEGATOR_DEFAULT_IMAGES} DESTINATION ${INPUTDELEGATOR_RESDIR}/wearable/images/emoticons)
+else()
+FILE(GLOB_RECURSE INPUTDELEGATOR_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/images/*.png")
+INSTALL(FILES ${INPUTDELEGATOR_DEFAULT_IMAGES} DESTINATION ${INPUTDELEGATOR_RESDIR}/mobile/images)
+FILE(GLOB_RECURSE INPUTDELEGATOR_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/images/emoticons/*.png")
+INSTALL(FILES ${INPUTDELEGATOR_DEFAULT_IMAGES} DESTINATION ${INPUTDELEGATOR_RESDIR}/mobile/images/emoticons)
+endif()
-ADD_SUBDIRECTORY(src)
-ADD_SUBDIRECTORY(po)
-
-ADD_CUSTOM_TARGET(w-input-selector.edj
- COMMAND edje_cc
- -id ${CMAKE_SOURCE_DIR}/edje/images
- ${CMAKE_SOURCE_DIR}/res/edje/w-input-selector.edc
- ${CMAKE_BINARY_DIR}/res/edje/w-input-selector.edj
- DEPENDS ${CMAKE_SOURCE_DIR}/res/edje/w-input-selector.edc)
-
-ADD_DEPENDENCIES(inputdelegator w-input-selector.edj)
-
-ADD_CUSTOM_TARGET(w-input-stt.edj
- COMMAND edje_cc
- -id ${CMAKE_SOURCE_DIR}/edje/images
- ${CMAKE_SOURCE_DIR}/res/edje/w-input-stt.edc
- ${CMAKE_BINARY_DIR}/res/edje//w-input-stt.edj
- DEPENDS ${CMAKE_SOURCE_DIR}/res/edje//w-input-stt.edc)
-
-ADD_DEPENDENCIES(inputdelegator w-input-stt.edj)
-
-ADD_CUSTOM_TARGET(w-input-stt-button.edj
- COMMAND edje_cc
- -id ${CMAKE_SOURCE_DIR}/edje/images
- ${CMAKE_SOURCE_DIR}/res/edje/w-input-stt-button.edc
- ${CMAKE_BINARY_DIR}/res/edje/w-input-stt-button.edj
- DEPENDS ${CMAKE_SOURCE_DIR}/res/edje/w-input-stt-button.edc)
-
-ADD_DEPENDENCIES(inputdelegator w-input-stt-button.edj)
-
-INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-selector.edj
- DESTINATION res/edje)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-stt.edj
- DESTINATION res/edje)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/res/edje/w-input-stt-button.edj
- DESTINATION res/edje)
-
-FILE(GLOB_RECURSE W_INPUT_SELECTOR_IMAGES "${CMAKE_SOURCE_DIR}/res/images/*.png")
-INSTALL(FILES ${W_INPUT_SELECTOR_IMAGES} DESTINATION res/images)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/shared/res/w-input-selector.png DESTINATION shared/res)
+ADD_SUBDIRECTORY(po)
\ No newline at end of file
#define _(str) gettext(str)
-#define APP_EDJ_FILE "edje/w-input-selector.edj"
-#define STT_EDJ_FILE "edje/w-input-stt.edj"
+#define APP_EDJ_FILE_WEARABLE "edje/wearable/w-input-selector.edj"
+#define STT_EDJ_FILE_WEARABLE "edje/wearable/w-input-stt.edj"
+
+#define APP_EDJ_FILE_MOBILE "edje/mobile/w-input-selector.edj"
+#define STT_EDJ_FILE_MOBILE "edje/mobile/w-input-stt.edj"
+
#define LOCALEDIR "/usr/apps/org.tizen.inputdelegator/res/locale"
#define RESOURCEDIR "/usr/apps/org.tizen.inputdelegator/res/"
# This cannot be built for non-wearable in conventional 3.0 build environment.
# Note that it is not a good idea to limit building with ExcludeArch because there are new architectures being tested.
# Use ExclusiveArch istead.
-%if "%{?profile}" == "mobile" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "common"
-ExclusiveArch: none
+%if "%{?profile}" == "mobile" || "%{?profile}" == "ivi" || "%{?profile}" == "common"
+#ExclusiveArch: none
%endif
Name: org.tizen.inputdelegator
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(capi-media-audio-io)
-BuildRequires: pkgconfig(smartreply)
BuildRequires: pkgconfig(capi-system-info)
%if %{enable_log_manager}
BuildRequires: pkgconfig(bundle)
%endif
-%define _appdir /usr/apps
-%define _app_destdir %{_appdir}/%{name}
-
-# Sandboxed prefix '/'
-%define _app_prefix /
-%define _app_localedir %{_app_prefix}res/locale
+Requires: %{name}-compat = %{version}-%{release}
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
+Recommends: %{name}-profile_common = %{version}-%{release}
+%endif
%description
Input Delegator Application for Wearable environment
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
+%package profile_common
+Summary: Inputdelegator binaries and resources without flavors
+Provides: %{name}-compat = %{version}-%{release}
+Conflicts: %{name}-profile_mobile
+Conflicts: %{name}-profile_tv
+Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_ivi
+%description profile_common
+Inputdelegator binaries and resources without flavors, intended
+to support common profiles, which does not supply any additional options
+for the build.
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
+%package profile_mobile
+Summary: Inputdelegator binaries and resources with mobile profile
+Provides: %{name}-compat = %{version}-%{release}
+Conflicts: %{name}-profile_common
+Conflicts: %{name}-profile_tv
+Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_ivi
+%description profile_mobile
+Inputdelegator binaries and resources with mobile options.
+This is intended to support mobile profiles.
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
+%package profile_tv
+Summary: Inputdelegator binaries and resources with tv profile
+Provides: %{name}-compat = %{version}-%{release}
+Conflicts: %{name}-profile_common
+Conflicts: %{name}-profile_mobile
+Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_ivi
+%description profile_tv
+Inputdelegator binaries and resources with tv options.
+This is intended to support tv profiles.
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%package profile_ivi
+Summary: Inputdelegator binaries and resources with ivi profile
+Provides: %{name}-compat = %{version}-%{release}
+Conflicts: %{name}-profile_common
+Conflicts: %{name}-profile_mobile
+Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_tv
+%description profile_ivi
+Inputdelegator) binaries and resources with ivi options.
+This is intended to support ivi profiles.
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+# Common is blocked because wearable has extra efl-ext entries, which will be
+# removed for unified build env later.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
+%package profile_wearable
+Summary: Meta package of Inputdelegator for wearable profiles. (circle/rectangle)
+Provides: %{name}-compat = %{version}-%{release}
+Conflicts: %{name}-profile_common
+Conflicts: %{name}-profile_mobile
+Conflicts: %{name}-profile_tv
+Conflicts: %{name}-profile_ivi
+Requires: %{name}-profile_wearable-extension = %{version}-%{release}
+Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
+%description profile_wearable
+Meta package of Inputdelegator binaries and resources with
+wearable options.
+
+%package profile_wearable-extension-circle
+Summary: Inputdelegator binaries and resources with wearable profile (circle)
+Provides: %{name}-profile_wearable-extension = %{version}-%{release}
+Conflicts: %{name}-profile_wearable-extension-rectangle
+%description profile_wearable-extension-circle
+Inputdelegator binaries and resources with wearable options.
+This is intended to support wearable profiles with circle display.
+
+%package profile_wearable-extension-rectangle
+Summary: Inputdelegator binaries and resources with wearable profile (rectangle)
+Provides: %{name}-profile_wearable-extension = %{version}-%{release}
+Conflicts: %{name}-profile_wearable-extension-circle
+%description profile_wearable-extension-rectangle
+Inputdelegator binaries and resources with wearable options.
+This is intended to support wearable profiles with rectangle display.
+%endif
+
%prep
%setup -q
%build
-export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror -fvisibility=hidden"
-export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror -fvisibility=hidden -fvisibility-inlines-hidden"
-export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
+export CFLAGS_BASE="${CFLGAS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
+export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden"
+export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
+
+rm -rf CMakeFiles
+rm -rf CMakeCache.txt
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+# Common is blocked because wearable has extra efl-ext entries, which will be
+# removed for unified build env later.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
+mkdir -p build_wearable_rec
+pushd build_wearable_rec
+export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
+export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
+%cmake .. -DTARGET=wearable \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
-export CXXFLAGS="$CXXFLAGS -std=gnu++0x"
+make %{?jobs:-j%jobs}
+popd
+mkdir -p build_wearable_cir
+pushd build_wearable_cir
+export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
+export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
+%cmake .. -DTARGET=wearable \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
-cmake . -DCMAKE_INSTALL_PREFIX=%{_app_prefix} \
- -DCMAKE_INSTALL_LOCALEDIR=%{_app_localedir} \
- -DENABLE_LOG_MANAGER=%{enable_log_manager}
+make %{?jobs:-j%jobs}
+popd
+%endif
+
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+mkdir -p build_mobile
+pushd build_mobile
+export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
+export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
+%cmake .. -DTARGET=mobile \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
+ -Dwith_cbhm=TRUE
+
+make %{?jobs:-j%jobs}
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+mkdir -p build_tv
+pushd build_tv
+export CFLAGS="${CFLAGS_BASE} -D_TV";
+export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
+%cmake .. -DTARGET=tv \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
+
+make %{?jobs:-j%jobs}
+popd
+%endif
-# compile warning & error filtering
-make %{?jobs:-j%jobs} \
- 2>&1 | sed \
- -e 's%^.*: error: .*$%\x1b[1;31;40m&\x1b[m%' \
- -e 's%^.*: warning: .*$%\x1b[1;33;40m&\x1b[m%'
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+mkdir -p build_ivi
+pushd build_ivi
+export CFLAGS="${CFLAGS_BASE} -D_IVI";
+export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
+%cmake .. -DTARGET=ivi \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
+
+make %{?jobs:-j%jobs}
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
+export CFLAGS="${CFLAGS_BASE}";
+export CXXFLAGS="${CXXFLAGS_BASE}";
+%cmake . -DTARGET=common \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
+
+make %{?jobs:-j%jobs}
+%endif
%install
rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}%{_app_destdir}
-mkdir -p %{buildroot}%{_datadir}/packages/
-cp -rf org.tizen.inputdelegator.xml %{buildroot}%{_datadir}/packages
-%post
-#nothing
-/usr/bin/vconftool -u 5000 set -t int db/private/ise/stt/language "0" -f -s tizen::vconf::platform::rw
-%files
-%manifest org.tizen.inputdelegator.manifest
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
+%make_install
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/common
+pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/
+mv bin common/
+mkdir -p common/res
+pushd res
+for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
+popd
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+pushd build_mobile
+%make_install
+popd
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/mobile
+pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/
+mv bin mobile/
+mkdir -p mobile/res
+pushd res
+for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
+popd
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+pushd build_tv
+%make_install
+popd
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/tv
+pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/
+mv bin tv/
+mkdir -p tv/res
+pushd res
+for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
+popd
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+pushd build_ivi
+%make_install
+popd
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/ivi
+pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/
+mv bin ivi/
+mkdir -p ivi/res
+pushd res
+for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
+popd
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+# Common is blocked because wearable has extra efl-ext entries, which will be
+# removed for unified build env later.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
+pushd build_wearable_cir
+%make_install
+popd
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/wearable-circle
+pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/
+mv bin wearable-circle/
+mkdir -p wearable-circle/res
+pushd res
+for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
+popd
+popd
+
+pushd build_wearable_rec
+%make_install
+popd
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/wearable-rectangle
+pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/
+mv bin wearable-rectangle/
+mkdir -p wearable-rectangle/res
+pushd res
+for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
+popd
+popd
+%endif
+
+%find_lang inputdelegator
+
+%files -f inputdelegator.lang
+%manifest %{name}.manifest
%defattr(-,root,root,-)
+%{TZ_SYS_RO_PACKAGES}/%{name}.xml
%license LICENSE
-%{_datadir}/packages/org.tizen.inputdelegator.xml
-%{_app_destdir}%{_app_prefix}/bin/inputdelegator
-%{_app_destdir}%{_app_prefix}/res/edje/w-input-selector.edj
-%{_app_destdir}%{_app_prefix}/res/edje/w-input-stt.edj
-%{_app_destdir}%{_app_prefix}/res/edje/w-input-stt-button.edj
-%{_app_destdir}%{_app_prefix}/res/images/*
-%{_app_destdir}%{_app_prefix}/shared/res/w-input-selector.png
-%{_app_destdir}%{_app_localedir}/*/LC_MESSAGES/org.tizen.inputdelegator.mo
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
+%post profile_common
+pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator/common/
+mkdir -p ../res
+mkdir -p ../bin
+# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
+if [ "$1" = "2" ]; then
+ rm -Rf ../bin/*
+ pushd ../res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+fi
+for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
+for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
+popd
+%preun profile_common
+# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
+if [ "$1" = "0" ]; then
+ pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator
+ rm -Rf bin
+ pushd res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+ popd
+fi
+%files profile_common
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/common/*
+%endif
+
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+%post profile_mobile
+pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator/mobile/
+mkdir -p ../res
+mkdir -p ../bin
+# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
+if [ "$1" = "2" ]; then
+ rm -Rf ../bin/*
+ pushd ../res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+fi
+for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
+for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
+popd
+%preun profile_mobile
+# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
+if [ "$1" = "0" ]; then
+ pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator
+ rm -Rf bin
+ pushd res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+ popd
+fi
+%files profile_mobile
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/mobile/*
+%endif
+
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+%post profile_tv
+pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator/tv/
+mkdir -p ../res
+mkdir -p ../bin
+# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
+if [ "$1" = "2" ]; then
+ rm -Rf ../bin/*
+ pushd ../res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+fi
+for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
+for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
+popd
+%preun profile_tv
+# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
+if [ "$1" = "0" ]; then
+ pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator
+ rm -Rf bin
+ pushd res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+ popd
+fi
+%files profile_tv
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/tv/*
+%endif
+
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+%post profile_ivi
+pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator/ivi/
+mkdir -p ../res
+mkdir -p ../bin
+# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
+if [ "$1" = "2" ]; then
+ rm -Rf ../bin/*
+ pushd ../res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+fi
+for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
+for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
+popd
+%preun profile_ivi
+# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
+if [ "$1" = "0" ]; then
+ pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator
+ rm -Rf bin
+ pushd res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+ popd
+fi
+%files profile_ivi
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/ivi/*
+%endif
+
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+# Common is blocked because wearable has extra efl-ext entries, which will be
+# removed for unified build env later.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
+%files profile_wearable
+
+%post profile_wearable-extension-circle
+pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator/wearable-circle/
+mkdir -p ../res
+mkdir -p ../bin
+# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
+if [ "$1" = "2" ]; then
+ rm -Rf ../bin/*
+ pushd ../res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+fi
+for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
+for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
+popd
+%preun profile_wearable-extension-circle
+# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
+if [ "$1" = "0" ]; then
+ pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator
+ rm -Rf bin
+ pushd res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+ popd
+fi
+%files profile_wearable-extension-circle
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/wearable-circle/*
+
+
+%post profile_wearable-extension-rectangle
+pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator/wearable-rectangle/
+mkdir -p ../res
+mkdir -p ../bin
+# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
+if [ "$1" = "2" ]; then
+ rm -Rf ../bin/*
+ pushd ../res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+fi
+for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
+for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
+popd
+%preun profile_wearable-extension-rectangle
+# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
+if [ "$1" = "0" ]; then
+ pushd %{TZ_SYS_RO_APP}/org.tizen.inputdelegator
+ rm -Rf bin
+ pushd res
+ for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
+ popd
+ popd
+fi
+%files profile_wearable-extension-rectangle
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{TZ_SYS_RO_APP}/org.tizen.inputdelegator/wearable-rectangle/*
+%endif
FOREACH(POFILE ${POFILES})
GET_FILENAME_COMPONENT(LANG ${POFILE} NAME_WE)
-SET(MOFILE ${LANG}.mo)
+SET(MOFILE ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo)
SET(MOFILES ${MOFILES} ${MOFILE})
ADD_CUSTOM_COMMAND(
COMMENT "Generating: ${MOFILE}")
INSTALL(FILES ${MOFILE}
- DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${LANG}/LC_MESSAGES
+ DESTINATION ${INPUTDELEGATOR_RESDIR}/locale/${LANG}/LC_MESSAGES
RENAME ${PROJECT_NAME}.mo)
ENDFOREACH(POFILE)
--- /dev/null
+#define FONT_NAME "GP45_ArabCJK_TouchWiz"
+
+#define BTN_W 120
+#define BTN_H 120
+#define BTN_PAD_W 1
+#define BTN_PAD_H 1
+
+collections {
+ base_scale: 1.3;
+ group { name: "main";
+ parts {
+ part { name: "background";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 255;
+ }
+ }
+
+ part { name: "txt_title";
+ type: TEXT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: background; }
+ rel2 { relative: 1.0 0.35; to: background; }
+ text { font: FONT_NAME; size: 35; }
+ color: 0 140 239 255;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "btn1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: background; }
+ rel2 { relative: 1.0 1.0; to: background; }
+ min: BTN_W BTN_H;
+ max: BTN_W BTN_H;
+ align: 0 0.5;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "padding";
+ type: SPACER;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "btn1";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "btn1";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: BTN_PAD_W BTN_H;
+ max: BTN_PAD_W BTN_H;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "btn2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "padding";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: (BTN_W - BTN_PAD_W) BTN_H;
+ max: (BTN_W - BTN_PAD_W) BTN_H;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding2";
+ type: SPACER;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "btn2";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "btn2";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: BTN_PAD_W BTN_H;
+ max: BTN_PAD_W BTN_H;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "btn3";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "padding2";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "padding2";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: (BTN_W - BTN_PAD_W) BTN_H;
+ max: (BTN_W - BTN_PAD_W) BTN_H;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "template_list";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: background; }
+ rel2 { relative: 1.0 1.0; to: background; }
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+
+#define LIST_BUTTON_PADDING_LEFT_SIZE_INC 0
+#define LIST_BUTTON_PADDING_RIGHT_SIZE_INC 0
+#define LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC 1
+#define LIST_BUTTON_PADDING_BOTTOM_SIZE_INC 1
+#define BUTTON_2BUTTON_WIDTH_INC 180
+#define BUTTON_2BUTTON_RIGHT_WIDTH_INC 179
+#define LIST_BUTTON_PADDING_CENTER_SIZE_INC 1
+
+#define PART(TYPE, NAME, DESCRIPION) \
+ part { name: NAME; \
+ scale: 1; \
+ type: TYPE; \
+ DESCRIPION \
+ }
+
+#define DESC_LTB( LEFT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0; \
+ align: 0 0.5; \
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ } \
+ rel2 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ to_y: BOTTOM; \
+ } \
+ PARAM \
+ }
+
+#define DESC_TB( TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0; \
+ align: 0.5 0.5; \
+ rel1 { \
+ relative: 0 1; \
+ to_y: TOP; \
+ } \
+ rel2 { \
+ relative: 1 0; \
+ to_y: BOTTOM; \
+ } \
+ PARAM \
+ }
+
+#define DESC_LRTB( LEFT, RIGHT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0; \
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ } \
+ rel2 { \
+ relative: 0 0; \
+ to_x: RIGHT; \
+ to_y: BOTTOM; \
+ } \
+ PARAM \
+ }
+
+#define DESC_FROM_L( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 1 0; \
+ align: 0.0 0.5; \
+ rel2.relative: 0.0 1.0; \
+ PARAM \
+ }
+
+#define DESC_FROM_R( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 1 0; \
+ align: 1.0 0.5; \
+ rel1.relative: 1 0; \
+ PARAM \
+ }
+
+#define DESC_FROM_T( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 0 1; \
+ align: 0.5 0.0; \
+ rel2.relative: 1.0 0.0; \
+ PARAM \
+ }
+
+#define DESC_FROM_B( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 0 1; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.5 1.0; \
+ PARAM \
+ }
+
+#define DESC_L( LEFT, PARAM ) \
+ description { state: "default" 0.0; \
+ align: 0 0.5; \
+ fixed: 1 0; \
+ rel1 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ } \
+ rel2 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ } \
+ PARAM \
+ }
+
+
+
+#define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \
+ PART(SWALLOW, "elm.swallow.pad", \
+ mouse_events: 0; \
+ DESC_FROM_L( ; ) \
+ ) \
+ PART(SWALLOW, "elm.swallow.colorbar", \
+ mouse_events: 0; \
+ DESC_L("elm.swallow.pad", ) \
+ ) \
+ PART(SPACER, "elm.padding.left", \
+ scale: 0; \
+ DESC_L("elm.swallow.pad", \
+ min: LEFT_SIZE 0; \
+ max: LEFT_SIZE -1; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.right", \
+ scale: 0; \
+ DESC_FROM_R( \
+ min: RIGHT_SIZE 0; \
+ max: RIGHT_SIZE -1; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.top", \
+ scale: 0; \
+ DESC_FROM_T( \
+ min: 0 TOP_SIZE; \
+ max: -1 TOP_SIZE; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.bottom", \
+ scale: 0; \
+ DESC_FROM_B( \
+ min: 0 BOTTOM_SIZE; \
+ max: -1 BOTTOM_SIZE; \
+ ) \
+ )
+
+#define PROGRAM_LIST_DEFAULT( TARGET ) \
+ program { name: "default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_DISABLE( TARGET ) \
+ program { name: "enabled"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ } \
+ program { name: "disabled"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_SELECT( TARGET ) \
+ program { name: "selected"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ action: STATE_SET "selected" 0.0; \
+ TARGET \
+ } \
+ program { name: "unselected"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_HIGHLIGHT( TARGET ) \
+ program { name: "highlighted"; \
+ signal: "elm,state,highlighted"; \
+ source: "elm"; \
+ action: STATE_SET "highlighted" 0.0; \
+ TARGET \
+ transition: LINEAR 1.0; \
+ } \
+ program { name: "unhighlighted"; \
+ signal: "elm,state,unhighlighted"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ transition: LINEAR 1.0; \
+ }
+
+#define PROGRAMS_LIST_BUTTON( TARGET ) \
+ programs { \
+ PROGRAM_LIST_DEFAULT( TARGET \
+ target: "elm.padding.left"; \
+ target: "elm.padding.right"; \
+ ) \
+ PROGRAM_LIST_DISABLE( TARGET \
+ ) \
+ PROGRAM_LIST_SELECT( TARGET \
+ ) \
+ PROGRAM_LIST_HIGHLIGHT( TARGET ) \
+ PROGRAM_LIST_SOUND \
+ }
+
+#define PROGRAM_LIST_SOUND \
+ program { name: "play_sound"; \
+ signal: "elm,state,clicked"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"play_sample"); \
+ } \
+ } \
+ program { \
+ name: "play_sample"; \
+ action: RUN_PLUGIN "touch_sound"; \
+ }
+
+
+#define BUTTON_HEIGHT_INC 122
+
+#define PART_LIST_BG \
+ PART(RECT, "bg", \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 1; \
+ } \
+ )
+
+
+
+// 3 button
+ group {
+ name: "elm/genlist/item/3button_flat/default";
+ alias: "elm/genlist/item/3button_flat_recent/default";
+ data.item: "treesize" 0;
+ data.item: "flips" "elm.flip.icon elm.flip.content";
+ data.item: "contents" "base elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.3.touch_area";
+ data.item: "vi_effect" "on";
+ data.item: "dim" "off";
+ data.item: "focus_bg" "off";
+
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
+ LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
+ )
+
+ PART(SWALLOW, "base",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 360 0;
+ fixed: 1 0;
+ visible: 1;
+ )
+ )
+
+ part {
+ name: "elm.icon.1"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+ part {
+ name: "elm.icon.1.touch_area"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+
+ part {
+ name: "elm.icon.2"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+ part {
+ name: "elm.icon.2.touch_area"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+
+
+ part {
+ name: "elm.icon.3"; // right icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+ part {
+ name: "elm.icon.3.touch_area"; // right icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+
+ }
+ }
+
+//2button
+ group {
+ name: "elm/genlist/item/2button_flat/default";
+ data.item: "treesize" 0;
+ data.item: "flips" "elm.flip.icon elm.flip.content";
+ data.item: "contents" "base elm.icon.1 elm.icon.2 elm.icon.1.touch_area elm.icon.2.touch_area";
+ data.item: "vi_effect" "on";
+ data.item: "dim" "off";
+ data.item: "focus_bg" "off";
+
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
+ LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
+ )
+
+ PART(SWALLOW, "base",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 360 0;
+ fixed: 1 0;
+ visible: 1;
+ )
+ )
+
+ part {
+ name: "elm.icon.1"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+ part {
+ name: "elm.icon.1.touch_area"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+
+ part {
+ name: "elm.icon.2"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+ part {
+ name: "elm.icon.2.touch_area"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime/transparent";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 130;
+ color_class: "AO015";
+ visible: 0;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015D";
+ }
+ }
+ 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: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: 0 0;
+ 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 0;
+ fixed: 1 1;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 134 61;
+ max: 134 61;
+ fixed: 1 1;
+ }
+ }
+ }
+ }
+
+ group {
+ name: "elm/genlist/item/2button/default";
+ data.item: "treesize" 0;
+ data.item: "flips" "elm.flip.icon elm.flip.content";
+ data.item: "contents" "base elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.1 elm.icon.2 elm.swallow.center_check";
+ data.item: "vi_effect" "off";
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
+ LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
+ )
+ PART(SWALLOW, "base",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 360 0;
+ fixed: 1 0;
+ visible: 1;
+ )
+ )
+ part { name: "elm.icon.1.touch_area";
+ type: SWALLOW;
+ repeat_events, 0;
+ description {
+ state: "default" 0.0;
+ color: 255 0 0 100;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -5 -5;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +5 +5;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -7 -7;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +7 +7;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -8 -8;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +8 +8;}
+ }
+ }
+ part { name: "elm.icon.2.touch_area";
+ type: SWALLOW;
+ repeat_events, 0;
+ description {
+ state: "default" 0.0;
+ color: 0 0 255 100;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -6 -5;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +6 +5;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -7 -7;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +7 +7;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -9 -8;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +9 +8;}
+ }
+ }
+ part { name: "elm.icon.1";
+ type: SWALLOW;
+ repeat_events, 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0;
+ fixed: 1 1;
+ min: 114 114;
+ max: 114 114;
+ rel1 { relative: 112/360 0; to: "base"; offset: 0 35;}
+ rel2 { relative: 112/360 0; to: "base"; offset: 0 35;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ min: 114+(198-114)/2 114+(198-114)/2;
+ max: 114+(198-114)/2 114+(198-114)/2;
+ rel1 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ rel2 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ min: 198 198;
+ max: 198 198;
+ rel1 { relative: 128/360 0; to: "base"; offset: 0 12;}
+ rel2 { relative: 128/360 0; to: "base"; offset: 0 12;}
+ }
+ }
+ part { name: "elm.icon.2";
+ type: SWALLOW;
+ repeat_events, 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0;
+ fixed: 1 1;
+ min: 114 114;
+ max: 114 114;
+ rel1 { relative: 249/360 0; to: "base"; offset: 0 35;}
+ rel2 { relative: 249/360 0; to: "base"; offset: 0 35;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ min: 114+(198-114)/2 114+(99-114)/2;
+ max: 114+(198-114)/2 114+(198-114)/2;
+ rel1 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ rel2 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ min: 198 198;
+ max: 198 198;
+ rel1 { relative: 297/360 0; to: "base"; offset: 0 12;}
+ rel2 { relative: 297/360 0; to: "base"; offset: 0 12;}
+ }
+ }
+
+ PART(SPACER, "elm.padding.fake",
+ DESC_TB("elm.padding.top","elm.padding.bottom",
+ min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
+ max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
+ fixed: 1 0;
+ )
+ )
+ PART(SPACER, "elm.padding.center",
+ DESC_LTB("elm.padding.fake", "elm.padding.top", "elm.padding.bottom",
+ min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
+ max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
+ fixed: 1 0;
+ )
+ )
+ PART(SWALLOW, "elm.swallow.center_check",
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ }
+ )
+ }
+}
--- /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
+#define BUTTON_TEXT_SIZE_INC 85
+
+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,
+ ...
+
+ * Fore information, please refer the libsvi libraries.
+ * git: slp-info.sec.samsung.net:29418/magnolia/framework/system/libsvi
+ * web: http://slp-info.sec.samsung.net/gerrit/plugins/gitiles/magnolia/framework/system/libsvi
+ */
+ }
+ 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: 0 0 255 255;
+ }
+ color_class
+ {
+ name: "AO01153L1P";
+ color: 61 61 61 100;
+ }
+ color_class
+ {
+ name: "AO01153L1D";
+ color: 163 163 163 100;
+ }
+ color_class
+ {
+ name: "AO01154L1";
+ color: 97 12 117 255;
+ }
+ color_class
+ {
+ name: "AO01154L1P";
+ color: 41 41 41 100;
+ }
+ color_class
+ {
+ name: "AO01154L1D";
+ color: 110 110 110 100;
+ }
+ color_class
+ {
+ name: "AO01155L1";
+ color: 255 0 0 255;
+ }
+ 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";
+ }
+ style { name: "button_general_text_dim";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
+ }
+ style { name: "button_general_text_press";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#888888 ellipsis=0.0 wrap=mixed";
+ }
+ style { name: "button_general_text_normal";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
+ }
+ }
+
+ 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: 1;
+ 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 64;
+ max, 360 64;
+ align, 0.5 1;
+ rel1
+ {
+ relative, 0 1;
+ to, "bg";
+ offset, 0 -1;
+ }
+ rel2
+ {
+ relative, 1 1;
+ to, "bg";
+ offset, 0 -1;
+ }
+ }
+
+ description
+ {
+ state, "hide" 0.0;
+ min, 0 64;
+ max, 360 64;
+ align, 0.5 1;
+ rel1
+ {
+ relative, 0 (360+64)/360;
+ to, "bg";
+ offset, 0 +13;
+ }
+ rel2
+ {
+ relative, 1 (360+64)/360;
+ to, "bg";
+ offset, 0 +13;
+ }
+
+ }
+
+ }
+
+ 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, 120 120 120 120;
+ }
+ description
+ {
+ state, "bottom" 0.0;
+ inherit, "default" 0.0;
+ text
+ {
+ fit: 1 1;
+ style, "textblock_style_bottom";
+ }
+ color, 120 120 120 120;
+ }
+ }
+ }
+
+ 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";
+ }
+
+
+ }
+ }
+
+ group
+ {
+ name: "option_more_index";
+ parts
+ {
+ part
+ {
+ name: "bg";
+ type: SPACER;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ min: 360 360;
+ max: -1 360;
+ }
+ }
+ part
+ {
+ name: "scroller";
+ type: SWALLOW;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part
+ {
+ name: "controller";
+ type: SWALLOW;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ align: 0.5 0.0;
+ min: 360 40;
+ max: 360 40;
+ fixed: 0 1;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ }
+ }
+
+ group
+ {
+ name, "language_list";
+ parts
+ {
+ part
+ {
+ name, "bg";
+ type, RECT;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 358 0;
+ max, 358 223;
+ rel1
+ {
+ relative, 0.0 0.0;
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ }
+ color, 8 8 8 255;
+ }
+ }
+ part
+ {
+ name, "list";
+ type, SWALLOW;
+ scale, 1;
+ repeat_events, 0;
+ description
+ {
+ state, "default" 0.0;
+ rel1
+ {
+ relative, 0.0 0.0;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ to, "bg";
+ }
+ }
+ }
+ }
+ }
+
+ group{
+ name: "layout_textblock";
+
+ script {
+ public timer_cb(val) {
+ run_program(PROGRAM:"do_scroll");
+ }
+
+ }
+ parts {
+ part
+ {
+ name, "bg";
+ type, SPACER;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 282 39;
+ rel1
+ {
+ relative, 0.0 0.0;
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ scale: 1;
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ min: 282 39;
+ color, 120 120 120 120;
+ }
+ }
+ }
+ programs {
+ program
+ {
+ name, "scroll";
+ signal, "scrolling";
+ source, "entry";
+ script {
+ timer(3/10, "timer_cb", 0);
+ }
+ }
+ program
+ {
+ name, "do_scroll";
+ action, SIGNAL_EMIT "do_scroll" "entry";
+ }
+ }
+ }
+
+ group{ name: "entry_focused_layout";
+ 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: 1;
+ color, 120 120 120 120;
+ }
+ }
+ part { name: "padding_top";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ min: 0 20;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_left";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ min: 73 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_right";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 1.0 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ min: 73 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "contents";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
+ rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top";}
+ min:0 42;
+ max: -1 42;
+ align: 0.5 0;
+ }
+ }
+ }
+ }
+
+
+
+#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";
+ }
+ }
+ }
+
+
+#define BUTTON_PADDING_SIZE_INC 20 0
+#define BUTTON_HEIGHT_INC 122
+#define BUTTON_ICON_SIZE_INC 60 60
+ group { name: "elm/button/base/default";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 BUTTON_HEIGHT_INC;
+ color_class: "W011";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ 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: BUTTON_PADDING_SIZE_INC;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: BUTTON_PADDING_SIZE_INC;
+ 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 0;
+ fixed: 1 1;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: BUTTON_ICON_SIZE_INC;
+ max: BUTTON_ICON_SIZE_INC;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ clip_to: "elm.swallow.content.clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 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";
+ }
+ fixed: 1 0;
+ }
+ description { state: "visible" 0.0;
+ fixed: 1 1;
+ min: BUTTON_ICON_SIZE_INC;
+ max: BUTTON_ICON_SIZE_INC;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
+ }
+ description { state: "icononly" 0.0;
+ min: BUTTON_ICON_SIZE_INC;
+ max: BUTTON_ICON_SIZE_INC;
+ }
+ }
+ 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 {
+ max: 1 0;
+ style: "button_general_text_normal";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_dim";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_press";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "F022L1i";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "F022L1iD";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ //run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "icononly"))
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ }
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled"))
+ set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ }
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "default", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ 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);
+ }
+ }
+ }
+}
+
+ group { name: "elm/button/base/ime_transparent";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 112;
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button";
+ alias: "elm/button/base/ime_button_stt";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO01153L1";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01153L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "elm.swallow.content.clip";
+ description { state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ rel1 { relative: 0.0 0.0; to: "bg";}
+ rel2 { relative: 1.0 1.0; to: "bg";}
+ fixed: 1 1;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "icononly" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.swallow.content.clip", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_emoticon";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO01154L1";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01154L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_keyboard";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO01155L1";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01155L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_template";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 76 76;
+ max: 76 76;
+ color_class: "AO01161";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01161P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01161D";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "AO01153L3";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01153L3P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01153L3D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_stt_confirm";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO015L2";
+ visible: 0;
+ image.normal: "./b_stt_icon_btn.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "AO015L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/touch_area";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/emoticon";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ 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: 0 0;
+ fixed: 1 1;
+ //visible: 1;
+ //color: 255 0 0 100;
+ }
+ }
+ part { name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: 0 0;
+ fixed: 1 1;
+ //visible: 1;
+ //color: 0 255 0 100;
+ }
+ }
+ 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: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ text {
+ min: 1 0;
+ style: "button_general_text_normal";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_dim";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_press";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.text";
+ }
+ 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 NAVIFRAME_VIEW_TRANS_TIME 0.4 //time for push and pop
+#define NAVIFRAME_TITLE_TRANS_TIME 0.5 //Title transition time
+#define NAVIFRAME_TITLE_EXPAND_TRANS_TIME 0.5 //Title Expansion transition time
+#define NAVIFRAME_TEXT_FADE_OUT_CALC_TIME 0.2 //Text fade out calculation time
+#define ACTIONBAR_PADDING_SIZE_INC 64
+#define ACTIONBAR_HEIGHT_INC 115
+#define ACTIONBAR_TEXT_SIZE_INC 39
+#define ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC 51
+#define ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC 25
+#define ACTIONBAR_TEX_SLIDING_SPEED 0.006
+#define ACTIONBAR_TEX_SLIDING_START_WAITING_TIME 0.8
+#define HIDDEN_BUTTON_HEIGHT_INC 88
+
+#define STYLE_TAG_MATCH \
+ tag: "match" "+ color=#ffffff color_class=T0212";
+
+styles {
+ style { name: "action_bar_title";
+ base: "font=Tizen:style=Regular font_size="ACTIONBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T012 text_class=T012";
+ STYLE_TAG_MATCH
+ }
+}
+
+group { name: "elm_naviframe_item_basic_customized";
+ data.item: "tizen_zoom" 1;
+ script {
+ public g_mirrored = 0; //Mirrored on/off status
+ public g_text_fade_out_calc_timer = 0; //Text fade out calculation timer
+
+ public g_duration_1st;
+ public g_duration_2nd;
+ public g_timer_id;
+ public g_anim_id;
+ public g_sliding_start;
+
+ public title_text_fade_out() {
+ new x, y, w, h, w2;
+
+ if (get_int(g_text_fade_out_calc_timer)) {
+ cancel_timer(g_text_fade_out_calc_timer);
+ set_int(g_text_fade_out_calc_timer, 0);
+ }
+
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_bg", x, y, w2, h);
+ }
+
+ public init() {
+ slide_stop();
+ set_float(g_duration_1st, 0);
+ set_float(g_duration_2nd, 0);
+ set_int(g_timer_id, 0);
+ set_int(g_anim_id, 0);
+ set_int(g_sliding_start, 0);
+ }
+ public slide_first_anim(val, Float:pos) {
+ set_tween_state(PART:"elm.text.title", pos, "slide", 0.0, "slide_1", 0.0);
+ if (pos >= 1.0) {
+ cancel_anim(get_int(g_anim_id));
+ set_int(g_anim_id, anim(get_float(g_duration_2nd), "slide_second_anim", 1));
+ }
+ }
+ public slide_second_anim(val, Float:pos) {
+ set_tween_state(PART:"elm.text.title", pos, "slide_2", 0.0, "slide", 0.0);
+ if (pos >= 1.0)
+ slide_stop();
+ }
+ public slide_first() {
+ check_size();
+ if (get_int(g_sliding_start)) {
+ set_state(PART:"elm.text.title", "slide", 0.0);
+ get_duration();
+ set_int(g_anim_id, anim(get_float(g_duration_1st), "slide_first_anim", 1));
+ }
+ }
+ public slide_start() {
+ set_int(g_timer_id, timer(ACTIONBAR_TEX_SLIDING_START_WAITING_TIME, "slide_first", 1));
+ }
+ public slide_stop() {
+ cancel_anim(get_int(g_anim_id));
+ set_state(PART:"elm.text.title", "default", 0.0);
+ set_int(g_sliding_start, 0);
+ }
+ public check_size() {
+ new x, y, w, w1, h;
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_clip", x, y, w1, h);
+ if (w >= w1) {
+ set_int(g_sliding_start, 1);
+ }
+ else {
+ set_int(g_sliding_start, 0);
+ }
+ }
+ public get_duration() {
+ new x, y, w, w1, h;
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_clip", x, y, w1, h);
+ set_float(g_duration_1st, w * ACTIONBAR_TEX_SLIDING_SPEED);
+ set_float(g_duration_2nd, w1 * ACTIONBAR_TEX_SLIDING_SPEED);
+ }
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ part { name: "title_expand";
+ type: RECT;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 HIDDEN_BUTTON_HEIGHT_INC;
+ max: -1 HIDDEN_BUTTON_HEIGHT_INC;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ visible: 0;
+ color: 255 255 255 0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_clip";
+ type: RECT;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "title_bg";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 0 ACTIONBAR_HEIGHT_INC;
+ max: -1 ACTIONBAR_HEIGHT_INC;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ color: 255 255 255 0;
+ }
+ description { state: "hide_trans" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: -1 0;
+ }
+ }
+ part { name: "title_text_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 1.0 1.0; to_x: "left_padding"; to_y: "top_padding"; }
+ rel2 { relative: 0.0 0.0; to: "right_padding"; to_y: "bottom_padding"; }
+ fixed: 0 1;
+ }
+ }
+ part { name: "title_text_clip";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ rel1.to: "title_text_bg";
+ rel2.to: "title_text_bg";
+ }
+ }
+ part { name: "elm.text.title";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "title_text_clip";
+ description { state: "default" 0.0;
+ text {
+ min: 0 1;
+ max: 1 1;
+ ellipsis: -1.0;
+// fade_ellipsis: 1.0;
+ style: "action_bar_title";
+ }
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1.to: "title_text_bg"; rel2.to: "title_text_bg";
+ }
+ description { state: "slide" 0.0;
+ inherit: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "left_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "left_padding";
+ to_y: "bottom_padding";
+ }
+ text.min: 1 1;
+ }
+ description { state: "slide_1" 0.0;
+ inherit: "default" 0.0;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "left_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "left_padding";
+ to_y: "bottom_padding";
+ }
+ text.min: 1 1;
+ }
+ description { state: "slide_2" 0.0;
+ inherit: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "right_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "right_padding";
+ to_y: "bottom_padding";
+ }
+ text.min: 1 1;
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ACTIONBAR_PADDING_SIZE_INC 0;
+ max: ACTIONBAR_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ACTIONBAR_PADDING_SIZE_INC 0;
+ max: ACTIONBAR_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 { relative: 1.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "click_event_area";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ rel1 { to: "title_bg"; }
+ rel2 { to: "title_bg"; }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "access.title";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
+ max: -1 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
+ rel1 {relative: 0.0 0.0; to: "title_bg"; }
+ rel2 {relative: 1.0 0.0; to: "title_bg"; }
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ min: 0 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
+ max: -1 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
+ rel1 {relative: 0.0 1.0; to: "title_bg"; }
+ rel2 {relative: 1.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_expand"; }
+ rel2 { relative: 1.0 0.0; to_x: "base"; to_y: "button_padding"; }
+ }
+ }
+ part { name: "elm.swallow.circle_bg";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0; }
+ }
+ part { name: "elm.swallow.circle";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0; }
+ }
+ part { name: "button_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ min: 0 100;
+ max: -1 100;
+ rel1 {relative: 0.0 1.0; to: "base"; }
+ rel2 {relative: 1.0 1.0; to: "base"; }
+ }
+ }
+ }
+ programs {
+ program { name: "visible";
+ signal: "elm,state,visible";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ set_state(PART:"clipper", "default", 0.0);
+ init();
+ slide_start();
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "invisible";
+ signal: "elm,state,invisible";
+ source: "elm";
+ script {
+ set_state(PART:"clipper", "hide", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"title_clip", "hide", 0.0);
+ }
+ }
+ program { name: "title_hide_trans";
+ signal: "elm,action,title,hide";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 32, vl);
+ if (!strcmp(st, "default")) {
+ run_program(PROGRAM:"title_hide_trans2");
+ }
+ }
+ }
+ program { name: "title_hide_trans2";
+ action: STATE_SET "hide_trans" 0.0;
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_hide_trans3";
+ }
+ program { name: "title_hide_trans3";
+ script {
+ run_program(PROGRAM:"title_hide");
+ }
+ after: "title_trans_finished";
+ }
+ program { name: "title_trans_finished";
+ action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
+ }
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "default", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "title_show_trans";
+ signal: "elm,action,title,show";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 32, vl);
+ if (!strcmp(st, "hide")) {
+ set_state(PART:"title_bg", "hide_trans", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ run_program(PROGRAM:"title_show_trans2");
+ }
+ }
+ }
+ program { name: "title_show_trans2";
+ action: STATE_SET "default" 0.0;
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_trans_finished";
+ }
+ program { name: "title_label_show";
+ signal: "elm,state,title_label,show";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "title_label_hide";
+ signal: "elm,state,title_label,hide";
+ source: "elm";
+ }
+ program { name: "title_expand_show";
+ signal: "elm,state,title_expand,show";
+ source: "";
+ script {
+ set_state(PART:"title_expand", "show", 0.0);
+ }
+ }
+ program { name: "title_expand_hide";
+ signal: "elm,state,title_expand,hide";
+ source: "";
+ script {
+ set_state(PART:"title_expand", "default", 0.0);
+ }
+ }
+ program { name: "hidden_btn_show_trans";
+ signal: "elm,action,title_expand,show";
+ source: "";
+ action: STATE_SET "show" 0.0;
+ target: "title_expand";
+ transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
+ }
+ program { name: "title_expand_hide_trans";
+ signal: "elm,action,title_expand,hide";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "title_expand";
+ transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
+ }
+ program { name: "title_clicked";
+ signal: "mouse,clicked,1";
+ source: "click_event_area";
+ action: SIGNAL_EMIT "elm,action,title,clicked" "";
+ }
+ program {
+ name: "mirrored_on";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 1);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program {
+ name: "mirrored_off";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program {
+ name: "title_text_fade_out";
+ script {
+ if (get_int(g_text_fade_out_calc_timer)) {
+ cancel_timer(g_text_fade_out_calc_timer);
+ set_int(g_text_fade_out_calc_timer, 0);
+ }
+ set_int(g_text_fade_out_calc_timer, timer(NAVIFRAME_TEXT_FADE_OUT_CALC_TIME, "title_text_fade_out", 0));
+ }
+ }
+ }
+}
+
+//////////////////////////////////////////////////////////////////////////////////
+// Customizing panel for send button.
+//////////////////////////////////////////////////////////////////////////////////
+
+// ***************************** Panel*****************************************/
+#define PANEL_LEFT_PADDING_SIZE_INC 8
+#define PANEL_RIGHT_PADDING_SIZE_INC 6
+#define PANEL_LEFT_IMAGE_SIZE_INC 29 36
+#define PANEL_RIGHT_IMAGE_SIZE_INC 16 36
+#define PANEL_RIGHT_CUE_SIZE_INC 32 158
+#define PANEL_RIGHT_CUE_IMAGE_SIZE_INC 158 158
+#define PANEL_RIGHT_EVENT_AREA_SIZE_INC 50 140
+#define PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC 100 140
+#define PANEL_RIGHT_CUE_EFFECT_SIZE_INC 200 200
+#define PANEL_LAYOUT_SIZE_INC 360 360
+
+images {
+ image, "./b_more_option.png" COMP;
+ image, "./b_more_option_ef.png" COMP;
+ image, "./b_more_option_bg.png" COMP;
+ image, "./b_ic_press_full_circle_bg.png" COMP;
+}
+
+group { name: "elm/panel/right1/default";
+ script {
+ public mouse_down = 0;
+ public mouse_click = 0;
+ public multi_down = 0;
+ public click_cnt = 0;
+ public event_down = 0;
+ public cue_hide = 0;
+ public timer0(val) {
+ if(val == 1)
+ run_program(PROGRAM:"change_opacity");
+ else if(val == 2)
+ run_program(PROGRAM:"change_opacity2");
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_LAYOUT_SIZE_INC;
+ max: PANEL_LAYOUT_SIZE_INC;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "cue.padding";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ min: PANEL_RIGHT_PADDING_SIZE_INC 0;
+ max: PANEL_RIGHT_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ }
+ }
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_more_option.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 0.0 1.0;
+ align: 1.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ part { name: "cue_ef";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 1;
+ image.normal: "./b_more_option_ef.png";
+ color: 128 128 128 128;
+ rel1.to: "cue";
+ rel2.to: "cue";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "effect_bg";
+ scale: 1;
+ clip_to: "effect_bg_clip";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ color: 128 128 128 128;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "effect_bg2";
+ scale: 1;
+ clip_to: "effect_bg_clip2";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip2";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "cue.event";
+ type: RECT;
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "cue.release.event";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.offset: -1 -1;
+ rel2.to: "bg";
+ rel2.offset: 0 0;
+ visible: 0;
+ fixed: 1 1;
+ image.normal: "./b_more_option_bg.png";
+ color: 128 128 128 128;
+ map {
+ on: 1;
+ zoom {
+ x: 1.35;
+ y: 1.35;
+ }
+ color[0]: 0 0 0 0;
+ color[1]: 0 0 0 0;
+ color[2]: 0 0 0 0;
+ color[3]: 0 0 0 0;
+ }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ map {
+ zoom {
+ x: 1.0;
+ y: 1.0;
+ }
+ color[0]: 255 255 255 255;
+ color[1]: 255 255 255 255;
+ color[2]: 255 255 255 255;
+ color[3]: 255 255 255 255;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ visible: 0;
+ fixed: 1 1;
+ map {
+ on: 1;
+ zoom {
+ x: 1.35;
+ y: 1.35;
+ }
+ color[0]: 0 0 0 0;
+ color[1]: 0 0 0 0;
+ color[2]: 0 0 0 0;
+ color[3]: 0 0 0 0;
+ }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ map {
+ zoom {
+ x: 1.0;
+ y: 1.0;
+ }
+ color[0]: 255 255 255 255;
+ color[1]: 255 255 255 255;
+ color[2]: 255 255 255 255;
+ color[3]: 255 255 255 255;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "cue.event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ set_int(event_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"effect_bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ emit("elm,action,press", "");
+ run_program(PROGRAM:"haptic");
+ if(get_int(click_cnt) == 0) {
+ set_state(PART:"effect_bg", "pressed", 0.0);
+ set_state(PART:"effect_bg_clip", "pressed", 0.0);
+ run_program(PROGRAM:"start_persp");
+ timer(0.3, "timer0", 1);
+ }
+ else if(get_int(click_cnt) == 1) {
+ set_state(PART:"effect_bg2", "pressed", 0.0);
+ set_state(PART:"effect_bg_clip2", "pressed", 0.0);
+ run_program(PROGRAM:"start_persp2");
+ timer(0.3, "timer0", 2);
+ }
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "cue.event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"effect_bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ if(get_int(click_cnt) == 0)
+ set_int(click_cnt, 1);
+ else
+ set_int(click_cnt, 0);
+ }
+ }
+ }
+ program { name: "release.event_clicked";
+ signal: "mouse,clicked,*";
+ source: "cue.release.event";
+ script {
+ if (get_int(event_down) == 1) {
+ set_int(event_down, 0);
+ emit("cue,clicked", "elm");
+ run_program(PROGRAM:"panel_toggle");
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "panel_toggle";
+ action: SIGNAL_EMIT "elm,action,panel,toggle" "elm";
+ }
+ program {
+ name: "haptic";
+ action: RUN_PLUGIN "haptic_tap";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(cue_hide) == 0)
+ set_state(PART:"cue", "disabled", 0.0);
+ set_state(PART:"effect_bg", "disabled", 0.0);
+ set_state(PART:"cue.event", "hidden", 0.0);
+ set_state(PART:"cue.release.event", "hidden", 0.0);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(cue_hide) == 1) {
+ set_state(PART:"cue", "hidden", 0.0);
+ set_state(PART:"cue.event", "hidden", 0.0);
+ set_state(PART:"cue.release.event", "hidden", 0.0);
+ }
+ else {
+ set_state(PART:"cue", "default", 0.0);
+ set_state(PART:"cue.event", "default", 0.0);
+ set_state(PART:"cue.release.event", "default", 0.0);
+ }
+ set_state(PART:"effect_bg", "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: "start_persp";
+ action: STATE_SET "start_persp" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg";
+ }
+ program { name: "change_opacity";
+ action: STATE_SET "default" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg_clip";
+ }
+ program { name: "start_persp2";
+ action: STATE_SET "start_persp" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg2";
+ }
+ program { name: "change_opacity2";
+ action: STATE_SET "default" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg_clip2";
+ }
+ program {
+ signal: "elm,action,show";
+ source: "elm";
+ action: STATE_SET "show" 0.0;
+ transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
+ target: "elm.swallow.content";
+ target: "base";
+ after: "active,finished";
+ }
+ program {
+ signal: "elm,action,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
+ target: "elm.swallow.content";
+ target: "base";
+ after: "inactive,finished";
+ }
+ program { name: "active,finished";
+ action: SIGNAL_EMIT "elm,state,active,finished" "elm";
+ }
+ program { name: "inactive,finished";
+ action: SIGNAL_EMIT "elm,state,inactive,finished" "elm";
+ }
+ program { name: "cue,hide";
+ signal: "cue,hide";
+ source: "elm";
+ script {
+ set_int(cue_hide, 1);
+ set_state(PART:"cue", "hidden", 0.0);
+ set_state(PART:"cue_ef", "hidden", 0.0);
+ set_state(PART:"cue.event", "hidden", 0.0);
+ set_state(PART:"cue.release.event", "hidden", 0.0);
+ }
+ }
+ program { name: "cue,show";
+ signal: "cue,show";
+ source: "elm";
+ script {
+ set_int(cue_hide, 0);
+ set_state(PART:"cue", "default", 0.0);
+ set_state(PART:"cue_ef", "default", 0.0);
+ set_state(PART:"cue.event", "default", 0.0);
+ set_state(PART:"cue.release.event", "default", 0.0);
+ }
+ }
+ }
+}
+
+group { name: "elm/panel/left1/default";
+ inherit: "elm/panel/right1/default";
+ parts {
+ part { name: "cue.padding";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ min: PANEL_RIGHT_PADDING_SIZE_INC 0;
+ max: PANEL_RIGHT_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ }
+ }
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_more_option.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ part { name: "cue_ef";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 1;
+ image.normal: "./b_more_option_ef.png";
+ color: 128 128 128 128;
+ rel1.to: "cue";
+ rel2.to: "cue";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "effect_bg";
+ scale: 1;
+ clip_to: "effect_bg_clip";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ color: 128 128 128 128;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "effect_bg2";
+ scale: 1;
+ clip_to: "effect_bg_clip2";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip2";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "cue.event";
+ type: RECT;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "cue.release.event";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+}
+
+group { name: "elm/panel/left_sending/default";
+ inherit: "elm/panel/left1/default";
+ parts {
+ part { name: "cue.padding";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ min: 1 0;//PANEL_RIGHT_PADDING_SIZE_INC 0;
+ max: 1 -1;//PANEL_RIGHT_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ }
+ }
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_stt_send_icon.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";//"B052L1D";
+ }
+ }
+ part { name: "cue_ef";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 1;
+ visible: 0;
+ image.normal: "./b_more_option_ef.png";
+ color: 128 128 128 128;
+ rel1.to: "cue";
+ rel2.to: "cue";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+}
+
+group { name: "elm/panel/left_confirm/default";
+ inherit: "elm/panel/left_sending/default";
+ parts {
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_stt_confirm_icon.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";//"B052L1D";
+ }
+ }
+ }
+}
+
+}
--- /dev/null
+#define FONT_NAME "GP45_ArabCJK_TouchWiz"
+
+#define BTN_W 120
+#define BTN_H 120
+#define BTN_PAD_W 1
+#define BTN_PAD_H 1
+
+collections {
+ base_scale: 1.3;
+ group { name: "main";
+ parts {
+ part { name: "background";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 255;
+ }
+ }
+
+ part { name: "txt_title";
+ type: TEXT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: background; }
+ rel2 { relative: 1.0 0.35; to: background; }
+ text { font: FONT_NAME; size: 35; }
+ color: 0 140 239 255;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "btn1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: background; }
+ rel2 { relative: 1.0 1.0; to: background; }
+ min: BTN_W BTN_H;
+ max: BTN_W BTN_H;
+ align: 0 0.5;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "padding";
+ type: SPACER;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "btn1";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "btn1";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: BTN_PAD_W BTN_H;
+ max: BTN_PAD_W BTN_H;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "btn2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "padding";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: (BTN_W - BTN_PAD_W) BTN_H;
+ max: (BTN_W - BTN_PAD_W) BTN_H;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding2";
+ type: SPACER;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "btn2";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "btn2";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: BTN_PAD_W BTN_H;
+ max: BTN_PAD_W BTN_H;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "btn3";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "padding2";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "padding2";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 1.0;
+ min: (BTN_W - BTN_PAD_W) BTN_H;
+ max: (BTN_W - BTN_PAD_W) BTN_H;
+ fixed: 1 1;
+ }
+ }
+
+ part { name: "template_list";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: background; }
+ rel2 { relative: 1.0 1.0; to: background; }
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+
+#define LIST_BUTTON_PADDING_LEFT_SIZE_INC 0
+#define LIST_BUTTON_PADDING_RIGHT_SIZE_INC 0
+#define LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC 1
+#define LIST_BUTTON_PADDING_BOTTOM_SIZE_INC 1
+#define BUTTON_2BUTTON_WIDTH_INC 180
+#define BUTTON_2BUTTON_RIGHT_WIDTH_INC 179
+#define LIST_BUTTON_PADDING_CENTER_SIZE_INC 1
+
+#define PART(TYPE, NAME, DESCRIPION) \
+ part { name: NAME; \
+ scale: 1; \
+ type: TYPE; \
+ DESCRIPION \
+ }
+
+#define DESC_LTB( LEFT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0; \
+ align: 0 0.5; \
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ } \
+ rel2 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ to_y: BOTTOM; \
+ } \
+ PARAM \
+ }
+
+#define DESC_TB( TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0; \
+ align: 0.5 0.5; \
+ rel1 { \
+ relative: 0 1; \
+ to_y: TOP; \
+ } \
+ rel2 { \
+ relative: 1 0; \
+ to_y: BOTTOM; \
+ } \
+ PARAM \
+ }
+
+#define DESC_LRTB( LEFT, RIGHT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0; \
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ } \
+ rel2 { \
+ relative: 0 0; \
+ to_x: RIGHT; \
+ to_y: BOTTOM; \
+ } \
+ PARAM \
+ }
+
+#define DESC_FROM_L( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 1 0; \
+ align: 0.0 0.5; \
+ rel2.relative: 0.0 1.0; \
+ PARAM \
+ }
+
+#define DESC_FROM_R( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 1 0; \
+ align: 1.0 0.5; \
+ rel1.relative: 1 0; \
+ PARAM \
+ }
+
+#define DESC_FROM_T( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 0 1; \
+ align: 0.5 0.0; \
+ rel2.relative: 1.0 0.0; \
+ PARAM \
+ }
+
+#define DESC_FROM_B( PARAM ) \
+ description { state: "default" 0.0; \
+ fixed: 0 1; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.5 1.0; \
+ PARAM \
+ }
+
+#define DESC_L( LEFT, PARAM ) \
+ description { state: "default" 0.0; \
+ align: 0 0.5; \
+ fixed: 1 0; \
+ rel1 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ } \
+ rel2 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ } \
+ PARAM \
+ }
+
+
+
+#define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \
+ PART(SWALLOW, "elm.swallow.pad", \
+ mouse_events: 0; \
+ DESC_FROM_L( ; ) \
+ ) \
+ PART(SWALLOW, "elm.swallow.colorbar", \
+ mouse_events: 0; \
+ DESC_L("elm.swallow.pad", ) \
+ ) \
+ PART(SPACER, "elm.padding.left", \
+ scale: 0; \
+ DESC_L("elm.swallow.pad", \
+ min: LEFT_SIZE 0; \
+ max: LEFT_SIZE -1; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.right", \
+ scale: 0; \
+ DESC_FROM_R( \
+ min: RIGHT_SIZE 0; \
+ max: RIGHT_SIZE -1; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.top", \
+ scale: 0; \
+ DESC_FROM_T( \
+ min: 0 TOP_SIZE; \
+ max: -1 TOP_SIZE; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.bottom", \
+ scale: 0; \
+ DESC_FROM_B( \
+ min: 0 BOTTOM_SIZE; \
+ max: -1 BOTTOM_SIZE; \
+ ) \
+ )
+
+#define PROGRAM_LIST_DEFAULT( TARGET ) \
+ program { name: "default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_DISABLE( TARGET ) \
+ program { name: "enabled"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ } \
+ program { name: "disabled"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_SELECT( TARGET ) \
+ program { name: "selected"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ action: STATE_SET "selected" 0.0; \
+ TARGET \
+ } \
+ program { name: "unselected"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_HIGHLIGHT( TARGET ) \
+ program { name: "highlighted"; \
+ signal: "elm,state,highlighted"; \
+ source: "elm"; \
+ action: STATE_SET "highlighted" 0.0; \
+ TARGET \
+ transition: LINEAR 1.0; \
+ } \
+ program { name: "unhighlighted"; \
+ signal: "elm,state,unhighlighted"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ transition: LINEAR 1.0; \
+ }
+
+#define PROGRAMS_LIST_BUTTON( TARGET ) \
+ programs { \
+ PROGRAM_LIST_DEFAULT( TARGET \
+ target: "elm.padding.left"; \
+ target: "elm.padding.right"; \
+ ) \
+ PROGRAM_LIST_DISABLE( TARGET \
+ ) \
+ PROGRAM_LIST_SELECT( TARGET \
+ ) \
+ PROGRAM_LIST_HIGHLIGHT( TARGET ) \
+ PROGRAM_LIST_SOUND \
+ }
+
+#define PROGRAM_LIST_SOUND \
+ program { name: "play_sound"; \
+ signal: "elm,state,clicked"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"play_sample"); \
+ } \
+ } \
+ program { \
+ name: "play_sample"; \
+ action: RUN_PLUGIN "touch_sound"; \
+ }
+
+
+#define BUTTON_HEIGHT_INC 122
+
+#define PART_LIST_BG \
+ PART(RECT, "bg", \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 1; \
+ } \
+ )
+
+
+
+// 3 button
+ group {
+ name: "elm/genlist/item/3button_flat/default";
+ alias: "elm/genlist/item/3button_flat_recent/default";
+ data.item: "treesize" 0;
+ data.item: "flips" "elm.flip.icon elm.flip.content";
+ data.item: "contents" "base elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.3.touch_area";
+ data.item: "vi_effect" "on";
+ data.item: "dim" "off";
+ data.item: "focus_bg" "off";
+
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
+ LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
+ )
+
+ PART(SWALLOW, "base",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 360 0;
+ fixed: 1 0;
+ visible: 1;
+ )
+ )
+
+ part {
+ name: "elm.icon.1"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+ part {
+ name: "elm.icon.1.touch_area"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+
+ part {
+ name: "elm.icon.2"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+ part {
+ name: "elm.icon.2.touch_area"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+
+
+ part {
+ name: "elm.icon.3"; // right icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+ part {
+ name: "elm.icon.3.touch_area"; // right icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+
+ }
+ }
+
+//2button
+ group {
+ name: "elm/genlist/item/2button_flat/default";
+ data.item: "treesize" 0;
+ data.item: "flips" "elm.flip.icon elm.flip.content";
+ data.item: "contents" "base elm.icon.1 elm.icon.2 elm.icon.1.touch_area elm.icon.2.touch_area";
+ data.item: "vi_effect" "on";
+ data.item: "dim" "off";
+ data.item: "focus_bg" "off";
+
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
+ LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
+ )
+
+ PART(SWALLOW, "base",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 360 0;
+ fixed: 1 0;
+ visible: 1;
+ )
+ )
+
+ part {
+ name: "elm.icon.1"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+ part {
+ name: "elm.icon.1.touch_area"; // left icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
+ }
+ }
+
+ part {
+ name: "elm.icon.2"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 100 100;
+ max: 100 100;
+ rel1 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+ part {
+ name: "elm.icon.2.touch_area"; // center icon
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: 120 120;
+ max: 120 120;
+ rel1 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ rel2 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
+ }
+
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime/transparent";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 130;
+ color_class: "AO015";
+ visible: 0;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015D";
+ }
+ }
+ 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: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: 0 0;
+ 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 0;
+ fixed: 1 1;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 134 61;
+ max: 134 61;
+ fixed: 1 1;
+ }
+ }
+ }
+ }
+
+ group {
+ name: "elm/genlist/item/2button/default";
+ data.item: "treesize" 0;
+ data.item: "flips" "elm.flip.icon elm.flip.content";
+ data.item: "contents" "base elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.1 elm.icon.2 elm.swallow.center_check";
+ data.item: "vi_effect" "off";
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
+ LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
+ )
+ PART(SWALLOW, "base",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 360 0;
+ fixed: 1 0;
+ visible: 1;
+ )
+ )
+ part { name: "elm.icon.1.touch_area";
+ type: SWALLOW;
+ repeat_events, 0;
+ description {
+ state: "default" 0.0;
+ color: 255 0 0 100;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -5 -5;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +5 +5;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -7 -7;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +7 +7;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -8 -8;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +8 +8;}
+ }
+ }
+ part { name: "elm.icon.2.touch_area";
+ type: SWALLOW;
+ repeat_events, 0;
+ description {
+ state: "default" 0.0;
+ color: 0 0 255 100;
+ visible: 1;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -6 -5;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +6 +5;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -7 -7;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +7 +7;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -9 -8;}
+ rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +9 +8;}
+ }
+ }
+ part { name: "elm.icon.1";
+ type: SWALLOW;
+ repeat_events, 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0;
+ fixed: 1 1;
+ min: 114 114;
+ max: 114 114;
+ rel1 { relative: 112/360 0; to: "base"; offset: 0 35;}
+ rel2 { relative: 112/360 0; to: "base"; offset: 0 35;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ min: 114+(198-114)/2 114+(198-114)/2;
+ max: 114+(198-114)/2 114+(198-114)/2;
+ rel1 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ rel2 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ min: 198 198;
+ max: 198 198;
+ rel1 { relative: 128/360 0; to: "base"; offset: 0 12;}
+ rel2 { relative: 128/360 0; to: "base"; offset: 0 12;}
+ }
+ }
+ part { name: "elm.icon.2";
+ type: SWALLOW;
+ repeat_events, 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0;
+ fixed: 1 1;
+ min: 114 114;
+ max: 114 114;
+ rel1 { relative: 249/360 0; to: "base"; offset: 0 35;}
+ rel2 { relative: 249/360 0; to: "base"; offset: 0 35;}
+ }
+ description {
+ state: "default" 0.1;
+ inherit: "default" 0.0;
+ min: 114+(198-114)/2 114+(99-114)/2;
+ max: 114+(198-114)/2 114+(198-114)/2;
+ rel1 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ rel2 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
+ }
+ description {
+ state: "default" 0.9;
+ inherit: "default" 0.0;
+ min: 198 198;
+ max: 198 198;
+ rel1 { relative: 297/360 0; to: "base"; offset: 0 12;}
+ rel2 { relative: 297/360 0; to: "base"; offset: 0 12;}
+ }
+ }
+
+ PART(SPACER, "elm.padding.fake",
+ DESC_TB("elm.padding.top","elm.padding.bottom",
+ min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
+ max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
+ fixed: 1 0;
+ )
+ )
+ PART(SPACER, "elm.padding.center",
+ DESC_LTB("elm.padding.fake", "elm.padding.top", "elm.padding.bottom",
+ min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
+ max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
+ fixed: 1 0;
+ )
+ )
+ PART(SWALLOW, "elm.swallow.center_check",
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ }
+ )
+ }
+}
--- /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
+#define BUTTON_TEXT_SIZE_INC 85
+
+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,
+ ...
+
+ * Fore information, please refer the libsvi libraries.
+ * git: slp-info.sec.samsung.net:29418/magnolia/framework/system/libsvi
+ * web: http://slp-info.sec.samsung.net/gerrit/plugins/gitiles/magnolia/framework/system/libsvi
+ */
+ }
+ 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: 0 0 255 255;
+ }
+ color_class
+ {
+ name: "AO01153L1P";
+ color: 61 61 61 100;
+ }
+ color_class
+ {
+ name: "AO01153L1D";
+ color: 163 163 163 100;
+ }
+ color_class
+ {
+ name: "AO01154L1";
+ color: 97 12 117 255;
+ }
+ color_class
+ {
+ name: "AO01154L1P";
+ color: 41 41 41 100;
+ }
+ color_class
+ {
+ name: "AO01154L1D";
+ color: 110 110 110 100;
+ }
+ color_class
+ {
+ name: "AO01155L1";
+ color: 255 0 0 255;
+ }
+ 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";
+ }
+ style { name: "button_general_text_dim";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
+ }
+ style { name: "button_general_text_press";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#888888 ellipsis=0.0 wrap=mixed";
+ }
+ style { name: "button_general_text_normal";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
+ }
+ }
+
+ 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: 1;
+ 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 64;
+ max, 360 64;
+ align, 0.5 1;
+ rel1
+ {
+ relative, 0 1;
+ to, "bg";
+ offset, 0 -1;
+ }
+ rel2
+ {
+ relative, 1 1;
+ to, "bg";
+ offset, 0 -1;
+ }
+ }
+
+ description
+ {
+ state, "hide" 0.0;
+ min, 0 64;
+ max, 360 64;
+ align, 0.5 1;
+ rel1
+ {
+ relative, 0 (360+64)/360;
+ to, "bg";
+ offset, 0 +13;
+ }
+ rel2
+ {
+ relative, 1 (360+64)/360;
+ to, "bg";
+ offset, 0 +13;
+ }
+
+ }
+
+ }
+
+ 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, 120 120 120 120;
+ }
+ description
+ {
+ state, "bottom" 0.0;
+ inherit, "default" 0.0;
+ text
+ {
+ fit: 1 1;
+ style, "textblock_style_bottom";
+ }
+ color, 120 120 120 120;
+ }
+ }
+ }
+
+ 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";
+ }
+
+
+ }
+ }
+
+ group
+ {
+ name: "option_more_index";
+ parts
+ {
+ part
+ {
+ name: "bg";
+ type: SPACER;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ min: 360 360;
+ max: -1 360;
+ }
+ }
+ part
+ {
+ name: "scroller";
+ type: SWALLOW;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part
+ {
+ name: "controller";
+ type: SWALLOW;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ align: 0.5 0.0;
+ min: 360 40;
+ max: 360 40;
+ fixed: 0 1;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ }
+ }
+
+ group
+ {
+ name, "language_list";
+ parts
+ {
+ part
+ {
+ name, "bg";
+ type, RECT;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 358 0;
+ max, 358 223;
+ rel1
+ {
+ relative, 0.0 0.0;
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ }
+ color, 8 8 8 255;
+ }
+ }
+ part
+ {
+ name, "list";
+ type, SWALLOW;
+ scale, 1;
+ repeat_events, 0;
+ description
+ {
+ state, "default" 0.0;
+ rel1
+ {
+ relative, 0.0 0.0;
+ to, "bg";
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ to, "bg";
+ }
+ }
+ }
+ }
+ }
+
+ group{
+ name: "layout_textblock";
+
+ script {
+ public timer_cb(val) {
+ run_program(PROGRAM:"do_scroll");
+ }
+
+ }
+ parts {
+ part
+ {
+ name, "bg";
+ type, SPACER;
+ scale, 1;
+ description
+ {
+ state, "default" 0.0;
+ min, 282 39;
+ rel1
+ {
+ relative, 0.0 0.0;
+ }
+ rel2
+ {
+ relative, 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ scale: 1;
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ min: 282 39;
+ color, 120 120 120 120;
+ }
+ }
+ }
+ programs {
+ program
+ {
+ name, "scroll";
+ signal, "scrolling";
+ source, "entry";
+ script {
+ timer(3/10, "timer_cb", 0);
+ }
+ }
+ program
+ {
+ name, "do_scroll";
+ action, SIGNAL_EMIT "do_scroll" "entry";
+ }
+ }
+ }
+
+ group{ name: "entry_focused_layout";
+ 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: 1;
+ color, 120 120 120 120;
+ }
+ }
+ part { name: "padding_top";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ min: 0 20;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_left";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ min: 73 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_right";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 1.0 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ min: 73 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "contents";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
+ rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top";}
+ min:0 42;
+ max: -1 42;
+ align: 0.5 0;
+ }
+ }
+ }
+ }
+
+
+
+#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";
+ }
+ }
+ }
+
+
+#define BUTTON_PADDING_SIZE_INC 20 0
+#define BUTTON_HEIGHT_INC 122
+#define BUTTON_ICON_SIZE_INC 60 60
+ group { name: "elm/button/base/default";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 BUTTON_HEIGHT_INC;
+ color_class: "W011";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ 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: BUTTON_PADDING_SIZE_INC;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: BUTTON_PADDING_SIZE_INC;
+ 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 0;
+ fixed: 1 1;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: BUTTON_ICON_SIZE_INC;
+ max: BUTTON_ICON_SIZE_INC;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ clip_to: "elm.swallow.content.clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 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";
+ }
+ fixed: 1 0;
+ }
+ description { state: "visible" 0.0;
+ fixed: 1 1;
+ min: BUTTON_ICON_SIZE_INC;
+ max: BUTTON_ICON_SIZE_INC;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
+ }
+ description { state: "icononly" 0.0;
+ min: BUTTON_ICON_SIZE_INC;
+ max: BUTTON_ICON_SIZE_INC;
+ }
+ }
+ 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 {
+ max: 1 0;
+ style: "button_general_text_normal";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_dim";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_press";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "F022L1i";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "F022L1iD";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ //run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "icononly"))
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ }
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled"))
+ set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ }
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "default", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ 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);
+ }
+ }
+ }
+}
+
+ group { name: "elm/button/base/ime_transparent";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 112;
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button";
+ alias: "elm/button/base/ime_button_stt";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO01153L1";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01153L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "elm.swallow.content.clip";
+ description { state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ rel1 { relative: 0.0 0.0; to: "bg";}
+ rel2 { relative: 1.0 1.0; to: "bg";}
+ fixed: 1 1;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "icononly" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.swallow.content.clip", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_emoticon";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO01154L1";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01154L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_keyboard";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO01155L1";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01155L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_template";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 76 76;
+ max: 76 76;
+ color_class: "AO01161";
+ visible: 1;
+ image.normal: "./w_mode_ic_bg.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01161P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01161D";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "AO01153L3";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01153L3P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO01153L3D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/ime_button_stt_confirm";
+ inherit: "elm/button/base/ime_button";
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color_class: "AO015L2";
+ visible: 0;
+ image.normal: "./b_stt_icon_btn.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "AO015L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/touch_area";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/emoticon";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ 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: 0 0;
+ fixed: 1 1;
+ //visible: 1;
+ //color: 255 0 0 100;
+ }
+ }
+ part { name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: 0 0;
+ fixed: 1 1;
+ //visible: 1;
+ //color: 0 255 0 100;
+ }
+ }
+ 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: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ text {
+ min: 1 0;
+ style: "button_general_text_normal";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_dim";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_press";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.text";
+ }
+ 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 NAVIFRAME_VIEW_TRANS_TIME 0.4 //time for push and pop
+#define NAVIFRAME_TITLE_TRANS_TIME 0.5 //Title transition time
+#define NAVIFRAME_TITLE_EXPAND_TRANS_TIME 0.5 //Title Expansion transition time
+#define NAVIFRAME_TEXT_FADE_OUT_CALC_TIME 0.2 //Text fade out calculation time
+#define ACTIONBAR_PADDING_SIZE_INC 64
+#define ACTIONBAR_HEIGHT_INC 115
+#define ACTIONBAR_TEXT_SIZE_INC 39
+#define ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC 51
+#define ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC 25
+#define ACTIONBAR_TEX_SLIDING_SPEED 0.006
+#define ACTIONBAR_TEX_SLIDING_START_WAITING_TIME 0.8
+#define HIDDEN_BUTTON_HEIGHT_INC 88
+
+#define STYLE_TAG_MATCH \
+ tag: "match" "+ color=#ffffff color_class=T0212";
+
+styles {
+ style { name: "action_bar_title";
+ base: "font=Tizen:style=Regular font_size="ACTIONBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T012 text_class=T012";
+ STYLE_TAG_MATCH
+ }
+}
+
+group { name: "elm_naviframe_item_basic_customized";
+ data.item: "tizen_zoom" 1;
+ script {
+ public g_mirrored = 0; //Mirrored on/off status
+ public g_text_fade_out_calc_timer = 0; //Text fade out calculation timer
+
+ public g_duration_1st;
+ public g_duration_2nd;
+ public g_timer_id;
+ public g_anim_id;
+ public g_sliding_start;
+
+ public title_text_fade_out() {
+ new x, y, w, h, w2;
+
+ if (get_int(g_text_fade_out_calc_timer)) {
+ cancel_timer(g_text_fade_out_calc_timer);
+ set_int(g_text_fade_out_calc_timer, 0);
+ }
+
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_bg", x, y, w2, h);
+ }
+
+ public init() {
+ slide_stop();
+ set_float(g_duration_1st, 0);
+ set_float(g_duration_2nd, 0);
+ set_int(g_timer_id, 0);
+ set_int(g_anim_id, 0);
+ set_int(g_sliding_start, 0);
+ }
+ public slide_first_anim(val, Float:pos) {
+ set_tween_state(PART:"elm.text.title", pos, "slide", 0.0, "slide_1", 0.0);
+ if (pos >= 1.0) {
+ cancel_anim(get_int(g_anim_id));
+ set_int(g_anim_id, anim(get_float(g_duration_2nd), "slide_second_anim", 1));
+ }
+ }
+ public slide_second_anim(val, Float:pos) {
+ set_tween_state(PART:"elm.text.title", pos, "slide_2", 0.0, "slide", 0.0);
+ if (pos >= 1.0)
+ slide_stop();
+ }
+ public slide_first() {
+ check_size();
+ if (get_int(g_sliding_start)) {
+ set_state(PART:"elm.text.title", "slide", 0.0);
+ get_duration();
+ set_int(g_anim_id, anim(get_float(g_duration_1st), "slide_first_anim", 1));
+ }
+ }
+ public slide_start() {
+ set_int(g_timer_id, timer(ACTIONBAR_TEX_SLIDING_START_WAITING_TIME, "slide_first", 1));
+ }
+ public slide_stop() {
+ cancel_anim(get_int(g_anim_id));
+ set_state(PART:"elm.text.title", "default", 0.0);
+ set_int(g_sliding_start, 0);
+ }
+ public check_size() {
+ new x, y, w, w1, h;
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_clip", x, y, w1, h);
+ if (w >= w1) {
+ set_int(g_sliding_start, 1);
+ }
+ else {
+ set_int(g_sliding_start, 0);
+ }
+ }
+ public get_duration() {
+ new x, y, w, w1, h;
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_clip", x, y, w1, h);
+ set_float(g_duration_1st, w * ACTIONBAR_TEX_SLIDING_SPEED);
+ set_float(g_duration_2nd, w1 * ACTIONBAR_TEX_SLIDING_SPEED);
+ }
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ part { name: "title_expand";
+ type: RECT;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 HIDDEN_BUTTON_HEIGHT_INC;
+ max: -1 HIDDEN_BUTTON_HEIGHT_INC;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ visible: 0;
+ color: 255 255 255 0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_clip";
+ type: RECT;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "title_bg";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 0 ACTIONBAR_HEIGHT_INC;
+ max: -1 ACTIONBAR_HEIGHT_INC;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ color: 255 255 255 0;
+ }
+ description { state: "hide_trans" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: -1 0;
+ }
+ }
+ part { name: "title_text_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 1.0 1.0; to_x: "left_padding"; to_y: "top_padding"; }
+ rel2 { relative: 0.0 0.0; to: "right_padding"; to_y: "bottom_padding"; }
+ fixed: 0 1;
+ }
+ }
+ part { name: "title_text_clip";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ rel1.to: "title_text_bg";
+ rel2.to: "title_text_bg";
+ }
+ }
+ part { name: "elm.text.title";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "title_text_clip";
+ description { state: "default" 0.0;
+ text {
+ min: 0 1;
+ max: 1 1;
+ ellipsis: -1.0;
+// fade_ellipsis: 1.0;
+ style: "action_bar_title";
+ }
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1.to: "title_text_bg"; rel2.to: "title_text_bg";
+ }
+ description { state: "slide" 0.0;
+ inherit: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "left_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "left_padding";
+ to_y: "bottom_padding";
+ }
+ text.min: 1 1;
+ }
+ description { state: "slide_1" 0.0;
+ inherit: "default" 0.0;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "left_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "left_padding";
+ to_y: "bottom_padding";
+ }
+ text.min: 1 1;
+ }
+ description { state: "slide_2" 0.0;
+ inherit: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "right_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "right_padding";
+ to_y: "bottom_padding";
+ }
+ text.min: 1 1;
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ACTIONBAR_PADDING_SIZE_INC 0;
+ max: ACTIONBAR_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ACTIONBAR_PADDING_SIZE_INC 0;
+ max: ACTIONBAR_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 { relative: 1.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "click_event_area";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ rel1 { to: "title_bg"; }
+ rel2 { to: "title_bg"; }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "access.title";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
+ max: -1 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
+ rel1 {relative: 0.0 0.0; to: "title_bg"; }
+ rel2 {relative: 1.0 0.0; to: "title_bg"; }
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ min: 0 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
+ max: -1 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
+ rel1 {relative: 0.0 1.0; to: "title_bg"; }
+ rel2 {relative: 1.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_expand"; }
+ rel2 { relative: 1.0 0.0; to_x: "base"; to_y: "button_padding"; }
+ }
+ }
+ part { name: "elm.swallow.circle_bg";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0; }
+ }
+ part { name: "elm.swallow.circle";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0; }
+ }
+ part { name: "button_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ min: 0 100;
+ max: -1 100;
+ rel1 {relative: 0.0 1.0; to: "base"; }
+ rel2 {relative: 1.0 1.0; to: "base"; }
+ }
+ }
+ }
+ programs {
+ program { name: "visible";
+ signal: "elm,state,visible";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ set_state(PART:"clipper", "default", 0.0);
+ init();
+ slide_start();
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "invisible";
+ signal: "elm,state,invisible";
+ source: "elm";
+ script {
+ set_state(PART:"clipper", "hide", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"title_clip", "hide", 0.0);
+ }
+ }
+ program { name: "title_hide_trans";
+ signal: "elm,action,title,hide";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 32, vl);
+ if (!strcmp(st, "default")) {
+ run_program(PROGRAM:"title_hide_trans2");
+ }
+ }
+ }
+ program { name: "title_hide_trans2";
+ action: STATE_SET "hide_trans" 0.0;
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_hide_trans3";
+ }
+ program { name: "title_hide_trans3";
+ script {
+ run_program(PROGRAM:"title_hide");
+ }
+ after: "title_trans_finished";
+ }
+ program { name: "title_trans_finished";
+ action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
+ }
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "default", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "title_show_trans";
+ signal: "elm,action,title,show";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 32, vl);
+ if (!strcmp(st, "hide")) {
+ set_state(PART:"title_bg", "hide_trans", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ run_program(PROGRAM:"title_show_trans2");
+ }
+ }
+ }
+ program { name: "title_show_trans2";
+ action: STATE_SET "default" 0.0;
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_trans_finished";
+ }
+ program { name: "title_label_show";
+ signal: "elm,state,title_label,show";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "title_label_hide";
+ signal: "elm,state,title_label,hide";
+ source: "elm";
+ }
+ program { name: "title_expand_show";
+ signal: "elm,state,title_expand,show";
+ source: "";
+ script {
+ set_state(PART:"title_expand", "show", 0.0);
+ }
+ }
+ program { name: "title_expand_hide";
+ signal: "elm,state,title_expand,hide";
+ source: "";
+ script {
+ set_state(PART:"title_expand", "default", 0.0);
+ }
+ }
+ program { name: "hidden_btn_show_trans";
+ signal: "elm,action,title_expand,show";
+ source: "";
+ action: STATE_SET "show" 0.0;
+ target: "title_expand";
+ transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
+ }
+ program { name: "title_expand_hide_trans";
+ signal: "elm,action,title_expand,hide";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "title_expand";
+ transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
+ }
+ program { name: "title_clicked";
+ signal: "mouse,clicked,1";
+ source: "click_event_area";
+ action: SIGNAL_EMIT "elm,action,title,clicked" "";
+ }
+ program {
+ name: "mirrored_on";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 1);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program {
+ name: "mirrored_off";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program {
+ name: "title_text_fade_out";
+ script {
+ if (get_int(g_text_fade_out_calc_timer)) {
+ cancel_timer(g_text_fade_out_calc_timer);
+ set_int(g_text_fade_out_calc_timer, 0);
+ }
+ set_int(g_text_fade_out_calc_timer, timer(NAVIFRAME_TEXT_FADE_OUT_CALC_TIME, "title_text_fade_out", 0));
+ }
+ }
+ }
+}
+
+//////////////////////////////////////////////////////////////////////////////////
+// Customizing panel for send button.
+//////////////////////////////////////////////////////////////////////////////////
+
+// ***************************** Panel*****************************************/
+#define PANEL_LEFT_PADDING_SIZE_INC 8
+#define PANEL_RIGHT_PADDING_SIZE_INC 6
+#define PANEL_LEFT_IMAGE_SIZE_INC 29 36
+#define PANEL_RIGHT_IMAGE_SIZE_INC 16 36
+#define PANEL_RIGHT_CUE_SIZE_INC 32 158
+#define PANEL_RIGHT_CUE_IMAGE_SIZE_INC 158 158
+#define PANEL_RIGHT_EVENT_AREA_SIZE_INC 50 140
+#define PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC 100 140
+#define PANEL_RIGHT_CUE_EFFECT_SIZE_INC 200 200
+#define PANEL_LAYOUT_SIZE_INC 360 360
+
+images {
+ image, "./b_more_option.png" COMP;
+ image, "./b_more_option_ef.png" COMP;
+ image, "./b_more_option_bg.png" COMP;
+ image, "./b_ic_press_full_circle_bg.png" COMP;
+}
+
+group { name: "elm/panel/right1/default";
+ script {
+ public mouse_down = 0;
+ public mouse_click = 0;
+ public multi_down = 0;
+ public click_cnt = 0;
+ public event_down = 0;
+ public cue_hide = 0;
+ public timer0(val) {
+ if(val == 1)
+ run_program(PROGRAM:"change_opacity");
+ else if(val == 2)
+ run_program(PROGRAM:"change_opacity2");
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_LAYOUT_SIZE_INC;
+ max: PANEL_LAYOUT_SIZE_INC;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "cue.padding";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ min: PANEL_RIGHT_PADDING_SIZE_INC 0;
+ max: PANEL_RIGHT_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ }
+ }
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_more_option.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 0.0 1.0;
+ align: 1.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ part { name: "cue_ef";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 1;
+ image.normal: "./b_more_option_ef.png";
+ color: 128 128 128 128;
+ rel1.to: "cue";
+ rel2.to: "cue";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "effect_bg";
+ scale: 1;
+ clip_to: "effect_bg_clip";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ color: 128 128 128 128;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "effect_bg2";
+ scale: 1;
+ clip_to: "effect_bg_clip2";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip2";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "cue.event";
+ type: RECT;
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "cue.release.event";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.offset: -1 -1;
+ rel2.to: "bg";
+ rel2.offset: 0 0;
+ visible: 0;
+ fixed: 1 1;
+ image.normal: "./b_more_option_bg.png";
+ color: 128 128 128 128;
+ map {
+ on: 1;
+ zoom {
+ x: 1.35;
+ y: 1.35;
+ }
+ color[0]: 0 0 0 0;
+ color[1]: 0 0 0 0;
+ color[2]: 0 0 0 0;
+ color[3]: 0 0 0 0;
+ }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ map {
+ zoom {
+ x: 1.0;
+ y: 1.0;
+ }
+ color[0]: 255 255 255 255;
+ color[1]: 255 255 255 255;
+ color[2]: 255 255 255 255;
+ color[3]: 255 255 255 255;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ visible: 0;
+ fixed: 1 1;
+ map {
+ on: 1;
+ zoom {
+ x: 1.35;
+ y: 1.35;
+ }
+ color[0]: 0 0 0 0;
+ color[1]: 0 0 0 0;
+ color[2]: 0 0 0 0;
+ color[3]: 0 0 0 0;
+ }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ map {
+ zoom {
+ x: 1.0;
+ y: 1.0;
+ }
+ color[0]: 255 255 255 255;
+ color[1]: 255 255 255 255;
+ color[2]: 255 255 255 255;
+ color[3]: 255 255 255 255;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "cue.event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ set_int(event_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"effect_bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ emit("elm,action,press", "");
+ run_program(PROGRAM:"haptic");
+ if(get_int(click_cnt) == 0) {
+ set_state(PART:"effect_bg", "pressed", 0.0);
+ set_state(PART:"effect_bg_clip", "pressed", 0.0);
+ run_program(PROGRAM:"start_persp");
+ timer(0.3, "timer0", 1);
+ }
+ else if(get_int(click_cnt) == 1) {
+ set_state(PART:"effect_bg2", "pressed", 0.0);
+ set_state(PART:"effect_bg_clip2", "pressed", 0.0);
+ run_program(PROGRAM:"start_persp2");
+ timer(0.3, "timer0", 2);
+ }
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "cue.event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"effect_bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ if(get_int(click_cnt) == 0)
+ set_int(click_cnt, 1);
+ else
+ set_int(click_cnt, 0);
+ }
+ }
+ }
+ program { name: "release.event_clicked";
+ signal: "mouse,clicked,*";
+ source: "cue.release.event";
+ script {
+ if (get_int(event_down) == 1) {
+ set_int(event_down, 0);
+ emit("cue,clicked", "elm");
+ run_program(PROGRAM:"panel_toggle");
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "panel_toggle";
+ action: SIGNAL_EMIT "elm,action,panel,toggle" "elm";
+ }
+ program {
+ name: "haptic";
+ action: RUN_PLUGIN "haptic_tap";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(cue_hide) == 0)
+ set_state(PART:"cue", "disabled", 0.0);
+ set_state(PART:"effect_bg", "disabled", 0.0);
+ set_state(PART:"cue.event", "hidden", 0.0);
+ set_state(PART:"cue.release.event", "hidden", 0.0);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(cue_hide) == 1) {
+ set_state(PART:"cue", "hidden", 0.0);
+ set_state(PART:"cue.event", "hidden", 0.0);
+ set_state(PART:"cue.release.event", "hidden", 0.0);
+ }
+ else {
+ set_state(PART:"cue", "default", 0.0);
+ set_state(PART:"cue.event", "default", 0.0);
+ set_state(PART:"cue.release.event", "default", 0.0);
+ }
+ set_state(PART:"effect_bg", "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: "start_persp";
+ action: STATE_SET "start_persp" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg";
+ }
+ program { name: "change_opacity";
+ action: STATE_SET "default" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg_clip";
+ }
+ program { name: "start_persp2";
+ action: STATE_SET "start_persp" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg2";
+ }
+ program { name: "change_opacity2";
+ action: STATE_SET "default" 0.0;
+ transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
+ target: "effect_bg_clip2";
+ }
+ program {
+ signal: "elm,action,show";
+ source: "elm";
+ action: STATE_SET "show" 0.0;
+ transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
+ target: "elm.swallow.content";
+ target: "base";
+ after: "active,finished";
+ }
+ program {
+ signal: "elm,action,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
+ target: "elm.swallow.content";
+ target: "base";
+ after: "inactive,finished";
+ }
+ program { name: "active,finished";
+ action: SIGNAL_EMIT "elm,state,active,finished" "elm";
+ }
+ program { name: "inactive,finished";
+ action: SIGNAL_EMIT "elm,state,inactive,finished" "elm";
+ }
+ program { name: "cue,hide";
+ signal: "cue,hide";
+ source: "elm";
+ script {
+ set_int(cue_hide, 1);
+ set_state(PART:"cue", "hidden", 0.0);
+ set_state(PART:"cue_ef", "hidden", 0.0);
+ set_state(PART:"cue.event", "hidden", 0.0);
+ set_state(PART:"cue.release.event", "hidden", 0.0);
+ }
+ }
+ program { name: "cue,show";
+ signal: "cue,show";
+ source: "elm";
+ script {
+ set_int(cue_hide, 0);
+ set_state(PART:"cue", "default", 0.0);
+ set_state(PART:"cue_ef", "default", 0.0);
+ set_state(PART:"cue.event", "default", 0.0);
+ set_state(PART:"cue.release.event", "default", 0.0);
+ }
+ }
+ }
+}
+
+group { name: "elm/panel/left1/default";
+ inherit: "elm/panel/right1/default";
+ parts {
+ part { name: "cue.padding";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ min: PANEL_RIGHT_PADDING_SIZE_INC 0;
+ max: PANEL_RIGHT_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ }
+ }
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_more_option.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ part { name: "cue_ef";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 1;
+ image.normal: "./b_more_option_ef.png";
+ color: 128 128 128 128;
+ rel1.to: "cue";
+ rel2.to: "cue";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "effect_bg";
+ scale: 1;
+ clip_to: "effect_bg_clip";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ color: 128 128 128 128;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "effect_bg2";
+ scale: 1;
+ clip_to: "effect_bg_clip2";
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ image.normal: "./b_ic_press_full_circle_bg.png";
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ map.on: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 0.8;
+ zoom.y: 0.8;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "start_persp" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ map {
+ zoom.x: 1.0;
+ zoom.y: 1.0;
+ }
+ }
+ }
+ part { name: "effect_bg_clip2";
+ scale: 1;
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.5 0.5;
+ fixed: 1 0;
+ color: 255 255 255 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "cue.event";
+ type: RECT;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "cue.release.event";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
+ fixed: 1 0;
+ //color_class: "transparent";
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+}
+
+group { name: "elm/panel/left_sending/default";
+ inherit: "elm/panel/left1/default";
+ parts {
+ part { name: "cue.padding";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.5;
+ min: 1 0;//PANEL_RIGHT_PADDING_SIZE_INC 0;
+ max: 1 -1;//PANEL_RIGHT_PADDING_SIZE_INC -1;
+ fixed: 1 0;
+ }
+ }
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_stt_send_icon.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";//"B052L1D";
+ }
+ }
+ part { name: "cue_ef";
+ description { state: "default" 0.0;
+ min: PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 1;
+ visible: 0;
+ image.normal: "./b_more_option_ef.png";
+ color: 128 128 128 128;
+ rel1.to: "cue";
+ rel2.to: "cue";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+}
+
+group { name: "elm/panel/left_confirm/default";
+ inherit: "elm/panel/left_sending/default";
+ parts {
+ part { name: "cue";
+ description { state: "default" 0.0;
+ min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
+ fixed: 1 0;
+ image.normal: "./b_stt_confirm_icon.png";
+ color: 128 128 128 128;
+ rel1.to: "cue.padding";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "cue.padding";
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.5;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "AO015L2D";//"B052L1D";
+ }
+ }
+ }
+}
+
+}
+++ /dev/null
-
-PKG_CHECK_MODULES(DLOG REQUIRED dlog)
-PKG_CHECK_MODULES(CAPI_APPFW_APPLICATION REQUIRED capi-appfw-application)
-PKG_CHECK_MODULES(CAPI_APPFW_APP-CONTROL REQUIRED capi-appfw-app-control)
-PKG_CHECK_MODULES(CAPI_APPFW_PREFERENCE REQUIRED capi-appfw-preference)
-PKG_CHECK_MODULES(CAPI_MEDIA_WAV_PLAYER REQUIRED capi-media-wav-player)
-PKG_CHECK_MODULES(CAPI_SYSTEM_DEVICE REQUIRED capi-system-device)
-PKG_CHECK_MODULES(EINA REQUIRED eina)
-PKG_CHECK_MODULES(ELEMENTARY REQUIRED elementary)
-PKG_CHECK_MODULES(EFL_EXTENSION REQUIRED efl-extension)
-PKG_CHECK_MODULES(FEEDBACK REQUIRED feedback)
-PKG_CHECK_MODULES(STT REQUIRED stt)
-PKG_CHECK_MODULES(VCONF REQUIRED vconf)
-PKG_CHECK_MODULES(DB_UTIL_PKG REQUIRED db-util)
-PKG_CHECK_MODULES(SQLITE3_PKG REQUIRED sqlite3)
-pkg_check_modules(CAPI_MEDIA_AUDIO_IO REQUIRED capi-media-audio-io)
-#PKG_CHECK_MODULES(GRAPHICS_EXTENSION REQUIRED graphics-extension)
-#PKG_CHECK_MODULES(WNOTI_SERVICE REQUIRED wnoti-service2)
-#PKG_CHECK_MODULES(SAP_CLIENT_STUB_API REQUIRED sap-client-stub-api)
-PKG_CHECK_MODULES(SMARTREPLY REQUIRED smartreply)
-PKG_CHECK_MODULES(CAPI_SYSTEM_INFO REQUIRED capi-system-info)
-
-SET(W_INPUT_SELECTOR inputdelegator)
-FILE(GLOB W_INPUT_SELECTOR_SRCS *.cpp)
-
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/inc
- ${DLOG_INCLUDE_DIRS}
- ${CAPI_APPFW_APPLICATION_INCLUDE_DIRS}
- ${CAPI_APPFW_APP-CONTROL_INCLUDE_DIRS}
- ${CAPI_APPFW_PREFERENCE_INCLUDE_DIRS}
- ${CAPI_MEDIA_WAV_PLAYER_INCLUDE_DIRS}
- ${CAPI_SYSTEM_DEVICE_INCLUDE_DIRS}
- ${EINA_INCLUDE_DIRS}
- ${ELEMENTARY_INCLUDE_DIRS}
- ${EFL_ASSIST_INCLUDE_DIRS}
- ${EFL_EXTENSION_INCLUDE_DIRS}
- ${GRAPHICS_EXTENSION_INCLUDE_DIRS}
- ${FEEDBACK_INCLUDE_DIRS}
- ${STT_INCLUDE_DIRS}
- ${VCONF_INCLUDE_DIRS}
- ${DB_UTIL_PKG_INCLUDE_DIRS}
- ${SQLITE3_PKG_INCLUDE_DIRS}
- ${DATA_CONTROL_INCLUDE_DIRS}
- ${WNOTI_SERVICE_INCLUDE_DIRS}
- ${SAP_CLIENT_STUB_API_INCLUDE_DIRS}
- ${CAPI_MEDIA_AUDIO_IO_INCLUDE_DIRS}
- ${SMARTREPLY_INCLUDE_DIRS}
- ${CAPI_SYSTEM_INFO_INCLUDE_DIRS})
-
-
-LINK_DIRECTORIES(${DLOG_LIBRARY_DIRS}
- ${CAPI_APPFW_APPLICATION_LIBRARY_DIRS}
- ${CAPI_APPFW_APP-CONTROL_LIBRARY_DIRS}
- ${CAPI_APPFW_PREFERENCE_LIBRARY_DIRS}
- ${CAPI_MEDIA_WAV_PLAYER_LIBRARY_DIRS}
- ${CAPI_SYSTEM_DEVICE_LIBRARY_DIRS}
- ${EINA_LIBRARY_DIRS}
- ${ELEMENTARY_LIBRARY_DIRS}
- ${EFL_ASSIST_LIBRARY_DIRS}
- ${EFL_EXTENSION_LIBRARY_DIRS}
- ${GRAPHICS_EXTENSION_LIBRARY_DIRS}
- ${FEEDBACK_LIBRARY_DIRS}
- ${STT_LIBRARY_DIRS}
- ${DB_UTIL_PKG_LIBRARY_DIRS}
- ${SQLITE3_PKG_LIBRARY_DIRS}
- ${VCONF_LIBRARY_DIRS}
- ${WNOTI_SERVICE_LIBRARY_DIRS}
- ${SAP_CLIENT_STUB_API_LIBRARY_DIRS}
- ${CAPI_MEDIA_AUDIO_IO_LIBRARY_DIRS}
- ${SMARTREPLY_LIBRARY_DIRS}
- ${CAPI_SYSTEM_INFO_LIBRARY_DIRS}
- )
-
-ADD_EXECUTABLE(${W_INPUT_SELECTOR}
- ${W_INPUT_SELECTOR_SRCS})
-
-TARGET_LINK_LIBRARIES(${W_INPUT_SELECTOR}
- ${DLOG_LIBRARIES}
- ${CAPI_APPFW_APPLICATION_LIBRARIES}
- ${CAPI_APPFW_APP-CONTROL_LIBRARIES}
- ${CAPI_APPFW_PREFERENCE_LIBRARIES}
- ${CAPI_MEDIA_WAV_PLAYER_LIBRARIES}
- ${CAPI_SYSTEM_DEVICE_LIBRARIES}
- ${EINA_LIBRARIES}
- ${ELEMENTARY_LIBRARIES}
- ${EFL_ASSIST_LIBRARIES}
- ${EFL_EXTENSION_LIBRARIES}
- ${FEEDBACK_LIBRARIES}
- ${STT_LIBRARIES}
- ${DB_UTIL_PKG_LIBRARIES}
- ${SQLITE3_PKG_LIBRARIES}
- ${VCONF_LIBRARIES}
- ${CAPI_MEDIA_AUDIO_IO_LIBRARIES}
- ${SMARTREPLY_LIBRARIES}
- ${CAPI_SYSTEM_INFO_LIBRARIES}
- )
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall -fPIE")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -fPIE")
-SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall -fPIE")
-SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -fPIE")
-SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g -fPIE")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
-
-INSTALL(TARGETS ${W_INPUT_SELECTOR} DESTINATION bin)
-
#include "Debug.h"
+#include <string>
#include <assert.h>
#include <iostream>
#include <stdexcept>
#include "w-input-stt-ise.h"
#include "w-input-stt-voice.h"
+using namespace std;
+
extern Evas_Object *g_setting_window;
MoreOption::MoreOption(Evas_Object *naviframe, void* voicedata)
PRINTFUNC(DLOG_ERROR, "It's failed to add image.");
}
- std::string res_path;
- char *tmp_path = app_get_resource_path();
- if (tmp_path) {
- res_path = tmp_path;
- free(tmp_path);
- }
+ string res_path = get_resource_path();
+ if (_WEARABLE)
+ res_path = res_path + "wearable/";
+ else
+ res_path = res_path + "mobile/";
std::string image_path = res_path + "images/prompt_ic_languages.png";
string stt_edj_path = get_resource_path();
string app_edj_path = get_resource_path();
- stt_edj_path = stt_edj_path + STT_EDJ_FILE;
- app_edj_path = app_edj_path + APP_EDJ_FILE;
+ if(_WEARABLE) {
+ stt_edj_path = stt_edj_path + STT_EDJ_FILE_WEARABLE;
+ app_edj_path = app_edj_path + APP_EDJ_FILE_WEARABLE;
+ } else if(_MOBILE) {
+ stt_edj_path = stt_edj_path + STT_EDJ_FILE_MOBILE;
+ app_edj_path = app_edj_path + APP_EDJ_FILE_MOBILE;
+ }
elm_theme_extension_add(NULL, stt_edj_path.c_str());
elm_theme_extension_add(NULL, app_edj_path.c_str());
Evas_Object* ic = elm_image_add(btn);
elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
string path = get_resource_path();
+ if (_WEARABLE)
+ path = path + "wearable/";
+ else
+ path = path + "mobile/";
+
if (!strcmp(part, "elm.icon.1")) {
string path_ic;
if(!strcmp(first_input_type, "input_voice")) {
Evas_Object* ic = elm_image_add(btn);
elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
string path = get_resource_path();
+ if (_WEARABLE)
+ path = path + "wearable/";
+ else
+ path = path + "mobile/";
+
if (!strcmp(part, "elm.icon.1")) {
elm_object_style_set(btn, "ime_button_stt");
string path_ic = path + "images/w_mode_stt_ic.png";
if (check_img) {
string path = get_resource_path();
+ if (_WEARABLE)
+ path = path + "wearable/";
+ else
+ path = path + "mobile/";
string path_ic = path + "/images/toast_check_icon.png";
Evas_Object * img = elm_image_add(popup);
elm_image_file_set(img, path_ic.c_str(), NULL);
ecore_event_handler_del(g_evt_key_down);
g_evt_key_down = NULL;
-
+#ifdef _WEARABLE
//Hide more option
if(g_more_option_layout){
if(eext_more_option_opened_get(g_more_option_layout) == EINA_TRUE) {
eext_more_option_opened_set(g_more_option_layout, EINA_FALSE);
}
}
+#endif
}
static char *__get_genlist_title_label(void *data, Evas_Object *obj, const char *part)
static Evas_Object *create_text_detiled_view(Evas_Object *parent)
{
string edj_path = get_resource_path();
- edj_path = edj_path + STT_EDJ_FILE;
-
+ if(_WEARABLE)
+ edj_path = edj_path + STT_EDJ_FILE_WEARABLE;
+ else
+ edj_path = edj_path + STT_EDJ_FILE_MOBILE;
//layout
Evas_Object *layout = elm_layout_add(parent);
elm_layout_file_set(layout, edj_path.c_str(), "entry_focused_layout");
Evas_Object *circle_scroller = NULL;
string edj_path = get_resource_path();
- edj_path = edj_path + STT_EDJ_FILE;
+ if(_WEARABLE)
+ edj_path = edj_path + STT_EDJ_FILE_WEARABLE;
+ else
+ edj_path = edj_path + STT_EDJ_FILE_MOBILE;
scroller = elm_scroller_add(voicedata->layout_main);
voicedata->layout_main = layout_main;
string edj_path = get_resource_path();
- edj_path = edj_path + STT_EDJ_FILE;
+ if(_WEARABLE)
+ edj_path = edj_path + STT_EDJ_FILE_WEARABLE;
+ else
+ edj_path = edj_path + STT_EDJ_FILE_MOBILE;
if (vconf_get_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &is_screen_reader_on) == -1) {
PRINTFUNC(DLOG_ERROR, "Cannot read value of screen reader from vconf");
//Hide more option and language settings by interrupt scenario.
close_setting_window_idler_cb(NULL);
Evas_Object *mo_layout = voicedata->mo->getMoreOptionLayout();
+#ifdef _WEARABLE
if(mo_layout){
if(eext_more_option_opened_get(mo_layout) == EINA_TRUE) {
eext_more_option_opened_set(mo_layout, EINA_FALSE);
}
}
+#endif
}
}