sdb push org.tizen.operationpickviewapp-1.0.0-arm.tpk /tmp
sdb push org.tizen.coretbtwidgetapp-1.0.0-arm.tpk /tmp
sdb push org.tizen.tbt-ime-1.0.0-arm.tpk /tmp
-sdb push org.tizen.tbtcoreapp-dali-1.0.0-arm.tpk /tmp
sdb push org.tizen.tbtcoreapp-1.0.0-arm.tpk /tmp
sdb push org.tizen.tbt_pushtestapp-1.0.0-arm.tpk /tmp
sdb push org.example.multiclass-1.0.0-arm.tpk /tmp
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbtwidgetapp-1.0.0-arm.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-1.0.0-arm.tpk" $EXECUTION_USER
sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-arm.tpk
-sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-arm.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.multiclass-1.0.0-arm.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.widget-1.0.0-arm.tpk" $EXECUTION_USER
sdb push org.tizen.operationpickviewapp-1.0.0-x86.tpk /tmp
sdb push org.tizen.coretbtwidgetapp-1.0.0-x86.tpk /tmp
sdb push org.tizen.tbt-ime-1.0.0-x86.tpk /tmp
-sdb push org.tizen.tbtcoreapp-dali-1.0.0-x86.tpk /tmp
sdb push org.tizen.tbtcoreapp-1.0.0-x86.tpk /tmp
sdb push org.tizen.tbt_pushtestapp-1.0.0-x86.tpk /tmp
sdb push org.example.widget-1.0.0-x86.tpk /tmp
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbtwidgetapp-1.0.0-x86.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-1.0.0-x86.tpk" $EXECUTION_USER
sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-x86.tpk
-sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-x86.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-x86.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.widget-1.0.0-x86.tpk" $EXECUTION_USER
sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.multiclass-1.0.0-x86.tpk" $EXECUTION_USER
copy_native_core()
{
- if [[ ( $2 =~ "dali-" ) || ( $2 =~ "-dali" ) ]]; then
- cp $2/*.cpp $1/src/.
- else
- cp $2/src/*.c $1/src/.
- fi
+ cp $2/src/*.c $1/src/.
}
deploySourceFile() {
# copying data and shared data
WORKDIR=`pwd`
cd $2
- find . -type f ! -iname "*.c" ! -iname "*.cpp" ! -iname "*.h" ! -iname "CMakeLists.txt" -exec cp -p --parents {} $1/shared/res/. ";"
+ find . -type f ! -iname "*.c" ! -iname "*.h" ! -iname "CMakeLists.txt" -exec cp -p --parents {} $1/shared/res/. ";"
cd $WORKDIR
if [ -d $2/res/$3 ];then
cd $1
- if [[ ( $2 =~ "dali-" ) || ( $2 =~ "-dali" ) ]]; then
- find ./src -iname *.cpp -print0 | tr '\0' ' ' > test.files
- find ./src -iname *.c -print0 | tr '\0' ' ' >> test.files
- else
- find ./src -iname *.c -print0 | tr '\0' ' ' > test.files
- fi
+ find ./src -iname *.c -print0 | tr '\0' ' ' > test.files
sed -i 's/\.\///g' test.files
elif [ "$ARCH_TYPE" == "x86_64" ]; then
ARCH="x86_64"
fi
-modulearray=(org.tizen.coretbt_dataprovider org.tizen.coretbt_uiapp org.tizen.operationpickviewapp org.tizen.coretbtwidgetapp org.tizen.tbtcoreapp org.tizen.tbt-ime org.tizen.tbtcoreapp-dali org.tizen.tbt_pushtestapp org.example.multiclass)
+modulearray=(org.tizen.coretbt_dataprovider org.tizen.coretbt_uiapp org.tizen.operationpickviewapp org.tizen.coretbtwidgetapp org.tizen.tbtcoreapp org.tizen.tbt-ime org.tizen.tbt_pushtestapp org.example.multiclass)
echo $TC_TYPE
echo $MOD_NAME
sdb root on
fi
fi
echo "$MOD_NAME"
- if [ "$MOD_NAME" = "tbtcoreapp-dali" ]; then
- sdb push $PWD/release/binary-$ARCH/org.example.widget-1.0.0-$ARCH_TYPE.tpk /tmp
- echo ""$reset
- echo $green"Installing Package $MOD_NAME"
- sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.widget-1.0.0-$ARCH_TYPE.tpk" $EXECUTION_USER
- echo ""$reset
- fi
echo ""$reset
echo $yellow"Pushing media files"
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
- <storageModule moduleId="org.eclipse.cdt.core.settings">
- <cconfiguration id="org.tizen.nativecore.config.sbi.gcc45.app.debug.466175231">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecore.config.sbi.gcc45.app.debug.466175231" moduleId="org.eclipse.cdt.core.settings" name="Debug">
- <externalSettings/>
- <extensions>
- <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.tizen.nativecore.NativeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactName="tbtcoreapp-dali" buildArtefactType="org.tizen.nativecore.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecore.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecore.config.sbi.gcc45.app.debug.466175231" name="Debug" parent="org.tizen.nativecore.config.sbi.gcc45.app.debug">
- <folderInfo id="org.tizen.nativecore.config.sbi.gcc45.app.debug.466175231." name="/" resourcePath="">
- <toolChain id="org.tizen.nativecore.toolchain.sbi.gcc45.app.debug.1705847341" name="Tizen Native Toolchain" superClass="org.tizen.nativecore.toolchain.sbi.gcc45.app.debug">
- <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.1056239826" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
- <builder autoBuildTarget="all" buildPath="${workspace_loc:/tbtcoreapp-dali}/Debug" enableAutoBuild="true" id="org.tizen.nativecore.target.sbi.gnu.builder.1782503442" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecore.target.sbi.gnu.builder"/>
- <tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.1986189972" name="Archiver" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver"/>
- <tool command="i586-linux-gnueabi-g++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler.1961059589" name="C++ Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler">
- <option id="gnu.cpp.compiler.option.optimization.level.967852503" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
- <option defaultValue="gnu.cpp.compiler.debugging.level.max" id="sbi.gnu.cpp.compiler.option.debugging.level.core.1762926746" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core" valueType="enumerated"/>
- <option defaultValue="false" id="sbi.gnu.cpp.compiler.option.misc.pic.core.1168575346" name="-fPIC option" superClass="sbi.gnu.cpp.compiler.option.misc.pic.core" valueType="boolean"/>
- <option id="sbi.gnu.cpp.compiler.option.1119225031" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-5.0-emulator.core.public.20170520_1_gcc62.i386.core.app"/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.371309271" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/asp/""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/attach-panel""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cbhm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/chromium-ewk""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/csr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali-toolkit""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/device""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-buffer-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-con-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-file-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-ipc-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ector-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eldbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/emile-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eom""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-client-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/feedback""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/geofence""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/harfbuzz""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/iotcon""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/maps""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/metadata-editor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minicontrol""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/nsd/""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/phonenumber-utils""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/SDL2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/service-adaptor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/tzsh""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui-viewmgr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vulkan""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_evas""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/yaca""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.core.1086009861" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="${TC_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.cpp.compiler.option.include.paths.440162371" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks.core.35502381" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1507899516" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
- </tool>
- <tool command="i586-linux-gnueabi-gcc" id="org.tizen.nativecore.tool.sbi.gnu.c.compiler.217700942" name="C Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.c.compiler">
- <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.1295795106" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
- <option defaultValue="gnu.c.debugging.level.max" id="sbi.gnu.c.compiler.option.debugging.level.core.1355347812" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core" valueType="enumerated"/>
- <option defaultValue="false" id="sbi.gnu.c.compiler.option.misc.pic.core.2031004492" name="-fPIC option" superClass="sbi.gnu.c.compiler.option.misc.pic.core" valueType="boolean"/>
- <option id="sbi.gnu.c.compiler.option.128526133" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-5.0-emulator.core.public.20170520_1_gcc62.i386.core.app"/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.451609871" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/asp/""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/attach-panel""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cbhm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/chromium-ewk""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/csr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali-toolkit""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/device""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-buffer-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-con-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-file-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-ipc-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ector-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eldbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/emile-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eom""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-client-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/feedback""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/geofence""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/harfbuzz""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/iotcon""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/maps""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/metadata-editor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minicontrol""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/nsd/""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/phonenumber-utils""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/SDL2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/service-adaptor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/tzsh""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui-viewmgr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vulkan""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_evas""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/yaca""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_cflags.core.1171879598" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="${TC_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.c.compiler.option.include.paths.1251343410" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks.core.1288483037" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1549053199" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
- </tool>
- <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1007840857" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
- <tool command="i586-linux-gnueabi-g++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.linker.1808263787" name="C++ Linker" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.linker">
- <option defaultValue="false" id="sbi.gnu.cpp.linker.option.shared_flag.core.650900358" name="Linker.Shared" superClass="sbi.gnu.cpp.linker.option.shared_flag.core" valueType="boolean"/>
- <option defaultValue="false" id="sbi.gnu.cpp.linker.option.noundefined.core.542612995" name="Report unresolved symbol references (-Wl,--no-undefined)" superClass="sbi.gnu.cpp.linker.option.noundefined.core" valueType="boolean"/>
- <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.core.2119809462" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="${TC_LINKER_MISC}"/>
- <listOptionValue builtIn="false" value="${RS_LINKER_MISC}"/>
- <listOptionValue builtIn="false" value="-pie -lpthread "/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- <listOptionValue builtIn="false" value="-Xlinker --version-script="${PROJ_PATH}/.exportMap""/>
- <listOptionValue builtIn="false" value="-L"${SBI_SYSROOT}/usr/lib""/>
- <listOptionValue builtIn="false" value="$(RS_LIBRARIES)"/>
- </option>
- <option id="gnu.cpp.link.option.paths.443360940" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.558789031" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool command="i586-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.139055902" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
- <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1630924688" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
- </tool>
- <tool id="org.tizen.nativecore.tool.fnmapgen.1840766683" name="C FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen"/>
- <tool id="org.tizen.nativecore.tool.fnmapgen.cpp.836472195" name="C++ FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen.cpp"/>
- <tool id="org.tizen.nativecore.tool.ast.333057573" name="C Static Analyzer" superClass="org.tizen.nativecore.tool.ast"/>
- <tool id="org.tizen.nativecore.tool.ast.cpp.480886812" name="C++ Static Analyzer" superClass="org.tizen.nativecore.tool.ast.cpp"/>
- <tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.mergelib.1023996110" name="Archive Generator" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver.mergelib"/>
- <tool id="org.tizen.nativecore.tool.sbi.po.compiler.2121766448" name="PO Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.po.compiler"/>
- <tool id="org.tizen.nativecore.tool.sbi.edc.compiler.415255637" name="EDC Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.edc.compiler"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="inc"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="shared"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
- <cconfiguration id="org.tizen.nativecore.config.sbi.gcc45.app.release.738115821">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecore.config.sbi.gcc45.app.release.738115821" moduleId="org.eclipse.cdt.core.settings" name="Release">
- <externalSettings/>
- <extensions>
- <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.tizen.nativecore.NativeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactName="org.tizen.tbtcoreapp-dali" buildArtefactType="org.tizen.nativecore.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecore.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecore.config.sbi.gcc45.app.release.738115821" name="Release" parent="org.tizen.nativecore.config.sbi.gcc45.app.release">
- <folderInfo id="org.tizen.nativecore.config.sbi.gcc45.app.release.738115821." name="/" resourcePath="">
- <toolChain id="org.tizen.nativecore.toolchain.sbi.gcc45.app.release.1902710295" name="Tizen Native Toolchain" superClass="org.tizen.nativecore.toolchain.sbi.gcc45.app.release">
- <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.634076986" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
- <builder buildPath="${workspace_loc:/tbtcoreapp-dali}/Release" id="org.tizen.nativecore.target.sbi.gnu.builder.178180924" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecore.target.sbi.gnu.builder"/>
- <tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.823957443" name="Archiver" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver"/>
- <tool command="clang++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler.1573009239" name="C++ Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler">
- <option id="gnu.cpp.compiler.option.optimization.level.1130564057" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
- <option defaultValue="gnu.cpp.compiler.debugging.level.default" id="sbi.gnu.cpp.compiler.option.debugging.level.core.1935109407" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core" valueType="enumerated"/>
- <option defaultValue="false" id="sbi.gnu.cpp.compiler.option.misc.pic.core.499937330" name="-fPIC option" superClass="sbi.gnu.cpp.compiler.option.misc.pic.core" valueType="boolean"/>
- <option id="sbi.gnu.cpp.compiler.option.1798476160" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-3.0-emulator.core_llvm37.i386.core.app"/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.1966404811" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/EGL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES3""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/KHR""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/SDL2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/attach-panel""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cbhm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/chromium-ewk""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/csr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali-toolkit""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/device""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-buffer-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-con-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-file-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-ipc-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ector-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eldbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/emile-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eom""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-client-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/feedback""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/geofence""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/harfbuzz""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/iotcon""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/maps""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/metadata-editor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minicontrol""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/nsd/""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/phonenumber-utils""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/service-adaptor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/tzsh""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui-viewmgr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vulkan""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_evas""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/yaca""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.core.70344965" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="${TC_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.cpp.compiler.option.include.paths.1196792875" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks.core.769745462" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1819035212" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
- </tool>
- <tool command="clang" id="org.tizen.nativecore.tool.sbi.gnu.c.compiler.480289151" name="C Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.c.compiler">
- <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.1058494799" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
- <option defaultValue="gnu.c.debugging.level.default" id="sbi.gnu.c.compiler.option.debugging.level.core.1007334482" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core" valueType="enumerated"/>
- <option defaultValue="false" id="sbi.gnu.c.compiler.option.misc.pic.core.810356393" name="-fPIC option" superClass="sbi.gnu.c.compiler.option.misc.pic.core" valueType="boolean"/>
- <option id="sbi.gnu.c.compiler.option.2086732229" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-3.0-emulator.core_llvm37.i386.core.app"/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.627649823" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/EGL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES3""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/KHR""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/SDL2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/attach-panel""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cbhm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/chromium-ewk""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/csr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dali-toolkit""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/device""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-buffer-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-con-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-file-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-imf-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-input-evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-ipc-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ector-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eldbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/emile-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eom""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-client-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/feedback""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/geofence""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/harfbuzz""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/iotcon""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/maps""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/metadata-editor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minicontrol""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/nsd/""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/phonenumber-utils""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/service-adaptor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/tzsh""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui-viewmgr""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vulkan""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_dali""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/widget_viewer_evas""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/yaca""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_cflags.core.272693735" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="${TC_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.c.compiler.option.include.paths.1975734298" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks.core.1288244684" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1770808142" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
- </tool>
- <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.802885151" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
- <tool command="clang++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.linker.2126480004" name="C++ Linker" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.linker">
- <option defaultValue="false" id="sbi.gnu.cpp.linker.option.shared_flag.core.2136861584" name="Linker.Shared" superClass="sbi.gnu.cpp.linker.option.shared_flag.core" valueType="boolean"/>
- <option defaultValue="false" id="sbi.gnu.cpp.linker.option.noundefined.core.1812800252" name="Report unresolved symbol references (-Wl,--no-undefined)" superClass="sbi.gnu.cpp.linker.option.noundefined.core" valueType="boolean"/>
- <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.core.1430362804" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="${TC_LINKER_MISC}"/>
- <listOptionValue builtIn="false" value="${RS_LINKER_MISC}"/>
- <listOptionValue builtIn="false" value="-pie -lpthread "/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- <listOptionValue builtIn="false" value="-Xlinker --version-script="${PROJ_PATH}/.exportMap""/>
- <listOptionValue builtIn="false" value="-L"${SBI_SYSROOT}/usr/lib""/>
- <listOptionValue builtIn="false" value="$(RS_LIBRARIES)"/>
- </option>
- <option id="gnu.cpp.link.option.paths.1776324396" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.366525311" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.195048157" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
- <inputType id="cdt.managedbuild.tool.gnu.assembler.input.272193741" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
- </tool>
- <tool id="org.tizen.nativecore.tool.fnmapgen.668183279" name="C FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen"/>
- <tool id="org.tizen.nativecore.tool.fnmapgen.cpp.1611181380" name="C++ FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen.cpp"/>
- <tool id="org.tizen.nativecore.tool.ast.1519210507" name="C Static Analyzer" superClass="org.tizen.nativecore.tool.ast"/>
- <tool id="org.tizen.nativecore.tool.ast.cpp.1790822261" name="C++ Static Analyzer" superClass="org.tizen.nativecore.tool.ast.cpp"/>
- <tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.mergelib.68401441" name="Archive Generator" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver.mergelib"/>
- <tool id="org.tizen.nativecore.tool.sbi.po.compiler.2110483621" name="PO Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.po.compiler"/>
- <tool id="org.tizen.nativecore.tool.sbi.edc.compiler.1476042714" name="EDC Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.edc.compiler"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="inc"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="shared"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <project id="tbtcoreapp-dali.org.tizen.nativecore.target.sbi.gcc45.app.865154839" name="Tizen Native Application" projectType="org.tizen.nativecore.target.sbi.gcc45.app"/>
- </storageModule>
- <storageModule moduleId="scannerConfiguration">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- <scannerConfigBuildInfo instanceId="org.tizen.nativecore.config.sbi.gcc45.app.debug.466175231">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- </scannerConfigBuildInfo>
- <scannerConfigBuildInfo instanceId="org.tizen.nativecore.config.sbi.gcc45.app.release.738115821">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- </scannerConfigBuildInfo>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
- <storageModule moduleId="refreshScope" versionNumber="2">
- <configuration configurationName="Debug">
- <resource resourceType="PROJECT" workspacePath="/tbtcoreapp-dali"/>
- </configuration>
- <configuration configurationName="Release">
- <resource resourceType="PROJECT" workspacePath="/tbtcoreapp-dali"/>
- </configuration>
- </storageModule>
-</cproject>
+++ /dev/null
-{
- global: main;
- local: *;
-};
+++ /dev/null
-/Debug
-/SA_Report
+++ /dev/null
-TPK
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>tbtcoreapp-dali</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
- <triggers>full,incremental,</triggers>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.cdt.core.cnature</nature>
- <nature>org.eclipse.cdt.core.ccnature</nature>
- <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
- <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-#delete
-#add
-#modify
-author-signature.xml
-signature1.xml
-bin/tbtcoreapp-dali
-res/dali-toolkit-test-theme_720x1280.json
-res/images/Default_home.png
-res/images/customTextFieldBgImage.jpg
-res/images/gallery-medium-1.jpg
-res/images/gallery-medium-10.jpg
-res/images/gallery-medium-11.jpg
-res/images/gallery-medium-12.jpg
-res/images/gallery-medium-13.jpg
-res/images/gallery-medium-14.jpg
-res/images/gallery-medium-2.jpg
-res/images/gallery-medium-3.jpg
-res/images/gallery-medium-4.jpg
-res/images/gallery-medium-5.jpg
-res/images/gallery-medium-6.jpg
-res/images/gallery-medium-7.jpg
-res/images/gallery-medium-8.jpg
-res/images/gallery-medium-9.jpg
-res/images/innerButtonSelected.png
-res/images/innerButtonUnselected.png
-res/images/text-field-bg.9.png
-res/images/top-bar.png
-shared/res/tbtcoreapp-dali.png
-tizen-manifest.xml
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<tproject xmlns="http://www.tizen.org/tproject">
- <platforms>
- <platform>
- <name>mobile-5.0</name>
- </platform>
- </platforms>
- <package>
- <blacklist/>
- <resFallback autoGen="true"/>
- </package>
-</tproject>
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- *******************************************************************************/
-
-/**
- * @file tbt-info.h
- * @brief This file provides the basic structure of all modules.
- * @since_tizen 2.3
- * @author Amlan Chowdhury (amlan.c@samsung.com)
- * @date October, 2014
- * @bug
- * @credit
- */
-#ifndef __TBT_INFO_H__
-#define __TBT_INFO_H__
-
-#include <sensor.h>
-#include <app.h>
-
-typedef struct _tbt_info tbt_info;
-
-typedef enum{
- TBT_INFO_RESULT_NOT_TESTED=0,
- TBT_INFO_RESULT_PASS=1,
- TBT_INFO_RESULT_FAIL=2,
- TBT_INFO_RESULT_NOT_SUPPORTED=3
-} tbt_info_result;
-
-/**
- * @brief main Item for tbt list
- * @since_tizen 2.3
- */
-typedef enum {
- TBT_APP_CAMERA_CAPTURE = 0,
- TBT_APP_CAMERA_RECORD,
- TBT_APP_CAMERA_FACE_DETECT,
- TBT_APP_CAMERA_HDR_CAPTURE,
-
- TBT_APP_SOUND_AUDIO,
- TBT_APP_SOUND_VOLUME,
-
- TBT_APP_GPS_GPS,
-
- TBT_APP_BT_CLIENT_PAIRED,
- TBT_APP_BT_SERVER_PAIRED,
- TBT_APP_BT_AUDIO_CONNECT,
- TBT_APP_BT_AUDIO_CONNECT_HANDSFREE,
- TBT_APP_BT_AUTHORIZATION,
- TBT_APP_BT_OPP_CLIENT,
- TBT_APP_BT_OPP_SERVER,
- TBT_APP_BT_PROFILES,
- TBT_APP_BT_SDP,
- TBT_APP_BT_SERVER_SOCKET,
- TBT_APP_BT_CLIENT_SOCKET,
- TBT_APP_BT_HID_CONNECT,
- TBT_APP_BT_OOB_PERIPHERAL,
- TBT_APP_BT_OOB_DEVICE,
- TBT_APP_BT_AVRCP,
- TBT_APP_BT_AG,
- TBT_APP_BT_HDP,
-
- TBT_APP_BLE_GATT_CLIENT,
-
- TBT_APP_BT_CALLBACK_CREATE_BOND_TEST,
- TBT_APP_BT_CALLBACK_DESTROY_BOND_TEST,
- TBT_APP_BT_CALLBACK_DISCOVER_DEVICES_TEST,
- TBT_APP_BT_CALLBACK_GET_DEVICE_TEST,
- TBT_APP_BT_CALLBACK_SET_NAME_TEST,
- TBT_APP_BT_CALLBACK_ADD_ADVERTISING_SERVICE_UUID_TEST,
-
-
- TBT_APP_WIFIDIRECT,
- TBT_APP_WIFIDIRECT_CONNECTION_CANCEL,
-
- TBT_APP_WIFI_WIFI,
-
- TBT_APP_NFC_P2P,
- TBT_APP_NFC_TAG,
-
- TBT_APP_DISPLAY_DISPLAY,
-
- TBT_APP_GRAPHICS_GRAPHICS,
-
- TBT_APP_IDEV_NUM_KEYPAD,
- TBT_APP_IDEV_PH_NUM_KEYPAD,
- TBT_APP_IDEV_IP_KEYPAD,
-
- TBT_APP_LOCAL_MPEG4,
- TBT_APP_LOCAL_H263,
- TBT_APP_LOCAL_H264,
-
- TBT_APP_IMAGEVIEW_JPEG,
- TBT_APP_IMAGEVIEW_BMP,
- TBT_APP_IMAGEVIEW_GIF,
- TBT_APP_IMAGEVIEW_PNG,
-
- TBT_APP_DC_INSERT,
- TBT_APP_DC_DELETE,
- TBT_APP_DC_UPDATE,
- TBT_APP_DC_SELECT,
- TBT_APP_DC_CURSOR,
- TBT_APP_DC_MAP,
-
- TBT_APP_PICK_VIEW_APP,
- TBT_APP_PICK_PICK_APP,
-
- TBT_APP_PICK_VIEW_BR0WSER_APP,
- TBT_APP_PICK_VIEW_IMAGE_APP,
- TBT_APP_PICK_VIEW_SOUND_APP,
- TBT_APP_PICK_VIEW_VIDEO_APP,
- TBT_APP_PICK_PICK_ALL_APP,
- TBT_APP_PICK_PICK_IMAGE_APP,
- TBT_APP_PICK_PICK_VIDEO_APP,
- TBT_APP_PICK_PICK_AUDIO_APP,
-
- TBT_APP_SENSOR_ACCELEROMETER,
- TBT_APP_SENSOR_GYROSCOPE,
- TBT_APP_SENSOR_PROXIMITY,
- TBT_APP_SENSOR_LIGHT,
- TBT_APP_SENSOR_ULTRA_VIOLET,
- TBT_APP_SENSOR_MAGNATOMETER,
- TBT_APP_SENSOR_PRESSURE,
-
-
- TBT_APP_ANIMATION_FADE,
- TBT_APP_ANIMATION_POINT,
- TBT_APP_ANIMATION_DIMENSION,
- TBT_APP_ANIMATION_RECT,
- TBT_APP_ANIMATION_ROTATE,
-
- TBT_APP_UI_RESIZE,
- TBT_APP_UI_SHAPE,
- TBT_APP_UI_ROTATE,
- TBT_APP_UI_FONT,
- TBT_APP_UI_LINE,
- TBT_APP_UI_ALPHA,
-
- TBT_APP_SL_SCREENLOCK,
-
- TBT_APP_TOUCH_TOUCH,
-
- TBT_APP_MOCK,
- TBT_APP_EVENT_VIEW,
-
- TBT_APP_FEATURE_SUMMARY,
-
- TBT_APP_RUNTIME_INFO,
-
- TBT_APP_SCREEN_MIRROR_SINK,
-
- TBT_APP_ATTACH_PANEL,
-
- TBT_APP_OAUTH2,
-
- TBT_APP_PUSH_SERVICE,
-
- TBT_APP_MAX,
-
- TBT_APP_EFL_CALLBACK,
-
- TBT_APP_SHORTCUT,
-
- TBT_APP_IME_ALPHABATIC,
-
- TBT_APP_IME_NUMERIC,
-
- TBT_APP_IME_EVENT,
-
- TBT_APP_IME_CONTEXT_GET,
-
- TBT_APP_WIDGET,
-
- TBT_APP_MTP,
-
- TBT_APP_NSD_DNS_SD_LOCAL,
-
- TBT_APP_NSD_DNS_SD_REMOTE,
-
- TBT_APP_NSD_SSDP_LOCAL,
-
- TBT_APP_NSD_SSDP_REMOTE,
-
- TBT_APP_STORAGE,
-
- TBT_APP_RADIO,
-
- TBT_APP_SOUND_MANAGER,
-
- TBT_APP_SOUND_MANAGER_DEVICE,
-
- TBT_APP_MEDIA_KEY,
-
- TBT_APP_PACKAGE_MANAGER,
-
- TBT_APP_NOTIFICATION_TEXT,
-
- TBT_APP_NOTIFICATION_TIME,
-
- TBT_APP_NOTIFICATION_TITLE,
-
- TBT_APP_NOTIFICATION_IMAGE,
-
- TBT_APP_CONNECTION,
-
- TBT_APP_SYSTEM_SETTINGS,
-
- TBT_APP_CONTACTS,
-
- TBT_APP_DALI_DALI
-
-} tbt_app_type_e;
-
-
-/**
- * @brief Measurement units for sensors
- * @since_tizen 2.3
- */
-typedef enum {
- SENSOR_UNIT_METRE_PER_SECOND_SQUARED,
- SENSOR_UNIT_MICRO_TESLA,
- SENSOR_UNIT_DEGREE,
- SENSOR_UNIT_LUX,
- SENSOR_UNIT_CENTIMETER,
- SENSOR_UNIT_DEGREE_PER_SECOND,
- SENSOR_UNIT_HECTOPASCAL,
- SENSOR_UNIT_MAX
-} sensor_unit_e;
-
-
-
-/**
- * @brief Extra value getter function
- * @since_tizen 2.3
- * @param[in] info Sensor info
- * @param[in] values Values received from the sensor
- * @return Calculated value
- */
-typedef float (*sensor_extra_value_get_cb)(const tbt_info *info, const float *values);
-
-/**
- * @brief Extra value associated with the sensor
- * @since_tizen 2.3
- * @details Allows to add value which is not received from the sensor,
- * but instead calculated based on sensor values
- */
-typedef struct _sensor_extra_value
-{
- const char *name; /**< Value name */
- const char *format; /**< Value printf() format for text representation */
- sensor_extra_value_get_cb value_get; /**< Value getter function */
-} sensor_extra_value;
-
-/**
- * @brief Module metadata
- * @since_tizen 2.3
- */
-struct _tbt_info
-{
-
- const char *name; //tbt display name
- const char *parent; //tbt display name
- tbt_app_type_e apptype; //Values measurement units
- tbt_info_result result; //app status: pass or fail
- const char *info; //Values measurement units string representation
- const char *icon_name; //Values measurement units string representation
- const char *file_name; //Values measurement units string representation
- const char *extra_file_name;
- const char *layout_file; //Values measurement units string representation
- const char *layout_group; //Values measurement units string representation
- sensor_h sensor; /**< Sensor handle */
- sensor_type_e sensortype; /**< Sensor type, @see sensor_type_e */
- sensor_unit_e units; /**< Values measurement units */
- int sensor_response_interval;
- const char **value_names; /**< Value names array of value_count size */
- int value_count; /**< Values count */
- float value_min; /**< Minimal value */
- float value_max; /**< Maximal value */
- float value_range; /**< Values range */
- const char *units_str; /**< Values measurement units string representation */
- const char *value_format; /**< Values printf() format for text representation */
- int axes[3]; /**< Sensor axes directions relative to screen coordinate system */
- sensor_extra_value *extra_values; /**< Sensor variable to retrieve the sensor extra values */
- int extra_value_count; /**< The count of the extra values */
- bool is_push_from_outside; /**< Checks if push data is received or not */
- char* push_operation_id; /**< Operation id of push data */
- app_control_h push_app_control; /**< App conrol handler*/
- int required_features_count; /**< Number of features required */
- int features_required[16]; /**< Index/indexs of features required */
-
-};
-
-/**
- * @brief Feature List
- * @since_tizen 2.3
- */
-static char *feature_list[1024] =
-{
- "tizen.org/feature/camera",
- "tizen.org/feature/camera.back",
- "tizen.org/feature/camera.back.flash",
- "tizen.org/feature/camera.front",
- "tizen.org/feature/camera.front.flash",
- "tizen.org/feature/database.encryption",
- "tizen.org/feature/fmradio",
- "tizen.org/feature/graphics.acceleration",
- "tizen.org/feature/input.keyboard",
- "tizen.org/feature/input.keyboard.layout",
- "tizen.org/feature/location",
- "tizen.org/feature/location.gps",
- "tizen.org/feature/location.wps",
- "tizen.org/feature/microphone",
- "tizen.org/feature/multi_point_touch.point_count",
- "tizen.org/feature/multi_point_touch.pinch_zoom",
- "tizen.org/feature/network.bluetooth",
- "tizen.org/feature/network.nfc",
- "tizen.org/feature/network.nfc.reserved_push",
- "tizen.org/feature/network.push",
- "tizen.org/feature/network.secure_element",
- "tizen.org/feature/network.telephony",
- "tizen.org/feature/network.telephony.mms",
- "tizen.org/feature/network.telephony.sms.cbs",
- "tizen.org/feature/network.wifi",
- "tizen.org/feature/network.wifi.direct",
- "tizen.org/feature/opengles.texture_format.3dc",
- "tizen.org/feature/opengles.texture_format.atc",
- "tizen.org/feature/opengles.texture_format.etc",
- "tizen.org/feature/opengles.texture_format.ptc",
- "tizen.org/feature/opengles.texture_format.pvrtc",
- "tizen.org/feature/opengles.texture_format.utc",
- "tizen.org/feature/opengles.version.1_1",
- "tizen.org/feature/opengles.version.2_0",
- "tizen.org/feature/platform.core.cpu.arch.armv7",
- "tizen.org/feature/platform.core.fpu.arch.sse2",
- "tizen.org/feature/platform.core.fpu.arch.sse3",
- "tizen.org/feature/platform.core.fpu.arch.ssse3",
- "tizen.org/feature/platform.core.fpu.arch.vfpv3",
- "tizen.org/feature/platform.core.cpu.arch.x86",
- "tizen.org/feature/platform.native.osp_compatible",
- "tizen.org/feature/screen.auto_rotation",
- "tizen.org/feature/sensor.accelerometer",
- "tizen.org/feature/sensor.accelerometer.wakeup",
- "tizen.org/feature/sensor.gyroscope",
- "tizen.org/feature/sensor.gyroscope.wakeup",
- "tizen.org/feature/sensor.magnetometer",
- "tizen.org/feature/sensor.magnetometer.wakeup",
- "tizen.org/feature/sensor.proximity",
- "tizen.org/feature/sensor.proximity.wakeup",
- "tizen.org/feature/sensor.tiltmeter",
- "tizen.org/feature/sensor.tiltmeter.wakeup",
- "tizen.org/feature/shell.appwidget",
- "tizen.org/feature/network.bluetooth",
- "tizen.org/feature/sip.voip",
- "tizen.org/feature/speech.recognition",
- "tizen.org/feature/speech.synthesis",
- "tizen.org/feature/usb.accessory",
- "tizen.org/feature/usb.host",
- "tizen.org/feature/vision.face_recognition",
- "tizen.org/feature/vision.image_recognition",
- "tizen.org/feature/vision.qrcode_generation",
- "tizen.org/feature/vision.qrcode_recognition",
- "tizen.org/feature/bluetooth",
- "tizen.org/feature/bluetooth.le",
- "tizen.org/feature/network.bluetooth.le",
- "tizen.org/feature/bluetooth.audio.media",
- "tizen.org/feature/network.bluetooth.audio.media",
- "tizen.org/feature/bluetooth.audio.call",
- "tizen.org/feature/network.bluetooth.audio.call",
- "tizen.org/feature/bluetooth.hdp",
- "tizen.org/feature/network.bluetooth.hdp"
- "tizen.org/feature/bluetooth.hid",
- "tizen.org/feature/network.bluetooth.hid",
- "tizen.org/feature/bluetooth.opp",
- "tizen.org/feature/network.bluetooth.opp",
- "tizen.org/feature/bluetooth.spp",
- "tizen.org/feature/network.nfc.p2p",
- "tizen.org/feature/network.nfc.tag",
- "tizen.org/feature/network.wifi.direct.display",
- "tizen.org/feature/network.internet",
- "tizen.org/feature/notification"
-};
-
-#endif /* __TBT_INFO_H__ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- *******************************************************************************/
-
-/**
- * @file tbt-list.h
- * @brief This file Handles main List of Application.
- * @since_tizen 2.3
- * @author Amlan Chowdhury (amlan.c@samsung.com)
- * @date October, 2014
- * @bug
- * @credit
- */
-
-#ifndef __TBT_LIST_H__
-#define __TBT_LIST_H__
-
-#include "tbt-info.h"
-
-/**
- * @brief Initialize sensor info list
- * @since_tizen 2.3
- */
-void tbt_list_init();
-
-/**
- * Save xml report file for future use
- * @since_tizen 2.3
- */
-void tbt_save_report();
-
-/**
- * @brief Get list of tbt list supported by application
- * @since_tizen 2.3
- * @param[out] count tbts list count
- * @return Sensor list
- */
-const tbt_info *tbt_list_get(unsigned *count);
-
-/**
- * Returns total count of tbt_info;
- * @since_tizen 2.3
- */
-const int tbt_info_count();
-
-/**
- * @brief Get list of tbt list supported by application
- * @since_tizen 2.3
- * @param[out] count tbts list count
- * @return Sensor list
- */
-tbt_info *tbt_list_item_get(int index);
-
-/**
- * @brief Get list item index of tbt list supported by application
- * @since_tizen 2.3
- * @param[out] count tbts list count
- * @return Sensor list
- */
-const int tbt_list_item_index_get_by_app_type(int app_type);
-/**
- * @brief Get list item count tbt list supported by application
- * @since_tizen 2.3
- * @param[out] count tbts list count
- * @return Sensor list
- */
-const int tbt_list_item_count(int index);
-
-#endif /* __TBT_LIST_H__ */
+++ /dev/null
-#ifndef _EXCLUDE_LIST_H
-#define _EXCLUDE_LIST_H
-
-//#define TIZEN_2_3_1
-//#define TIZEN_2_4
-#define TIZEN_3_0
-
-#define DEVICE_TYPE_MOBILE
-//#define DEVICE_TYPE_WEARABLE
-
-#define TBT_MODULE_DALI
-#define TBT_MODULE_APP_DALI_TTS
-
-#endif
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- *******************************************************************************/
-
-/**
- * @file config.h
- * @brief This file Configures the Application.
- * @since_tizen 2.3
- * @author Kallol Kumar Pal(kallol.kumar@samsung.com) and Amlan Chowdhury(amlan.c@samsung.com)
- * @date October, 2014
- * @bug
- * @credit
- */
-#ifndef CONFIG_H_
-#define CONFIG_H_
-
-#include "utils/app_module_config.h"
-#include <app.h>
-#include <limits.h>
-#include <string.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include "utils/logger.h"
-#include <system_info.h>
-#include <storage.h>
-
-#define MAX_LENGTH_CONFIG 1024
-
-#define EDJPATH "edje"
-#define AUDIOPATH "sounds"
-#define VIDEOPATH "video"
-#define IMAGEPATH "images"
-
-extern bool __is_efl_test_running;
-
-//Push:
-#define PUSH_APP_ID "da58f09b7dcd898f"
-#define PUSH_APP_SECRET "E55A746761233098DDD1114F652AFE51"
-
-
-// *_X_POS, *_Y_POS, *_WIDTH, *_HEIGHT are virtual (relative) coords of grid widget
-#define MAX_WIDTH 100
-#define MAX_HEIGHT 100
-
-#define IMAGE_X_POS 0
-#define IMAGE_Y_POS 0
-#define IMAGE_WIDTH MAX_WIDTH
-#define IMAGE_HEIGHT 40
-
-#define LABEL_X_POS 0
-#define LABEL_Y_POS IMAGE_HEIGHT
-#define LABEL_WIDTH MAX_WIDTH
-#define LABEL_HEIGHT MAX_WIDTH-IMAGE_HEIGHT
-
-#define LABEL_MAX_LEN 500
-
-#define IMAGES_REL_FOLDER "images"
-#define IMAGE_REL_PATH_TEMPLATE "%s/%s"
-
-#define TOOLBAR_BUTTON_DATA_KEY "button_id"
-
-#define LABEL_REL_PATH "res/IMAGES_REL_FOLDER/"
-#define LABEL_TEMPLATE "%s%s<br/>Dimension = %u x %u<br/>Result:E_SUCCESS"
-
-#define TABLE_PADDING_VERTICAL 20
-#define TABLE_PADDING_HORIZONTAL 20
-
-#define NAVI_TOOLBAR_HEIGHT 150
-
-#ifdef TIZEN_2_3_1
- #define WINDOW_PREFERED_ENGINE "opengl_x11"
-#else
- #define WINDOW_PREFERED_ENGINE "3d"
-#endif
-
-
-#define PICK_VIEW_APP_PACKAGE_NAME "org.tizen.coretbt_uiapp";
-#define PICK_VIEW_SERVICEAPP_PACKAGE_NAME "org.tizen.coretbt_serviceapp";
-
-
-#define PICK_VIEW_URL_HTTP "http://www.tizen.org"
-#define PICK_VIEW_URL_HTTPS "https://www.tizen.org/"
-
-#define PICK_VIEW_IMAGE_BMP "images/zebra_1024_680.bmp"
-#define PICK_VIEW_IMAGE_JPG "images/giraffe_800_1179.jpg"
-#define PICK_VIEW_IMAGE_GIF "images/squee.gif"
-#define PICK_VIEW_IMAGE_PNG "images/plane_1024_768.png"
-
-#define PICK_VIEW_SOUND_AAC "sounds/SampleAAC.aac"
-#define PICK_VIEW_SOUND_AMR "sounds/SampleAMR.amr"
-#define PICK_VIEW_SOUND_MP3 "sounds/SampleMP3.mp3"
-#define PICK_VIEW_SOUND_WAV "sounds/SampleWAV.wav"
-
-#define PICK_VIEW_VIDEO_3GP "video/sampleH263.3gp"
-#define PICK_VIEW_VIDEO_MP4 "video/sampleMPEG4.mp4"
-
-
-
-
-#define WIDGET_VIEW_APPID "org.tizen.coretbtwidgetapp";
-#define VIEWER_VIEW_APP_PACKAGE_NAME "org.tizen.widget_viewer_sdk";
-
-#define DATA_CONTROL_PROVIDER_MAP_ID "MapRepository";
-#define DATA_CONTROL_PROVIDER_DATA_ID "provider";
-
-#define DATA_CONTROL_PROVIDER_ID "http://coretbt_dataprovider.com/datacontrol/provider/coretbt_dataprovider";
-#define DATA_CONTROL_MAP_PROVIDER_ID "http://coretbt_dataprovider.com/datacontrol/provider/coretbt_dataprovider_map";
-
-
-#define BLUETOOTH_SOCKET_UUID "00001101-0000-1000-8000-00805F9B34FB"
-
-#define DEFINED_WIDTH 480
-#define DEFINED_HEIGHT 800
-
-//char *TBT_LOGGING_DIR;
-//char *TBT_MEDIA_DIR;
-//char XML_REPORT_FILE_PATH[128];
-//char MEDIA_FILE_PATH[128];
-
-
-static inline const char *get_data_path(const char * file_path);
-static inline const char *get_resource_path(const char * file_path);
-static inline const char *get_shared_resource_path(const char *file_path);
-
-
-typedef enum {
- DEVICE_WEARABLE,
- DEVICE_MOBILE,
- DEVICE_WEARABLE_360_X_480,
- DEVICE_WEARABLE_320_X_320,
- DEVICE_WEARABLE_CIRCLE,
-
- DEVICE_NONE,
- DEVICE_MAX
-}device_type_e;
-
-static inline device_type_e get_device_type();
-
-typedef enum
-{
- CURSOR_NONE_PRESSED = -1,
- CURSOR_START_PRESSED ,
- CURSOR_FIRST_PRESSED ,
- CURSOR_NEXT_PRESSED ,
- CURSOR_PREVIOUS_PRESSED ,
- CURSOR_LAST_PRESSED
-}_Data_Control_Cursor_State;
-
-static int _supportedStorageID;
-static bool _storage_device_supported_cb(int storage_id, storage_type_e type, storage_state_e state, const char *path, void *user_data)
-{
- if(type == STORAGE_TYPE_INTERNAL)
- {
- // save storage id
- _supportedStorageID=storage_id;
- return false;
- }
- return true;
-}
-
-static void
-app_get_resource(const char *edj_file_in, char *edj_path_out, int edj_path_max)
-{
- char *res_path = app_get_resource_path();
- if (res_path) {
- snprintf(edj_path_out, edj_path_max, "%s%s", res_path, edj_file_in);
- }
-}
-
-static void
-app_get_shared_resource(const char *edj_file_in, char *edj_path_out, int edj_path_max)
-{
- char *res_path = app_get_shared_resource_path();
- if (res_path) {
- snprintf(edj_path_out, edj_path_max, "%s%s", res_path, edj_file_in);
- }
-}
-
-static inline const char *get_edje_path(const char *file_name)
-{
-char absolute_path[MAX_LENGTH_CONFIG] = {'\0'};
-char file_path[MAX_LENGTH_CONFIG] = {'\0'};
-#ifdef TIZEN_2_3_1
- #ifdef DEVICE_TYPE_MOBILE
- strncat(file_path, "edje/2.3.1/mobile/", sizeof("edje/2.3.1/mobile/"));
- #endif
- #ifdef DEVICE_TYPE_WEARABLE
- if(get_device_type() == DEVICE_WEARABLE)
- {
- strncat(file_path, "edje/2.3.1/wearable/", sizeof("edje/2.3.1/wearable/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_360_X_480)
- {
- strncat(file_path, "edje/2.3.1/wearable_360_x_480/", sizeof("edje/2.3.1/wearable_360_x_480/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_320_X_320)
- {
- strncat(file_path, "edje/2.3.1/wearable_320_x_320/", sizeof("edje/2.3.1/wearable_320_x_320/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_CIRCLE)
- {
- strncat(file_path, "edje/2.3.1/wearable_circle/", sizeof("edje/2.3.1/wearable_circle/"));
- }
- #endif
-#endif
-
-
-
-#ifdef TIZEN_2_4
- #ifdef DEVICE_TYPE_MOBILE
- strncat(file_path, "edje/2.4/mobile/", sizeof("edje/2.4/mobile/"));
- #endif
- #ifdef DEVICE_TYPE_WEARABLE
- if(get_device_type() == DEVICE_WEARABLE)
- {
- strncat(file_path, "edje/2.4/wearable/", sizeof("edje/2.4/wearable/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_360_X_480)
- {
- strncat(file_path, "edje/2.4/wearable_360_x_480/", sizeof("edje/2.4/wearable_360_x_480/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_320_X_320)
- {
- strncat(file_path, "edje/2.4/wearable_320_x_320/", sizeof("edje/2.4/wearable_320_x_320/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_CIRCLE)
- {
- strncat(file_path, "edje/2.4/wearable_circle/", sizeof("edje/2.4/wearable_circle/"));
- }
- #endif
-#endif
-
-
-
-#ifdef TIZEN_3_0
- #ifdef DEVICE_TYPE_MOBILE
- strncat(file_path, "edje/3.0/mobile/", sizeof("edje/3.0/mobile/"));
- #endif
- #ifdef DEVICE_TYPE_WEARABLE
- if(get_device_type() == DEVICE_WEARABLE)
- {
- strncat(file_path, "edje/2.4/wearable/", sizeof("edje/2.4/wearable/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_360_X_480)
- {
- strncat(file_path, "edje/2.4/wearable_360_x_480/", sizeof("edje/2.4/wearable_360_x_480/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_320_X_320)
- {
- strncat(file_path, "edje/2.4/wearable_320_x_320/", sizeof("edje/2.4/wearable_320_x_320/"));
- }
- else if(get_device_type() == DEVICE_WEARABLE_CIRCLE)
- {
- strncat(file_path, "edje/2.4/wearable_circle/", sizeof("edje/2.4/wearable_circle/"));
- }
- #endif
-#endif
-
- int num = strlen(file_name);
- if(strlen(file_path)+strlen(file_name) <= MAX_LENGTH_CONFIG)
- {
- num = strlen(file_name);
- }
- else
- {
- num = MAX_LENGTH_CONFIG-strlen(file_path);
- }
-
- strncat(file_path,file_name, num);
- app_get_resource(file_path, absolute_path, (int)MAX_LENGTH_CONFIG);
- return strdup(absolute_path);
-
-}
-static inline const char *get_resource_path(const char *file_path)
-{
- static char absolute_path[MAX_LENGTH_CONFIG] = {'\0'};
- app_get_resource(file_path, absolute_path, (int)MAX_LENGTH_CONFIG);
- return strdup(absolute_path);
-}
-
-static inline const char *get_shared_resource_path(const char *file_path)
-{
- static char absolute_path[MAX_LENGTH_CONFIG] = {'\0'};
- app_get_shared_resource(file_path, absolute_path, (int)MAX_LENGTH_CONFIG);
- return strdup(absolute_path);
-}
-
-static inline const char *get_storage_image_dir_path()
-{
- static char *absolute_path;
- // lets set storage devices
- storage_foreach_device_supported(_storage_device_supported_cb,NULL);
- storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_IMAGES,&absolute_path);
- DBG("Logging_Dir set = %s",absolute_path);
-
- return strdup(absolute_path);
-}
-
-static inline const char *get_data_path(const char *file_path)
-{
- static char* absolute_path = NULL;
- static char result[MAX_LENGTH_CONFIG];
- absolute_path = strdup(app_get_data_path());
- strcpy(result, absolute_path);
- strcat(result, "/");
- strcat(result, file_path);
- DBG("Data Path is %s", result);
- return result;
-}
-
-static inline char *gen_data_path(const char *file_path)
-{
- char path[128];
- snprintf(path, sizeof(path), "%s%s",app_get_data_path(),file_path);
-
- return strdup(path);
-}
-
-static inline char *format_string(const char *format, ...)
-{
- va_list arg;
- char* chTemp;
- chTemp= (char*)malloc(1024 * sizeof(char));
- RETVM_IF(!chTemp, NULL,"malloc failed.");
- va_start(arg,format);
- vsnprintf(chTemp,1024,format,arg);
- va_end(arg);
- return chTemp;
-}
-
-static inline device_type_e get_device_type()
-{
- int width, height;
- device_type_e device_type = DEVICE_NONE;
- system_info_get_platform_int("tizen.org/feature/screen.width", &width);
- system_info_get_platform_int("tizen.org/feature/screen.height", &height);
-
- if(width == 360 && height == 360)
- {
- //circle
- device_type = DEVICE_WEARABLE_CIRCLE;
- }
- else if(width == 360 && height == 480)
- {
- device_type = DEVICE_WEARABLE_360_X_480;
- }
- else if(width == 320 && height == 320)
- {
- device_type = DEVICE_WEARABLE_320_X_320;
- }
- else
- {
- device_type = DEVICE_MOBILE;
- }
-
-return device_type;
-
-}
-
-
-#endif /* CONFIG_H_ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file constraints.h
- * @brief constant values
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef CONSTRANTS_H_
-#define CONSTRANTS_H_
-#include <dali.h>
-using namespace Dali;
-
-#define TEXTLABEL_HEIGHT 0.0625f // assume full screen width 1 and height 1. 0.0625 is 1/16
-#define TEXTFIELD_HEIGHT 0.0625f // assume full screen width 1 and height 1. 0.0625 is 1/16
-#define TEXTEDITOR_HEIGHT 0.08333f // assume full screen width 1 and height 1. 0.0625 is 1/12
-#define BUTTON_HEIGHT 0.125f // assume full screen width 1 and height 1. 0.125 is 1/8
-#define VERTICAL_SPACE 0.00781f // assume full screen width 1 and height 1. 0.125 is 1/128
-#define HORIZONTAL_SPACE 0.00781f // assume full screen width 1 and height 1. 0.125 is 1/128
-
-const Vector4 selectedColor=Vector4(0.55f, 0.8f, 0.9f, 1.0f);
-const Vector4 unSelectedColor=Vector4(0.8f, 0.9f, 0.9f, 1.0f);
-
-
-#endif /* CONSTRANTS_H_ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file dali-ui-utils.h
- * @brief UI Utils
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef DALI_UI_UTILS_H_
-#define DALI_UI_UTILS_H_
-
-#include <system_info.h>
-#include <dali.h>
-#include <dali-toolkit/dali-toolkit.h>
-#include <string>
-#include <iostream>
-#include "logger.h"
-#include <app.h>
-#include "utils/constrants.h"
-#include "utils/type-cast.h"
-
-
-//global function
-void get_screen_height_width(const char *key, int *value);
-
-using namespace Dali;
-using namespace Dali::Toolkit;
-using namespace std;
-
-
-class UiUtils : public ConnectionTracker
-{
-
-public:
- UiUtils(Application& application, app_control_h app_control);
-public:
-
- Vector2 headerSize;
- Vector2 bodySize;
- Vector2 footerSize;
-
- TextLabel lblTitle;
- //TextLabel lblInfoTitle;
-
- Control ctlRoot;
- Control ctlHeader;
- Control ctlBody;
- Control ctlFooter;
- Control ctlInfo;
-
- PushButton btnPassButton;
- PushButton btnFailButton;
- PushButton btnInfoButton;
-
- TableView tblVerdict;
-
- Application& mApplication;
- app_control_h _control;
-
- bool bflag;
- std::string mAppResourcePath;
- std::string mImageDirectory;
- std::string mInfoText;
-
-public:
- void Init(std::string title);
-
- template<class X, typename Ret, typename Arg0>
- PushButton CreateVerdictButton(TableView parent, TableView::CellPosition cellPosition,
- Vector3 anchorPoint, Vector2 position, std::string label, X* obj,
- Ret (X::*onClickedCallback)(Arg0 arg0),
- Vector4 selectedColor, Vector4 unselectedColor, Vector2 size);
-
- //template<class X, typename Ret, typename Arg0>
- PushButton CreateButton(Vector3 anchorPoint, Vector2 position, std::string label,/* X* obj,
- Ret (X::*onClickedCallback)(Arg0 arg0),*/ Vector4 selectedColor,
- Vector4 unselectedColor, Vector2 size);
-
- TextLabel CreateTextLabel(Vector3 anchorPoint, Vector3 parentOrigin, Vector2 position,
- std::string txt, Vector2 size );
-
- //template<class X, typename Ret, typename Arg0>
- Control CreateTextField(Vector3 anchorPoint, Vector3 parentOrigin, Vector2 position,
- std::string txt, Vector2 size/*, X* obj, Ret (X::*onClickedCallback)(Arg0 arg0)*/ );
-
- //template<class X, typename Ret, typename Arg0>
- Control CreateTextEditor(Vector3 anchorPoint, Vector3 parentOrigin, Vector2 position,
- std::string txt, Vector2 size/*, X* obj, Ret (X::*onClickedCallback)(Arg0 arg0)*/ );
-
- void CreateLabelList(Property::Map keyMap, Property::Map sizeMap);
- void AddLabelToTable(TableView table,Property::Map keyMap, Property::Map sizeMap);
-
- void FillInfoPage(std::string content);
-
- bool OnPassButtonClick(Button button);
- bool OnFailButtonClick(Button button);
- bool OnInfoButtonClick(Button button);
- void OnKeyEvent( const KeyEvent& event );
-};
-
-
-#endif /* DALI_UI_UTILS_H_ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-
-/**
- * @file logger.h
- * @brief This file provide necessary macro for logging information.
- * @since_tizen 2.3
- * @author Amlan Chowdhury (amlan.c@samsung.com)
- * @date October, 2014
- * @bug
- * @credit
- */
-#ifndef __LOGGER_H__
-#define __LOGGER_H__
-
-#include <dlog.h>
-
-#define LOG_TAG_CORE "[TBT_DALI_CORE]_"
-
-#define DLOG(prio, fmt, arg...) dlog_print(prio, LOG_TAG_CORE, "%s (Line: %d) > " fmt, __func__, __LINE__, ##arg)
-#define DBG(fmt, arg...) DLOG(DLOG_DEBUG, fmt, ##arg)
-#define ERR(fmt, arg...) DLOG(DLOG_ERROR, fmt, ##arg)
-
-#define RETM_IF(expr, fmt, arg...) \
-{ \
- if (expr) \
- { \
- ERR(fmt, ##arg); \
- return; \
- } \
-}
-
-#define RETVM_IF(expr, val, fmt, arg...) \
-{ \
- if (expr) \
- { \
- ERR(fmt, ##arg); \
- return (val); \
- } \
-}
-
-#define SAFE_DELETE(a) if( (a) != NULL ) free (a); (a) = NULL;
-
-#endif /* __LOGGER_H__ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-
-/**
- * @file type-cast.h
- * @brief This file provide necessary Util functions UI.
- * @since_tizen 3.0
- * @author Jahangir Alam (ja.alam@samsung.com)
- * @date July, 2016
- * @bug
- * @credit
- */
-
-#ifndef __TYPE_CASE_H__
-#define __TYPE_CASE_H__
-#include <string>
-#include <sstream>
-#include <iostream>
-
-std::string IntToString ( int number );
-std::string FloatToString ( float number );
-std::string LongToString ( long number );
-
-#endif /* __TYPE_CASE_H__ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-
-/**
- * @file ui-utils.h
- * @brief This file provide necessary Util functions UI.
- * @since_tizen 2.3
- * @author kallol kumar pal (kallol.kumar@samsung.com)
- * @date October, 2014
- * @bug
- * @credit
- */
-
-
-#ifndef __UI_UTILS_H__
-#define __UI_UTILS_H__
-
-#include "utils/app_module_config.h"
-
-#include <Evas.h>
-
-#ifdef TIZEN_3_0
- #include <efl_extension.h>
-#endif
-#ifdef TIZEN_2_4
- #include <efl_extension.h>
-#endif
-#ifdef TIZEN_2_3_1
- #include "efl_extension_events.h"
-#endif
-#include <stdbool.h>
-
-
-enum
-{
- TOOLBAR_ITEM_INDEX_PASS = 0,
- TOOLBAR_ITEM_INDEX_FAIL,
- TOOLBAR_ITEM_INDEX_INFO,
- TOOLBAR_ITEM_INDEX_COUNT_MAX
-} TOOLBAR_ITEM_INDEXS;
-
-static const char *caption_ok = "OK";
-
-static const char *toolbar_item_names[TOOLBAR_ITEM_INDEX_COUNT_MAX] = { "Pass",
- "Fail",
- "Info"
-};
-
-static const int toolbar_item_ids[TOOLBAR_ITEM_INDEX_COUNT_MAX] = { TOOLBAR_ITEM_INDEX_PASS,
- TOOLBAR_ITEM_INDEX_FAIL,
- TOOLBAR_ITEM_INDEX_INFO
-};
-
-
-#endif /* __UI_UTILS_H__ */
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-flick-view.h
- * @brief To test functionality of accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_FLICK
-#define __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_FLICK
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliAccessibilityManagerFlickView: public UiUtils {
-
-private:
- AccessibilityManager mAccessibilityManager;
-
- TextLabel lblActionNextSignal;
- TextLabel lblActionPreviousSignal;
- TextLabel lblActionReadNextSignal;
- TextLabel lblActionReadPreviousSignal;
-
- PushButton btnUp;
- PushButton btnDown;
-
- TableView mTableView;
-
-public:
- TBTDaliAccessibilityManagerFlickView(Application& mApplication, app_control_h _control);
-
- bool onActionNextSignal(AccessibilityManager& manager);
- bool onActionPreviousSignal(AccessibilityManager& manager);
- bool onActionReadNextSignal(AccessibilityManager& manager);
- bool onActionReadPreviousSignal(AccessibilityManager& manager);
- bool OnUpClick(Button button);
- bool OnDownClick(Button button);
-
-};
-
-#endif // __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_FLICK
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-swipe-view.h
- * @brief To test functionality of accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE
-#define __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliAccessibilityManagerSwipeView: public UiUtils {
-
-private:
- AccessibilityManager mAccessibilityManager;
-
- TextLabel lblActionScrollUpSignal;
- TextLabel lblActionScrollDownSignal;
- TextLabel lblActionPageLeftSignal;
- TextLabel lblActionPageRightSignal;
- TextLabel lblActionPageUpSignal;
- TextLabel lblActionPageDownSignal;
- TextLabel lblActionMoveToFirstSignal;
- TextLabel lblActionMoveToLastSignal;
-
- PushButton btnUp;
- PushButton btnDown;
-
- TableView mTableView;
-
-public:
- TBTDaliAccessibilityManagerSwipeView(Application& mApplication, app_control_h _control);
-
- bool onActionScrollUpSignal(AccessibilityManager& manager);
- bool onActionScrollDownSignal(AccessibilityManager& manager);
- bool onActionPageLeftSignal(AccessibilityManager& manager);
- bool onActionPageRightSignal(AccessibilityManager& manager);
- bool onActionPageUpSignal(AccessibilityManager& manager);
- bool onActionPageDownSignal(AccessibilityManager& manager);
- bool onActionMoveToFirstSignal(AccessibilityManager& manager);
- bool onActionMoveToLastSignal(AccessibilityManager& manager);
-};
-
-#endif // __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-flick-view.h
- * @brief To test functionality of accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_TAP
-#define __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_TAP
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliAccessibilityManagerTapView: public UiUtils {
-
-private:
- AccessibilityManager mAccessibilityManager;
-
- TextLabel lblActionActivateSignal;
- TextLabel lblActionReadSignal;
- TextLabel lblActionReadFromTopSignal;
- TextLabel lblActionReadFromNextSignal;
- TextLabel lblActionZoomSignal;
- TextLabel lblActionReadIndicatorInformationSignal;
- TextLabel lblActionReadPauseResumeSignal;
- TextLabel lblActionStartStopSignal;
-
- PushButton btnUp;
- PushButton btnDown;
-
- TableView mTableView;
-
-public:
- TBTDaliAccessibilityManagerTapView(Application& mApplication, app_control_h _control);
-
- bool onActionActivateSignal(AccessibilityManager& manager);
- bool onActionReadSignal(AccessibilityManager& manager);
- bool onActionReadFromTopSignal(AccessibilityManager& manager);
- bool onActionReadFromNextSignal(AccessibilityManager& manager);
- bool onActionZoomSignal(AccessibilityManager& manager);
- bool onActionReadIndicatorInformationSignal(AccessibilityManager& manager);
- bool onActionReadPauseResumeSignal(AccessibilityManager& manager);
- bool onActionStartStopSignal(AccessibilityManager& manager);
-};
-
-#endif // __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_TAP
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-view.h
- * @brief To test functionality of accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER
-#define __TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliAccessibilityManagerView: public UiUtils {
-
-private:
- AccessibilityManager mAccessibilityManager;
-
-// PushButton btnUp;
-// PushButton btnDown;
- PushButton btnClear;
-
- TextLabel lblFocusChangedSignal;
- TextLabel lblFocusOvershotSignal;
- TextLabel lblFocusedActorActivatedSignal;
- TextLabel lblStatusChangedSignal;
- TextLabel lblActionOverSignal;
- TextLabel lblActionUpSignal;
- TextLabel lblActionDownSignal;
- TextLabel lblActionClearFocusSignal;
- TextLabel lblActionBackSignal;
- TextLabel lblActionScrollSignal;
-
- Slider slider;
-
- TableView mTableView;
-
-public:
- TBTDaliAccessibilityManagerView(Application& mApplication, app_control_h _control);
-
- //bool OnUpClick(Button button);
- //bool OnDownClick(Button button);
- bool OnClearClick(Button button);
- void onFocusChangedSignal(Actor previous, Actor next);
- void onFocusOvershotSignal(Actor actor, AccessibilityManager::FocusOvershotDirection director);
- void onFocusedActorActivatedSignal(Actor actor);
- bool onStatusChangedSignal(AccessibilityManager& manager);
- bool onActionOverSignal(AccessibilityManager& manager);
- bool onActionUpSignal(AccessibilityManager& manager);
- bool onActionDownSignal(AccessibilityManager& manager);
- bool onActionClearFocusSignal(AccessibilityManager& manager);
- bool onActionBackSignal(AccessibilityManager& manager);
- bool onActionScrollSignal(AccessibilityManager& manager, const Dali::TouchEvent& event);
-};
-
-#endif // __TBT_MODULE_APP_DALI_KEY_BOARD_FOCUS_MANAGER
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-actor-view.h
- * @brief To test functionality of dali actor
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-
-#ifndef __TBT_MODULE_APP_DALI_ACTOR
-#define __TBT_MODULE_APP_DALI_ACTOR
-#include <dali.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-
-
-class TBTDaliActorView: public UiUtils {
-
-public:
- TBTDaliActorView(Application& mApplication, app_control_h _control);
-
- //signal
- bool cbTouchedSignal(Actor actor, const TouchEvent& event);
- bool cbHoveredSignal(Actor actor, const HoverEvent& event);
- bool cbWheelEventSignal(Actor actor, const WheelEvent& event);
- bool cbButtonClicked(Button button);
-
-private:
-
- //textlabel
- TextLabel txtTouched;
- TextLabel txtTouchEventData;
- TextLabel txtHovered;
- TextLabel txtHoveredData;
- TextLabel txtWheel;
- TextLabel txtWheelData;
- //button
- PushButton btnButton;
-};
-
-#endif // __TBT_MODULE_APP_DALI_ACTOR
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-app-view.h
- * @brief To test functionality of dali app
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-
-#ifndef __TBT_MODULE_APP_DALI_APP
-#define __TBT_MODULE_APP_DALI_APP
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliAppView: public UiUtils {
-
-private:
-
- TextLabel lblTerminateSignal;
- TextLabel lblPauseSignal;
- TextLabel lblIdleSignal;
- TextLabel lblAppControlSignal;
- TextLabel lblBatteryLowSignal;
- TextLabel lblLanguageChangedSignal;
- TextLabel lblMemoryLowSignal;
- TextLabel lblRegionChangedSignal;
- TextLabel lblResetSignal;
- TextLabel lblResumeSignal;
- TextLabel lblResizeSignal;
-
-// PushButton btnLower;
-// PushButton btnReset;
-// PushButton btnResize;
-
-public:
- TBTDaliAppView(Application& mApplication, app_control_h _control);
-
- void onContextLost();
- void onContextRegain();
- bool lowerButtonClicked(Button);
- bool resetButtonClicked(Button);
- bool resizeButtonClicked(Button);
- void OnTerminate(Application& app);
- void OnPause(Application& app);
- void OnIdle();
- //void OnApplicationBatteryLowSignalCallback(Application& app);
- void OnApplicationLanguageChangedSignalCallback(Application&);
- //void OnApplicationMemoryLowSignalCallback(Application& app);
- void OnApplicationRegionChangedSignalCallback(Application& app);
- void OnApplicationResetSignalCallback(Application& app);
- void OnApplicationResumeSignalCallback(Application& app);
- void OnApplicationResizeSignalCallback(Application& app);
-};
-
-#endif // __TBT_MODULE_APP_DALI_APP
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-button-view.h
- * @brief To test functionality of dali button
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_BUTTON
-#define __TBT_MODULE_APP_DALI_BUTTON
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliButtonView: public UiUtils {
-
-private:
-
- //textlabel
- TextLabel txtClick;
- TextLabel txtPress;
- TextLabel txtRelease;
-
- //button
- PushButton btnTest;
-
-public:
- TBTDaliButtonView(Application& mApplication, app_control_h _control);
- //signal
- bool onClicked(Button button);
- bool onPressed(Button button);
- bool onReleased(Button button);
-};
-
-#endif // __TBT_MODULE_APP_DALI_BUTTON
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-keyboard-focus-manager-view.h
- * @brief To test functionality of dali keyboard focus manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_KEY_BOARD_FOCUS_MANAGER
-#define __TBT_MODULE_APP_DALI_KEY_BOARD_FOCUS_MANAGER
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliKeyBoardFocusManagerView: public UiUtils {
-
-private:
- KeyboardFocusManager mFocusManager;
-
- TextLabel lblPreFocus;
- TextLabel lblFocusChange;
- TextLabel lblFocusGroup;
- TextLabel lblFocusActor;
-
- TextField txt_field1;
- TextField txt_field2;
- TextField txt_field3;
-
- TableView mTableView;
-
-public:
- TBTDaliKeyBoardFocusManagerView(Application& mApplication, app_control_h _control);
-
- Actor OnPreFocusChange(Actor current, Actor proposed, Control::KeyboardFocus::Direction direction);
- void OnFocusChanged(Actor current, Actor proposed);
- void OnFocusGroupChanged(Actor actor, bool bValue);
- void OnFocusedActorEnterKey(Actor actor);
- bool OnButtonClick_1(Button button);
- bool OnButtonClick_2(Button button);
- bool OnButtonClick_3(Button button);
-};
-
-#endif // __TBT_MODULE_APP_DALI_KEY_BOARD_FOCUS_MANAGER
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-long-press-gesture-double-view.h
- * @brief To test functionality of dali long press gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_DOUBLE
-#define __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_DOUBLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliLongPressGestureDoubleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblLongPress;
- TextLabel lblPressData;
-
- LongPressGestureDetector longpressgesturedetector;
-
- unsigned int touchesRequired;
-
-public:
- TBTDaliLongPressGestureDoubleView(Application& mApplication, app_control_h _control);
- //signal
- void OnLongPressGestureDetector(Actor actor, const LongPressGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_DOUBLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-long-press-gesture-multiple-view.h
- * @brief To test functionality of dali long press gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE
-#define __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliLongPressGestureMultipleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblLongPress;
- TextLabel lblPressData;
-
- LongPressGestureDetector longpressgesturedetector;
-
- unsigned int minTouchesRequired;
- unsigned int maxTouchesRequired;
-
-public:
- TBTDaliLongPressGestureMultipleView(Application& mApplication, app_control_h _control);
- //signal
- void OnLongPressGestureDetector(Actor actor, const LongPressGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-long-press-gesture-single-view.h
- * @brief To test functionality of dali long press gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_SINGLE
-#define __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_SINGLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliLongPressGestureSingleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblLongPress;
- TextLabel lblPressData;
- //TextLabel lblpan;
-
- LongPressGestureDetector longpressgesturedetector;
-
- unsigned int touchesRequired;
-
-public:
- TBTDaliLongPressGestureSingleView(Application& mApplication, app_control_h _control);
- //signal
- void OnLongPressGestureDetector(Actor actor, const LongPressGesture& gesture);
- //void OnPinchGestureDetector(Actor actor, const PinchGesture& gesture);
- //void OnPanGestureDetector(Actor actor, const PanGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_SINGLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pan-gesture-angle-direction-view.h
- * @brief To test functionality of dali pan gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_PAN_PRESS_GESTURE_ANGLE_DIRECTION
-#define __TBT_MODULE_APP_PAN_PRESS_GESTURE_ANGLE_DIRECTION
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-#include "utils/constrants.h"
-
-class TBTDaliPanGestureAngleDirectionView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblPan;
- TextLabel lblPressData;
- PushButton btnAddremove;
- //TextLabel lblpan;
-
- PanGestureDetector pangesturedetector;
-
- unsigned int mintouchesRequired;
- unsigned int maxtouchesRequired;
- float fSetAngle;
- float fSetThreshold;
- bool flag;
-
-public:
- TBTDaliPanGestureAngleDirectionView(Application& mApplication, app_control_h _control);
- //signal
- void OnPanGestureDetector(Actor actor, const PanGesture& gesture);
- void setUnset();
- bool OnSetunSetButtonClick(Button button);
-};
-
-#endif // __TBT_MODULE_APP_PAN_PRESS_GESTURE_ANGLE_DIRECTION
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pan-gesture-double-view.h
- * @brief To test functionality of dali pan gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_PAN_PRESS_GESTURE_DOUBLE
-#define __TBT_MODULE_APP_PAN_PRESS_GESTURE_DOUBLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliPanGestureDoubleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblPan;
- TextLabel lblPressData;
- //TextLabel lblpan;
-
- PanGestureDetector pangesturedetector;
-
- unsigned int mintouchesRequired;
- unsigned int maxtouchesRequired;
-
-public:
- TBTDaliPanGestureDoubleView(Application& mApplication, app_control_h _control);
- //signal
- void OnPanGestureDetector(Actor actor, const PanGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_PAN_PRESS_GESTURE_DOUBLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pan-gesture-single-view.h
- * @brief To test functionality of dali pan gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_PAN_PRESS_GESTURE_SINGLE
-#define __TBT_MODULE_APP_PAN_PRESS_GESTURE_SINGLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliPanGestureSingleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblPan;
- TextLabel lblPressData;
- //TextLabel lblpan;
-
- PanGestureDetector pangesturedetector;
-
- unsigned int mintouchesRequired;
- unsigned int maxtouchesRequired;
-
-public:
- TBTDaliPanGestureSingleView(Application& mApplication, app_control_h _control);
- //signal
- void OnPanGestureDetector(Actor actor, const PanGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_PAN_PRESS_GESTURE_SINGLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pinch-gesture-single-view.h
- * @brief To test functionality of dali pinch gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_PINCH_GESTURE_SINGLE
-#define __TBT_MODULE_APP_DALI_PINCH_GESTURE_SINGLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliPinchGestureSingleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblPinch;
- TextLabel lblPinchData;
- //TextLabel lblpan;
-
- PinchGestureDetector pinchgesturedetector;
-
-public:
- TBTDaliPinchGestureSingleView(Application& mApplication, app_control_h _control);
- //signal
- void OnPinchGestureDetector(Actor actor, const PinchGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_DALI_PINCH_GESTURE_SINGLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-scroll-view.h
- * @brief To test functionality of dali scroll
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_SCROLL
-#define __TBT_MODULE_APP_DALI_SCROLL
-#include <dali.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliScrollView: public UiUtils {
-
-private:
- char* IMAGE_PATHS[14];
- int NUM_IMAGES;
- ScrollBar scrollBar;
- TextLabel lblSnap;
- TextLabel lblPan;
-
-public:
- TBTDaliScrollView(Application& mApplication, app_control_h _control);
-
- void updateViewControls();
- void AddImage( ScrollView& scrollView, Size& stageSize, int index );
- void SnapStartedSignalCallback(const ScrollView::SnapEvent& event);
- void OnPanFinishedSignal();
-};
-
-#endif // __TBT_MODULE_APP_DALI_SCROLL
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-slider-view.h
- * @brief To test functionality of dali slider
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_SLIDER
-#define __TBT_MODULE_APP_DALI_SLIDER
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliSliderView: public UiUtils {
-
-private:
- //textlabel
- //TextLabel txtValue;
- TextLabel txtValueChanged;
- TextLabel txtFinished;
- TextLabel txtMarkReached;
-
- Slider slider;
-
-public:
- TBTDaliSliderView(Application& mApplication, app_control_h _control);
-
- bool onValueChanged(Slider slider,float value);
- bool onSliningFinished(Slider slider,float value);
- bool onMarkReached(Slider slider,int value);
-};
-
-#endif // __TBT_MODULE_APP_DALI_SLIDER
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-stage-view.h
- * @brief To test functionality of dali stage
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_STAGE
-#define __TBT_MODULE_APP_DALI_STAGE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliStageView: public UiUtils {
-
-private:
- //textlabel
- TextLabel txtContext;
- TextLabel txtContextRegain;
- TextLabel txtEventProcessing;
- TextLabel txtKeyEvent;
- TextLabel txtSceneCreated;
- TextLabel txtTouched;
- TextLabel txtTouch;
- TextLabel txtWheel;
-
- PushButton btnTestButton;
- PushButton textButton;
-
- bool bCheck;
-// Atlas mAtlas;
- Toolkit::ImageView imageView;
-
-public:
- TBTDaliStageView(Application& mApplication, app_control_h _control,std::string msg);
- //signal
- void onKeyEvent(const KeyEvent& keyevent);
- void onEventProcessing();
- void onTouchedEvent(const TouchEvent& touchevent);
- void onTouchEvent(const TouchData& touchdata);
- bool onWheelEvent(Actor actor, const WheelEvent& wheelevent);
- void onStageWheelEvent( const WheelEvent& wheelevent);
- void onContextLost();
- void onContextRegain();
- void onSceneCreated();
- bool OnButtonClicked(Button button);
- bool OnButtonClick(Button button);
-
- static void NewWindow(void);
-};
-
-#endif // __TBT_MODULE_APP_DALI_STAGE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-style-manager-view.h
- * @brief To test functionality of dali style manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_STYLE_MANAGER
-#define __TBT_MODULE_APP_DALI_STYLE_MANAGER
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliStyleManagerView: public UiUtils {
-
-private:
- TextLabel lblStyleManager;
- PushButton btnStyle;
- StyleManager styleManager;
-public:
- TBTDaliStyleManagerView(Application& mApplication, app_control_h _control);
-
- void OnStyleChange(StyleManager style,StyleChange::Type type);
- bool OnClicked(Button button);
-};
-
-#endif // __TBT_MODULE_APP_DALI_STYLE_MANAGER
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-tap-gesture-multiple-view.h
- * @brief To test functionality of dali tap gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_TAP_GESTURE_MULTIPLE
-#define __TBT_MODULE_APP_DALI_TAP_GESTURE_MULTIPLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliTapGestureMultipleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblTap;
- TextLabel lblTapData;
-
- TapGestureDetector tapgesturedetector;
-
- unsigned int minTabRequired;
- unsigned int maxTabRequired;
-
-public:
- TBTDaliTapGestureMultipleView(Application& mApplication, app_control_h _control);
- //signal
- void OnTapGestureDetector(Actor actor, const TapGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_DALI_TAP_GESTURE_MULTIPLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-tap-gesture-single-view.h
- * @brief To test functionality of dali tap gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_TAP_GESTURE_SINGLE
-#define __TBT_MODULE_APP_DALI_TAP_GESTURE_SINGLE
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliTapGestureSingleView: public UiUtils {
-
-private:
-
- //testlabel
- TextLabel lblTap;
- TextLabel lblTapData;
- //TextLabel lblpan;
-
- TapGestureDetector tapgesturedetector;
-
- unsigned int minTabRequired;
- unsigned int maxTabRequired;
-
-public:
- TBTDaliTapGestureSingleView(Application& mApplication, app_control_h _control);
- //signal
- void OnTapGestureDetector(Actor actor, const TapGesture& gesture);
-};
-
-#endif // __TBT_MODULE_APP_DALI_TAP_GESTURE_SINGLE
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-text-control-view.h
- * @brief To test functionality of dali text control
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_TEXT_CONTROL
-#define __TBT_MODULE_APP_DALI_TEXT_CONTROL
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliTextControlView: public UiUtils {
-
-private:
-
- TextLabel lblField;
- TextLabel lblEditor;
- TextLabel lblKeyEvent;
-
- TextField txtField;
- TextEditor txtEditor;
- TextEditor editor;
- TextField field;
-
-public:
- TBTDaliTextControlView(Application& mApplication, app_control_h _control);
-
- void onMaxLengthReached(TextField field);
- void onTextChanged(TextEditor editor);
- bool onKeyEventSignal(Control control, const KeyEvent& event);
- bool OnButtonClick(Button button);
- bool OnButtonClick1(Button button);
-};
-
-#endif // __TBT_MODULE_APP_DALI_TEXT_CONTROL
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-touch-data-view.h
- * @brief To test functionality of dali touch data
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_TOUCH_DATA
-#define __TBT_MODULE_APP_DALI_TOUCH_DATA
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTDaliTouchDataView: public UiUtils {
-
-private:
- TextLabel txtTouch;
-
-public:
- TBTDaliTouchDataView(Application& mApplication, app_control_h _control);
-
- void onTouchEvent(const TouchData& touchdata);
-};
-
-#endif // __TBT_MODULE_APP_DALI_TOUCH_DATA
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-tts-view.h
- * @brief To test functionality of dali tts
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#ifndef __TBT_MODULE_APP_DALI_TTS
-#define __TBT_MODULE_APP_DALI_TTS
-#include <dali.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "utils/dali-ui-utils.h"
-
-class TBTTTSView: public UiUtils {
-
-private:
-
- PushButton playButton;
- PushButton interruptButton;
- PushButton stopButton;
- TextLabel lblTTS;
- TextField txtTTS;
- TtsPlayer tts;
-public:
- TBTTTSView(Application& mApplication, app_control_h _control);
-
- void updateViewControls();
- virtual bool OnPlayButtonClicked(Button button);
- virtual bool OnInterruptButtonClicked(Button button);
- virtual bool OnStopButtonClicked(Button button);
- bool OnButtonClick(Button button);
-};
-
-#endif // __TBT_MODULE_APP_DALI_TTS
-
+++ /dev/null
-{
- "styles":
- {
- "textlabel":
- {
- "fontStyle":"italic",
- "pointSize":12
- },
- "testbutton":
- {
- "backgroundColor":[1.0,0.0,0.0,1.0],
- "foregroundColor":[0.0,1.0,1.0,1.0]
- }
- }
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbtcoreapp.cpp
- * @brief tbt dali entry file
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include <app.h>
-#include <string.h>
-#include <dali.h>
-#include <dali-toolkit/dali-toolkit.h>
-#include <view/tbt-dali-accessibility-manager-view.h>
-#include <view/tbt-dali-accessibility-manager-flick-view.h>
-#include <view/tbt-dali-accessibility-manager-tap-view.h>
-#include <view/tbt-dali-accessibility-manager-swipe-view.h>
-#include "utils/logger.h"
-#include "view/tbt-dali-actor-view.h"
-#include "view/tbt-dali-stage-view.h"
-#include "view/tbt-dali-tts-view.h"
-#include "view/tbt-dali-scroll-view.h"
-#include "view/tbt-dali-touch-data-view.h"
-#include "view/tbt-dali-button-view.h"
-#include "view/tbt-dali-slider-view.h"
-#include "view/tbt-dali-text-control-view.h"
-#include "view/tbt-dali-keyboard-focus-manager-view.h"
-#include "view/tbt-dali-long-press-gesture-single-view.h"
-#include "view/tbt-dali-long-press-gesture-double-view.h"
-#include "view/tbt-dali-long-press-gesture-multiple-view.h"
-#include "view/tbt-dali-pan-gesture-single-view.h"
-#include "view/tbt-dali-pan-gesture-double-view.h"
-#include "view/tbt-dali-pan-gesture-angle-direction-view.h"
-#include "view/tbt-dali-pinch-gesture-single-view.h"
-#include "view/tbt-dali-tap-gesture-single-view.h"
-#include "view/tbt-dali-tap-gesture-multiple-view.h"
-#include "view/tbt-dali-style-manager-view.h"
-#include "view/tbt-dali-app-view.h"
-
-using namespace Dali;
-using namespace Dali::Toolkit;
-
-// This example shows how to create and display Hello World using a simple TextLabel
-//
-class DaliTestController : public ConnectionTracker
-{
-public:
-
- DaliTestController( Application& application ) : mApplication( application )
- {
- // Connect to the Application's init signal
- DBG(">>>>>>In DaliTestController");
- mApplication.InitSignal().Connect( this, &DaliTestController::Create );
- mApplication.AppControlSignal().Connect(this, &DaliTestController::AppControl);
- moduleName = NULL;
- msg="";
- }
-
- ~DaliTestController()
- {
- // Nothing to do here
- }
-
- void Create( Application& application )
- {
- DBG(">>>>>>In Create");
- // Get a handle to the stage
- Stage stage = Stage::GetCurrent();
- //stage.GetRootLayer().TouchedSignal().Connect( this, &DaliTestController::OnTouch );
- //stage.KeyEventSignal().Connect( this, &DaliTestController::OnKeyEvent );
- stage.SceneCreatedSignal().Connect( this, &DaliTestController::onSceneCreated );
- //this->ApplicationModule();
- }
- void onSceneCreated()
- {
- DBG("In onSceneCreated");
- msg="onSceneCreated";
- }
-
- void AppControl( Application& application, void* data )
- {
- DBG(">>>>>>In AppControl");
- app_control_h app_control = (app_control_h)data;
- char* category;
- int result = app_control_get_operation(app_control,&category);
- RETM_IF(APP_CONTROL_ERROR_NONE != result, "app_control_get_operation failed :%d", result);
- app_control_clone (&_control, app_control);
-
- if(!category)
- {
- return;
- }
- if(strcmp(category,APP_CONTROL_OPERATION_PICK)==0)
- {
- app_control_get_extra_data(app_control, "module_name", &moduleName);
- if(strcmp(moduleName, "TBT_APP_DALI_TTS") == 0)
- {
- parentView = new TBTTTSView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_SCROLL") == 0)
- {
- parentView = new TBTDaliScrollView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_ACTOR") == 0)
- {
- parentView = new TBTDaliActorView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_STAGE") == 0)
- {
- parentView = new TBTDaliStageView(mApplication, _control, msg);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_TOUCH_DATA") == 0)
- {
- parentView = new TBTDaliTouchDataView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_BUTTON") == 0)
- {
- parentView = new TBTDaliButtonView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_SLIDER") == 0)
- {
- parentView = new TBTDaliSliderView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_TEXT_CONTROL") == 0)
- {
- parentView = new TBTDaliTextControlView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_KEY_BOARD_FOCUS_MANAGER") == 0)
- {
- parentView = new TBTDaliKeyBoardFocusManagerView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_ACCESSIBILITY_MANAGER") == 0)
- {
- parentView = new TBTDaliAccessibilityManagerView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_ACCESSIBILITY_MANAGER_FLICK") == 0)
- {
- parentView = new TBTDaliAccessibilityManagerFlickView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_ACCESSIBILITY_MANAGER_TAP") == 0)
- {
- parentView = new TBTDaliAccessibilityManagerTapView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE") == 0)
- {
- parentView = new TBTDaliAccessibilityManagerSwipeView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_LONG_PRESS_GESTURE_SINGLE") == 0)
- {
- parentView = new TBTDaliLongPressGestureSingleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_LONG_PRESS_GESTURE_DOUBLE") == 0)
- {
- parentView = new TBTDaliLongPressGestureDoubleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE") == 0)
- {
- parentView = new TBTDaliLongPressGestureMultipleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_PAN_GESTURE_SINGLE") == 0)
- {
- parentView = new TBTDaliPanGestureSingleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_PAN_GESTURE_DOUBLE") == 0)
- {
- parentView = new TBTDaliPanGestureDoubleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION") == 0)
- {
- parentView = new TBTDaliPanGestureAngleDirectionView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_PINCH_GESTURE_SINGLE") == 0)
- {
- parentView = new TBTDaliPinchGestureSingleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_TAP_GESTURE_SINGLE") == 0)
- {
- parentView = new TBTDaliTapGestureSingleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_TAP_GESTURE_MULIPLE") == 0)
- {
- parentView = new TBTDaliTapGestureMultipleView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_STYLE_MANAGER") == 0)
- {
- parentView = new TBTDaliStyleManagerView(mApplication, _control);
- }
- else if(strcmp(moduleName, "TBT_APP_DALI_APP") == 0)
- {
- parentView = new TBTDaliAppView(mApplication, _control);
- }
- }
- }
-
- private:
- app_control_h _control;
- Application& mApplication;
- char* moduleName;
- UiUtils *parentView;
- std::string msg;
-
- PushButton passButton;
- PushButton failButton;
- PushButton infoButton;
-
- //float verdictTableHeight;
-};
-
-// Entry point for Tizen applications
-//
-int main( int argc, char **argv )
-{
- Application application = Application::New( &argc, &argv );
- DaliTestController test( application );
- application.MainLoop(Configuration::APPLICATION_HANDLES_CONTEXT_LOSS);
- return 0;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file dali-ui-utils.cpp
- * @brief UI Utils
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "utils/dali-ui-utils.h"
-const Vector4 CUSTOM_BLUE_COLOR = Vector4( 66.0f/255.0f, 180.0f/255.0f, 198.0f/255.0f, 1.0f );
-const Vector4 EDITOR_COLOR = Vector4( 214.0f, 234.0f, 248.0f, 1.0f);
-
-UiUtils::UiUtils(Application& application, app_control_h app_control) : mApplication(application)
-{
- DBG("UiUtils::UiUtils....");
- this->bflag=false;
- this->mAppResourcePath= app_get_resource_path();
- this->mImageDirectory = this->mAppResourcePath + "images/";
- //this->mApplication=application;
- this->_control=app_control;
-}
-void UiUtils::Init(std::string title)
-{
- DBG("UiUtils::Init....Begin");
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize=stage.GetSize();
- stage.SetBackgroundColor( Color::WHITE );
-
- this->ctlRoot=Control::New();
- this->ctlRoot.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->ctlRoot.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->ctlRoot.SetSize(stageSize);
- this->ctlRoot.SetPosition(0.0f, 0.0f);
- this->ctlRoot.SetBackgroundColor(Color::WHITE);
- stage.Add(this->ctlRoot);
-
- this->headerSize=Vector2(stageSize.width, stageSize.height*0.0781);
- this->footerSize=Vector2(stageSize.width, stageSize.height*0.125);
- this->bodySize=Vector2(stageSize.width, stageSize.height - (this->headerSize.y+footerSize.y));
-
- this->lblTitle=TextLabel::New(title);
- this->lblTitle.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->lblTitle.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->lblTitle.SetProperty( TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER");
- this->lblTitle.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER");
-
- this->ctlHeader=Control::New();
- this->ctlHeader.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->ctlHeader.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->ctlHeader.SetSize(this->headerSize);
- this->ctlHeader.SetPosition(0.0f, 0.0f);
- this->ctlHeader.SetBackgroundColor(CUSTOM_BLUE_COLOR);
- this->ctlHeader.Add(this->lblTitle);
- this->ctlRoot.Add(this->ctlHeader);
-
- this->ctlBody=Control::New();
- this->ctlBody.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->ctlBody.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->ctlBody.SetSize(this->bodySize);
- this->ctlBody.SetPosition(0.0f,this->headerSize.y);
- //this->ctlBody.SetBackgroundColor(CUSTOM_BLUE_COLOR);
- this->ctlRoot.Add(this->ctlBody);
- //DBG("X=%d Y=%d",bodySize.x,bodySize.y);
-
- this->ctlFooter=Control::New();
- this->ctlFooter.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->ctlFooter.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->ctlFooter.SetSize(this->footerSize);
- this->ctlFooter.SetPosition(0.0f,this->headerSize.y+this->bodySize.y);
- this->ctlFooter.SetBackgroundColor(CUSTOM_BLUE_COLOR);
- this->ctlRoot.Add(this->ctlFooter);
-
- this->ctlInfo=Control::New();
- this->ctlInfo.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->ctlInfo.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->ctlInfo.SetSize(this->bodySize+this->footerSize);
- this->ctlInfo.SetPosition(0.0f,this->headerSize.y);
- this->ctlInfo.SetBackgroundColor(Color::WHITE);
-
- this->tblVerdict=TableView::New(1,3);
- this->tblVerdict.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- this->tblVerdict.SetParentOrigin(ParentOrigin::TOP_LEFT);
- this->tblVerdict.SetSize(this->footerSize);
- this->tblVerdict.SetPosition(0.0f, 0.0f);
- this->ctlFooter.Add(this->tblVerdict);
-
- Vector2 size(this->footerSize.x/3,this->footerSize.y);
- this->btnPassButton = this->CreateVerdictButton(this->tblVerdict, TableView::CellPosition(0, 0), AnchorPoint::TOP_LEFT, Vector2(0.0f, 0.0f), "Pass", this, &UiUtils::OnPassButtonClick, Vector4(0.55f, 0.8f, 0.9f, 1.0f), Vector4(0.8f, 0.9f, 0.9f, 1.0f),size);
- this->btnFailButton = this->CreateVerdictButton(this->tblVerdict, TableView::CellPosition(0, 1), AnchorPoint::TOP_LEFT, Vector2(0.0f, 0.0f), "Fail", this, &UiUtils::OnFailButtonClick, Vector4(0.55f, 0.8f, 0.9f, 1.0f), Vector4(0.8f, 0.9f, 0.9f, 1.0f),size);
- this->btnInfoButton = this->CreateVerdictButton(this->tblVerdict, TableView::CellPosition(0, 2), AnchorPoint::TOP_LEFT, Vector2(0.0f, 0.0f), "Info", this, &UiUtils::OnInfoButtonClick, Vector4(0.55f, 0.8f, 0.9f, 1.0f), Vector4(0.8f, 0.9f, 0.9f, 1.0f),size);
-
- Stage::GetCurrent().KeyEventSignal().Connect( this, &UiUtils::OnKeyEvent );
- DBG("UiUtils::Init.... End");
-}
-
-template<class X, typename Ret, typename Arg0>
-PushButton UiUtils::CreateVerdictButton(TableView parent, TableView::CellPosition cellPosition,
- Vector3 anchorPoint, Vector2 position, std::string label, X* obj,
- Ret (X::*onClickedCallback)(Arg0 arg0),
- Vector4 selectedColor, Vector4 unselectedColor, Vector2 size)
-{
- PushButton button = PushButton::New();
- button.SetAnchorPoint(anchorPoint);
- button.SetPosition(position.x,position.y);
- //button.SetSize(size);
- button.SetProperty( Button::Property::LABEL, label );
-
- Property::Map propertyMap;
- propertyMap.Insert(Visual::Property::TYPE, Visual::COLOR);
- propertyMap.Insert(ColorVisual::Property::MIX_COLOR, selectedColor);
- button.SetProperty(Button::Property::UNSELECTED_BACKGROUND_VISUAL, propertyMap);
-
- Property::Map propertyMap1;
- propertyMap1.Insert(Visual::Property::TYPE, Visual::COLOR);
- propertyMap1.Insert(ColorVisual::Property::MIX_COLOR, unselectedColor);
- button.SetProperty(Button::Property::SELECTED_BACKGROUND_VISUAL, propertyMap1);
- parent.AddChild(button, cellPosition);
-
- button.ClickedSignal().Connect(obj, onClickedCallback);
- return button;
-}
-
-//template<class X, typename Ret, typename Arg0>
-PushButton UiUtils::CreateButton(Vector3 anchorPoint, Vector2 position, std::string label,/* X* obj,
- Ret (X::*onClickedCallback)(Arg0 arg0), */Vector4 selectedColor,
- Vector4 unselectedColor, Vector2 size)
-{
- PushButton button = PushButton::New();
- button.SetAnchorPoint(anchorPoint);
- //button.SetParentOrigin(parentOrigin);
- button.SetPosition(position.x,position.y);
- //button.SetSize(size);
- button.SetProperty( Button::Property::LABEL, label );
- Property::Map propertyMap;
- propertyMap.Insert(Visual::Property::TYPE, Visual::COLOR);
- propertyMap.Insert(ColorVisual::Property::MIX_COLOR, selectedColor);
- button.SetProperty(Button::Property::UNSELECTED_BACKGROUND_VISUAL, propertyMap);
-
- Property::Map propertyMap1;
- propertyMap1.Insert(Visual::Property::TYPE, Visual::COLOR);
- propertyMap1.Insert(ColorVisual::Property::MIX_COLOR, unselectedColor);
- button.SetProperty(Button::Property::SELECTED_BACKGROUND_VISUAL, propertyMap1);
-
- //button.ClickedSignal().Connect(obj, onClickedCallback);
- return button;
-}
-TextLabel UiUtils::CreateTextLabel(Vector3 anchorPoint,Vector3 parentOrigin, Vector2 position, std::string txt, Vector2 size )
-{
- DBG("UiUtils::CreateTextLabel Begin");
- TextLabel label=TextLabel::New(" "+txt);
- label.SetAnchorPoint(anchorPoint);
- label.SetParentOrigin(parentOrigin);
- label.SetPosition(position.x,position.y);
- DBG("X=%f Y=%f Width=%f Height=%f",size.x,size.y,size.width,size.height);
- label.SetSize(size);
- label.SetProperty(TextLabel::Property::MULTI_LINE,true);
- DBG("UiUtils::CreateTextLabel End");
- return label;
-}
-//template<class X, typename Ret, typename Arg0>
-Control UiUtils::CreateTextField(Vector3 anchorPoint, Vector3 parentOrigin, Vector2 position,
- std::string txt, Vector2 size/*, X* obj, Ret (X::*onClickedCallback)(Arg0 arg0)*/ )
-{
- Control customTextField = Control::New();
- customTextField.SetAnchorPoint( anchorPoint );
- customTextField.SetParentOrigin(parentOrigin);
- customTextField.SetSize( size);
- customTextField.SetPosition( position.x,position.y );
- customTextField.SetProperty( Control::Property::BACKGROUND, this->mImageDirectory+"customTextFieldBgImage.jpg" );
-
- TextField field=TextField::New();
- field.SetAnchorPoint(anchorPoint);
- field.SetParentOrigin(parentOrigin);
- //field.SetPosition(position.x,position.y);
- field.SetSize(size);
- field.SetProperty( TextField::Property::POINT_SIZE, 10.0f );
- field.SetProperty( TextField::Property::TEXT_COLOR, CUSTOM_BLUE_COLOR);
- field.SetProperty( TextField::Property::VERTICAL_ALIGNMENT, "CENTER" );
- field.SetProperty( TextField::Property::HORIZONTAL_ALIGNMENT, "BEGIN" );
- field.SetProperty( TextField::Property::PLACEHOLDER_TEXT,"Edit here");
- //field.SetBackgroundColor(Color::YELLOW);
- customTextField.Add(field);
-
- PushButton btnCross = PushButton::New();
- btnCross.SetAnchorPoint( anchorPoint );
- btnCross.SetParentOrigin(parentOrigin);
- btnCross.SetSize( size.width/10, size.height );
- btnCross.SetPosition( size.width - size.width/10, 0.0f );
- btnCross.SetProperty( Toolkit::Button::Property::UNSELECTED_VISUAL, this->mImageDirectory + "innerButtonUnselected.png" );
- btnCross.SetProperty( Toolkit::Button::Property::SELECTED_VISUAL, this->mImageDirectory + "innerButtonSelected.png" );
- //btnCross.ClickedSignal().Connect( obj, onClickedCallback );
- customTextField.Add(btnCross);
-
- return customTextField;
-}
-//template<class X, typename Ret, typename Arg0>
-Control UiUtils::CreateTextEditor(Vector3 anchorPoint, Vector3 parentOrigin, Vector2 position,
- std::string txt, Vector2 size/*, X* obj, Ret (X::*onClickedCallback)(Arg0 arg0)*/ )
-{
- Control customTextEditor = Control::New();
- customTextEditor.SetAnchorPoint( anchorPoint );
- customTextEditor.SetParentOrigin(parentOrigin);
- customTextEditor.SetSize( size);
- customTextEditor.SetPosition( position.x,position.y );
-
- TextEditor editor=TextEditor::New();
- editor.SetAnchorPoint(anchorPoint);
- editor.SetParentOrigin(parentOrigin);
- //editor.SetPosition(position.x,position.y);
- editor.SetSize(size);
- editor.SetBackgroundColor(CUSTOM_BLUE_COLOR);
- editor.SetProperty( TextEditor::Property::POINT_SIZE, 10);
- editor.SetProperty( TextEditor::Property::TEXT_COLOR, Color::BLACK);
- editor.SetProperty( TextEditor::Property::TEXT, "Text edit here");
- editor.SetProperty( TextEditor::Property::HORIZONTAL_ALIGNMENT, "BEGIN" );
- customTextEditor.Add(editor);
-
- PushButton btnCross = PushButton::New();
- btnCross.SetAnchorPoint( anchorPoint );
- btnCross.SetParentOrigin(parentOrigin);
- btnCross.SetSize( bodySize.width*TEXTEDITOR_HEIGHT, bodySize.height*TEXTEDITOR_HEIGHT );
- btnCross.SetPosition( size.width - size.width/10, 0.0f );
- btnCross.SetProperty( Toolkit::Button::Property::UNSELECTED_VISUAL, this->mImageDirectory + "innerButtonSelected.png" );
- btnCross.SetProperty( Toolkit::Button::Property::SELECTED_VISUAL, this->mImageDirectory + "innerButtonUnselected.png" );
- //btnCross.ClickedSignal().Connect( obj, onClickedCallback );
- customTextEditor.Add(btnCross);
-
- return customTextEditor;
-}
-void UiUtils::CreateLabelList(Property::Map keyMap, Property::Map sizeMap)
-{
- DBG("UiUtils::CreateLabelList Begin");
- //Dali::Property::Map textlabelMap;
- std::string key;
- Property::Value value;
- Property::Value size_value;
- Vector2 size;
- Vector2 position;
- int count=keyMap.Count();
- float next=Stage::GetCurrent().GetSize().height*0.039;
- TextLabel lbl;
- for(int i=0;i<count;i++)
- {
- key=keyMap.GetKey(i);
- value=keyMap.GetValue(i);
- size_value=sizeMap.GetValue(i);
- size=size_value.Get<Vector2>();
- position=Vector2(0.0f, next);
- lbl=this->CreateTextLabel(AnchorPoint::TOP_LEFT, ParentOrigin::TOP_LEFT,position,value.Get<std::string>(),size);
- lbl.SetProperty( TextLabel::Property::POINT_SIZE, 8);
- lbl.SetProperty( TextLabel::Property::TEXT_COLOR, Color::RED);
- lbl.SetProperty( TextLabel::Property::VERTICAL_ALIGNMENT, "TOP");
- lbl.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "BEGIN");
- lbl.SetName(value.Get<std::string>());
- //textlabelMap.Insert(key,lbl);
- this->ctlBody.Add(lbl);
- next=next+size.y;
- }
- DBG("UiUtils::CreateLabelList End");
- //return textlabelMap;
-}
-
-void UiUtils::AddLabelToTable(TableView table,Property::Map keyMap, Property::Map sizeMap)
-{
- DBG("UiUtils::AddLabelToTable Begin");
- //Dali::Property::Map textlabelMap;
- std::string key;
- Property::Value value;
- Property::Value size_value;
- Vector2 size;
- Vector2 position;
- int count=keyMap.Count();
- float next=Stage::GetCurrent().GetSize().height*0.039;
- TextLabel lbl;
- for(int i=0;i<count;i++)
- {
- key=keyMap.GetKey(i);
- value=keyMap.GetValue(i);
- size_value=sizeMap.GetValue(i);
- size=size_value.Get<Vector2>();
- position=Vector2(0.0f, next);
- lbl=this->CreateTextLabel(AnchorPoint::TOP_LEFT, ParentOrigin::TOP_LEFT,position,value.Get<std::string>(),size);
- lbl.SetProperty( TextLabel::Property::POINT_SIZE, 8);
- lbl.SetProperty( TextLabel::Property::TEXT_COLOR, Color::RED);
- lbl.SetProperty( TextLabel::Property::VERTICAL_ALIGNMENT, "TOP");
- lbl.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "BEGIN");
- lbl.SetName(value.Get<std::string>());
-
- table.AddChild(lbl,TableView::CellPosition(i,0));
-
- next=next+size.y;
- }
- DBG("UiUtils::AddLabelToTable End");
- //return textlabelMap;
-}
-
-bool UiUtils::OnPassButtonClick(Button button)
-{
- DBG("UiUtils::OnPassButtonClick");
- app_control_h reply;
- int nStatus = app_control_create(&reply);
-
- app_control_result_e res = APP_CONTROL_RESULT_SUCCEEDED;
- nStatus = app_control_reply_to_launch_request(reply, _control, res);
- DBG("app_control_reply_to_launch_request=%s", nStatus);
-
- this->mApplication.Quit();
- return true;
-}
-bool UiUtils::OnFailButtonClick(Button button)
-{
- DBG("UiUtils::OnFailButtonClick");
- app_control_h reply;
- int nStatus = app_control_create(&reply);
-
- app_control_result_e res = APP_CONTROL_RESULT_FAILED;
- nStatus = app_control_reply_to_launch_request(reply, _control, res);
- DBG("app_control_reply_to_launch_request=%s", nStatus);
- this->mApplication.Quit();
- return true;
-}
-bool UiUtils::OnInfoButtonClick(Button button)
-{
- DBG("UiUtils::OnInfoButtonClick");
-
- DBG("ho ho i m in info page");
- this->bflag=true;
- //Stage::GetCurrent().Remove(ctlRoot);
- //ctlRoot.Add(ctlHeader);
- ctlRoot.Remove(ctlBody);
- ctlRoot.Add(ctlInfo);
-
- FillInfoPage(mInfoText);
- return true;
-}
-void UiUtils::OnKeyEvent( const KeyEvent& event )
-{
- DBG("UiUtils::OnKeyEvent");
-
- if( event.state == KeyEvent::Down )
- {
- if( IsKey( event, DALI_KEY_ESCAPE ) || IsKey( event, DALI_KEY_BACK ) )
- {
- //mApplication.Quit();
- if(this->bflag != true)
- mApplication.Quit();
- DBG("ho ho i m in content page");
- ctlRoot.Remove(ctlInfo);
- ctlRoot.Add(ctlBody);
- this->bflag=false;
- }
- }
-}
-void UiUtils::FillInfoPage(std::string content)
-{
- DBG("UiUtils::FillInfoPage");
- TextLabel lblText=TextLabel::New();
- lblText.SetProperty(TextLabel::Property::ENABLE_MARKUP, true);
- lblText.SetProperty(TextLabel::Property::MULTI_LINE, true);
- lblText.SetProperty( TextLabel::Property::TEXT, content);
- lblText.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- lblText.SetParentOrigin(ParentOrigin::TOP_LEFT);
- lblText.SetSize(bodySize);
- lblText.SetProperty(TextLabel::Property::POINT_SIZE,7.0f);
- lblText.SetProperty(TextLabel::Property::TEXT_COLOR,Color::BLACK);
- lblText.SetPosition(0.0f, 0.0f);
-
- this->ctlInfo.Add(lblText);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file type-cast.cpp
- * @brief Type casting
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "utils/type-cast.h"
-
-
-std::string IntToString ( int number )
-{
- std::ostringstream oss;
- // Works just like cout
- oss<< number;
- // Return the underlying string
- return oss.str();
-}
-std::string FloatToString ( float number )
-{
- std::ostringstream oss;
- // Works just like cout
- oss<< number;
- // Return the underlying string
- return oss.str();
-}
-std::string LongToString ( long number )
-{
- std::ostringstream oss;
- // Works just like cout
- oss<< number;
- // Return the underlying string
- return oss.str();
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-flick-view.cpp
- * @brief To test functionality of dali accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#include <view/tbt-dali-accessibility-manager-flick-view.h>
-
-TBTDaliAccessibilityManagerFlickView::TBTDaliAccessibilityManagerFlickView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Accessibility Manager Flick");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run tbtcoreapp"
- "\n2. Activate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 1</color>"
- " on target shell with root on mode"
- "\n3. One finger single tap on DALi Accessibility Manager Flick. Then focused this with yellow box"
- "\n4. One finger double tap on DALi Accessibility Manager Flick."
- "\n5. One finger flick up/down on screen to change the focus control then action next and action previous signal will call."
- "\n6. One finger flick right/left on screen to change the focus control then action read next and action read previous signal will call."
- "\n7. Before finished test deactivate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 0</color>"
- "\n8. If the corresponding event signals "
- "mgs are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>.";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- mAccessibilityManager = AccessibilityManager::Get();
-
- mAccessibilityManager.ActionNextSignal().Connect(this,&TBTDaliAccessibilityManagerFlickView::onActionNextSignal);
- mAccessibilityManager.ActionPreviousSignal().Connect(this,&TBTDaliAccessibilityManagerFlickView::onActionPreviousSignal);
- mAccessibilityManager.ActionReadNextSignal().Connect(this,&TBTDaliAccessibilityManagerFlickView::onActionReadNextSignal);
- mAccessibilityManager.ActionReadPreviousSignal().Connect(this,&TBTDaliAccessibilityManagerFlickView::onActionReadPreviousSignal);
-
- mTableView=TableView::New(12,1);
- mTableView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- mTableView.SetParentOrigin(ParentOrigin::TOP_LEFT);
- mTableView.SetSize(this->bodySize);
- mTableView.SetPosition(0.0f, 0.0f);
- this->ctlBody.Add(mTableView);
-
- Property::Map ctl;
- Property::Map size;
-
- ctl["lbl1"]=" Action next signal not call";
- ctl["lbl2"]=" Action previous signal not call";
- ctl["lbl3"]=" Action Read Next Signal not call";
- ctl["lbl4"]=" Action Read Previous Signal not call";
-
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- //CreateLabelList(ctl,size);
- AddLabelToTable(mTableView,ctl,size);
-
- DBG("Count >>>>>> %d",ctlBody.GetChildCount());
- int count=mTableView.GetChildCount();
- DBG("TableView Child Count >>>>>> %d",count);
-
- lblActionNextSignal=TextLabel::DownCast(mTableView.GetChildAt(0));
- lblActionPreviousSignal=TextLabel::DownCast(mTableView.GetChildAt(1));
- lblActionReadNextSignal=TextLabel::DownCast(mTableView.GetChildAt(2));
- lblActionReadPreviousSignal=TextLabel::DownCast(mTableView.GetChildAt(3));
-
- mTableView.AddChild(lblActionNextSignal, TableView::CellPosition(0,0));
- mTableView.AddChild(lblActionPreviousSignal, TableView::CellPosition(1,0));
- mTableView.AddChild(lblActionReadNextSignal, TableView::CellPosition(2,0));
- mTableView.AddChild(lblActionReadPreviousSignal, TableView::CellPosition(3,0));
-
- mAccessibilityManager.SetFocusOrder(lblActionNextSignal,1);
- mAccessibilityManager.SetFocusOrder(lblActionPreviousSignal,2);
- mAccessibilityManager.SetFocusOrder(lblActionReadNextSignal,3);
- mAccessibilityManager.SetFocusOrder(lblActionReadPreviousSignal,4);
-
- if(! mAccessibilityManager.SetCurrentFocusActor(lblActionNextSignal))
- DBG("unable to set current focus actor");
-
- Vector2 buttonSize=Vector2(bodySize.width, BUTTON_HEIGHT*bodySize.height);
- Vector2 pos=Vector2(0.0f, 0.0f);
-
- btnUp=CreateButton(AnchorPoint::TOP_LEFT, pos, "Test Button 1", selectedColor, unSelectedColor, buttonSize);
- btnUp.ClickedSignal().Connect(this,&TBTDaliAccessibilityManagerFlickView::OnUpClick);
- mAccessibilityManager.SetFocusOrder( btnUp, mAccessibilityManager.GenerateNewFocusOrder());
-
- btnDown=CreateButton(AnchorPoint::TOP_LEFT, pos, "Test Button 2", selectedColor, unSelectedColor, buttonSize);
- btnDown.ClickedSignal().Connect(this,&TBTDaliAccessibilityManagerFlickView::OnDownClick);
- mAccessibilityManager.SetFocusOrder( btnDown, mAccessibilityManager.GenerateNewFocusOrder() );
-
- mTableView.AddChild(btnUp, TableView::CellPosition(8,0));
- mTableView.AddChild(btnDown, TableView::CellPosition(10,0));
-}
-
-bool TBTDaliAccessibilityManagerFlickView::OnUpClick(Button button)
-{
- DBG("In TBTDaliAccessibilityManagerFlickView::OnUpClick");
- bool bPrev=mAccessibilityManager.MoveFocusBackward();
- return true;
-}
-bool TBTDaliAccessibilityManagerFlickView::OnDownClick(Button button)
-{
- DBG("In TBTDaliAccessibilityManagerFlickView::OnDownClick");
- return true;
-}
-
-bool TBTDaliAccessibilityManagerFlickView::onActionNextSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerFlickView::onActionNextSignal");
- //mAccessibilityManager.SetCurrentFocusActor(next);
- lblActionNextSignal.SetProperty(TextLabel::Property::TEXT," Action Next Signal called");
- lblActionNextSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerFlickView::onActionPreviousSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerFlickView::onActionPreviousSignal");
- lblActionPreviousSignal.SetProperty(TextLabel::Property::TEXT," Action Previous Signal called");
- lblActionPreviousSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-
-bool TBTDaliAccessibilityManagerFlickView::onActionReadNextSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerFlickView::onActionReadNextSignal");
- lblActionReadNextSignal.SetProperty(TextLabel::Property::TEXT," Action Read Next Signal called");
- lblActionReadNextSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerFlickView::onActionReadPreviousSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerFlickView::onActionReadPreviousSignal");
- lblActionReadPreviousSignal.SetProperty(TextLabel::Property::TEXT," Action Read Previous Signal called");
- lblActionReadPreviousSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-flick-view.cpp
- * @brief To test functionality of dali accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#include <view/tbt-dali-accessibility-manager-swipe-view.h>
-
-TBTDaliAccessibilityManagerSwipeView::TBTDaliAccessibilityManagerSwipeView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Accessibility Manager Tap");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run tbtcoreapp"
- "\n2. Activate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 1</color>"
- " on target shell with root on mode"
- "\n3. One finger single tap on DALi Accessibility Manager Tap. Then focused this with yellow box"
- "\n4. One finger double tap on DALi Accessibility Manager Tap."
- "\n5. One finger up/down on screen focus control are move then action read signal will call"
- "\n6. One finger double tap on focused control then action activate signal will call."
- "\n7. Three finger single tap on screen then action read from top signal will call."
- "\n8. Three finger double tap on screen then action read from next signal will call."
- "\n9. One finger triple tap on screen then action zoom signal will call."
- "\n10. Two fingers triple tap on screen then action read indicator information signal will call"
- "\n11. Two fingers single tap on screen then action read pause resume signal will call"
- "\n12. Two finger double tap on screen then action start stop signal will call"
- "\n13. One finger flick right/left on screen to change the focus control then action read next and action read previous signal will call."
- "\n14. Before finished test deactivate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 0</color>"
- "\n15. If the corresponding event signals "
- "mgs are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>.";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- mAccessibilityManager = AccessibilityManager::Get();
-
- mAccessibilityManager.ActionScrollUpSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionScrollUpSignal);
- mAccessibilityManager.ActionScrollDownSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionScrollDownSignal);
- mAccessibilityManager.ActionPageLeftSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionPageLeftSignal);
- mAccessibilityManager.ActionPageRightSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionPageRightSignal);
- mAccessibilityManager.ActionPageUpSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionPageUpSignal);
- mAccessibilityManager.ActionPageDownSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionPageDownSignal);
- mAccessibilityManager.ActionReadIndicatorInformationSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionMoveToFirstSignal);
- mAccessibilityManager.ActionMoveToLastSignal().Connect(this,&TBTDaliAccessibilityManagerSwipeView::onActionMoveToLastSignal);
-
- mTableView=TableView::New(12,1);
- mTableView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- mTableView.SetParentOrigin(ParentOrigin::TOP_LEFT);
- mTableView.SetSize(this->bodySize);
- mTableView.SetPosition(0.0f, 0.0f);
- this->ctlBody.Add(mTableView);
-
- Property::Map ctl;
- Property::Map size;
-
- ctl["lbl1"]=" Action scroll up signal not call";
- ctl["lbl2"]=" Action scroll down signal not call";
- ctl["lbl3"]=" Action page left signal not call";
- ctl["lbl4"]=" Action page right signal not call";
- ctl["lbl5"]=" Action page up signal not call";
- ctl["lbl6"]=" Action page down signal not call";
- ctl["lbl7"]=" Action move to first signal not call";
- ctl["lbl8"]=" Action move to last signal not call";
-
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl6"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl7"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl8"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- //CreateLabelList(ctl,size);
- AddLabelToTable(mTableView,ctl,size);
-
- DBG("Count >>>>>> %d",ctlBody.GetChildCount());
- int count=mTableView.GetChildCount();
- DBG("TableView Child Count >>>>>> %d",count);
-
- lblActionScrollUpSignal=TextLabel::DownCast(mTableView.GetChildAt(0));
- lblActionScrollDownSignal=TextLabel::DownCast(mTableView.GetChildAt(1));
- lblActionPageLeftSignal=TextLabel::DownCast(mTableView.GetChildAt(2));
- lblActionPageRightSignal=TextLabel::DownCast(mTableView.GetChildAt(3));
- lblActionPageUpSignal=TextLabel::DownCast(mTableView.GetChildAt(4));
- lblActionPageDownSignal=TextLabel::DownCast(mTableView.GetChildAt(5));
- lblActionMoveToFirstSignal=TextLabel::DownCast(mTableView.GetChildAt(6));
- lblActionMoveToLastSignal=TextLabel::DownCast(mTableView.GetChildAt(7));
-
- mTableView.AddChild(lblActionScrollUpSignal, TableView::CellPosition(0,0));
- mTableView.AddChild(lblActionScrollDownSignal, TableView::CellPosition(1,0));
- mTableView.AddChild(lblActionPageLeftSignal, TableView::CellPosition(2,0));
- mTableView.AddChild(lblActionPageRightSignal, TableView::CellPosition(3,0));
- mTableView.AddChild(lblActionPageUpSignal, TableView::CellPosition(4,0));
- mTableView.AddChild(lblActionPageDownSignal, TableView::CellPosition(5,0));
- mTableView.AddChild(lblActionMoveToFirstSignal, TableView::CellPosition(6,0));
- mTableView.AddChild(lblActionMoveToLastSignal, TableView::CellPosition(7,0));
-
- mAccessibilityManager.SetFocusOrder(lblActionScrollUpSignal,1);
- mAccessibilityManager.SetFocusOrder(lblActionScrollDownSignal,2);
- mAccessibilityManager.SetFocusOrder(lblActionPageLeftSignal,3);
- mAccessibilityManager.SetFocusOrder(lblActionPageRightSignal,4);
- mAccessibilityManager.SetFocusOrder(lblActionPageUpSignal,5);
- mAccessibilityManager.SetFocusOrder(lblActionPageDownSignal,6);
- mAccessibilityManager.SetFocusOrder(lblActionMoveToFirstSignal,7);
- mAccessibilityManager.SetFocusOrder(lblActionMoveToLastSignal,8);
-
- if(! mAccessibilityManager.SetCurrentFocusActor(lblActionScrollUpSignal))
- DBG("unable to set current focus actor");
-}
-
-bool TBTDaliAccessibilityManagerSwipeView::onActionScrollUpSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionScrollUpSignal");
- lblActionScrollUpSignal.SetProperty(TextLabel::Property::TEXT," Action Scroll Up Signal called");
- lblActionScrollUpSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionScrollDownSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionScrollDownSignal");
- lblActionScrollDownSignal.SetProperty(TextLabel::Property::TEXT," Action Scroll Down Signal called");
- lblActionScrollDownSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionPageLeftSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionPageLeftSignal");
- lblActionPageLeftSignal.SetProperty(TextLabel::Property::TEXT," Action Page Left Signal called");
- lblActionPageLeftSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionPageRightSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionPageRightSignal");
- lblActionPageRightSignal.SetProperty(TextLabel::Property::TEXT," Action Page Right Signal called");
- lblActionPageRightSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionPageUpSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionPageUpSignal");
- lblActionPageUpSignal.SetProperty(TextLabel::Property::TEXT," Action Page Up Signal called");
- lblActionPageUpSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionPageDownSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionPageDownSignal");
- lblActionPageDownSignal.SetProperty(TextLabel::Property::TEXT," Action Page Down Signal called");
- lblActionPageDownSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionMoveToFirstSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionMoveToFirstSignal");
- lblActionMoveToFirstSignal.SetProperty(TextLabel::Property::TEXT," Action Move To First Signal called");
- lblActionMoveToFirstSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerSwipeView::onActionMoveToLastSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerSwipeView::onActionMoveToLastSignal");
- lblActionMoveToLastSignal.SetProperty(TextLabel::Property::TEXT," Action Move To Last Signal called");
- lblActionMoveToLastSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-flick-view.cpp
- * @brief To test functionality of dali accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#include <view/tbt-dali-accessibility-manager-tap-view.h>
-
-TBTDaliAccessibilityManagerTapView::TBTDaliAccessibilityManagerTapView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Accessibility Manager Tap");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run tbtcoreapp"
- "\n2. Activate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 1</color>"
- " on target shell with root on mode"
- "\n3. One finger single tap on DALi Accessibility Manager Tap. Then focused this with yellow box"
- "\n4. One finger double tap on DALi Accessibility Manager Tap."
- "\n5. One finger up/down on screen focus control are move then action read signal will call"
- "\n6. One finger double tap on focused control then action activate signal will call."
- "\n7. One finger triple tap on screen then action zoom signal will call."
- "\n8. Two fingers triple tap on screen then action read indicator information signal will call"
- "\n9. Two fingers single tap on screen then action read pause resume signal will call"
- "\n10. Two finger double tap on screen then action start stop signal will call"
- "\n11. One finger flick right/left on screen to change the focus control then action read next and action read previous signal will call."
- //"\n12. Three finger single tap on screen then action read from top signal will call."
- //"\n13. Three finger double tap on screen then action read from next signal will call."
- "\n12. Before finished test deactivate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 0</color>"
- "\n13. If the corresponding event signals "
- "mgs are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>.";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- mAccessibilityManager = AccessibilityManager::Get();
-
- mAccessibilityManager.ActionActivateSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionActivateSignal);
- mAccessibilityManager.ActionReadSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionReadSignal);
- mAccessibilityManager.ActionReadFromTopSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionReadFromTopSignal);
- mAccessibilityManager.ActionReadFromNextSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionReadFromNextSignal);
- mAccessibilityManager.ActionZoomSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionZoomSignal);
- mAccessibilityManager.ActionReadIndicatorInformationSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionReadIndicatorInformationSignal);
- mAccessibilityManager.ActionReadPauseResumeSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionReadPauseResumeSignal);
- mAccessibilityManager.ActionStartStopSignal().Connect(this,&TBTDaliAccessibilityManagerTapView::onActionStartStopSignal);
-
- mTableView=TableView::New(12,1);
- mTableView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- mTableView.SetParentOrigin(ParentOrigin::TOP_LEFT);
- mTableView.SetSize(this->bodySize);
- mTableView.SetPosition(0.0f, 0.0f);
- this->ctlBody.Add(mTableView);
-
- Property::Map ctl;
- Property::Map size;
-
- ctl["lbl1"]=" Action activate signal not call";
- ctl["lbl2"]=" Action read signal not call";
- ctl["lbl3"]=" Action zoom signal not call";
- ctl["lbl4"]=" Action read indicator information signal not call";
- ctl["lbl5"]=" Action read pause resume signal not call";
- ctl["lbl6"]=" Action start stop signal not call";
-// ctl["lbl7"]=" Action read from top signal not call";
-// ctl["lbl8"]=" Action read from next signal not call";
-
-
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl6"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl7"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl8"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- //CreateLabelList(ctl,size);
- AddLabelToTable(mTableView,ctl,size);
-
- DBG("Count >>>>>> %d",ctlBody.GetChildCount());
- int count=mTableView.GetChildCount();
- DBG("TableView Child Count >>>>>> %d",count);
-
- lblActionActivateSignal=TextLabel::DownCast(mTableView.GetChildAt(0));
- lblActionReadSignal=TextLabel::DownCast(mTableView.GetChildAt(1));
- lblActionZoomSignal=TextLabel::DownCast(mTableView.GetChildAt(2));
- lblActionReadIndicatorInformationSignal=TextLabel::DownCast(mTableView.GetChildAt(3));
-
- // this signal is used no longer because indicator is deprecated. So this test is passed unconditionally.
- lblActionReadIndicatorInformationSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- lblActionReadPauseResumeSignal=TextLabel::DownCast(mTableView.GetChildAt(4));
- lblActionStartStopSignal=TextLabel::DownCast(mTableView.GetChildAt(5));
-// lblActionReadFromTopSignal=TextLabel::DownCast(mTableView.GetChildAt(6));
-// lblActionReadFromNextSignal=TextLabel::DownCast(mTableView.GetChildAt(7));
-
- mTableView.AddChild(lblActionActivateSignal, TableView::CellPosition(0,0));
- mTableView.AddChild(lblActionReadSignal, TableView::CellPosition(1,0));
- mTableView.AddChild(lblActionZoomSignal, TableView::CellPosition(2,0));
- mTableView.AddChild(lblActionReadIndicatorInformationSignal, TableView::CellPosition(3,0));
- mTableView.AddChild(lblActionReadPauseResumeSignal, TableView::CellPosition(4,0));
- mTableView.AddChild(lblActionStartStopSignal, TableView::CellPosition(5,0));
-// mTableView.AddChild(lblActionReadFromTopSignal, TableView::CellPosition(6,0));
-// mTableView.AddChild(lblActionReadFromNextSignal, TableView::CellPosition(7,0));
-
- mAccessibilityManager.SetFocusOrder(lblActionActivateSignal,1);
- mAccessibilityManager.SetFocusOrder(lblActionReadSignal,mAccessibilityManager.GenerateNewFocusOrder());
- mAccessibilityManager.SetFocusOrder(lblActionZoomSignal,mAccessibilityManager.GenerateNewFocusOrder());
- mAccessibilityManager.SetFocusOrder(lblActionReadIndicatorInformationSignal,mAccessibilityManager.GenerateNewFocusOrder());
- mAccessibilityManager.SetFocusOrder(lblActionReadPauseResumeSignal,mAccessibilityManager.GenerateNewFocusOrder());
- mAccessibilityManager.SetFocusOrder(lblActionStartStopSignal,mAccessibilityManager.GenerateNewFocusOrder());
-// mAccessibilityManager.SetFocusOrder(lblActionReadFromTopSignal,mAccessibilityManager.GenerateNewFocusOrder());
-// mAccessibilityManager.SetFocusOrder(lblActionReadFromNextSignal,mAccessibilityManager.GenerateNewFocusOrder());
-
- if(! mAccessibilityManager.SetCurrentFocusActor(lblActionActivateSignal))
- DBG("unable to set current focus actor");
-}
-
-bool TBTDaliAccessibilityManagerTapView::onActionActivateSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionActivateSignal");
- lblActionActivateSignal.SetProperty(TextLabel::Property::TEXT," Action Activate Signal called");
- lblActionActivateSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionReadSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionReadSignal");
- lblActionReadSignal.SetProperty(TextLabel::Property::TEXT," Action Read Signal called");
- lblActionReadSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionReadFromTopSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onFocusedActorActivatedSignal");
-// lblActionReadFromTopSignal.SetProperty(TextLabel::Property::TEXT," Action Read From Top Signal called");
-// lblActionReadFromTopSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionReadFromNextSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionReadFromNextSignal");
-// lblActionReadFromNextSignal.SetProperty(TextLabel::Property::TEXT," Action Read From Next Signal called");
-// lblActionReadFromNextSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionZoomSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionZoomSignal");
- lblActionZoomSignal.SetProperty(TextLabel::Property::TEXT," Action Zoom Signal called");
- lblActionZoomSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionReadIndicatorInformationSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionReadIndicatorInformationSignal");
- lblActionReadIndicatorInformationSignal.SetProperty(TextLabel::Property::TEXT," Action Read Indicator Information Signal called");
- lblActionReadIndicatorInformationSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionReadPauseResumeSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionReadPauseResumeSignal");
- lblActionReadPauseResumeSignal.SetProperty(TextLabel::Property::TEXT," Action Read Pause Resume Signal called");
- lblActionReadPauseResumeSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerTapView::onActionStartStopSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerTapView::onActionStartStopSignal");
- lblActionStartStopSignal.SetProperty(TextLabel::Property::TEXT," Action Start Stop Signal called");
- lblActionStartStopSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-accessibility-manager-view.cpp
- * @brief To test functionality of dali accessibility manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include <view/tbt-dali-accessibility-manager-view.h>
-
-TBTDaliAccessibilityManagerView::TBTDaliAccessibilityManagerView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Accessibility Manager");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run tbtcoreapp"
- "\n2. Activate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 1</color>"
- " on target shell with root on mode"
- "\n3. One finger single tap on DALi Accessibility Manager. Then focused this with yellow box"
- "\n4. One finger double tap on DALi Accessibility Manager."
- "\n5. One finger swipe up/down on screen to change the focus control and then focus change signal will call"
- "\n6. One finger swipe down until last control to select then again swipe down then focus overshot signal call"
- "\n7. One Finger single/double tap on selected control then focused actor activated signal will call"
-// "\n8. One finger move on screen then action over signal will call"
-// "\n9. Double finger down and move up and right then action up signal will call"
-// "\n10. Double finger down and move down and left then action down signal will call"
-// "\n11. Clear the focus control then action clear focus signal will call"
-// "\n12. Two fingers circle draw on screen then action back signal will call"
- "\n8. Two fingers drag on screen then action scroll signal will call"
- "\n9. Deactivate the accessibility by run <color value='blue'><b>sh-3.2#</b> vconftool set -f -t bool db/setting/accessibility/tts 0</color>"
- "\n10 After deactivate status changed signal will call"
- "\n11. If the corresponding event signals "
- "mgs are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>.";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- mAccessibilityManager = AccessibilityManager::Get();
-
- mTableView=TableView::New(15,1);
- mTableView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- mTableView.SetParentOrigin(ParentOrigin::TOP_LEFT);
- mTableView.SetSize(this->bodySize);
- mTableView.SetPosition(0.0f, 0.0f);
- this->ctlBody.Add(mTableView);
-
- Property::Map ctl;
- Property::Map size;
-
- ctl["lbl1"]=" Focus changed signal not call";
- ctl["lbl2"]=" Focus overshot signal not call";
- ctl["lbl3"]=" Focused actor activated signal not call";
- ctl["lbl4"]=" Accessibility Status changed signal not call";
- ctl["lbl5"]=" Action scroll signal not call";
-// ctl["lbl5"]=" Action over signal not call";
-// ctl["lbl6"]=" Action up signal not call";
-// ctl["lbl7"]=" Action down signal not call";
-// ctl["lbl8"]=" Action clear focus signal not call";
-// ctl["lbl9"]=" Action back signal not call";
-
-
-
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl6"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl7"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl8"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-// size["lbl9"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
-
- //CreateLabelList(ctl,size);
- AddLabelToTable(mTableView,ctl,size);
-
- DBG("Count >>>>>> %d",ctlBody.GetChildCount());
- int count=mTableView.GetChildCount();
- DBG("TableView Child Count >>>>>> %d",count);
-
- lblFocusChangedSignal=TextLabel::DownCast(mTableView.GetChildAt(0));
- lblFocusOvershotSignal=TextLabel::DownCast(mTableView.GetChildAt(1));
- lblFocusedActorActivatedSignal=TextLabel::DownCast(mTableView.GetChildAt(2));
- lblStatusChangedSignal=TextLabel::DownCast(mTableView.GetChildAt(3));
- lblActionScrollSignal=TextLabel::DownCast(mTableView.GetChildAt(4));
-// lblActionOverSignal=TextLabel::DownCast(mTableView.GetChildAt(4));
-// lblActionUpSignal=TextLabel::DownCast(mTableView.GetChildAt(5));
-// lblActionDownSignal=TextLabel::DownCast(mTableView.GetChildAt(6));
-// lblActionClearFocusSignal=TextLabel::DownCast(mTableView.GetChildAt(7));
-// lblActionBackSignal=TextLabel::DownCast(mTableView.GetChildAt(8));
-
-
- mTableView.AddChild(lblFocusChangedSignal, TableView::CellPosition(0,0));
- mTableView.AddChild(lblFocusOvershotSignal, TableView::CellPosition(1,0));
- mTableView.AddChild(lblFocusedActorActivatedSignal, TableView::CellPosition(2,0));
- mTableView.AddChild(lblStatusChangedSignal, TableView::CellPosition(3,0));
- mTableView.AddChild(lblActionScrollSignal, TableView::CellPosition(4,0));
-// mTableView.AddChild(lblActionOverSignal, TableView::CellPosition(4,0));
-// mTableView.AddChild(lblActionUpSignal, TableView::CellPosition(5,0));
-// mTableView.AddChild(lblActionDownSignal, TableView::CellPosition(6,0));
-// mTableView.AddChild(lblActionClearFocusSignal, TableView::CellPosition(7,0));
-// mTableView.AddChild(lblActionBackSignal, TableView::CellPosition(8,0));
-
-
- mAccessibilityManager.SetFocusOrder(lblFocusChangedSignal,1);
- mAccessibilityManager.SetFocusOrder(lblFocusOvershotSignal,2);
- mAccessibilityManager.SetFocusOrder(lblFocusedActorActivatedSignal,3);
- mAccessibilityManager.SetFocusOrder(lblStatusChangedSignal,4);
- mAccessibilityManager.SetFocusOrder(lblActionScrollSignal,5);
-// mAccessibilityManager.SetFocusOrder(lblActionOverSignal,6);
-// mAccessibilityManager.SetFocusOrder(lblActionUpSignal,7);
-// mAccessibilityManager.SetFocusOrder(lblActionDownSignal,8);
-// mAccessibilityManager.SetFocusOrder(lblActionClearFocusSignal,9);
-// mAccessibilityManager.SetFocusOrder(lblActionBackSignal,10);
-
-
- if(! mAccessibilityManager.SetCurrentFocusActor(lblFocusChangedSignal))
- DBG("unable to set current focus actor");
-
-// slider=Slider::New();
-// slider.SetParentOrigin( ParentOrigin::TOP_LEFT );
-// slider.SetAnchorPoint( AnchorPoint::TOP_LEFT );
-// slider.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
-// slider.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
-//
-// mTableView.AddChild(slider, TableView::CellPosition(11,0));
-// mAccessibilityManager.SetFocusOrder(slider,mAccessibilityManager.GenerateNewFocusOrder());
-//
-// Vector2 buttonSize=Vector2(bodySize.width, BUTTON_HEIGHT*bodySize.height);
-// Vector2 pos=Vector2(0.0f, 0.0f);
-//
-// btnClear=CreateButton(AnchorPoint::TOP_LEFT, pos, "Clear Focus", selectedColor, unSelectedColor, buttonSize);
-// btnClear.ClickedSignal().Connect(this,&TBTDaliAccessibilityManagerView::OnClearClick);
-// mAccessibilityManager.SetFocusOrder( btnClear, mAccessibilityManager.GenerateNewFocusOrder());
-//
-// mTableView.AddChild(btnClear, TableView::CellPosition(13,0));
-
- mAccessibilityManager.FocusChangedSignal().Connect(this,&TBTDaliAccessibilityManagerView::onFocusChangedSignal);
- mAccessibilityManager.FocusOvershotSignal().Connect(this,&TBTDaliAccessibilityManagerView::onFocusOvershotSignal);
- mAccessibilityManager.FocusedActorActivatedSignal().Connect(this,&TBTDaliAccessibilityManagerView::onFocusedActorActivatedSignal);
- mAccessibilityManager.StatusChangedSignal().Connect(this,&TBTDaliAccessibilityManagerView::onStatusChangedSignal);
- mAccessibilityManager.ActionOverSignal().Connect(this,&TBTDaliAccessibilityManagerView::onActionOverSignal);
- mAccessibilityManager.ActionUpSignal().Connect(this,&TBTDaliAccessibilityManagerView::onActionUpSignal);
- mAccessibilityManager.ActionDownSignal().Connect(this,&TBTDaliAccessibilityManagerView::onActionDownSignal);
- mAccessibilityManager.ActionClearFocusSignal().Connect(this,&TBTDaliAccessibilityManagerView::onActionClearFocusSignal);
- mAccessibilityManager.ActionBackSignal().Connect(this,&TBTDaliAccessibilityManagerView::onActionBackSignal);
- mAccessibilityManager.ActionScrollSignal().Connect(this,&TBTDaliAccessibilityManagerView::onActionScrollSignal);
-}
-
-bool TBTDaliAccessibilityManagerView::OnClearClick(Button button)
-{
- DBG("In TBTDaliAccessibilityManagerView::OnClearClick");
- mAccessibilityManager.ClearFocus();
- //mAccessibilityManager.Reset();
- return true;
-}
-
-void TBTDaliAccessibilityManagerView::onFocusChangedSignal(Actor previous, Actor next)
-{
- DBG("In TBTDaliAccessibilityManagerView::onFocusChangedSignal");
- lblFocusChangedSignal.SetProperty(TextLabel::Property::TEXT," Focus Changed Signal called");
- lblFocusChangedSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliAccessibilityManagerView::onFocusOvershotSignal(Actor actor, AccessibilityManager::FocusOvershotDirection director)
-{
- DBG("In TBTDaliAccessibilityManagerView::onFocusOvershotSignal");
- lblFocusOvershotSignal.SetProperty(TextLabel::Property::TEXT," Focus Overshot Signal called");
- lblFocusOvershotSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliAccessibilityManagerView::onFocusedActorActivatedSignal(Actor actor)
-{
- DBG("In TBTDaliAccessibilityManagerView::onFocusedActorActivatedSignal");
- lblFocusedActorActivatedSignal.SetProperty(TextLabel::Property::TEXT," Focused Actor Activated Signal called");
- lblFocusedActorActivatedSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-bool TBTDaliAccessibilityManagerView::onStatusChangedSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerView::onStatusChangedSignal");
- lblStatusChangedSignal.SetProperty(TextLabel::Property::TEXT," Accessibility Status Changed Signal called");
- lblStatusChangedSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerView::onActionOverSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerView::onActionOverSignal");
-// lblActionOverSignal.SetProperty(TextLabel::Property::TEXT," Action Over Signal called");
-// lblActionOverSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerView::onActionUpSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerView::onActionUpSignal");
-// lblActionUpSignal.SetProperty(TextLabel::Property::TEXT," Action Up Signal called");
-// lblActionUpSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerView::onActionDownSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerView::onActionDownSignal");
-// lblActionDownSignal.SetProperty(TextLabel::Property::TEXT," Action Down Signal called");
-// lblActionDownSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerView::onActionClearFocusSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerView::onActionClearFocusSignal");
-// lblActionClearFocusSignal.SetProperty(TextLabel::Property::TEXT," Action Clear Focus Signal called");
-// lblActionClearFocusSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerView::onActionBackSignal(AccessibilityManager& manager)
-{
- DBG("In TBTDaliAccessibilityManagerView::onActionBackSignal");
-// lblActionBackSignal.SetProperty(TextLabel::Property::TEXT," Action Back Signal called");
-// lblActionBackSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliAccessibilityManagerView::onActionScrollSignal(AccessibilityManager& manager, const Dali::TouchEvent& event)
-{
- DBG("In TBTDaliAccessibilityManagerView::onActionScrollSignal");
- lblActionScrollSignal.SetProperty(TextLabel::Property::TEXT," Action Scroll Signal called");
- lblActionScrollSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-actor-view.cpp
- * @brief To test functionality of dali actor
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-actor-view.h"
-
-std::string GetState ( TouchPoint::State state )
-{
- std::string ret="";
- switch(state)
- {
- case TouchPoint::Started:
- {
- if(TouchPoint::Started==state)
- ret="Started";
- else
- ret="Down";
- }
- break;
-
- case TouchPoint::Finished:
- {
- if(TouchPoint::Finished==state)
- ret="Finished";
- else
- ret="Up";
- }
- break;
-
- case TouchPoint::Motion:
- ret="Motion";
- break;
-
- case TouchPoint::Leave:
- ret="Leave";
- break;
-
- case TouchPoint::Stationary:
- ret="Stationary";
- break;
-
- case TouchPoint::Interrupted:
- ret="Interrupted";
- break;
-
- case TouchPoint::Last:
- ret="Last";
- break;
-
- default:
- ret="None";
- break;
- }
- return ret;
-}
-
-std::string GetPointState ( PointState::Type state )
-{
- std::string str="";
- switch(state)
- {
- case PointState::STARTED:
- str="STARTED/DOWN";
- break;
- case PointState::FINISHED:
- str="FINISHED/UP";
- break;
- case PointState::MOTION:
- str="MOTION";
- break;
- case PointState::LEAVE:
- str="LEAVE";
- break;
- case PointState::STATIONARY:
- str="STATIONARY";
- break;
- case PointState::INTERRUPTED:
- str="INTERRUPTED";
- break;
- default:
- str="None";
- break;
- }
- return str;
-}
-
-
-TBTDaliActorView::TBTDaliActorView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control)
-{
- DBG("In TBTDaliActorView");
-
- Init("Actor");
- mInfoText=std::string("")+
- "\nTo perform the test:\n"
- "1. Run DALi Actor.\n"
- "2. Connect mouse with target using OTG cable.\n"
- "3. Touch/Hover/Wheel on Test Button.\n"
- "4. If the corresponding event signal and data mgs are changed"
- " then press <color value='green'> <b>Pass</b></color>."
- " Otherwise, press <color value='red'><b>Fail</b></color>.\n";
- Vector2 stageSize= Stage::GetCurrent().GetSize();
-
- Property::Map ctl;
- ctl["lbl1"]="Touched signal not call";
- ctl["lbl2"]="Touched event data";
- ctl["lbl3"]="Hover signal not call";
- ctl["lbl4"]="Hover event data";
- ctl["lbl5"]="Wheel signal not call";
- ctl["lbl6"]="Wheel event data";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 2*TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, 2*TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl6"]=Vector2(bodySize.width, 2*TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- txtTouched=TextLabel::DownCast(ctlBody.GetChildAt(0));
- txtTouchEventData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- txtHovered=TextLabel::DownCast(ctlBody.GetChildAt(2));
- txtHoveredData=TextLabel::DownCast(ctlBody.GetChildAt(3));
- txtWheel=TextLabel::DownCast(ctlBody.GetChildAt(4));
- txtWheelData=TextLabel::DownCast(ctlBody.GetChildAt(5));
-
- Vector2 buttonSize=Vector2(bodySize.width, 1.5*BUTTON_HEIGHT*bodySize.height);
- Vector2 position=Vector2(0.0f, bodySize.height - (buttonSize.height + VERTICAL_SPACE*bodySize.height));
- btnButton=CreateButton(AnchorPoint::TOP_LEFT, position, "Test Actor(Touch/Hover/Wheel) Signal", selectedColor, unSelectedColor, buttonSize);
- ctlBody.Add(btnButton);
-
- btnButton.TouchedSignal().Connect(this, &TBTDaliActorView::cbTouchedSignal);
- btnButton.HoveredSignal().Connect(this, &TBTDaliActorView::cbHoveredSignal);
- btnButton.WheelEventSignal().Connect(this, &TBTDaliActorView::cbWheelEventSignal);
- btnButton.ClickedSignal().Connect(this, &TBTDaliActorView::cbButtonClicked);
-}
-bool TBTDaliActorView::cbTouchedSignal(Actor actor, const TouchEvent& event)
-{
- DBG("In cbTouchedSignal");
- this->txtTouched.SetProperty( TextLabel::Property::TEXT, "Touched Signal is Called" );
- this->txtTouched.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- std::string txt="";
- //point count
- int pointcount=event.GetPointCount();
- txt.append("Point count: ");
- txt.append(IntToString(pointcount));
-
- //getpoint by index
- TouchPoint touchpoint=event.GetPoint(pointcount-1);
- //device id
- int deviceId=touchpoint.deviceId;
- txt.append(" DeviceId: ");
- txt.append(IntToString(deviceId));
- //touch point count
- int touchcount=event.GetPointCount();
- if(touchcount<1)
- DBG("Unable to get GetPointCount");
- txt.append(", Point count: ");
- txt.append(IntToString(touchcount));
-
- //
- Actor hitActor=touchpoint.hitActor;
- PushButton btn=PushButton::DownCast(hitActor);
- txt.append(", Hit Actor: ");
-
- Property::Value value = btn.GetProperty( Toolkit::Button::Property::LABEL );
- Property::Map *labelProperty = value.GetMap();
- std::string textLabel;
- if( labelProperty )
- {
- Property::Value* value = labelProperty->Find( Toolkit::TextVisual::Property::TEXT );
- value->Get( textLabel );
- }
- txt.append(textLabel);
-
- //state
- txt.append(", State: ");
- txt.append(GetState(touchpoint.state));
-
- //local point
- Vector2 local=touchpoint.local;
- txt.append(", Hit actor point: ");
- txt.append("("+IntToString(local.x)+","+IntToString(local.y)+")");
-
- //screen point
- Vector2 screen=touchpoint.screen;
- txt.append(", Screen point: ");
- txt.append("("+IntToString(screen.x)+","+IntToString(screen.y)+")");
-
- //time
- unsigned long time=event.time/1000;
- txt.append(", Touch time: ");
- int hr=(time/3600)%24;
- int sec=time%3600;
- int min=sec/60;
- sec=sec%60;
- txt.append(LongToString(hr)+":"+LongToString(min)+":"+LongToString(sec));
-
- //touch point container
- TouchPointContainer touchcontainer=event.points;
- txt.append(", Touch list count: ");
- txt.append(IntToString(touchcontainer.size()));
-
- TouchPoint touchPoint1(pointcount-1, TouchPoint::Started, 100.0f, 100.0f);
- if(touchPoint1.deviceId != pointcount-1)
- DBG("device id mismatch for touch point");
-
- TouchPoint touchPoint2(pointcount-1, TouchPoint::Started, 100.0f, 100.0f, 200.0f, 200.0f);
- if(touchPoint2.deviceId != pointcount-1)
- DBG("device id mismatch for touch point");
-
- this->txtTouchEventData.SetProperty( TextLabel::Property::TEXT, txt );
- this->txtTouchEventData.SetProperty( TextLabel::Property::POINT_SIZE, 7.0f );
- this->txtTouchEventData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::CYAN);
-
- return true;
-}
-
-bool TBTDaliActorView::cbHoveredSignal(Actor actor, const HoverEvent& event)
-{
- DBG("In cbHoveredSignal");
- this->txtHovered.SetProperty( TextLabel::Property::TEXT, "Hover Signal is Called" );
- this->txtHovered.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- std::string txt="";
- //touch point count
- int touchcount=event.GetPointCount();
- if(touchcount<1)
- DBG("Unable to get GetPointCount");
- txt.append("Point count: ");
- txt.append(IntToString(touchcount));
- TouchPoint touchpoint=event.GetPoint(touchcount-1);
-
-
- //device id
- int deviceId=touchpoint.deviceId;
- txt.append("DeviceId: ");
- txt.append(IntToString(deviceId));
-
- //
- Actor hitActor=touchpoint.hitActor;
- PushButton btn=PushButton::DownCast(hitActor);
- txt.append(", Hit Actor: ");
- Property::Value value = btn.GetProperty( Toolkit::Button::Property::LABEL );
- Property::Map *labelProperty = value.GetMap();
- std::string textLabel;
- if( labelProperty )
- {
- Property::Value* value = labelProperty->Find( Toolkit::TextVisual::Property::TEXT );
- value->Get( textLabel );
- }
- txt.append(textLabel);
-
- //state
- txt.append(", State: ");
- txt.append(GetState(touchpoint.state));
-
- //local point
- Vector2 local=touchpoint.local;
- txt.append(", Hit actor point: ");
- txt.append("("+IntToString(local.x)+","+IntToString(local.y)+")");
-
- //screen point
- Vector2 screen=touchpoint.screen;
- txt.append(", Screen point: ");
- txt.append("("+IntToString(screen.x)+","+IntToString(screen.y)+")");
-
- //time
- unsigned long time=event.time/1000;
- txt.append(", Touch time: ");
- int hr=(time/3600)%24;
- int sec=time%3600;
- int min=sec/60;
- sec=sec%60;
- txt.append(LongToString(hr)+":"+LongToString(min)+":"+LongToString(sec));
-
- //touch point container
- TouchPointContainer touchcontainer=event.points;
- txt.append(", Touch list count: ");
- txt.append(IntToString(touchcontainer.size()));
-
- this->txtHoveredData.SetProperty( TextLabel::Property::TEXT, txt );
- this->txtHoveredData.SetProperty( TextLabel::Property::POINT_SIZE, 7.0f );
- this->txtHoveredData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::CYAN);
-
- return true;
-}
-bool TBTDaliActorView::cbWheelEventSignal(Actor actor, const WheelEvent& event)
-{
- DBG("In cbWheelEventSignal");
- this->txtWheel.SetProperty( TextLabel::Property::TEXT, "Wheel Signal is Called" );
- this->txtWheel.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- string txt;
- if(event.IsAltModifier())
- {
- DBG("Is alt modified");
- txt.append("\n Alt Modifier: Yes");
- }
- else
- txt.append("\n Alt Modifier: No");
-
- if(event.IsCtrlModifier())
- {
- DBG("Is ctrl modified");
- txt.append("\n Ctrl Modifier: Yes");
- }
- else
- txt.append("\n Ctrl Modifier: No");
-
- if(event.IsShiftModifier())
- {
- DBG("Is Shift modified");
- txt.append("\n Shift Modifier: Yes");
- }
- else
- txt.append(" Shift Modifier: No");
-
- WheelEvent wheelevent1;
- WheelEvent wheelevent2(WheelEvent::MOUSE_WHEEL,1,DALI_KEY_SHIFT_LEFT,Vector2(100.0f,100.0f),1,12121212);
- if(wheelevent2.direction != 1)
- DBG("wheel event constructor failed");
-
- txt.append("\n Wheel direction: ");
- txt.append(IntToString(event.direction));
-
- if(event.type == WheelEvent::MOUSE_WHEEL)
- txt.append("\n Wheel type: MOUSE_WHEEL");
- if(event.type == WheelEvent::CUSTOM_WHEEL)
- txt.append("\n Wheel type: CUSTOM_WHEEL");
-
- this->txtWheelData.SetProperty( TextLabel::Property::TEXT, txt );
- this->txtWheelData.SetProperty( TextLabel::Property::POINT_SIZE, 7.0f );
- this->txtWheelData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::CYAN);
- return true;
-}
-bool TBTDaliActorView::cbButtonClicked(Button button)
-{
- DBG("In cbButtonClicked");
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-app-view.cpp
- * @brief To test functionality of dali app
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-app-view.h"
-
-TBTDaliAppView::TBTDaliAppView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Application Signal");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Application."
- "\n2. Occurred the corresponding event for application state change. Ex. if change the region/language from settings."
- "\n3. If the corresponding event signals mgs "
- "are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- Property::Map size;
-
- //ctl["lbl1"]=" Terminate signal not call";
- ctl["lbl2"]=" Pause signal not call";
- ctl["lbl3"]=" Idle signal not call";
- ctl["lbl4"]=" AppControl signal not call";
- //ctl["lbl5"]=" Battery low signal not call";
- ctl["lbl6"]=" Language changed signal not call";
- //ctl["lbl7"]=" Memory low signal not call";
- ctl["lbl8"]=" Region changed signal not call";
- //ctl["lbl9"]=" Reset signal not call";
- ctl["lbl10"]=" Resume signal not call";
- //ctl["lbl11"]=" Resize signal not call";
-
- //size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl6"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl7"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl8"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl9"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl10"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl11"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
-
- //lblTerminateSignal=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPauseSignal=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblIdleSignal=TextLabel::DownCast(ctlBody.GetChildAt(1));
- lblAppControlSignal=TextLabel::DownCast(ctlBody.GetChildAt(2));
- //lblBatteryLowSignal=TextLabel::DownCast(ctlBody.GetChildAt(4));
- lblLanguageChangedSignal=TextLabel::DownCast(ctlBody.GetChildAt(3));
- //lblMemoryLowSignal=TextLabel::DownCast(ctlBody.GetChildAt(6));
- lblRegionChangedSignal=TextLabel::DownCast(ctlBody.GetChildAt(4));
- //lblResetSignal=TextLabel::DownCast(ctlBody.GetChildAt(8));
- lblResumeSignal=TextLabel::DownCast(ctlBody.GetChildAt(5));
- //lblResizeSignal=TextLabel::DownCast(ctlBody.GetChildAt(10));
-
- mApplication.TerminateSignal().Connect( this, &TBTDaliAppView::OnTerminate);
- mApplication.PauseSignal().Connect( this, &TBTDaliAppView::OnPause );
- mApplication.AddIdle( MakeCallback( this, &TBTDaliAppView::OnIdle ) );
- //mApplication.BatteryLowSignal().Connect( this, &TBTDaliAppView::OnApplicationBatteryLowSignalCallback );
- mApplication.LanguageChangedSignal().Connect(this, &TBTDaliAppView::OnApplicationLanguageChangedSignalCallback );
- //mApplication.MemoryLowSignal().Connect(this, &TBTDaliAppView::OnApplicationMemoryLowSignalCallback);
- mApplication.RegionChangedSignal().Connect(this, &TBTDaliAppView::OnApplicationRegionChangedSignalCallback);
- //mApplication.ResetSignal().Connect(this, &TBTDaliAppView::OnApplicationResetSignalCallback);
- mApplication.ResumeSignal().Connect(this, &TBTDaliAppView::OnApplicationResumeSignalCallback);
- //mApplication.ResizeSignal().Connect(this, &TBTDaliAppView::OnApplicationResizeSignalCallback);
-
- stage.ContextLostSignal().Connect(this,&TBTDaliAppView::onContextLost);
- stage.ContextRegainedSignal().Connect(this,&TBTDaliAppView::onContextRegain);
-
- lblAppControlSignal.SetProperty(TextLabel::Property::TEXT," App control signal called");
- lblAppControlSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblAppControlSignal.SetProperty(TextLabel::Property::POINT_SIZE,8);
-}
-void TBTDaliAppView::onContextLost()
-{
- DBG("In DaliTestController::onContextLost");
-// txtContext.SetProperty(TextLabel::Property::TEXT,"Context lost event is called");
-// txtContext.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliAppView::onContextRegain()
-{
- DBG("In DaliTestController::onContextRegain");
-// txtContextRegain.SetProperty(TextLabel::Property::TEXT,"Context regain event is called");
-// txtContextRegain.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-bool TBTDaliAppView::lowerButtonClicked(Button)
-{
- DBG("DaliTestController::lowerButtonClicked");
- mApplication.Lower();
- return true;
-}
-
-bool TBTDaliAppView::resetButtonClicked(Button)
-{
- DBG("DaliTestController::resetButtonClicked");
- mApplication.Reset();
- return true;
-}
-
-bool TBTDaliAppView::resizeButtonClicked(Button)
-{
- DBG("DaliTestController::resizeButtonClicked");
- Window window = mApplication.GetWindow();
- //window.RotateIndicator(Window::LANDSCAPE);
- mApplication.ReplaceWindow(PositionSize( 0, 0, Stage::GetCurrent().GetSize().width - 1, Stage::GetCurrent().GetSize().height - 1) ,"Window");
- //window=Window::New(PositionSize( 0, 0, Stage::GetCurrent().GetSize().width - 1, Stage::GetCurrent().GetSize().height - 1), "New Window", true);
- return true;
-}
-void TBTDaliAppView::OnTerminate(Application& app)
-{
- DBG("DaliTestController::OnTerminate");
-// lblTerminateSignal.SetProperty(TextLabel::Property::TEXT," Terminate signal called");
-// lblTerminateSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-// lblTerminateSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-void TBTDaliAppView::OnPause(Application& app)
-{
- DBG("DaliTestController::OnPause");
- lblPauseSignal.SetProperty(TextLabel::Property::TEXT," Pause signal called");
- lblPauseSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPauseSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-
-void TBTDaliAppView::OnIdle()
-{
- DBG("DaliTestController::OnIdle");
- lblIdleSignal.SetProperty(TextLabel::Property::TEXT," Idle signal called");
- lblIdleSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblIdleSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-//void TBTDaliAppView::OnApplicationBatteryLowSignalCallback(Application& app)
-//{
-// DBG("DaliTestController::OnApplicationBatteryLowSignalCallback");
-// lblBatteryLowSignal.SetProperty(TextLabel::Property::TEXT," Battery signal called");
-// lblBatteryLowSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-// lblBatteryLowSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-//}
-void TBTDaliAppView::OnApplicationLanguageChangedSignalCallback(Application&)
-{
- DBG("DaliTestController::OnApplicationLanguageChangedSignalCallback");
- lblLanguageChangedSignal.SetProperty(TextLabel::Property::TEXT," Language changed signal called");
- lblLanguageChangedSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblLanguageChangedSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-//void TBTDaliAppView::OnApplicationMemoryLowSignalCallback(Application& app)
-//{
-// DBG("DaliTestController::OnApplicationMemoryLowSignalCallback");
-// lblMemoryLowSignal.SetProperty(TextLabel::Property::TEXT," Memory low signal called");
-// lblMemoryLowSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-// lblMemoryLowSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-//}
-void TBTDaliAppView::OnApplicationRegionChangedSignalCallback(Application& app)
-{
- DBG("DaliTestController::OnApplicationRegionChangedSignalCallback");
- lblRegionChangedSignal.SetProperty(TextLabel::Property::TEXT," Region chanhed signal called");
- lblRegionChangedSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblRegionChangedSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-void TBTDaliAppView::OnApplicationResetSignalCallback(Application& app)
-{
- DBG("DaliTestController::OnApplicationResetSignalCallback");
- lblResetSignal.SetProperty(TextLabel::Property::TEXT," Reset signal called");
- lblResetSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblResetSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-void TBTDaliAppView::OnApplicationResumeSignalCallback(Application& app)
-{
- DBG("DaliTestController::OnApplicationResumeSignalCallback");
- lblResumeSignal.SetProperty(TextLabel::Property::TEXT," Resume signal called");
- lblResumeSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblResumeSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
-void TBTDaliAppView::OnApplicationResizeSignalCallback(Application& app)
-{
- DBG("DaliTestController::OnApplicationResizeSignalCallback");
- lblResizeSignal.SetProperty(TextLabel::Property::TEXT," Resize signal called");
- lblResizeSignal.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblResizeSignal.SetProperty(TextLabel::Property::POINT_SIZE, 8);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-button-view.cpp
- * @brief To test functionality of dali button
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-button-view.h"
-
-TBTDaliButtonView::TBTDaliButtonView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Button");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:\n"
- "1. Run DALi Button.\n"
- "2. Touch on the test button.\n"
- "3. If the corresponding event signals mgs\n"
- " are changed then press <color value='green'><b>Pass</b></color>."
- " Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- Property::Map ctl;
- ctl["lbl1"]="Button click event not call";
- ctl["lbl2"]="Button press event not call";
- ctl["lbl3"]="Button release event not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- txtClick=TextLabel::DownCast(ctlBody.GetChildAt(0));
- txtPress=TextLabel::DownCast(ctlBody.GetChildAt(1));
- txtRelease=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- Vector2 buttonSize=Vector2(bodySize.width, BUTTON_HEIGHT*bodySize.height);
- Vector2 position=Vector2(0.0f, bodySize.height - (buttonSize.height + VERTICAL_SPACE*bodySize.height));
- btnTest=CreateButton(AnchorPoint::TOP_LEFT, position, "Test Button(Click/Press/Release) Signal", selectedColor, unSelectedColor, buttonSize);
- ctlBody.Add(btnTest);
-
- btnTest.ClickedSignal().Connect(this,&TBTDaliButtonView::onClicked);
- btnTest.PressedSignal().Connect(this,&TBTDaliButtonView::onPressed);
- btnTest.ReleasedSignal().Connect(this,&TBTDaliButtonView::onReleased);
-}
-
-bool TBTDaliButtonView::onClicked(Button button)
-{
- DBG("In TBTDaliButtonView::onClicked");
- this->txtClick.SetProperty( TextLabel::Property::TEXT, "Button clicked signal called" );
- this->txtClick.SetProperty( TextLabel::Property::POINT_SIZE, 8.0f );
- this->txtClick.SetProperty( TextLabel::Property::TEXT_COLOR,Color::CYAN);
- return true;
-}
-bool TBTDaliButtonView::onPressed(Button button)
-{
- DBG("In TBTDaliButtonView::onPressed");
- this->txtPress.SetProperty( TextLabel::Property::TEXT, "Button pressed signal called" );
- this->txtPress.SetProperty( TextLabel::Property::POINT_SIZE, 8.0f );
- this->txtPress.SetProperty( TextLabel::Property::TEXT_COLOR,Color::CYAN);
- return true;
-}
-bool TBTDaliButtonView::onReleased(Button button)
-{
- DBG("In TBTDaliButtonView::onReleased");
- this->txtRelease.SetProperty( TextLabel::Property::TEXT, "Button released signal called" );
- this->txtRelease.SetProperty( TextLabel::Property::POINT_SIZE, 8.0f );
- this->txtRelease.SetProperty( TextLabel::Property::TEXT_COLOR,Color::CYAN);
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-keyboard-focus-manager-view.cpp
- * @brief To test functionality of dali keyboard focus manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-keyboard-focus-manager-view.h"
-
-TBTDaliKeyBoardFocusManagerView::TBTDaliKeyBoardFocusManagerView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Key Board Focus Manager");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Keyboard Focus Manager."
- "\n2. Connect keyboard with target using OTG cable."
- "\n3. Press Up/Down key on keyboard to change the focus of control to test PreFocusChangeSignal"
- "\n4. Press enter key on keyboard to test FocusedActorEnterKeySignal"
- "\n5. Press tab key on keyboard to test FocusGroupChangedSignal"
- "\n6. If the corresponding event signals"
- " mgs are changed then press <color value='green'><b>Pass</b></color>."
- " Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
- mFocusManager = KeyboardFocusManager::Get();
-//
- mTableView=TableView::New(10,1);
- mTableView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- mTableView.SetParentOrigin(ParentOrigin::TOP_LEFT);
- mTableView.SetSize(this->bodySize);
- mTableView.SetPosition(0.0f, 0.0f);
- mTableView.SetKeyboardFocusable(true);
- this->ctlBody.Add(mTableView);
-
- mFocusManager.PreFocusChangeSignal().Connect( this, &TBTDaliKeyBoardFocusManagerView::OnPreFocusChange );
- mFocusManager.FocusChangedSignal().Connect( this, &TBTDaliKeyBoardFocusManagerView::OnFocusChanged );
- mFocusManager.FocusGroupChangedSignal().Connect( this, &TBTDaliKeyBoardFocusManagerView::OnFocusGroupChanged );
- mFocusManager.FocusedActorEnterKeySignal().Connect( this, &TBTDaliKeyBoardFocusManagerView::OnFocusedActorEnterKey );
- mFocusManager.SetAsFocusGroup(mTableView,true);
-
- Property::Map ctl;
- Property::Map size;
-
- ctl["lbl1"]="Prefocus signal not call";
- ctl["lbl2"]="Focus change signal not call";
- ctl["lbl3"]="Focus group signal not call";
- ctl["lbl4"]="Focused actor signal not call";
-
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- AddLabelToTable(mTableView,ctl,size);
-
- DBG("Count >>>>>> %d",ctlBody.GetChildCount());
- int count=mTableView.GetChildCount();
- DBG("TableView Child Count >>>>>> %d",count);
-
- lblPreFocus=TextLabel::DownCast(mTableView.GetChildAt(0));
- lblFocusChange=TextLabel::DownCast(mTableView.GetChildAt(1));
- lblFocusGroup=TextLabel::DownCast(mTableView.GetChildAt(2));
- lblFocusActor=TextLabel::DownCast(mTableView.GetChildAt(3));
-
- lblPreFocus.SetKeyboardFocusable(true);
- lblFocusChange.SetKeyboardFocusable(true);
- lblFocusGroup.SetKeyboardFocusable(true);
- lblFocusActor.SetKeyboardFocusable(true);
-
- Vector2 textFieldSize=Vector2(0.7f*bodySize.width, TEXTFIELD_HEIGHT*bodySize.height);
- Vector2 pos=Vector2(0.0f, 0.0f);
-
- Control txtField=CreateTextField(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,pos,"",textFieldSize);
- txt_field1=TextField::DownCast(txtField.GetChildAt(0));
- txtField.SetKeyboardFocusable(true);
- mTableView.AddChild(txtField,TableView::CellPosition(count,0));
- mFocusManager.SetCurrentFocusActor(txtField);
- PushButton::DownCast(txtField.GetChildAt(1)).ClickedSignal().Connect(this, &TBTDaliKeyBoardFocusManagerView::OnButtonClick_1);
-
-
- Control txtField1=CreateTextField(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,pos,"",textFieldSize);
- txt_field2=TextField::DownCast(txtField1.GetChildAt(0));
- txtField1.SetKeyboardFocusable(true);
- mTableView.AddChild(txtField1,TableView::CellPosition(count+1,0));
- PushButton::DownCast(txtField1.GetChildAt(1)).ClickedSignal().Connect(this, &TBTDaliKeyBoardFocusManagerView::OnButtonClick_2);
-
- Control txtField2=CreateTextField(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,pos,"",textFieldSize);
- txt_field3=TextField::DownCast(txtField2.GetChildAt(0));
- txtField2.SetKeyboardFocusable(true);
- mTableView.AddChild(txtField2,TableView::CellPosition(count+2,0));
- PushButton::DownCast(txtField2.GetChildAt(1)).ClickedSignal().Connect(this, &TBTDaliKeyBoardFocusManagerView::OnButtonClick_3);
-}
-bool TBTDaliKeyBoardFocusManagerView::OnButtonClick_1(Button button)
-{
- DBG("TBTDaliKeyBoardFocusManagerView::OnButtonClick_1");
- txt_field1.SetProperty(TextEditor::Property::TEXT,"");
- return true;
-}
-bool TBTDaliKeyBoardFocusManagerView::OnButtonClick_2(Button button)
-{
- DBG("TBTDaliKeyBoardFocusManagerView::OnButtonClick_2");
- txt_field2.SetProperty(TextEditor::Property::TEXT,"");
- return true;
-}
-bool TBTDaliKeyBoardFocusManagerView::OnButtonClick_3(Button button)
-{
- DBG("TBTDaliKeyBoardFocusManagerView::OnButtonClick_3");
- txt_field3.SetProperty(TextEditor::Property::TEXT,"");
- return true;
-}
-
-Actor TBTDaliKeyBoardFocusManagerView::OnPreFocusChange(Actor current, Actor proposed, Control::KeyboardFocus::Direction direction)
-{
- DBG("In TBTDaliKeyBoardFocusManagerView::OnPreFocusChange");
-
- if(!current | !proposed)
- {
- DBG("current and proposed actor NULL");
- Actor actor=mTableView.GetChildAt(4);
- mFocusManager.SetCurrentFocusActor(actor);
- }
- else
- DBG("Current Actor: %s Proposed Actor: %s",current.GetName().c_str(),proposed.GetName().c_str());
-
- lblPreFocus.SetProperty(TextLabel::Property::TEXT,"Pre focus signal called");
- lblPreFocus.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- return proposed;
-}
-void TBTDaliKeyBoardFocusManagerView::OnFocusChanged(Actor current, Actor proposed)
-{
- DBG("In TBTDaliKeyBoardFocusManagerView::OnFocusChanged");
-
- lblFocusChange.SetProperty(TextLabel::Property::TEXT,"Focus change signal called");
- lblFocusChange.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliKeyBoardFocusManagerView::OnFocusGroupChanged(Actor actor, bool bValue)
-{
- DBG("In TBTDaliKeyBoardFocusManagerView::OnFocusGroupChanged");
- if(!actor)
- DBG("Focus actor Null");
- else
- DBG("%s",actor.GetName().c_str());
-
- lblFocusGroup.SetProperty(TextLabel::Property::TEXT,"Focus group change signal called");
- lblFocusGroup.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliKeyBoardFocusManagerView::OnFocusedActorEnterKey(Actor actor)
-{
- DBG("In TBTDaliKeyBoardFocusManagerView::OnFocusedActorEnterKey");
- //mFocusManager.SetFocusIndicatorActor(actor);
-
- lblFocusActor.SetProperty(TextLabel::Property::TEXT,"Focus actor key signal called");
- lblFocusActor.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-long-press-gesture-double-view.cpp
- * @brief To test functionality of dali gesture detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-long-press-gesture-double-view.h"
-
-TBTDaliLongPressGestureDoubleView::TBTDaliLongPressGestureDoubleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Long Press Gesture Double Touch");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Long Press Gesture Double Touch."
- "\n2. Perform the two finger long press on screen then corresponding signal and data will display"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Long press gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblLongPress=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPressData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- touchesRequired=2;
- longpressgesturedetector=LongPressGestureDetector::New(touchesRequired);
- longpressgesturedetector.Attach(ctlBody);
- longpressgesturedetector.DetectedSignal().Connect(this, &TBTDaliLongPressGestureDoubleView::OnLongPressGestureDetector);
-}
-void TBTDaliLongPressGestureDoubleView::OnLongPressGestureDetector(Actor actor, const LongPressGesture& gesture)
-{
- DBG("In TBTDaliLongPressGestureDoubleView::OnLongPressGestureDetector");
- string txt;
-
- lblLongPress.SetProperty(TextLabel::Property::TEXT," Long press gesture detector signal called");
- lblLongPress.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblLongPress.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- LongPressGesture gestureCpy(gesture);
- LongPressGesture gestureAss=gesture;
-
- if(gestureCpy.numberOfTouches != gestureAss.numberOfTouches)
- DBG("LongPressGesture copy constructor and assignment operation not work properly.");
-
- //touch count
- if(gestureCpy.numberOfTouches != touchesRequired)
- DBG(" number Of touches mismatch");
- txt.append("\n #of touch fingers= ");
- txt.append(IntToString(gestureCpy.numberOfTouches));
-
- DBG("Number of touch = %d",gestureCpy.numberOfTouches);
- //screen touch point
- txt.append("\n Screen coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.screenPoint.x));
- txt.append(","+FloatToString(gestureCpy.screenPoint.y));
- //local actor touch point
- txt.append("\n Local actor coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.localPoint.x));
- txt.append(","+FloatToString(gestureCpy.localPoint.y));
-
- LongPressGestureDetector longpressgesturedetectorCopy(longpressgesturedetector);
- LongPressGestureDetector longpressgesturedetectorAssign=longpressgesturedetector;
-
- if(longpressgesturedetectorCopy.GetMaximumTouchesRequired() != longpressgesturedetectorAssign.GetMaximumTouchesRequired())
- DBG("Maximum touch required mismatch");
- if(longpressgesturedetectorCopy.GetMinimumTouchesRequired() != longpressgesturedetectorAssign.GetMinimumTouchesRequired())
- DBG("Minimum touch required mismatch");
-
- //get min touch point
- int min=longpressgesturedetector.GetMinimumTouchesRequired();
- if(min != touchesRequired)
- DBG("Minimum touches required mismatch");
- txt.append("\n Minimum Touches Required= ");
- txt.append(IntToString(min));
-
- //get max touch point
- int max=longpressgesturedetector.GetMaximumTouchesRequired();
- if(max != touchesRequired)
- DBG("Maximum touches required mismatch");
- txt.append("\n Maximum Touches Required= ");
- txt.append(IntToString(max));
-
- lblPressData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPressData.SetProperty(TextLabel::Property::POINT_SIZE,9);
- lblPressData.SetProperty(TextLabel::Property::TEXT,txt);
-
- longpressgesturedetector.SetTouchesRequired(touchesRequired);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-long-press-gesture-multiple-view.cpp
- * @brief To test functionality of dali gesture detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-long-press-gesture-multiple-view.h"
-
-TBTDaliLongPressGestureMultipleView::TBTDaliLongPressGestureMultipleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Long Press Gesture Multiple Touch");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Long Press Gesture Multiple Touches."
- "\n2. Perform the one/two/three finger long press on screen then corresponding signal and data will display"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Long press gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblLongPress=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPressData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- minTouchesRequired=1;
- maxTouchesRequired=3;
- longpressgesturedetector=LongPressGestureDetector::New(minTouchesRequired,maxTouchesRequired);
- longpressgesturedetector.Attach(ctlBody);
- longpressgesturedetector.DetectedSignal().Connect(this, &TBTDaliLongPressGestureMultipleView::OnLongPressGestureDetector);
-}
-void TBTDaliLongPressGestureMultipleView::OnLongPressGestureDetector(Actor actor, const LongPressGesture& gesture)
-{
- DBG("In TBTDaliLongPressGestureMultipleView::OnLongPressGestureDetector");
- string txt;
-
- lblLongPress.SetProperty(TextLabel::Property::TEXT," Long press gesture detector signal called");
- lblLongPress.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblLongPress.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- LongPressGesture gestureCpy(gesture);
- LongPressGesture gestureAss=gesture;
-
- if(gestureCpy.numberOfTouches != gestureAss.numberOfTouches)
- DBG("LongPressGesture copy constructor and assignment operation not work properly.");
-
- //touch count
- if(gestureCpy.numberOfTouches <1 && gestureCpy.numberOfTouches > 3)
- DBG(" number Of touches mismatch");
- txt.append("\n #of touch fingers= ");
- txt.append(IntToString(gestureCpy.numberOfTouches));
-
- DBG("Number of touch = %d",gestureCpy.numberOfTouches);
- //screen touch point
- txt.append("\n Screen coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.screenPoint.x));
- txt.append(","+FloatToString(gestureCpy.screenPoint.y));
- //local actor touch point
- txt.append("\n Local actor coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.localPoint.x));
- txt.append(","+FloatToString(gestureCpy.localPoint.y));
-
- LongPressGestureDetector longpressgesturedetectorCopy(longpressgesturedetector);
- LongPressGestureDetector longpressgesturedetectorAssign=longpressgesturedetector;
-
- if(longpressgesturedetectorCopy.GetMaximumTouchesRequired() != longpressgesturedetectorAssign.GetMaximumTouchesRequired())
- DBG("Maximum touch required mismatch");
- if(longpressgesturedetectorCopy.GetMinimumTouchesRequired() != longpressgesturedetectorAssign.GetMinimumTouchesRequired())
- DBG("Minimum touch required mismatch");
-
- //get min touch point
- int min=longpressgesturedetector.GetMinimumTouchesRequired();
- if(min != minTouchesRequired)
- DBG("Minimum touches required mismatch");
- txt.append("\n Minimum Touches Required= ");
- txt.append(IntToString(min));
-
- //get max touch point
- int max=longpressgesturedetector.GetMaximumTouchesRequired();
- if(max != maxTouchesRequired)
- DBG("Maximum touches required mismatch");
- txt.append("\n Maximum Touches Required= ");
- txt.append(IntToString(max));
-
- lblPressData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPressData.SetProperty(TextLabel::Property::POINT_SIZE,9);
- lblPressData.SetProperty(TextLabel::Property::TEXT,txt);
-
- longpressgesturedetector.SetTouchesRequired(minTouchesRequired,maxTouchesRequired);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-long-press-gesture-single-view.cpp
- * @brief To test functionality of dali gesture detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-long-press-gesture-single-view.h"
-
-TBTDaliLongPressGestureSingleView::TBTDaliLongPressGestureSingleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Long Press Gesture Single Touch");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Long Press Gesture Single."
- "\n2. Perform the one finger long press on screen then corresponding signal and data will display"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Long press gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblLongPress=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPressData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- touchesRequired=1;
- longpressgesturedetector=LongPressGestureDetector::New();
- longpressgesturedetector.Attach(ctlBody);
- longpressgesturedetector.DetectedSignal().Connect(this, &TBTDaliLongPressGestureSingleView::OnLongPressGestureDetector);
-
-// pinchgesture=PinchGestureDetector::New();
-// pinchgesture.Attach(ctlBody);
-// pinchgesture.DetectedSignal().Connect(this, &TBTDaliGestureDetectorView::OnPinchGestureDetector);
-//
-// panGesture=PanGestureDetector::New();
-// panGesture.Attach(ctlBody);
-// panGesture.DetectedSignal().Connect(this, &TBTDaliGestureDetectorView::OnPanGestureDetector);
-}
-void TBTDaliLongPressGestureSingleView::OnLongPressGestureDetector(Actor actor, const LongPressGesture& gesture)
-{
- DBG("In TBTDaliLongPressGestureSingleView::OnLongPressGestureDetector");
- string txt;
-
- lblLongPress.SetProperty(TextLabel::Property::TEXT," Long press gesture detector signal called");
- lblLongPress.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblLongPress.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- LongPressGesture gestureCpy(gesture);
- LongPressGesture gestureAss(Gesture::Started);
- gestureAss=gesture;
-
- if(gestureCpy.numberOfTouches != gestureAss.numberOfTouches)
- DBG("LongPressGesture copy constructor and assignment operation not work properly.");
-
- //touch count
- if(gestureCpy.numberOfTouches != touchesRequired)
- DBG(" number Of touches mismatch");
- txt.append("\n #of touch fingers= ");
- txt.append(IntToString(gestureCpy.numberOfTouches));
-
- DBG("Number of touch = %d",gestureCpy.numberOfTouches);
- //screen touch point
- txt.append("\n Screen coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.screenPoint.x));
- txt.append(","+FloatToString(gestureCpy.screenPoint.y));
- //local actor touch point
- txt.append("\n Local actor coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.localPoint.x));
- txt.append(","+FloatToString(gestureCpy.localPoint.y));
-
- BaseHandle handle( longpressgesturedetector );
- LongPressGestureDetector downCast=LongPressGestureDetector::DownCast(handle);
-
- LongPressGestureDetector longpressgesturedetectorCopy(longpressgesturedetector);
- LongPressGestureDetector longpressgesturedetectorAssign;
- longpressgesturedetectorAssign=longpressgesturedetector;
-
- if(longpressgesturedetectorCopy.GetMaximumTouchesRequired() != longpressgesturedetectorAssign.GetMaximumTouchesRequired())
- DBG("Maximum touch required mismatch");
- if(longpressgesturedetectorCopy.GetMinimumTouchesRequired() != longpressgesturedetectorAssign.GetMinimumTouchesRequired())
- DBG("Minimum touch required mismatch");
-
- //get min touch point
- int min=downCast.GetMinimumTouchesRequired();
- if(min != touchesRequired)
- DBG("Minimum touches required mismatch");
- txt.append("\n Minimum Touches Required= ");
- txt.append(IntToString(min));
-
- //get max touch point
- int max=downCast.GetMaximumTouchesRequired();
- if(max != touchesRequired)
- DBG("Maximum touches required mismatch");
- txt.append("\n Maximum Touches Required= ");
- txt.append(IntToString(max));
-
- lblPressData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPressData.SetProperty(TextLabel::Property::POINT_SIZE,9);
- lblPressData.SetProperty(TextLabel::Property::TEXT,txt);
-
- longpressgesturedetector.SetTouchesRequired(touchesRequired);
-}
-//void TBTDaliLongPressGestureView::OnPinchGestureDetector(Actor actor, const PinchGesture& gesture)
-//{
-// DBG("In TBTDaliLongPressGestureView::OnPinchGestureDetector");
-// lblPinch.SetProperty(TextLabel::Property::TEXT," Pinch gesture detector signal called");
-// lblPinch.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-// lblPinch.SetProperty(TextLabel::Property::POINT_SIZE,9);
-//}
-//
-//void TBTDaliLongPressGestureView::OnPanGestureDetector(Actor actor, const PanGesture& gesture)
-//{
-// DBG("In TBTDaliLongPressGestureView::OnPanGestureDetector");
-// lblpan.SetProperty(TextLabel::Property::TEXT," Pan gesture detector signal called");
-// lblpan.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-// lblpan.SetProperty(TextLabel::Property::POINT_SIZE,9);
-//}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pan-gesture-angle-direction-view.cpp
- * @brief To test functionality of dali pan gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-pan-gesture-angle-direction-view.h"
-
-TBTDaliPanGestureAngleDirectionView::TBTDaliPanGestureAngleDirectionView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Pan Gesture With Angle and Direction");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Pan Gesture Angle and Direction."
- "\n2. Perform the one finger pan on screen with right diagonal up then corresponding signal and data will display"
- "\n3. Add/Remove angle and direction of pan gesture"
- "\n4. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
- flag=false;
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Pan gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblPan=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPressData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- mintouchesRequired=1;
- maxtouchesRequired=1;
-
- pangesturedetector=PanGestureDetector::New();
- //set max min touch required
- pangesturedetector.SetMinimumTouchesRequired(mintouchesRequired);
- pangesturedetector.SetMaximumTouchesRequired(maxtouchesRequired);
- fSetAngle = -0.25f;
- fSetThreshold = 0.25f;
-
- pangesturedetector.Attach(ctlBody);
- pangesturedetector.DetectedSignal().Connect(this, &TBTDaliPanGestureAngleDirectionView::OnPanGestureDetector);
-
- //button
- btnAddremove=PushButton::New();
- btnAddremove.SetAnchorPoint(AnchorPoint::BOTTOM_CENTER);
- btnAddremove.SetParentOrigin(ParentOrigin::BOTTOM_CENTER);
- btnAddremove.SetPosition(0.0f, -10.0f);
- btnAddremove.ClickedSignal().Connect(this, &TBTDaliPanGestureAngleDirectionView::OnSetunSetButtonClick);
-
- Property::Map propertyMap;
- propertyMap.Insert(Visual::Property::TYPE, Visual::COLOR);
- propertyMap.Insert(ColorVisual::Property::MIX_COLOR, selectedColor);
- btnAddremove.SetProperty(Button::Property::UNSELECTED_BACKGROUND_VISUAL, propertyMap);
-
- Property::Map propertyMap1;
- propertyMap1.Insert(Visual::Property::TYPE, Visual::COLOR);
- propertyMap1.Insert(ColorVisual::Property::MIX_COLOR, unSelectedColor);
- btnAddremove.SetProperty(Button::Property::SELECTED_BACKGROUND_VISUAL, propertyMap1);
- btnAddremove.SetSize(this->bodySize.width, BUTTON_HEIGHT * bodySize.height);
- this->ctlBody.Add(btnAddremove);
- if(flag==false)
- btnAddremove.SetProperty( Toolkit::Button::Property::LABEL, "Remove Angle & Direction" );
- setUnset();
-}
-void TBTDaliPanGestureAngleDirectionView::setUnset()
-{
- DBG("In TBTDaliPanGestureAngleDirectionView::setUnset");
- Radian angle = Radian( Math::PI * ( fSetAngle ) );
- Radian threshold = Radian( Math::PI * ( fSetThreshold ) );
- if(flag==false)
- {
- DBG("flag==false");
- pangesturedetector.AddAngle(angle,threshold);
- pangesturedetector.AddDirection( PanGestureDetector::DIRECTION_LEFT, Radian( Math::PI * 0.25 ) );
- flag=true;
- btnAddremove.SetProperty( Toolkit::Button::Property::LABEL, "Remove Angle & Direction" );
- }
- else
- {
- DBG("flag==true");
- pangesturedetector.RemoveAngle(angle);
- pangesturedetector.RemoveDirection(PanGestureDetector::DIRECTION_LEFT);
- pangesturedetector.ClearAngles();
- flag=false;
- btnAddremove.SetProperty( Toolkit::Button::Property::LABEL, "Add Angle & Direction" );
- }
-}
-void TBTDaliPanGestureAngleDirectionView::OnPanGestureDetector(Actor actor, const PanGesture& gesture)
-{
- DBG("In TBTDaliPanGestureAngleDirectionView::OnPanGestureDetector");
- lblPan.SetProperty(TextLabel::Property::TEXT," Pan gesture detector signal called");
- lblPan.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPan.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- string txt;
-
- //check min touch required
- unsigned int min=pangesturedetector.GetMinimumTouchesRequired();
- txt.append("\n Min Touch Required: ");
- txt.append(IntToString(min));
- if(mintouchesRequired != min)
- DBG("Min touch required mismatch with set value (set value=%d, get value=%d)",mintouchesRequired,min);
-
- //check max touch required
- unsigned int max=pangesturedetector.GetMaximumTouchesRequired();
- txt.append("\n Max Touch Required: ");
- txt.append(IntToString(max));
- if(maxtouchesRequired != max)
- DBG("Max touch required mismatch with set value (set value=%d, get value=%d)",maxtouchesRequired,max);
-
- //get angle
-
- size_t i=pangesturedetector.GetAngleCount();
- PanGestureDetector::AngleThresholdPair angle = pangesturedetector.GetAngle( i-1 );
- float value=fabs( (angle.first - ( Radian( Math::PI * ( fSetAngle ) ) ) ) );
- txt.append("\n Pan Angle: ");
- txt.append(FloatToString(value));
-
-
- lblPressData.SetProperty(TextLabel::Property::TEXT, txt);
- lblPressData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPressData.SetProperty(TextLabel::Property::POINT_SIZE,9);
-}
-bool TBTDaliPanGestureAngleDirectionView::OnSetunSetButtonClick(Button button)
-{
- DBG("In TBTDaliPanGestureAngleDirectionView::OnSetunSetButtonClick");
-
- setUnset();
-
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pan-gesture-double-view.cpp
- * @brief To test functionality of dali pan gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-pan-gesture-double-view.h"
-
-TBTDaliPanGestureDoubleView::TBTDaliPanGestureDoubleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Pan Gesture Double Touch");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Pan Gesture Double Touch."
- "\n2. Perform the two fingers pan on screen then corresponding signal and data will display"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Pan gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblPan=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPressData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- mintouchesRequired=2;
- maxtouchesRequired=5;
-
- pangesturedetector=PanGestureDetector::New();
- //set max min touch required
- pangesturedetector.SetMinimumTouchesRequired(mintouchesRequired);
- pangesturedetector.SetMaximumTouchesRequired(maxtouchesRequired);
-
- pangesturedetector.Attach(ctlBody);
- pangesturedetector.DetectedSignal().Connect(this, &TBTDaliPanGestureDoubleView::OnPanGestureDetector);
-}
-void TBTDaliPanGestureDoubleView::OnPanGestureDetector(Actor actor, const PanGesture& gesture)
-{
- DBG("In TBTDaliPanGestureDoubleView::OnPanGestureDetector");
- lblPan.SetProperty(TextLabel::Property::TEXT," Pan gesture detector signal called");
- lblPan.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPan.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- string txt;
-
- //check min touch required
- unsigned int min=pangesturedetector.GetMinimumTouchesRequired();
- txt.append("\n Min Touch Required: ");
- txt.append(IntToString(min));
- if(mintouchesRequired != min)
- DBG("Min touch required mismatch with set value (set value=%d, get value=%d)",mintouchesRequired,min);
-
- //check max touch required
- unsigned int max=pangesturedetector.GetMaximumTouchesRequired();
- txt.append("\n Max Touch Required: ");
- txt.append(IntToString(max));
- if(maxtouchesRequired != max)
- DBG("Max touch required mismatch with set value (set value=%d, get value=%d)",maxtouchesRequired,max);
-
- //set pan properties
-
- PanGesture pan(Gesture::Started);
- pan.velocity=Vector2(100.0f,100.0f);
- pan.screenVelocity=Vector2(100.0f,100.0f);
- pan.position=Vector2(100.0f,100.0f);
- pan.screenPosition=Vector2(100.0f,100.0f);
- pan.numberOfTouches=2;
-
- BaseHandle handle( pangesturedetector );
- PanGestureDetector downCast=PanGestureDetector::DownCast(handle);
-
- downCast.SetPanGestureProperties(pan);
-
- lblPressData.SetProperty(TextLabel::Property::TEXT, txt);
- lblPressData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPressData.SetProperty(TextLabel::Property::POINT_SIZE,9);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pan-gesture-single-view.cpp
- * @brief To test functionality of dali pan gesture and detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date October, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-pan-gesture-single-view.h"
-
-TBTDaliPanGestureSingleView::TBTDaliPanGestureSingleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Pan Gesture Single Touch");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Pan Gesture Single Touch."
- "\n2. Perform the one finger pan on screen then corresponding signal and data will display."
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Pan gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblPan=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPressData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- mintouchesRequired=1;
- maxtouchesRequired=1;
-
- pangesturedetector=PanGestureDetector::New();
- pangesturedetector.Attach(ctlBody);
- pangesturedetector.DetectedSignal().Connect(this, &TBTDaliPanGestureSingleView::OnPanGestureDetector);
-}
-void TBTDaliPanGestureSingleView::OnPanGestureDetector(Actor actor, const PanGesture& gesture)
-{
- DBG("In TBTDaliPanGestureSingleView::OnPanGestureDetector");
- lblPan.SetProperty(TextLabel::Property::TEXT," Pan gesture detector signal called");
- lblPan.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPan.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- string txt;
-
- //copy constructor and assignment operator
-
- PanGestureDetector copy(pangesturedetector);
- PanGestureDetector assign;
- assign=pangesturedetector;
-
- if(copy.GetMinimumTouchesRequired() != mintouchesRequired | copy.GetMaximumTouchesRequired() != maxtouchesRequired)
- DBG("Pan gesture copy constructor failed.");
- if(assign.GetMinimumTouchesRequired() != mintouchesRequired | assign.GetMaximumTouchesRequired() != maxtouchesRequired)
- DBG("Pan gesture assignment operator failed.");
-
- //check default min touch
- unsigned int min=pangesturedetector.GetMinimumTouchesRequired();
- if(mintouchesRequired != min)
- DBG("Default min touch required is not 1 get value is %d",min);
- txt.append("\n Min Touch Required: ");
- txt.append(IntToString(min));
-
- //check default max touch
- unsigned int max=pangesturedetector.GetMaximumTouchesRequired();
- if(maxtouchesRequired != max)
- DBG("Default max touch required is not 1 get value is %d",max);
- txt.append("\n Max Touch Required: ");
- txt.append(IntToString(max));
-
- //set max min touch required
- pangesturedetector.SetMinimumTouchesRequired(mintouchesRequired);
- pangesturedetector.SetMaximumTouchesRequired(maxtouchesRequired);
-
- min=pangesturedetector.GetMinimumTouchesRequired();
- if(mintouchesRequired != min)
- DBG("Min touch required mismatch with set value (set value=%d, get value=%d)",mintouchesRequired,min);
- max=pangesturedetector.GetMaximumTouchesRequired();
- if(maxtouchesRequired != max)
- DBG("Max touch required mismatch with set value (set value=%d, get value=%d)",maxtouchesRequired,max);
-
- //Pan Gesture
-
- //check copy,default constructor & assignment operator
- PanGesture copyPan(gesture);
- PanGesture assignPan(Gesture::Started);
- assignPan=gesture;
-
- PanGesture defaultPan;
- defaultPan=gesture;
-
- float speed=gesture.GetSpeed();
-
- if(speed != copyPan.GetSpeed())
- DBG("Pan gesture copy constructor failed.");
- if(speed != assignPan.GetSpeed())
- DBG("Pan gesture assignment operator failed.");
- if(speed != defaultPan.GetSpeed())
- DBG("Pan gesture default constructor failed.");
-
- //speed
- txt.append("\n Gesture speed: ");
- txt.append(FloatToString(speed));
- //distance
- float distance=gesture.GetDistance();
- txt.append("\n Gesture distance: ");
- txt.append(FloatToString(distance));
- //screen speed
- float screenSpeed=gesture.GetScreenSpeed();
- txt.append("\n Gesture screen speed: ");
- txt.append(FloatToString(screenSpeed));
- //
- float screenDistance=gesture.GetScreenDistance();
- txt.append("\n Gesture screen distance: ");
- txt.append(FloatToString(screenDistance));
-
- lblPressData.SetProperty(TextLabel::Property::TEXT, txt);
- lblPressData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPressData.SetProperty(TextLabel::Property::POINT_SIZE,9);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-pinch-gesture-single-view.cpp
- * @brief To test functionality of dali pinch gesture detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-pinch-gesture-single-view.h"
-
-TBTDaliPinchGestureSingleView::TBTDaliPinchGestureSingleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Pinch Gesture");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Pinch Gesture."
- "\n2. Perform the pinch gesture on screen then corresponding signal will call"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Pinch gesture detector signal not call";
- ctl["lbl2"]="";
- //ctl["lbl3"]="Pan gesture detector signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblPinch=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblPinchData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- pinchgesturedetector=PinchGestureDetector::New();
- pinchgesturedetector.Attach(ctlBody);
- pinchgesturedetector.DetectedSignal().Connect(this, &TBTDaliPinchGestureSingleView::OnPinchGestureDetector);
-}
-void TBTDaliPinchGestureSingleView::OnPinchGestureDetector(Actor actor, const PinchGesture& gesture)
-{
- DBG("In TBTDaliPinchGestureSingleView::OnLongPressGestureDetector");
- string txt;
-
- lblPinch.SetProperty(TextLabel::Property::TEXT," Pinch gesture detector signal called");
- lblPinch.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPinch.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- BaseHandle handle( pinchgesturedetector );
- PinchGestureDetector downCast=PinchGestureDetector::DownCast(handle);
-
- if(!downCast)
- DBG("Pinch gesture detector downcast failed.");
-
- PinchGestureDetector copy(pinchgesturedetector);
- if(copy != pinchgesturedetector)
- DBG("Pinch gesture detector copy constructor failed.");
-
- PinchGestureDetector assign;
- assign=pinchgesturedetector;
-
- if(assign != pinchgesturedetector)
- DBG("Pinch gesture detector assignment operator failed.");
-
- PinchGesture asignpinch(Gesture::Started);
- asignpinch=gesture;
-
- PinchGesture copyPinch(gesture);
-
- lblPinchData.SetProperty(TextLabel::Property::TEXT,txt);
- lblPinchData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblPinchData.SetProperty(TextLabel::Property::POINT_SIZE,9);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-scroll-view.cpp
- * @brief To test functionality of dali scroll
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-scroll-view.h"
-
-TBTDaliScrollView::TBTDaliScrollView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Scroll View");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Scroll View."
- "\n2. Connect mouse with target using OTG Cable."
- "\n3. Scroll the item left/right."
- "\n4. If the corresponding event signals mgs"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>.";
-
- Stage stage = Stage::GetCurrent();
-
- NUM_IMAGES = 14;
-
- for(int i=0 ;i<NUM_IMAGES;i++)
- {
- char image_name[255];
- snprintf(image_name, 255, "/images/gallery-medium-%d.jpg", i+1);
- IMAGE_PATHS[i] = (char*)get_resource_path(image_name);
- }
- // Create a ScrollView instance
- ScrollView scrollView = ScrollView::New();
- scrollView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- scrollView.SetParentOrigin( ParentOrigin::TOP_LEFT );
- scrollView.SetPosition(0.0f, 0.0f);
- ctlBody.Add(scrollView);
-
- // Set the size of scrollView; it covers the entire stage
- Size scrollViewSize = Vector2(bodySize.width, bodySize.height);
- scrollView.SetSize(scrollViewSize);
-
- // Add actors to the ScrollView
- for( int i = 0; i < NUM_IMAGES; ++i )
- {
- AddImage( scrollView, scrollViewSize, i );
- }
-
- // The ScrollView contents are now draggable
- // To enforce horizontal-only scrolling, the Y axis ruler can be disabled
-
- RulerPtr rulerY = new DefaultRuler();
- rulerY->Disable();
- scrollView.SetRulerY( rulerY );
-
- // A domain can be applied to rulers to prevent scrolling beyond this boundary
- // In this case, to 4 times the width of the stage, allowing for 4 pages to be scrolled
- RulerPtr rulerX2 = new FixedRuler( scrollViewSize.width );
- rulerX2->SetDomain( RulerDomain( 0.0f, scrollViewSize.width*NUM_IMAGES ) );
- scrollView.SetRulerX( rulerX2 );
-
- scrollView.SnapStartedSignal().Connect(this, &TBTDaliScrollView::SnapStartedSignalCallback);
- scrollView.SetScrollingDirection(Radian(0));
-
- scrollView.SetSnapOvershootAlphaFunction(AlphaFunction());
- scrollView.SetSnapOvershootDuration(1);
-
- scrollView.SetMaxOvershoot(1, 1);
- scrollView.SetAxisAutoLock(true);
-
- scrollView.RemoveScrollingDirection( Radian(0));
- if(scrollView.GetAxisAutoLock() == false)
- {
- DBG("Error in GetAxisAutoLock()");
- }
- scrollBar = ScrollBar::New(Toolkit::ScrollBar::Horizontal);
- scrollBar.SetParentOrigin(ParentOrigin::TOP_LEFT);
- scrollBar.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- scrollBar.SetResizePolicy(Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::HEIGHT);
- //scrollBar.SetIndicatorFixedHeight(500.0f);
- scrollBar.SetResizePolicy(Dali::ResizePolicy::FIT_TO_CHILDREN, Dali::Dimension::WIDTH);
- scrollBar.PanFinishedSignal().Connect(this, &TBTDaliScrollView::OnPanFinishedSignal);
- scrollView.Add(scrollBar);
-
- Property::Map ctl;
- ctl["lbl1"]=" Snap started signal not call";
- ctl["lbl2"]=" Pan finished signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblSnap=TextLabel::DownCast(ctlBody.GetChildAt(1));
- lblPan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-}
-void TBTDaliScrollView::OnPanFinishedSignal()
-{
- DBG("In TBTDaliScrollView::OnPanFinishedSignal");
- this->lblPan.SetProperty( TextLabel::Property::TEXT, " Pan finished signal called" );
- //this->lblStyleManager.SetProperty( TextLabel::Property::POINT_SIZE, 8.0f );
- this->lblPan.SetProperty( TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliScrollView::SnapStartedSignalCallback(const ScrollView::SnapEvent& event)
-{
- DBG("TBTDaliScrollView::SnapStartedSignalCallback");
- if(!this->lblSnap)
- DBG("Unable to access the lblSnap textlabel");
- this->lblSnap.SetProperty( TextLabel::Property::TEXT, " Snap started signal called" );
- this->lblSnap.SetProperty( TextLabel::Property::TEXT_COLOR, Color::GREEN);
-}
-void TBTDaliScrollView::AddImage( ScrollView& scrollView, Size& size, int index )
-{
- ImageView imageView = ImageView::New();
-// imageView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
-// imageView.SetParentOrigin( ParentOrigin::TOP_LEFT );
- imageView.SetParentOrigin( ParentOrigin::CENTER );
- imageView.SetAnchorPoint( AnchorPoint::CENTER );
- imageView.SetImage( IMAGE_PATHS[index] );
- imageView.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- imageView.SetSizeScalePolicy( SizeScalePolicy::FIT_WITH_ASPECT_RATIO );
- imageView.SetPosition( index * size.x, 0 );
-
- scrollView.Add( imageView );
-}
-
-void TBTDaliScrollView::updateViewControls() {
-
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-slider-view.cpp
- * @brief To test functionality of dali slider
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-slider-view.h"
-
-TBTDaliSliderView::TBTDaliSliderView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Slider");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:\n"
- "1. Run DALi Slider.\n"
- "2. Change the slider position.\n"
- "3. If the corresponding event signals mgs"
- " are changed then press <color value='green'><b>Pass</b></color>."
- " Otherwise, press <color value='red'><b>Fail</b></color>\n";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- Property::Map ctl;
- ctl["lbl1"]=" Slider value changed signal not call";
- ctl["lbl2"]=" Slider finished signal not call";
- ctl["lbl3"]=" Slider mark reached signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- txtValueChanged=TextLabel::DownCast(ctlBody.GetChildAt(0));
- txtFinished=TextLabel::DownCast(ctlBody.GetChildAt(1));
- txtMarkReached=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- slider=Slider::New();
- slider.SetParentOrigin( ParentOrigin::TOP_LEFT );
- slider.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- slider.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
- slider.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
- Property::Array array;
- array.Reserve(3);
- array.PushBack(0.4f);
- array.PushBack(0.6f);
- array.PushBack(0.8f);
- slider.SetProperty(Slider::Property::MARKS,array);
- slider.ValueChangedSignal().Connect( this, &TBTDaliSliderView::onValueChanged );
- slider.SlidingFinishedSignal().Connect( this, &TBTDaliSliderView::onSliningFinished );
- slider.MarkReachedSignal().Connect( this, &TBTDaliSliderView::onMarkReached );
- slider.SetSize(bodySize.width/2,bodySize.height*TEXTLABEL_HEIGHT);
- slider.SetPosition(20*(bodySize.width*HORIZONTAL_SPACE), bodySize.height/2);
- //slider.SetPosition(300,300);
- ctlBody.Add(slider);
- //ctlBody.Add(txtValue);
-}
-
-bool TBTDaliSliderView::onValueChanged(Slider slider,float value)
-{
- DBG("TBTDaliSliderView::onValueChanged");
- txtValueChanged.SetProperty(TextLabel::Property::TEXT," Slider value changed signal called");
- txtValueChanged.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- //txtValue.SetProperty(TextLabel::Property::TEXT,FloatToString(value));
- //txtValue.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- return true;
-}
-bool TBTDaliSliderView::onSliningFinished(Slider slider,float value)
-{
- DBG("TBTDaliSliderView::onSliningFinished");
- txtFinished.SetProperty(TextLabel::Property::TEXT," Slider finished signal called");
- txtFinished.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-bool TBTDaliSliderView::onMarkReached(Slider slider,int value)
-{
- DBG("TBTDaliSliderView::onMarkReached");
- txtMarkReached.SetProperty(TextLabel::Property::TEXT," Slider mark reached signal called");
- txtMarkReached.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-stage-view.cpp
- * @brief To test functionality of dali stage
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-stage-view.h"
-
-//Application gApplication;
-TextField txt;
-
-TBTDaliStageView::TBTDaliStageView(Application& mApplication, app_control_h _control, std::string msg) :
- UiUtils(mApplication, _control) {
-
- //gApplication=mApplication;
- Init("Stage");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:\n"
- "1. Run DALi Stage.\n"
- "2. Connect mouse with target using OTG cable.\n"
- "3. Touch/Hover/Wheel on Test Area.\n"
- "4. Enter text in text field.\n"
- "5. If the corresponding event signal and data mgs"
- "are changed then press <color value='green'><b>Pass</b></color>."
- " Otherwise, press <color value='red'><b>Fail</b></color>.\n"
- "Note: Wheel event signal only for wearable device detent rotation."
- "Detent event is received for rotate the wheel of watch device.";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- Property::Map ctl;
- //ctl["lbl1"]=" Context lost signal not call";
- //ctl["lbl2"]=" Context regain signal not call";
- ctl["lbl1"]=" Event Processing signal not call";
- ctl["lbl2"]=" Key Event signal not call";
- ctl["lbl3"]=" Scene created signal not call";
- ctl["lbl4"]=" Touched signal not call";
- ctl["lbl5"]=" Touch signal not call";
- ctl["lbl6"]=" Wheel event signal not call";
-
- Property::Map size;
- //size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl4"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl5"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl6"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
-
- //txtContext=TextLabel::DownCast(ctlBody.GetChildAt(0));
- //txtContextRegain=TextLabel::DownCast(ctlBody.GetChildAt(1));
- txtEventProcessing=TextLabel::DownCast(ctlBody.GetChildAt(0));
- txtKeyEvent=TextLabel::DownCast(ctlBody.GetChildAt(1));
- txtSceneCreated=TextLabel::DownCast(ctlBody.GetChildAt(2));
- txtTouched=TextLabel::DownCast(ctlBody.GetChildAt(3));
- txtTouch=TextLabel::DownCast(ctlBody.GetChildAt(4));
- txtWheel=TextLabel::DownCast(ctlBody.GetChildAt(5));
-
- // wheel event can't test in TM1. So this test is passed unconditionally.
- txtWheel.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-
- Vector2 buttonSize=Vector2(bodySize.width, 2.0f*BUTTON_HEIGHT*bodySize.height);
- Vector2 position=Vector2(0.0f, bodySize.height - (buttonSize.height + VERTICAL_SPACE*bodySize.height));
-// btnTestButton=CreateButton(AnchorPoint::TOP_LEFT, position, "Test mouse wheel here", selectedColor, unSelectedColor, buttonSize);
-// //btnTestButton.WheelEventSignal().Connect(this,&TBTDaliStageView::onWheelEvent);
-// btnTestButton.ClickedSignal().Connect(this,&TBTDaliStageView::OnButtonClicked);
-// ctlBody.Add(btnTestButton);
-
- if(msg=="onSceneCreated")
- {
- txtSceneCreated.SetProperty(TextLabel::Property::TEXT," Scene created event is called");
- txtSceneCreated.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- }
-
- Vector2 pos=Vector2(0.3f*bodySize.width/2, bodySize.height - (BUTTON_HEIGHT*bodySize.height + VERTICAL_SPACE*bodySize.height + buttonSize.height + VERTICAL_SPACE*bodySize.height));
- Control txtField=CreateTextField(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,pos,"",Vector2(0.7f*bodySize.width,TEXTFIELD_HEIGHT*bodySize.height));
- ctlBody.Add(txtField);
-
- PushButton btn=PushButton::DownCast(txtField.GetChildAt(1));
- btn.ClickedSignal().Connect(this,&TBTDaliStageView::OnButtonClick);
-
- txt=TextField::DownCast(txtField.GetChildAt(0));
-
-
- /* Reason for remove ContextLostSignal ContextRegainedSignal
- * The original patch was for supporting an Android implementation, and was ported to Tizen. Android suffers from a specific problem of having the GL context removed without any warning, releasing any textures uploaded to GL. The ReplaceSurface code is the main point where context regain occurred. In this older version of dali-core, we could automatically re-load textures following the context loss, hence the reason for informing Core/Stage classes. The flicker bug occurs because ReplaceSurface is also called following screen rotation in Tizen, hence the second patch was a reasonable bug fix for Tizen.
- * We currently don’t support an Android implementation, however, if we do want to support it in the future, or any other platform where the GL context can be removed without warning, the public signals Stage::ContextLostSignal / ContextRegainedSignal will again be useful.
-
- * In the latest codebase, dali-core is no longer the only place where resource loading happens, so automatic re-upload of textures or other GL resources is no longer possible. Core::RecoverFromContextLoss() method should be removed. We should also consider removing the application configuration from the public API, as it is no longer useful – the application will have to deal with context loss if it happens (unless we refactor the resource loading to be in one place again).
- * Regards,
- * David.
- */
-
- //stage.ContextLostSignal().Connect(this,&TBTDaliStageView::onContextLost);
- //stage.ContextRegainedSignal().Connect(this,&TBTDaliStageView::onContextRegain);
-
- stage.EventProcessingFinishedSignal().Connect(this,&TBTDaliStageView::onEventProcessing);
- stage.KeyEventSignal().Connect(this,&TBTDaliStageView::onKeyEvent);
- //mStage.SceneCreatedSignal().Connect(this,&TBTDaliStageView::onSceneCreated);
- stage.TouchedSignal().Connect(this,&TBTDaliStageView::onTouchedEvent);
- stage.TouchSignal().Connect(this,&TBTDaliStageView::onTouchEvent);
- stage.WheelEventSignal().Connect(this,&TBTDaliStageView::onStageWheelEvent);
-}
-bool TBTDaliStageView::OnButtonClick(Button button)
-{
- DBG("In TBTDaliStageView::OnButtonClick");
- txt.SetProperty(TextField::Property::TEXT,"");
- return true;
-}
-
-//BufferImage TBTDaliStageView::CreateBufferImage( const Vector4& color, const unsigned int width, const unsigned int height )
-//{
-// BufferImage imageData = BufferImage::New( width, height, Pixel::RGBA8888 );
-// // Create the image
-// PixelBuffer* pixbuf = imageData.GetBuffer();
-// const unsigned int bitmapSize = width * height;
-// for( size_t i = 0; i < bitmapSize; ++i )
-// {
-// pixbuf[i*4+0] = 0xFF * color.r;
-// pixbuf[i*4+1] = 0xFF * color.g;
-// pixbuf[i*4+2] = 0xFF * color.b;
-// pixbuf[i*4+3] = 0xFF * color.a;
-// }
-// return imageData;
-//}
-//PixelData TBTDaliStageView::CreatePixelData( const Vector3& color, const unsigned int width, const unsigned int height )
-//{
-// unsigned int size = width*height;
-// unsigned int bufferSize = size * Pixel::GetBytesPerPixel(Pixel::RGB888);
-// unsigned char* pixels = new unsigned char [bufferSize];
-// for( unsigned int i = 0; i < size; i++ )
-// {
-// pixels[i*3u] = 0xFF * color.x;
-// pixels[i*3u+1u] = 0xFF * color.y;
-// pixels[i*3u+2u] = 0xFF * color.z;
-// }
-// return PixelData::New( pixels, bufferSize, width, height, Pixel::RGB888, PixelData::DELETE_ARRAY );
-//}
-
-void TBTDaliStageView::NewWindow(void)
-{
- PositionSize posSize(100, 100, 720, 1280);
- //gApplication.ReplaceWindow(posSize, "NewWindow"); // Generates a new window
-}
-
-void TBTDaliStageView::onKeyEvent(const KeyEvent& keyevent)
-{
- DBG("In TBTDaliStageView::onKeyEvent");
- string txt;
- int keycode=keyevent.keyCode;
- txt.append("keyCode: ");
- txt.append(IntToString(keycode));
- DBG("%s",txt.c_str());
-
- int keymoddifier=keyevent.keyModifier;
- txt.append("keyModifier: ");
- txt.append(IntToString(keymoddifier));
- DBG("%s",txt.c_str());
-
- string keypress=keyevent.keyPressed;
- txt.append("keyPressed: ");
- txt.append(keypress);
- DBG("%s",txt.c_str());
-
- string keyname=keyevent.keyPressedName;
- txt.append("keyPressedName: ");
- txt.append(keyname);
- DBG("%s",txt.c_str());
-
- KeyEvent::State state=keyevent.state;
-
- if(state == keyevent.Down)
- DBG("Key Down");
- if(state == keyevent.Up)
- DBG("Key Up");
-
- unsigned long int time= keyevent.time;
- txt.append("time: ");
- txt.append(LongToString(time));
- DBG("%s",txt.c_str());
-
- bool alt=keyevent.IsAltModifier();
- if(alt)
- DBG("Press Alt Modifier");
- bool ctrl=keyevent.IsCtrlModifier();
- if(ctrl)
- DBG("Press ctrl Modifier");
-
- bool shift=keyevent.IsShiftModifier();
- if(shift)
- DBG("Press shift Modifier");
-
- txtKeyEvent.SetProperty(TextLabel::Property::TEXT," Key event is called");
- txtKeyEvent.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliStageView::onEventProcessing()
-{
- DBG("In TBTDaliStageView::onEventProcessing");
- txtEventProcessing.SetProperty(TextLabel::Property::TEXT," Event processing signal is called");
- txtEventProcessing.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliStageView::onTouchedEvent(const TouchEvent& touchevent)
-{
- DBG("In TBTDaliStageView::onTaouchedEvent");
- txtTouched.SetProperty(TextLabel::Property::TEXT," Touched event is called");
- txtTouched.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliStageView::onTouchEvent(const TouchData& touchdata)
-{
- DBG("In TBTDaliStageView::onTouchEvrnt");
- txtTouch.SetProperty(TextLabel::Property::TEXT," Touch event is called");
- txtTouch.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-bool TBTDaliStageView::onWheelEvent(Actor actor, const WheelEvent& wheelevent)
-{
- DBG("In TBTDaliStageView::onWheelEvent");
- txtWheel.SetProperty(TextLabel::Property::TEXT," Wheel event is called");
- txtWheel.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return true;
-}
-void TBTDaliStageView::onStageWheelEvent( const WheelEvent& wheelevent)
-{
- DBG("In TBTDaliStageView::onStageWheelEvent");
- txtWheel.SetProperty(TextLabel::Property::TEXT," Wheel event is called");
- txtWheel.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-
-//void TBTDaliStageView::onContextLost()
-//{
-// DBG("In TBTDaliStageView::cbContextLost");
-// txtContext.SetProperty(TextLabel::Property::TEXT," Context lost event is called");
-// txtContext.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-//}
-//void TBTDaliStageView::onContextRegain()
-//{
-// DBG("In TBTDaliStageView::onContextRegain");
-// txtContextRegain.SetProperty(TextLabel::Property::TEXT," Context regain event is called");
-// txtContextRegain.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-//}
-void TBTDaliStageView::onSceneCreated()
-{
- DBG("In TBTDaliStageView::onSceneCreated");
- txtSceneCreated.SetProperty(TextLabel::Property::TEXT," Scene created event is called");
- txtSceneCreated.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-bool TBTDaliStageView::OnButtonClicked(Button button) {
- DBG("OnButtonClicked");
- if(!bCheck)
- {
- bCheck=true;
- //mApplication.AddIdle( MakeCallback( TBTDaliStageView::NewWindow ) );
-
-// textButton=PushButton::New();
-// textButton.SetProperty(Button::Property::LABEL,"Test Button");
-// mrootTable.AddChild(textButton,TableView::CellPosition(11,0));
-// textButton.SetProperty( Toolkit::Button::Property::SELECTED_VISUAL, "/images/gallery-medium-0.jpg" );
-
- }
- else
- {
- bCheck=false;
- //gApplication.Reset();
- //textButton.SetProperty( Toolkit::Button::Property::UNSELECTED_VISUAL, "/images/gallery-medium-1.jpg" );
-// mrootTable.RemoveChildAt(TableView::CellPosition(11,0));
- }
- return true;
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-style-manager-view.cpp
- * @brief To test functionality of dali style manager
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-style-manager-view.h"
-
-TBTDaliStyleManagerView::TBTDaliStyleManagerView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Style Manager");
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Style Manage."
- "\n2. Press the style change test button."
- "\n3. If the corresponding event signals"
- " mgs are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
- Vector2 stageSize = stage.GetSize();
-
- Property::Map ctl;
- Property::Map size;
-
- ctl["lbl1"]="Style changed signal not call";
-
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- CreateLabelList(ctl,size);//create textlabel list
- lblStyleManager=TextLabel::DownCast(ctlBody.GetChildAt(0));
-
- Vector2 buttonSize=Vector2(bodySize.width, BUTTON_HEIGHT*bodySize.height);
- Vector2 position=Vector2(0.0f, bodySize.height - (buttonSize.height + VERTICAL_SPACE*bodySize.height));
- btnStyle=CreateButton(AnchorPoint::TOP_LEFT, position, "Style change", selectedColor, unSelectedColor, buttonSize);
- ctlBody.Add(btnStyle);
- btnStyle.ClickedSignal().Connect(this, &TBTDaliStyleManagerView::OnClicked);
-
- styleManager=StyleManager::Get();
- styleManager.StyleChangedSignal().Connect(this, &TBTDaliStyleManagerView::OnStyleChange);
-}
-
-bool TBTDaliStyleManagerView::OnClicked(Button button)
-{
- DBG("In TBTDaliStyleManagerView::OnClicked");
- char image_name[255];
- snprintf(image_name, 255, "dali-toolkit-test-theme_720x1280.json");
- char* IMAGE_PATH = (char*)get_resource_path(image_name);
- styleManager.ApplyTheme(IMAGE_PATH);
-
- styleManager.ApplyDefaultTheme();
- styleManager.ApplyStyle( btnStyle, IMAGE_PATH, "testbutton" );
- styleManager.ApplyStyle( lblStyleManager, IMAGE_PATH, "textlabel" );
- return true;
-}
-void TBTDaliStyleManagerView::OnStyleChange(StyleManager style,StyleChange::Type type)
-{
- DBG("In TBTDaliStyleManagerView::OnStyleChange");
- this->lblStyleManager.SetProperty( TextLabel::Property::TEXT, "Style changed signal called" );
- //this->lblStyleManager.SetProperty( TextLabel::Property::POINT_SIZE, 8.0f );
- this->lblStyleManager.SetProperty( TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-tap-gesture-multiple-view.cpp
- * @brief To test functionality of dali gesture detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-tap-gesture-multiple-view.h"
-
-TBTDaliTapGestureMultipleView::TBTDaliTapGestureMultipleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Tap Gesture Multiple Tap");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Tap Press Gesture Multiple."
- "\n2. Perform the one finger double tap on screen then corresponding signal and data will display"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Tap gesture detector signal not call";
- ctl["lbl2"]="";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblTap=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblTapData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- minTabRequired=2;
- maxTabRequired=5;
- tapgesturedetector=TapGestureDetector::New();
- tapgesturedetector.SetMaximumTapsRequired(maxTabRequired);
- tapgesturedetector.SetMinimumTapsRequired(minTabRequired);
- tapgesturedetector.Attach(ctlBody);
- tapgesturedetector.DetectedSignal().Connect(this, &TBTDaliTapGestureMultipleView::OnTapGestureDetector);
-}
-void TBTDaliTapGestureMultipleView::OnTapGestureDetector(Actor actor, const TapGesture& gesture)
-{
- DBG("In TBTDaliTapGestureMultipleView::OnTapGestureDetector");
- string txt;
-
- lblTap.SetProperty(TextLabel::Property::TEXT," Tap gesture detector signal called");
- lblTap.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblTap.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- TapGesture gestureCpy(gesture);
- TapGesture gestureAss;
- gestureAss=gesture;
-
- if(gestureCpy.numberOfTouches != gestureAss.numberOfTouches)
- DBG("TapGesture copy constructor and assignment operation not work properly.");
-
- //touch count
- txt.append("\n #of touch fingers= ");
- txt.append(IntToString(gestureCpy.numberOfTouches));
- //tap count
- txt.append("\n #of Tap count= ");
- txt.append(IntToString(gestureCpy.numberOfTaps));
-
-
- //screen touch point
- txt.append("\n Screen coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.screenPoint.x));
- txt.append(","+FloatToString(gestureCpy.screenPoint.y));
- //local actor touch point
- txt.append("\n Local actor coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.localPoint.x));
- txt.append(","+FloatToString(gestureCpy.localPoint.y));
-
- BaseHandle handle( tapgesturedetector );
- TapGestureDetector downCast=TapGestureDetector::DownCast(handle);
-
- TapGestureDetector tapgesturedetectorCopy(tapgesturedetector);
- TapGestureDetector tapgesturedetectorAssign;
- tapgesturedetectorAssign=tapgesturedetector;
-
- if(tapgesturedetectorCopy.GetMaximumTapsRequired() != tapgesturedetectorAssign.GetMaximumTapsRequired())
- DBG("Maximum touch required mismatch");
- if(tapgesturedetectorCopy.GetMinimumTapsRequired() != tapgesturedetectorAssign.GetMinimumTapsRequired())
- DBG("Minimum touch required mismatch");
-
- //get min touch point
- int min=downCast.GetMinimumTapsRequired();
- if(min != minTabRequired)
- DBG("Minimum touches required mismatch");
- txt.append("\n Minimum Touches Required= ");
- txt.append(IntToString(min));
-
- //get max touch point
- int max=downCast.GetMaximumTapsRequired();
- if(max != maxTabRequired)
- DBG("Maximum touches required mismatch");
- txt.append("\n Maximum Touches Required= ");
- txt.append(IntToString(max));
-
- lblTapData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblTapData.SetProperty(TextLabel::Property::POINT_SIZE,9);
- lblTapData.SetProperty(TextLabel::Property::TEXT,txt);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-tap-gesture-single-view.cpp
- * @brief To test functionality of dali gesture detector
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date November, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-tap-gesture-single-view.h"
-
-TBTDaliTapGestureSingleView::TBTDaliTapGestureSingleView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Tap Gesture Single Tap");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Tap Press Gesture Single."
- "\n2. Perform the one finger single tap on screen then corresponding signal and data will display"
- "\n3. If the corresponding event signals mgs and touch data"
- " are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Tap gesture detector signal not call";
- ctl["lbl2"]="";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, 5*TEXTLABEL_HEIGHT * bodySize.height);
- //size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblTap=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblTapData=TextLabel::DownCast(ctlBody.GetChildAt(1));
- //lblpan=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- minTabRequired=1;
- maxTabRequired=1;
- tapgesturedetector=TapGestureDetector::New(minTabRequired);
- tapgesturedetector.Attach(ctlBody);
- tapgesturedetector.DetectedSignal().Connect(this, &TBTDaliTapGestureSingleView::OnTapGestureDetector);
-}
-void TBTDaliTapGestureSingleView::OnTapGestureDetector(Actor actor, const TapGesture& gesture)
-{
- DBG("In TBTDaliTapGestureSingleView::OnTapGestureDetector");
- string txt;
-
- lblTap.SetProperty(TextLabel::Property::TEXT," Tap gesture detector signal called");
- lblTap.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblTap.SetProperty(TextLabel::Property::POINT_SIZE,9);
-
- TapGesture gestureCpy(gesture);
- TapGesture gestureAss;
- gestureAss=gesture;
-
- if(gestureCpy.numberOfTouches != gestureAss.numberOfTouches)
- DBG("TapGesture copy constructor and assignment operation not work properly.");
-
- //touch count
- txt.append("\n #of touch fingers= ");
- txt.append(IntToString(gestureCpy.numberOfTouches));
- //tap count
- txt.append("\n #of Tap count= ");
- txt.append(IntToString(gestureCpy.numberOfTaps));
-
-
- //screen touch point
- txt.append("\n Screen coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.screenPoint.x));
- txt.append(","+FloatToString(gestureCpy.screenPoint.y));
- //local actor touch point
- txt.append("\n Local actor coordinate (x,y)= ");
- txt.append(FloatToString(gestureCpy.localPoint.x));
- txt.append(","+FloatToString(gestureCpy.localPoint.y));
-
- BaseHandle handle( tapgesturedetector );
- TapGestureDetector downCast=TapGestureDetector::DownCast(handle);
-
- TapGestureDetector tapgesturedetectorCopy(tapgesturedetector);
- TapGestureDetector tapgesturedetectorAssign;
- tapgesturedetectorAssign=tapgesturedetector;
-
- if(tapgesturedetectorCopy.GetMaximumTapsRequired() != tapgesturedetectorAssign.GetMaximumTapsRequired())
- DBG("Maximum touch required mismatch");
- if(tapgesturedetectorCopy.GetMinimumTapsRequired() != tapgesturedetectorAssign.GetMinimumTapsRequired())
- DBG("Minimum touch required mismatch");
-
- //get min touch point
- int min=downCast.GetMinimumTapsRequired();
- if(min != minTabRequired)
- DBG("Minimum touches required mismatch");
- txt.append("\n Minimum Touches Required= ");
- txt.append(IntToString(min));
-
- //get max touch point
- int max=downCast.GetMaximumTapsRequired();
- if(max != maxTabRequired)
- DBG("Maximum touches required mismatch");
- txt.append("\n Maximum Touches Required= ");
- txt.append(IntToString(max));
-
- lblTapData.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- lblTapData.SetProperty(TextLabel::Property::POINT_SIZE,9);
- lblTapData.SetProperty(TextLabel::Property::TEXT,txt);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-text-control-view.cpp
- * @brief To test functionality of dali text control
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-text-control-view.h"
-
-TBTDaliTextControlView::TBTDaliTextControlView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Text Control");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi Text Control."
- "\n2. Change the text control text (text field & text editor)."
- "\n3. If the corresponding event signals mgs "
- "are changed then press <color value='green'><b>Pass</b></color>."
- " Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]="Text field max length(10) reached signal not call";
- ctl["lbl2"]="Text editor text changed signal not call";
- ctl["lbl3"]="Key Event signal not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl2"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
- size["lbl3"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblField=TextLabel::DownCast(ctlBody.GetChildAt(0));
- lblEditor=TextLabel::DownCast(ctlBody.GetChildAt(1));
- lblKeyEvent=TextLabel::DownCast(ctlBody.GetChildAt(2));
-
- Vector2 textEditorSize=Vector2(0.7f*bodySize.width, 3.0f*TEXTEDITOR_HEIGHT*bodySize.height);
-
- Vector2 posEditor=Vector2(0.3f*bodySize.width/2, bodySize.height - (textEditorSize.height + VERTICAL_SPACE*bodySize.height));
- Control ctlEditor=CreateTextEditor(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,posEditor,"",textEditorSize);
- ctlBody.Add(ctlEditor);
-
- editor=TextEditor::DownCast(ctlEditor.GetChildAt(0));
- editor.TextChangedSignal().Connect(this,&TBTDaliTextControlView::onTextChanged);
- PushButton button=PushButton::DownCast(ctlEditor.GetChildAt(1));
- button.ClickedSignal().Connect(this, &TBTDaliTextControlView::OnButtonClick);
-
- Vector2 textFieldSize=Vector2(0.7f*bodySize.width, TEXTFIELD_HEIGHT*bodySize.height);
- Vector2 pos=Vector2(0.3f*bodySize.width/2, bodySize.height - (VERTICAL_SPACE*bodySize.height + textEditorSize.height + 6.0f*VERTICAL_SPACE*bodySize.height + textFieldSize.height));
- Control txtField=CreateTextField(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,pos,"",textFieldSize);
- ctlBody.Add(txtField);
-
- field=TextField::DownCast(txtField.GetChildAt(0));
- field.SetProperty(TextField::Property::MAX_LENGTH, 10);
- field.MaxLengthReachedSignal().Connect(this,&TBTDaliTextControlView::onMaxLengthReached);
- field.KeyEventSignal().Connect(this, &TBTDaliTextControlView::onKeyEventSignal);
- PushButton button1=PushButton::DownCast(txtField.GetChildAt(1));
- button1.ClickedSignal().Connect(this, &TBTDaliTextControlView::OnButtonClick1);
-}
-bool TBTDaliTextControlView::OnButtonClick(Button button)
-{
- DBG("TBTDaliTextControlView::OnButtonClick");
- editor.SetProperty(TextEditor::Property::TEXT,"");
- return true;
-}
-bool TBTDaliTextControlView::OnButtonClick1(Button button)
-{
- DBG("TBTDaliTextControlView::OnButtonClick1");
- field.SetProperty(TextField::Property::TEXT,"");
- return true;
-}
-
-void TBTDaliTextControlView::onMaxLengthReached(TextField field)
-{
- DBG("TBTDaliTextControlView::onMaxLengthReached");
- lblField.SetProperty(TextLabel::Property::TEXT," Text field max length reached signal called");
- lblField.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-void TBTDaliTextControlView::onTextChanged(TextEditor editor)
-{
- DBG("TBTDaliTextControlView::onTextChanged");
- lblEditor.SetProperty(TextLabel::Property::TEXT," Text editor text changed signal called");
- lblEditor.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
-}
-bool TBTDaliTextControlView::onKeyEventSignal(Control control, const KeyEvent& event)
-{
- DBG("TBTDaliTextControlView::onKeyEventSignal");
- lblKeyEvent.SetProperty(TextLabel::Property::TEXT," KeyEvent signal called");
- lblKeyEvent.SetProperty(TextLabel::Property::TEXT_COLOR,Color::GREEN);
- return false;
-}
-
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-touch-data-view.cpp
- * @brief To test functionality of dali touch data
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-touch-data-view.h"
-std::string GetTouchDataState ( TouchPoint::State state )
-{
- std::string ret="";
- switch(state)
- {
- case TouchPoint::Started:
- {
- if(TouchPoint::Started==state)
- ret="Started";
- else
- ret="Down";
- }
- break;
-
- case TouchPoint::Finished:
- {
- if(TouchPoint::Finished==state)
- ret="Finished";
- else
- ret="Up";
- }
- break;
-
- case TouchPoint::Motion:
- ret="Motion";
- break;
-
- case TouchPoint::Leave:
- ret="Leave";
- break;
-
- case TouchPoint::Stationary:
- ret="Stationary";
- break;
-
- case TouchPoint::Interrupted:
- ret="Interrupted";
- break;
-
- case TouchPoint::Last:
- ret="Last";
- break;
-
- default:
- ret="None";
- break;
- }
- return ret;
-}
-
-std::string GetTouchDataPointState ( PointState::Type state )
-{
- std::string str="";
- switch(state)
- {
- case PointState::STARTED:
- str="STARTED/DOWN";
- break;
- case PointState::FINISHED:
- str="FINISHED/UP";
- break;
- case PointState::MOTION:
- str="MOTION";
- break;
- case PointState::LEAVE:
- str="LEAVE";
- break;
- case PointState::STATIONARY:
- str="STATIONARY";
- break;
- case PointState::INTERRUPTED:
- str="INTERRUPTED";
- break;
- default:
- str="None";
- break;
- }
- return str;
-}
-TBTDaliTouchDataView::TBTDaliTouchDataView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("Touch Data");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:\n"
- "1. Run DALi Touch Data.\n"
- "2. Touch on the screen.\n"
- "3. If the touched data mgs are changed"
- " then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>.\n";
-
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]=" Touch event not call";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, 6.0f*TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- txtTouch=TextLabel::DownCast(ctlBody.GetChildAt(0));
- stage.TouchSignal().Connect(this,&TBTDaliTouchDataView::onTouchEvent);
-}
-
-void TBTDaliTouchDataView::onTouchEvent(const TouchData& touchdata)
-{
- DBG("In TBTDaliTouchDataView::onTouchEvrnt");
-
- std::string txt="";
- txt.append(" **Touch event is called** ");
- //time
- unsigned long time=touchdata.GetTime()/1000;
- txt.append("\n Touch time: ");
- int hr=(time/3600)%24;
- int sec=time%3600;
- int min=sec/60;
- sec=sec%60;
- txt.append(LongToString(hr)+":"+LongToString(min)+":"+LongToString(sec));
-
- //point count
- int count=touchdata.GetPointCount();
- txt.append("\n Point count: ");
- txt.append(IntToString(count));
-
- //
- int id=touchdata.GetDeviceId(count-1);
- txt.append("\n DeviceId: ");
- txt.append(IntToString(id));
-
- //state
- txt.append("\n State: ");
- txt.append(GetTouchDataPointState(touchdata.GetState(count-1)));
-
- //HitActor
- //Actor actor=touchdata.GetHitActor(0);
-// TableView table=TableView::DownCast(actor);
- txt.append("\n Hit Actor: ");
- txt.append(typeid(touchdata.GetHitActor(count-1)).name());
-
-// txt.append(table.GetName());
-// txt.append(", Hit Actor child count: ");
-// txt.append(IntToString(table.GetChildCount()));
-
- //local point
- Vector2 vec=touchdata.GetLocalPosition(count-1);
- txt.append("\n Local Point: ");
- txt.append("X:"+FloatToString(vec.x)+" Y:"+FloatToString(vec.y));
- //screen point
- Vector2 vec1=touchdata.GetScreenPosition(count-1);
- txt.append("\n Screen Point: ");
- txt.append("X:"+FloatToString(vec1.x)+" Y:"+FloatToString(vec1.y));
-
- //radius
- int radius=touchdata.GetRadius(count-1);
- txt.append("\n Radius: ");
- txt.append(IntToString(radius));
-
-
- //
- Vector2 vec2=touchdata.GetEllipseRadius(count-1);
- txt.append("\n Radii: ");
- txt.append("horizontal:"+FloatToString(vec2.x)+" vertical:"+FloatToString(vec2.y));
-
- //
- float pressure=touchdata.GetPressure(count-1);
- txt.append("\n Pressure: ");
- txt.append(FloatToString(pressure));
-
- //
- Degree deg= touchdata.GetAngle(count-1);
- txt.append("\n Degree: ");
- txt.append(FloatToString(deg.degree));
-
- this->txtTouch.SetSize(this->bodySize);
- this->txtTouch.SetProperty( TextLabel::Property::TEXT, txt );
- this->txtTouch.SetProperty( TextLabel::Property::ENABLE_MARKUP, true );
- this->txtTouch.SetProperty( TextLabel::Property::POINT_SIZE, 8.0f );
- this->txtTouch.SetProperty( TextLabel::Property::TEXT_COLOR,Color::CYAN);
- this->txtTouch.SetProperty( TextLabel::Property::MULTI_LINE,true);
-}
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-tts-view.cpp
- * @brief To test functionality of dali tts
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @credit
- *
- */
-
-#include "view/tbt-dali-tts-view.h"
-
-TBTTTSView::TBTTTSView(Application& mApplication, app_control_h _control) :
- UiUtils(mApplication, _control) {
-
- Init("TTS Player");//initialize the common view
- mInfoText=std::string("")+
- "\nTo perform the test:"
- "\n1. Run DALi TTS."
- "\n2. Press the Play/Pause/Stop test button."
- "\n3. If the corresponding event signals "
- "state are changed then press <color value='green'><b>Pass</b></color>. "
- "Otherwise, press <color value='red'><b>Fail</b></color>";
-
- Stage stage = Stage::GetCurrent();
-
- Property::Map ctl;
- ctl["lbl1"]=" TTS player status";
-
- Property::Map size;
- size["lbl1"]=Vector2(bodySize.width, TEXTLABEL_HEIGHT * bodySize.height);
-
- CreateLabelList(ctl,size);//create textlabel list
- lblTTS=TextLabel::DownCast(ctlBody.GetChildAt(0));
-
- //textfield
- Vector2 textFieldSize=Vector2(0.9f*bodySize.width, TEXTFIELD_HEIGHT*bodySize.height);
- Vector2 pos=Vector2(0.1f*bodySize.width/2, bodySize.height/2);
- Control txtField=CreateTextField(AnchorPoint::TOP_LEFT,ParentOrigin::TOP_LEFT,pos,"",textFieldSize);
- ctlBody.Add(txtField);
- txtTTS=TextField::DownCast(txtField.GetChildAt(0));
- txtTTS.SetProperty(TextField::Property::TEXT, "The quick brown fox jumps over the lazy dog");
- txtTTS.SetProperty(TextField::Property::POINT_SIZE, 7);
- PushButton button=PushButton::DownCast(txtField.GetChildAt(1));
- button.ClickedSignal().Connect(this, &TBTTTSView::OnButtonClick);
-
- //play, pause, stop container
- TableView controlTable = TableView::New(1, 3);
- controlTable.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- controlTable.SetParentOrigin(ParentOrigin::TOP_LEFT);
- controlTable.SetSize(footerSize);
- controlTable.SetPosition(0.0f, bodySize.height - footerSize.height);
- ctlBody.Add(controlTable);
-
- //play, pause, stop
- Vector2 buttonSize(bodySize.width / 3, footerSize.height);
- Vector4 selectedColor = Vector4(0.55f, 0.8f, 0.9f, 1.0f);
- Vector4 unselectedColor = Vector4(0.8f, 0.9f, 0.9f, 1.0f);
-
- playButton = CreateButton(AnchorPoint::BOTTOM_LEFT, Vector2(0.0f, 0.0f), "Play",
- selectedColor, unselectedColor, buttonSize);
- playButton.ClickedSignal().Connect(this, &TBTTTSView::OnPlayButtonClicked);
-
- interruptButton = CreateButton(AnchorPoint::BOTTOM_LEFT, Vector2(0.0f, 0.0f), "Pause",
- selectedColor, unselectedColor, buttonSize);
- interruptButton.ClickedSignal().Connect(this, &TBTTTSView::OnInterruptButtonClicked);
-
- stopButton = CreateButton(AnchorPoint::BOTTOM_LEFT, Vector2(0.0f, 0.0f), "Stop",
- selectedColor, unselectedColor,buttonSize);
- stopButton.ClickedSignal().Connect(this, &TBTTTSView::OnStopButtonClicked);
-
- controlTable.AddChild(playButton, TableView::CellPosition(0,0));
- controlTable.AddChild(interruptButton, TableView::CellPosition(0,1));
- controlTable.AddChild(stopButton, TableView::CellPosition(0,2));
-
- tts = TtsPlayer::Get();
- updateViewControls();
-}
-bool TBTTTSView::OnButtonClick(Button button)
-{
- DBG("TBTTTSView::OnButtonClick");
- txtTTS.SetProperty(TextField::Property::TEXT, "");
- return true;
-}
-
-void TBTTTSView::updateViewControls()
-{
- DBG("TBTTTSView::updateViewControls");
- if (tts.GetState() == TtsPlayer::PLAYING)
- {
- playButton.SetProperty( Button::Property::DISABLED, true);
- interruptButton.SetProperty( Button::Property::DISABLED, false);
- interruptButton.SetProperty( Toolkit::Button::Property::LABEL, "Pause" );
- stopButton.SetProperty( Button::Property::DISABLED, false);
- }
- else if (tts.GetState() == TtsPlayer::PAUSED)
- {
- playButton.SetProperty( Button::Property::DISABLED, true);
- interruptButton.SetProperty( Button::Property::DISABLED, false);
- interruptButton.SetProperty( Toolkit::Button::Property::LABEL, "Resume" );
- stopButton.SetProperty( Button::Property::DISABLED, false);
- }
- else
- {
- playButton.SetProperty( Button::Property::DISABLED, false);
- interruptButton.SetProperty( Button::Property::DISABLED, true);
- stopButton.SetProperty( Button::Property::DISABLED, true);
- }
-
-}
-
-bool TBTTTSView::OnPlayButtonClicked(Button button)
-{
- DBG("TBTTTSView::OnPlayButtonClicked");
- if (tts.GetState() == TtsPlayer::READY)
- {
- std::string text;
- txtTTS.GetProperty(TextField::Property::TEXT).Get(text);
- tts.Play(text);
- if (tts.GetState() == TtsPlayer::PLAYING)
- {
- DBG("TtsPlayer::PLAYING");
- lblTTS.SetProperty(TextLabel::Property::TEXT," TTS player status: PLAYING");
- lblTTS.SetProperty(TextLabel::Property::TEXT_COLOR, Color::CYAN);
- }
- }
- updateViewControls();
- return true;
-}
-
-bool TBTTTSView::OnInterruptButtonClicked(Button button)
-{
- DBG("TBTTTSView::OnInterruptButtonClicked");
- if (tts.GetState() == TtsPlayer::PLAYING)
- {
- DBG("TtsPlayer::PLAYING");
- tts.Pause();
- if (tts.GetState() == TtsPlayer::PAUSED)
- {
- DBG("TtsPlayer::PAUSED");
- lblTTS.SetProperty(TextLabel::Property::TEXT," TTS player status: PAUSED");
- lblTTS.SetProperty(TextLabel::Property::TEXT_COLOR, Color::CYAN);
- }
- }
- else if (tts.GetState() == TtsPlayer::PAUSED)
- {
- DBG("TtsPlayer::PAUSED");
- tts.Resume();
- if (tts.GetState() == TtsPlayer::PLAYING)
- {
- DBG("TtsPlayer::PLAYING");
- lblTTS.SetProperty(TextLabel::Property::TEXT," TTS player status: PLAYING");
- lblTTS.SetProperty(TextLabel::Property::TEXT_COLOR, Color::CYAN);
- }
- }
- updateViewControls();
- return true;
-}
-
-bool TBTTTSView::OnStopButtonClicked(Button button)
-{
- DBG("TBTTTSView::OnStopButtonClicked");
- if (tts.GetState() != TtsPlayer::UNAVAILABLE)
- {
- tts.Stop();
- if (tts.GetState() == TtsPlayer::READY)
- {
- DBG("TtsPlayer::READY");
- lblTTS.SetProperty(TextLabel::Property::TEXT," TTS player status: READY");
- lblTTS.SetProperty(TextLabel::Property::TEXT_COLOR, Color::CYAN);
- }
- }
- updateViewControls();
- return true;
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="5.0" package="org.tizen.tbtcoreapp-dali" version="1.0.0">
- <profile name="mobile"/>
- <ui-application appid="org.tizen.tbtcoreapp-dali" exec="tbtcoreapp-dali" multiple="false" nodisplay="false" taskmanage="true" type="capp">
- <label>tbtcoreapp-dali</label>
- <icon>tbtcoreapp-dali.png</icon>
- </ui-application>
- <privileges>
- <privilege>http://tizen.org/privilege/mediastorage</privilege>
- <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
- <privilege>http://tizen.org/privilege/externalstorage</privilege>
- <privilege>http://tizen.org/privilege/widget.viewer</privilege>
- </privileges>
- <feature name="http://tizen.org/feature/screen.size.all">true</feature>
-</manifest>
TBT_APP_IOTCON_BASIC_CLIENT,
- TBT_APP_DALI_ACTOR, //DALi APP include here
-
- TBT_APP_DALI_STAGE,
-
- TBT_APP_DALI_TOUCH_DATA,
-
- TBT_APP_DALI_BUTTON,
-
- TBT_APP_DALI_SLIDER,
-
- TBT_APP_DALI_TEXT_CONTROL,
-
- TBT_APP_DALI_KEY_BOARD_FOCUS_MANAGER,
-
- TBT_APP_DALI_ACCESSIBILITY_MANAGER,
-
- TBT_APP_DALI_ACCESSIBILITY_MANAGER_FLICK,
-
- TBT_APP_DALI_ACCESSIBILITY_MANAGER_TAP,
-
- TBT_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE,
-
- TBT_APP_DALI_LONG_PRESS_GESTURE_SINGLE,
-
- TBT_APP_DALI_LONG_PRESS_GESTURE_DOUBLE,
-
- TBT_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE,
-
- TBT_APP_DALI_PAN_GESTURE_SINGLE,
-
- TBT_APP_DALI_PAN_GESTURE_DOUBLE,
-
- TBT_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION,
-
- TBT_APP_DALI_PINCH_GESTURE_SINGLE,
-
- TBT_APP_DALI_TAP_GESTURE_SINGLE,
-
- TBT_APP_DALI_TAP_GESTURE_MULTIPLE,
-
- TBT_APP_DALI_STYLE_MANAGER,
-
- TBT_APP_DALI_TTS,
-
- TBT_APP_DALI_APP,
-
- TBT_APP_DALI_SCROLL,
TBT_APP_MULTICLASS,
#define TBT_MODULE_APP_IOTCON_BASIC_CLIENT
-#define TBT_MODULE_DALI
-#define TBT_MODULE_APP_DALI_APP
-#define TBT_MODULE_APP_DALI_ACTOR
-#define TBT_MODULE_APP_DALI_STAGE
-#define TBT_MODULE_APP_DALI_TOUCH_DATA
-#define TBT_MODULE_APP_DALI_BUTTON
-#define TBT_MODULE_APP_DALI_SLIDER
-#define TBT_MODULE_APP_DALI_TEXT_CONTROL
-#define TBT_MODULE_APP_DALI_KEY_BOARD_FOCUS_MANAGER
-#define TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER
-#define TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_FLICK
-#define TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_TAP
-//#define TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE
-#define TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_SINGLE
-#define TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_DOUBLE
-#define TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE
-#define TBT_MODULE_APP_DALI_PAN_GESTURE_SINGLE
-#define TBT_MODULE_APP_DALI_PAN_GESTURE_DOUBLE
-#define TBT_MODULE_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION
-#define TBT_MODULE_APP_DALI_PINCH_GESTURE_SINGLE
-#define TBT_MODULE_APP_DALI_TAP_GESTURE_SINGLE
-#define TBT_MODULE_APP_DALI_TAP_GESTURE_MULTIPLE
-#define TBT_MODULE_APP_DALI_STYLE_MANAGER
-#define TBT_MODULE_APP_DALI_TTS
-#define TBT_MODULE_APP_DALI_SCROLL
-//#define TBT_MODULE_APP_DALI_SCROLL_BAR
-//#define TBT_MODULE_APP_DALI_HOVER_EVENT
-//#define TBT_MODULE_APP_DALI_KEY_EVENT
-//#define TBT_MODULE_APP_DALI_LONGPRESS_GESTURE_DETECTOR
-//#define TBT_MODULE_APP_DALI_TOUCH_EVENT
-//#define TBT_MODULE_APP_DALI_TOUCH_DATA
-//#define TBT_MODULE_APP_DALI_KEY_GRAB
-//#define TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER
-//#define TBT_MODULE_APP_DALI_BUTTON
-//#define TBT_MODULE_APP_DALI_CONTROLL
-//#define TBT_MODULE_APP_DALI_SCROLL_BAR
-//#define TBT_MODULE_APP_DALI_SCROLL_VIEW
-//#define TBT_MODULE_APP_DALI_TEXT_FIELD
-//#define TBT_MODULE_APP_DALI_KEYBOARD_FOCUS_MANAGER
-//#define TBT_MODULE_APP_DALI_STYLE_MANAGER
-//#define TBT_MODULE_APP_DALI_TEXT_EDITOR
-//#define TBT_MODULE_APP_DALI_SLIDER
#define TBT_MODULE_MULTICLASS
#define TBT_MODULE_APP_MULTICLASS
#define TBT_MODULE_USBHOST
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- *******************************************************************************/
-/**
- * @file tbt-gps-view.h
- * @brief covers location retrieval
- * starts location service using gps method and continuously updates the current location
- * @since_tizen 2.3
- * @author golam kayes(g.kayes@samsung.com) and salman rahman(salman.ran)
- * @date October, 2014
- * @bug location manager does not start in device
- * @credit
- *
- */
-
-#ifndef __TBT_dali_view_H__
-#define __TBT_dali_view_H__
-
-#include "utils/app_module_config.h"
-#ifdef TBT_MODULE_DALI
-
-#include <Evas.h>
-#include "model/tbt-list.h"
-
-
-/**
- * @typedef dali_viewer_view
- * @since_tizen 2.3
- * @brief A gps viewer view handle.
- */
-typedef struct _view_item view_item;
-typedef struct _dali_view dali_view;
-
-/**
- * @brief Create gps camera view
- * @since_tizen 2.3
- * @param[in] navi Parent naviframe
- * @param[in] custom structute to hold tbt application information
- * @param[in] item of the main tbt menu
- * @return Pointer of gps on success, otherwise NULL
- */
-dali_view *dali_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item, char *module_name);
-
-#endif
-#endif // __TBT_dali_view_H__
profile = mobile-5.0
# C/CPP Sources
-USER_SRCS = src/view/tbt-mock-view.c src/utils/gl-types.c src/view/tbt-mtp-view.c src/view/tbt-sound-view.c src/view/tbt-bluetoothle-view.c src/view/tbt-wifidirect-info-view.c src/view/tbt-dali-view.c src/view/tbt-sound-manager-view.c src/view/tbt-touch-view.c src/view/tbt-cbhm-view.c src/view/tbt-systemsettings-view.c src/view/tbt-voice-control-view.c src/view/tbt-gps-view.c src/view/tbt-stt-view.c src/view/tbt-event-view.c src/utils/gl-utils.c src/view/tbt-radio-view.c src/view/tbt-datacontrol-view.c src/view/tbt-display-view.c src/main.c src/view/tbt-nsd-dns-sd-view.c src/view/tbt-wifi-view.c src/window.c src/view/tbt-connection-view.c src/view/tbt-shortcut-view.c src/view/tbt-input-view.c src/view/tbt-usb-host-view.c src/view/tbt-camera-view.c src/view/tbt-bluetoothoob-view.c src/utils/xml-util.c src/view/tbt-oauth2-view.c src/view/tbt-package-manager-view.c src/view/tbt-multiclass-view.c src/model/tbt-list.c src/view/tbt-oauth2-info-view.c src/view/tbt-graphics-view.c src/view/tbt-wifidirect-view.c src/view/tbt-efl-callbacks.c src/view/tbt-animation-view.c src/view/tbt-screenmirrorsink-view.c src/view/tbt-ui-view.c src/view/tbt-nfc-view.c src/view/tbt-attachpanel-view.c src/view/tbt-widget-view.c src/view/tbt-image-view.c src/view/tbt-bluetooth-callback-view.c src/view/tbt-autofill-view.c src/view/tbt-nsd-ssdp-view.c src/view/tbt-motion-detection-view.c src/view/tbt-ime-view.c src/view/tbt-iotcon-view.c src/view/tbt-contacts-view.c src/utils/util_state_object.c src/view/tbt-runtimeinfo-view.c src/utils/ui-utils.c src/view/tbt-tts-view.c src/view/tbt-bluetooth-view.c src/view/tbt-feature-view.c src/view/tbt-sensor-view.c src/view/tbt-list-view.c src/view/tbt-local-view.c src/view/tbt-storage-view.c src/view/tbt-push-view.c src/view/tbt-nfc-hce-preferred-view.c src/view/tbt-common-view.c src/view/tbt-notification-view.c src/main-app.c src/view/tbt-genlist-view.c src/view/tbt-pick-view.c src/view/tbt-media-key-view.c
+USER_SRCS = src/view/tbt-mock-view.c src/utils/gl-types.c src/view/tbt-mtp-view.c src/view/tbt-sound-view.c src/view/tbt-bluetoothle-view.c src/view/tbt-wifidirect-info-view.c src/view/tbt-sound-manager-view.c src/view/tbt-touch-view.c src/view/tbt-cbhm-view.c src/view/tbt-systemsettings-view.c src/view/tbt-voice-control-view.c src/view/tbt-gps-view.c src/view/tbt-stt-view.c src/view/tbt-event-view.c src/utils/gl-utils.c src/view/tbt-radio-view.c src/view/tbt-datacontrol-view.c src/view/tbt-display-view.c src/main.c src/view/tbt-nsd-dns-sd-view.c src/view/tbt-wifi-view.c src/window.c src/view/tbt-connection-view.c src/view/tbt-shortcut-view.c src/view/tbt-input-view.c src/view/tbt-usb-host-view.c src/view/tbt-camera-view.c src/view/tbt-bluetoothoob-view.c src/utils/xml-util.c src/view/tbt-oauth2-view.c src/view/tbt-package-manager-view.c src/view/tbt-multiclass-view.c src/model/tbt-list.c src/view/tbt-oauth2-info-view.c src/view/tbt-graphics-view.c src/view/tbt-wifidirect-view.c src/view/tbt-efl-callbacks.c src/view/tbt-animation-view.c src/view/tbt-screenmirrorsink-view.c src/view/tbt-ui-view.c src/view/tbt-nfc-view.c src/view/tbt-attachpanel-view.c src/view/tbt-widget-view.c src/view/tbt-image-view.c src/view/tbt-bluetooth-callback-view.c src/view/tbt-autofill-view.c src/view/tbt-nsd-ssdp-view.c src/view/tbt-motion-detection-view.c src/view/tbt-ime-view.c src/view/tbt-iotcon-view.c src/view/tbt-contacts-view.c src/utils/util_state_object.c src/view/tbt-runtimeinfo-view.c src/utils/ui-utils.c src/view/tbt-tts-view.c src/view/tbt-bluetooth-view.c src/view/tbt-feature-view.c src/view/tbt-sensor-view.c src/view/tbt-list-view.c src/view/tbt-local-view.c src/view/tbt-storage-view.c src/view/tbt-push-view.c src/view/tbt-nfc-hce-preferred-view.c src/view/tbt-common-view.c src/view/tbt-notification-view.c src/main-app.c src/view/tbt-genlist-view.c src/view/tbt-pick-view.c src/view/tbt-media-key-view.c
# EDC Sources
USER_EDCS =
#endif
#endif
-#ifdef TBT_MODULE_DALI
- #ifdef TBT_MODULE_APP_DALI_ACTOR
-
- //DALi Test
- {
- .name = "DALi Actor",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_ACTOR,
- .icon_name = "dummy",
- .info = "DALi Actor Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_STAGE
-
- //DALi Test
- {
- .name = "DALi Stage",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_STAGE,
- .icon_name = "dummy",
- .info = "DALi Stage Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_TOUCH_DATA
-
- //DALi Test
- {
- .name = "DALi Touch Data",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_TOUCH_DATA,
- .icon_name = "dummy",
- .info = "DALi Controls Touch Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_BUTTON
-
- //DALi Test
- {
- .name = "DALi Button",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_BUTTON,
- .icon_name = "dummy",
- .info = "DALi Button Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_SLIDER
-
- //DALi Test
- {
- .name = "DALi Slider",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_SLIDER,
- .icon_name = "dummy",
- .info = "DALi Slider Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_TEXT_CONTROL
-
- //DALi Test
- {
- .name = "DALi Text Control",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_TEXT_CONTROL,
- .icon_name = "dummy",
- .info = "DALi Text Control Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_KEY_BOARD_FOCUS_MANAGER
-
- //DALi Test
- {
- .name = "DALi Keyboard Focus Manager",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_KEY_BOARD_FOCUS_MANAGER,
- .icon_name = "dummy",
- .info = "DALi Keyboard Focus Manager Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER
-
- //DALi Test
- {
- .name = "DALi Accessibility Manager",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER,
- .icon_name = "dummy",
- .info = "DALi Accessibility Manager Signals",
- .result = 0,
- .required_features_count = 1,
- .features_required = { FEATURE_SPEECH_SYNTHESIS }
- },
- #endif
-#ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_FLICK
-
- //DALi Test
- {
- .name = "DALi Accessibility Manager Flick",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER_FLICK,
- .icon_name = "dummy",
- .info = "DALi Accessibility Manager Signals",
- .result = 0,
- .required_features_count = 1,
- .features_required = { FEATURE_SPEECH_SYNTHESIS }
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_TAP
-
- //DALi Test
- {
- .name = "DALi Accessibility Manager Tap",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER_TAP,
- .icon_name = "dummy",
- .info = "DALi Accessibility Manager Signals",
- .result = 0,
- .required_features_count = 1,
- .features_required = { FEATURE_SPEECH_SYNTHESIS }
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE
-
- //DALi Test
- {
- .name = "DALi Accessibility Manager Swipe",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE,
- .icon_name = "dummy",
- .info = "DALi Accessibility Manager Signals",
- .result = 0,
- .required_features_count = 1,
- .features_required = { FEATURE_SPEECH_SYNTHESIS }
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_SINGLE
-
- //DALi Test
- {
- .name = "DALi Long Press Gesture Single",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_LONG_PRESS_GESTURE_SINGLE,
- .icon_name = "dummy",
- .info = "DALi Long Press Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_DOUBLE
-
- //DALi Test
- {
- .name = "DALi Long Press Gesture Double",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_LONG_PRESS_GESTURE_DOUBLE,
- .icon_name = "dummy",
- .info = "DALi Long Press Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE
-
- //DALi Test
- {
- .name = "DALi Long Press Gesture Multiple",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE,
- .icon_name = "dummy",
- .info = "DALi Long Press Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_PAN_GESTURE_SINGLE
-
- //DALi Test
- {
- .name = "DALi Pan Gesture Single",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_PAN_GESTURE_SINGLE,
- .icon_name = "dummy",
- .info = "DALi Pan Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_PAN_GESTURE_DOUBLE
-
- //DALi Test
- {
- .name = "DALi Pan Gesture Double",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_PAN_GESTURE_DOUBLE,
- .icon_name = "dummy",
- .info = "DALi Pan Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION
-
- //DALi Test
- {
- .name = "DALi Pan Gesture Angle & Direction",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION,
- .icon_name = "dummy",
- .info = "DALi Pan Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_PINCH_GESTURE_SINGLE
-
- //DALi Test
- {
- .name = "DALi Pinch Gesture Single",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_PINCH_GESTURE_SINGLE,
- .icon_name = "dummy",
- .info = "DALi Pinch Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_TAP_GESTURE_SINGLE
-
- //DALi Test
- {
- .name = "DALi Tap Gesture Single",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_TAP_GESTURE_SINGLE,
- .icon_name = "dummy",
- .info = "DALi tap Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_TAP_GESTURE_MULTIPLE
-
- //DALi Test
- {
- .name = "DALi Tap Gesture Multiple",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_TAP_GESTURE_MULTIPLE,
- .icon_name = "dummy",
- .info = "DALi tap Gesture Detector Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_STYLE_MANAGER
-
- //DALi Test
- {
- .name = "DALi Style Manager",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_STYLE_MANAGER,
- .icon_name = "dummy",
- .info = "DALi Style Manager Signals",
- .result = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_TTS
-
- //DALi Test
- {
- .name = "DALi TTS",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_TTS,
- .icon_name = "dummy",
- .info = "DALi TTS Functionality",
- .result = 0,
- .required_features_count = 1,
- .features_required = { FEATURE_SPEECH_SYNTHESIS }
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_APP
-
- //DALi Test
- {
- .name = "DALi App",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_APP,
- .icon_name = "dummy",
- .info = "DALi Application Functionality",
- .result = 0,
- .required_features_count = 0
- },
- #endif
- #ifdef TBT_MODULE_APP_DALI_SCROLL
-
- //DALi Test
- {
- .name = "DALi Scroll View",
- .parent = "DALi",
- .apptype = TBT_APP_DALI_SCROLL,
- .icon_name = "dummy",
- .info = "DALi Scroll Functionality",
- .result = 0,
- .required_features_count = 0
- },
- #endif
-
-#endif
#ifdef TBT_MODULE_MULTICLASS
#ifdef TBT_MODULE_APP_MULTICLASS
+++ /dev/null
-/*******************************************************************************
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *******************************************************************************/
-/**
- * @file tbt-dali-view.c
- * @brief covers dali module api's
- *
- * @author Jahangir Alam(ja.alam@samsung.com)
- * @date July, 2016
- * @bug NA
- * @credit
- *
- */
-
-#include "utils/app_module_config.h"
-#ifdef TBT_MODULE_DALI
-
-#include <Elementary.h>
-#include <locations.h>
-
-#include "utils/logger.h"
-#include "utils/config.h"
-#include "utils/ui-utils.h"
-#include "view/tbt-dali-view.h"
-#include "view/tbt-common-view.h"
-
-struct _view_item
-{
- char* uri;
- char* mime;
-};
-
-struct _dali_view
-{
- common_view* view;
-
- app_control_h service;
- char *module_name;
- view_item* dali;
-};
-
-static void app_control_view_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *data);
-
-
-/**
- * @function get_app_control_error
- * @since_tizen 3.0
- * @description Get App Control Error
- * @parameter int: Int
- * @return static char*
- */
-static char* get_app_control_error(int ret)
-{
- char* error = NULL;
-
- switch (ret) {
- case APP_CONTROL_ERROR_NONE:
- error = "APP_CONTROL_ERROR_NONE";
- break;
- case APP_CONTROL_ERROR_INVALID_PARAMETER:
- error = "APP_CONTROL_ERROR_INVALID_PARAMETER";
- break;
- case APP_CONTROL_ERROR_OUT_OF_MEMORY:
- error = "APP_CONTROL_ERROR_OUT_OF_MEMORY";
- break;
- case APP_CONTROL_ERROR_APP_NOT_FOUND:
- error = "APP_CONTROL_ERROR_APP_NOT_FOUND";
- break;
- case APP_CONTROL_ERROR_KEY_NOT_FOUND:
- error = "APP_CONTROL_ERROR_KEY_NOT_FOUND";
- break;
- case APP_CONTROL_ERROR_KEY_REJECTED:
- error = "APP_CONTROL_ERROR_KEY_REJECTED";
- break;
- case APP_CONTROL_ERROR_INVALID_DATA_TYPE:
- error = "APP_CONTROL_ERROR_INVALID_DATA_TYPE";
- break;
- case APP_CONTROL_ERROR_LAUNCH_REJECTED:
- error = "APP_CONTROL_ERROR_LAUNCH_REJECTED";
- break;
- case APP_CONTROL_ERROR_PERMISSION_DENIED:
- error = "APP_CONTROL_ERROR_PERMISSION_DENIED";
- break;
- case APP_CONTROL_ERROR_LAUNCH_FAILED:
- error = "APP_CONTROL_ERROR_LAUNCH_FAILED";
- break;
- case APP_CONTROL_ERROR_TIMED_OUT:
- error = "APP_CONTROL_ERROR_TIMED_OUT";
- break;
-#ifdef TIZEN_3_0
- case APP_CONTROL_ERROR_IO_ERROR:
- error = "APP_CONTROL_ERROR_IO_ERROR";
- break;
-#endif
-#ifdef TIZEN_2_4
- case APP_CONTROL_ERROR_IO_ERROR:
- error = "APP_CONTROL_ERROR_IO_ERROR";
- break;
-#endif
- default:
- error = "Unknown Error";
- break;
- }
- return error;
-}
-
-static void app_control_view_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *data)
-{
-
- RETM_IF(NULL == data, "data is NULL");
-
- dali_view *view = NULL;
- view = (dali_view*)data;
- RETM_IF(NULL == view, "view is NULL");
-
- if(result == APP_CONTROL_RESULT_SUCCEEDED)
- {
- view->view->tbt_info->result = TBT_INFO_RESULT_PASS;
- elm_genlist_item_update(view->view->item);
- elm_naviframe_item_pop(view->view->navi);
- }
- else if(result == APP_CONTROL_RESULT_FAILED)
- {
- view->view->tbt_info->result = TBT_INFO_RESULT_FAIL;
- elm_genlist_item_update(view->view->item);
- elm_naviframe_item_pop(view->view->navi);
- }
- else if(result == APP_CONTROL_RESULT_CANCELED)
- {
- elm_naviframe_item_pop(view->view->navi);
- }
-
-}
-
-/**
- * @function dali_view_add
- * @since_tizen 3.0
- * @description DALi View Add
- * @parameter Evas_Object*: Evas Object Pointer, tbt_info*: Tbt Info Pointer, Elm_Object_Item*: Elm Object Item Pointer
- * @return dali_view*
- */
-dali_view *dali_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item, char *module_name)
-{
- RETVM_IF(NULL == navi, NULL, "navi is null");
-
- dali_view *this = NULL;
- this = calloc(1, sizeof(dali_view));
- RETVM_IF(!this, NULL, "calloc failed");
- this->view = calloc(1, sizeof(common_view));
- RETVM_IF(!this->view, NULL, "calloc failed");
-
- common_view_without_layout_add(navi, tbt_info, item, this->view, this);
- RETVM_IF(NULL == this->view, NULL, "navi is null");
-
- int ret = app_control_create(&this->service);
- RETVM_IF(APP_CONTROL_ERROR_NONE != ret, NULL,"app_control_create failed :%s", get_app_control_error(ret));
- RETVM_IF(NULL == this->service, NULL, "Service NULL! ");
- ret = app_control_set_operation(this->service, APP_CONTROL_OPERATION_PICK);
- RETVM_IF(APP_CONTROL_ERROR_NONE != ret, NULL, "app_control_set_operation failed :%s", get_app_control_error(ret));
-
- this->dali = (view_item*)malloc(sizeof(view_item));
- this->dali->uri = NULL;
- this->dali->mime = "text/plain";
- this->module_name = module_name;
-
- ret = app_control_set_mime(this->service, this->dali->mime);
- RETVM_IF(APP_CONTROL_ERROR_NONE != ret, NULL,"app_control_set_mime failed :%s", get_app_control_error(ret));
- ret = app_control_set_app_id(this->service, "org.tizen.tbtcoreapp-dali");
- ret = app_control_add_extra_data(this->service, "module_name", this->module_name);
- RETVM_IF(APP_CONTROL_ERROR_NONE != ret, NULL,"app_control_set_mime failed :%s", get_app_control_error(ret));
- ret = app_control_send_launch_request(this->service , app_control_view_cb, this);
- RETVM_IF(APP_CONTROL_ERROR_NONE != ret, NULL, "app_control_send_launch_request failed :%s", get_app_control_error(ret));
-
- return this;
-}
-
-#endif
#include "view/tbt-stt-view.h"
#include "view/tbt-voice-control-view.h"
#include "view/tbt-iotcon-view.h"
-#include "view/tbt-dali-view.h"
#include "view/tbt-multiclass-view.h"
#include "view/tbt-usb-host-view.h"
#include "view/tbt-motion-detection-view.h"
iotcon_view_add(view->navi, info, it);
break;
#endif
- #endif
- #ifdef TBT_MODULE_DALI
- case TBT_APP_DALI_ACTOR:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_ACTOR");
- break;
- case TBT_APP_DALI_STAGE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_STAGE");
- break;
- case TBT_APP_DALI_TTS:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_TTS");
- break;
- case TBT_APP_DALI_SCROLL:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_SCROLL");
- break;
- case TBT_APP_DALI_TOUCH_DATA:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_TOUCH_DATA");
- break;
- case TBT_APP_DALI_BUTTON:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_BUTTON");
- break;
- case TBT_APP_DALI_SLIDER:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_SLIDER");
- break;
- case TBT_APP_DALI_TEXT_CONTROL:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_TEXT_CONTROL");
- break;
- case TBT_APP_DALI_KEY_BOARD_FOCUS_MANAGER:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_KEY_BOARD_FOCUS_MANAGER");
- break;
- case TBT_APP_DALI_ACCESSIBILITY_MANAGER:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_ACCESSIBILITY_MANAGER");
- break;
- case TBT_APP_DALI_ACCESSIBILITY_MANAGER_FLICK:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_ACCESSIBILITY_MANAGER_FLICK");
- break;
- case TBT_APP_DALI_ACCESSIBILITY_MANAGER_TAP:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_ACCESSIBILITY_MANAGER_TAP");
- break;
- case TBT_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE");
- break;
- case TBT_APP_DALI_LONG_PRESS_GESTURE_SINGLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_LONG_PRESS_GESTURE_SINGLE");
- break;
- case TBT_APP_DALI_LONG_PRESS_GESTURE_DOUBLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_LONG_PRESS_GESTURE_DOUBLE");
- break;
- case TBT_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_LONG_PRESS_GESTURE_MULTIPLE");
- break;
- case TBT_APP_DALI_PAN_GESTURE_SINGLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_PAN_GESTURE_SINGLE");
- break;
- case TBT_APP_DALI_PAN_GESTURE_DOUBLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_PAN_GESTURE_DOUBLE");
- break;
- case TBT_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_PAN_GESTURE_ANGLE_DIRECTION");
- break;
- case TBT_APP_DALI_PINCH_GESTURE_SINGLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_PINCH_GESTURE_SINGLE");
- break;
- case TBT_APP_DALI_TAP_GESTURE_SINGLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_TAP_GESTURE_SINGLE");
- break;
- case TBT_APP_DALI_TAP_GESTURE_MULTIPLE:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_TAP_GESTURE_MULIPLE");
- break;
- case TBT_APP_DALI_STYLE_MANAGER:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_STYLE_MANAGER");
- break;
- case TBT_APP_DALI_APP:
- dali_view_add(view->navi, info, it, "TBT_APP_DALI_APP");
- break;
-
-
#endif
#ifdef TBT_MODULE_MULTICLASS
case TBT_APP_MULTICLASS: