<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecore.config.sbi.gcc45.app.debug.215006798" 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.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"/>
- <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<option id="gnu.cpp.compiler.option.optimization.level.1893472559" 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.873293997" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core" valueType="enumerated"/>
<option id="sbi.gnu.cpp.compiler.option.420224193" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-3.0-emulator.core_llvm36.i386.core.app"/>
+ <listOptionValue builtIn="false" value="mobile-3.0-device.core_llvm36.armel.core.app"/>
</option>
<option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.1439160692" 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/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/call-manager""/>
+ <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/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/email-service""/>
<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/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/msg-service""/>
<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="${RS_COMPILER_MISC}"/>
<listOptionValue builtIn="false" value=" -fPIE"/>
<listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
+ <listOptionValue builtIn="false" value="-mthumb"/>
</option>
<option id="gnu.cpp.compiler.option.include.paths.51879020" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
<option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.850572699" 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.10466486" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core" valueType="enumerated"/>
<option id="sbi.gnu.c.compiler.option.814679810" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-3.0-emulator.core_llvm36.i386.core.app"/>
+ <listOptionValue builtIn="false" value="mobile-3.0-device.core_llvm36.armel.core.app"/>
</option>
<option id="sbi.gnu.c.compiler.option.frameworks_inc.core.1056428091" 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/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/call-manager""/>
+ <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/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/email-service""/>
<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/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/msg-service""/>
<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="${RS_COMPILER_MISC}"/>
<listOptionValue builtIn="false" value=" -fPIE"/>
<listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
+ <listOptionValue builtIn="false" value="-mthumb"/>
</option>
<option id="gnu.c.compiler.option.include.paths.1026594349" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
- <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1039108830" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+ <tool command="arm-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1039108830" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1313196917" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
<tool id="org.tizen.nativecore.tool.fnmapgen.692914888" name="C FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen"/>
<tool id="org.tizen.nativecore.tool.sbi.edc.compiler.626098173" name="EDC Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.edc.compiler">
<option id="sbi.gnu.edc.compiler.option.misc.id.1317882362" name="Image Path (-id)" superClass="sbi.gnu.edc.compiler.option.misc.id" valueType="stringList">
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}}/edje/images""/>
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/res/black_theme/images}""/>
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/res/black_theme/images_edc}""/>
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/res/black_theme/edc/images}""/>
+ <listOptionValue builtIn="false" value="/home/r.dadhich/git_code/tizen_3.0/Feb24/gallery/res/edje/images"/>
</option>
<option id="sbi.gnu.edc.compiler.option.misc.sd.1377446978" name="Sound Path (-sd)" superClass="sbi.gnu.edc.compiler.option.misc.sd" valueType="stringList">
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}}/edje/sounds""/>
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/res/black_theme/edc/sounds}""/>
+ <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/res/edje/sounds}""/>
</option>
</tool>
</toolChain>
</folderInfo>
<sourceEntries>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="inc"/>
- <entry excluding="black_theme/edc/gl-timeline.edc|black_theme/edc/gl-selection-notification.edc|black_theme/edc/gl-progressbar.edc|black_theme/edc/gl-popup-entry.edc|black_theme/edc/gl-nocontents.edc|black_theme/edc/gl-naviframe.edc|black_theme/edc/gl-macro.edc|black_theme/edc/gl-label.edc|black_theme/edc/gl-gengrid-item-thumbview.edc|black_theme/edc/gl-gengrid-item-ctxpopup.edc|black_theme/edc/gl-gengrid-item-albums.edc|black_theme/edc/gl-gengrid.edc|black_theme/edc/gl-expanded-title.edc|black_theme/edc/gl-entry.edc|black_theme/edc/gl-ctxpopup.edc|black_theme/edc/gl-check.edc|black_theme/edc/gl-button.edc" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
+ <entry excluding="edje/gl-timeline.edc|edje/gl-selection-notification.edc|edje/gl-progressbar.edc|edje/gl-popup-entry.edc|edje/gl-nocontents.edc|edje/gl-naviframe.edc|edje/gl-macro.edc|edje/gl-label.edc|edje/gl-gengrid-item-thumbview.edc|edje/gl-gengrid-item-ctxpopup.edc|edje/gl-gengrid-item-albums.edc|edje/gl-gengrid.edc|edje/gl-expanded-title.edc|edje/gl-entry.edc|edje/gl-ctxpopup.edc|edje/gl-check.edc|edje/gl-button.edc|black_theme/edc/gl-timeline.edc|black_theme/edc/gl-selection-notification.edc|black_theme/edc/gl-progressbar.edc|black_theme/edc/gl-popup-entry.edc|black_theme/edc/gl-nocontents.edc|black_theme/edc/gl-naviframe.edc|black_theme/edc/gl-macro.edc|black_theme/edc/gl-label.edc|black_theme/edc/gl-gengrid-item-thumbview.edc|black_theme/edc/gl-gengrid-item-ctxpopup.edc|black_theme/edc/gl-gengrid-item-albums.edc|black_theme/edc/gl-gengrid.edc|black_theme/edc/gl-expanded-title.edc|black_theme/edc/gl-entry.edc|black_theme/edc/gl-ctxpopup.edc|black_theme/edc/gl-check.edc|black_theme/edc/gl-button.edc" 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>
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecore.config.sbi.gcc45.app.release.1632975597" 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.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"/>
- <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<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/call-manager""/>
+ <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/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/email-service""/>
<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/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/msg-service""/>
<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/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/call-manager""/>
+ <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/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/email-service""/>
<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/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/msg-service""/>
<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""/>
SET(RSRC_DIR res)
-SET(EDC_DIR black_theme/edc)
-SET(IMG_DIR black_theme/edc/images)
-SET(SOUND_DIR black_theme/edc/sounds)
-SET(IMG_EDC_DIR black_theme/images_edc)
+SET(EDC_DIR edje)
+SET(IMG_DIR edje/images)
+SET(SOUND_DIR edje/sounds)
+SET(IMG_EDC_DIR edje)
AUX_SOURCE_DIRECTORY(${CMAKE_SOURCE_DIR}/src/2dview 2DVIEW_SRCS)
)
ADD_CUSTOM_COMMAND(OUTPUT gl-images.edj
- COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/${IMG_EDC_DIR}
+ COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/${IMG_DIR}
${CMAKE_SOURCE_DIR}/${RSRC_DIR}/${IMG_EDC_DIR}/gl-images.edc ${CMAKE_BINARY_DIR}/gl-images.edj
DEPENDS ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/${IMG_EDC_DIR}/gl-images.edc
)
# install manifest file & icon
INSTALL(FILES ${CMAKE_BINARY_DIR}/${PKGNAME}.xml DESTINATION ${CMAKE_APP_SHARE_PACKAGES_DIR})
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/icon/${PKGNAME}.png DESTINATION ${ICONDIR})
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/${EDC_DIR}/icon/${PKGNAME}.png DESTINATION ${ICONDIR})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/widget/res/preview_gallery_4x4.png DESTINATION ${ICONDIR})
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/black_theme/images DESTINATION ${RESDIR})
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/edje/images DESTINATION ${RESDIR})
# i18n
ADD_SUBDIRECTORY(res/po)
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define GL_RES_IMG(image_name) image: image_name COMP
-
-/* Definition of image path used in edc file */
-
-/* gl-nocontents.edc */
-#define GALLERY_EDC_IMAGE_NOCONTENTS_PIC "T01_nocontents_videos.png"
-
-/* gl-places-marker.edc */
-#define GALLERY_EDC_IMAGE_PLACES_MARKER1 "T01_places_marker_01.png"
-
-/* gl-selection-notification.edc */
-#define GALLERY_EDC_IMAGE_BUTTON_REVEAL "00_button_reveal.png"
-#define GALLERY_EDC_IMAGE_BUTTON_REVEAL_PRESS "00_button_reveal_press.png"
-#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL "T01_button_circle_bg_normal.png"
-#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS "T01_button_circle_bg_normal_press.png"
-
-/* gl-gengrid.edc */
-#define GALLERY_EDC_IMAGE_OS_LEFT "00_overscrolling_left.png"
-#define GALLERY_EDC_IMAGE_OS_RIGHT "00_overscrolling_right.png"
-
-/* gl-gengrid-item-albums.edc */
-#define GALLERY_EDC_IMAGE_EDIT_EFFECT_BG "T01_editl_effect.png"
-#define GALLERY_EDC_IMAGE_ALBUM_BG "T01_album_folder_bg.png"
-
-/* gl-gengrid-item-thumbview.edc */
-#define GALLERY_EDC_IMAGE_BUTTON_PLAY "T01_btn_play.png"
-#define GALLERY_EDC_IMAGE_BUTTON_VIDEO_PLAY "T01_video_play.png"
-#define GALLERY_EDC_IMAGE_BUSTSHOT "T01_thumbs_bustshot_bg.png"
-#define GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS "00_thumbs_bg_focus.png"
-#define GALLERY_EDC_IMAGE_BADGE_BG "00_badge_bg.png"
-
-/* gl-places-ctxpopup.edc */
-#define GALLERY_EDC_IMAGE_POPUP_SCROLL "00_popup_scroll.png"
-#define GALLERY_EDC_IMAGE_PLACES_THUMB_BG "T01_places_thumbnail_bg.png"
-
-/* gl-genlist-group-webalbum.edc */
-
-/* gallery.edc */
-#define GALLERY_EDC_IMAGE_CONTROL_TABBAR_BG "00_winset_title_tabbar_bg.png"
-
-/* gl-button.edc */
-#define GALLERY_EDC_IMAGE_BTN_GRIDVIEW "T01_bubble_icon_gridview.png"
-#define GALLERY_EDC_IMAGE_BTN_FOOTSTEPS "T01_bubble_icon_footsteps.png"
-
-#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG "T01_album_edit_rename_bg.png"
-#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESSED "T01_album_edit_rename_bg_press.png"
-#define GALLERY_EDC_IMAGE_BTN_RENAME "T01_album_edit_rename.png"
-#define GALLERY_EDC_IMAGE_BTN_RENAME_PRESS "T01_album_edit_rename_press.png"
-
-#define GALLERY_EDC_SOUND_TOUCH_30MS "S_Touch_30ms.wav"
-
-/* gl-check.edc */
-#define GALLERY_EDC_IMAGE_CHECK_BG "T01_checkbox.png"
-#define GALLERY_EDC_IMAGE_CHECK_ALBUM_BG "T01_album_edit_check_bg.png"
-#define GALLERY_EDC_IMAGE_CHECK_BG_DIM "00_check_bg_dim.png"
-#define GALLERY_EDC_IMAGE_CHECK_BG_CHECKING "T01_check.png"
-#define GALLERY_EDC_IMAGE_CHECK_ALBUM_EDIT_CHECKON "T01_album_edit_check_on.png"
-
-/* gl-entry.edc */
-#define GALLERY_EDC_IMAGE_EDITFIELD_CLEAR "00_EditField_clear.png"
-#define GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG "00_search_edit_field_bg.png"
-#define GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG_FOCUS "00_search_edit_field_bg_focus.png"
-
-/* gl-progressbar.edc */
-#define GALLERY_EDC_IMAGE_LIST_PROGRESS_BG "00_winset_list_progress_bg.png"
-#define GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR "T01_gallery_album_progress_bar.png"
-
-/* gl-slider.edc */
-#define GALLERY_EDC_IMAGE_GIRD_OS_TOP "00_grid_overscrolling_top.png"
-#define GALLERY_EDC_IMAGE_GIRD_OS_BOT "00_grid_overscrolling_bottom.png"
-#define GALLERY_EDC_IMAGE_GIRD_OS_LEFT "00_grid_overscrolling_left.png"
-#define GALLERY_EDC_IMAGE_GIRD_OS_RIGHT "00_grid_overscrolling_right.png"
-
-/* gl-ctxpopup.edc */
-#define GALLERY_EDC_IMAGE_POPUP_SCROLL_V "00_popup_scroll_v.png"
-#define GALLERY_EDC_IMAGE_POPUP_SCROLL_H "00_popup_scroll_h.png"
-#define GALLERY_EDC_IMAGE_POPUP_DORPDOWN_BG "00_popup_dropdown_bg.png"
-#define GALLERY_EDC_IMAGE_MORE_POPUP_PRESS "00_more_popup_press.png"
-#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_TOP "00_popup_overscrolling_top.png"
-#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_BOTTOM "00_popup_overscrolling_bottom.png"
-#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_RIGHT "00_popup_overscrolling_right.png"
-#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_LEFT "00_popup_overscrolling_left.png"
-#define GALLERY_EDC_IMAGE_OS_TOP "00_overscrolling_top.png"
-
-/* gl-expanded-title.edc */
-#define GALLERY_EDC_IMAGE_TITLE_BG "00_title_bg.png"
-#define GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG "00_popup_dropdown_title_bg.png"
-#define GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS "00_popup_dropdown_title_bg_press.png"
-#define GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_FOCUS "00_popup_dropdown_title_bg_focus.png"
-#define GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW_PRESS "00_button_icon_arrow_press.png"
-#define GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW "00_button_icon_arrow.png"
-#define GALLERY_EDC_IMAGE_BACK_BUTTON "T01_icon_back.png"
-#define GALLERY_EDC_DELETE_SHOW_IMAGE_BG "gallery_icon_container.png"
-#define GALLERY_EDC_DELETE_SHOW_IMAGE "gallery_icon_full.png"
-#define GALLERY_EDC_SD_CARD_ICON "T01_album_icon_sd_card.png"
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-/* Use genlist style for pinch out */
-
-#define INDICATOR_H 27
-#define NAVI_H 67
-#define GALLERY_EDC_COLOR_THEME_GRAY 91 91 91 255
-#define GALLERY_EDC_COLOR_BG 0 0 0 255
-#define ENTRY_H 112
-#define ENTRY_MAX_W 1280
-#define TABBAR_DEFAULT_HEIGHT_INC 111
-#define TABBAR_HORIZONTAL_HEIGHT_INC 91
-/* Set select all bg color same as genlist */
-#define SELECT_ALL_BG_HEIGHT_INC 112
-#define NAVIFRAME_TITLE_BG_COLOR_INC 248 246 239 255
-
-#define POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 15
-#define POPUP_EDITFIELD_LAYOUT_MINMAX_HEIGHT_INC 56
-
-#include "gallery-edc-res.h"
-#define LAYOUT_WIDTH 500
-#define LAYOUT_HEIGHT 300
-#define CENTER_PADDING_WIDTH 5
-#define YOUR_THEME_BASE_SCALE 1 // 2.6 is default base scale for Tizen 2.4 HD.
-externals {
- external: "elm";
- external: "feedback";
-}
-
-collections {
- plugins {
- plugin {
- name: "touch_sound_plugin";
- source: "feedback";
- param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP
- /* 2014.06.11 updated from libsvi(feedback)
- Above plugin will run below external function:
- int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
- param1: feedback_type_e
- FEEDBACK_TYPE_NONE = 0,
- FEEDBACK_TYPE_SOUND = 1,
- FEEDBACK_TYPE_VIBRATION,
- FEEDBACK_TYPE_LED,
- FEEDBACK_TYPE_END
-
- * param2 enumeration:
- FEEDBACK_PATTERN_TAP = 0,
- FEEDBACK_PATTERN_SIP,
- FEEDBACK_PATTERN_SIP_BACKSPACE,
- FEEDBACK_PATTERN_SIP_FUNCTION,
- FEEDBACK_PATTERN_SIP_FJKEY,
- ...
-
- * For more information please refer libsvi.
- */
- }
- }
-
- #include "gl-macro.edc"
- #include "gl-expanded-title.edc"
- #include "gl-ctxpopup.edc"
- #include "gl-gengrid.edc"
- #include "gl-gengrid-item-ctxpopup.edc"
- #include "gl-gengrid-item-thumbview.edc"
- #include "gl-gengrid-item-albums.edc"
- #include "gl-selection-notification.edc"
- #include "gl-naviframe.edc"
- #include "gl-button.edc"
- #include "gl-check.edc"
- #include "gl-label.edc"
- #include "gl-nocontents.edc"
- #include "gl-entry.edc"
- #include "gl-timeline.edc"
- #include "gl-progressbar.edc"
- #include "gl-popup-entry.edc"
- base_scale: YOUR_THEME_BASE_SCALE;
-
- group{ name: "list_popup_swallow_ly";
- parts {
- part { name: "bg";
- type: RECT;
- description {
- rel1.relative : 0 0;
- rel2.relative : 1 1;
- color: 255 255 255 255;
- }
- }
- part { name: "list";
- type: SWALLOW;
- description {
- rel1.relative : 0 0;
- rel1.to : "bg";
- rel2.relative : 1 1;
- rel2.to : "bg";
- }
- }
- }
- script {
- public message(Msg_Type:type,id, ...)
- {
- if((type == MSG_INT) && (id == 2))
- {
- new a;
- new x, y;
- a = getarg(2);
- custom_state(PART:"bg","default",0.0);
- get_state_val(PART:"bg",STATE_MIN,x,y);
- set_state_val(PART:"bg",STATE_MIN,x,a);
- get_state_val(PART:"bg",STATE_MAX,x,y);
- set_state_val(PART:"bg",STATE_MAX,x,a);
- set_state(PART:"bg","custom",0.0);
- }
- }
- }
- }
-
- group { name: "list_popup_content_ly";
- parts {
- part { name : "bg";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- color: 255 255 255 255;
- }
- }
- part { name : "bg1";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "bg";
- rel2.relative: 1.0 0.5;
- rel2.to: "bg";
- color: 255 255 255 255;
- }
- description {
- state: "pressed" 0.0;
- inherit: "default" 0.0;
- color: 165 197 210 255;
- }
- }
- part { name : "bg2";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.5;
- rel1.to: "bg";
- rel1.offset: 0 2;
- rel2.relative: 1.0 1.0;
- rel2.to: "bg";
- color: 255 255 255 255;
- }
- description {
- state: "pressed" 0.0;
- inherit: "default" 0.0;
- color: 165 197 210 255;
- }
- }
- part { name : "septator";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.5;
- rel1.to: "bg";
- //rel1.offset: 0 2;
- rel2.relative: 1.0 0.5;
- rel2.to: "bg";
- min: 0 2;
- max: -1 2;
- align: 0 0.5;
- color: 165 197 210 255;
- }
- }
- part {
- name: "elm.text";
- type: TEXT;
- mouse_events: 1;
- repeat_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "bg1";
- rel2.relative: 0.0 1.0;
- rel2.to: "bg1";
- min: 200 55;
- max: 200 55;
- align: 0 0;
- text {
- text: "Time";
- size: 16;
- align: 0.1 0.5;
- }
- color: 23 23 23 255;
- }
- }
- part {
- name: "elm.swallow";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.8 0.3;
- rel1.to: "bg1";
- rel2.relative: 1.0 0.7;
- rel2.to: "bg1";
- align: 1.0 0.5;
- }
- }
- part {
- name: "elm.text.second";
- type: TEXT;
- mouse_events: 1;
- repeat_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "bg2";
- rel2.relative: 0.0 1.0;
- rel2.to: "bg2";
- min: 200 55;
- max: 200 55;
- align: 0 0;
- text {
- text: "Album";
- size: 16;
- align: 0.1 0.5;
- }
- color: 23 23 23 255;
- }
- }
- part {
- name: "elm.swallow.second";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.8 0.3;
- rel1.to: "bg2";
- rel2.relative: 1.0 0.7;
- rel2.to: "bg2";
- align: 1.0 0.5;
- }
- }
- part { name : "button1";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "bg";
- rel2.relative: 1.0 0.5;
- rel2.to: "bg";
- }
- }
- part { name : "button2";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.5;
- rel1.to: "bg";
- rel1.offset: 0 2;
- rel2.relative: 1.0 1.0;
- rel2.to: "bg";
- }
- }
- }
- programs {
- program{ name: "item_1_clicked";
- source: "bg1";
- signal: "mouse,down,1";
- action: STATE_SET "pressed" 0.0;
- target: "bg1";
- }
- program{ name: "item_2_clicked";
- source: "bg2";
- signal: "mouse,down,1";
- action: STATE_SET "pressed" 0.0;
- target: "bg2";
- }
- program{ name: "item_1_released";
- source: "bg1";
- signal: "mouse,up,1";
- action: STATE_SET "default" 0.0;
- target: "bg1";
- }
- program{ name: "item_2_released";
- source: "bg2";
- signal: "mouse,up,1";
- action: STATE_SET "default" 0.0;
- target: "bg2";
- }
- }
-
- }
-
- group { name: "popup_input_text";
- parts {
- part { name: "pad_l";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
- fixed: 1 0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 1.0;
- align: 0.0 0.0;
- }
- }
- part { name: "pad_r";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
- fixed: 1 0;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 1.0;
- align: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 POPUP_EDITFIELD_LAYOUT_MINMAX_HEIGHT_INC;
- max: -1 POPUP_EDITFIELD_LAYOUT_MINMAX_HEIGHT_INC;
- align: 0.5 0.5;
- rel1{
- relative: 1.0 0.0 ;
- to_x: "pad_l";
- }
- rel2{
- relative: 0.0 1.0;
- to_x: "pad_r";
- }
- }
- }
- }
- }
-
- group
- {
- name: "gallery/gridview";
- images {
- image: GALLERY_EDC_IMAGE_CONTROL_TABBAR_BG COMP;
- }
- parts {
- part {
- name: "background";
- type, RECT;
- //mouse_events: 1;
- //scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- }
- }
- part {
- name: "contents";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "background"; }
- rel2 { relative: 1.0 1.0; to: "background";}
- }
- }
- part {
- name: "gesture";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "contents";}
- rel2 { relative: 1.0 1.0; to: "contents";}
- }
-
- }
- }
- }
-
- group {
- name: "gallery/layout";
- parts {
- part {
- name: "background";
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- color: 255 255 255 0;
- }
- }
- part {
- name: "split.view.bg.color";
- type: RECT;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: split.view; }
- rel2 { relative: 1.0 1.0; to: split.view; }
- color: 230 230 230 255;
- }
- }
- part {
- name: "split.view";
- type: SWALLOW;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- align: 0 0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- }
- description {
- state: "visible" 0.0;
- fixed: 1 1;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 179/540 1.0; }
- fixed: 1 0;
- min: 0 0;
- max: -1 -1;
- }
- }
- part {
- name: "select.all.area.bg";
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 0 0;
- max: 0 0;
- align: 0 0;
- rel1 { relative: 1.0 0.0; to: "split.view"; }
- rel2 { relative: 1.0 1.0; }
- color: 255 255 255 255;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- max: -1 60;
- }
- }
- part {
- name: "select.all.area.label";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 24/540 0.0; to: "select.all.area.bg";}
- rel2 { relative: 0.6 1.0; to: "select.all.area.bg";}
- text {
- text: "Select All";
- size: 16;
- align: 0.0 0.5;
- }
- color: 0 0 255 255;
- visible: 0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "select.all.area.check";
- type: SWALLOW;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- rel1 { relative: 1.0 0.1; to: "select.all.area.bg"; offset: -60 0;}
- rel2 { relative: 1.0 0.9; to: "select.all.area.bg";}
- visible: 0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "select.all.area.check.fg";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 0;
- description {
- state: "default" 0.0;
- rel1 { relative: 0 0; to: "select.all.area.check";}
- rel2 { relative: 1 1; to: "select.all.area.check";}
- align: 1 0.5;
- visible: 0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
-
- }
- part {
- name: "contents";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "background"; }
- rel2 { relative: 1.0 1.0; }
- }
- }
- part {
- name: "elm.swallow.view";
- type: SWALLOW;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 1.0; to: "select.all.area.bg";}
- rel2 { relative: 1.0 1.0; }
- }
- }
- part {
- name: "elm.swallow.date.layout";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.3 0.4; to: "elm.swallow.view";}
- rel2 { relative: 0.7 0.5; to: "elm.swallow.view";}
- }
- description {
- state: "landscape" 0.0;
- rel1 { relative: 0.38 0.41; to: "elm.swallow.view";}
- rel2 { relative: 0.61 0.58; to: "elm.swallow.view";}
- }
- }
- part {
- name: "gesture";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "elm.swallow.view";}
- rel2 { relative: 1.0 1.0; to: "elm.swallow.view";}
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
- script {
- public message(Msg_Type:type,id, ...)
- {
- if((type == MSG_INT) && (id == 1))
- {
- new a;
- a = getarg(2);
- custom_state(PART:"split.view","default",0.0);
- set_state_val(PART:"split.view",STATE_MAX,a,-1);
- set_state(PART:"split.view","custom",0.0);
- }
- if((type == MSG_INT) && (id == 2))
- {
- new a;
- new x, y;
- a = getarg(2);
- custom_state(PART:"select.all.area.bg","default",0.0);
- get_state_val(PART:"select.all.area.bg",STATE_MAX,x,y);
- set_state_val(PART:"select.all.area.bg",STATE_MIN,0,60);
- set_state_val(PART:"select.all.area.bg",STATE_MAX,a,60);
- set_state(PART:"select.all.area.bg","custom",0.0);
- }
- }
- }
-
- programs
- {
- program {
- name: "rotate_timeline_view_info_landscape";
- signal: "timelineview,landscape";
- source: "*";
- action: STATE_SET "landscape" 0.0;
- target: "elm.swallow.date.layout";
- }
- program {
- name: "rotate_timeline_view_info_portrait";
- signal: "timelineview,portrait";
- source: "*";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.date.layout";
- }
- program {
- name: "swallow_view_default";
- signal: "elm,swallow_view,state,default";
- source: "elm";
- script {
- set_state(PART:"elm.swallow.view", "default", 0.0);
- }
- }
- program {
- name: "gesture_default";
- signal: "elm,gesture,state,default";
- source: "elm";
- script {
- set_state(PART:"gesture", "default", 0.0);
- }
- }
- program {
- name: "gesture_disabled";
- signal: "elm,gesture,state,disabled";
- source: "elm";
- script {
- set_state(PART:"gesture", "disabled", 0.0);
- }
- }
- program {
- name: "selectall_visible";
- signal: "elm,selectall,state,visible";
- source: "elm";
- script {
- set_state(PART:"select.all.area.label", "visible", 0.0);
- set_state(PART:"select.all.area.check", "visible", 0.0);
- set_state(PART:"select.all.area.check.fg", "visible", 0.0);
- }
- }
- program {
- name: "selectall_visible_bg";
- signal: "elm,selectall,state,visible,bg";
- source: "elm";
- script {
- set_state(PART:"select.all.area.bg", "visible", 0.0);
- }
- }
- program {
- name: "selectall_default";
- signal: "elm,selectall,state,default";
- source: "elm";
- script {
- set_state(PART:"select.all.area.label", "default", 0.0);
- set_state(PART:"select.all.area.check", "default", 0.0);
- set_state(PART:"select.all.area.bg", "default", 0.0);
- set_state(PART:"select.all.area.check", "default", 0.0);
- }
- }
- program {
- name: "split_view_default";
- signal: "elm,splitview,state,default";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "split.view";
- transition : LINEAR 0.5;
- }
- program {
- name: "split_view_visible";
- signal: "elm,splitview,state,visible";
- source: "elm";
- action: STATE_SET "custom" 0.0;
- target: "split.view";
- transition : LINEAR 0.5;
- }
- program {
- name: "touch_snd";
- signal : "mouse,clicked,1";
- source : "select.all.area.check.fg";
- action: RUN_PLUGIN "touch_sound_plugin";
- }
- }
- }
-
- #define GL_ALBUMS_PBAR_BG_COLOR_INC 0 0 0 0
-
- group
- {
- name: "gallery/progressbar";
- parts {
- part {
- name: "bg";
- mouse_events: 0;
- type: RECT;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- visible: 1;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- }
- }
- part { name: "elm.pad.top";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 0;
- rel1 { relative: 0.0 0.0; to: "bg";}
- rel2 { relative: 1.0 0.0; to: "bg"; offset: -2 1;}
- align: 0.0 0.0;
- color: GL_ALBUMS_PBAR_BG_COLOR_INC;
- }
- }
- part { name: "elm.pad.bottom";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 0;
- rel1 { relative: 0.0 1.0; to: "bg"; offset: 0 -1;}
- rel2 { relative: 1.0 1.0; to: "bg"; offset: -2 0;}
- align: 0.0 0.0;
- color: GL_ALBUMS_PBAR_BG_COLOR_INC;
- }
- }
- part { name: "base";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- visible: 1;
- rel1 { relative: 0.0 0.0; to: "elm.pad.top";}
- rel2 { relative: 1.0 1.0; to: "elm.pad.bottom";}
- color: GL_ALBUMS_PBAR_BG_COLOR_INC;
- }
- }
- part { name: "elm.swallow.progressbar";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 0;
- rel1 { relative: 0.0 0.0; to: "base"; offset: 12 0;}
- rel2 { relative: 1.0 0.5; to: "base"; offset: -14 0;}
- align: 0.0 0.0;
- }
- }
- part { name: "elm.swallow.label";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 0;
- rel1 { relative: 0.0 0.5; to: "base"; offset: 12 0;}
- rel2 { relative: 1.0 1.0; to: "base"; offset: -14 0;}
- align: 0.0 0.0;
- }
- }
- }
- }
-
- group { name: "gl_bg_layout";
- parts {
- part { name: "bg";
- type: RECT;
- mouse_events: 0;
- description { state: "default" 0.0;
- color: 255 255 255 45;
- }
- }
- part { name: "elm.swallow.image";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- }
- }
- }
- }
-
- group { name: "ceter_algined_text_layout";
- styles {
- style { name: "my_textblock_name_style";
- base: "font=Sans:style=Regular font_size=20 color=#000000 ellipsis=1.0";
- }
- style { name: "my_textblock_count_style";
- base: "font=Sans:style=Regular font_size=20 color=#000000";
- }
- }
- script {
- public scale_value;
- public pw;
- public tw;
- public calc_text_size() {
- new x, y, w, h;
- new bx, by, bw, bh;
- new cx, cy, cw, ch;
- get_geometry(PART:"elm.sub.text", x, y, w, h);
- get_geometry(PART:"base", bx, by, bw, bh);
- get_geometry(PART:"center_padding", cx, cy, cw, ch);
- if (get_float(scale_value) != 0) {
- // Reverting scale multiplied width.
- set_float(pw, (w + cw) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
- set_float(tw, (bw - cw - w) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
- } else {
- set_float(pw, w + cw);
- set_float(tw, bw - cw - w);
- }
- custom_state(PART:"right_dynamic_padding", "default", 0.0);
- set_state_val(PART:"right_dynamic_padding", STATE_MIN, get_int(pw), 0);
- set_state(PART:"right_dynamic_padding", "custom", 0.0);
- custom_state(PART:"elm.text", "default", 0.0);
- set_state_val(PART:"elm.text", STATE_MAX, get_int(tw), -1);
- set_state(PART:"elm.text", "custom", 0.0);
- }
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT) {
- new Float:scale_v;
- scale_v = getfarg(2);
- set_float(scale_value, scale_v);
- calc_text_size();
- }
- }
- }
- parts {
- part { name: "base";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.relative: 0 0;
- rel2.relative: 1 1;
- color: 0 0 0 0;
- }
- }
- part { name: "right_dynamic_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 1.0 0.5;
- min: 0 0;
- rel1.relative: 1.0 0.0;
- }
- }
- part { name: "elm.text.bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel2 {
- to_x: "right_dynamic_padding";
- relative: 0.0 1.0;
- }
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- rel1 {
- to_x: "elm.text.bg";
- relative: 0.5 0.0;
- }
- rel2 {
- to_x: "elm.text.bg";
- relative: 0.5 1.0;
- }
- text {
- style: "my_textblock_name_style";
- min: 1 1;
- max: 0 1;
- }
- }
- }
- part { name: "center_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.0 0.5;
- min: CENTER_PADDING_WIDTH 0;
- rel1 {
- to_x: "elm.text";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "elm.text";
- relative: 1.0 1.0;
- }
- }
- }
- part { name: "elm.sub.text";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- align: 0.0 0.5;
- rel1 {
- to_x: "center_padding";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "center_padding";
- relative: 1.0 1.0;
- }
- text {
- style: "my_textblock_count_style";
- min: 1 1;
- max: 0 1;
- }
- }
- }
- }
- }
- group { name: "ceter_algined_text_layout_split_view";
- styles {
- style { name: "my_textblock_name_style_split_view";
- base: "font=Sans:style=Regular font_size=12 color=#000000 ellipsis=1.0";
- }
- style { name: "my_textblock_count_style_split_view";
- base: "font=Sans:style=Regular font_size=12 color=#000000";
- }
- }
- script {
- public scale_value;
- public pw;
- public tw;
- public calc_text_size() {
- new x, y, w, h;
- new bx, by, bw, bh;
- new cx, cy, cw, ch;
- get_geometry(PART:"elm.sub.text", x, y, w, h);
- get_geometry(PART:"base", bx, by, bw, bh);
- get_geometry(PART:"center_padding", cx, cy, cw, ch);
- if (get_float(scale_value) != 0) {
- // Reverting scale multiplied width.
- set_float(pw, (w + cw) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
- set_float(tw, (bw - cw - w) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
- } else {
- set_float(pw, w + cw);
- set_float(tw, bw - cw - w);
- }
- custom_state(PART:"right_dynamic_padding", "default", 0.0);
- set_state_val(PART:"right_dynamic_padding", STATE_MIN, get_int(pw), 0);
- set_state(PART:"right_dynamic_padding", "custom", 0.0);
- custom_state(PART:"elm.text", "default", 0.0);
- set_state_val(PART:"elm.text", STATE_MAX, get_int(tw), -1);
- set_state(PART:"elm.text", "custom", 0.0);
- }
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT) {
- new Float:scale_v;
- scale_v = getfarg(2);
- set_float(scale_value, scale_v);
- calc_text_size();
- }
- }
- }
- parts {
- part { name: "base";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.relative: 0 0;
- rel2.relative: 1 1;
- color: 0 0 0 0;
- }
- }
- part { name: "right_dynamic_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 1.0 0.5;
- min: 0 0;
- rel1.relative: 1.0 0.0;
- }
- }
- part { name: "elm.text.bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel2 {
- to_x: "right_dynamic_padding";
- relative: 0.0 1.0;
- }
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- rel1 {
- to_x: "elm.text.bg";
- relative: 0.5 0.0;
- }
- rel2 {
- to_x: "elm.text.bg";
- relative: 0.5 1.0;
- }
- text {
- style: "my_textblock_name_style_split_view";
- min: 1 1;
- max: 0 1;
- }
- }
- }
- part { name: "center_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.0 0.5;
- min: CENTER_PADDING_WIDTH 0;
- rel1 {
- to_x: "elm.text";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "elm.text";
- relative: 1.0 1.0;
- }
- }
- }
- part { name: "elm.sub.text";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- align: 0.0 0.5;
- rel1 {
- to_x: "center_padding";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "center_padding";
- relative: 1.0 1.0;
- }
- text {
- style: "my_textblock_count_style_split_view";
- min: 1 1;
- max: 0 1;
- }
- }
- }
- }
- }
-}
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define BUTTON_STATE_ENABLED 0
-#define BUTTON_STATE_DISABLED 1
-
-#define BUTTON_EDIT_STYLE_BORDER_INC 8 0 5 5
-
- sounds {
- sample {
- name: "touch_sound" AS_IS;
- source: GALLERY_EDC_SOUND_TOUCH_30MS;
- }
- }
-
-///////////////////////////////////////////////////////////////////////////////////////
-#define BUTTON_STYLES(style_name, image_normal, min_width, min_height) \
- group { name: "elm/button/base/"style_name; \
- images { \
- image: image_normal COMP; \
- } \
- parts { \
- part { name: "button_image"; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- visible: 1; \
- } \
- description { \
- visible: 0; \
- state: "clicked" 0.0; \
- inherit: "default" 0.0; \
- color: 42 137 194 255; \
- } \
- description { \
- visible: 0; \
- state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- } \
- } \
- part { name: "button_image_bg"; \
- type: IMAGE; \
- mouse_events: 1; \
- repeat_events:1; \
- scale: 1; \
- description { state: "default" 0.0; \
- min: min_width min_height; \
- max: min_width min_height; \
- image { \
- normal: image_normal; \
- border: BUTTON_EDIT_STYLE_BORDER_INC; \
- border_scale: 1; \
- } \
- } \
- } \
- part { name: "over1"; \
- type: RECT; \
- repeat_events: 1; \
- ignore_flags: ON_HOLD; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- min: min_width min_height; \
- } \
- } \
- part { name: "over2"; \
- type: RECT; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "disabler"; \
- type: RECT; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- visible: 0; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- } \
- } \
- programs { \
- program { name: "button_click"; \
- signal: "mouse,down,1"; \
- source: "over1"; \
- action: SIGNAL_EMIT "elm,action,press" ""; \
- after: "button_click_anim"; \
- } \
- program { name: "button_click_anim"; \
- action: STATE_SET "clicked" 0.0; \
- target: "button_image"; \
- } \
- program { name: "button_unclick"; \
- signal: "mouse,up,1"; \
- source: "over2"; \
- action: SIGNAL_EMIT "elm,action,unpress" ""; \
- after: "button_unclick_anim"; \
- } \
- program { name: "button_unclick_anim"; \
- action: STATE_SET "default" 0.0; \
- target: "button_image"; \
- } \
- program { name: "touch_snd"; \
- signal: "mouse,clicked,1"; \
- source: "over1"; \
- action: PLAY_SAMPLE "touch_sound" 1.0; \
- after: button_unclick3; \
- } \
- program { name: "button_unclick3"; \
- action: SIGNAL_EMIT "elm,action,click" ""; \
- } \
- program { name: "disable"; \
- signal: "elm,state,disabled"; \
- source: "elm"; \
- action: STATE_SET "disabled" 0.0; \
- target: "disabler"; \
- target: "button_image"; \
- } \
- program { name: "enable"; \
- signal: "elm,state,enabled"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "disabler"; \
- target: "button_image"; \
- } \
- } \
-}
-
-///////////////////////////////////////////////////////////////////////////////////////
- BUTTON_STYLES("gallery/gridview", GALLERY_EDC_IMAGE_BTN_GRIDVIEW, 45, 45)
- BUTTON_STYLES("gallery/footsteps", GALLERY_EDC_IMAGE_BTN_FOOTSTEPS, 45, 45)
-
-///////////////////////////////////////////////////////////////////////////////////////
-#define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
- group { name: "elm/button/base/"style_name; \
- images { \
- image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG COMP; \
- image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESSED COMP; \
- image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG COMP; \
- image: image_normal COMP; \
- image: image_press COMP; \
- } \
- parts { \
- part { name: "button_image"; \
- scale: 1; \
- description { state: "default" 0.0; \
- min: 64 64; \
- max: 64 64; \
- image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG; \
- } \
- description { \
- state: "clicked" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESSED; \
- } \
- description { \
- state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG; \
- } \
- } \
- part { name: "button_center_part"; \
- scale: 1; \
- clip_to: "icon_clipper"; \
- description { state: "default" 0.0; \
- min: min_width min_height; \
- max: min_width min_height; \
- image.normal: image_normal; \
- } \
- description { state: "clicked" 0.0; \
- inherit: "default"; \
- image.normal: image_press; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default"; \
- } \
- } \
- part { name: "icon_clipper"; \
- type: RECT; \
- scale: 1; \
- description { state: "default" 0.0; \
- color: 250 250 250 255; \
- } \
- description { state: "clicked" 0.0; \
- color: 250 250 250 255; \
- } \
- description { state: "disabled" 0.0; \
- color: 250 250 250 128; \
- } \
- } \
- part { name: "over1"; \
- type: RECT; \
- ignore_flags: ON_HOLD; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- min: min_width min_height; \
- } \
- } \
- part { name: "over2"; \
- type: RECT; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "disabler"; \
- type: RECT; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- visible: 0; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- } \
- } \
- programs { \
- program { name: "button_click"; \
- signal: "mouse,down,1"; \
- source: "over1"; \
- action: SIGNAL_EMIT "elm,action,press" ""; \
- after: "button_click_anim"; \
- } \
- program { name: "button_click_anim"; \
- action: STATE_SET "clicked" 0.0; \
- target: "button_image"; \
- target: "button_center_part"; \
- target: "icon_clipper"; \
- } \
- program { name: "button_unclick"; \
- signal: "mouse,up,1"; \
- source: "over2"; \
- action: SIGNAL_EMIT "elm,action,unpress" ""; \
- after: "button_unclick_anim"; \
- } \
- program { name: "button_unclick_anim"; \
- action: STATE_SET "default" 0.0; \
- target: "button_image"; \
- target: "button_center_part"; \
- target: "icon_clipper"; \
- } \
- program { name: "touch_snd"; \
- signal: "mouse,clicked,1"; \
- source: "over1"; \
- action: PLAY_SAMPLE "touch_sound" 1.0; \
- after: button_unclick3; \
- } \
- program { name: "button_unclick3"; \
- action: SIGNAL_EMIT "elm,action,click" ""; \
- } \
- program { name: "disable"; \
- signal: "elm,state,disabled"; \
- source: "elm"; \
- action: STATE_SET "disabled" 0.0; \
- target: "disabler"; \
- target: "button_image"; \
- target: "button_center_part"; \
- target: "icon_clipper"; \
- } \
- program { name: "enable"; \
- signal: "elm,state,enabled"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "disabler"; \
- target: "button_image"; \
- target: "button_center_part"; \
- target: "icon_clipper"; \
- } \
- } \
- }
-
-///////////////////////////////////////////////////////////////////////////////////////
-BUTTON_CIRCLE_STYLES("gallery/rename", GALLERY_EDC_IMAGE_BTN_RENAME, GALLERY_EDC_IMAGE_BTN_RENAME_PRESS, 64, 64)
-///////////////////////////////////////////////////////////////////////////////////////
-
-#undef BUTTON_STATE_ENABLED
-#undef BUTTON_STATE_DISABLED
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC 32 32
-
-#define CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC 255 255 255 255
-#define CHECK_DEFAULT_TEXT_PRESSED_COLOR_INC 255 255 255 255
-#define CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC 136 136 136 136
-
-////////////////////////////////////////////////////////////////////////////////////////
-//
-// check default textblock style
-//
-///////////////////////////////////////////////////////////////////////////////////////
- styles {
- style { name: "check_label_textblock_style";
- base: "font=Tizen:style=Roman text_class=tizen font_size=32 color=#ffffff wrap=char";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "whitecolor" "+ color=#ffffff";
- tag: "tab" "\t";
- }
- }
-
-#define CHECK_STATE_DEFAULT 0
-#define CHECK_STATE_VISIBLE 1
-#define CHECK_STATE_DISABLED_VISIBLE 2
-#define CHECK_STATE_DISABLED 3
-
-////////////////////////////////////////////////////////////////////////////////
-#define CHECK_STYLE_DEFAULT(style_name, image_bg, image_checking, image_nocheck, min_width, min_height, check_visible) \
- group { name: "elm/check/base/"style_name; \
- images { \
- image: image_bg COMP; \
- image: GALLERY_EDC_IMAGE_CHECK_BG_DIM COMP; \
- image: image_checking COMP; \
- image: image_nocheck COMP; \
- } \
- script { \
- public check_state = CHECK_STATE_DEFAULT; \
- } \
- parts { \
- part { name: "back_bg"; \
- type: RECT; \
- scale: 1; \
- description { state: "default" 0.0; \
- rel2.relative: 1.0 1.0; \
- align: 0 0.5; \
- min: min_width min_height; \
- fixed: 1 1; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "bg"; \
- mouse_events: 0; \
- scale: 1; \
- description { state: "default" 0.0; \
- min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
- max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
- fixed: 1 1; \
- rel1.to: "back_bg"; \
- rel2.to: "back_bg"; \
- image.normal: image_bg; \
- fill.smooth : 0; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_CHECK_BG_DIM; \
- fill.smooth : 0; \
- } \
- } \
- part { name: "check"; \
- mouse_events: 0; \
- scale: 1; \
- description { state: "default" 0.0; \
- rel1.to: "bg"; \
- rel2.to: "bg"; \
- visible: check_visible; \
- image.normal: image_nocheck; \
- } \
- description { state: "visible" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- image.normal: image_checking; \
- } \
- description { state: "disabled_visible" 0.0; \
- inherit: "default" 0.0; \
- image.normal: image_checking; \
- visible: 1; \
- } \
- } \
- part { name: "elm.swallow.content"; \
- type: SWALLOW; \
- description { state: "default" 0.0; \
- fixed: 1 0; \
- visible: 0; \
- color: 255 255 255 255; \
- align: 0.0 0.5; \
- rel1 { \
- to_x: "bg"; \
- relative: 1.0 0.0; \
- offset: 1 1; \
- } \
- rel2 { \
- to_x: "bg"; \
- relative: 1.0 1.0; \
- offset: 2 -2; \
- } \
- } \
- description { state: "visible" 0.0; \
- inherit: "default" 0.0; \
- fixed: 1 1; \
- visible: 1; \
- aspect: 1.0 1.0; \
- aspect_preference: VERTICAL; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- color: 128 128 128 128; \
- } \
- description { state: "disabled_visible" 0.0; \
- inherit: "default" 0.0; \
- color: 128 128 128 128; \
- fixed: 1 1; \
- visible: 1; \
- aspect: 1.0 1.0; \
- } \
- } \
- part { name: "elm.text"; \
- type: TEXTBLOCK; \
- mouse_events: 0; \
- scale: 1; \
- description { state: "default" 0.0; \
- visible: 0; \
- fixed: 0 1; \
- rel1 { \
- relative: 1.0 0.5; \
- offset: 1 1; \
- to_x: "elm.swallow.content"; \
- } \
- rel2 { \
- relative: 1.0 0.5; \
- offset: -2 -2; \
- } \
- align: 0.0 0.5; \
- text { \
- style: "check_label_textblock_style"; \
- min: 0 0; \
- } \
- color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
- } \
- description { state: "visible" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- text.min: 1 1; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- } \
- description { state: "disabled_visible" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- text.min: 1 1; \
- color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
- } \
- } \
- part { name: "events1"; \
- type: RECT; \
- ignore_flags: ON_HOLD; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "events2"; \
- type: RECT; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "disabler"; \
- type: RECT; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- visible: 0; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- } \
- } \
- programs { \
- program { name: "click"; \
- signal: "mouse,clicked,1"; \
- source: "events1"; \
- action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
- } \
- program { name: "check_on"; \
- signal: "elm,state,check,on"; \
- source: "elm"; \
- script { \
- set_int(check_state, CHECK_STATE_VISIBLE); \
- set_state(PART:"check", "visible", 0.0); \
- } \
- } \
- program { name: "check_off"; \
- signal: "elm,state,check,off"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "check"; \
- script { \
- if (get_int(check_state) == CHECK_STATE_VISIBLE) \
- { \
- set_int(check_state, CHECK_STATE_DEFAULT); \
- set_state(PART:"check", "default", 0.0); \
- } \
- } \
- } \
- program { name: "text_show"; \
- signal: "elm,state,text,visible"; \
- source: "elm"; \
- action: STATE_SET "visible" 0.0; \
- target: "elm.text"; \
- } \
- program { name: "text_hide"; \
- signal: "elm,state,text,hidden"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "elm.text"; \
- } \
- program { name: "icon_show"; \
- signal: "elm,state,icon,visible"; \
- source: "elm"; \
- action: STATE_SET "visible" 0.0; \
- target: "elm.swallow.content"; \
- } \
- program { name: "icon_hide"; \
- signal: "elm,state,icon,hidden"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "elm.swallow.content"; \
- } \
- program { name: "disable"; \
- signal: "elm,state,disabled"; \
- source: "elm"; \
- action: STATE_SET "disabled" 0.0; \
- target: "disabler"; \
- target: "bg"; \
- after: "disable_text"; \
- } \
- program { name: "disable_text"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"elm.text", st, 30, vl); \
- if (!strcmp(st, "visible")) \
- set_state(PART:"elm.text", "disabled_visible", 0.0); \
- else \
- set_state(PART:"elm.text", "disabled", 0.0); \
- get_state(PART:"elm.swallow.content", st, 30, vl); \
- if (!strcmp(st, "visible")) \
- set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
- else \
- set_state(PART:"elm.swallow.content", "disabled", 0.0); \
- get_state(PART:"check", st, 30, vl); \
- if (!strcmp(st, "visible")) \
- { \
- set_state(PART:"check", "disabled_visible", 0.0); \
- set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
- } \
- } \
- } \
- program { name: "enable"; \
- signal: "elm,state,enabled"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "disabler"; \
- target: "bg"; \
- after: "enable_text"; \
- } \
- program { name: "enable_text"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"elm.text", st, 30, vl); \
- if (!strcmp(st, "disabled_visible")) \
- set_state(PART:"elm.text", "visible", 0.0); \
- else \
- set_state(PART:"elm.text", "default", 0.0); \
- get_state(PART:"elm.swallow.content", st, 30, vl); \
- if (!strcmp(st, "visible")) \
- set_state(PART:"elm.swallow.content", "visible", 0.0); \
- else \
- set_state(PART:"elm.swallow.content", "default", 0.0); \
- get_state(PART:"check", st, 30, vl); \
- if (!strcmp(st, "disabled_visible")) \
- { \
- set_state(PART:"check", "visible", 0.0); \
- set_int(check_state, CHECK_STATE_VISIBLE); \
- } \
- else \
- set_int(check_state, CHECK_STATE_DEFAULT); \
- } \
- } \
- } \
- }
-
-////////////////////////////////////////////////////////////////////////////////
- CHECK_STYLE_DEFAULT("gallery/default", GALLERY_EDC_IMAGE_CHECK_BG, GALLERY_EDC_IMAGE_CHECK_BG_CHECKING, GALLERY_EDC_IMAGE_CHECK_BG_CHECKING, 42, 42, 0)
-
-////////////////////////////////////////////////////////////////////////////////
- CHECK_STYLE_DEFAULT("gallery/album", GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, GALLERY_EDC_IMAGE_CHECK_ALBUM_EDIT_CHECKON,GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, 32, 32, 1)
- CHECK_STYLE_DEFAULT("gallery/thumbs", GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, GALLERY_EDC_IMAGE_CHECK_ALBUM_EDIT_CHECKON,GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, 32, 32, 1)
-
-////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/check/base/gallery/album/grid";
- images {
- image: GALLERY_EDC_IMAGE_EDIT_EFFECT_BG COMP;
- }
- parts {
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "bg2";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- align: 0.5 0.5;
- min: 40 40;
- max: 40 40;
- color: 0 0 0 0;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "selected_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 153;
- visible: 0;
- }
- }
-
- part { name: "check";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg2";
- rel2.to: "bg2";
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- fixed: 1 0;
- visible: 0;
- color: 255 255 255 255;
- align: 0.0 0.5;
- rel1 {
- to_x: "bg2";
- relative: 1.0 0.0;
- offset: 1 1;
- }
- rel2 {
- to_x: "bg2";
- relative: 1.0 1.0;
- offset: 2 -2;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- fixed: 1 1;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 128 128 128 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 128 128 128 128;
- fixed: 1 1;
- visible: 1;
- aspect: 1.0 1.0;
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 0 1;
- rel1 {
- relative: 1.0 0.5;
- offset: 1 1;
- to_x: "elm.swallow.content";
- }
- rel2 {
- relative: 1.0 0.5;
- offset: -2 -2;
- }
- color: 255 255 255 255;
- align: 0.0 0.5;
- text {
- style: "check_label_textblock_style";
- min: 0 0;
- }
- color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
- }
- }
- part { name: "events";
- type: RECT;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "click";
- signal: "mouse,up,1";
- source: "events";
- action: SIGNAL_EMIT "elm,action,check,toggle" "";
- after: "bg_normal";
- }
- program { name: "bg_normal";
- script {
- set_state(PART:"bg", "default", 0.0);
- set_state(PART:"bg2", "default", 0.0);
- }
- }
- program { name: "mouseout";
- signal: "mouse,out";
- source: "events";
- after: "bg_check_normal";
- }
- program { name: "bg_check_normal";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "pressed"))
- set_state(PART:"check", "visible", 0.0);
- set_state(PART:"bg", "default", 0.0);
- set_state(PART:"bg2", "default", 0.0);
- }
- }
- program { name: "pressed";
- signal: "mouse,down,1";
- source: "events";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"check", "pressed", 0.0);
- set_state(PART:"bg", "pressed", 0.0);
- set_state(PART:"bg2", "pressed", 0.0);
- }
- }
- program { name: "check_on";
- signal: "elm,state,check,on";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "check";
- target: "selected_bg";
- }
- program { name: "check_off";
- signal: "elm,state,check,off";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "check";
- target: "selected_bg";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- target: "bg";
- target: "bg2";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "disabled", 0.0);
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"check", "disabled_visible", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- target: "bg";
- target: "bg2";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "default", 0.0);
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"check", "visible", 0.0);
- }
- }
- }
- }
-
-#undef CHECK_STATE_DEFAULT
-#undef CHECK_STATE_VISIBLE
-#undef CHECK_STATE_DISABLED_VISIBLE
-#undef CHECK_STATE_DISABLED
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define CTXPOPUP_WIDTH_MIN_INC 386
-#define CTXPOPUP_WIDTH_MAX_INC 692
-#define CTXPOPUP_TEXT_MAX_INC 652
-#define CTXPOPUP_ICON_TEXT_MAX_INC 595
-#define CTXPOPUP_MORE_TEXT_MAX_INC 599
-#define CTXPOPUP_BUBBLE_BG_IMAGE_BORDER 26 26 26 26
-#define CTXPOPUP_BUBBLE_MORE_BG_IMAGE_BORDER 26 26 0 25
-#define CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER 8 8 8 8
-#define CTXPOPUP_SHADOW_LEFT_PADDING 14
-#define CTXPOPUP_SHADOW_RIGHT_PADDING 14
-#define CTXPOPUP_SHADOW_TOP_PADDING 14
-#define CTXPOPUP_SHADOW_BOTTOM_PADDING 14
-#define CTXPOPUP_CONTENT_PADDING_WIDTH 1
-#define CTXPOPUP_CONTENT_PADDING_HEIGHT 1
-#define CTXPOPUP_PRESS_PADDING 4
-#define CTXPOPUP_PRESS_PADDING2 3
-#define CTXPOPUP_ARROW_PADDING 1
-#define CTXPOPUP_SCROLLER_PADDING 8
-#define CTXPOPUP_SCROLLER_HORIZONTAL_PADDING 16
-#define CTXPOPUP_SCROLLER_VERTICAL_PADDING 16
-#define CTXPOPUP_SCROLLER_TOP_PADDING 8
-#define CTXPOPUP_SCROLLER_BOTTOM_PADDING 8
-#define CTXPOPUP_SCROLLER_LEFT_PADDING 8
-#define CTXPOPUP_SCROLLER_RIGHT_PADDING 8
-#define CTXPOPUP_SCROLLER_V_MIN_SIZE_INC 9 18
-#define CTXPOPUP_SCROLLER_H_MIN_SIZE_INC 18 9
-#define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 18
-#define CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC 255 255 255 255
-#define CTXPOPUP_ICON_CLIP_DIM_COLOR_INC 162 165 174 255
-#define CTXPOPUP_MAIN_TEXT_COLOR_INC 255 255 255 255
-#define CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC 162 165 174 255
-#define CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
-#define CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC 255 255 255 255
-#define CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC 162 165 174 255
-#define CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
-#define CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 1
-#define CTXPOPUP_SEPARATOR_PADDING_INC 20
-#define CTXPOPUP_SEPARATOR_COLOR_INC 29 38 60 255
-#define CTXPOPUP_SEPARATOR2_COLOR_INC 86 92 109 255
-#define CTXPOPUP_HORIZONTAL_SEPARATOR_1_COLOR_INC 29 38 60 255
-#define CTXPOPUP_HORIZONTAL_SEPARATOR_2_COLOR_INC 98 102 117 255
-#define CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC 1 96
-#define CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC 1 96
-#define CTXPOPUP_ITEM_DISABLED_COLOR 0 0 0 0
-#define CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC 40
-#define CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC (CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC * 2)
-#define CTXPOPUP_MAIN_TEXT_SIZE_INC 32
-#define CTXPOPUP_ITEM_HEIGHT_MIN_INC 110
-#define CTXPOPUP_ITEM_HEIGHT_MAX_INC 130
-#define CTXPOPUP_TEXT_ITEM_HORIZONTAL_WIDTH_INC 128
-#define CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC 112
-#define CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC 96
-#define CTXPOPUP_ICON_WIDTH_INC 45
-#define CTXPOPUP_ICON_HEIGHT_INC 45
-#define CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC 45
-#define CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC 45
-#define CTXPOPUP_ARROW_SIZE_INC 36 36
-#define CTXPOPUP_ITEM_TEXT_PADDING_INC 20
-#define CTXPOPUP_ITEM_ICON_PADDING_INC 16
-#define CTXPOPUP_TP_BG_IMAGE_BORDER 8 8 8 8
-#define CTXPOPUP_TP_ARROW_SIZE_INC 27 18
-#define CTXPOPUP_TP_HEIGHT_INC 102
-#define CTXPOPUP_MORE_WIDTH_MIN_INC 412
-#define CTXPOPUP_MORE_WIDTH_MAX_INC 720
-#define CTXPOPUP_MORE_ITEM_PADDING_INC 16
-#define CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC 110
-#define CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC 130
-#define CTXPOPUP_MORE_ICON_WIDTH_INC 45
-#define CTXPOPUP_MORE_ICON_HEIGHT_INC 45
-#define CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC 40
-#define CTXPOPUP_MOVE_PAD_INC 40
-#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC 334
-#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MAX_INC 720
-#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC 90
-#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC 130
-
-
-///////////////////////////////////////////////////////////////////////////////////////
-//
-// ctxpopup
-//
-///////////////////////////////////////////////////////////////////////////////////////
-
-#define CTXPOPUP_SHADOW_PADDING 10
-#define CTXPOPUP_FRAME_CORNER_SIZE 4 4
-#define CTXPOPUP_FONT_COLOR 0 0 0 255
-#define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
-#define CTXPOPUP_LIST_PADDING 10
-#define CTXPOPUP_LIST_SHADOW_PADDING 3
-
-///////////////////////////////////////////////////////////////////////////////
-sounds {
- sample {
- name: "touch_sound" RAW;
- source: "button-pressed.wav";
- }
-}
-
-///////////////////////////////////////////////////////////////////////////////
-group {
- name: "elm/ctxpopup/layout/more_gallery/default";
- max: CTXPOPUP_MORE_WIDTH_MAX_INC ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*7.5)+CTXPOPUP_SHADOW_TOP_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*14)+1);
- parts {
- part {
- name:"top_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 0 CTXPOPUP_MOVE_PAD_INC;
- fixed: 0 1;
- align: 0.5 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- }
- description {
- state: "show_up" 0.0;
- inherit: "default" 0.0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- }
- }
- part {
- name:"bottom_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 0 CTXPOPUP_MOVE_PAD_INC;
- fixed: 0 1;
- align: 0.5 1.0;
- rel1.relative: 0.0 1.0;
- rel2.relative: 1.0 1.0;
- }
- description {
- state: "show_down" 0.0;
- inherit: "default" 0.0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- }
- }
- part {
- name:"left_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_MOVE_PAD_INC 0;
- fixed: 1 0;
- align: 0.0 0.5;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 1.0;
- }
- description {
- state: "show_left" 0.0;
- inherit: "default" 0.0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- }
- }
- part {
- name:"right_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_MOVE_PAD_INC 0;
- fixed: 1 0;
- align: 1 0.5;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- description {
- state: "show_right" 0.0;
- inherit: "default" 0.0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- }
- }
- part {
- name: "swallow";
- type: SWALLOW;
- clip_to: "layout_clip";
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- }
- description {
- state: "show_up" 0.0;
- rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
- rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
- align: 0.5 0.0;
- }
- description {
- state: "show_down" 0.0;
- rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
- rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
- align: 0.5 1.0;
- }
- description {
- state: "show_left" 0.0;
- rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
- rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
- align: 0.0 0.5;
- }
- description {
- state: "show_right" 0.0;
- rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
- rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
- align: 1.0 0.5;
- }
- }
- part {
- name: "event_blocker";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- color: 0 0 0 0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "layout_clip";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- color: 255 255 255 0;
- rel1 {to: "swallow"; relative: -0.2 -0.2; }
- rel2 {to: "swallow"; relative: 1.2 1.2;}
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- }
- programs {
- program {
- name: "showup";
- signal: "elm,state,show,up";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"swallow", st, 30, vl);
- if (strcmp(st, "show_up")) {
- set_state(PART:"swallow", "show_up", 0.0);
- set_state(PART:"top_padding", "show_up", 0.0);
- }
- }
- after: "showupend";
- }
- program {
- name: "showdown";
- signal: "elm,state,show,down";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"swallow", st, 30, vl);
- if (strcmp(st, "show_down")) {
- set_state(PART:"swallow", "show_down", 0.0);
- set_state(PART:"bottom_padding", "show_down", 0.0);
- }
- }
- after: "showdownend";
- }
- program {
- name: "showleft";
- signal: "elm,state,show,left";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"swallow", st, 30, vl);
- if (strcmp(st, "show_left")) {
- set_state(PART:"swallow", "show_left", 0.0);
- set_state(PART:"left_padding", "show_left", 0.0);
- }
- }
- after: "showleftend";
- }
- program {
- name: "showright";
- signal: "elm,state,show,right";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"swallow", st, 30, vl);
- if (strcmp(st, "show_right")) {
- set_state(PART:"swallow", "show_right", 0.0);
- set_state(PART:"right_padding", "show_right", 0.0);
- }
- }
- after: "showrightend";
- }
- program {
- name: "show_clip_blocker";
- signal: "elm,state,show,*";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: SIN_FAC 0.33 1.1;
- target: "layout_clip";
- target: "event_blocker";
- }
- program {
- name: "showupend";
- action: STATE_SET "visible" 0.0;
- transition: SIN_FAC 0.33 1.1;
- target: "top_padding";
- }
- program {
- name: "showdownend";
- action: STATE_SET "visible" 0.0;
- transition: SIN_FAC 0.33 1.1;
- target: "bottom_padding";
- }
- program {
- name: "showleftend";
- action: STATE_SET "visible" 0.0;
- transition: SIN_FAC 0.33 1.1;
- target: "left_padding";
- }
- program {
- name: "showrightend";
- action: STATE_SET "visible" 0.0;
- transition: SIN_FAC 0.33 1.1;
- target: "right_padding";
- }
- program {
- name: "hideup";
- signal: "elm,state,hide,up";
- source: "elm";
- action: STATE_SET "show_up" 0.0;
- target: "swallow";
- target: "top_padding";
- transition: SIN_FAC 0.33 1.1;
- after: "be_default";
- }
- program {
- name: "hidedown";
- signal: "elm,state,hide,down";
- source: "elm";
- action: STATE_SET "show_down" 0.0;
- target: "swallow";
- target: "bottom_padding";
- transition: SIN_FAC 0.33 1.1;
- after: "be_default";
- }
- program {
- name: "hideleft";
- signal: "elm,state,hide,left";
- source: "elm";
- action: STATE_SET "show_left" 0.0;
- target: "swallow";
- target: "left_padding";
- transition: SIN_FAC 0.33 1.1;
- after: "be_default";
- }
- program {
- name: "hideright";
- signal: "elm,state,hide,right";
- source: "elm";
- action: STATE_SET "show_right" 0.0;
- target: "swallow";
- target: "right_padding";
- transition: SIN_FAC 0.33 1.1;
- after: "be_default";
- }
- program {
- name: "hide_clip";
- signal: "elm,state,hide,*";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "layout_clip";
- transition: SIN_FAC 0.33 1.1;
- after: "be_default";
- }
- program {
- name: "hide_event_blocker";
- signal: "elm,state,hide,*";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "event_blocker";
- }
- program {
- name: "be_default";
- action: STATE_SET "default" 0.0;
- target: "swallow";
- target: "top_padding";
- target: "bottom_padding";
- target: "left_padding";
- target: "right_padding";
- after: "hidefinished";
- }
- program {
- name: "hidefinished";
- action: SIGNAL_EMIT "elm,action,hide,finished" "";
- }
- }
-}
-///////////////////////////////////////////////////////////////////////////////
-group {
- name: "elm/ctxpopup/layout/landscape/more_gallery/default";
- inherit: "elm/ctxpopup/layout/more_gallery/default";
- max: CTXPOPUP_MORE_WIDTH_MAX_INC ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*4.5)+CTXPOPUP_SHADOW_TOP_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*8)+1);
-}
-///////////////////////////////////////////////////////////////////////////////
-group {
- name: "elm/scroller/base/ctxpopup";
- script {
- public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer, edge_timer;
- public timer0(val) {
- new v;
- v = get_int(sbvis_v);
- if (v) {
- v = get_int(sbalways_v);
- if(!v) {
- emit("do-hide-vbar", "");
- set_int(sbvis_v, 0);
- }
- }
- v = get_int(sbvis_h);
- if (v) {
- v = get_int(sbalways_h);
- if(!v) {
- emit("do-hide-hbar", "");
- set_int(sbvis_h, 0);
- }
- }
- set_int(sbvis_timer, 0);
- return 0;
- }
- public timer2(val) {
- emit("do-hide-vshadow", "");
- emit("do-hide-hshadow", "");
- set_int(edge_timer, 0);
- return 0;
- }
- }
- images {
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_SCROLL_V);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_SCROLL_H);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_TOP);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_BOTTOM);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_RIGHT);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_LEFT);
- }
- parts {
- part { name: "vshadow_clip";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "hshadow_clip";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "shadow_top";
- clip_to: "vshadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 1 1;
- align: 0.5 0.0;
- color: 255 255 255 100;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- image.normal: "00_popup_overscrolling_top.png";
- image.border: 17 17 0 0;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "shadow_bottom";
- clip_to: "vshadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 1 1;
- align: 0.5 1.0;
- color: 255 255 255 100;
- rel1.relative: 0.0 1.0;
- rel2.relative: 1.0 1.0;
- image.normal: "00_popup_overscrolling_bottom.png";
- image.border: 17 17 0 0;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "shadow_left";
- clip_to: "hshadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 30 0;
- fixed: 1 1;
- align: 0.0 0.5;
- color: 255 255 255 100;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 1.0;
- image.normal: "00_popup_overscrolling_left.png";
- image.border: 0 0 17 17;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "shadow_right";
- clip_to: "hshadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 30 0;
- fixed: 1 1;
- align: 1.0 0.5;
- color: 255 255 255 100;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 1.0;
- image.normal: "00_popup_overscrolling_right.png";
- image.border: 0 0 17 17;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "clipper";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- }
- }
- part {
- name: "elm.swallow.content";
- clip_to: "clipper";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- }
- }
- part {
- name: "sb_vbar_clip_master";
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- }
- description {
- state: "hidden" 0.0;
- visible: 0;
- }
- }
- part {
- name: "sb_vbar_clip";
- clip_to:"sb_vbar_clip_master";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- rel2{ to:"clipper"; relative: 1.0 1.0;}
- }
- description {
- state: "hidden" 0.0;
- visible: 0;
- }
- }
- part {
- name: "sb_vbar_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) 0;
- max: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) 0;
- align: 1.0 0.0;
- rel1 { to:"clipper"; relative: 1.0 0.0; }
- rel2 { to:"clipper"; relative: 1.0 1.0; }
- }
- }
- part {
- name: "sb_vbar_bg";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- align: 1.0 0.0;
- rel1 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 0.0; }
- rel2 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 1.0; }
- }
- }
- part {
- name: "sb_vbar_top_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_TOP_PADDING;
- max: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_TOP_PADDING;
- align: 0.0 0.0;
- rel1 { to:"sb_vbar_bg"; relative: 0.0 0.0; }
- rel2 { to:"sb_vbar_bg"; relative: 1.0 0.0; }
- }
- }
- part {
- name: "sb_vbar_bottom_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_BOTTOM_PADDING;
- max: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_BOTTOM_PADDING;
- align: 0.0 1.0;
- rel1 { to:"sb_vbar_bg"; relative: 0.0 1.0; }
- rel2 { to:"sb_vbar_bg"; relative: 1.0 1.0; }
- }
- }
- part {
- name: "sb_vbar";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- align: 1.0 0.0;
- rel1 { to_x:"sb_vbar_bg"; to_y:"sb_vbar_top_padding"; relative: 0.0 1.0; }
- rel2 { to_x:"sb_vbar_bg"; to_y:"sb_vbar_bottom_padding"; relative: 1.0 0.0; }
- }
- }
- part {
- name: "elm.dragable.vbar";
- clip_to: "sb_vbar_clip";
- mouse_events: 0;
- scale: 1;
- dragable {
- x: 0 0 0;
- y: 1 1 0;
- confine: "sb_vbar";
- }
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: CTXPOPUP_SCROLLER_V_MIN_SIZE_INC;
- rel1 {
- relative: 0.5 0.5;
- to: "sb_vbar";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "sb_vbar";
- }
- image {
- normal: GALLERY_EDC_IMAGE_POPUP_SCROLL_V;
- border: 0 0 8 8;
- border_scale: 1;
- }
- }
- }
- part {
- name: "sb_hbar_clip_master";
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- }
- description {
- state: "hidden" 0.0;
- visible: 0;
- }
- }
- part {
- name: "sb_hbar_clip";
- clip_to: "sb_hbar_clip_master";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- rel2{ to:"clipper"; relative: 1.0 1.0;}
- }
- description {
- state: "hidden" 0.0;
- visible: 0;
- }
- }
- part {
- name: "sb_hbar_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: 0 (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
- max: 0 (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
- align: 0.0 1.0;
- rel1 { to:"clipper"; relative: 0.0 1.0; }
- rel2 { to:"clipper"; relative: 1.0 1.0; }
- }
- }
- part {
- name: "sb_hbar_bg";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- align: 0.0 1.0;
- rel1 {to_x:"clipper"; to_y: "sb_hbar_padding"; relative: 0.0 0.0;}
- rel2 {to_x:"clipper"; to_y: "sb_hbar_padding"; relative: 1.0 0.0;}
- }
- }
- part {
- name: "sb_hbar_left_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: CTXPOPUP_SCROLLER_LEFT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
- max: CTXPOPUP_SCROLLER_LEFT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
- align: 0.0 1.0;
- rel1 { to:"sb_hbar_bg"; relative: 0.0 0.0; }
- rel2 { to:"sb_hbar_bg"; relative: 0.0 1.0; }
- }
- }
- part {
- name: "sb_hbar_right_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: CTXPOPUP_SCROLLER_RIGHT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
- max: CTXPOPUP_SCROLLER_RIGHT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
- align: 1.0 1.0;
- rel1 { to:"sb_hbar_bg"; relative: 1.0 0.0; }
- rel2 { to:"sb_hbar_bg"; relative: 1.0 1.0; }
- }
- }
- part {
- name: "sb_hbar";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- align: 0.0 1.0;
- rel1 {to_x:"sb_hbar_left_padding"; to_y: "sb_hbar_padding"; relative: 1.0 0.0;}
- rel2 {to_x:"sb_hbar_right_padding"; to_y: "sb_hbar_padding"; relative: 0.0 0.0;}
- }
- }
- part {
- name: "elm.dragable.hbar";
- clip_to: "sb_hbar_clip";
- mouse_events: 0;
- scale: 1;
- dragable {
- x: 1 1 0;
- y: 0 0 0;
- confine: "sb_hbar";
- }
- description {
- state: "default" 0.0;
- fixed: 1 1;
- min: CTXPOPUP_SCROLLER_H_MIN_SIZE_INC;
- rel1 {relative: 0.5 0.5; to: "sb_hbar";}
- rel2 {relative: 0.5 0.5; to: "sb_hbar";}
- image {
- normal: GALLERY_EDC_IMAGE_POPUP_SCROLL_H;
- border: 8 8 0 0;
- border_scale: 1;
- }
- }
- }
- }
- programs {
- program {
- name: "load";
- signal: "load";
- source: "";
- script {
- set_state(PART:"sb_vbar_clip", "hidden", 0.0);
- set_state(PART:"sb_hbar_clip", "hidden", 0.0);
- set_state(PART:"vshadow_clip", "hidden", 0.0);
- set_state(PART:"hshadow_clip", "hidden", 0.0);
- set_int(sbvis_v, 0);
- set_int(sbvis_h, 0);
- set_int(sbalways_v, 0);
- set_int(sbalways_h, 0);
- set_int(sbvis_timer, 0);
- set_int(edge_timer, 0);
- emit("reload", "elm");
- }
- }
- program { name: "vshadow_show";
- signal: "do-show-vshadow";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "vshadow_clip";
- }
- program { name: "vshadow_hide";
- signal: "do-hide-vshadow";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.2;
- target: "vshadow_clip";
- }
- program { name: "hshadow_show";
- signal: "do-show-hshadow";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "hshadow_clip";
- }
- program { name: "hshadow_hide";
- signal: "do-hide-hshadow";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.2;
- target: "hshadow_clip";
- }
- program {
- name: "vbar_show";
- signal: "elm,action,show,vbar";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "sb_vbar_clip_master";
- }
- program {
- name: "vbar_hide";
- signal: "elm,action,hide,vbar";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "sb_vbar_clip_master";
- }
- program {
- name: "vbar_show_always";
- signal: "elm,action,show_always,vbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_v);
- if (!v) {
- set_int(sbalways_v, 1);
- v = get_int(sbvis_v);
- if (!v) {
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- }
- }
- }
- program {
- name: "vbar_show_notalways";
- signal: "elm,action,show_notalways,vbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_v);
- if (v) {
- set_int(sbalways_v, 0);
- v = get_int(sbvis_v);
- if (!v) {
- emit("do-hide-vbar", "");
- set_int(sbvis_v, 0);
- }
- }
- }
- }
- program {
- name: "sb_vbar_show";
- signal: "do-show-vbar";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 1.0;
- target: "sb_vbar_clip";
- }
- program {
- name: "sb_vbar_hide";
- signal: "do-hide-vbar";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 1.0;
- target: "sb_vbar_clip";
- }
- program {
- name: "hbar_show";
- signal: "elm,action,show,hbar";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "sb_hbar_clip_master";
- }
- program {
- name: "hbar_hide";
- signal: "elm,action,hide,hbar";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "sb_hbar_clip_master";
- }
- program {
- name: "hbar_show_always";
- signal: "elm,action,show_always,hbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_h);
- if (!v) {
- set_int(sbalways_h, 1);
- v = get_int(sbvis_h);
- if (!v) {
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- }
- }
- }
- program {
- name: "hbar_show_notalways";
- signal: "elm,action,show_notalways,hbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_h);
- if (v) {
- set_int(sbalways_h, 0);
- v = get_int(sbvis_h);
- if (!v) {
- emit("do-hide-hbar", "");
- set_int(sbvis_h, 0);
- }
- }
- }
- }
- program {
- name: "sb_hbar_show";
- signal: "do-show-hbar";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 1.0;
- target: "sb_hbar_clip";
- }
- program {
- name: "sb_hbar_hide";
- signal: "do-hide-hbar";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 1.0;
- target: "sb_hbar_clip";
- }
- program {
- name: "scroll";
- signal: "elm,action,scroll";
- source: "elm";
- action: STATE_SET "default" 0.0;
- script {
- new v;
- v = get_int(sbvis_v);
- v |= get_int(sbalways_v);
- if (!v) {
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- v = get_int(sbvis_h);
- v |= get_int(sbalways_h);
- if(!v) {
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(2.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- }
- program { name: "show";
- signal: "show";
- source: "";
- script {
- new v;
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- v = get_int(sbalways_v);
- if (!v) {
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(1.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- v = get_int(sbalways_h);
- if (!v) {
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(1.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- }
- }
- program { name: "edge_top";
- signal: "elm,edge,top";
- source: "elm";
- script {
- set_state(PART:"shadow_top", "edge", 0.0);
- set_state(PART:"shadow_bottom", "hidden", 0.0);
- }
- after: "edge_vertical";
- }
- program { name: "edge_bottom";
- signal: "elm,edge,bottom";
- source: "elm";
- script {
- set_state(PART:"shadow_top", "hidden", 0.0);
- set_state(PART:"shadow_bottom", "edge", 0.0);
- }
- after: "edge_vertical";
- }
- program { name: "edge_left";
- signal: "elm,edge,left";
- source: "elm";
- script {
- set_state(PART:"shadow_left", "edge", 0.0);
- set_state(PART:"shadow_right", "hidden", 0.0);
- }
- after: "edge_horizontal";
- }
- program { name: "edge_right";
- signal: "elm,edge,right";
- source: "elm";
- script {
- set_state(PART:"shadow_left", "hidden", 0.0);
- set_state(PART:"shadow_right", "edge", 0.0);
- }
- after: "edge_horizontal";
- }
- program { name: "edge_vertical";
- script {
- new v;
- v = get_int(edge_timer);
- if (!v) {
- emit("do-show-vshadow", "");
- }
- if (v > 0) cancel_timer(v);
- v = timer(0.1, "timer2", 0);
- set_int(edge_timer, v);
- }
- }
- program { name: "edge_horizontal";
- script {
- new v;
- v = get_int(edge_timer);
- if (!v) {
- emit("do-show-hshadow", "");
- }
- if (v > 0) cancel_timer(v);
- v = timer(0.1, "timer2", 0);
- set_int(edge_timer, v);
- }
- }
- }
-}
-///////////////////////////////////////////////////////////////////////////////
-group {
- name: "elm/scroller/base/more_gallery/default";
- inherit: "elm/scroller/base/ctxpopup";
- GL_RES_IMG(GALLERY_EDC_IMAGE_OS_TOP);
-
- parts {
- part { name: "shadow_top";
- clip_to: "vshadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 1 1;
- align: 0.5 0.0;
- color: 255 255 255 100;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- image.normal: GALLERY_EDC_IMAGE_OS_TOP;
- image.border: 0 0 0 0;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
-}
-
-///////////////////////////////////////////////////////////////////////////////
-group { name: "elm/ctxpopup/arrow/more_gallery/default"; }
-
-///////////////////////////////////////////////////////////////////////////////
-group {
- name: "elm/ctxpopup/base/more_gallery/default";
- images {
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DORPDOWN_BG);
- }
- parts {
- part {
- name:"frame_shadow_left_top_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_SHADOW_LEFT_PADDING 0;//CTXPOPUP_SHADOW_TOP_PADDING;
- max: CTXPOPUP_SHADOW_LEFT_PADDING 0;//CTXPOPUP_SHADOW_TOP_PADDING;
- rel2 { relative: 0 0; }
- align: 0 0;
- fixed: 1 1;
- }
- }
- part {
- name:"frame_shadow_right_bottom_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
- max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
- rel1{relative: 1 1;}
- align: 1 1;
- fixed: 1 1;
- }
- }
- part {
- name: "frame_bg";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1 {to:"frame_shadow_left_top_padding";}
- rel2 {to:"frame_shadow_right_bottom_padding";}
- min: CTXPOPUP_MORE_WIDTH_MIN_INC 0;
- image {
- normal: GALLERY_EDC_IMAGE_POPUP_DORPDOWN_BG;
- border: CTXPOPUP_BUBBLE_MORE_BG_IMAGE_BORDER;
- border_scale: 1;
- }
- }
- }
- part {
- name:"content_left_top_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
- max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
- rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;}
- align: 0 0;
- fixed: 1 1;
- }
- }
- part {
- name:"content_right_bottom_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
- max: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
- rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
- align: 1 1;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.swallow.content";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- align: 0 0;
- rel1 {to:"content_left_top_padding"; relative: 1.0 1.0;}
- rel2 {to:"content_right_bottom_padding"; relative: 0.0 0.0;}
- }
- }
- part { name: "access.outline";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "frame_bg";
- rel2.to: "frame_bg";
- color: 0 0 0 0;
- }
- }
- }
-}
-///////////////////////////////////////////////////////////////////////////////
-group {
- name: "elm/ctxpopup/icon_text_style_item/more_gallery/default";
-
- images {
- GL_RES_IMG(GALLERY_EDC_IMAGE_MORE_POPUP_PRESS);
- }
-
- script {
- public mouse_down = 0;
- public multi_down = 0;
- }
-
- data.item: "item_max_size" CTXPOPUP_MORE_TEXT_MAX_INC;
-
- parts {
- part {
- name: "event_blocker";
- type: RECT;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part {
- name: "bg";
- mouse_events: 0;
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- min: (CTXPOPUP_MORE_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2-CTXPOPUP_PRESS_PADDING*2) 1;
- max: (CTXPOPUP_MORE_WIDTH_MAX_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2-CTXPOPUP_PRESS_PADDING*2) (CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC-CTXPOPUP_PRESS_PADDING*2);
- rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
- rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
- image {
- normal: GALLERY_EDC_IMAGE_MORE_POPUP_PRESS;
- border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
- border_scale: 1;
- }
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "bg_press_left_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
- max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
- rel1 {to: "bg_press_top_padding"; relative: 0.0 0.0;}
- align: 0 0.5;
- }
- }
- part {
- name: "bg_press_right_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
- max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
- rel2 {to: "bg_press_bottom_padding"; relative: 1.0 1.0;}
- align: 1 0.5;
- }
- }
- part {
- name: "bg_press_top_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
- max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
- rel1 {to: "separator2"; relative: 0.0 1.0;}
- align: 0.5 0;
- }
- }
- part {
- name: "bg_press_bottom_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
- max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
- align: 0.5 1;
- }
- }
- part {
- name: "icon_left_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
- max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
- align: 0 0;
- fixed: 1 1;
- }
- }
- part {
- name: "separator1";
- mouse_events: 0;
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- color: CTXPOPUP_SEPARATOR_COLOR_INC;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- align: 0.5 0;
- fixed: 0 1;
- min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
- max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
- visible: 0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "separator2";
- mouse_events: 0;
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- color: CTXPOPUP_SEPARATOR2_COLOR_INC;
- rel1 { relative: 0.0 1.0; to: "separator1"; }
- rel2.to: "separator1";
- rel2.offset: 0 0;
- align: 0.5 0;
- fixed: 0 1;
- min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
- max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
- visible: 0;
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- clip_to: "icon_clip";
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
- max: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
- align: 0 0.5;
- aspect: 1.0 1.0;
- rel1 { to:"icon_left_padding"; relative: 1 0; }
- }
- }
- part {
- name: "icon_clip";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.swallow.icon";
- rel2.to: "elm.swallow.icon";
- color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
- }
- }
- part {
- name: "icon_right_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
- max: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
- align: 0 0.5;
- fixed: 1 1;
- rel1 { to:"elm.swallow.icon"; relative: 1 1; }
- }
- }
- part {
- name: "elm.text";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 (CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC-CTXPOPUP_PRESS_PADDING*2);
- max: CTXPOPUP_MORE_TEXT_MAX_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
- align: 0.5 0.5;
- rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
- rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
- color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
- text {
- font: "Tizen:style=Regular";
- size: CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC;
- size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
- align: 0.0 0.5;
- min: 1 1;
- text_class: "list_item";
- }
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
- text.min: 0 1;
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
- }
- description {
- state: "ellipsis" 0.0;
- inherit: "default" 0.0;
- min: CTXPOPUP_MORE_TEXT_MAX_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
- text.min: 0 1;
- }
- description {
- state: "ellipsis_disabled" 0.0;
- inherit: "ellipsis" 0.0;
- color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
- }
- }
- part {
- name: "text_right_padding";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
- max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
- fixed: 1 0;
- align: 1.0 0.5;
- }
- }
- part {
- name: "over1";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part {
- name: "over2";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- dragable {
- x: 1 1 0;
- y: 1 1 0;
- }
- description {
- state: "default" 0.0;
- rel1.to:"bg";
- rel2.to:"bg";
- color: 0 0 0 0;
- }
- }
- part {
- name: "disclip";
- type: RECT;
- description {
- state: "default" 0.0;
- visible: 0;
- }
- description {
- state: "disabled" 0.0;
- visible: 1;
- color: CTXPOPUP_ITEM_DISABLED_COLOR;
- }
- }
- }
- programs {
- program {
- name: "text_default";
- signal: "elm,state,text,default";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "disabled")) || (!strcmp(st, "ellipsis_disabled")))
- set_state(PART:"elm.text", "disabled", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program {
- name: "text_ellipsis";
- signal: "elm,state,text,ellipsis";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled"))
- set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
- else
- set_state(PART:"elm.text", "ellipsis", 0.0);
- }
- }
- program {
- name: "item_unclick";
- signal: "mouse,clicked,1";
- source: "over1";
- script {
- if (get_int(multi_down) == 0) {
- emit("elm,action,click", "");
- run_program(PROGRAM:"touch_snd");
- }
- }
- }
- program {
- name: "touch_snd";
- action: PLAY_SAMPLE "touch_sound" 1.0;
- }
- program {
- name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
- set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- set_state(PART:"icon_clip", "disabled", 0.0);
- set_state(PART:"disclip", "disabled", 0.0);
- }
- }
- program {
- name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
- set_state(PART:"elm.text", "ellipsis", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"icon_clip", "default", 0.0);
- set_state(PART:"disclip", "default", 0.0);
- }
- }
- program {
- name: "default";
- signal: "elm,state,default";
- source: "elm";
- script {
- set_state(PART:"separator1", "default", 0.0);
- set_state(PART:"separator2", "default", 0.0);
- }
- }
- program {
- name: "separator";
- signal: "elm,state,separator";
- source: "elm";
- script {
- set_state(PART:"separator1", "visible", 0.0);
- set_state(PART:"separator2", "visible", 0.0);
- }
- }
- program {
- name: "item_click2";
- signal: "mouse,down,1";
- source: "over2";
- script {
- if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
- set_int(mouse_down, 1);
- set_state(PART:"elm.text", "clicked", 0.0);
- set_state(PART:"bg", "clicked", 0.0);
- }
- }
- }
- program {
- name: "drag";
- signal: "drag";
- source: "over2";
- script {
- new Float:dx, Float:dy;
- get_drag(PART:"over2", dx, dy);
- if ((abs(dx) > 20) || (abs(dy) > 20)) {
- set_drag(PART:"over2", 0.0, 0.0);
- set_state(PART:"bg", "default", 0.0);
- }
- set_drag(PART:"over2", 0.0, 0.0);
- }
- }
- program {
- name: "item_unclick2";
- signal: "mouse,up,1";
- source: "over2";
- script {
- if (get_int(mouse_down) == 1) {
- set_int(mouse_down, 0);
- set_drag(PART:"over2", 0.0, 0.0);
- set_state(PART:"bg", "default", 0.0);
- }
- }
- }
- program {
- name: "multi_down";
- signal: "elm,action,multi,down";
- source: "elm";
- script {
- set_int(multi_down, 1);
- }
- }
- program {
- name: "multi_up";
- signal: "elm,action,multi,up";
- source: "elm";
- script {
- set_int(multi_down, 0);
- }
- }
- }
-}
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-/* Refer to: "elm/layout/searchbar/cancel_button" */
-
-#define ENTRY_TEXT_SIZE_INC 44
-
-#define SEARCHBAR_CANCEL_BUTTON_W_INC 136
-#define SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 166
-#define SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 10
-#define SEARCHBAR_TOP_PADDING_INC 10
-#define SEARCHBAR_BOTTOM_PADDING_INC 10
-#define SEARCHBAR_HEIGHT_INC 66
-#define SEARCHBAR_LEFT_PADDING_INC 26
-#define SEARCHBAR_RIGHT_PADDING_INC 26
-#define SEARCHBAR_INPUTFIELD_BORDER_INC 12 13 12 13
-#define SEARCHBAR_LEFT_ICON_PADDING_INC 0 // 16
-#define SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 16
-#define SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 8
-#define SEARCHBAR_SEARCH_TEXTFIELD_H_INC 60
-
-#define EDITFIELD_TITLE_SIZE_INC 32
-#define EDITFIELD_TITLE_COLOR_INC 59 115 182 255
-#define EDITFIELD_GUIDE_TEXT_COLOR_INC 121 131 138 255
-#define EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC 6
-#define EDITFIELD_SEARCHBAR_TOP1_MULTI_INC 10
-#define EDITFIELD_SEARCHBAR_TOP2_INC 10
-#define EDITFIELD_SEARCHBAR_LEFT1_INC 0
-#define EDITFIELD_SEARCHBAR_LEFT2_INC 0
-#define EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 56
-#define EDITFIELD_SEARCHBAR_RIGHT2_INC 5
-#define EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC 8
-#define EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC 2
-#define EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC 16
-#define EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC 2
-#define EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC 50
-#define EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC 50
-#define EDITFIELD_SEARCHBAR_ERASER_MINW_INC 38
-#define EDITFIELD_SEARCHBAR_ERASER_MINH_INC 38
-#define EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC 38
-#define EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC 50
-#define EDITFIELD_ERASER_DEFAULT_COLOR_INC 128 128 128 255
-#define EDITFIELD_ERASER_PRESSED_COLOR_INC 59 115 182 255
-
-group { name: "elm/layout/searchbar/gallery";
- images {
- image: GALLERY_EDC_IMAGE_EDITFIELD_CLEAR COMP;
- image: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG COMP;
- image: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG_FOCUS COMP;
- }
- parts {
- part { name: "top_padding_rect";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 SEARCHBAR_TOP_PADDING_INC;
- fixed: 0 1;
- align: 0 0;
- rel2.relative: 1.0 0.0;
- }
- }
- part { name: "bottom_padding_rect";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 SEARCHBAR_BOTTOM_PADDING_INC;
- fixed: 0 1;
- align: 0 1;
- rel1.relative: 0.0 1.0;
- }
- }
- part { name: "base_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 SEARCHBAR_HEIGHT_INC;
- align: 0 0.5;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "top_padding_rect";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "bottom_padding_rect";
- }
- }
- }
- part { name: "left_padding_rect";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: SEARCHBAR_LEFT_PADDING_INC 0;
- fixed: 1 0;
- align: 0 0;
- rel2.relative: 0.0 1.0;
- }
- }
- part { name: "right_padding_rect";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: SEARCHBAR_RIGHT_PADDING_INC 0;
- fixed: 1 0;
- align: 1.0 0.0;
- rel1.relative: 1.0 0.0;
- }
- /*description { state: "in" 0.0;
- inherit: "default" 0.0;
- min: SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 0;
- }*/
- }
- part { name: "inputfield_rect";
- type: IMAGE;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- rel1 {
- relative: 1.0 0.0;
- to_x: "left_padding_rect";
- to_y: "base_bg";
- }
- rel2 {
- relative: 0.0 1.0;
- to_x: "right_padding_rect";
- to_y: "base_bg";
- }
- image {
- normal: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG;
- border: SEARCHBAR_INPUTFIELD_BORDER_INC;
- }
- }
- }
- part {
- name: "focus_image";
- mouse_events:1;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- image.normal: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG_FOCUS;
- image.border: SEARCHBAR_INPUTFIELD_BORDER_INC;
- image.border_scale: 1;
- rel1.to: "inputfield_rect";
- rel2.to: "inputfield_rect";
- }
- description {
- state: "in" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "right_btn_padding_rect";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: SEARCHBAR_RIGHT_PADDING_INC 0;
- fixed: 1 0;
- align: 0.0 0.0;
- rel1.relative: 1.0 0.0;
- rel1.to: "inputfield_rect";
- rel2.relative: 1.0 1.0;
- rel2.to: "inputfield_rect";
- }
- /*description { state: "in" 0.0;
- inherit: "default" 0.0;
- min: SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 0;
- }*/
- }
- part { name: "left_icon_padding_rect";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: SEARCHBAR_LEFT_ICON_PADDING_INC 0;
- fixed: 1 0;
- align: 0 0;
- rel1.to: "inputfield_rect";
- rel2 {
- relative: 0.0 1.0;
- to: "inputfield_rect";
- }
- }
- }
- part { name: "left_padding_search_textfield";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0;
- fixed: 1 0;
- align: 0.0 0.5;
- rel1 {
- relative: 1.0 0.0;
- to_x: "left_icon_padding_rect";
- to_y: "inputfield_rect";
- }
- rel2 {
- relative: 1.0 1.0;
- to_x: "left_icon_padding_rect";
- to_y: "inputfield_rect";
- }
- }
- }
- part { name: "right_padding_search_textfield";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 {
- relative: 1.0 0.0;
- to: "inputfield_rect";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "inputfield_rect";
- }
- }
- }
- part { name: "search_textfield";
- type: RECT;
- mouse_events: 1;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
- fixed: 0 1;
- align: 0.0 0.5;
- rel1 {
- relative: 1.0 0.0;
- to: "left_padding_search_textfield";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "right_padding_search_textfield";
- }
- }
- }
- part { name: "button_cancel";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: SEARCHBAR_CANCEL_BUTTON_W_INC 0;
- align: 0.0 0.5;
- state: "default" 0.0;
- rel1 {
- relative: 1.0 1.0;
- to_x: "right_btn_padding_rect";
- to_y: "top_padding_rect";
- }
- rel2 {
- relative: 1.0 0.0;
- to_x: "right_btn_padding_rect";
- to_y: "bottom_padding_rect";
- }
- }
- }
- part { name: "top1";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
- fixed: 1 1;
- rel1 {
- relative: 0.0 0.0;
- to: "search_textfield";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "search_textfield";
- }
- align: 0.5 0;
- }
- description { state: "elm.text.show" 0.0;
- inherit: "default" 0.0;
- min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
- }
- }
- part { name: "top2";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
- fixed: 1 1;
- rel1 {
- relative: 0.0 0.0;
- to: "search_textfield";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "search_textfield";
- }
- align: 0.5 0;
- }
- }
- part { name: "left1";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
- fixed: 1 1;
- align: 0 0;
- rel1 {
- relative: 0.0 0.0;
- to: "search_textfield";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "search_textfield";
- }
- }
- }
- part { name: "left2";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
- fixed: 1 1;
- align: 0 0;
- rel1 {
- relative: 0.0 0.0;
- to: "search_textfield";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "search_textfield";
- }
- }
- }
- part { name: "right1";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0;
- fixed: 1 1;
- align: 1 0;
- rel1 {
- relative: 1.0 0.0;
- to: "search_textfield";
- }
- rel2.to: "search_textfield";
- }
- }
- part { name: "right2";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
- fixed: 1 1;
- align: 1 0;
- rel1 {
- relative: 1.0 0.0;
- to: "search_textfield";
- }
- rel2.to: "search_textfield";
- }
- }
- part { name: "bottom1";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
- fixed: 1 1;
- align: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "search_textfield";
- }
- rel2.to: "search_textfield";
- }
- description { state: "elm.text.show" 0.0;
- inherit: "default" 0.0;
- min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
- }
- }
- part { name: "bottom2";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "search_textfield";
- }
- rel2.to: "search_textfield";
- align: 0 1;
- }
- description { state: "elm.text.show" 0.0;
- inherit: "default" 0.0;
- min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
- }
- }
- part { name: "bottom3";
- type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "search_textfield";
- }
- rel2.to: "search_textfield";
- align: 0 1;
- }
- description { state: "elm.text.show" 0.0;
- inherit: "default" 0.0;
- min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.0;
- min: 0 34;
- fixed: 1 1;
- rel1 {
- relative: 1.0 1.0;
- to_x: "left2";
- to_y: "top2";
- }
- rel2 {
- relative: 1.0 1.0;
- to_x: "left2";
- to_y: "top2";
- }
- color: EDITFIELD_TITLE_COLOR_INC;
- text {
- font: "Tizen:style=Medium";
- size: EDITFIELD_TITLE_SIZE_INC;
- min: 1 1;
- align: 0.0 0.0;
- text_class: "tizen";
- }
- }
- description { state: "elm.text.show" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "elm.guidetext";
- type: TEXT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- fixed: 1 1;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
- text {
- font: "Tizen:style=Roman";
- size: ENTRY_TEXT_SIZE_INC;
- min: 0 0;
- align: 0.0 0.5;
- text_class: "tizen";
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- min: 0 40;
- rel1 {
- relative : 1.0 1.0;
- to_x: "left1";
- to_y: "top1";
- }
- rel2 {
- relative : 0.0 0.0;
- to_x: "right1";
- to_y: "bottom1";
- }
- align: 0.0 0.5;
- }
- }
- part { name: "eraser_image";
- scale: 1;
- clip_to: "eraser_image.clipper";
- description { state: "default" 0.0;
- visible: 0;
- min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC;
- fixed: 1 1;
- align: 1 0.5;
- rel1 {
- relative: 0.0 0.5;
- to_x : "right2";
- }
- rel2 {
- relative: 0.0 0.5;
- to_x : "right2";
- }
- image.normal: GALLERY_EDC_IMAGE_EDITFIELD_CLEAR;
- }
- description { state: "elm.eraser.show" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "eraser_image.clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "elm.eraser.show" 0.0;
- color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
- }
- description { state: "elm.eraser.pressed" 0.0;
- color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
- }
- }
- part { name: "eraser";
- type: RECT;
- scale: 1;
- mouse_events: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC;
- fixed: 1 1;
- align: 1 0.5;
- color: 0 0 0 0;
- rel1 {
- relative: 0.0 0.5;
- to_x : "right2";
- }
- rel2 {
- relative: 0.0 0.5;
- to_x : "right2";
- }
- }
- description { state: "elm.eraser.show" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program {
- name: "guidetext_show";
- signal: "elm,state,guidetext,show";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.guidetext";
- }
- program {
- name: "guidetext_hide";
- signal: "elm,state,guidetext,hide";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "elm.guidetext";
- }
- program {
- name: "eraser_show";
- signal: "elm,state,eraser,show";
- source: "elm";
- action: STATE_SET "elm.eraser.show" 0.0;
- target: "eraser_image";
- target: "eraser_image.clipper";
- target: "eraser";
- }
- program {
- name: "eraser_hide";
- signal: "elm,state,eraser,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "eraser_image";
- target: "eraser_image.clipper";
- target: "eraser";
- }
- program {
- name: "label_show";
- signal: "elm,state,title,show";
- source: "elm";
- action: STATE_SET "elm.text.show" 0.0;
- target: "elm.text";
- target: "top1";
- target: "bottom1";
- target: "bottom2";
- target: "bottom3";
- }
- program {
- name: "label_hide";
- signal: "elm,state,title,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "top1";
- target: "bottom1";
- target: "bottom2";
- target: "bottom3";
- }
- program {
- name: "eraser_clicked";
- signal: "mouse,clicked,1";
- source: "eraser";
- action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
- }
- program {
- name: "bg_clicked";
- signal: "mouse,clicked,1";
- source: "search_textfield";
- action: SIGNAL_EMIT "elm,bg,clicked" "elm";
- }
- program { name: "cancel_in";
- signal: "cancel,in";
- source: "";
- action: STATE_SET "in" 0.0;
- //target: "right_padding_rect";
- //target: "right_btn_padding_rect";
- target: "focus_image";
- transition: LINEAR 0.3;
- }
- program { name: "cancel_out";
- signal: "cancel,out";
- source: "";
- action: STATE_SET "default" 0.0;
- //target: "right_padding_rect";
- //target: "right_btn_padding_rect";
- target: "focus_image";
- transition: LINEAR 0.3;
- }
- program { name: "cancel_show";
- signal: "cancel,show";
- source: "";
- action: STATE_SET "in" 0.0;
- target: "focus_image";
- target: "right_padding_rect";
- target: "right_btn_padding_rect";
- }
- program { name: "cancel_hide";
- signal: "cancel,hide";
- source: "";
- action: STATE_SET "default" 0.0;
- target: "focus_image";
- target: "right_padding_rect";
- target: "right_btn_padding_rect";
- }
- program {
- name: "eraser_pressed";
- signal: "mouse,down,1";
- source: "eraser";
- action: STATE_SET "elm.eraser.pressed" 0.0;
- target: "eraser_image.clipper";
- }
- program {
- name: "eraser_unpressed";
- signal: "mouse,up,1";
- source: "eraser";
- action: STATE_SET "elm.eraser.show" 0.0;
- target: "eraser_image.clipper";
- }
- GL_GENGRID_SOUND("eraser")
- GL_GENGRID_PLARY_SOUND
- }
-}
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define BUTTON_STATE_ENABLED 0
-#define BUTTON_STATE_DISABLED 1
-
-#define BUTTON_EDIT_STYLE_BORDER_INC 8 0 5 5
-
- sounds {
- sample {
- name: "touch_sound" AS_IS;
- source: GALLERY_EDC_SOUND_TOUCH_30MS;
- }
- }
-
-#define NAVIFRAME_TITLE_TEXT_BG_H_INC 88
-#define NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC 84
-#define NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC 8 8 2 2
-#define NAVIFRAME_TITLE_H_INC 40
-#define NAVIFRAME_LANDSCAPE_TITLE_H_INC 40
-#define NAVIFRAME_TAB_TITLE_H_INC 165
-#define NAVIFRAME_LANDSCAPE_TAB_TITLE_H_INC 145
-#define NAVIFRAME_TAB_TITLE_H2_INC 126
-#define NAVIFRAME_TOOLBAR_HEIGHT_INC 98
-#define NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC 85
-#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 115 96
-#define NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC 115 91
-#define NAVIFRAME_PREV_FUNC_BTN_SIZE_INC 85 98
-#define NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC 85 85
-#define NAVIFRAME_TITLE_TAB_H_INC 75
-#define NAVIFRAME_TITLE_TAB_FONT_SIZE_INC 44
-#define NAVIFRAME_LANDSCAPE_TITLE_TAB_FONT_SIZE_INC 38
-#define NAVIFRAME_TITLE_TAB_TEXT_H_INC 90
-#define NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC 70
-#define NAVIFRAME_TITLE_FONT_SIZE_INC 30
-#define NAVIFRAME_TITLE_FONT_MIN_SIZE_INC 26
-#define NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC 50
-#define NAVIFRAME_TITLE_SMALL_FONT_SIZE_INC 44
-#define NAVIFRAME_LANDSCAPE_TITLE_SMALL_FONT_SIZE_INC 38
-#define NAVIFRAME_ICON_SIZE_INC 45 45
-#define NAVIFRAME_PADDING_INC 26 0
-#define NAVIFRAME_PADDING2_INC 16 0
-#define NAVIFRAME_BADGE_LEFT_PADDING_INC 8 0
-#define NAVIFRAME_BADGE_TOP_PADDING_INC 0 10
-#define NAVIFRAME_BADGE_TEXT_LEFT_PADDING_INC 12 54
-#define NAVIFRAME_BADGE_TEXT_RIGHT_PADDING_INC 10 54
-#define NAVIFRAME_BADGE_TEXT_H_INC 34
-#define NAVIFRAME_BADGE_TEXT_MIN_W_INC 30
-#define NAVIFRAME_BADGE_TEXT_MAX_W_INC 60
-#define NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC 54 54
-#define NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC 26 26 0 0
-#define NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC 112 0
-#define NAVIFRAME_ICON_PADDING_INC 77 0
-#define NAVIFRAME_TITLE_TEXT_COLOR_INC 250 250 250 255
-#define NAVIFRAME_TITLE_STYLE_COLOR_INC "#FAFAFA"
-#define NAVIFRAME_SUBTITLE_TEXT_COLOR_INC 250 250 250 255
-#define NAVIFRAME_SUBTITLE_FONT_SIZE_INC 32
-#define NAVIFRAME_LANDSCAPE_SUBTITLE_FONT_SIZE_INC 28
-#define NAVIFRAME_SUBTITLE_H_INC 37
-#define NAVIFRAME_LANDSCAPE_SUBTITLE_H_INC 30
-#define NAVIFRAME_SUBTITLE_TOP_PADDING_H_INC 6
-#define NAVIFRAME_LANDSCAPE_SUBTITLE_TOP_PADDING_H_INC 4
-#define NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC 153 153 153 255
-#define NAVIFRAME_BADGE_TEXT_COLOR_INC 250 250 250 255;
-#define NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC 255 255 255 82
-
-
-#define GL_TITLE_DROPDOWN \
- part { name: "dropdown_padding"; \
- type: RECT; \
- scale: 1; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- align: 0.0 0.0; \
- rel1 { \
- to: "maintitle_text_bg"; \
- relative: 0.0 0.0; \
- } \
- rel2 { \
- to: "maintitle_text_bg"; \
- relative: 0.0 1.0; \
- } \
- min: 6 0; \
- fixed: 1 0; \
- visible: 0; \
- } \
- } \
- part { name: "elm.image.dropdown"; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- visible: 1; \
- min: 200 30; \
- max: 280 150; \
- fixed: 1 1; \
- rel1 { \
- to: "left.padding.text"; \
- relative: 0.0 0.0; \
- } \
- rel2 { \
- to: "right.padding.text"; \
- relative: 1.0 1.0; \
- } \
- image { \
- normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG; \
- border: 8 8 8 8; \
- border_scale: 1; \
- } \
- } \
- description { state: "clicked" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG; \
- visible: 0; \
- } \
- description { state: "focused" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS; \
- } \
- description { state: "hide" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "focus_image"; \
- scale: 1; \
- mouse_events: 0; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- min: 54 54; \
- max: 54 54; \
- visible: 0; \
- rel1.to : "elm.image.dropdown"; \
- rel2.to : "elm.image.dropdown"; \
- image { \
- normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_FOCUS; \
- border: 8 8 8 8; \
- border_scale: 1; \
- } \
- } \
- description { state: "focused" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- description { state: "hide" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "left.padding.text"; \
- type: RECT; \
- mouse_events: 0; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- visible: 0; \
- fixed: 1 0; \
- min: 16 54; \
- rel1 { \
- to: "dropdown_padding"; \
- relative: 0.0 0.0; \
- } \
- rel2 { \
- to: "dropdown_padding"; \
- relative: 0.0 1.0; \
- } \
- align: 0.0 0.0; \
- } \
- } \
- part { name: "right.padding.text"; \
- type: RECT; \
- mouse_events: 0; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- visible: 0; \
- fixed: 1 1; \
- min: 12 0; \
- rel1 { \
- to_x: "arrow_icon"; \
- to_y: "elm.text.dropdown"; \
- relative: 1.0 0.0; \
- } \
- rel2 { \
- to_x: "arrow_icon"; \
- to_y: "elm.text.dropdown"; \
- relative: 1.0 1.0; \
- } \
- align: 0.0 0.0; \
- } \
- } \
- part { name: "elm.text.dropdown"; \
- type: TEXT; \
- mouse_events: 0; \
- effect: FAR_SHADOW BOTTOM; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- visible: 1; \
- rel1 { \
- to: "left.padding.text"; \
- relative: 1.0 0.0; \
- } \
- rel2 { \
- to: "left.padding.text"; \
- relative: 1.0 1.0; \
- } \
- min: 30 0; \
- fixed: 1 0; \
- align: 0.0 0.5; \
- color: 250 250 250 255; \
- color2: 0 0 0 192; \
- text { \
- font: "Tizen:style=Regular"; \
- size: 20; \
- min: 1 0; \
- text_class: "tizen"; \
- } \
- } \
- description { state: "visible" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- description { state: "clicked" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- color: 250 250 250 255; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- description { state: "focused" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- color: 250 250 250 255; \
- } \
- description { state: "hide" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "arrow_icon_padding"; \
- scale: 1; \
- mouse_events: 0; \
- type: RECT; \
- description { state: "default" 0.0; \
- min: 6 5; \
- fixed: 1 1; \
- align: 0.0 0.5; \
- rel1 { \
- relative: 1.0 0.0; \
- to: "elm.text.dropdown"; \
- } \
- visible: 0; \
- rel2.to: "elm.text.dropdown"; \
- } \
- } \
- part { name: "arrow_icon_bottom_padding"; \
- scale: 1; \
- mouse_events: 0; \
- type: RECT; \
- description { state: "default" 0.0; \
- min: 18 26; \
- max: 18 26; \
- fixed: 1 1; \
- align: 0.0 1.0; \
- rel1 { \
- relative: 1.0 1.0; \
- to_x: "arrow_icon_padding"; \
- to_y: "elm.text.dropdown"; \
- } \
- rel2 { \
- relative: 1.0 1.0; \
- to_x: "arrow_icon_padding"; \
- to_y: "elm.text.dropdown"; \
- } \
- visible: 0; \
- } \
- } \
- part { name: "arrow_icon"; \
- scale: 1; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- min: 18 18; \
- max: 18 18; \
- fixed: 1 1; \
- align: 0.0 1.0; \
- rel1 { \
- relative: 1.0 0.0; \
- to_x: "arrow_icon_padding"; \
- to_y: "arrow_icon_bottom_padding"; \
- offset: 0 6; \
- } \
- rel2 { \
- relative: 1.0 0.0; \
- to_x: "arrow_icon_padding"; \
- to_y: "arrow_icon_bottom_padding"; \
- } \
- image.normal: GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW; \
- } \
- description { state: "clicked" 0.0; \
- inherit: "default" 0.0; \
- image.normal: GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW_PRESS; \
- } \
- description { state: "hide" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "access.title"; \
- type: RECT; \
- scale: 1; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- fixed: 1 1; \
- rel1.to: "elm.image.dropdown"; \
- rel2.to: "elm.image.dropdown"; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "over2"; \
- type: RECT; \
- scale: 1; \
- repeat_events: 1; \
- ignore_flags: ON_HOLD; \
- description { state: "default" 0.0; \
- rel1.to: "elm.image.dropdown"; \
- rel2.to: "elm.image.dropdown"; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "over3"; \
- type: RECT; \
- scale: 1; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- rel1.to: "elm.image.dropdown"; \
- rel2.to: "elm.image.dropdown"; \
- color: 0 0 0 0; \
- } \
- } \
- part { name: "disabler"; \
- type: RECT; \
- scale: 1; \
- description { state: "default" 0.0; \
- rel1.to: "elm.image.dropdown"; \
- rel2.to: "elm.image.dropdown"; \
- color: 0 0 0 0; \
- visible: 0; \
- } \
- description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- }
-
-#define GL_TITLE_DROPDOWN_PGS \
- program { name: "button_click"; \
- signal: "mouse,down,1"; \
- source: "over2"; \
- action: SIGNAL_EMIT "elm,action,press" ""; \
- after: "button_click_anim"; \
- } \
- program { name: "button_click_anim"; \
- action: STATE_SET "clicked" 0.0; \
- target: "elm.image.dropdown"; \
- target: "elm.text.dropdown"; \
- target: "arrow_icon"; \
- } \
- program { name: "button_double_click"; \
- signal: "mouse,down,1,double"; \
- source: "over2"; \
- after: "button_click_anim"; \
- } \
- program { name: "button_unpress"; \
- action: SIGNAL_EMIT "elm,action,unpress" ""; \
- } \
- program { name: "button_mouseout_clicked"; \
- signal: "mouse,up,1"; \
- source: "over3"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"elm.text.dropdown", st, 30, vl); \
- if (!strcmp(st, "clicked") || !strcmp(st, "focused")) \
- { \
- emit("elm,action,default,text,set", ""); \
- set_state(PART:"elm.text.dropdown", "visible", 0.0); \
- } \
- if (get_int(button_state) != BUTTON_STATE_DISABLED) \
- set_state(PART:"elm.image.dropdown", "default", 0.0); \
- set_state(PART:"arrow_icon", "default", 0.0); \
- } \
- after: button_unpress; \
- } \
- program { name: "touch_snd"; \
- signal: "mouse,clicked,1"; \
- source: "over2"; \
- action: PLAY_SAMPLE "touch_sound" 1.0; \
- after: button_unclick3; \
- } \
- program { name: "button_unclick3"; \
- action: SIGNAL_EMIT "elm,action,click" ""; \
- } \
- program { name: "disable"; \
- signal: "elm,state,disabled"; \
- source: "elm"; \
- action: STATE_SET "disabled" 0.0; \
- target: "elm.image.dropdown"; \
- target: "disabler"; \
- after: "disable_text"; \
- } \
- program { name: "disable_text"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"elm.text.dropdown", st, 30, vl); \
- if (!strcmp(st, "visible")) \
- set_state(PART:"elm.text.dropdown", "disabled_visible", 0.0); \
- else \
- set_state(PART:"elm.text.dropdown", "disabled", 0.0); \
- set_int(button_state, BUTTON_STATE_DISABLED); \
- } \
- } \
- program { name: "enable"; \
- signal: "elm,state,enabled"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "elm.image.dropdown"; \
- target: "disabler"; \
- after: "enable_text"; \
- } \
- program { name: "enable_text"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"elm.text.dropdown", st, 30, vl); \
- if (!strcmp(st, "disabled_visible")) \
- set_state(PART:"elm.text.dropdown", "visible", 0.0); \
- else \
- set_state(PART:"elm.text.dropdown", "default", 0.0); \
- set_int(button_state, BUTTON_STATE_ENABLED); \
- } \
- } \
- program { name: "expn_title_show"; \
- signal: "elm,action,dropdown,show"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "elm.image.dropdown"; \
- target: "focus_image"; \
- target: "elm.text.dropdown"; \
- target: "arrow_icon"; \
- target: "elm.text.title"; \
- after: enable; \
- } \
- program { name: "expn_title_hide"; \
- signal: "elm,action,dropdown,hide"; \
- source: "elm"; \
- action: STATE_SET "hide" 0.0; \
- target: "elm.image.dropdown"; \
- target: "focus_image"; \
- target: "elm.text.dropdown"; \
- target: "arrow_icon"; \
- target: "elm.text.title"; \
- after: disable; \
- } \
- program { name: "action_focus"; \
- signal: "elm,action,focus_highlight,show"; \
- source: "elm"; \
- action: STATE_SET "focused" 0.0; \
- target: "focus_image"; \
- } \
- program { name: "action_unfocus"; \
- signal: "elm,action,focus_highlight,hide"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "focus_image"; \
- }
-
-
-
-group {
- name: "gl_naviframe_expanded_title";
- GL_RES_IMG(GALLERY_EDC_IMAGE_TITLE_BG);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS);
- GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_FOCUS);
- GL_RES_IMG(GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW_PRESS);
- GL_RES_IMG(GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW);
- GL_RES_IMG(GALLERY_EDC_IMAGE_BACK_BUTTON);
-
- script {
- public button_state = BUTTON_STATE_ENABLED;
- public landscape = 0; //Landscape mode status
- }
-
- parts {
- part { name: "base";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 NAVIFRAME_TITLE_H_INC;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- align: 0.0 0.0;
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- }
- }
- part { name: "title_bg";
- type: IMAGE;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 NAVIFRAME_TITLE_H_INC;
- max: -1 NAVIFRAME_TITLE_H_INC;
- align: 0.0 0.0;
- fixed: 0 1;
- rel1 { relative: 0.0 0.0; to: "base"; }
- rel2 { relative: 1.0 0.0; to: "base"; }
- image {
- normal: GALLERY_EDC_IMAGE_TITLE_BG;
- border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
- border_scale: 1;
- }
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- }
- }
- part { name: "title_right_padding";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: NAVIFRAME_PADDING_INC;
- fixed: 1 0;
- align: 1.0 0.0;
- rel1 { relative: 1.0 0.0; to: "divider2"; }
- rel2 { relative: 1.0 1.0; to: "divider2"; }
- visible: 0;
- }
- description { state: "title_left_btn_set" 0.0;
- inherit: "default" 0.0;
- rel1 { relative: 1.0 0.0; to: "divider1"; }
- rel2 { relative: 1.0 1.0; to: "divider1"; }
- }
- }
- part { name: "title_left_padding";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 10 0;
- fixed: 1 0;
- align: 0.0 0.0;
- rel1 { relative: 0.0 0.0; to: "title_bg"; }
- rel2 { relative: 0.0 1.0; to: "title_bg"; }
- visible: 0;
- }
- description { state: "icon" 0.0;
- inherit: "default" 0.0;
- min: NAVIFRAME_ICON_PADDING_INC;
- }
- }
- part { name: "title_left_padding2";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 26 0;
- fixed: 1 0;
- align: 0.0 0.0;
- rel1 { relative: 0.0 0.0; to: "title_bg"; }
- rel2 { relative: 0.0 1.0; to: "title_bg"; }
- visible: 0;
- }
- description { state: "icon" 0.0;
- inherit: "default" 0.0;
- min: NAVIFRAME_ICON_PADDING_INC;
- }
- }
- part { name: "title_text_bg";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- min: 0 NAVIFRAME_TITLE_TEXT_BG_H_INC;
- max: -1 NAVIFRAME_TITLE_TEXT_BG_H_INC;
- fixed: 0 1;
- rel1 { relative: 1.0 0.0; to_x: "title_left_padding"; to_y: "title_bg"; }
- rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_bg"; }
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC;
- max: -1 NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC;
- }
- }
- part { name: "maintitle_text_bg";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
- rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_text_bg"; }
- }
- }
- part { name: "maintitle_text_bg2";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- rel1 { relative: 1.0 0.0; to_x: "title_left_padding2"; to_y: "title_text_bg"; }
- rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_text_bg"; }
- }
- }
- part { name: "elm.title.text";
- type: TEXT;
- effect: FAR_SHADOW BOTTOM;
- scale: 1;
- description { state: "default" 0.0;
- text { font: "Tizen:style=normal";
- size: NAVIFRAME_TITLE_FONT_SIZE_INC;
- size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_TITLE_FONT_SIZE_INC;
- fit: 1 0;
- min: 0 0;
- max: 1 0;
- align: 0.0 0.5;
- text_class: "tizen";
- }
- color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
- color3: 0 0 0 255;
- align: 0.5 0.5;
- rel1.to: "title_bg";
- rel2.to: "title_bg";
- visible: 1;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "padding_before_text";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
- rel2 { relative: 0.0 1.0; to: "title_text_bg"; }
- fixed: 1 0;
- min: NAVIFRAME_PADDING2_INC;
- visible: 0;
- }
- }
- part { name: "divider1";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 1;
- color: NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC;
- rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
- rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
- align: 1.0 0.5;
- visible : 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 2 64;
- max: 2 64;
- visible : 0;
- }
- }
- part { name: "title_left_btn";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
- fixed: 1 1;
- align: 1.0 0.5;
- rel1 { relative: 0.0 0.0; to: "divider2"; }
- rel2 { relative: 0.0 1.0; to: "divider2"; }
- visible : 0;
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
- }
- }
- part { name: "divider2";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 1;
- color: NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC;
- rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
- rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
- align: 1.0 0.5;
- visible : 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 2 64;
- max: 2 64;
- visible : 0;
- }
- }
- part { name: "elm.swallow.icon";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- max: NAVIFRAME_ICON_SIZE_INC;
- fixed: 1 1;
- rel1 { relative: 0.0 0.0; to: "padding_before_text"; }
- rel2 { relative: 0.0 1.0; to: "padding_before_text"; }
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- align: 1.0 0.5;
- }
- }
- part { name: "title_right_btn";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
- align: 1.0 0.5;
- fixed: 1 1;
- rel1 { relative: 1.0 0.0; to: "title_bg"; }
- rel2 { relative: 1.0 1.0; to: "title_bg"; }
- visible : 0;
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
- }
- }
- }
- programs {
- program { name: "title_show";
- signal: "elm,state,title,show";
- source: "elm";
- script {
- if (!get_int(landscape)) {
- set_state(PART:"base", "default", 0.0);
- set_state(PART:"title_bg", "default", 0.0);
- } else {
- set_state(PART:"base", "landscape", 0.0);
- set_state(PART:"title_bg", "landscape", 0.0);
- }
- }
- }
- program {
- name: "change_to_landscape";
- script {
- if (!get_int(landscape)) {
- set_state(PART:"base", "landscape", 0.0);
- set_state(PART:"title_text_bg", "landscape", 0.0);
- set_state(PART:"title_left_btn", "landscape", 0.0);
- set_state(PART:"title_right_btn", "landscape", 0.0);
-
- new st[31];
- new Float:vl;
- get_state(PART:"title_bg", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"title_bg", "landscape", 0.0);
-
- set_int(landscape, 1);
- }
- }
- }
- program {
- name: "change_to_portrait";
- script {
- if (get_int(landscape)) {
- set_state(PART:"base", "default", 0.0);
- set_state(PART:"title_text_bg", "default", 0.0);
- set_state(PART:"title_left_btn", "default", 0.0);
- set_state(PART:"title_right_btn", "default", 0.0);
-
- new st[31];
- new Float:vl;
- get_state(PART:"title_bg", st, 30, vl);
- if (!strcmp(st, "landscape"))
- set_state(PART:"title_bg", "default", 0.0);
-
- set_int(landscape, 0);
- }
- }
- }
- program { name: "landscape_mode";
- source: "elm";
- signal: "elm,state,orient,90";
- after: "change_to_landscape";
- }
- program { name: "landscape_mode2";
- source: "elm";
- signal: "elm,state,orient,270";
- after: "change_to_landscape";
- }
- program { name: "portrait_mode";
- source: "elm";
- signal: "elm,state,orient,0";
- after: "change_to_portrait";
- }
- program { name: "portrait_mode2";
- source: "elm";
- signal: "elm,state,orient,180";
- after: "change_to_portrait";
- }
- program { name: "title_left_btn_show";
- signal: "elm,state,title_left_btn,show";
- source: "elm";
- script {
- set_state(PART:"divider1", "visible", 0.0);
- set_state(PART:"title_right_padding", "title_left_btn_set", 0.0);
- }
- }
- program { name: "title_left_btn_hide";
- signal: "elm,state,title_left_btn,hide";
- source: "elm";
- script {
- set_state(PART:"divider1", "default", 0.0);
- set_state(PART:"title_right_padding", "default", 0.0);
- }
- }
- program { name: "title_right_btn_show";
- signal: "elm,state,title_right_btn,show";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "divider2";
- }
- program { name: "title_right_btn_hide";
- signal: "elm,state,title_right_btn,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "divider2";
- }
-
- }
- }
- group { name : "title_bar";
- parts {
- part{ name : "bg";
- type: RECT;
- description{
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- color: 61 184 203 255;
- }
- }
- part { name: "elm.title.text";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- text {
- size : 20;
- align: 0.5 0.5;
- }
- color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
- color3: 0 0 0 255;
- align: 0.5 0.5;
- rel1.relative: 0.3 0.0;
- rel1.to: "bg";
- rel2.relative: 0.7 1.0;
- rel2.to: "bg";
- visible: 1;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "title_btn_left";
- type: RECT;
- mouse_events: 1;
- repeat_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 61 184 203 255;
- rel1 { relative: 0.0 0.0; to: "bg"; }
- rel2 { relative: 0.3 1.0; to: "bg"; }
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "pressed" 0.0;
- inherit: "visible" 0.0;
- color: 46 140 154 255;
- }
- }
- part { name: "title_btn_right";
- type: RECT;
- mouse_events: 1;
- repeat_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 61 184 203 255;
- rel1 { relative: 0.7 0.0; to: "bg"; }
- rel2 { relative: 1.0 1.0; to: "bg"; }
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "pressed" 0.0;
- inherit: "visible" 0.0;
- color: 46 140 154 255;
- }
- }
- part { name: "title_left_text";
- type: TEXT;
- effect: FAR_SHADOW BOTTOM;
- scale: 1;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.148 0.0;
- rel1.to: "title_btn_left";
- rel2.relative: 1.0 1.0;
- rel2.to: "title_btn_left";
- visible: 0;
- text {
- text: "CANCEL";
- size: 20;
- align: 0.0 0.5;
- }
- color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "title_right_text";
- type: TEXT;
- mouse_events: 1;
- repeat_events: 1;
- effect: FAR_SHADOW BOTTOM;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "title_btn_right";
- rel2.relative: 0.89 1.0;
- rel2.to: "title_btn_right";
- visible: 0;
- text {
- text: "DONE";
- size: 20;
- align: 1.0 0.5;
- }
- color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.swallow.left";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "title_btn_left";
- rel2.relative: 1.0 1.0;
- rel2.to: "title_btn_left";
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "title_image_btn_left";
- type: RECT;
- mouse_events: 1;
- repeat_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color:61 184 203 255;
- rel1 { relative: 0.0 0.0; to: "left_image"; }
- rel2 { relative: 1.0 1.0; to: "left_image"; }
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "pressed" 0.0;
- inherit: "visible" 0.0;
- color: 46 140 154 255;
- }
- }
- part { name: "left_image";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "elm.swallow.left";
- rel2.relative: 0.5 1.0;
- rel2.to: "elm.swallow.left";
- visible: 0;
- color: 0 0 0 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "left_back_image";
- type: IMAGE;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.1 0.3;
- rel1.to: "elm.swallow.left";
- rel2.relative: 0.3 0.7;
- rel2.to: "elm.swallow.left";
- visible: 0;
- image.normal: GALLERY_EDC_IMAGE_BACK_BUTTON;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.swallow.image.left";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "left_image";
- rel2.relative: 1.0 1.0;
- rel2.to: "left_image";
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.swallow.right";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel1.to: "title_btn_right";
- rel2.relative: 1.0 1.0;
- rel2.to: "title_btn_right";
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs{
- program{
- name : "press_left";
- signal: "mouse,down,1";
- source: "title_btn_left";
- action: STATE_SET "pressed" 0.0;
- target: "title_btn_left";
- }
- program{
- name : "unpress_left";
- signal: "mouse,up,1";
- source: "title_btn_left";
- action: STATE_SET "visible" 0.0;
- target: "title_btn_left";
- }
- program{
- name : "press_right";
- signal: "mouse,down,1";
- source: "title_btn_right";
- action: STATE_SET "pressed" 0.0;
- target: "title_btn_right";
- }
- program{
- name : "unpress_right";
- signal: "mouse,up,1";
- source: "title_btn_right";
- action: STATE_SET "visible" 0.0;
- target: "title_btn_right";
- }
- program{
- name : "press_image_left";
- signal: "mouse,down,1";
- source: "title_image_btn_left";
- action: STATE_SET "pressed" 0.0;
- target: "title_image_btn_left";
- }
- program{
- name : "unpress_image_left";
- signal: "mouse,up,1";
- source: "title_image_btn_left";
- action: STATE_SET "visible" 0.0;
- target: "title_image_btn_left";
- }
- program {
- name: "button_show";
- signal: "elm,button,state,visible";
- source: "elm";
- script {
- set_state(PART:"title_btn_left", "visible", 0.0);
- set_state(PART:"title_btn_right", "visible", 0.0);
- set_state(PART:"title_left_text", "visible", 0.0);
- set_state(PART:"title_right_text", "visible", 0.0);
- set_state(PART:"elm.swallow.left", "visible", 0.0);
- set_state(PART:"title_image_btn_left", "default", 0.0);
- set_state(PART:"left_back_image", "hidden", 0.0);
- set_state(PART:"elm.swallow.image.left", "default", 0.0);
- set_state(PART:"elm.swallow.right", "visible", 0.0);
- }
- }
- program {
- name: "right_button_hide";
- signal: "elm,button,state,hidden";
- source: "elm";
- script {
- set_state(PART:"title_btn_right", "hidden", 0.0);
- set_state(PART:"title_right_text", "hidden", 0.0);
- set_state(PART:"elm.swallow.right", "hidden", 0.0);
- }
- }
- program {
- name: "left_button_show";
- signal: "elm,button,state,show";
- source: "elm";
- script {
- set_state(PART:"title_image_btn_left", "visible", 0.0);
- set_state(PART:"left_back_image", "visible", 0.0);
- set_state(PART:"elm.swallow.image.left", "visible", 0.0);
- }
- }
- program {
- name: "left_button_hide";
- signal: "elm,button,state,hide";
- source: "elm";
- script {
- set_state(PART:"title_image_btn_left", "default", 0.0);
- set_state(PART:"left_back_image", "default", 0.0);
- set_state(PART:"elm.swallow.image.left", "default", 0.0);
- }
- }
-
- program {
- name: "button_hide";
- signal: "elm,button,state,default";
- source: "elm";
- script {
- set_state(PART:"title_btn_left", "default", 0.0);
- set_state(PART:"title_btn_right", "default", 0.0);
- set_state(PART:"title_left_text", "default", 0.0);
- set_state(PART:"title_right_text", "default", 0.0);
- set_state(PART:"elm.swallow.left", "default", 0.0);
- set_state(PART:"elm.swallow.right", "default", 0.0);
- }
- }
- }
- }
-
-#undef BUTTON_STATE_ENABLED
-#undef BUTTON_STATE_DISABLED
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-/* 720/2 */
-#define ALBUM_ITEM_W 360
-/* 720/2 */
-#define ALBUM_ITEM_H 360
-
-#define CHECK_GAP_L (0)
-#define CHECK_GAP_R (0)
-#define CHECK_GAP_T (15)
-
-#define ALBUM_ICON_GAP_L (0)
-#define ALBUM_ICON_GAP_R (0)
-#define ALBUM_ICON_GAP_T (0)
-#define ALBUM_ICON_GAP_B (0)
-
-#define ALBUM_ICON_W (ALBUM_ITEM_W-ALBUM_ICON_GAP_L-ALBUM_ICON_GAP_R)
-#define ALBUM_ICON_H (ALBUM_ITEM_H-ALBUM_ICON_GAP_T-ALBUM_ICON_GAP_B)
-
-#define ALBUM_RENAME_R_PAD 2
-#define ALBUM_RENAME_B_PAD 2
-
-#define ALBUM_TEXT_BG_W 195
-/* 7 + 31 + 31*/
-#define ALBUM_TEXT_BG_H 70
-#define ALBUM_TEXT_GAP_L 10
-#define ALBUM_TEXT_GAP_R 8
-#define ALBUM_TEXT_GAP_T 6
-#define ALBUM_TEXT_SNS_X 60
-#define ALBUM_TEXT_DATE_H 31
-
-#define ALBUM_TYPE_GAP_T 8
-
-#define ALBUM_NAME_COLOR_INC 0 0 0 255
-#define ALBUM_COUNT_SHADOW_COLOR_INC 0 0 0 0
-
-#define ALBUM_NAME_TEXT_SIZE 18
-#define SPLIT_ALBUM_NAME_TEXT_SIZE 10
-
-#define ALBUM_COUNT_COLOR_INC 0 0 0 255
-#define ALBUM_COUNT_TEXT_SIZE 15
-
-#define ALBUM_TYPE_ICON_W 48
-#define ALBUM_TYPE_ICON_H 48
-
-#define ALBUM_PBAR_W 183
-#define ALBUM_PBAR_H 0
-#define ALBUM_PBAR_GAP_L 6
-#define ALBUM_PBAR_GAP_T 8
-
-#define ALBUM_RENAME_BTN_W 63
-#define ALBUM_RENAME_BTN_H 63
-
-#define ALBUM_CHECKBOX_W 10
-#define ALBUM_CHECKBOX_H 10
-#define ALBUM_CHECKBOX_GAP_L 6
-#define ALBUM_CHECKBOX_GAP_T (6+4)
-
-#define PARTS_PADDING_LEFT(param_padding_name, param_padding_size ) \
- part { name: param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: param_padding_size 0; \
- fixed: 1 0; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- rel2.offset: -35 0; \
- align: 0.0 0.0; \
- } \
- }
-
-#define PARTS_PADDING_RIGHT(param_padding_name, param_padding_size ) \
- part { name: param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { state: "default" 0.0; \
- min: param_padding_size 0; \
- max: param_padding_size 0; \
- fixed: 1 0; \
- visible: 0; \
- rel1.relative: 1.0 0.0; \
- align: 1.0 0.0; \
- } \
- }
-#define PARTS_PADDING_TOP(param_padding_name, param_padding_size ) \
- part { name: param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 param_padding_size; \
- fixed: 0 1; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- align: 1.0 0.0; \
- } \
- }
-
-#define GL_ALBUM_BG \
- part { \
- name: "bg"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 0.0 0.0; } \
- rel2 { relative: 1.0 1.0; } \
- } \
- }
-#define GL_ALBUM_BG_IMAGE \
- part { \
- name: "bg_image"; \
- type: IMAGE; \
- description { \
- state: "default" 0.0; \
- visible: 1; \
- rel1 { relative: 0.0 0.0; to:"bg"; } \
- rel2 { relative: 1.0 1.0; to:"bg"; } \
- image.normal: GALLERY_EDC_IMAGE_ALBUM_BG; \
- image.middle: 0; \
- } \
- }
-
-#define GL_ALBUM_ICON_BG \
- part { name: "icon_bg"; \
- type: RECT; \
- mouse_events: 1; \
- repeat_events: 1; \
- scale : 1; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 0.0 0.0; to:"elm.swallow.icon"; } \
- rel2 { relative: 1.0 1.0; to:"elm.swallow.icon"; } \
- } \
- }
-
-#define GL_ALBUM_ICON \
- part { \
- name: "elm.swallow.icon"; \
- type: SWALLOW; \
- clip_to: "elm.icon.clipper"; \
- mouse_events: 1; \
- description { \
- state: "default" 0.0; \
- rel1.to: "elm.icon.clipper"; \
- rel2.to: "elm.icon.clipper"; \
- } \
- } \
- part { \
- name: "elm.icon.clipper"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0 0; offset: 2 2; to:"bg_image"; } \
- rel2 { relative: 1 270/330; offset: -2 -2; to:"bg_image"; } \
- } \
- }
-
-#define GL_ALBUM_LABEL_BG \
- part { \
- name: "label_bg"; \
- type: RECT; \
- mouse_events: 1; \
- repeat_events: 1; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 0 270/330; to:"bg_image"; } \
- rel2 { relative: 1 1; to:"bg_image"; } \
- } \
- }
-
-#define GL_ALBUM_TYPE_ICON \
- part { \
- name: "elm.swallow.type_icon"; \
- type: RECT; \
- mouse_events: 1; \
- repeat_events: 1; \
- description { \
- state: "default" 0.0; \
- align: 0.5 0.5; \
- rel1 { relative: (ALBUM_TEXT_GAP_L+ALBUM_ICON_GAP_L)/ALBUM_ICON_W 0.0; to: "label_bg"; } \
- rel2 { relative: (ALBUM_TYPE_ICON_W+ALBUM_TEXT_GAP_L+ALBUM_ICON_GAP_L)/ALBUM_ICON_W 1.0; to: "label_bg"; } \
- color: 0 0 0 0 ; \
- } \
- }
-
-#define GL_ALBUM_SD_ICON \
- part { \
- name: "elm.swallow.sd_icon"; \
- type: SWALLOW; \
- mouse_events: 1; \
- repeat_events: 1; \
- description { \
- state: "default" 0.0; \
- align: 0.5 0.5; \
- rel1 { relative: 0.82 0.82; to: "elm.icon.clipper"; } \
- rel2 { relative: 0.98 0.98; to: "elm.icon.clipper"; } \
- } \
- }
-
-#define GL_ALBUM_COUNT \
- part { \
- name: "elm.pad.right_count"; \
- type: RECT; \
- mouse_events: 1; \
- repeat_events: 1; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 1.0 0.0; to: "label_bg"; } \
- rel2 { relative: 1.0 1.0; to: "label_bg"; } \
- min: 20 0; \
- max: 20 0; \
- fixed: 1 0; \
- align: 1.0 0.0; \
- } \
- } \
- part { \
- name: "elm.text.count"; \
- type: TEXT; \
- mouse_events: 1; \
- effect: FAR_SHADOW TOP; \
- repeat_events: 1; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- visible: 1; \
- rel1 { relative: 0.0 0.0; to_x: "elm.pad.right_count"; to_y: "label_bg";} \
- rel2 { relative: 0.0 1.0; to_x: "elm.pad.right_count"; to_y: "label_bg";} \
- min: 10 0; \
- fixed: 1 0; \
- align: 1.0 0.5; \
- color: ALBUM_COUNT_COLOR_INC; \
- color2: ALBUM_COUNT_SHADOW_COLOR_INC; \
- text { \
- font: "Tizen:style=Bold"; \
- text_class: "tizen"; \
- size: ALBUM_COUNT_TEXT_SIZE; \
- min: 1 0; \
- align: 1.0 0.5; \
- } \
- } \
- }
-
-#define GL_ALBUM_NAME \
- part { \
- name: "elm.text.name"; \
- type: TEXT; \
- mouse_events: 1; \
- repeat_events: 1; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0.0 1.0; to: "elm.icon.clipper"; } \
- rel2 { relative: 1.0 1.0; offset: 0 48; to: "elm.icon.clipper"; } \
- color: ALBUM_NAME_COLOR_INC; \
- align: 0.5 0.5; \
- text { \
- font: "Tizen:style=Bold"; \
- size: ALBUM_NAME_TEXT_SIZE; \
- align: 0.5 0.5; \
- } \
- } \
- }
-
-#define GL_ALBUM_PBAR \
- part { \
- name: "elm.swallow.progressbar"; \
- type: SWALLOW; \
- mouse_events: 1; \
- repeat_events: 1; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- align: 0.0 1.0; \
- rel1 { relative: 0.0 (ALBUM_ICON_H-ALBUM_PBAR_H)/ALBUM_ICON_H; to: "elm.swallow.icon"; offset: -1 0; } \
- rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; offset: -2 0; } \
- } \
- }
-
-#define GL_ALBUM_CHECK_GRID \
- part { \
- name: "elm.swallow.check_grid"; \
- type: SWALLOW; \
- mouse_events: 1; \
- repeat_events: 1; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0.0 0.0; to:"elm.swallow.icon"; } \
- rel2 { relative: 1.0 1.0; to:"elm.swallow.icon"; } \
- } \
- }
-
-#define GL_ALBUM_CHECK \
- part { \
- name: "elm.swallow.check"; \
- mouse_events: 1; \
- type: SWALLOW; \
- description { \
- state: "default" 0.0; \
- rel1 {relative: 1.0 1.0; to_x: "padding.check.left"; to_y: "padding.check.top"; }\
- rel2 {relative: 1.0 1.0; to_x: "padding.check.right"; to_y: "padding.check.bottom"; }\
- } \
- }
-
-#define GL_ALBUM_DIM \
- part { \
- name: "elm.swallow.dim"; \
- type: SWALLOW; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; } \
- rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; } \
- } \
- }
-
-group {
- name: "elm/gengrid/item/gallery/albums_view/default";
-
- data.item: "texts" "elm.text.date elm.text.count";
- data.item: "contents" "elm.swallow.icon elm.swallow.check elm.swallow.type_icon elm.swallow.sd_icon elm.swallow.progressbar elm.swallow.check_grid elm.swallow.dim elm.text.name.swallow";
- images {
- image: GALLERY_EDC_IMAGE_ALBUM_BG COMP;
- image: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
- }
- parts {
- PARTS_PADDING_LEFT("padding.check.left", CHECK_GAP_L)
- PARTS_PADDING_LEFT("padding.check.right", CHECK_GAP_L+ALBUM_CHECKBOX_W)
- PARTS_PADDING_RIGHT("padding.rename.left", CHECK_GAP_R+ALBUM_RENAME_BTN_W)
- PARTS_PADDING_RIGHT("padding.rename.right", CHECK_GAP_R)
- PARTS_PADDING_TOP("padding.rename.top", CHECK_GAP_T)
- PARTS_PADDING_TOP("padding.rename.bottom", CHECK_GAP_T+ALBUM_RENAME_BTN_H)
- PARTS_PADDING_TOP("padding.check.top", CHECK_GAP_T)
- PARTS_PADDING_TOP("padding.check.bottom", CHECK_GAP_T+ALBUM_CHECKBOX_H)
- part { name: "padding.top";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- align: 0.0 0.0;
- }
- description {
- state: "show" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- min: 0 0;
- max: 0 0;
- fixed: 0 1;
- rel2 { relative: 1.0 0.0;}
- align: 0.0 0.0;
- }
- }
- GL_ALBUM_BG
- part { name: "focus_bg";
- type: IMAGE;
- mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- visible: 0;
- image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS;
- image.border: 13 13 13 13;
- rel1 { relative: 0.0 0.0; to: "bg_image"; }
- rel2 { relative: 1.0 270/330; to: "bg_image"; }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "bg_color";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1.relative: 0 0;
- rel1.to : "elm.swallow.icon";
- rel1.offset : 2 2;
- rel2.relative: 1 1;
- rel2.to : "elm.swallow.icon";
- color: 230 230 230 255;
- }
- }
- GL_ALBUM_BG_IMAGE
- GL_ALBUM_ICON_BG
- GL_ALBUM_ICON
- GL_ALBUM_LABEL_BG
- GL_ALBUM_TYPE_ICON
- GL_ALBUM_SD_ICON
- GL_ALBUM_COUNT
- part {
- name: "elm.text.name.swallow";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 1.0; to: "elm.icon.clipper"; }
- rel2 { relative: 1.0 1.0; to: "label_bg"; }
- color: ALBUM_NAME_COLOR_INC;
- align: 0.5 0.5;
- }
- }
- GL_ALBUM_PBAR
-
- GL_ALBUM_CHECK_GRID
- GL_GENGRID_FOCUS_EVENT("elm.swallow.icon");
- GL_ALBUM_CHECK
- GL_ALBUM_DIM
- }
- programs {
- program {
- name: "show_top_pad";
- signal: "show_top_pad";
- source: "padding.top";
- action: STATE_SET "show" 0.0;
- target: "padding.top";
- }
- program {
- name: "hide_sd_icon";
- signal: "hide_sd_icon";
- source: "elm.swallow.sd_icon";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.sd_icon";
- }
- GL_GENGRID_FOCUS("focus_event")
- GL_GENGRID_SOUND("focus_event")
- GL_GENGRID_SOUND("elm.swallow.check")
- GL_GENGRID_PLARY_SOUND
- }
-}
-group {
- name: "elm/gengrid/item/gallery/albums_split_view/default";
-
- data.item: "texts" "elm.text.date elm.text.badge";
- data.item: "contents" "elm.swallow.icon elm.swallow.delete.count elm.swallow.check_grid elm.swallow.sd_icon elm.text.name.swallow";
- images {
- image: GALLERY_EDC_IMAGE_ALBUM_BG COMP;
- image: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
- image: GALLERY_EDC_IMAGE_BADGE_BG COMP;
- }
- parts {
- part {
- name: "bg";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1.relative: 0 0;
- rel2.relative: 1 1;
- color: 0 0 0 0;
- }
- }
- part { name: "padding.top";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- align: 0.0 0.0;
- }
- description {
- state: "show" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- min: 0 0;
- max: 0 0;
- fixed: 0 1;
- rel2 { relative: 1.0 0.0;}
- align: 0.0 0.0;
- }
- }
- part { name: "focus_bg";
- type: IMAGE;
- mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- visible: 0;
- image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS;
- image.border: 13 13 13 13;
- rel1 { relative: 0.0 0.0; to: "bg"; }
- rel2 { relative: 1.0 270/330; to: "bg"; }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.icon.clipper";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1 { relative: 0 0; offset: 4 4; to:"bg"; }
- rel2 { relative: 1 270/330; offset: -4 -4; to:"bg"; }
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- clip_to: "elm.icon.clipper";
- mouse_events: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.icon.clipper";
- rel2.to: "elm.icon.clipper";
- }
- }
- part {
- name: "elm.swallow.check_grid";
- type: SWALLOW;
- clip_to: "elm.icon.clipper";
- mouse_events: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.icon.clipper";
- rel2.to: "elm.icon.clipper";
- }
- }
- part {
- name: "elm.text.name.swallow";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 1.0; to: elm.swallow.icon; }
- rel2 { relative: 1.0 1.27; to: elm.swallow.icon; }
- color: 0 0 0 0;
- align: 0.5 0.5;
- }
- }
- part {
- name: "elm.swallow.sd_icon";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- rel1 { relative: 0.78 0.75; to: "elm.swallow.icon"; }
- rel2 { relative: 0.98 0.95; to: "elm.swallow.icon"; }
- }
- }
- part {
- name: "elm.swallow.delete.count";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- rel1 { relative: 0.75 0.05; to: "elm.icon.clipper"; }
- rel2 { relative: 0.95 0.25; to: "elm.icon.clipper"; }
- color: 255 0 0 255;
- }
- }
- part {
- name: "padding.badge";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- align: 1.0 0.0;
- rel1 {
- relative: 1.0 0.0;
- }
- rel2 {
- relative: 1.0 0.03;
- }
- min: 6 2;
- fixed: 1 1;
- visible: 0;
- }
- description {
- state: "default" 0.10;
- inherit: "default" 0.0;
- min: 10 10;
- }
- description {
- state: "default" 0.06;
- inherit: "default" 0.0;
- min: 6 10;
- }
- description {
- state: "default" 0.04;
- inherit: "default" 0.0;
- min: 4 10;
- }
- }
- part {
- name: "elm.image.badge";
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- min: 25 25;
- fixed: 1 1;
- rel1 {
- to: "left.padding.text";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "right.padding.text";
- relative: 1.0 1.0;
- }
- image {
- normal: GALLERY_EDC_IMAGE_BADGE_BG;
- border_scale: 1;
- }
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "left.padding.text";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- min: 5 25;
- rel1 {
- to: "elm.text.badge";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "elm.text.badge";
- relative: 0.0 1.0;
- }
- align: 1.0 0.0;
- }
- }
- part {
- name: "right.padding.text";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- min: 5 25;
- rel1 {
- to: "padding.badge";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "padding.badge";
- relative: 0.0 1.0;
- }
- align: 1.0 0.0;
- }
- }
- part {
- name: "elm.text.badge";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- rel1 {
- to: "right.padding.text";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "right.padding.text";
- relative: 0.0 1.0;
- }
- min: 12 0;
- fixed: 1 0;
- align: 1.0 0.5;
- color: 250 250 250 255;
- text {
- font: "Tizen:style=Bold";
- size: 12;
- min: 1 0;
- text_class: "tizen";
- }
- }
- description {
- state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- GL_GENGRID_FOCUS_EVENT("elm.swallow.icon");
- }
- programs {
- program {
- name: "show_top_pad";
- signal: "show_top_pad";
- source: "padding.top";
- action: STATE_SET "show" 0.0;
- target: "padding.top";
- }
- program { name: "badge_show";
- signal: "elm,state,elm.text.badge,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text.badge";
- target: "elm.image.badge";
- }
- program { name: "badge_hide";
- signal: "elm,state,elm.text.badge,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text.badge";
- target: "elm.image.badge";
- }
- GL_GENGRID_FOCUS("focus_event")
- GL_GENGRID_SOUND("focus_event")
- GL_GENGRID_PLARY_SOUND
- }
-}
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-#define PLACE_GIRD_ITEM_WIDTH 246
-#define PLACE_GIRD_ITEM_HEIGHT 180
-#define PLACE_GIRD_ITEM_VIDEO_X (PLACE_GIRD_ITEM_WIDTH-30)/(2*PLACE_GIRD_ITEM_WIDTH)
-#define PLACE_GIRD_ITEM_VIDEO_Y (PLACE_GIRD_ITEM_HEIGHT-30)/(2*PLACE_GIRD_ITEM_HEIGHT)
-
-//griditem style used in gridview of ctxpopup if marker clicked
-group {
- name: "elm/gengrid/item/gallery_map/default";
- data.item: "contents" "elm.swallow.icon";
- parts {
- part {
- name: "bg";
- type: RECT;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- visible: 1;
- rel1 { relative: 2/PLACE_GIRD_ITEM_WIDTH 0.0; to: "bg";}
- rel2 { relative: (PLACE_GIRD_ITEM_WIDTH-2)/PLACE_GIRD_ITEM_WIDTH 1.0; to: "bg";}
- }
- }
- GL_GENGRID_OVER("elm.swallow.icon");
- }
- programs {
- GL_GENGRID_OVER_SOUND("elm.swallow.icon")
- GL_GENGRID_PLARY_SOUND
- }
-}
-
-group
-{
- name: "elm/gengrid/photoframe/map_default_layout";
- images {
- image: GALLERY_EDC_IMAGE_PLACES_THUMB_BG COMP;
- }
- parts {
- part {
- name: "bg";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- color: 0 0 0 0;
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- }
- description {
- state: "shrink" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- }
- }
- }
-
- programs {
- program {
- name: "mouse_down_shrink";
- signal: "mouse,down,shrink";
- source: "bg";
- action: STATE_SET "shrink" 0.0;
- target: "elm.swallow.icon";
- transition: LINEAR 0.1;
- }
- program {
- name: "mouse_up_expand";
- signal: "mouse,up,expand";
- source: "bg";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.icon";
- transition: LINEAR 0.05;
- after: "shrink,expand,done,icon";
- }
-
- program {
- name: "shrink";
- signal: "shrink";
- source: "bg";
- action: STATE_SET "shrink" 0.0;
- target: "elm.swallow.icon";
- after: "expand";
- transition: LINEAR 0.1;
- }
- program {
- name: "expand";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.icon";
- transition: LINEAR 0.05;
- after: "shrink,expand,done,icon";
- }
- program {
- name: "shrink,expand,done,icon";
- action: SIGNAL_EMIT "shrink,expand,done" "bg";
- }
- }
-}
-
-group
-{
- name: "elm/gengrid/photoframe/map_default_layout_video";
-
- images {
- image: GALLERY_EDC_IMAGE_BUTTON_PLAY COMP;
- image: GALLERY_EDC_IMAGE_PLACES_THUMB_BG COMP;
- }
-
- parts {
- part {
- name: "bg";
- type: RECT;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- color: 0 255 0 0;
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- }
- description {
- state: "shrink" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- }
- }
- part {
- name: "elm.swallow.videoicon";
- type: IMAGE;
- mouse_events: 0;
- repeat_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- align: 0.5 0.5;
- aspect: 1.0 1.0;
- rel1 { relative: PLACE_GIRD_ITEM_VIDEO_X PLACE_GIRD_ITEM_VIDEO_Y;}
- rel2 { relative: PLACE_GIRD_ITEM_VIDEO_X+30/PLACE_GIRD_ITEM_WIDTH PLACE_GIRD_ITEM_VIDEO_X+30/PLACE_GIRD_ITEM_HEIGHT;}
- image.normal: GALLERY_EDC_IMAGE_BUTTON_PLAY;
- }
- }
- }
- programs {
- program {
- name: "mouse_down_shrink";
- signal: "mouse,down,shrink";
- source: "bg";
- action: STATE_SET "shrink" 0.0;
- target: "elm.swallow.icon";
- transition: LINEAR 0.1;
- }
- program {
- name: "mouse_up_expand";
- signal: "mouse,up,expand";
- source: "bg";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.icon";
- transition: LINEAR 0.05;
- after: "shrink,expand,done,icon";
- }
-
- program {
- name: "shrink";
- signal: "shrink";
- source: "bg";
- action: STATE_SET "shrink" 0.0;
- target: "elm.swallow.icon";
- after: "expand";
- transition: LINEAR 0.1;
- }
- program {
- name: "expand";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.icon";
- transition: LINEAR 0.05;
- after: "shrink,expand,done,icon";
- }
- program {
- name: "shrink,expand,done,icon";
- action: SIGNAL_EMIT "shrink,expand,done" "bg";
- }
- }
-}
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define W 180
-#define H 126
-#define W2 240
-#define H2 168
-#define W3 360
-#define H3 252
-#define GAP_W 3
-#define GAP_H 3
-#define THUMB_CHECK_W 10
-#define THUMB_CHECK_H 10
-#define THUMB_CHECK_BORDER_L 1
-#define THUMB_CHECK_BORDER_T 10
-#define MODE_W 64
-#define MODE_H 64
-
-#define BURST_W 16
-#define BURST_H 12
-#define BURST_PAD_R 4
-#define BURST_PAD_L 1
-
-/* Favourites icon boundary size */
-#define FAVOR_ICON_W 30
-#define FAVOR_ICON_H 30
-
-#define THUMBS_PARTS_PADDING_LEFT(param_padding_name, param_padding_size) \
- part { name: param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: param_padding_size 0; \
- fixed: 1 0; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- rel2.offset: -35 0; \
- align: 0.0 0.0; \
- } \
- }
-
-#define THUMBS_PARTS_PADDING_TOP(param_padding_name, param_padding_size) \
- part { name: param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 param_padding_size; \
- fixed: 0 1; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- align: 1.0 0.0; \
- } \
- }
-
-#define PARTS_PADDING_BOT(param_padding_name, param_padding_size) \
- part { name: param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 param_padding_size; \
- fixed: 0 1; \
- visible: 0; \
- rel1.relative: 0.0 1.0; \
- align: 0.0 1.0; \
- } \
- }
-
-#define GL_GRID_PART_ICON_SIZE(w, h) \
- part { \
- name: "elm.swallow.icon"; \
- type: SWALLOW; \
- clip_to: "elm.icon.clipper"; \
- description { \
- state: "default" 0.0; \
- rel1.to: "elm.icon.clipper"; \
- rel2.to: "elm.icon.clipper"; \
- } \
- } \
- part { \
- name: "elm.icon.clipper"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: GAP_W/w GAP_H/h;} \
- rel2 { relative: (w-GAP_W)/w (h-GAP_H)/h;} \
- } \
- }
-
-#define GL_GRID_PART_ICON GL_GRID_PART_ICON_SIZE(W, H)
-
-#define GL_GRID_PART_BG \
- part { \
- name: "bg"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- } \
- }
-
-group {
- name: "elm/gengrid/item/gallery/thumbnail_view/default";
- data.item: "contents" "elm.swallow.icon elm.swallow.mode elm.swallow.check elm_image_open_icon_swallow elm_image_open_icon_swallow_blocker";
- images {
- image : GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
- image: GALLERY_EDC_DELETE_SHOW_IMAGE_BG COMP;
- image: GALLERY_EDC_DELETE_SHOW_IMAGE COMP;
- image: GALLERY_EDC_SD_CARD_ICON COMP;
- }
-
- parts {
- THUMBS_PARTS_PADDING_LEFT("padding.end.left", THUMB_CHECK_BORDER_L);
- THUMBS_PARTS_PADDING_LEFT("padding.end.right", THUMB_CHECK_BORDER_L+THUMB_CHECK_W);
- THUMBS_PARTS_PADDING_TOP("padding.end.top", THUMB_CHECK_BORDER_T);
- THUMBS_PARTS_PADDING_TOP("padding.end.bottom", THUMB_CHECK_BORDER_T+THUMB_CHECK_H);
- THUMBS_PARTS_PADDING_LEFT("padding.end.left2", GAP_W);
- THUMBS_PARTS_PADDING_LEFT("padding.end.right2", GAP_W+MODE_W);
- PARTS_PADDING_BOT("padding.end.top2", GAP_H+MODE_H);
- PARTS_PADDING_BOT("padding.end.bottom2", GAP_H);
- GL_GRID_PART_BG
- part {
- name: "icon_bg";
- type: RECT;
- scale : 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- visible: 0;
- color: 0 0 0 0;
- }
- }
- part {
- name: "icon_bg_color";
- type: RECT;
- scale : 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- visible: 1;
- rel1.to : "elm.swallow.icon";
- rel1.offset : 2 2;
- rel2.to : "elm.swallow.icon";
- color: 230 230 230 255;
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part {
- name: "elm.swallow.mode";
- type: SWALLOW;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- rel1 {relative: 1.0 0.0; to_x: "padding.end.left2"; to_y: "padding.end.top2"; }
- rel2 {relative: 1.0 0.0; to_x: "padding.end.right2"; to_y: "padding.end.bottom2"; }
- }
- }
- GL_GENGRID_FOCUS_BG
- part {
- name: "elm.swallow.check";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- rel1 {relative: 1.0 1.0; to_x: "padding.end.left"; to_y: "padding.end.top"; }
- rel2 {relative: 1.0 1.0; to_x: "padding.end.right"; to_y: "padding.end.bottom"; }
- }
- }
- part {
- name: "sd_card_icon_rect";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- rel1 {relative: 1 1; offset: -42 -42; to: bg; }
- rel2 {relative: 1 1; offset: -8 -8; to: bg; }
- min: 36 36;
- max: 36 36;
- color: 0 0 0 0;
- }
- }
- part {
- name: "sd_card_icon_img";
- type: IMAGE;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- rel1 {relative: 0 0; to: sd_card_icon_rect; }
- rel2 {relative: 1 1; to: sd_card_icon_rect; }
- image.normal: GALLERY_EDC_SD_CARD_ICON;
- }
- description {
- state: "show" 0.0;
- visible: 1;
- rel1 {relative: 0 0; to: sd_card_icon_rect; }
- rel2 {relative: 1 1; to: sd_card_icon_rect; }
- image.normal: GALLERY_EDC_SD_CARD_ICON;
- }
- }
- part {
- name: "elm_image_open_icon_rect";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- rel1 {relative: 0 1; offset: 8 -42; to: bg; }
- rel2 {relative: 0 1; offset: 42 -8; to: bg; }
- min: 36 36;
- max: 36 36;
- color: 0 0 0 0;
- }
- }
- part {
- name: "elm_image_open_icon_bg";
- type: IMAGE;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
- rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
- image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE_BG;
- color : 0 0 0 100;
- }
- description {
- state: "show" 0.0;
- visible: 1;
- rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
- rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
- image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE_BG;
- color : 0 0 0 100;
- }
- }
- part {
- name: "elm_image_open_icon_image";
- type: IMAGE;
- mouse_events: 1;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
- rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
- image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE;
- }
- description {
- state: "show" 0.0;
- visible: 1;
- rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
- rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
- image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE;
- }
- }
- part {
- name: "elm_image_open_icon_swallow_blocker";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events : 0;
- description {
- state: "default" 0.0;
- visible: 1;
- rel1 {relative: 0 0.55; to: bg; }
- rel2 {relative: 0.45 1.0; to: bg; }
- }
- }
- part {
- name: "elm_image_open_icon_swallow";
- type: SWALLOW;
- mouse_events: 1;
- repeat_events : 0;
- description {
- state: "default" 0.0;
- visible: 1;
- rel1 {relative: 0 0.55; to: bg; }
- rel2 {relative: 0.45 1.0; to: bg; }
- }
- }
- }
- programs {
- GL_GENGRID_FOCUS("elm.swallow.icon")
- GL_GENGRID_SOUND("elm.swallow.check")
- GL_GENGRID_SOUND("elm.swallow.icon")
- GL_GENGRID_SOUND("elm_image_open_icon_swallow")
- GL_GENGRID_PLARY_SOUND
- program {
- name: "show_image";
- signal: "show_image_icon";
- source: "elm_image_open_icon_rect";
- action: STATE_SET "show" 0.0;
- target: "elm_image_open_icon_bg";
- target: "elm_image_open_icon_image";
- }
- program {
- name: "hide_image";
- signal: "hide_image_icon";
- source: "elm_image_open_icon_rect";
- action: STATE_SET "default" 0.0;
- target: "elm_image_open_icon_bg";
- target: "elm_image_open_icon_image";
- }
- program {
- name: "show_sd_icon";
- signal: "show_sd_card_icon";
- source: "sd_card_icon_img";
- action: STATE_SET "show" 0.0;
- target: "sd_card_icon_img";
- }
- program {
- name: "hide_sd_icon";
- signal: "hide_sd_card_icon";
- source: "sd_card_icon_img";
- action: STATE_SET "default" 0.0;
- target: "sd_card_icon_img";
- }
- }
-}
-
-group {
- name: "elm/gengrid/item/gallery/date_view/default";
-
- data.item: "texts" "year month";
-
- parts {
- GL_GRID_PART_BG
- part {
- name: "year";
- type: TEXT;
- scale : 1;
- description {
- state: "default" 0.0;
- color: 88 88 88 255;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 24/127;}
- text {
- font: "Tizen:style=Regular";
- text_class: "tizen";
- size: 24;
- align: 1.0 0.5;
- }
- }
- }
-
- part {
- name: "month";
- type: TEXT;
- scale : 1;
- description {
- state: "default" 0.0;
- color: 88 88 88 255;
- rel1 { relative: 0.0 1.0; to: "year"; }
- rel2 { relative: 1.0 48/127; to_x: "year"; }
- text {
- font: "Tizen:style=Bold";
- text_class: "tizen";
- size: 26;
- align: 1.0 0.5;
- }
- }
- }
- }
-}
-
-#define GL_GENGRID_PHOTOFRAME_DEFAULT(NAME, w, h) \
-group \
-{ \
- name: "elm/gengrid/photoframe/"NAME; \
- parts { \
- GL_GRID_PART_BG \
- GL_GRID_PART_ICON_SIZE(w, h) \
- } \
-}
-
-GL_GENGRID_PHOTOFRAME_DEFAULT("layout", W, H)
-GL_GENGRID_PHOTOFRAME_DEFAULT("layout2", W2, H2)
-GL_GENGRID_PHOTOFRAME_DEFAULT("layout3", W3, H3)
-
-#define GL_GENGRID_BURSTSHOT(icon_name, w, h, n, p1x, p1y, p2x, p2y) \
- part { \
- name: icon_name".bg"; \
- type: IMAGE; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: (GAP_W+n*BURST_W)/w (GAP_H+n*BURST_H)/h;} \
- rel2 { relative: (w-GAP_W-(2-n)*BURST_W)/w (h-GAP_H-(2-n)*BURST_H)/h;} \
- image {normal: GALLERY_EDC_IMAGE_BUSTSHOT; border: 5 5 5 5;} \
- } \
- } \
- part { \
- name: icon_name".bg2"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- color: GALLERY_EDC_COLOR_BG; \
- rel1 { relative: 0.0 0.0; to: icon_name".clipper"; } \
- rel2 { relative: 1.0 1.0; to: icon_name".clipper"; } \
- } \
- } \
- part { \
- name: icon_name".bg3"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 45; \
- rel1 { relative: 0.0 0.0; to: icon_name".clipper"; } \
- rel2 { relative: 1.0 1.0; to: icon_name".clipper"; } \
- } \
- } \
- part { \
- name: icon_name; \
- type: SWALLOW; \
- clip_to: icon_name".clipper"; \
- description { \
- state: "default" 0.0; \
- rel1.to: icon_name".clipper"; \
- rel2.to: icon_name".clipper"; \
- } \
- } \
- part { \
- name: icon_name".clipper"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- align: 1.0 1.0; \
- rel1 { relative: p1x/(w-2*GAP_W-2*BURST_W) p1y/(h-2*GAP_H-2*BURST_H); to: icon_name".bg"; } \
- rel2 { relative: (w-2*GAP_W-2*BURST_W-p2x)/(w-2*GAP_W-2*BURST_W) (h-2*GAP_H-2*BURST_H-p2y)/(h-2*GAP_H-2*BURST_H); to: icon_name".bg"; } \
- } \
- }
-
-group {
- name: "elm/gengrid/photoframe/burstshot2";
- images {
- image: GALLERY_EDC_IMAGE_BUSTSHOT COMP;
- }
- parts {
- GL_GRID_PART_BG
- GL_GENGRID_BURSTSHOT("elm.swallow.icon3", W3, H3, 2, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
- GL_GENGRID_BURSTSHOT("elm.swallow.icon2", W3, H3, 1, (BURST_PAD_L+1.0), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
- GL_GENGRID_BURSTSHOT("elm.swallow.icon1", W3, H3, 0, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
- }
-}
-
-group {
- name: "elm/gengrid/photoframe/burstshot1";
- images {
- image: GALLERY_EDC_IMAGE_BUSTSHOT COMP;
- }
- parts {
- GL_GRID_PART_BG
- GL_GENGRID_BURSTSHOT("elm.swallow.icon3", W2, H2, 2, (BURST_PAD_L+0.5), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
- GL_GENGRID_BURSTSHOT("elm.swallow.icon2", W2, H2, 1, (BURST_PAD_L+1.0), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
- GL_GENGRID_BURSTSHOT("elm.swallow.icon1", W2, H2, 0, (BURST_PAD_L+0.5), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
- }
-}
-
-group {
- name: "elm/gengrid/photoframe/burstshot";
- images {
- image: GALLERY_EDC_IMAGE_BUSTSHOT COMP;
- }
- parts {
- GL_GRID_PART_BG
- GL_GENGRID_BURSTSHOT("elm.swallow.icon3", W, H, 2, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
- GL_GENGRID_BURSTSHOT("elm.swallow.icon2", W, H, 1, (BURST_PAD_L+1.0), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
- GL_GENGRID_BURSTSHOT("elm.swallow.icon1", W, H, 0, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
- }
-}
-
-
-#define GL_GENGRID_PHOTOFRAME_VIDEO(NAME, w, h, time_h) \
-group \
-{ \
- name: "elm/gengrid/photoframe/"NAME; \
- images { \
- image: GALLERY_EDC_IMAGE_BUTTON_VIDEO_PLAY COMP; \
- } \
- parts { \
- part { \
- name: "bg"; \
- type: RECT; \
- mouse_events: 1; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0.0 0.0;} \
- rel2 { relative: 1.0 1.0;} \
- color: 0 0 0 0; \
- } \
- } \
- part { \
- name: "elm.swallow.icon"; \
- type: SWALLOW; \
- clip_to: "elm.icon.clipper"; \
- description { \
- state: "default" 0.0; \
- rel1.to: "elm.icon.clipper"; \
- rel2.to: "elm.icon.clipper"; \
- } \
- } \
- part { \
- name: "elm.icon.clipper"; \
- type: RECT; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: GAP_W/w GAP_H/h;} \
- rel2 { relative: (w-GAP_W)/w (h-GAP_H)/h;} \
- } \
- } \
- part { \
- name: "elm.swallow.videoicon"; \
- type: IMAGE; \
- mouse_events: 0; \
- repeat_events: 0; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 24 24; \
- max: 48 48; \
- align: 0.5 0.5; \
- aspect: 1.0 1.0; \
- image.normal: GALLERY_EDC_IMAGE_BUTTON_VIDEO_PLAY; \
- } \
- } \
- } \
-}
-
-GL_GENGRID_PHOTOFRAME_VIDEO("video", W, H, 20.5)
-GL_GENGRID_PHOTOFRAME_VIDEO("video2", W2, H2, 27.3)
-GL_GENGRID_PHOTOFRAME_VIDEO("video3", W3, H3, 41)
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-//////////Copied from scroller.edc//////////////////////
-
-sounds {
- sample {
- name: "touch_sound" RAW;
- source: "button-pressed.wav";
- }
-}
-
-#define GL_GENGRID_OVER(to_obj) \
- part { name: "over_"to_obj; \
- type: RECT; \
- repeat_events: 1; \
- ignore_flags: ON_HOLD; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 0.0 0.0; to: to_obj; }\
- rel2 { relative: 1.0 1.0; to: to_obj; }\
- } \
- }
-
-#define GL_GENGRID_OVER_SOUND(src) \
- program { name: src"_mouse_clicked"; \
- signal: "mouse,clicked,1"; \
- source: "over_"src; \
- transition: DECELERATE 0.2; \
- after: "touch_snd"; \
- }
-
-#define GL_GENGRID_SOUND(src) \
- program { name: src"_mouse_clicked"; \
- signal: "mouse,clicked,1"; \
- source: src; \
- transition: DECELERATE 0.2; \
- after: "touch_snd"; \
- }
-
-#define GL_GENGRID_PLARY_SOUND \
- program { name: "touch_snd"; \
- action: RUN_PLUGIN "touch_sound_plugin"; \
- }
-
-#define GL_GENGRID_FOCUS_BG \
- part { name: "focus_bg"; \
- type: IMAGE; \
- mouse_events: 1; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- visible: 0; \
- image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS; \
- image.border: 13 13 13 13; \
- } \
- description { state: "enabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- }
-
-#define GL_GENGRID_FOCUS_EVENT(to_obj) \
- part { name: "focus_event"; \
- type: RECT; \
- mouse_events: 1; \
- repeat_events: 1; \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 0.0 0.0; to: to_obj; }\
- rel2 { relative: 1.0 1.0; to: to_obj; }\
- } \
- }
-
-#define GL_GENGRID_FOCUS(src) \
- program { \
- name: "go_mouse_down_"src; \
- signal: "mouse,down,1"; \
- source: src; \
- action: STATE_SET "enabled" 0.0; \
- target: "focus_bg"; \
- transition: ACCELERATE 0.2; \
- } \
- program { \
- name: "go_mouse_up_"src; \
- signal: "mouse,up,1"; \
- source: src; \
- action: STATE_SET "default" 0.0; \
- target: "focus_bg"; \
- transition: DECELERATE 0.2; \
- } \
- program { name: "focus_in"; \
- signal: "elm,state,focused"; \
- source: "elm"; \
- action: STATE_SET "enabled" 0.0; \
- target: "focus_bg"; \
- } \
- program { name: "focus_out"; \
- signal: "elm,state,unfocused"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "focus_bg"; \
- }
-
-#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE "00_scroll_bar.png"
-#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE "00_scroll_bar.png"
-#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE_BORDER 5 10 5 10
-#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE_BORDER 5 10 5 10
-#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC 16 238
-#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_MAX_SIZE_INC 16 99999
-#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC 208 16
-#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_MAX_SIZE_INC 99999 16
-#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_PADDING_SIZE 6
-#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_PADDING_SIZE 6
-
-/*
- * vim:ts=3
-*/
-group { name: "elm/scroller/base/gallery";
-
- data {
- item: "focus_highlight" "on";
- }
-
- script {
- public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
- public sh_v, sh_h, sh_timer, edge_timer;
- public timer0(val) {
- new v;
- v = get_int(sbvis_v);
- if (v) {
- v = get_int(sbalways_v);
- if (!v) {
- emit("do-hide-vbar", "");
- set_int(sbvis_v, 0);
- }
- }
- v = get_int(sbvis_h);
- if (v) {
- v = get_int(sbalways_h);
- if (!v) {
- emit("do-hide-hbar", "");
- set_int(sbvis_h, 0);
- }
- }
- set_int(sbvis_timer, 0);
- return 0;
- }
- public timer1(val) {
- emit("do-hide-vshadow", "");
- emit("do-hide-hshadow", "");
- set_int(sh_timer, 0);
- return 0;
- }
- public timer2(val) {
- emit("do-hide-vshadow", "");
- emit("do-hide-hshadow", "");
- set_int(edge_timer, 0);
- return 0;
- }
- }
- images {
- image: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE COMP;
- image: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE COMP;
- }
- parts {
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.offset: 0 0;
- rel2.offset: -1 -1;
- color: 255 255 255 0;
- }
- }
- part { name: "clipper";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- rel1.offset: 0 0;
- rel2.offset: -1 -1;
- }
- }
- part { name: "elm.swallow.content";
- clip_to: "clipper";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- rel1.offset: 0 0;
- rel2.offset: -1 -1;
- }
- }
- part { name: "sb_vbar_clip_master";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "sb_vbar_clip";
- clip_to: "sb_vbar_clip_master";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "sb_vbar";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 0;
- min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
- align: 1.0 0.0;
- rel1 {
- relative: 1.0 0.0;
- offset: 0 0;
- to_y: "elm.swallow.content";
- to_x: "elm.swallow.content";
- }
- rel2 {
- relative: 1.0 1.0;
- offset: -1 1;
- to_y: "elm.swallow.content";
- to_x: "elm.swallow.content";
- }
- }
- }
- part { name: "elm.dragable.vbar";
- clip_to: "sb_vbar_clip";
- mouse_events: 0;
- scale: 1;
- dragable {
- x: 0 0 0;
- y: 1 1 0;
- confine: "sb_vbar";
- }
- description { state: "default" 0.0;
- fixed: 1 1;
- min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
- max: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MAX_SIZE_INC;
- rel1 {
- relative: 0.5 0.5;
- offset: 0 0;
- to: "sb_vbar";
- }
- rel2 {
- relative: 0.5 0.5;
- offset: 0 0;
- to: "sb_vbar";
- }
- image {
- normal: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE;
- border: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE_BORDER;
- border_scale: 1;
- middle: DEFAULT;
- }
- }
- }
- part { name: "sb_hbar_clip_master";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "sb_hbar_clip";
- clip_to: "sb_hbar_clip_master";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "sb_hbar";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 0;
- min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
- align: 0.0 1.0;
- rel1 {
- relative: 0.0 1.0;
- offset: 0 0;
- to_x: "elm.swallow.content";
- to_y: "elm.swallow.content";
- }
- rel2 {
- relative: 1.0 1.0;
- offset: -1 -1;
- to_x: "elm.swallow.content";
- to_y: "elm.swallow.content";
- }
- }
- }
- part { name: "elm.dragable.hbar";
- clip_to: "sb_hbar_clip";
- mouse_events: 0;
- scale: 1;
- dragable {
- x: 1 1 0;
- y: 0 0 0;
- confine: "sb_hbar";
- }
- description { state: "default" 0.0;
- fixed: 1 1;
- min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
- max: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MAX_SIZE_INC;
- rel1 {
- relative: 0.5 0.5;
- offset: 0 0;
- to: "sb_hbar";
- }
- rel2 {
- relative: 0.5 0.5;
- offset: 0 0;
- to: "sb_hbar";
- }
- image {
- normal: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE;
- border: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE_BORDER;
- border_scale: 1;
- middle: DEFAULT;
- }
- }
- }
- part { name: "disabler";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "clipper";
- rel2.to: "clipper";
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: 128 128 128 128;
- }
- }
- }
- programs {
- program { name: "load";
- signal: "load";
- source: "";
- script {
- set_state(PART:"sb_hbar_clip", "hidden", 0.0);
- set_state(PART:"sb_vbar_clip", "hidden", 0.0);
- set_int(sbvis_h, 0);
- set_int(sbvis_v, 0);
- set_int(sbalways_v, 0);
- set_int(sbalways_h, 0);
- set_int(sbvis_timer, 0);
- }
- }
-
- program { name: "vbar_show";
- signal: "elm,action,show,vbar";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "sb_vbar_clip_master";
- }
- program { name: "vbar_hide";
- signal: "elm,action,hide,vbar";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "sb_vbar_clip_master";
- }
- program { name: "vbar_show_always";
- signal: "elm,action,show_always,vbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbvis_v);
- v |= get_int(sbalways_v);
- if (!v) {
- set_int(sbalways_v, 1);
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- }
- }
- program { name: "vbar_show_notalways";
- signal: "elm,action,show_notalways,vbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_v);
- if (v) {
- set_int(sbalways_v, 0);
- v = get_int(sbvis_v);
- if (!v) {
- emit("do-hide-vbar", "");
- set_int(sbvis_v, 0);
- }
- }
- }
- }
- program { name: "sb_vbar_show";
- signal: "do-show-vbar";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "sb_vbar_clip";
- }
- program { name: "sb_vbar_hide";
- signal: "do-hide-vbar";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.5;
- target: "sb_vbar_clip";
- }
-
- program { name: "hbar_show";
- signal: "elm,action,show,hbar";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "sb_hbar_clip_master";
- }
- program { name: "hbar_hide";
- signal: "elm,action,hide,hbar";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "sb_hbar_clip_master";
- }
- program { name: "hbar_show_always";
- signal: "elm,action,show_always,hbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbvis_h);
- v |= get_int(sbalways_h);
- if (!v) {
- set_int(sbalways_h, 1);
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- }
- }
- program { name: "hbar_show_notalways";
- signal: "elm,action,show_notalways,hbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_h);
- if (v) {
- set_int(sbalways_h, 0);
- v = get_int(sbvis_h);
- if (!v) {
- emit("do-hide-hbar", "");
- set_int(sbvis_h, 0);
- }
- }
- }
- }
- program { name: "sb_hbar_show";
- signal: "do-show-hbar";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "sb_hbar_clip";
- }
- program { name: "sb_hbar_hide";
- signal: "do-hide-hbar";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.5;
- target: "sb_hbar_clip";
- }
-
- program { name: "scroll";
- signal: "elm,action,scroll";
- source: "elm";
- script {
- new v;
- v = get_int(sbvis_v);
- v |= get_int(sbalways_v);
- if (!v) {
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- v = get_int(sbvis_h);
- v |= get_int(sbalways_h);
- if (!v) {
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(1.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- }
- }
-}
-
-group { name: "elm/gengrid/base/gallery";
- inherit: "elm/scroller/base/gallery";
-
- images {
- /*image: GALLERY_EDC_IMAGE_OS_TOP COMP;
- image: GALLERY_EDC_IMAGE_OS_BOTTOM COMP;*/
- image: GALLERY_EDC_IMAGE_OS_LEFT COMP;
- image: GALLERY_EDC_IMAGE_OS_RIGHT COMP;
- }
-
- parts {
- part { name: "shadow_clip";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- /*part { name: "shadow_top";
- clip_to: "shadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 1 1;
- align: 0.5 0.0;
- color: 255 255 255 100;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- image.normal: GALLERY_EDC_IMAGE_OS_TOP;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "shadow_bottom";
- clip_to: "shadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 1 1;
- align: 0.5 1.0;
- color: 255 255 255 100;
- rel1.relative: 0.0 1.0;
- rel2.relative: 1.0 1.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- image.normal: GALLERY_EDC_IMAGE_OS_BOTTOM;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }*/
- part { name: "shadow_left";
- clip_to: "shadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 30 0;
- fixed: 1 1;
- align: 0.0 0.5;
- color: 255 255 255 0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 1.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- image.normal: GALLERY_EDC_IMAGE_OS_LEFT;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "shadow_right";
- clip_to: "shadow_clip";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 30 0;
- fixed: 1 1;
- align: 1.0 0.5;
- color: 255 255 255 0;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 1.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- image.normal: GALLERY_EDC_IMAGE_OS_RIGHT;
- }
- description { state: "edge" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- /*part { name: "padding_jump_to_top";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
- max: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 0.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- fixed: 1 1;
- align: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.jump_to_top";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "padding_jump_to_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "padding_jump_to_top";
- relative: 0.0 1.0;
- }
- fixed: 1 1;
- align: 1.0 0.0;
- }
- }
- part { name: "padding_jump_to_left";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
- max: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
- rel1.relative: 0.0 1.0;
- rel2.relative: 0.0 1.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- fixed: 1 1;
- align: 0.0 1.0;
- }
- }
- part { name: "elm.swallow.jump_to_left";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "padding_jump_to_left";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "padding_jump_to_left";
- relative: 1.0 0.0;
- }
- fixed: 1 1;
- align: 0.0 1.0;
- }
- }*/
- }
- programs {
- program { name: "load";
- script {
- set_state(PART:"sb_hbar_clip", "hidden", 0.0);
- set_state(PART:"sb_vbar_clip", "hidden", 0.0);
- set_state(PART:"shadow_clip", "hidden", 0.0);
- set_int(sbvis_h, 0);
- set_int(sbvis_v, 0);
- set_int(sbalways_v, 0);
- set_int(sbalways_h, 0);
- set_int(sbvis_timer, 0);
- set_int(sh_v, 0);
- set_int(sh_timer, 0);
- set_int(edge_timer, 0);
- }
- }
- program { name: "vshadow_show";
- signal: "do-show-vshadow";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "shadow_clip";
- }
- program { name: "vshadow_hide";
- signal: "do-hide-vshadow";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.5;
- target: "shadow_clip";
- }
- program { name: "scroll";
- signal: "elm,action,scroll";
- source: "elm";
- script {
- new v;
- v = get_int(sbvis_v);
- v |= get_int(sbalways_v);
- if (!v) {
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- v = get_int(sbvis_h);
- v |= get_int(sbalways_h);
- if (!v) {
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(1, "timer0", 0);
- set_int(sbvis_timer, v);
-
- /*v = get_int(edge_timer);
- if (!v) {
- set_state(PART:"shadow_top", "default", 0.0);
- set_state(PART:"shadow_bottom", "default", 0.0);
- set_state(PART:"shadow_left", "default", 0.0);
- set_state(PART:"shadow_right", "default", 0.0);
- emit("do-show-vshadow", "");
- v = get_int(sh_timer);
- if (v > 0) cancel_timer(v);
- v = timer(0.2, "timer1", 0);
- set_int(sh_timer, v);
- }*/
- }
- }
- /*program { name: "edge_top";
- signal: "elm,edge,top";
- source: "elm";
- after: "edge";
- }
- program { name: "edge_bottom";
- signal: "elm,edge,bottom";
- source: "elm";
- after: "edge";
- }*/
- program { name: "edge_left";
- signal: "elm,edge,left";
- source: "elm";
- after: "edge_shadow_left";
- }
- program { name: "edge_right";
- signal: "elm,edge,right";
- source: "elm";
- after: "edge_shadow_right";
- }
- /*program { name: "edge";
- script {
- new v;
- v = get_int(sh_timer);
- if (v > 0) cancel_timer(v);
- set_state(PART:"shadow_top", "edge", 0.0);
- set_state(PART:"shadow_bottom", "edge", 0.0);
- set_state(PART:"shadow_left", "edge", 0.0);
- set_state(PART:"shadow_right", "edge", 0.0);
- v = get_int(edge_timer);
- if (!v) {
- emit("do-show-vshadow", "");
- }
- if (v > 0) cancel_timer(v);
- v = timer(0.2, "timer2", 0);
- set_int(edge_timer, v);
- }
- }*/
- program { name: "edge_shadow_left"; /* newly added */
- script {
- new v;
- v = get_int(sh_timer);
- if (v > 0) cancel_timer(v);
- set_state(PART:"shadow_left", "edge", 0.0);
- set_state(PART:"shadow_right", "default", 0.0);
- v = get_int(edge_timer);
- if (!v) {
- emit("do-show-vshadow", "");
- }
- if (v > 0) cancel_timer(v);
- v = timer(0.2, "timer2", 0);
- set_int(edge_timer, v);
- }
- }
- program { name: "edge_shadow_right"; /* newly added */
- script {
- new v;
- v = get_int(sh_timer);
- if (v > 0) cancel_timer(v);
- set_state(PART:"shadow_right", "edge", 0.0);
- set_state(PART:"shadow_left", "default", 0.0);
- v = get_int(edge_timer);
- if (!v) {
- emit("do-show-vshadow", "");
- }
- if (v > 0) cancel_timer(v);
- v = timer(0.2, "timer2", 0);
- set_int(edge_timer, v);
- }
- }
- program { name: "show";
- signal: "show";
- source: "";
- script {
- new v;
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- v = get_int(sbalways_v);
- if (!v) {
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(1.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- v = get_int(sbalways_h);
- if (!v) {
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(1.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- }
- }
- }
-}
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-//added for progressbar label
-
-//nbeat-inc.edc
-#define LABEL_TEXT_BLOCK_STYLE_COLOR_INC "#000000"
-
-#define TEXT_SLIDE_DURATION 10
-
- styles {
- style { name: "textblock_style";
- base: "font=Tizen:style=Medium text_class=tizen font_size=24 color="LABEL_TEXT_BLOCK_STYLE_COLOR_INC" text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "tab" "\t";
- }
- }
-
- /* label doesn't use it */
- styles {
- style { name: "textblock_charwrap_style";
- base: "font=Tizen:style=Medium text_class=tizen font_size=24 color="LABEL_TEXT_BLOCK_STYLE_COLOR_INC;
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "tab" "\t";
- }
- }
-
- group { name: "elm/label/base/default";
- alias: "elm/label/base/gallery/default";
- data.item: "default_font_size" "24";
- data.item: "min_font_size" "18";
- data.item: "max_font_size" "60";
- parts {
- part { name: "label.swallow.background";
- type: SWALLOW;
- description { state: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "label.text.clip";
- type: RECT;
- description { state: "default" 0.0;
- visible: 1;
- color: 255 255 255 255;
- rel1 { relative: 0 0; to: "label.swallow.background"; }
- rel2 { relative: 1 1; to: "label.swallow.background"; }
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- clip_to: "label.text.clip";
- description { state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- }
- }
- }
-
- /* default label doesn't use it */
- group { name: "elm/label/base_wrap/default";
- alias: "elm/label/base_wrap/gallery/default";
- data.item: "default_font_size" "24";
- data.item: "min_font_size" "18";
- data.item: "max_font_size" "60";
- parts {
- part { name: "label.swallow.background";
- type: SWALLOW;
- description { state: "default" 0.0;
- visible: 1;
- rel1 { relative: 0 0; to: "elm.text"; }
- rel2 { relative: 1 1; to: "elm.text"; }
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 1;
- scale: 1;
- multiline: 1;
- description { state: "default" 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- description { state: "charwrap_mode" 0.0;
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- }
- }
- }
- }
- programs {
- program { name: "default_on";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "charwrap_on";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode" 0.0;
- target: "elm.text";
- }
- } // end programs
- } // end group
-
- /* default label doesn't use it */
- group { name: "elm/label/base_wrap_ellipsis/default";
- alias: "elm/label/base_wrap_ellipsis/gallery/default";
- data.item: "default_font_size" "24";
- data.item: "min_font_size" "18";
- data.item: "max_font_size" "60";
- parts {
- part { name: "label.swallow.background";
- type: SWALLOW;
- description { state: "default" 0.0;
- visible: 1;
- rel1 { relative: 0 0; to: "elm.text"; }
- rel2 { relative: 1 1; to: "elm.text"; }
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- multiline: 1;
- description { state: "default" 0.0;
- // FIXME : fixed for multiline ellipsis.
- // does it need to make another ellipsis style?
- fixed: 0 1;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- description { state: "charwrap_mode" 0.0;
- // FIXME : fixed for multiline ellipsis.
- // does it need to make another ellipsis style?
- fixed: 0 1;
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- }
- }
- }
- }
- programs {
- program { name: "default_on";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "charwrap_on";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode" 0.0;
- target: "elm.text";
- }
- } // end programs
- } // end group
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-/********Used for showing overscrolling images start*********/
-
-#define GL_CRIPT_SCROLLER \
- script { \
- public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; \
- public sh_v, sh_h, sh_timer, edge_timer; \
- public timer0(val) { \
- new v; \
- v = get_int(sbvis_v); \
- if (v) { \
- v = get_int(sbalways_v); \
- if (!v) { \
- emit("do-hide-vbar", ""); \
- set_int(sbvis_v, 0); \
- } \
- } \
- v = get_int(sbvis_h); \
- if (v) { \
- v = get_int(sbalways_h); \
- if (!v) { \
- emit("do-hide-hbar", ""); \
- set_int(sbvis_h, 0); \
- } \
- } \
- set_int(sbvis_timer, 0); \
- return 0; \
- } \
- public timer1(val) { \
- emit("do-hide-vshadow", ""); \
- emit("do-hide-hshadow", ""); \
- set_int(sh_timer, 0); \
- return 0; \
- } \
- public timer2(val) { \
- emit("do-hide-vshadow", ""); \
- emit("do-hide-hshadow", ""); \
- set_int(edge_timer, 0); \
- return 0; \
- } \
- }
-
-#define GL_IMAGES_GRID_OVERSCROLL \
- images { \
- image: GALLERY_EDC_IMAGE_GIRD_OS_TOP COMP; \
- image: GALLERY_EDC_IMAGE_GIRD_OS_BOT COMP; \
- image: GALLERY_EDC_IMAGE_GIRD_OS_LEFT COMP; \
- image: GALLERY_EDC_IMAGE_GIRD_OS_RIGHT COMP; \
- }
-
-#define GL_SHADOW_SCROLLER(CONTENT) \
- part { name: "vshadow_clip"; \
- type: RECT; \
- mouse_events: 0; \
- scale: 1; \
- description { state: "default" 0.0; \
- } \
- description { state: "hidden" 0.0; \
- visible: 0; \
- color: 255 255 255 0; \
- } \
- } \
- part { name: "hshadow_clip"; \
- type: RECT; \
- mouse_events: 0; \
- scale: 1; \
- description { state: "default" 0.0; \
- } \
- description { state: "hidden" 0.0; \
- visible: 0; \
- color: 255 255 255 0; \
- } \
- } \
- part { name: "shadow_top"; \
- clip_to: "vshadow_clip"; \
- type: IMAGE; \
- scale: 1; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- min: 0 405; \
- fixed: 1 1; \
- align: 0.5 0.0; \
- color: 255 255 255 100; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 0.0; \
- rel1.to: CONTENT; \
- rel2.to: CONTENT; \
- image.normal: GALLERY_EDC_IMAGE_GIRD_OS_TOP; \
- } \
- description { state: "edge" 0.0; \
- inherit: "default" 0.0; \
- color: 255 255 255 255; \
- } \
- description { state: "hidden" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "shadow_bottom"; \
- clip_to: "vshadow_clip"; \
- type: IMAGE; \
- scale: 1; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- min: 0 405; \
- fixed: 1 1; \
- align: 0.5 1.0; \
- color: 255 255 255 100; \
- rel1.relative: 0.0 1.0; \
- rel2.relative: 1.0 1.0; \
- rel1.to: CONTENT; \
- rel2.to: CONTENT; \
- image.normal: GALLERY_EDC_IMAGE_GIRD_OS_BOT; \
- } \
- description { state: "edge" 0.0; \
- inherit: "default" 0.0; \
- color: 255 255 255 255; \
- } \
- description { state: "hidden" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "shadow_left"; \
- clip_to: "hshadow_clip"; \
- type: IMAGE; \
- scale: 1; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- min: 405 0; \
- fixed: 1 1; \
- align: 0.0 0.5; \
- color: 255 255 255 100; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 0.0 1.0; \
- rel1.to: CONTENT; \
- rel2.to: CONTENT; \
- image.normal: GALLERY_EDC_IMAGE_GIRD_OS_LEFT; \
- } \
- description { state: "edge" 0.0; \
- inherit: "default" 0.0; \
- color: 255 255 255 255; \
- } \
- description { state: "hidden" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- } \
- part { name: "shadow_right"; \
- clip_to: "hshadow_clip"; \
- type: IMAGE; \
- scale: 1; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- min: 405 0; \
- fixed: 1 1; \
- align: 1.0 0.5; \
- color: 255 255 255 100; \
- rel1.relative: 1.0 0.0; \
- rel2.relative: 1.0 1.0; \
- rel1.to: CONTENT; \
- rel2.to: CONTENT; \
- image.normal: GALLERY_EDC_IMAGE_GIRD_OS_RIGHT; \
- } \
- description { state: "edge" 0.0; \
- inherit: "default" 0.0; \
- color: 255 255 255 255; \
- } \
- description { state: "hidden" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- } \
- }
-
-#define GL_PROGRAM_SCROLLER \
- program { name: "load"; \
- signal: "load"; \
- source: ""; \
- script { \
- set_state(PART:"vshadow_clip", "hidden", 0.0); \
- set_state(PART:"hshadow_clip", "hidden", 0.0); \
- set_int(sbvis_h, 0); \
- set_int(sbvis_v, 0); \
- set_int(sbalways_v, 0); \
- set_int(sbalways_h, 0); \
- set_int(sbvis_timer, 0); \
- set_int(sh_timer, 0); \
- set_int(edge_timer, 0); \
- emit("reload", "elm"); \
- } \
- } \
- program { name: "vbar_show_always"; \
- signal: "elm,action,show_always,vbar"; \
- source: "elm"; \
- script { \
- new v; \
- v = get_int(sbvis_v); \
- v |= get_int(sbalways_v); \
- if (!v) { \
- set_int(sbalways_v, 1); \
- emit("do-show-vbar", ""); \
- set_int(sbvis_v, 1); \
- } \
- } \
- } \
- program { name: "vbar_show_notalways"; \
- signal: "elm,action,show_notalways,vbar"; \
- source: "elm"; \
- script { \
- new v; \
- v = get_int(sbalways_v); \
- if (v) { \
- set_int(sbalways_v, 0); \
- v = get_int(sbvis_v); \
- if (!v) { \
- emit("do-hide-vbar", ""); \
- set_int(sbvis_v, 0); \
- } \
- } \
- } \
- } \
- program { name: "hbar_show_always"; \
- signal: "elm,action,show_always,hbar"; \
- source: "elm"; \
- script { \
- new v; \
- v = get_int(sbvis_h); \
- v |= get_int(sbalways_h); \
- if (!v) { \
- set_int(sbalways_h, 1); \
- emit("do-show-hbar", ""); \
- set_int(sbvis_h, 1); \
- } \
- } \
- } \
- program { name: "hbar_show_notalways"; \
- signal: "elm,action,show_notalways,hbar"; \
- source: "elm"; \
- script { \
- new v; \
- v = get_int(sbalways_h); \
- if (v) { \
- set_int(sbalways_h, 0); \
- v = get_int(sbvis_h); \
- if (!v) { \
- emit("do-hide-hbar", ""); \
- set_int(sbvis_h, 0); \
- } \
- } \
- } \
- } \
- program { name: "vshadow_show"; \
- signal: "do-show-vshadow"; \
- source: ""; \
- action: STATE_SET "default" 0.0; \
- transition: LINEAR 0.5; \
- target: "vshadow_clip"; \
- } \
- program { name: "vshadow_hide"; \
- signal: "do-hide-vshadow"; \
- source: ""; \
- action: STATE_SET "hidden" 0.0; \
- transition: LINEAR 0.5; \
- target: "vshadow_clip"; \
- } \
- program { name: "hshadow_show"; \
- signal: "do-show-hshadow"; \
- source: ""; \
- action: STATE_SET "default" 0.0; \
- transition: LINEAR 0.5; \
- target: "hshadow_clip"; \
- } \
- program { name: "hshadow_hide"; \
- signal: "do-hide-hshadow"; \
- source: ""; \
- action: STATE_SET "hidden" 0.0; \
- transition: LINEAR 0.5; \
- target: "hshadow_clip"; \
- } \
- program { name: "scroll"; \
- signal: "elm,action,scroll"; \
- source: "elm"; \
- script { \
- new v; \
- v = get_int(sbvis_v); \
- v |= get_int(sbalways_v); \
- if (!v) { \
- emit("do-show-vbar", ""); \
- set_int(sbvis_v, 1); \
- } \
- v = get_int(sbvis_h); \
- v |= get_int(sbalways_h); \
- if (!v) { \
- emit("do-show-hbar", ""); \
- set_int(sbvis_h, 1); \
- } \
- v = get_int(sbvis_timer); \
- if (v > 0) \
- cancel_timer(v); \
- v = timer(1, "timer0", 0); \
- set_int(sbvis_timer, v); \
- } \
- } \
- program { name: "scroll_up"; \
- signal: "elm,action,scroll,up"; \
- source: "elm"; \
- after: "scroll_vertical"; \
- } \
- program { name: "scroll_down"; \
- signal: "elm,action,scroll,down"; \
- source: "elm"; \
- after: "scroll_vertical"; \
- } \
- program { name: "scroll_vertical"; \
- script { \
- new v; \
- v = get_int(edge_timer); \
- if (!v) { \
- set_state(PART:"shadow_top", "default", 0.0); \
- set_state(PART:"shadow_bottom", "default", 0.0); \
- emit("do-show-vshadow", ""); \
- v = get_int(sh_timer); \
- if (v > 0) \
- cancel_timer(v); \
- v = timer(0.2, "timer1", 0); \
- set_int(sh_timer, v); \
- } \
- } \
- } \
- program { name: "scroll_left"; \
- signal: "elm,action,scroll,left"; \
- source: "elm"; \
- after: "scroll_horizontal"; \
- } \
- program { name: "scroll_right"; \
- signal: "elm,action,scroll,right"; \
- source: "elm"; \
- after: "scroll_horizontal"; \
- } \
- program { name: "scroll_horizontal"; \
- script { \
- new v; \
- v = get_int(edge_timer); \
- if (!v) { \
- set_state(PART:"shadow_left", "default", 0.0); \
- set_state(PART:"shadow_right", "default", 0.0); \
- emit("do-show-hshadow", ""); \
- v = get_int(sh_timer); \
- if (v > 0) \
- cancel_timer(v); \
- v = timer(0.2, "timer1", 0); \
- set_int(sh_timer, v); \
- } \
- } \
- } \
- program { name: "edge_top"; \
- signal: "elm,edge,top"; \
- source: "elm"; \
- script { \
- set_state(PART:"shadow_top", "edge", 0.0); \
- set_state(PART:"shadow_bottom", "hidden", 0.0); \
- } \
- after: "edge_vertical"; \
- } \
- program { name: "edge_bottom"; \
- signal: "elm,edge,bottom"; \
- source: "elm"; \
- script { \
- set_state(PART:"shadow_top", "hidden", 0.0); \
- set_state(PART:"shadow_bottom", "edge", 0.0); \
- } \
- after: "edge_vertical"; \
- } \
- program { name: "edge_left"; \
- signal: "elm,edge,left"; \
- source: "elm"; \
- script { \
- set_state(PART:"shadow_left", "edge", 0.0); \
- set_state(PART:"shadow_right", "hidden", 0.0); \
- } \
- after: "edge_horizontal"; \
- } \
- program { name: "edge_right"; \
- signal: "elm,edge,right"; \
- source: "elm"; \
- script { \
- set_state(PART:"shadow_left", "hidden", 0.0); \
- set_state(PART:"shadow_right", "edge", 0.0); \
- } \
- after: "edge_horizontal"; \
- } \
- program { name: "edge_all"; \
- signal: "elm,edge,all"; \
- source: "elm"; \
- script { \
- set_state(PART:"shadow_top", "edge", 0.0); \
- set_state(PART:"shadow_bottom", "edge", 0.0); \
- set_state(PART:"shadow_left", "edge", 0.0); \
- set_state(PART:"shadow_right", "edge", 0.0); \
- } \
- after: "edge_hori_verti"; \
- } \
- program { name: "edge_vertical"; \
- script { \
- new v; \
- v = get_int(sh_timer); \
- if (v > 0) \
- cancel_timer(v); \
- v = get_int(edge_timer); \
- if (!v) { \
- emit("do-show-vshadow", ""); \
- } \
- if (v > 0) \
- cancel_timer(v); \
- v = timer(0.2, "timer2", 0); \
- set_int(edge_timer, v); \
- } \
- } \
- program { name: "edge_horizontal"; \
- script { \
- new v; \
- v = get_int(sh_timer); \
- if (v > 0) \
- cancel_timer(v); \
- v = get_int(edge_timer); \
- if (!v) { \
- emit("do-show-hshadow", ""); \
- } \
- if (v > 0) \
- cancel_timer(v); \
- v = timer(0.2, "timer2", 0); \
- set_int(edge_timer, v); \
- } \
- } \
- program { name: "edge_hori_verti"; \
- script { \
- new v; \
- v = get_int(sh_timer); \
- if (v > 0) \
- cancel_timer(v); \
- v = get_int(edge_timer); \
- if (!v) { \
- emit("do-show-hshadow", ""); \
- emit("do-show-vshadow", ""); \
- } \
- if (v > 0) \
- cancel_timer(v); \
- v = timer(0.2, "timer2", 0); \
- set_int(edge_timer, v); \
- } \
- } \
- program { name: "show"; \
- signal: "show"; \
- source: ""; \
- script { \
- new v; \
- emit("do-show-vbar", ""); \
- set_int(sbvis_v, 1); \
- v = get_int(sbalways_v); \
- if (!v) { \
- v = get_int(sbvis_timer); \
- if (v > 0) cancel_timer(v); \
- v = timer(1.0, "timer0", 0); \
- set_int(sbvis_timer, v); \
- } \
- emit("do-show-hbar", ""); \
- set_int(sbvis_h, 1); \
- v = get_int(sbalways_h); \
- if (!v) { \
- v = get_int(sbvis_timer); \
- if (v > 0) cancel_timer(v); \
- v = timer(1.0, "timer0", 0); \
- set_int(sbvis_timer, v); \
- } \
- } \
- }
-/********Used for showing overscrolling images done*********/
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define NAVIFRAME_VIEW_TRANS_TIME 0.3
-#define NAVIFRAME_TITLE_TRANS_TIME 0.5
-
-group { name: "elm/naviframe/item/gallery_empty/default";
- script {
- public tbar_close = 0; //Toolbar lastest Open/Close status
- public landscape = 0; //Landscape mode status
- }
- parts {
- part { name: "clipper";
- type: RECT;
- description { state: "default" 0.0;
- visible: 1;
- }
- description { state: "left" 0.0;
- visible: 0;
- }
- }
- part { name: "base";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- }
- description { state: "left" 0.0;
- inherit: "default" 0.0;
- rel1.relative: -1.0 0.0;
- rel2.relative: 0.0 1.0;
- }
- description { state: "right" 0.0;
- inherit: "default" 0.0;
- rel1.relative: 1.0 0.0;
- rel2.relative: 2.0 1.0;
- }
- }
- part { name: "title_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 NAVIFRAME_TITLE_H_INC;
- max: -1 NAVIFRAME_TITLE_H_INC;
- align: 0.0 0.0;
- fixed: 0 1;
- rel1 { relative: 0.0 0.0; to: "base"; }
- rel2 { relative: 1.0 0.0; to: "base"; }
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- }
- description { state: "hide_trans" 0.0;
- inherit: "default" 0.0;
- align: 0.5 1.0;
- }
- description { state: "hide_trans_landscape" 0.0;
- inherit: "landscape" 0.0;
- align: 0.5 1.0;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- min: 0 0;
- max: -1 0;
- }
- }
- part { name: "title_clip";
- type: RECT;
- mouse_events: 0;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel1 { to_y: "title_bg"; }
- rel2 { to_y: "title_bg"; }
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- repeat_events: 0;
- clip_to: "content_clip";
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel1.relative: 0.0 1.0;
- rel1.to_x: "base";
- rel1.to_y: "title_bg";
- rel2.relative: 1.0 0.0;
- rel2.to_x: "base";
- rel2.to_y: "toolbar";
- }
- }
- part { name: "content_clip";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- }
- }
- part { name: "title";
- type: SWALLOW;
- scale: 1;
- clip_to: "title_clip";
- description { state: "default" 0.0;
- min: 0 NAVIFRAME_TITLE_H_INC;
- max: -1 NAVIFRAME_TITLE_H_INC;
- align: 0.0 0.0;
- fixed: 0 1;
- rel1 { relative: 0.0 0.0; to: "base"; }
- rel2 { relative: 1.0 0.0; to: "base"; }
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
- }
- description { state: "hide_trans" 0.0;
- inherit: "default" 0.0;
- align: 0.5 1.0;
- }
- description { state: "hide_trans_landscape" 0.0;
- inherit: "landscape" 0.0;
- align: 0.5 1.0;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- min: 0 0;
- max: -1 0;
- }
- }
- part { name: "toolbar";
- type: SWALLOW;
- scale: 1;
- clip_to: "toolbar_clip";
- description { state: "default" 0.0;
- min: 0 0;
- max: 999999 0;
- fixed: 0 1;
- align: 0.0 1.0;
- visible: 0;
- rel1 { to: "base"; }
- rel2 { to: "base"; }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
- max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
- visible: 1;
- }
- description { state: "visible_landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
- max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
- visible: 1;
- }
- }
- part { name: "more_btn_bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
- fixed: 1 0;
- align: 0.0 0.0;
- rel1 { relative: 0.0 0.0; to: "toolbar"; }
- rel2 { relative: 0.0 1.0; to: "toolbar"; }
- }
- }
- part { name: "toolbar_more_btn";
- type: SWALLOW;
- scale: 1;
- clip_to: "toolbar_clip";
- description { state: "default" 0.0;
- max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
- fixed: 1 1;
- rel1.to: "more_btn_bg";
- rel2.to: "more_btn_bg";
- visible: 0;
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
- }
- }
- part { name: "prev_btn_bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
- fixed: 1 0;
- align: 1.0 0.0;
- rel1 { relative: 1.0 0.0; to: "toolbar"; }
- rel2.to: "toolbar";
- }
- }
- part { name: "elm.swallow.prev_btn";
- type: SWALLOW;
- scale: 1;
- clip_to: "toolbar_clip";
- description { state: "default" 0.0;
- max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
- fixed: 1 1;
- align: 0.5 0.5;
- rel1.to: "prev_btn_bg";
- rel2.to: "prev_btn_bg";
- visible: 0;
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
- }
- }
- part { name: "toolbar_clip";
- type: RECT;
- mouse_events: 0;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel1 { to: "toolbar"; }
- rel2 { to: "toolbar"; }
- }
- }
- }
- programs {
- program { name: "content_new_pushed";
- signal: "elm,state,new,pushed,deferred";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
- after: "show_finished";
- }
- program { name: "content_cur_pushed";
- signal: "elm,state,cur,pushed,deferred";
- source: "elm";
- action: STATE_SET "left" 0.0;
- target: "base";
- target: "clipper";
- transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
- after: "pushed_finished";
- }
- program { name: "content_prev_popped";
- signal: "elm,state,prev,popped,deferred";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- target: "clipper";
- transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
- after: "show_finished";
- }
- program { name: "content_cur_popped";
- signal: "elm,state,cur,popped,deferred";
- source: "elm";
- action: STATE_SET "right" 0.0;
- target: "base";
- transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
- after: "popped_finished";
- }
- program { name: "cur_pushed";
- signal: "elm,state,cur,pushed";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- }
- program { name: "new_pushed";
- signal: "elm,state,new,pushed";
- source: "elm";
- action: STATE_SET "right" 0.0;
- target: "base";
- }
- program { name: "prev_popped";
- signal: "elm,state,prev,popped";
- source: "elm";
- action: STATE_SET "left" 0.0;
- target: "base";
- }
- program { name: "cur_popped";
- signal: "elm,state,cur,popped";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- }
- program { name: "visible";
- signal: "elm,state,visible";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- target: "clipper";
- }
- program { name: "title_show";
- signal: "elm,state,title,show";
- source: "elm";
- script {
- if (!get_int(landscape)) {
- set_state(PART:"title", "default", 0.0);
- set_state(PART:"title_bg", "default", 0.0);
- } else {
- set_state(PART:"title", "landscape", 0.0);
- set_state(PART:"title_bg", "landscape", 0.0);
- }
- }
- }
- program { name: "title_hide";
- signal: "elm,state,title,hide";
- source: "elm";
- script {
- set_state(PART:"title_bg", "hide", 0.0);
- set_state(PART:"title", "hide", 0.0);
- }
- }
- program { name: "title_show_anim";
- signal: "elm,action,title,show";
- source: "elm";
- script {
- if (!get_int(landscape)) {
- set_state(PART:"title", "hide_trans", 0.0);
- set_state(PART:"title_bg", "hide_trans", 0.0);
- } else {
- set_state(PART:"title", "hide_trans_landscape", 0.0);
- set_state(PART:"title_bg", "hide_trans_landscape", 0.0);
- }
- run_program(PROGRAM:"title_show_anim_start");
- }
- }
- program { name: "title_show_anim_start";
- action: STATE_SET "default" 0.0;
- target: "title";
- target: "title_bg";
- transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
- after: "title_show_anim_finished";
- }
- program { name: "title_show_anim_finished";
- script {
- emit("elm,action,title,transition,finished", "");
- }
- }
- program { name: "title_hide_trans";
- signal: "elm,action,title,hide";
- source: "elm";
- script {
- if (!get_int(landscape)) {
- set_state(PART:"title", "default", 0.0);
- set_state(PART:"title_bg", "default", 0.0);
- } else {
- set_state(PART:"title", "landscape", 0.0);
- set_state(PART:"title_bg", "landscape", 0.0);
- }
- run_program(PROGRAM:"title_hide_trans_start");
- }
- }
- program { name: "title_hide_trans_start";
- action: STATE_SET "hide_trans" 0.0;
- target: "title";
- target: "title_bg";
- transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
- after: "title_hide_trans_finished";
- }
- program { name: "title_hide_trans_finished";
- script {
- set_state(PART:"title_bg", "hide", 0.0);
- set_state(PART:"title", "hide", 0.0);
- emit("elm,action,title,transition,finished", "");
- }
- }
- program { name: "toolbar_show";
- signal: "elm,state,toolbar,show";
- source: "elm";
- script {
- if (!get_int(landscape))
- set_state(PART:"toolbar", "visible", 0.0);
- else
- set_state(PART:"toolbar", "visible_landscape", 0.0);
- }
- }
- program { name: "toolbar_hide";
- signal: "elm,state,toolbar,hide";
- source: "elm";
- script {
- set_state(PART:"toolbar", "default", 0.0);
- }
- }
- program { name: "toolbar_open_internal";
- signal: "elm,state,toolbar,open,internal";
- source: "elm";
- script {
- set_int(tbar_close, 0);
- if (!get_int(landscape))
- set_state(PART:"toolbar", "visible", 0.0);
- else
- set_state(PART:"toolbar", "visible_landscape", 0.0);
- }
- }
- program { name: "toolbar_close_internal";
- signal: "elm,state,toolbar,close,internal";
- source: "elm";
- script {
- set_int(tbar_close, 1);
- set_state(PART:"toolbar", "default", 0.0);
- }
- }
- program { name: "toolbar_open";
- signal: "elm,state,toolbar,open";
- source: "";
- script {
- if (!get_int(landscape))
- set_state(PART:"toolbar", "visible", 0.0);
- else
- set_state(PART:"toolbar", "visible_landscape", 0.0);
- }
- transition: LINEAR 0.2;
- after: "toolbar_open_internal";
- }
- program { name: "toolbar_close";
- signal: "elm,state,toolbar,close";
- source: "";
- action: STATE_SET "default" 0.0;
- target: "toolbar";
- transition: LINEAR 0.2;
- after: "toolbar_close_internal";
- }
- program { name: "toolbar_instant_open";
- signal: "elm,state,toolbar,instant_open";
- source: "";
- script {
- emit("elm,state,toolbar,open,internal", "elm");
- }
- }
- program { name: "toolbar_instant_close";
- signal: "elm,state,toolbar,instant_close";
- source: "";
- script {
- emit("elm,state,toolbar,close,internal", "elm");
- }
- }
- program { name: "show_finished";
- action: SIGNAL_EMIT "elm,action,show,finished" "";
- }
- program { name: "pushed_finished";
- action: SIGNAL_EMIT "elm,action,pushed,finished" "";
- }
- program { name: "popped_finished";
- action: SIGNAL_EMIT "elm,action,popped,finished" "";
- }
- program {
- name: "change_to_landscape";
- script {
- if (!get_int(landscape)) {
- set_state(PART:"toolbar_more_btn", "landscape", 0.0);
- set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
-
- new st[31];
- new Float:vl;
- get_state(PART:"title", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"title", "landscape", 0.0);
- get_state(PART:"title_bg", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"title_bg", "landscape", 0.0);
-
- get_state(PART:"toolbar", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"toolbar", "visible_landscape", 0.0);
-
- set_int(landscape, 1);
- }
- }
- }
- program {
- name: "change_to_portrait";
- script {
- if (get_int(landscape)) {
- set_state(PART:"toolbar_more_btn", "default", 0.0);
- set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
-
- new st[31];
- new Float:vl;
- get_state(PART:"title", st, 30, vl);
- if (!strcmp(st, "landscape"))
- set_state(PART:"title", "default", 0.0);
- get_state(PART:"title_bg", st, 30, vl);
- if (!strcmp(st, "landscape"))
- set_state(PART:"title_bg", "default", 0.0);
-
- get_state(PART:"toolbar", st, 30, vl);
- if (!strcmp(st, "visible_landscape"))
- set_state(PART:"toolbar", "visible", 0.0);
-
- set_int(landscape, 0);
- }
- }
- }
- program { name: "landscape_mode";
- source: "elm";
- signal: "elm,state,orient,90";
- after: "change_to_landscape";
- }
- program { name: "landscape_mode2";
- source: "elm";
- signal: "elm,state,orient,270";
- after: "change_to_landscape";
- }
- program { name: "portrait_mode";
- source: "elm";
- signal: "elm,state,orient,0";
- after: "change_to_portrait";
- }
- program { name: "portrait_mode2";
- source: "elm";
- signal: "elm,state,orient,180";
- after: "change_to_portrait";
- }
- }
-}
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC 36
-#define NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC_WHITE 20
-#define NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC 250 250 250 255
-#define NO_CONTENT_BG_HEIGHT_INC 185
-#define NO_CONTENT_BG_LANDSCAPE_HEIGHT_INC 132
-#define NO_CONTENT_MAX_HEIGHT_INC 244
-#define NO_CONTENT_LEFT_RIGHT_PADDING_WIDTH_INC 10
-
- group {
- name: "elm/layout/nocontents/gallery";
- styles{
- style { name: "nocontent_style";
- base: "font=Tizen:style=Roman text_class=tizen font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=word";
- tag: "br" "\n";
- tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "tab" "\t";
- }
- }
- images {
- image: GALLERY_EDC_IMAGE_NOCONTENTS_PIC COMP;
- }
- parts {
- part { name: "bg";
- scale: 1;
- type: RECT;
- description { state: "default" 0.0;
- visible: 1;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- color: 0 0 0 0;
- }
- }
- part { name: "nocontents.image";
- description { state: "default" 0.0;
- visible: 1;
- align: 0.5 0.0;
- rel1 { relative: 234/720 466/1184; to: "bg";}
- rel2 { relative: (234+252)/720 (466+252)/1184; to: "bg";}
- image {
- normal: GALLERY_EDC_IMAGE_NOCONTENTS_PIC;
- border: 1 1 1 1;
- border_scale: 1;
- }
- aspect: 1.0 1.0;
- aspect_preference: BOTH;
- }
- }
- part { name: "middle.padding";
- scale: 1;
- type: RECT;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.5 0.0;
- rel1 { relative: 0.0 1.0; to_y: "nocontents.image";}
- rel2 { relative: 1.0 (466+252+0)/1184; to: "bg";}
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 0.5 0.0;
- visible: 1;
- rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding";}
- rel2 { relative: 1.0 (466+252+68)/1184; to: "bg";}
- color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
- text {
- style: "nocontent_style";
- align: 0.5 0.5;
- min: 0 0;
- max: 0 1;
- }
- }
- }
- part { name: "middle.padding.2";
- scale: 1;
- type: RECT;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.5 0.0;
- rel1 { relative: 0.0 1.0; to_y: "elm.text";}
- rel2 { relative: 1.0 (466+252+68+38)/1184; to: "bg";}
- }
- }
- part { name: "elm.text.2";
- type: TEXTBLOCK;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 0.5 0.0;
- visible: 1;
- rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding.2";}
- rel2 { relative: 1.0 1.0; to: "bg";}
- color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
- text {
- style: "nocontent_style";
- align: 0.5 0.5;
- min: 0 0;
- max: 0 1;
- }
- }
- }
- }
- }
-
-
- group {
- name: "elm/layout/nocontents/gallery_white";
- images {
- image: "core_pattern_empty_bg.png" COMP;
- image: "core_pattern_empty_bg_h.png" COMP;
- }
- styles{
- style { name: "nocontent_style_white";
- base: "font=Tizen:style=Regular font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC_WHITE" align=center color=#000000 wrap=word";
- tag: "br" "\n";
- tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
- tag: "tab" "\t";
- }
- }
- parts {
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: B011;
- }
- }
- part { name: "bg_con";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- color_class: "B238L1";
- }
- }
- part { name: "bg_image";
- type: IMAGE;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 NO_CONTENT_BG_HEIGHT_INC;
- rel1.to: "bg";
- rel2 {
- to: "bg";
- relative: 1.0 0.0;
- }
- align: 0.0 0.0;
- fixed: 0 1;
- color_class: "B238L2";
- image.normal: "core_pattern_empty_bg.png";
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: 0 NO_CONTENT_BG_LANDSCAPE_HEIGHT_INC;
- image.normal: "core_pattern_empty_bg_h.png";
- }
- }
- part { name: "text_bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- max: -1 NO_CONTENT_MAX_HEIGHT_INC;
- rel1.to: "bg";
- rel2.to: "bg";
- }
- }
- part { name: "left_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: NO_CONTENT_LEFT_RIGHT_PADDING_WIDTH_INC 0;
- fixed: 1 0;
- align: 0.0 0.0;
- rel1.to: "text_bg";
- rel2.to: "text_bg";
- rel2.relative: 0.0 1.0;
- }
- }
- part{ name: "right_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: NO_CONTENT_LEFT_RIGHT_PADDING_WIDTH_INC 0;
- fixed: 1 0;
- align: 1.0 0.0;
- rel1 {
- to: "text_bg";
- relative: 1.0 0.0;
- }
- rel2.to: "text_bg";
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to_x: "left_padding";
- to_y: "text_bg";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "right_padding";
- to_y: "text_bg";
- relative: 0.0 1.0;
- }
- text {
- style: "nocontent_style_white";
- min: 0 1;
- max: 0 1;
- }
- }
- }
- }
- }
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-group { name: "gl_popup_entry";
- parts {
- part { name: "base";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 160;
- fixed: 1 0;
- }
- }
- part { name: "t_pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- align: 0.0 0.0;
- min: 0 10;
- max: 0 10;
- fixed: 1 1;
- }
- }
- part { name: "top_content_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 30;
- max: 0 40;
- rel1 {
- to_x: "base";
- to_y: "t_pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "base";
- to_y: "t_pad";
- relative: 1.0 1.0;
- }
- align: 0.0 0.0;
- fixed: 1 1;
- }
- }
- part { name: "left_swallow_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 30 40;
- max: 30 40;
- rel1 {
- to_x: "base";
- to_y: "top_content_padding";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "base";
- to_y: "top_content_padding";
- relative: 0.0 1.0;
- }
- align: 0.0 0.0;
- fixed: 1 1;
- }
- }
- part { name: "right_swallow_padding";
- type: SPACER;
- scale: 1;
- description {
- min: 30 40;
- max: 30 40;
- rel1 {
- to_x: "base";
- to_y: "top_content_padding";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "base";
- to_y: "top_content_padding";
- relative: 1.0 1.0;
- }
- align: 1.0 0.0;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- min: 0 80;
- fixed: 0 1;
- rel1 {
- to: "left_swallow_padding";
- relative : 1.0 1.0;
- }
- rel2 {
- to: "right_swallow_padding";
- relative: 0.0 1.0;
- }
- align: 0.0 0.5;
- }
- }
- }
-}
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC 20
-#define PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC 0 0 0 255
-#define PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC 224 224 224 255
-#define PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC 8
-
- group { name: "elm/progressbar/horizontal/gallery/list_progress";
- images {
- image: GALLERY_EDC_IMAGE_LIST_PROGRESS_BG COMP;
- image: GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR COMP;
- }
- parts {
- part { name: "elm.padding.left";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 0 0;
- fixed: 1 0;
- rel1 {
- relative: 0.0 0.0;
- offset: 0 0;
- }
- rel2 {
- relative: 0.0 1.0;
- offset: 0 0;
- }
- color: 0 0 0 0;
- align: 0.0 0.0;
- }
- }
- part { name: "elm.padding.right";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 0 0;
- fixed: 1 0;
- rel1 {
- relative: 1.0 0.0;
- offset: 0 0;
- }
- rel2 {
- relative: 1.0 1.0;
- offset: 0 0;
- }
- color: 0 0 0 0;
- align: 1.0 0.0;
- }
- }
- part { name: "elm.background.progressbar";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.padding.left";
- relative: 1.0 0.0;
- offset: 0 0;
- }
- rel2 {
- to_x: "elm.padding.right";
- relative: 0.0 1.0;
- offset: 0 0;
- }
- }
- }
- part { name: "elm.swallow.bar";
- mouse_events: 0;
- scale: 1;
- type: SWALLOW;
- description {
- min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
- max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
- state: "default" 0.0;
- rel1 {
- to: "elm.background.progressbar";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "elm.background.progressbar";
- relative: 1.0 1.0;
- }
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.5;
- rel1 {
- offset: 0 0;
- to_y: "elm.background.progressbar";
- }
- rel2 {
- offset: 0 -1;
- relative: 0.0 1.0;
- to_y: "elm.background.progressbar";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- rel2.offset: 4 -1;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 0.0 0.5;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.swallow.content";
- rel2.relative: 1.0 1.0;
- color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
- text {
- font: "SLP:style=Medium";
- text_class: "slp";
- size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
- min: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- text.min: 1 1;
- }
- }
- part { name: "background";
- mouse_events: 0;
- scale: 1;
- clip_to: "elm.background.progressbar";
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.swallow.bar";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "elm.swallow.bar";
- relative: 1.0 1.0;
- }
- image {
- normal: GALLERY_EDC_IMAGE_LIST_PROGRESS_BG;
- border: 0 0 1 1;
- }
- }
- }
- part { name: "elm.text.status";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 0;
- rel1 {
- to: "background";
- relative: 0.5 0.5;
- }
- rel2 {
- to: "background";
- relative: 0.5 0.5;
- }
- text {
- font: "SLP:style=Medium";
- text_class: "slp";
- size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
- min: 0 0;
- align: 0.5 0.0;
- }
- color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
- }
- description { state: "show" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- text.min: 1 1;
- }
- }
- part { name: "elm.progress.progressbar";
- mouse_events: 0;
- scale: 1;
- clip_to: "elm.background.progressbar";
- description {
- state: "default" 0.0;
- min: 0 0;
- fixed: 1 1;
- rel1 {
- to: "elm.swallow.bar";
- relative: 0.0 0.0;
- }
- rel2 {
- to_y: "elm.swallow.bar";
- to_x: "elm.cur.progressbar";
- offset: -1 -1;
- }
- image {
- normal: GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR;
- border: 0 0 1 1;
- }
- }
- description {
- state: "invert" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to_y: "elm.swallow.bar";
- to_x: "elm.cur.progressbar";
- }
- rel2 {
- to: "elm.swallow.bar";
- relative: 1.0 1.0;
- }
- }
- description {
- state: "state_begin" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to: "elm.swallow.bar";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "elm.swallow.bar";
- relative: 0.1 1.0;
- }
- }
- description {
- state: "state_end" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to: "elm.swallow.bar";
- relative: 0.9 0.0;
- }
- rel2 {
- to: "elm.swallow.bar";
- relative: 1.0 1.0;
- }
- }
- }
- part { name: "text-bar";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- clip_to: "progress-rect";
- //effect: SOFT_SHADOW;
- scale: 0;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- fixed: 1 1;
- visible: 0;
- rel1.to: "elm.text.status";
- rel1.offset: -1 -1;
- rel2.to: "elm.text.status";
- text {
- text_source: "elm.text.status";
- font: "SLP:style=Medium";
- text_class: "slp";
- size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
- min: 0 0;
- align: 0.0 0.0;
- }
- color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
- }
- description { state: "show" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- text.min: 1 1;
- }
- }
- part { name: "elm.cur.progressbar";
- mouse_events: 0;
- scale: 1;
- dragable {
- confine: "background";
- x: 1 1 1;
- y: 0 0 0;
- }
- description { state: "default" 0.0;
- min: 0 28;
- fixed: 1 1;
- visible: 0;
- rel1 {
- to: "background";
- relative: 0 0;
- }
- rel2.to: "background";
- }
- }
- part { name: "progress-rect";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.progress.progressbar";
- rel2.to: "elm.progress.progressbar";
- }
- }
- }
- programs {
- program { name: "label_show";
- signal: "elm,state,text,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "label_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "units_show";
- signal: "elm,state,units,visible";
- source: "elm";
- action: STATE_SET "show" 0.0;
- target: "text-bar";
- target: "elm.text.status";
- }
- program { name: "units_hide";
- signal: "elm,state,units,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "text-bar";
- target: "elm.text.status";
- }
- program { name: "slide_to_end";
- action: STATE_SET "state_end" 0.0;
- transition: LINEAR 0.5;
- target: "elm.progress.progressbar";
- after: "slide_to_begin";
- }
- program { name: "slide_to_begin";
- signal: "elm,state,slide,begin";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
- transition: LINEAR 0.5;
- after: "slide_to_end";
- }
- program { name: "start_pulse";
- signal: "elm,state,pulse,start";
- source: "elm";
- // after: "slide_to_end";
- }
- program { name: "stop_pulse";
- signal: "elm,state,pulse,stop";
- source: "elm";
- action: ACTION_STOP;
- target: "slide_to_begin";
- target: "slide_to_end";
- target: "start_pulse";
- //after: "state_pulse";
- }
- program { name: "state_pulse";
- signal: "elm,state,pulse";
- source: "elm";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
- after: "units_hide";
- }
- program { name: "state_fraction";
- signal: "elm,state,fraction";
- source: "elm";
- action: ACTION_STOP;
- target: "slide_to_begin";
- target: "slide_to_end";
- target: "start_pulse";
- action: STATE_SET "default" 0.0;
- target: "elm.progress.progressbar";
- }
- program { name: "set_invert_on";
- signal: "elm,state,inverted,on";
- source: "elm";
- action: STATE_SET "invert" 0.0;
- target: "elm.progress.progressbar";
- }
- program { name: "set_invert_off";
- signal: "elm,state,inverted,off";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.progress.progressbar";
- }
- }
- }
-
-
-/////Processing popup layout with label and progressbar //////
-//568 = 378 + 190
-group { name: "popup_processing";
-#define GL_POPUP_PROCESSINGVIEW_CONTENT_MIN 568 188
- parts {
- part { name: "base";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: GL_POPUP_PROCESSINGVIEW_CONTENT_MIN;
- fixed: 1 0;
- }
- }
- part { name:"pad_t";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 0 1;
- align: 0 0;
- rel1.to: "base";
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- }
- }
- part { name: "pad_l";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 45 0;
- max: 45 0;
- fixed: 1 1;
- rel1.to: "base";
- rel2.to: "base";
- align: 0.0 0.0;
- }
- }
- part { name: "pad_r";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 45 0;
- max: 45 0;
- fixed: 1 1;
- rel1.to: "base";
- rel2.to: "base";
- align: 1.0 1.0;
- }
- }
- part { name:"elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: 60 0;
- align: 0.0 0.0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 1.0;
- to_x: "pad_l";
- to_y: "pad_t";
- }
- rel2 {
- relative: 1.0 0.0;
- to_x: "pad_l";
- to_y: "pad_b";
- }
- }
- }
- part { name:"pad_after_content";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 45 0;
- fixed: 1 0;
- rel1 {
- relative: 1.0 0.0;
- to: "elm.swallow.content";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "elm.swallow.content";
- }
- }
- }
- part { name:"elm.swallow.text";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: 350 0;
- align: 0.0 0.0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 0.0;
- to: "pad_after_content";
- }
- rel2 {
- relative: 0.0 0.0;
- to_x: "pad_r";
- to_y: "pad_b";
- }
- }
- }
- part { name:"pad_b";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 30;
- fixed: 0 1;
- align: 1 1;
- rel1 {
- relative: 0.0 1.0;
- to: "base";
- }
- rel2.to: "base";
- }
- }
- }
-#undef GL_POPUP_PROCESSINGVIEW_CONTENT_MIN
-}
-
-#define POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_MIN_INC 0 70
-#define POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC 15 27
-#define POPUP_PROGRESSBAR_VIEW_LAYOUT_TEXT_FONT_SIZE_INC 0 38
-#define POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_INC 0 69
-#define POPUP_TEXT_FONT_SIZE 15
-
-
-group { name: "popup_text_progressbar_view_layout";
- styles {
- style { name: "popup_progress_style";
- base: "font=Tizen:style=Regular align=right font_size="14" color=#FFFFFF wrap=mixed ellipsis=1.0";
- tag: "br" "\n";
- tag: "tab" "\t";
- }
- style { name: "popup_processing_style";
- base: "font=Tizen:style=Regular align=left font_size="POPUP_TEXT_FONT_SIZE" color=#000000 wrap=mixed ellipsis=1.0";
- tag: "br" "\n";
- tag: "tab" "\t";
- }
- }
-
- parts {
- part { name: "bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_MIN_INC;
- fixed: 1 0;
- }
- }
- part { name: "pad_l_t";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
- max: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
- fixed: 1 1;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- }
- }
- part { name: "pad_r_t";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
- max: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
- fixed: 1 1;
- rel1.relative: 1.0 1.0;
- align: 1.0 1.0;
- }
- }
- part { name: "elm.text.description";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- min: POPUP_PROGRESSBAR_VIEW_LAYOUT_TEXT_FONT_SIZE_INC;
- rel1 {
- relative: 0.2 0.4;
- to: "bg";
- }
- rel2 {
- relative: 0.0 0.6;
- to_x: "pad_r_t";
- to_y: "bg";
- }
- text {
- style: "popup_processing_style";
- min: 0 1;
- }
- }
- }
- part { name: "progressbar_bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- min: POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_INC;
- rel1 {
- relative: 0.0 0.0;
- to_x: "bg";
- to_y: "elm.text.description";
- }
- rel2 {
- relative: 0.2 1.0;
- to_x: "bg";
- to_y: "elm.text.description";
- }
- }
- }
- part { name: "progressbar";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- rel1.to: "bg";
- rel2.to: "bg";
- }
- }
- part { name: "progressbar_left";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- rel1.to: "progressbar_bg";
- rel2.to: "progressbar_bg";
- }
- }
- }
-}
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define SELINFO_H 48
-#define SELINFO_ARROW_H (SELINFO_H-9)
-#define SELINFO_COLOR 0 0 0 0
-#define SELINFO_PAD_R 20
-
- group
- {
- name: "elm/standard/selectioninfo/gallery";
-
- images {
- image : GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL COMP;
- image : GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS COMP;
- image : GALLERY_EDC_IMAGE_BUTTON_REVEAL COMP;
- image : GALLERY_EDC_IMAGE_BUTTON_REVEAL_PRESS COMP;
- }
-
- parts {
- part {
- name: "bg";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- scale : 1;
- description {
- state: "default" 0.0;
- min: 0 SELINFO_H;
- fixed: 0 1;
- align: 0.5 1.0;
- rel1.relative: 0.0 1.0;
- color: SELINFO_COLOR;
- }
- }
- part { name: "right_padding";
- type: RECT;
- scale : 1;
- description {
- state: "default" 0.0;
- min: SELINFO_PAD_R SELINFO_H;
- fixed: 1 1;
- align: 0.5 1.0;
- rel1 { relative: 1.0 0.0; to: "bg"; }
- rel2 { relative: 1.0 1.0; to: "bg"; }
- color: 0 0 0 0;
- }
- }
- part { name: "arrow_image";
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- max: SELINFO_ARROW_H SELINFO_ARROW_H;
- align: 1.0 0.8;
- aspect: 1.0 1.0;
- fixed: 1 1;
- rel1 {relative: 0.0 0.0; to: "right_padding"; }
- rel2 {relative: 0.0 1.0; to: "right_padding"; }
- }
- description {
- state: "arrow_reveal" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL;
- }
- description {
- state: "arrow_press" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS;
- }
- }
- part {
- name: "arrow_center";
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- max: SELINFO_ARROW_H SELINFO_ARROW_H;
- align: 1.0 0.8;
- aspect: 1.0 1.0;
- fixed: 1 1;
- rel1 {relative: 0.0 0.0; to: "arrow_image";}
- rel2 {relative: 1.0 1.0; to: "arrow_image"; }
- }
- description {
- state: "arrow_reveal" 0.0;
- inherit: "default" 0.0;
- image.normal: GALLERY_EDC_IMAGE_BUTTON_REVEAL;
- visible: 1;
- }
- description {
- state: "arrow_press" 0.0;
- inherit: "default" 0.0;
- image.normal: GALLERY_EDC_IMAGE_BUTTON_REVEAL_PRESS;
- visible: 1;
- }
- }
- }
-
- programs {
- program { name: "arrow_click";
- signal: "mouse,down,1";
- source: "arrow_center";
- after: "arrow_click_anim";
- }
- program { name: "arrow_click_anim";
- script {
- set_state(PART:"arrow_image", "arrow_press", 0.0);
- set_state(PART:"arrow_center", "arrow_press", 0.0);
- }
- }
- program { name: "arrow_mouseout_clicked";
- signal: "mouse,up,1";
- source: "arrow_center";
- script {
- set_state(PART:"arrow_image", "arrow_reveal", 0.0);
- set_state(PART:"arrow_center", "arrow_reveal", 0.0);
- }
- }
- program { name: "arrow_click2";
- signal: "mouse,clicked,1";
- source: "arrow_center";
- action: SIGNAL_EMIT "elm,action,click" "arrow";
- }
- program {//show arrow
- name: "arrow_center_reveal";
- signal: "elm,selectioninfo,arrow_show";
- source: "elm";
- script {
- set_state(PART:"arrow_image", "arrow_reveal", 0.0);
- set_state(PART:"arrow_center", "arrow_reveal", 0.0);
- }
- }
- GL_GENGRID_SOUND("arrow_center")
- GL_GENGRID_PLARY_SOUND
- }
- }
-
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-#define GL_TL_TITLE_H 46
-
-#define TIME_VIEW_GENLIST_STYLE(NAME, Y) \
- group{ \
- name: "elm/genlist/item/"#NAME"/default"; \
- alias: "elm/genlist/item_compress/"#NAME"/default"; \
- alias: "elm/genlist/tree/"#NAME"/default"; \
- alias: "elm/genlist/tree_compress/"#NAME"/default";\
- data.item: "contents" "elm.swallow"; \
- data.item: "selectraise" "on"; \
- data.item: "stacking" "above"; \
- parts{ \
- part{ \
- name: "bg"; \
- type: RECT; \
- description{ \
- state: "default" 0.0; \
- color: 255 255 255 255; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- min: 0 Y; \
- max: -1 Y; \
- visible: 1; \
- } \
- } \
- part{ \
- name: "elm.swallow"; \
- type: SWALLOW; \
- description{ \
- state: "default" 0.0; \
- rel1 { relative: 0.0 0.0; to: "bg"; } \
- rel2 { relative: 1.0 1.0; to: "bg"; } \
- align: 0.5 0.5; \
- } \
- } \
- } \
- }
-
-#define PART_PADDING_LEFT( param_padding_size ) \
- part { name: "elm.padding.left"; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: param_padding_size 0; \
- fixed: 1 0; \
- visible: 0; \
- rel2.relative: 0.0 1.0; \
- align: 0.0 0.0; \
- } \
- }
-
-#define PART_PADDING_RIGHT( param_padding_size ) \
- part { name: "elm.padding.right"; \
- type: RECT; \
- scale: 1; \
- description { state: "default" 0.0; \
- min: param_padding_size 0; \
- fixed: 1 0; \
- visible: 0; \
- rel1.relative: 1.0 0.0; \
- align: 1.0 0.0; \
- } \
- }
-
-#define TL_BG \
- part { \
- name: "bg"; \
- type: RECT; \
- mouse_events: 1; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0.0 0.0; } \
- rel2 { relative: 1.0 1.0; } \
- color: GALLERY_EDC_COLOR_BG; \
- } \
- }
-
-#define TL_BG_C \
- part { \
- name: "bg_c"; \
- type: SWALLOW; \
- scale: 1; \
- mouse_events: 1; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: 0.0 0.0; to: "bg"; } \
- rel2 { relative: 1.0 1.0; to: "bg"; } \
- visible: 0; \
- } \
- }
-
-#define TL_TITLE_BG_TOP \
- part { name: "title_bg"; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 1 GL_TL_TITLE_H; \
- fixed: 0 1; \
- visible: 1; \
- rel2.relative: 1.0 0.0; \
- align: 0.0 0.0; \
- color: GALLERY_EDC_COLOR_BG; \
- } \
- description { \
- state: "hide" 0.0; \
- min: 0 0; \
- fixed: 0 1; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- align: 0.0 0.0; \
- } \
- }
-
-#define TL_TITLE_TOP \
- part { name: "title2"; \
- type: SWALLOW; \
- scale: 1; \
- clip_to: "title_clip2"; \
- description { \
- state: "default" 0.0; \
- min: 0 GL_TL_TITLE_H; \
- min: 999999 GL_TL_TITLE_H; \
- fixed: 1 1; \
- visible: 1; \
- rel1.relative: 0.0 0.0; \
- rel1.to: "title_bg"; \
- rel2.relative: 1.0 0.0; \
- rel2.to: "title_bg"; \
- align: 0.0 0.0; \
- } \
- description { \
- state: "hide" 0.0; \
- min: 0 0; \
- fixed: 0 1; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- align: 0.0 0.0; \
- } \
- description { \
- state: "top" 0.0; \
- inherit: "default" 0.0; \
- rel1.relative: 0.0 -1.0; \
- rel1.to: "title_bg"; \
- rel2.relative: 1.0 0.0; \
- rel2.to: "title_bg"; \
- } \
- description { \
- state: "bottom" 0.0; \
- inherit: "default" 0.0; \
- rel1.relative: 0.0 0.4; \
- rel1.to: "title_bg"; \
- rel2.relative: 1.0 1.4; \
- rel2.to: "title_bg"; \
- } \
- } \
- part { name: "title_clip2"; \
- type: RECT; \
- mouse_events: 0; \
- description { state: "default" 0.0; \
- rel1 { to: "title_bg"; } \
- rel2 { to: "title_bg"; } \
- color: 255 255 255 0; \
- } \
- description { state: "fade_in" 0.0; \
- rel1 { to: "title_bg"; } \
- rel2 { to: "title_bg"; } \
- color: 255 255 255 255; \
- } \
- } \
- part { name: "title"; \
- type: SWALLOW; \
- scale: 1; \
- clip_to: "title_clip"; \
- description { \
- state: "default" 0.0; \
- min: 0 GL_TL_TITLE_H; \
- min: 999999 GL_TL_TITLE_H; \
- fixed: 1 1; \
- visible: 1; \
- rel1.relative: 0.0 0.0; \
- rel1.to: "title_bg"; \
- rel2.relative: 1.0 0.0; \
- rel2.to: "title_bg"; \
- align: 0.0 0.0; \
- } \
- description { \
- state: "hide" 0.0; \
- min: 0 0; \
- fixed: 0 1; \
- visible: 0; \
- rel2.relative: 1.0 0.0; \
- align: 0.0 0.0; \
- } \
- description { \
- state: "top" 0.0; \
- inherit: "default" 0.0; \
- rel1.relative: 0.0 -0.6; \
- rel1.to: "title_bg"; \
- rel2.relative: 1.0 0.4; \
- rel2.to: "title_bg"; \
- } \
- description { \
- state: "bottom" 0.0; \
- inherit: "default" 0.0; \
- rel1.relative: 0.0 1.0; \
- rel1.to: "title_bg"; \
- rel2.relative: 1.0 2.0; \
- rel2.to: "title_bg"; \
- } \
- } part { name: "title_clip"; \
- type: RECT; \
- mouse_events: 0; \
- description { \
- state: "default" 0.0; \
- rel1 { to: "title_bg"; } \
- rel2 { to: "title_bg"; } \
- color: 255 255 255 255; \
- } \
- description { \
- state: "fade_out" 0.0; \
- rel1 { to: "title_bg"; } \
- rel2 { to: "title_bg"; } \
- color: 255 255 255 0; \
- } \
- }
-
-#define TL_SLIDER_PAD_BOT \
- part { name: "slider_padding_b"; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 8; \
- fixed: 0 1; \
- visible: 0; \
- rel1.relative: 0.0 1.0; \
- align: 0.0 1.0; \
- } \
- description { \
- state: "hide" 0.0; \
- inherit: "default" 0.0; \
- min: 0 0; \
- } \
- }
-
-#define TL_TITLE_BOTTOM \
- part { name: "title"; \
- type: SWALLOW; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 GL_TL_TITLE_H; \
- fixed: 0 1; \
- rel1.relative: 0.0 1.0; \
- align: 0.0 1.0; \
- } \
- }
-
-#define TL_TITLE_PAD_BOTTOM \
- part { name: "title_padding"; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 8; \
- fixed: 0 1; \
- visible: 0; \
- rel1 { relative: 0.0 0.0; to: "title"; } \
- rel2 { relative: 1.0 0.0; to: "title"; } \
- align: 0.0 1.0; \
- } \
- }
-
-#define TL_OVER_SOUND(src)
-#define TL_VARIABLE
-#define GL_TL_PLAY_SOUND
-#define GL_TL_OVER(to_obj)
-
-#define TL_FOCUS_BG(N) \
- part { \
- name: N"_focus_bg"; \
- type: IMAGE; \
- repeat_events: 1; \
- description { \
- state: "default" 0.0; \
- visible: 0; \
- rel1 { relative: 0.0 0.0; to: N; } \
- rel2 { relative: 1.0 1.0; to: N; } \
- image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS; \
- image.border: 13 13 13 13; \
- } \
- description { \
- state: "enabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- }
-
-#define TL_PG_FOCUS_BG(N) \
- program { \
- name: N"_go_mouse_down"; \
- signal: "mouse,down,1"; \
- source: N; \
- action: STATE_SET "enabled" 0.0; \
- target: N"_focus_bg"; \
- transition: ACCELERATE 0.2; \
- } \
- program { \
- name: N"_go_mouse_up"; \
- signal: "mouse,up,1"; \
- source: N; \
- action: STATE_SET "default" 0.0; \
- target: N"_focus_bg"; \
- transition: DECELERATE 0.2; \
- }
-
-#define TL_PADDING_LEFT(param_padding_name, param_padding_size, to_part) \
- part { name: to_part"_"param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: param_padding_size 0; \
- fixed: 1 0; \
- visible: 0; \
- rel1.to: to_part; \
- rel2.to: to_part; \
- rel2.relative: 1.0 0.0; \
- rel2.offset: -30 0; \
- align: 0.0 0.0; \
- } \
- }
-
-#define TL_PADDING_TOP(param_padding_name, param_padding_size, to_part) \
- part { name: to_part"_"param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 param_padding_size; \
- fixed: 0 1; \
- visible: 0; \
- rel1.to: to_part; \
- rel2.to: to_part; \
- rel2.relative: 1.0 0.0; \
- align: 0.0 0.0; \
- } \
- }
-
-#define TL_PADDING_BOT(param_padding_name, param_padding_size, to_part) \
- part { name: to_part"_"param_padding_name; \
- type: RECT; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- min: 0 param_padding_size; \
- fixed: 0 1; \
- visible: 0; \
- rel1.to: to_part; \
- rel2.to: to_part; \
- rel1.relative: 0.0 1.0; \
- align: 0.0 1.0; \
- } \
- }
-
-#define TL_PADDINGS(to_part) \
- TL_PADDING_LEFT("padding.left", 2, to_part); \
- TL_PADDING_LEFT("padding.right", 2+THUMB_CHECK_W, to_part); \
- TL_PADDING_TOP("padding.top", 10, to_part); \
- TL_PADDING_TOP("padding.bottom", 10+THUMB_CHECK_H, to_part); \
- TL_PADDING_LEFT("padding.left2", 2, to_part); \
- TL_PADDING_LEFT("padding.right2", 2+MODE_W, to_part); \
- TL_PADDING_BOT("padding.top2", 2+MODE_H, to_part); \
- TL_PADDING_BOT("padding.bottom2", 2, to_part); \
-
-#define TL_PART(part_name, rel1_x, rel1_y, rel1_to_x, rel1_to_y, rel2_x, rel2_y, rel2_to_x, rel2_to_y) \
- part { \
- name: part_name; \
- type: SWALLOW; \
- scale: 1; \
- description { \
- state: "default" 0.0; \
- rel1 { relative: rel1_x rel1_y; to_x: rel1_to_x; to_y: rel1_to_y; } \
- rel2 { relative: rel2_x rel2_y; to_x: rel2_to_x; to_y: rel2_to_y; } \
- } \
- } \
- TL_PADDINGS(part_name) \
- part { \
- name: part_name"_checkbox"; \
- type: SWALLOW; \
- description { \
- state: "default" 0.0; \
- rel1 {relative: 1.0 1.0; to_x: part_name"_padding.left"; to_y: part_name"_padding.top"; } \
- rel2 {relative: 1.0 1.0; to_x: part_name"_padding.right"; to_y: part_name"_padding.bottom"; } \
- } \
- } \
- TL_FOCUS_BG(part_name) \
- GL_TL_OVER(part_name)
-
-
-images {
- image : GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
-}
-
-group {
- name: "gallery/timeline_1";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_1_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_1_1");
- TL_OVER_SOUND("contents_1_1")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_1l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_1_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_1_1");
- TL_OVER_SOUND("contents_1_1")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_2";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_2_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 450/956, "elm.padding.right", "bg");
- TL_PART("contents_2_2", 1.0, (450+11)/956, "elm.padding.left", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_2_1");
- TL_PG_FOCUS_BG("contents_2_2");
- TL_OVER_SOUND("contents_2_1")
- TL_OVER_SOUND("contents_2_2")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_2l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_2_1", 1.0, 0.0, "elm.padding.left", "bg", (11+830)/1280, 1.0, "bg", "bg");
- TL_PART("contents_2_2", (11+830+11)/1280, 0.0, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_2_1");
- TL_PG_FOCUS_BG("contents_2_2");
- TL_OVER_SOUND("contents_2_1")
- TL_OVER_SOUND("contents_2_2")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_3";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_3_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 450/956, "elm.padding.right", "bg");
- TL_PART("contents_3_2", 1.0, (450+11)/956, "elm.padding.left", "bg", 450/720, 1.0, "bg", "bg");
- TL_PART("contents_3_3", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_3_1");
- TL_PG_FOCUS_BG("contents_3_2");
- TL_PG_FOCUS_BG("contents_3_3");
- TL_OVER_SOUND("contents_3_1")
- TL_OVER_SOUND("contents_3_2")
- TL_OVER_SOUND("contents_3_3")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_3l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_3_1", 1.0, 0.0, "elm.padding.left", "bg", (11+830)/1280, 1.0, "bg", "bg");
- TL_PART("contents_3_2", (11+830+11)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+181)/451, "elm.padding.right", "bg");
- TL_PART("contents_3_3", (11+830+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_3_1");
- TL_PG_FOCUS_BG("contents_3_2");
- TL_PG_FOCUS_BG("contents_3_3");
- TL_OVER_SOUND("contents_3_1")
- TL_OVER_SOUND("contents_3_2")
- TL_OVER_SOUND("contents_3_3")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_4";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_4_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 450/956, "bg", "bg");
- TL_PART("contents_4_2", (450+12)/720, 0.0, "bg", "contents_4_1", 0.0, 542/956, "elm.padding.right", "bg");
- TL_PART("contents_4_3", 1.0, (450+11)/956, "elm.padding.left", "bg", 450/720, 1.0, "bg", "bg");
- TL_PART("contents_4_4", (450+12)/720, (542+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_4_1");
- TL_PG_FOCUS_BG("contents_4_2");
- TL_PG_FOCUS_BG("contents_4_3");
- TL_PG_FOCUS_BG("contents_4_4");
- TL_OVER_SOUND("contents_4_1")
- TL_OVER_SOUND("contents_4_2")
- TL_OVER_SOUND("contents_4_3")
- TL_OVER_SOUND("contents_4_4")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_4l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_4_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
- TL_PART("contents_4_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
- TL_PART("contents_4_3", (11+415*2+11*2)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+181)/451, "elm.padding.right", "bg");
- TL_PART("contents_4_4", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_4_1");
- TL_PG_FOCUS_BG("contents_4_2");
- TL_PG_FOCUS_BG("contents_4_3");
- TL_PG_FOCUS_BG("contents_4_4");
- TL_OVER_SOUND("contents_4_1")
- TL_OVER_SOUND("contents_4_2")
- TL_OVER_SOUND("contents_4_3")
- TL_OVER_SOUND("contents_4_4")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_5";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_5_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 450/956, "bg", "bg");
- TL_PART("contents_5_2", (450+12)/720, 0.0, "bg", "contents_5_1", 0.0, 1.0, "elm.padding.right", "contents_5_1");
- TL_PART("contents_5_3", 1.0, (450+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
- TL_PART("contents_5_4", (236+12)/720, 0.0, "bg", "contents_5_3", 0.0, 240/495, "elm.padding.right", "contents_5_3");
- TL_PART("contents_5_5", (236+12)/720, (240+11)/495, "bg", "contents_5_3", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_5_1");
- TL_PG_FOCUS_BG("contents_5_2");
- TL_PG_FOCUS_BG("contents_5_3");
- TL_PG_FOCUS_BG("contents_5_4");
- TL_PG_FOCUS_BG("contents_5_5");
- TL_OVER_SOUND("contents_5_1")
- TL_OVER_SOUND("contents_5_2")
- TL_OVER_SOUND("contents_5_3")
- TL_OVER_SOUND("contents_5_4")
- TL_OVER_SOUND("contents_5_5")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_5l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_5_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
- TL_PART("contents_5_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
- TL_PART("contents_5_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
- TL_PART("contents_5_4", (11+415*2+11*2)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
- TL_PART("contents_5_5", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_5_1");
- TL_PG_FOCUS_BG("contents_5_2");
- TL_PG_FOCUS_BG("contents_5_3");
- TL_PG_FOCUS_BG("contents_5_4");
- TL_PG_FOCUS_BG("contents_5_5");
- TL_OVER_SOUND("contents_5_1")
- TL_OVER_SOUND("contents_5_2")
- TL_OVER_SOUND("contents_5_3")
- TL_OVER_SOUND("contents_5_4")
- TL_OVER_SOUND("contents_5_5")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_6";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_6_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 380/956, "bg", "bg");
- TL_PART("contents_6_2", (450+12)/720, 0.0, "bg", "contents_6_1", 0.0, 450/956, "elm.padding.right", "bg");
- TL_PART("contents_6_3", 1.0, (380+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
- TL_PART("contents_6_4", (236+12)/720, (380+11)/956, "bg", "bg", 450/720, (380+11+380)/956, "bg", "bg");
- TL_PART("contents_6_5", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "contents_6_4");
- TL_PART("contents_6_6", (236+12)/720, (380+11+380+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_6_1");
- TL_PG_FOCUS_BG("contents_6_2");
- TL_PG_FOCUS_BG("contents_6_3");
- TL_PG_FOCUS_BG("contents_6_4");
- TL_PG_FOCUS_BG("contents_6_5");
- TL_PG_FOCUS_BG("contents_6_6");
- TL_OVER_SOUND("contents_6_1")
- TL_OVER_SOUND("contents_6_2")
- TL_OVER_SOUND("contents_6_3")
- TL_OVER_SOUND("contents_6_4")
- TL_OVER_SOUND("contents_6_5")
- TL_OVER_SOUND("contents_6_6")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_6l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_6_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
- TL_PART("contents_6_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
- TL_PART("contents_6_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
- TL_PART("contents_6_4", (11+415*2+11*2)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
- TL_PART("contents_6_5", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", (11+415*2+11*2+202)/1280, 1.0, "bg", "bg");
- TL_PART("contents_6_6", (11+415*2+11*3+202)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_6_1");
- TL_PG_FOCUS_BG("contents_6_2");
- TL_PG_FOCUS_BG("contents_6_3");
- TL_PG_FOCUS_BG("contents_6_4");
- TL_PG_FOCUS_BG("contents_6_5");
- TL_PG_FOCUS_BG("contents_6_6");
- TL_OVER_SOUND("contents_6_1")
- TL_OVER_SOUND("contents_6_2")
- TL_OVER_SOUND("contents_6_3")
- TL_OVER_SOUND("contents_6_4")
- TL_OVER_SOUND("contents_6_5")
- TL_OVER_SOUND("contents_6_6")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_7";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_7_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 380/956, "bg", "bg");
- TL_PART("contents_7_2", (450+12)/720, 0.0, "bg", "contents_7_1", 0.0, 450/956, "elm.padding.right", "bg");
- TL_PART("contents_7_3", 1.0, (380+11)/956, "elm.padding.left", "bg", 236/720, (380+11+280)/956, "bg", "bg");
- TL_PART("contents_7_4", (236+12)/720, (380+11)/956, "bg", "bg", 450/720, (380+11+380)/956, "bg", "bg");
- TL_PART("contents_7_5", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "contents_7_4");
- TL_PART("contents_7_6", 1.0, (380+11+280+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
- TL_PART("contents_7_7", (236+12)/720, (380+11+380+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_7_1");
- TL_PG_FOCUS_BG("contents_7_2");
- TL_PG_FOCUS_BG("contents_7_3");
- TL_PG_FOCUS_BG("contents_7_4");
- TL_PG_FOCUS_BG("contents_7_5");
- TL_PG_FOCUS_BG("contents_7_6");
- TL_PG_FOCUS_BG("contents_7_7");
- TL_OVER_SOUND("contents_7_1")
- TL_OVER_SOUND("contents_7_2")
- TL_OVER_SOUND("contents_7_3")
- TL_OVER_SOUND("contents_7_4")
- TL_OVER_SOUND("contents_7_5")
- TL_OVER_SOUND("contents_7_6")
- TL_OVER_SOUND("contents_7_7")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_7l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_7_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
- TL_PART("contents_7_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
- TL_PART("contents_7_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
- TL_PART("contents_7_4", (11+415*2+11*2)/1280, 0.0, "bg", "bg", (11+415*2+11*2+202)/1280, (GL_TL_TITLE_H+8+203)/451, "bg", "bg");
- TL_PART("contents_7_5", (11+415*2+11*3+202)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
- TL_PART("contents_7_6", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", (11+415*2+11*2+202)/1280, 1.0, "bg", "bg");
- TL_PART("contents_7_7", (11+415*2+11*3+202)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_7_1");
- TL_PG_FOCUS_BG("contents_7_2");
- TL_PG_FOCUS_BG("contents_7_3");
- TL_PG_FOCUS_BG("contents_7_4");
- TL_PG_FOCUS_BG("contents_7_5");
- TL_PG_FOCUS_BG("contents_7_6");
- TL_PG_FOCUS_BG("contents_7_7");
- TL_OVER_SOUND("contents_7_1")
- TL_OVER_SOUND("contents_7_2")
- TL_OVER_SOUND("contents_7_3")
- TL_OVER_SOUND("contents_7_4")
- TL_OVER_SOUND("contents_7_5")
- TL_OVER_SOUND("contents_7_6")
- TL_OVER_SOUND("contents_7_7")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_8";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_8_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 380/956, "bg", "bg");
- TL_PART("contents_8_2", (450+12)/720, 0.0, "bg", "contents_8_1", 0.0, 450/956, "elm.padding.right", "bg");
- TL_PART("contents_8_3", 1.0, (380+11)/956, "elm.padding.left", "bg", 236/720, (380+11+280)/956, "bg", "bg");
- TL_PART("contents_8_4", (236+12)/720, (380+11)/956, "bg", "bg", 450/720, (380+11+380)/956, "bg", "bg");
- TL_PART("contents_8_5", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "contents_8_4");
- TL_PART("contents_8_6", 1.0, (380+11+280+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
- TL_PART("contents_8_7", (236+12)/720, (380+11+380+11)/956, "bg", "bg", (236+12+150)/720, 1.0, "bg", "bg");
- TL_PART("contents_8_8", (236+12+150+12)/720, 0.0, "bg", "contents_8_7", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_8_1");
- TL_PG_FOCUS_BG("contents_8_2");
- TL_PG_FOCUS_BG("contents_8_3");
- TL_PG_FOCUS_BG("contents_8_4");
- TL_PG_FOCUS_BG("contents_8_5");
- TL_PG_FOCUS_BG("contents_8_6");
- TL_PG_FOCUS_BG("contents_8_7");
- TL_PG_FOCUS_BG("contents_8_8");
- TL_OVER_SOUND("contents_8_1")
- TL_OVER_SOUND("contents_8_2")
- TL_OVER_SOUND("contents_8_3")
- TL_OVER_SOUND("contents_8_4")
- TL_OVER_SOUND("contents_8_5")
- TL_OVER_SOUND("contents_8_6")
- TL_OVER_SOUND("contents_8_7")
- TL_OVER_SOUND("contents_8_8")
- GL_TL_PLAY_SOUND
- }
-}
-
-group {
- name: "gallery/timeline_8l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
- TL_PART("contents_8_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
- TL_PART("contents_8_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
- TL_PART("contents_8_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415+11+202)/1280, 1.0, "bg", "bg");
- TL_PART("contents_8_4", (11+415+11+202+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
- TL_PART("contents_8_5", (11+415*2+11*2)/1280, 0.0, "bg", "bg", (11+415*2+11*2+202)/1280, (GL_TL_TITLE_H+8+203)/451, "bg", "bg");
- TL_PART("contents_8_6", (11+415*2+11*3+202)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
- TL_PART("contents_8_7", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", (11+415*2+11*2+202)/1280, 1.0, "bg", "bg");
- TL_PART("contents_8_8", (11+415*2+11*3+202)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
- }
- programs {
- TL_PG_FOCUS_BG("contents_8_1");
- TL_PG_FOCUS_BG("contents_8_2");
- TL_PG_FOCUS_BG("contents_8_3");
- TL_PG_FOCUS_BG("contents_8_4");
- TL_PG_FOCUS_BG("contents_8_5");
- TL_PG_FOCUS_BG("contents_8_6");
- TL_PG_FOCUS_BG("contents_8_7");
- TL_PG_FOCUS_BG("contents_8_8");
- TL_OVER_SOUND("contents_8_1")
- TL_OVER_SOUND("contents_8_2")
- TL_OVER_SOUND("contents_8_3")
- TL_OVER_SOUND("contents_8_4")
- TL_OVER_SOUND("contents_8_5")
- TL_OVER_SOUND("contents_8_6")
- TL_OVER_SOUND("contents_8_7")
- TL_OVER_SOUND("contents_8_8")
- GL_TL_PLAY_SOUND
- }
-}
-
-#define TL_15_ITEM(N, X, Y) \
- TL_PART("contents_15_"N, (224.6*(X-1)+(X-1)*12)/698, (181.6*(Y-1)+(Y-1)*12)/956, "contents_bg", "contents_bg", (224.6*X+(X-1)*12)/698, (181.6*Y+(Y-1)*12)/956, "contents_bg", "contents_bg");
-
-
-#define TL_15_PGS \
- TL_PG_FOCUS_BG("contents_15_1") \
- TL_PG_FOCUS_BG("contents_15_2") \
- TL_PG_FOCUS_BG("contents_15_3") \
- TL_PG_FOCUS_BG("contents_15_4") \
- TL_PG_FOCUS_BG("contents_15_5") \
- TL_PG_FOCUS_BG("contents_15_6") \
- TL_PG_FOCUS_BG("contents_15_7") \
- TL_PG_FOCUS_BG("contents_15_8") \
- TL_PG_FOCUS_BG("contents_15_9") \
- TL_PG_FOCUS_BG("contents_15_10") \
- TL_PG_FOCUS_BG("contents_15_11") \
- TL_PG_FOCUS_BG("contents_15_12") \
- TL_PG_FOCUS_BG("contents_15_13") \
- TL_PG_FOCUS_BG("contents_15_14") \
- TL_PG_FOCUS_BG("contents_15_15") \
- TL_OVER_SOUND("contents_15_1") \
- TL_OVER_SOUND("contents_15_2") \
- TL_OVER_SOUND("contents_15_3") \
- TL_OVER_SOUND("contents_15_4") \
- TL_OVER_SOUND("contents_15_5") \
- TL_OVER_SOUND("contents_15_6") \
- TL_OVER_SOUND("contents_15_7") \
- TL_OVER_SOUND("contents_15_8") \
- TL_OVER_SOUND("contents_15_9") \
- TL_OVER_SOUND("contents_15_10") \
- TL_OVER_SOUND("contents_15_11") \
- TL_OVER_SOUND("contents_15_12") \
- TL_OVER_SOUND("contents_15_13") \
- TL_OVER_SOUND("contents_15_14") \
- TL_OVER_SOUND("contents_15_15") \
- GL_TL_PLAY_SOUND
-
-
-group {
- name: "gallery/timeline_15";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
-
- part {
- name: "contents_bg";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 1.0 0.0; to_x: "elm.padding.left"; to_y: "bg"; }
- rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "bg"; }
- }
- }
-
- TL_15_ITEM(1, 1, 1)
- TL_15_ITEM(2, 2, 1)
- TL_15_ITEM(3, 3, 1)
- TL_15_ITEM(4, 1, 2)
- TL_15_ITEM(5, 2, 2)
- TL_15_ITEM(6, 3, 2)
- TL_15_ITEM(7, 1, 3)
- TL_15_ITEM(8, 2, 3)
- TL_15_ITEM(9, 3, 3)
- TL_15_ITEM(10, 1, 4)
- TL_15_ITEM(11, 2, 4)
- TL_15_ITEM(12, 3, 4)
- TL_15_ITEM(13, 1, 5)
- TL_15_ITEM(14, 2, 5)
- TL_15_ITEM(15, 3, 5)
- }
- programs {
- TL_15_PGS
- }
-}
-
-
-#define TL_15_ITEM_L(N, X, Y) \
- TL_PART("contents_15_"N, (242*(X-1)+(X-1)*12)/1258, (142.3*(Y-1)+(Y-1)*12)/451, "contents_bg", "contents_bg", (242*X+(X-1)*12)/1258, (142.3*Y+(Y-1)*12)/451, "contents_bg", "contents_bg");
-
-group {
- name: "gallery/timeline_15l";
-
- TL_VARIABLE
-
- parts {
- TL_BG
- TL_BG_C
- PART_PADDING_LEFT(11)
- PART_PADDING_RIGHT(11)
-
- part {
- name: "contents_bg";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 1.0 0.0; to_x: "elm.padding.left"; to_y: "bg"; }
- rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "bg"; }
- color: 255 0 0 100;
- }
- }
-
- TL_15_ITEM_L(1, 1, 1)
- TL_15_ITEM_L(2, 2, 1)
- TL_15_ITEM_L(3, 3, 1)
- TL_15_ITEM_L(4, 4, 1)
- TL_15_ITEM_L(5, 5, 1)
- TL_15_ITEM_L(6, 1, 2)
- TL_15_ITEM_L(7, 2, 2)
- TL_15_ITEM_L(8, 3, 2)
- TL_15_ITEM_L(9, 4, 2)
- TL_15_ITEM_L(10, 5, 2)
- TL_15_ITEM_L(11, 1, 3)
- TL_15_ITEM_L(12, 2, 3)
- TL_15_ITEM_L(13, 3, 3)
- TL_15_ITEM_L(14, 4, 3)
- TL_15_ITEM_L(15, 5, 3)
- }
- programs {
- TL_15_PGS
- }
-}
-
-group {
- name: "elm/gengrid/item/gallery/timeline_page/default";
-
- data.item: "contents" "elm.swallow.icon";
-
- parts {
- part {
- name: "bg";
- type: RECT;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- rel1 { relative: 0.0 0.0; offset: 0 0;}
- rel2 { relative: 1.0 1.0; offset: 0 0;}
- }
- }
- part {
- name: "icon_bg";
- type: RECT;
- scale : 1;
- description {
- state: "default" 0.0;
- align: 0.5 0.5;
- visible: 0;
- color: 0 0 0 0;
- rel1 { relative: 0.0 0.0;to:"bg"; }
- rel2 { relative: 1.0 1.0;to:"bg"; }
-
- }
- }
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- mouse_events: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "icon_bg"; }
- rel2 { relative: 1.0 1.0; to: "icon_bg"; }
- }
- }
- }
-}
-
-group {
- name: "naviframe_title";
- parts {
- part { name: "title_bg";
- type: RECT;
- mouse_events: 1;
- scale: 0;
- description {
- state: "default" 0.0;
- min: 0 111;
- align: 0.0 0.0;
- visible: 0;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- }
- }
- part { name: "top_left_padding";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 16 32;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1 { relative: 0.0 0.0; to: "title_bg"; }
- rel2 { relative: 0.0 0.0; to: "title_bg"; }
- visible: 0;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- }
- }
- part { name: "bottom_right_padding";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 16 11;
- fixed: 1 1;
- align: 1.0 1.0;
- rel1 { relative: 1.0 1.0; to: "title_bg"; }
- rel2 { relative: 1.0 1.0; to: "title_bg"; }
- visible: 0;
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- }
- }
- part { name: "title";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
- rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
- }
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- }
- }
- }
- programs {
- program { name: "title_show";
- signal: "elm,state,title,show";
- source: "elm";
- script {
- set_state(PART:"title_bg", "default", 0.0);
- set_state(PART:"top_left_padding", "default", 0.0);
- set_state(PART:"bottom_right_padding", "default", 0.0);
- set_state(PART:"title", "default", 0.0);
- }
- }
- program { name: "title_hide";
- signal: "elm,state,title,hide";
- source: "elm";
- script {
- set_state(PART:"title_bg", "hide", 0.0);
- set_state(PART:"top_left_padding", "hide", 0.0);
- set_state(PART:"bottom_right_padding", "hide", 0.0);
- set_state(PART:"title", "hide", 0.0);
- }
- }
- }
-}
-
-group {
- name: "naviframe_title_text";
- parts {
- part { name: "title_bg";
- type: RECT;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 126 68;
- fixed: 0 1;
- visible: 1;
- color: 255 0 255 155;
- }
- }
- part {
- name: "text";
- type: TEXT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 1;
- align: 0.0 0.5;
- rel1 { relative: 0.0 0.0; to: "title_bg"; }
- rel2 { relative: 1.0 1.0; to: "title_bg"; }
- color: 0 0 0 255;
- text {
- font: "Tizen:style=Medium";
- text_class: "tizen";
- size: 56;
- text: "";
- align: 0.0 0.5;
- }
- }
- }
- }
-}
-
-/* View layout to hold slider */
-group {
- name: "gallery/timeline";
-
- parts {
- TL_BG
- TL_BG_C
- TL_TITLE_BG_TOP
- TL_TITLE_TOP
- TL_SLIDER_PAD_BOT
-
- part {
- name: "elm.swallow.slider";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "title_bg"; }
- rel2 { relative: 1.0 0.0; to_x: "bg"; to_y: "slider_padding_b"; }
- }
- }
- }
- programs {
- program {
- name: "swallow_title_show";
- signal: "elm,swallow_title,state,show";
- source: "elm";
- script {
- set_state(PART:"title_bg", "default", 0.0);
- set_state(PART:"slider_padding_b", "default", 0.0);
- }
- }
- program {
- name: "swallow_slider_hide";
- signal: "elm,swallow_title,state,hide";
- source: "elm";
- script {
- set_state(PART:"title_bg", "hide", 0.0);
- set_state(PART:"slider_padding_b", "hide", 0.0);
- }
- }
- program {
- name: "title_fade_out";
- signal: "elm,action,title,fade_out";
- source: "elm";
- action: STATE_SET "fade_out" 0.0;
- transition: DECELERATE 0.5;
- target: "title_clip";
- }
- program {
- name: "title2_fade_in";
- signal: "elm,action,title2,fade_in";
- source: "elm";
- action: STATE_SET "fade_in" 0.0;
- transition: DECELERATE 0.5;
- target: "title_clip2";
- }
- program {
- name: "title2_show";
- signal: "elm,state,title2,show,deferred";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "title2";
- transition: DECELERATE 0.5;
- after: "show_finished";
- }
- program {
- name: "title_hide";
- signal: "elm,state,title,hide,deferred";
- source: "elm";
- action: STATE_SET "top" 0.0;
- target: "title";
- transition: DECELERATE 0.5;
- after: "hide_finished";
- }
- program {
- name: "title_show";
- signal: "elm,state,title,show";
- source: "elm";
- script {
- set_state(PART:"title_clip2", "default", 0.0);
- set_state(PART:"title_clip", "default", 0.0);
- set_state(PART:"title", "default", 0.0);
- }
- }
- program {
- name: "title2_created";
- signal: "elm,state,title2,created";
- source: "elm";
- script {
- set_state(PART:"title_clip2", "bottom", 0.0);
- set_state(PART:"title_clip", "top", 0.0);
- set_state(PART:"title2", "bottom", 0.0);
- }
- }
- program { name: "show_finished";
- action: SIGNAL_EMIT "elm,action,title2,show,finished" "";
- }
- program { name: "hide_finished";
- action: SIGNAL_EMIT "elm,action,title,hide,finished" "";
- }
- }
-}
-
-group{ name: "timeline_gridview";
- parts {
- part { name: "group_date_bg";
- type: RECT;
- description {
- rel1.relative : 0 0;
- rel2.relative : 1 1;
- min : 0 60;
- max: -1 60;
- align : 0 0;
- color: 255 255 255 255;
- }
- }
- part { name: "group_date";
- type: TEXT;
- scale: 1;
- description {
- rel1.relative : 0 0;
- rel1.to: "group_date_bg";
- rel2.relative : 1 1;
- rel2.to: "group_date_bg";
- text {
- text: "Select All";
- size: 16;
- align: 0.05 0.8;
- }
- color: 0 0 0 255;
- }
- }
- part { name: "grid";
- type: SWALLOW;
- description {
- rel1.relative : 0 1;
- rel1.to : "group_date_bg";
- rel2.relative : 1 1;
- align : 0 0;
- }
- }
- }
- script {
- public message(Msg_Type:type,id, ...)
- {
- if((type == MSG_INT) && (id == 2))
- {
- new a;
- new x, y;
- a = getarg(2);
- custom_state(PART:"grid","default",0.0);
- get_state_val(PART:"grid",STATE_MIN,x,y);
- set_state_val(PART:"grid",STATE_MIN,x,a);
- get_state_val(PART:"grid",STATE_MAX,x,y);
- set_state_val(PART:"grid",STATE_MAX,x,a);
- set_state(PART:"grid","custom",0.0);
- }
- }
- }
-}
-
-group{ name: "timeline_gridview_date_toast";
- parts {
- part{
- name: "bg";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- rel1.relative: 0 0;
- rel2.relative: 1 1;
- color: 255 255 255 255;
- }
- }
- part{
- name: "bg_left_vertical_line";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- rel1.relative: 0 0;
- rel2.relative: 0 1;
- rel1.to: "bg";
- rel2.to: "bg";
- min: 2 0;
- color: 0 0 255 255;
- }
- }
- part{
- name: "bg_right_vertical_line";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- rel1.relative: 1 0;
- rel2.relative: 1 1;
- rel1.to: "bg";
- rel2.to: "bg";
- min: 2 0;
- align: 0.5 0.5;
- color: 0 0 255 255;
- }
- }
- part{
- name: "bg_up_horizontal_line";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- rel1.relative: 0 0;
- rel2.relative: 1 0;
- rel1.to: "bg";
- rel2.to: "bg";
- min: 0 2;
- color: 0 0 255 255;
- }
- }
- part{
- name: "bg_down_horizontal_line";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- rel1.relative: 0 1;
- rel2.relative: 1 1;
- rel1.to: "bg";
- rel2.to: "bg";
- min: 0 2;
- color: 0 0 255 255;
- }
- }
- part{
- name: "text";
- type: TEXT;
- mouse_events: 1;
- repeat_events: 1;
- description {
- rel1.relative: 0 0;
- rel1.to: "bg";
- rel2.relative: 1 1;
- rel2.to: "bg";
- text {
- text: "Day";
- size: 32;
- align: 0.5 0.5;
- }
- color: 0 0 255 255;
- }
- }
- }
-}
-
-group{
- name: "elm/genlist/item/genlist_group_date/default";
- alias: "elm/genlist/item_compress/genlist_group_date/default";
- alias: "elm/genlist/tree/genlist_group_date/default";
- alias: "elm/genlist/tree_compress/genlist_group_date/default";
- data.item: "texts" "elm.text";
- data.item: "contents" "elm.swallow";
- data.item: "selectraise" "on";
- data.item: "stacking" "above";
- parts{
- part{
- name: "bg";
- type: RECT;
- description{
- state: "default" 0.0;
- color: 255 255 255 255;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- min: 0 60;
- max: -1 200;
- visible: 1;
- }
- }
- part{
- name: "elm.text";
- type: TEXT;
- scale: 1;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.05 0.0; to: "bg"; }
- rel2 { relative: 1.0 1.0; to: "bg"; }
- color: 0 0 0 255;
- text{
- size: 16;
- align: 0.0 0.5;
- }
- }
- }
- part{
- name: "elm.swallow";
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.6 0.0; to: "bg"; }
- rel2 { relative: 1.0 1.0; to: "bg"; }
- align: 0.5 0.5;
- }
- }
- }
-}
-
-TIME_VIEW_GENLIST_STYLE(content_180, 180)
-TIME_VIEW_GENLIST_STYLE(content_240, 240)
-TIME_VIEW_GENLIST_STYLE(content_90, 90)
-TIME_VIEW_GENLIST_STYLE(content_214, 214)
-TIME_VIEW_GENLIST_STYLE(content_183,183)
-TIME_VIEW_GENLIST_STYLE(content_128, 128)
-TIME_VIEW_GENLIST_STYLE(content_135, 135)
-TIME_VIEW_GENLIST_STYLE(content_68, 68)
-TIME_VIEW_GENLIST_STYLE(content_160, 160)
-TIME_VIEW_GENLIST_STYLE(content_138, 138)
-TIME_VIEW_GENLIST_STYLE(content_96, 96)
-TIME_VIEW_GENLIST_STYLE(content_120, 120)
-TIME_VIEW_GENLIST_STYLE(content_60, 60)
-TIME_VIEW_GENLIST_STYLE(content_134, 134)
-TIME_VIEW_GENLIST_STYLE(content_115, 115)
-TIME_VIEW_GENLIST_STYLE(content_80, 80)
-
-group {
- name: "timeline";
- parts {
- part {
- name : "elm.rect";
- type: RECT;
- description {
- state : "default" 0.0;
- rel1.relative: 0 0;
- rel2.relative: 1 1;
- align : 0 0;
- color : 255 255 255 255;
- }
- }
- part {
- name : "elm.swallow";
- type: SWALLOW;
- description {
- state : "default" 0.0;
- rel1.relative: 0 0;
- rel2.relative: 1 1;
- align : 0 0;
- }
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-
- #define RESOURCE_IMAGE( FILE_NAME ) \
- group { \
- name: FILE_NAME; \
- images.image: FILE_NAME COMP; \
- parts { \
- part { name: "image"; \
- description { \
- state: "default" 0.0; \
- image.normal: FILE_NAME; \
- aspect: 1 1; \
- aspect_preference: BOTH; \
- } \
- } \
- } \
- }
-
-#define RESOURCE_IMAGE_LOSSY( FILE_NAME ) \
- group { \
- name: FILE_NAME; \
- images.image: FILE_NAME LOSSY 85; \
- parts { \
- part { name: "image"; \
- description { \
- state: "default" 0.0; \
- image.normal: FILE_NAME; \
- aspect: 1 1; \
- aspect_preference: BOTH; \
- } \
- } \
- } \
- }
-
-collections {
- RESOURCE_IMAGE("T01_icon_lock.png");
- RESOURCE_IMAGE("T01_album_icon_camera.png");
- RESOURCE_IMAGE("T01_album_icon_download.png");
- RESOURCE_IMAGE("T01_album_icon_folder.png");
- RESOURCE_IMAGE("T01_album_icon_sd_card.png");
- RESOURCE_IMAGE("T01_icon_camera_all.png");
- RESOURCE_IMAGE("T01_icon_add_folder.png");
- RESOURCE_IMAGE("T01_title_icon_select_all.png");
- RESOURCE_IMAGE("T01_btn_thumbnail_play.png");
- RESOURCE_IMAGE("T01_icon_thumbnail_bookmark.png");
-
- RESOURCE_IMAGE("T01_icon_sound_shot.png");
- RESOURCE_IMAGE("T01_icon_panorama.png");
- RESOURCE_IMAGE("T01_icon_bustshot_45x45.PNG");
-
- RESOURCE_IMAGE("T01_popup_icon_new_album.png");
- RESOURCE_IMAGE("T01_popup_icon_slideshow.png");
- RESOURCE_IMAGE("T01_icon_share.png");
- RESOURCE_IMAGE("T01_popup_copy.png");
- RESOURCE_IMAGE("T01_popup_move.png");
- RESOURCE_IMAGE("T02_popup_icon_edit_image.png");
- RESOURCE_IMAGE("T02_popup_icon_settings.png");
- RESOURCE_IMAGE("T01_popup_icon_rotate_right.png");
- RESOURCE_IMAGE("T01_popup_icon_rotate_left.png");
- RESOURCE_IMAGE("T01_popup_icon_edit.png");
- RESOURCE_IMAGE("T01_popup_icon_delete.png");
- RESOURCE_IMAGE("T01_popup_icon_done.png");
- RESOURCE_IMAGE("T01_popup_icon_rename.png");
- RESOURCE_IMAGE("T01_nocontents_videos.png");
- RESOURCE_IMAGE("T01_icon_back.png");
- RESOURCE_IMAGE("gallery_list_icon_folder.png");
- RESOURCE_IMAGE("gallery_list_icon_my_files_sd_card.png");
-}
-
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define GL_RES_IMG(image_name) image: image_name COMP
+
+/* Definition of image path used in edc file */
+
+/* gl-nocontents.edc */
+#define GALLERY_EDC_IMAGE_NOCONTENTS_PIC "T01_nocontents_videos.png"
+
+/* gl-places-marker.edc */
+#define GALLERY_EDC_IMAGE_PLACES_MARKER1 "T01_places_marker_01.png"
+
+/* gl-selection-notification.edc */
+#define GALLERY_EDC_IMAGE_BUTTON_REVEAL "00_button_reveal.png"
+#define GALLERY_EDC_IMAGE_BUTTON_REVEAL_PRESS "00_button_reveal_press.png"
+#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL "T01_button_circle_bg_normal.png"
+#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS "T01_button_circle_bg_normal_press.png"
+
+/* gl-gengrid.edc */
+#define GALLERY_EDC_IMAGE_OS_LEFT "00_overscrolling_left.png"
+#define GALLERY_EDC_IMAGE_OS_RIGHT "00_overscrolling_right.png"
+
+/* gl-gengrid-item-albums.edc */
+#define GALLERY_EDC_IMAGE_EDIT_EFFECT_BG "T01_editl_effect.png"
+#define GALLERY_EDC_IMAGE_ALBUM_BG "T01_album_folder_bg.png"
+
+/* gl-gengrid-item-thumbview.edc */
+#define GALLERY_EDC_IMAGE_BUTTON_PLAY "T01_btn_play.png"
+#define GALLERY_EDC_IMAGE_BUTTON_VIDEO_PLAY "T01_video_play.png"
+#define GALLERY_EDC_IMAGE_BUSTSHOT "T01_thumbs_bustshot_bg.png"
+#define GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS "00_thumbs_bg_focus.png"
+#define GALLERY_EDC_IMAGE_BADGE_BG "00_badge_bg.png"
+
+/* gl-places-ctxpopup.edc */
+#define GALLERY_EDC_IMAGE_POPUP_SCROLL "00_popup_scroll.png"
+#define GALLERY_EDC_IMAGE_PLACES_THUMB_BG "T01_places_thumbnail_bg.png"
+
+/* gl-genlist-group-webalbum.edc */
+
+/* gallery.edc */
+#define GALLERY_EDC_IMAGE_CONTROL_TABBAR_BG "00_winset_title_tabbar_bg.png"
+
+/* gl-button.edc */
+#define GALLERY_EDC_IMAGE_BTN_GRIDVIEW "T01_bubble_icon_gridview.png"
+#define GALLERY_EDC_IMAGE_BTN_FOOTSTEPS "T01_bubble_icon_footsteps.png"
+
+#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG "T01_album_edit_rename_bg.png"
+#define GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESSED "T01_album_edit_rename_bg_press.png"
+#define GALLERY_EDC_IMAGE_BTN_RENAME "T01_album_edit_rename.png"
+#define GALLERY_EDC_IMAGE_BTN_RENAME_PRESS "T01_album_edit_rename_press.png"
+
+#define GALLERY_EDC_SOUND_TOUCH_30MS "S_Touch_30ms.wav"
+
+/* gl-check.edc */
+#define GALLERY_EDC_IMAGE_CHECK_BG "T01_checkbox.png"
+#define GALLERY_EDC_IMAGE_CHECK_ALBUM_BG "T01_album_edit_check_bg.png"
+#define GALLERY_EDC_IMAGE_CHECK_BG_DIM "00_check_bg_dim.png"
+#define GALLERY_EDC_IMAGE_CHECK_BG_CHECKING "T01_check.png"
+#define GALLERY_EDC_IMAGE_CHECK_ALBUM_EDIT_CHECKON "T01_album_edit_check_on.png"
+
+/* gl-entry.edc */
+#define GALLERY_EDC_IMAGE_EDITFIELD_CLEAR "00_EditField_clear.png"
+#define GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG "00_search_edit_field_bg.png"
+#define GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG_FOCUS "00_search_edit_field_bg_focus.png"
+
+/* gl-progressbar.edc */
+#define GALLERY_EDC_IMAGE_LIST_PROGRESS_BG "00_winset_list_progress_bg.png"
+#define GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR "T01_gallery_album_progress_bar.png"
+
+/* gl-slider.edc */
+#define GALLERY_EDC_IMAGE_GIRD_OS_TOP "00_grid_overscrolling_top.png"
+#define GALLERY_EDC_IMAGE_GIRD_OS_BOT "00_grid_overscrolling_bottom.png"
+#define GALLERY_EDC_IMAGE_GIRD_OS_LEFT "00_grid_overscrolling_left.png"
+#define GALLERY_EDC_IMAGE_GIRD_OS_RIGHT "00_grid_overscrolling_right.png"
+
+/* gl-ctxpopup.edc */
+#define GALLERY_EDC_IMAGE_POPUP_SCROLL_V "00_popup_scroll_v.png"
+#define GALLERY_EDC_IMAGE_POPUP_SCROLL_H "00_popup_scroll_h.png"
+#define GALLERY_EDC_IMAGE_POPUP_DORPDOWN_BG "00_popup_dropdown_bg.png"
+#define GALLERY_EDC_IMAGE_MORE_POPUP_PRESS "00_more_popup_press.png"
+#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_TOP "00_popup_overscrolling_top.png"
+#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_BOTTOM "00_popup_overscrolling_bottom.png"
+#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_RIGHT "00_popup_overscrolling_right.png"
+#define GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_LEFT "00_popup_overscrolling_left.png"
+#define GALLERY_EDC_IMAGE_OS_TOP "00_overscrolling_top.png"
+
+/* gl-expanded-title.edc */
+#define GALLERY_EDC_IMAGE_TITLE_BG "00_title_bg.png"
+#define GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG "00_popup_dropdown_title_bg.png"
+#define GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS "00_popup_dropdown_title_bg_press.png"
+#define GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_FOCUS "00_popup_dropdown_title_bg_focus.png"
+#define GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW_PRESS "00_button_icon_arrow_press.png"
+#define GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW "00_button_icon_arrow.png"
+#define GALLERY_EDC_IMAGE_BACK_BUTTON "T01_icon_back.png"
+#define GALLERY_EDC_DELETE_SHOW_IMAGE_BG "gallery_icon_container.png"
+#define GALLERY_EDC_DELETE_SHOW_IMAGE "gallery_icon_full.png"
+#define GALLERY_EDC_SD_CARD_ICON "T01_album_icon_sd_card.png"
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+/* Use genlist style for pinch out */
+
+#define INDICATOR_H 27
+#define NAVI_H 67
+#define GALLERY_EDC_COLOR_THEME_GRAY 91 91 91 255
+#define GALLERY_EDC_COLOR_BG 0 0 0 255
+#define ENTRY_H 112
+#define ENTRY_MAX_W 1280
+#define TABBAR_DEFAULT_HEIGHT_INC 111
+#define TABBAR_HORIZONTAL_HEIGHT_INC 91
+/* Set select all bg color same as genlist */
+#define SELECT_ALL_BG_HEIGHT_INC 112
+#define NAVIFRAME_TITLE_BG_COLOR_INC 248 246 239 255
+
+#define POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 15
+#define POPUP_EDITFIELD_LAYOUT_MINMAX_HEIGHT_INC 56
+
+#include "gallery-edc-res.h"
+#define LAYOUT_WIDTH 500
+#define LAYOUT_HEIGHT 300
+#define CENTER_PADDING_WIDTH 5
+#define YOUR_THEME_BASE_SCALE 1 // 2.6 is default base scale for Tizen 2.4 HD.
+externals {
+ external: "elm";
+ external: "feedback";
+}
+
+collections {
+ plugins {
+ plugin {
+ name: "touch_sound_plugin";
+ source: "feedback";
+ param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP
+ /* 2014.06.11 updated from libsvi(feedback)
+ Above plugin will run below external function:
+ int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
+ param1: feedback_type_e
+ FEEDBACK_TYPE_NONE = 0,
+ FEEDBACK_TYPE_SOUND = 1,
+ FEEDBACK_TYPE_VIBRATION,
+ FEEDBACK_TYPE_LED,
+ FEEDBACK_TYPE_END
+
+ * param2 enumeration:
+ FEEDBACK_PATTERN_TAP = 0,
+ FEEDBACK_PATTERN_SIP,
+ FEEDBACK_PATTERN_SIP_BACKSPACE,
+ FEEDBACK_PATTERN_SIP_FUNCTION,
+ FEEDBACK_PATTERN_SIP_FJKEY,
+ ...
+
+ * For more information please refer libsvi.
+ */
+ }
+ }
+
+ #include "gl-macro.edc"
+ #include "gl-expanded-title.edc"
+ #include "gl-ctxpopup.edc"
+ #include "gl-gengrid.edc"
+ #include "gl-gengrid-item-ctxpopup.edc"
+ #include "gl-gengrid-item-thumbview.edc"
+ #include "gl-gengrid-item-albums.edc"
+ #include "gl-selection-notification.edc"
+ #include "gl-naviframe.edc"
+ #include "gl-button.edc"
+ #include "gl-check.edc"
+ #include "gl-label.edc"
+ #include "gl-nocontents.edc"
+ #include "gl-entry.edc"
+ #include "gl-timeline.edc"
+ #include "gl-progressbar.edc"
+ #include "gl-popup-entry.edc"
+ base_scale: YOUR_THEME_BASE_SCALE;
+
+ group{ name: "list_popup_swallow_ly";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ description {
+ rel1.relative : 0 0;
+ rel2.relative : 1 1;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "list";
+ type: SWALLOW;
+ description {
+ rel1.relative : 0 0;
+ rel1.to : "bg";
+ rel2.relative : 1 1;
+ rel2.to : "bg";
+ }
+ }
+ }
+ script {
+ public message(Msg_Type:type,id, ...)
+ {
+ if((type == MSG_INT) && (id == 2))
+ {
+ new a;
+ new x, y;
+ a = getarg(2);
+ custom_state(PART:"bg","default",0.0);
+ get_state_val(PART:"bg",STATE_MIN,x,y);
+ set_state_val(PART:"bg",STATE_MIN,x,a);
+ get_state_val(PART:"bg",STATE_MAX,x,y);
+ set_state_val(PART:"bg",STATE_MAX,x,a);
+ set_state(PART:"bg","custom",0.0);
+ }
+ }
+ }
+ }
+
+ group { name: "list_popup_content_ly";
+ parts {
+ part { name : "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name : "bg1";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "bg";
+ rel2.relative: 1.0 0.5;
+ rel2.to: "bg";
+ color: 255 255 255 255;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 165 197 210 255;
+ }
+ }
+ part { name : "bg2";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.5;
+ rel1.to: "bg";
+ rel1.offset: 0 2;
+ rel2.relative: 1.0 1.0;
+ rel2.to: "bg";
+ color: 255 255 255 255;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 165 197 210 255;
+ }
+ }
+ part { name : "septator";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.5;
+ rel1.to: "bg";
+ //rel1.offset: 0 2;
+ rel2.relative: 1.0 0.5;
+ rel2.to: "bg";
+ min: 0 2;
+ max: -1 2;
+ align: 0 0.5;
+ color: 165 197 210 255;
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXT;
+ mouse_events: 1;
+ repeat_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "bg1";
+ rel2.relative: 0.0 1.0;
+ rel2.to: "bg1";
+ min: 200 55;
+ max: 200 55;
+ align: 0 0;
+ text {
+ text: "Time";
+ size: 16;
+ align: 0.1 0.5;
+ }
+ color: 23 23 23 255;
+ }
+ }
+ part {
+ name: "elm.swallow";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.8 0.3;
+ rel1.to: "bg1";
+ rel2.relative: 1.0 0.7;
+ rel2.to: "bg1";
+ align: 1.0 0.5;
+ }
+ }
+ part {
+ name: "elm.text.second";
+ type: TEXT;
+ mouse_events: 1;
+ repeat_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "bg2";
+ rel2.relative: 0.0 1.0;
+ rel2.to: "bg2";
+ min: 200 55;
+ max: 200 55;
+ align: 0 0;
+ text {
+ text: "Album";
+ size: 16;
+ align: 0.1 0.5;
+ }
+ color: 23 23 23 255;
+ }
+ }
+ part {
+ name: "elm.swallow.second";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.8 0.3;
+ rel1.to: "bg2";
+ rel2.relative: 1.0 0.7;
+ rel2.to: "bg2";
+ align: 1.0 0.5;
+ }
+ }
+ part { name : "button1";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "bg";
+ rel2.relative: 1.0 0.5;
+ rel2.to: "bg";
+ }
+ }
+ part { name : "button2";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.5;
+ rel1.to: "bg";
+ rel1.offset: 0 2;
+ rel2.relative: 1.0 1.0;
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program{ name: "item_1_clicked";
+ source: "bg1";
+ signal: "mouse,down,1";
+ action: STATE_SET "pressed" 0.0;
+ target: "bg1";
+ }
+ program{ name: "item_2_clicked";
+ source: "bg2";
+ signal: "mouse,down,1";
+ action: STATE_SET "pressed" 0.0;
+ target: "bg2";
+ }
+ program{ name: "item_1_released";
+ source: "bg1";
+ signal: "mouse,up,1";
+ action: STATE_SET "default" 0.0;
+ target: "bg1";
+ }
+ program{ name: "item_2_released";
+ source: "bg2";
+ signal: "mouse,up,1";
+ action: STATE_SET "default" 0.0;
+ target: "bg2";
+ }
+ }
+
+ }
+
+ group { name: "popup_input_text";
+ parts {
+ part { name: "pad_l";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
+ fixed: 1 0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "pad_r";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
+ fixed: 1 0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 POPUP_EDITFIELD_LAYOUT_MINMAX_HEIGHT_INC;
+ max: -1 POPUP_EDITFIELD_LAYOUT_MINMAX_HEIGHT_INC;
+ align: 0.5 0.5;
+ rel1{
+ relative: 1.0 0.0 ;
+ to_x: "pad_l";
+ }
+ rel2{
+ relative: 0.0 1.0;
+ to_x: "pad_r";
+ }
+ }
+ }
+ }
+ }
+
+ group
+ {
+ name: "gallery/gridview";
+ images {
+ image: GALLERY_EDC_IMAGE_CONTROL_TABBAR_BG COMP;
+ }
+ parts {
+ part {
+ name: "background";
+ type, RECT;
+ //mouse_events: 1;
+ //scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "contents";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "background"; }
+ rel2 { relative: 1.0 1.0; to: "background";}
+ }
+ }
+ part {
+ name: "gesture";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "contents";}
+ rel2 { relative: 1.0 1.0; to: "contents";}
+ }
+
+ }
+ }
+ }
+
+ group {
+ name: "gallery/layout";
+ parts {
+ part {
+ name: "background";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ color: 255 255 255 0;
+ }
+ }
+ part {
+ name: "split.view.bg.color";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: split.view; }
+ rel2 { relative: 1.0 1.0; to: split.view; }
+ color: 230 230 230 255;
+ }
+ }
+ part {
+ name: "split.view";
+ type: SWALLOW;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 0;
+ max: 0 0;
+ align: 0 0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ }
+ description {
+ state: "visible" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 179/540 1.0; }
+ fixed: 1 0;
+ min: 0 0;
+ max: -1 -1;
+ }
+ }
+ part {
+ name: "select.all.area.bg";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ align: 0 0;
+ rel1 { relative: 1.0 0.0; to: "split.view"; }
+ rel2 { relative: 1.0 1.0; }
+ color: 255 255 255 255;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: -1 60;
+ }
+ }
+ part {
+ name: "select.all.area.label";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 24/540 0.0; to: "select.all.area.bg";}
+ rel2 { relative: 0.6 1.0; to: "select.all.area.bg";}
+ text {
+ text: "Select All";
+ size: 16;
+ align: 0.0 0.5;
+ }
+ color: 0 0 255 255;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "select.all.area.check";
+ type: SWALLOW;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 1.0 0.1; to: "select.all.area.bg"; offset: -60 0;}
+ rel2 { relative: 1.0 0.9; to: "select.all.area.bg";}
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "select.all.area.check.fg";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0 0; to: "select.all.area.check";}
+ rel2 { relative: 1 1; to: "select.all.area.check";}
+ align: 1 0.5;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+
+ }
+ part {
+ name: "contents";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "background"; }
+ rel2 { relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "elm.swallow.view";
+ type: SWALLOW;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to: "select.all.area.bg";}
+ rel2 { relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "elm.swallow.date.layout";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.3 0.4; to: "elm.swallow.view";}
+ rel2 { relative: 0.7 0.5; to: "elm.swallow.view";}
+ }
+ description {
+ state: "landscape" 0.0;
+ rel1 { relative: 0.38 0.41; to: "elm.swallow.view";}
+ rel2 { relative: 0.61 0.58; to: "elm.swallow.view";}
+ }
+ }
+ part {
+ name: "gesture";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.swallow.view";}
+ rel2 { relative: 1.0 1.0; to: "elm.swallow.view";}
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+ script {
+ public message(Msg_Type:type,id, ...)
+ {
+ if((type == MSG_INT) && (id == 1))
+ {
+ new a;
+ a = getarg(2);
+ custom_state(PART:"split.view","default",0.0);
+ set_state_val(PART:"split.view",STATE_MAX,a,-1);
+ set_state(PART:"split.view","custom",0.0);
+ }
+ if((type == MSG_INT) && (id == 2))
+ {
+ new a;
+ new x, y;
+ a = getarg(2);
+ custom_state(PART:"select.all.area.bg","default",0.0);
+ get_state_val(PART:"select.all.area.bg",STATE_MAX,x,y);
+ set_state_val(PART:"select.all.area.bg",STATE_MIN,0,60);
+ set_state_val(PART:"select.all.area.bg",STATE_MAX,a,60);
+ set_state(PART:"select.all.area.bg","custom",0.0);
+ }
+ }
+ }
+
+ programs
+ {
+ program {
+ name: "rotate_timeline_view_info_landscape";
+ signal: "timelineview,landscape";
+ source: "*";
+ action: STATE_SET "landscape" 0.0;
+ target: "elm.swallow.date.layout";
+ }
+ program {
+ name: "rotate_timeline_view_info_portrait";
+ signal: "timelineview,portrait";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.date.layout";
+ }
+ program {
+ name: "swallow_view_default";
+ signal: "elm,swallow_view,state,default";
+ source: "elm";
+ script {
+ set_state(PART:"elm.swallow.view", "default", 0.0);
+ }
+ }
+ program {
+ name: "gesture_default";
+ signal: "elm,gesture,state,default";
+ source: "elm";
+ script {
+ set_state(PART:"gesture", "default", 0.0);
+ }
+ }
+ program {
+ name: "gesture_disabled";
+ signal: "elm,gesture,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"gesture", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "selectall_visible";
+ signal: "elm,selectall,state,visible";
+ source: "elm";
+ script {
+ set_state(PART:"select.all.area.label", "visible", 0.0);
+ set_state(PART:"select.all.area.check", "visible", 0.0);
+ set_state(PART:"select.all.area.check.fg", "visible", 0.0);
+ }
+ }
+ program {
+ name: "selectall_visible_bg";
+ signal: "elm,selectall,state,visible,bg";
+ source: "elm";
+ script {
+ set_state(PART:"select.all.area.bg", "visible", 0.0);
+ }
+ }
+ program {
+ name: "selectall_default";
+ signal: "elm,selectall,state,default";
+ source: "elm";
+ script {
+ set_state(PART:"select.all.area.label", "default", 0.0);
+ set_state(PART:"select.all.area.check", "default", 0.0);
+ set_state(PART:"select.all.area.bg", "default", 0.0);
+ set_state(PART:"select.all.area.check", "default", 0.0);
+ }
+ }
+ program {
+ name: "split_view_default";
+ signal: "elm,splitview,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "split.view";
+ transition : LINEAR 0.5;
+ }
+ program {
+ name: "split_view_visible";
+ signal: "elm,splitview,state,visible";
+ source: "elm";
+ action: STATE_SET "custom" 0.0;
+ target: "split.view";
+ transition : LINEAR 0.5;
+ }
+ program {
+ name: "touch_snd";
+ signal : "mouse,clicked,1";
+ source : "select.all.area.check.fg";
+ action: RUN_PLUGIN "touch_sound_plugin";
+ }
+ }
+ }
+
+ #define GL_ALBUMS_PBAR_BG_COLOR_INC 0 0 0 0
+
+ group
+ {
+ name: "gallery/progressbar";
+ parts {
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 1;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ }
+ part { name: "elm.pad.top";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 0;
+ rel1 { relative: 0.0 0.0; to: "bg";}
+ rel2 { relative: 1.0 0.0; to: "bg"; offset: -2 1;}
+ align: 0.0 0.0;
+ color: GL_ALBUMS_PBAR_BG_COLOR_INC;
+ }
+ }
+ part { name: "elm.pad.bottom";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 0;
+ rel1 { relative: 0.0 1.0; to: "bg"; offset: 0 -1;}
+ rel2 { relative: 1.0 1.0; to: "bg"; offset: -2 0;}
+ align: 0.0 0.0;
+ color: GL_ALBUMS_PBAR_BG_COLOR_INC;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 0.0; to: "elm.pad.top";}
+ rel2 { relative: 1.0 1.0; to: "elm.pad.bottom";}
+ color: GL_ALBUMS_PBAR_BG_COLOR_INC;
+ }
+ }
+ part { name: "elm.swallow.progressbar";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 0;
+ rel1 { relative: 0.0 0.0; to: "base"; offset: 12 0;}
+ rel2 { relative: 1.0 0.5; to: "base"; offset: -14 0;}
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "elm.swallow.label";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 0;
+ rel1 { relative: 0.0 0.5; to: "base"; offset: 12 0;}
+ rel2 { relative: 1.0 1.0; to: "base"; offset: -14 0;}
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+
+ group { name: "gl_bg_layout";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 255 255 255 45;
+ }
+ }
+ part { name: "elm.swallow.image";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ }
+ }
+ }
+ }
+
+ group { name: "ceter_algined_text_layout";
+ styles {
+ style { name: "my_textblock_name_style";
+ base: "font=Sans:style=Regular font_size=20 color=#000000 ellipsis=1.0";
+ }
+ style { name: "my_textblock_count_style";
+ base: "font=Sans:style=Regular font_size=20 color=#000000";
+ }
+ }
+ script {
+ public scale_value;
+ public pw;
+ public tw;
+ public calc_text_size() {
+ new x, y, w, h;
+ new bx, by, bw, bh;
+ new cx, cy, cw, ch;
+ get_geometry(PART:"elm.sub.text", x, y, w, h);
+ get_geometry(PART:"base", bx, by, bw, bh);
+ get_geometry(PART:"center_padding", cx, cy, cw, ch);
+ if (get_float(scale_value) != 0) {
+ // Reverting scale multiplied width.
+ set_float(pw, (w + cw) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
+ set_float(tw, (bw - cw - w) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
+ } else {
+ set_float(pw, w + cw);
+ set_float(tw, bw - cw - w);
+ }
+ custom_state(PART:"right_dynamic_padding", "default", 0.0);
+ set_state_val(PART:"right_dynamic_padding", STATE_MIN, get_int(pw), 0);
+ set_state(PART:"right_dynamic_padding", "custom", 0.0);
+ custom_state(PART:"elm.text", "default", 0.0);
+ set_state_val(PART:"elm.text", STATE_MAX, get_int(tw), -1);
+ set_state(PART:"elm.text", "custom", 0.0);
+ }
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_FLOAT) {
+ new Float:scale_v;
+ scale_v = getfarg(2);
+ set_float(scale_value, scale_v);
+ calc_text_size();
+ }
+ }
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "right_dynamic_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ min: 0 0;
+ rel1.relative: 1.0 0.0;
+ }
+ }
+ part { name: "elm.text.bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel2 {
+ to_x: "right_dynamic_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 0;
+ rel1 {
+ to_x: "elm.text.bg";
+ relative: 0.5 0.0;
+ }
+ rel2 {
+ to_x: "elm.text.bg";
+ relative: 0.5 1.0;
+ }
+ text {
+ style: "my_textblock_name_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ }
+ part { name: "center_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ min: CENTER_PADDING_WIDTH 0;
+ rel1 {
+ to_x: "elm.text";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.text";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.sub.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 0;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "center_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "center_padding";
+ relative: 1.0 1.0;
+ }
+ text {
+ style: "my_textblock_count_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ }
+ }
+ }
+ group { name: "ceter_algined_text_layout_split_view";
+ styles {
+ style { name: "my_textblock_name_style_split_view";
+ base: "font=Sans:style=Regular font_size=12 color=#000000 ellipsis=1.0";
+ }
+ style { name: "my_textblock_count_style_split_view";
+ base: "font=Sans:style=Regular font_size=12 color=#000000";
+ }
+ }
+ script {
+ public scale_value;
+ public pw;
+ public tw;
+ public calc_text_size() {
+ new x, y, w, h;
+ new bx, by, bw, bh;
+ new cx, cy, cw, ch;
+ get_geometry(PART:"elm.sub.text", x, y, w, h);
+ get_geometry(PART:"base", bx, by, bw, bh);
+ get_geometry(PART:"center_padding", cx, cy, cw, ch);
+ if (get_float(scale_value) != 0) {
+ // Reverting scale multiplied width.
+ set_float(pw, (w + cw) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
+ set_float(tw, (bw - cw - w) * (YOUR_THEME_BASE_SCALE / get_float(scale_value)));
+ } else {
+ set_float(pw, w + cw);
+ set_float(tw, bw - cw - w);
+ }
+ custom_state(PART:"right_dynamic_padding", "default", 0.0);
+ set_state_val(PART:"right_dynamic_padding", STATE_MIN, get_int(pw), 0);
+ set_state(PART:"right_dynamic_padding", "custom", 0.0);
+ custom_state(PART:"elm.text", "default", 0.0);
+ set_state_val(PART:"elm.text", STATE_MAX, get_int(tw), -1);
+ set_state(PART:"elm.text", "custom", 0.0);
+ }
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_FLOAT) {
+ new Float:scale_v;
+ scale_v = getfarg(2);
+ set_float(scale_value, scale_v);
+ calc_text_size();
+ }
+ }
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "right_dynamic_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ min: 0 0;
+ rel1.relative: 1.0 0.0;
+ }
+ }
+ part { name: "elm.text.bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel2 {
+ to_x: "right_dynamic_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 0;
+ rel1 {
+ to_x: "elm.text.bg";
+ relative: 0.5 0.0;
+ }
+ rel2 {
+ to_x: "elm.text.bg";
+ relative: 0.5 1.0;
+ }
+ text {
+ style: "my_textblock_name_style_split_view";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ }
+ part { name: "center_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ min: CENTER_PADDING_WIDTH 0;
+ rel1 {
+ to_x: "elm.text";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.text";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.sub.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 0;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "center_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "center_padding";
+ relative: 1.0 1.0;
+ }
+ text {
+ style: "my_textblock_count_style_split_view";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ }
+ }
+ }
+}
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define BUTTON_STATE_ENABLED 0
+#define BUTTON_STATE_DISABLED 1
+
+#define BUTTON_EDIT_STYLE_BORDER_INC 8 0 5 5
+
+ sounds {
+ sample {
+ name: "touch_sound" AS_IS;
+ source: GALLERY_EDC_SOUND_TOUCH_30MS;
+ }
+ }
+
+///////////////////////////////////////////////////////////////////////////////////////
+#define BUTTON_STYLES(style_name, image_normal, min_width, min_height) \
+ group { name: "elm/button/base/"style_name; \
+ images { \
+ image: image_normal COMP; \
+ } \
+ parts { \
+ part { name: "button_image"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 1; \
+ } \
+ description { \
+ visible: 0; \
+ state: "clicked" 0.0; \
+ inherit: "default" 0.0; \
+ color: 42 137 194 255; \
+ } \
+ description { \
+ visible: 0; \
+ state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ } \
+ part { name: "button_image_bg"; \
+ type: IMAGE; \
+ mouse_events: 1; \
+ repeat_events:1; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: min_width min_height; \
+ max: min_width min_height; \
+ image { \
+ normal: image_normal; \
+ border: BUTTON_EDIT_STYLE_BORDER_INC; \
+ border_scale: 1; \
+ } \
+ } \
+ } \
+ part { name: "over1"; \
+ type: RECT; \
+ repeat_events: 1; \
+ ignore_flags: ON_HOLD; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: min_width min_height; \
+ } \
+ } \
+ part { name: "over2"; \
+ type: RECT; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "disabler"; \
+ type: RECT; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 0; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ } \
+ } \
+ programs { \
+ program { name: "button_click"; \
+ signal: "mouse,down,1"; \
+ source: "over1"; \
+ action: SIGNAL_EMIT "elm,action,press" ""; \
+ after: "button_click_anim"; \
+ } \
+ program { name: "button_click_anim"; \
+ action: STATE_SET "clicked" 0.0; \
+ target: "button_image"; \
+ } \
+ program { name: "button_unclick"; \
+ signal: "mouse,up,1"; \
+ source: "over2"; \
+ action: SIGNAL_EMIT "elm,action,unpress" ""; \
+ after: "button_unclick_anim"; \
+ } \
+ program { name: "button_unclick_anim"; \
+ action: STATE_SET "default" 0.0; \
+ target: "button_image"; \
+ } \
+ program { name: "touch_snd"; \
+ signal: "mouse,clicked,1"; \
+ source: "over1"; \
+ action: PLAY_SAMPLE "touch_sound" 1.0; \
+ after: button_unclick3; \
+ } \
+ program { name: "button_unclick3"; \
+ action: SIGNAL_EMIT "elm,action,click" ""; \
+ } \
+ program { name: "disable"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "disabler"; \
+ target: "button_image"; \
+ } \
+ program { name: "enable"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "disabler"; \
+ target: "button_image"; \
+ } \
+ } \
+}
+
+///////////////////////////////////////////////////////////////////////////////////////
+ BUTTON_STYLES("gallery/gridview", GALLERY_EDC_IMAGE_BTN_GRIDVIEW, 45, 45)
+ BUTTON_STYLES("gallery/footsteps", GALLERY_EDC_IMAGE_BTN_FOOTSTEPS, 45, 45)
+
+///////////////////////////////////////////////////////////////////////////////////////
+#define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
+ group { name: "elm/button/base/"style_name; \
+ images { \
+ image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG COMP; \
+ image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESSED COMP; \
+ image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG COMP; \
+ image: image_normal COMP; \
+ image: image_press COMP; \
+ } \
+ parts { \
+ part { name: "button_image"; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 64 64; \
+ max: 64 64; \
+ image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG; \
+ } \
+ description { \
+ state: "clicked" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESSED; \
+ } \
+ description { \
+ state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG; \
+ } \
+ } \
+ part { name: "button_center_part"; \
+ scale: 1; \
+ clip_to: "icon_clipper"; \
+ description { state: "default" 0.0; \
+ min: min_width min_height; \
+ max: min_width min_height; \
+ image.normal: image_normal; \
+ } \
+ description { state: "clicked" 0.0; \
+ inherit: "default"; \
+ image.normal: image_press; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default"; \
+ } \
+ } \
+ part { name: "icon_clipper"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "clicked" 0.0; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "disabled" 0.0; \
+ color: 250 250 250 128; \
+ } \
+ } \
+ part { name: "over1"; \
+ type: RECT; \
+ ignore_flags: ON_HOLD; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: min_width min_height; \
+ } \
+ } \
+ part { name: "over2"; \
+ type: RECT; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "disabler"; \
+ type: RECT; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 0; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ } \
+ } \
+ programs { \
+ program { name: "button_click"; \
+ signal: "mouse,down,1"; \
+ source: "over1"; \
+ action: SIGNAL_EMIT "elm,action,press" ""; \
+ after: "button_click_anim"; \
+ } \
+ program { name: "button_click_anim"; \
+ action: STATE_SET "clicked" 0.0; \
+ target: "button_image"; \
+ target: "button_center_part"; \
+ target: "icon_clipper"; \
+ } \
+ program { name: "button_unclick"; \
+ signal: "mouse,up,1"; \
+ source: "over2"; \
+ action: SIGNAL_EMIT "elm,action,unpress" ""; \
+ after: "button_unclick_anim"; \
+ } \
+ program { name: "button_unclick_anim"; \
+ action: STATE_SET "default" 0.0; \
+ target: "button_image"; \
+ target: "button_center_part"; \
+ target: "icon_clipper"; \
+ } \
+ program { name: "touch_snd"; \
+ signal: "mouse,clicked,1"; \
+ source: "over1"; \
+ action: PLAY_SAMPLE "touch_sound" 1.0; \
+ after: button_unclick3; \
+ } \
+ program { name: "button_unclick3"; \
+ action: SIGNAL_EMIT "elm,action,click" ""; \
+ } \
+ program { name: "disable"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "disabler"; \
+ target: "button_image"; \
+ target: "button_center_part"; \
+ target: "icon_clipper"; \
+ } \
+ program { name: "enable"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "disabler"; \
+ target: "button_image"; \
+ target: "button_center_part"; \
+ target: "icon_clipper"; \
+ } \
+ } \
+ }
+
+///////////////////////////////////////////////////////////////////////////////////////
+BUTTON_CIRCLE_STYLES("gallery/rename", GALLERY_EDC_IMAGE_BTN_RENAME, GALLERY_EDC_IMAGE_BTN_RENAME_PRESS, 64, 64)
+///////////////////////////////////////////////////////////////////////////////////////
+
+#undef BUTTON_STATE_ENABLED
+#undef BUTTON_STATE_DISABLED
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC 32 32
+
+#define CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC 255 255 255 255
+#define CHECK_DEFAULT_TEXT_PRESSED_COLOR_INC 255 255 255 255
+#define CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC 136 136 136 136
+
+////////////////////////////////////////////////////////////////////////////////////////
+//
+// check default textblock style
+//
+///////////////////////////////////////////////////////////////////////////////////////
+ styles {
+ style { name: "check_label_textblock_style";
+ base: "font=Tizen:style=Roman text_class=tizen font_size=32 color=#ffffff wrap=char";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "whitecolor" "+ color=#ffffff";
+ tag: "tab" "\t";
+ }
+ }
+
+#define CHECK_STATE_DEFAULT 0
+#define CHECK_STATE_VISIBLE 1
+#define CHECK_STATE_DISABLED_VISIBLE 2
+#define CHECK_STATE_DISABLED 3
+
+////////////////////////////////////////////////////////////////////////////////
+#define CHECK_STYLE_DEFAULT(style_name, image_bg, image_checking, image_nocheck, min_width, min_height, check_visible) \
+ group { name: "elm/check/base/"style_name; \
+ images { \
+ image: image_bg COMP; \
+ image: GALLERY_EDC_IMAGE_CHECK_BG_DIM COMP; \
+ image: image_checking COMP; \
+ image: image_nocheck COMP; \
+ } \
+ script { \
+ public check_state = CHECK_STATE_DEFAULT; \
+ } \
+ parts { \
+ part { name: "back_bg"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ rel2.relative: 1.0 1.0; \
+ align: 0 0.5; \
+ min: min_width min_height; \
+ fixed: 1 1; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "bg"; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
+ max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
+ fixed: 1 1; \
+ rel1.to: "back_bg"; \
+ rel2.to: "back_bg"; \
+ image.normal: image_bg; \
+ fill.smooth : 0; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_CHECK_BG_DIM; \
+ fill.smooth : 0; \
+ } \
+ } \
+ part { name: "check"; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ rel1.to: "bg"; \
+ rel2.to: "bg"; \
+ visible: check_visible; \
+ image.normal: image_nocheck; \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ image.normal: image_checking; \
+ } \
+ description { state: "disabled_visible" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: image_checking; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "elm.swallow.content"; \
+ type: SWALLOW; \
+ description { state: "default" 0.0; \
+ fixed: 1 0; \
+ visible: 0; \
+ color: 255 255 255 255; \
+ align: 0.0 0.5; \
+ rel1 { \
+ to_x: "bg"; \
+ relative: 1.0 0.0; \
+ offset: 1 1; \
+ } \
+ rel2 { \
+ to_x: "bg"; \
+ relative: 1.0 1.0; \
+ offset: 2 -2; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ fixed: 1 1; \
+ visible: 1; \
+ aspect: 1.0 1.0; \
+ aspect_preference: VERTICAL; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color: 128 128 128 128; \
+ } \
+ description { state: "disabled_visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 128 128 128 128; \
+ fixed: 1 1; \
+ visible: 1; \
+ aspect: 1.0 1.0; \
+ } \
+ } \
+ part { name: "elm.text"; \
+ type: TEXTBLOCK; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ fixed: 0 1; \
+ rel1 { \
+ relative: 1.0 0.5; \
+ offset: 1 1; \
+ to_x: "elm.swallow.content"; \
+ } \
+ rel2 { \
+ relative: 1.0 0.5; \
+ offset: -2 -2; \
+ } \
+ align: 0.0 0.5; \
+ text { \
+ style: "check_label_textblock_style"; \
+ min: 0 0; \
+ } \
+ color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ text.min: 1 1; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "disabled_visible" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ text.min: 1 1; \
+ color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
+ } \
+ } \
+ part { name: "events1"; \
+ type: RECT; \
+ ignore_flags: ON_HOLD; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "events2"; \
+ type: RECT; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "disabler"; \
+ type: RECT; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 0; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ } \
+ } \
+ programs { \
+ program { name: "click"; \
+ signal: "mouse,clicked,1"; \
+ source: "events1"; \
+ action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
+ } \
+ program { name: "check_on"; \
+ signal: "elm,state,check,on"; \
+ source: "elm"; \
+ script { \
+ set_int(check_state, CHECK_STATE_VISIBLE); \
+ set_state(PART:"check", "visible", 0.0); \
+ } \
+ } \
+ program { name: "check_off"; \
+ signal: "elm,state,check,off"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "check"; \
+ script { \
+ if (get_int(check_state) == CHECK_STATE_VISIBLE) \
+ { \
+ set_int(check_state, CHECK_STATE_DEFAULT); \
+ set_state(PART:"check", "default", 0.0); \
+ } \
+ } \
+ } \
+ program { name: "text_show"; \
+ signal: "elm,state,text,visible"; \
+ source: "elm"; \
+ action: STATE_SET "visible" 0.0; \
+ target: "elm.text"; \
+ } \
+ program { name: "text_hide"; \
+ signal: "elm,state,text,hidden"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.text"; \
+ } \
+ program { name: "icon_show"; \
+ signal: "elm,state,icon,visible"; \
+ source: "elm"; \
+ action: STATE_SET "visible" 0.0; \
+ target: "elm.swallow.content"; \
+ } \
+ program { name: "icon_hide"; \
+ signal: "elm,state,icon,hidden"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.swallow.content"; \
+ } \
+ program { name: "disable"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "disabler"; \
+ target: "bg"; \
+ after: "disable_text"; \
+ } \
+ program { name: "disable_text"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.text", st, 30, vl); \
+ if (!strcmp(st, "visible")) \
+ set_state(PART:"elm.text", "disabled_visible", 0.0); \
+ else \
+ set_state(PART:"elm.text", "disabled", 0.0); \
+ get_state(PART:"elm.swallow.content", st, 30, vl); \
+ if (!strcmp(st, "visible")) \
+ set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
+ else \
+ set_state(PART:"elm.swallow.content", "disabled", 0.0); \
+ get_state(PART:"check", st, 30, vl); \
+ if (!strcmp(st, "visible")) \
+ { \
+ set_state(PART:"check", "disabled_visible", 0.0); \
+ set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
+ } \
+ } \
+ } \
+ program { name: "enable"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "disabler"; \
+ target: "bg"; \
+ after: "enable_text"; \
+ } \
+ program { name: "enable_text"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.text", st, 30, vl); \
+ if (!strcmp(st, "disabled_visible")) \
+ set_state(PART:"elm.text", "visible", 0.0); \
+ else \
+ set_state(PART:"elm.text", "default", 0.0); \
+ get_state(PART:"elm.swallow.content", st, 30, vl); \
+ if (!strcmp(st, "visible")) \
+ set_state(PART:"elm.swallow.content", "visible", 0.0); \
+ else \
+ set_state(PART:"elm.swallow.content", "default", 0.0); \
+ get_state(PART:"check", st, 30, vl); \
+ if (!strcmp(st, "disabled_visible")) \
+ { \
+ set_state(PART:"check", "visible", 0.0); \
+ set_int(check_state, CHECK_STATE_VISIBLE); \
+ } \
+ else \
+ set_int(check_state, CHECK_STATE_DEFAULT); \
+ } \
+ } \
+ } \
+ }
+
+////////////////////////////////////////////////////////////////////////////////
+ CHECK_STYLE_DEFAULT("gallery/default", GALLERY_EDC_IMAGE_CHECK_BG, GALLERY_EDC_IMAGE_CHECK_BG_CHECKING, GALLERY_EDC_IMAGE_CHECK_BG_CHECKING, 42, 42, 0)
+
+////////////////////////////////////////////////////////////////////////////////
+ CHECK_STYLE_DEFAULT("gallery/album", GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, GALLERY_EDC_IMAGE_CHECK_ALBUM_EDIT_CHECKON,GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, 32, 32, 1)
+ CHECK_STYLE_DEFAULT("gallery/thumbs", GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, GALLERY_EDC_IMAGE_CHECK_ALBUM_EDIT_CHECKON,GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, 32, 32, 1)
+
+////////////////////////////////////////////////////////////////////////////////
+ group { name: "elm/check/base/gallery/album/grid";
+ images {
+ image: GALLERY_EDC_IMAGE_EDIT_EFFECT_BG COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "bg2";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.5 0.5;
+ min: 40 40;
+ max: 40 40;
+ color: 0 0 0 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "selected_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 153;
+ visible: 0;
+ }
+ }
+
+ part { name: "check";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg2";
+ rel2.to: "bg2";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled_visible" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ fixed: 1 0;
+ visible: 0;
+ color: 255 255 255 255;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "bg2";
+ relative: 1.0 0.0;
+ offset: 1 1;
+ }
+ rel2 {
+ to_x: "bg2";
+ relative: 1.0 1.0;
+ offset: 2 -2;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ fixed: 1 1;
+ visible: 1;
+ aspect: 1.0 1.0;
+ aspect_preference: VERTICAL;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ description { state: "disabled_visible" 0.0;
+ inherit: "default" 0.0;
+ color: 128 128 128 128;
+ fixed: 1 1;
+ visible: 1;
+ aspect: 1.0 1.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 0 1;
+ rel1 {
+ relative: 1.0 0.5;
+ offset: 1 1;
+ to_x: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 0.5;
+ offset: -2 -2;
+ }
+ color: 255 255 255 255;
+ align: 0.0 0.5;
+ text {
+ style: "check_label_textblock_style";
+ min: 0 0;
+ }
+ color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ text.min: 1 1;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled_visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ text.min: 1 1;
+ color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
+ }
+ }
+ part { name: "events";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "click";
+ signal: "mouse,up,1";
+ source: "events";
+ action: SIGNAL_EMIT "elm,action,check,toggle" "";
+ after: "bg_normal";
+ }
+ program { name: "bg_normal";
+ script {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"bg2", "default", 0.0);
+ }
+ }
+ program { name: "mouseout";
+ signal: "mouse,out";
+ source: "events";
+ after: "bg_check_normal";
+ }
+ program { name: "bg_check_normal";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"check", st, 30, vl);
+ if (!strcmp(st, "pressed"))
+ set_state(PART:"check", "visible", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"bg2", "default", 0.0);
+ }
+ }
+ program { name: "pressed";
+ signal: "mouse,down,1";
+ source: "events";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"check", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"check", "pressed", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"bg2", "pressed", 0.0);
+ }
+ }
+ program { name: "check_on";
+ signal: "elm,state,check,on";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "check";
+ target: "selected_bg";
+ }
+ program { name: "check_off";
+ signal: "elm,state,check,off";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "check";
+ target: "selected_bg";
+ }
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.text";
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ target: "bg";
+ target: "bg2";
+ after: "disable_text";
+ }
+ program { name: "disable_text";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
+ else
+ set_state(PART:"elm.swallow.content", "disabled", 0.0);
+ get_state(PART:"check", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"check", "disabled_visible", 0.0);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ target: "bg";
+ target: "bg2";
+ after: "enable_text";
+ }
+ program { name: "enable_text";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "disabled_visible"))
+ set_state(PART:"elm.text", "visible", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ else
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ get_state(PART:"check", st, 30, vl);
+ if (!strcmp(st, "disabled_visible"))
+ set_state(PART:"check", "visible", 0.0);
+ }
+ }
+ }
+ }
+
+#undef CHECK_STATE_DEFAULT
+#undef CHECK_STATE_VISIBLE
+#undef CHECK_STATE_DISABLED_VISIBLE
+#undef CHECK_STATE_DISABLED
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define CTXPOPUP_WIDTH_MIN_INC 386
+#define CTXPOPUP_WIDTH_MAX_INC 692
+#define CTXPOPUP_TEXT_MAX_INC 652
+#define CTXPOPUP_ICON_TEXT_MAX_INC 595
+#define CTXPOPUP_MORE_TEXT_MAX_INC 599
+#define CTXPOPUP_BUBBLE_BG_IMAGE_BORDER 26 26 26 26
+#define CTXPOPUP_BUBBLE_MORE_BG_IMAGE_BORDER 26 26 0 25
+#define CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER 8 8 8 8
+#define CTXPOPUP_SHADOW_LEFT_PADDING 14
+#define CTXPOPUP_SHADOW_RIGHT_PADDING 14
+#define CTXPOPUP_SHADOW_TOP_PADDING 14
+#define CTXPOPUP_SHADOW_BOTTOM_PADDING 14
+#define CTXPOPUP_CONTENT_PADDING_WIDTH 1
+#define CTXPOPUP_CONTENT_PADDING_HEIGHT 1
+#define CTXPOPUP_PRESS_PADDING 4
+#define CTXPOPUP_PRESS_PADDING2 3
+#define CTXPOPUP_ARROW_PADDING 1
+#define CTXPOPUP_SCROLLER_PADDING 8
+#define CTXPOPUP_SCROLLER_HORIZONTAL_PADDING 16
+#define CTXPOPUP_SCROLLER_VERTICAL_PADDING 16
+#define CTXPOPUP_SCROLLER_TOP_PADDING 8
+#define CTXPOPUP_SCROLLER_BOTTOM_PADDING 8
+#define CTXPOPUP_SCROLLER_LEFT_PADDING 8
+#define CTXPOPUP_SCROLLER_RIGHT_PADDING 8
+#define CTXPOPUP_SCROLLER_V_MIN_SIZE_INC 9 18
+#define CTXPOPUP_SCROLLER_H_MIN_SIZE_INC 18 9
+#define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 18
+#define CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC 255 255 255 255
+#define CTXPOPUP_ICON_CLIP_DIM_COLOR_INC 162 165 174 255
+#define CTXPOPUP_MAIN_TEXT_COLOR_INC 255 255 255 255
+#define CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC 162 165 174 255
+#define CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
+#define CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC 255 255 255 255
+#define CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC 162 165 174 255
+#define CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
+#define CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 1
+#define CTXPOPUP_SEPARATOR_PADDING_INC 20
+#define CTXPOPUP_SEPARATOR_COLOR_INC 29 38 60 255
+#define CTXPOPUP_SEPARATOR2_COLOR_INC 86 92 109 255
+#define CTXPOPUP_HORIZONTAL_SEPARATOR_1_COLOR_INC 29 38 60 255
+#define CTXPOPUP_HORIZONTAL_SEPARATOR_2_COLOR_INC 98 102 117 255
+#define CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC 1 96
+#define CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC 1 96
+#define CTXPOPUP_ITEM_DISABLED_COLOR 0 0 0 0
+#define CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC 40
+#define CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC (CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC * 2)
+#define CTXPOPUP_MAIN_TEXT_SIZE_INC 32
+#define CTXPOPUP_ITEM_HEIGHT_MIN_INC 110
+#define CTXPOPUP_ITEM_HEIGHT_MAX_INC 130
+#define CTXPOPUP_TEXT_ITEM_HORIZONTAL_WIDTH_INC 128
+#define CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC 112
+#define CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC 96
+#define CTXPOPUP_ICON_WIDTH_INC 45
+#define CTXPOPUP_ICON_HEIGHT_INC 45
+#define CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC 45
+#define CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC 45
+#define CTXPOPUP_ARROW_SIZE_INC 36 36
+#define CTXPOPUP_ITEM_TEXT_PADDING_INC 20
+#define CTXPOPUP_ITEM_ICON_PADDING_INC 16
+#define CTXPOPUP_TP_BG_IMAGE_BORDER 8 8 8 8
+#define CTXPOPUP_TP_ARROW_SIZE_INC 27 18
+#define CTXPOPUP_TP_HEIGHT_INC 102
+#define CTXPOPUP_MORE_WIDTH_MIN_INC 412
+#define CTXPOPUP_MORE_WIDTH_MAX_INC 720
+#define CTXPOPUP_MORE_ITEM_PADDING_INC 16
+#define CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC 110
+#define CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC 130
+#define CTXPOPUP_MORE_ICON_WIDTH_INC 45
+#define CTXPOPUP_MORE_ICON_HEIGHT_INC 45
+#define CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC 40
+#define CTXPOPUP_MOVE_PAD_INC 40
+#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC 334
+#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MAX_INC 720
+#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC 90
+#define CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC 130
+
+
+///////////////////////////////////////////////////////////////////////////////////////
+//
+// ctxpopup
+//
+///////////////////////////////////////////////////////////////////////////////////////
+
+#define CTXPOPUP_SHADOW_PADDING 10
+#define CTXPOPUP_FRAME_CORNER_SIZE 4 4
+#define CTXPOPUP_FONT_COLOR 0 0 0 255
+#define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
+#define CTXPOPUP_LIST_PADDING 10
+#define CTXPOPUP_LIST_SHADOW_PADDING 3
+
+///////////////////////////////////////////////////////////////////////////////
+sounds {
+ sample {
+ name: "touch_sound" RAW;
+ source: "button-pressed.wav";
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/layout/more_gallery/default";
+ max: CTXPOPUP_MORE_WIDTH_MAX_INC ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*7.5)+CTXPOPUP_SHADOW_TOP_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*14)+1);
+ parts {
+ part {
+ name:"top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 CTXPOPUP_MOVE_PAD_INC;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ }
+ description {
+ state: "show_up" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name:"bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 CTXPOPUP_MOVE_PAD_INC;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ }
+ description {
+ state: "show_down" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name:"left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_MOVE_PAD_INC 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ description {
+ state: "show_left" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name:"right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_MOVE_PAD_INC 0;
+ fixed: 1 0;
+ align: 1 0.5;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ }
+ description {
+ state: "show_right" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name: "swallow";
+ type: SWALLOW;
+ clip_to: "layout_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "show_up" 0.0;
+ rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
+ rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
+ align: 0.5 0.0;
+ }
+ description {
+ state: "show_down" 0.0;
+ rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
+ rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
+ align: 0.5 1.0;
+ }
+ description {
+ state: "show_left" 0.0;
+ rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
+ rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
+ align: 0.0 0.5;
+ }
+ description {
+ state: "show_right" 0.0;
+ rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
+ rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
+ align: 1.0 0.5;
+ }
+ }
+ part {
+ name: "event_blocker";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "layout_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 0;
+ rel1 {to: "swallow"; relative: -0.2 -0.2; }
+ rel2 {to: "swallow"; relative: 1.2 1.2;}
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "showup";
+ signal: "elm,state,show,up";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show_up")) {
+ set_state(PART:"swallow", "show_up", 0.0);
+ set_state(PART:"top_padding", "show_up", 0.0);
+ }
+ }
+ after: "showupend";
+ }
+ program {
+ name: "showdown";
+ signal: "elm,state,show,down";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show_down")) {
+ set_state(PART:"swallow", "show_down", 0.0);
+ set_state(PART:"bottom_padding", "show_down", 0.0);
+ }
+ }
+ after: "showdownend";
+ }
+ program {
+ name: "showleft";
+ signal: "elm,state,show,left";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show_left")) {
+ set_state(PART:"swallow", "show_left", 0.0);
+ set_state(PART:"left_padding", "show_left", 0.0);
+ }
+ }
+ after: "showleftend";
+ }
+ program {
+ name: "showright";
+ signal: "elm,state,show,right";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show_right")) {
+ set_state(PART:"swallow", "show_right", 0.0);
+ set_state(PART:"right_padding", "show_right", 0.0);
+ }
+ }
+ after: "showrightend";
+ }
+ program {
+ name: "show_clip_blocker";
+ signal: "elm,state,show,*";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.33 1.1;
+ target: "layout_clip";
+ target: "event_blocker";
+ }
+ program {
+ name: "showupend";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.33 1.1;
+ target: "top_padding";
+ }
+ program {
+ name: "showdownend";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.33 1.1;
+ target: "bottom_padding";
+ }
+ program {
+ name: "showleftend";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.33 1.1;
+ target: "left_padding";
+ }
+ program {
+ name: "showrightend";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.33 1.1;
+ target: "right_padding";
+ }
+ program {
+ name: "hideup";
+ signal: "elm,state,hide,up";
+ source: "elm";
+ action: STATE_SET "show_up" 0.0;
+ target: "swallow";
+ target: "top_padding";
+ transition: SIN_FAC 0.33 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hidedown";
+ signal: "elm,state,hide,down";
+ source: "elm";
+ action: STATE_SET "show_down" 0.0;
+ target: "swallow";
+ target: "bottom_padding";
+ transition: SIN_FAC 0.33 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hideleft";
+ signal: "elm,state,hide,left";
+ source: "elm";
+ action: STATE_SET "show_left" 0.0;
+ target: "swallow";
+ target: "left_padding";
+ transition: SIN_FAC 0.33 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hideright";
+ signal: "elm,state,hide,right";
+ source: "elm";
+ action: STATE_SET "show_right" 0.0;
+ target: "swallow";
+ target: "right_padding";
+ transition: SIN_FAC 0.33 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hide_clip";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "layout_clip";
+ transition: SIN_FAC 0.33 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hide_event_blocker";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "event_blocker";
+ }
+ program {
+ name: "be_default";
+ action: STATE_SET "default" 0.0;
+ target: "swallow";
+ target: "top_padding";
+ target: "bottom_padding";
+ target: "left_padding";
+ target: "right_padding";
+ after: "hidefinished";
+ }
+ program {
+ name: "hidefinished";
+ action: SIGNAL_EMIT "elm,action,hide,finished" "";
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/layout/landscape/more_gallery/default";
+ inherit: "elm/ctxpopup/layout/more_gallery/default";
+ max: CTXPOPUP_MORE_WIDTH_MAX_INC ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*4.5)+CTXPOPUP_SHADOW_TOP_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*8)+1);
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/scroller/base/ctxpopup";
+ script {
+ public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer, edge_timer;
+ public timer0(val) {
+ new v;
+ v = get_int(sbvis_v);
+ if (v) {
+ v = get_int(sbalways_v);
+ if(!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ v = get_int(sbvis_h);
+ if (v) {
+ v = get_int(sbalways_h);
+ if(!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ set_int(sbvis_timer, 0);
+ return 0;
+ }
+ public timer2(val) {
+ emit("do-hide-vshadow", "");
+ emit("do-hide-hshadow", "");
+ set_int(edge_timer, 0);
+ return 0;
+ }
+ }
+ images {
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_SCROLL_V);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_SCROLL_H);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_TOP);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_BOTTOM);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_RIGHT);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_OVERSCROLLING_LEFT);
+ }
+ parts {
+ part { name: "vshadow_clip";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "hshadow_clip";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "shadow_top";
+ clip_to: "vshadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 1 1;
+ align: 0.5 0.0;
+ color: 255 255 255 100;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ image.normal: "00_popup_overscrolling_top.png";
+ image.border: 17 17 0 0;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "shadow_bottom";
+ clip_to: "vshadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ color: 255 255 255 100;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ image.normal: "00_popup_overscrolling_bottom.png";
+ image.border: 17 17 0 0;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "shadow_left";
+ clip_to: "hshadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 30 0;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ color: 255 255 255 100;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ image.normal: "00_popup_overscrolling_left.png";
+ image.border: 0 0 17 17;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "shadow_right";
+ clip_to: "hshadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 30 0;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ color: 255 255 255 100;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ image.normal: "00_popup_overscrolling_right.png";
+ image.border: 0 0 17 17;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "clipper";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ clip_to: "clipper";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ }
+ }
+ part {
+ name: "sb_vbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "hidden" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "sb_vbar_clip";
+ clip_to:"sb_vbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel2{ to:"clipper"; relative: 1.0 1.0;}
+ }
+ description {
+ state: "hidden" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "sb_vbar_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) 0;
+ max: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) 0;
+ align: 1.0 0.0;
+ rel1 { to:"clipper"; relative: 1.0 0.0; }
+ rel2 { to:"clipper"; relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "sb_vbar_bg";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ align: 1.0 0.0;
+ rel1 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 0.0; }
+ rel2 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 1.0; }
+ }
+ }
+ part {
+ name: "sb_vbar_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_TOP_PADDING;
+ max: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_TOP_PADDING;
+ align: 0.0 0.0;
+ rel1 { to:"sb_vbar_bg"; relative: 0.0 0.0; }
+ rel2 { to:"sb_vbar_bg"; relative: 1.0 0.0; }
+ }
+ }
+ part {
+ name: "sb_vbar_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_BOTTOM_PADDING;
+ max: (CTXPOPUP_SCROLLER_HORIZONTAL_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_SCROLLER_BOTTOM_PADDING;
+ align: 0.0 1.0;
+ rel1 { to:"sb_vbar_bg"; relative: 0.0 1.0; }
+ rel2 { to:"sb_vbar_bg"; relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "sb_vbar";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ align: 1.0 0.0;
+ rel1 { to_x:"sb_vbar_bg"; to_y:"sb_vbar_top_padding"; relative: 0.0 1.0; }
+ rel2 { to_x:"sb_vbar_bg"; to_y:"sb_vbar_bottom_padding"; relative: 1.0 0.0; }
+ }
+ }
+ part {
+ name: "elm.dragable.vbar";
+ clip_to: "sb_vbar_clip";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ confine: "sb_vbar";
+ }
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: CTXPOPUP_SCROLLER_V_MIN_SIZE_INC;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "sb_vbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "sb_vbar";
+ }
+ image {
+ normal: GALLERY_EDC_IMAGE_POPUP_SCROLL_V;
+ border: 0 0 8 8;
+ border_scale: 1;
+ }
+ }
+ }
+ part {
+ name: "sb_hbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "hidden" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "sb_hbar_clip";
+ clip_to: "sb_hbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel2{ to:"clipper"; relative: 1.0 1.0;}
+ }
+ description {
+ state: "hidden" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "sb_hbar_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
+ max: 0 (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
+ align: 0.0 1.0;
+ rel1 { to:"clipper"; relative: 0.0 1.0; }
+ rel2 { to:"clipper"; relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "sb_hbar_bg";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 1.0;
+ rel1 {to_x:"clipper"; to_y: "sb_hbar_padding"; relative: 0.0 0.0;}
+ rel2 {to_x:"clipper"; to_y: "sb_hbar_padding"; relative: 1.0 0.0;}
+ }
+ }
+ part {
+ name: "sb_hbar_left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: CTXPOPUP_SCROLLER_LEFT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
+ max: CTXPOPUP_SCROLLER_LEFT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
+ align: 0.0 1.0;
+ rel1 { to:"sb_hbar_bg"; relative: 0.0 0.0; }
+ rel2 { to:"sb_hbar_bg"; relative: 0.0 1.0; }
+ }
+ }
+ part {
+ name: "sb_hbar_right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: CTXPOPUP_SCROLLER_RIGHT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
+ max: CTXPOPUP_SCROLLER_RIGHT_PADDING (CTXPOPUP_SCROLLER_VERTICAL_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
+ align: 1.0 1.0;
+ rel1 { to:"sb_hbar_bg"; relative: 1.0 0.0; }
+ rel2 { to:"sb_hbar_bg"; relative: 1.0 1.0; }
+ }
+ }
+ part {
+ name: "sb_hbar";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 1.0;
+ rel1 {to_x:"sb_hbar_left_padding"; to_y: "sb_hbar_padding"; relative: 1.0 0.0;}
+ rel2 {to_x:"sb_hbar_right_padding"; to_y: "sb_hbar_padding"; relative: 0.0 0.0;}
+ }
+ }
+ part {
+ name: "elm.dragable.hbar";
+ clip_to: "sb_hbar_clip";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "sb_hbar";
+ }
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ min: CTXPOPUP_SCROLLER_H_MIN_SIZE_INC;
+ rel1 {relative: 0.5 0.5; to: "sb_hbar";}
+ rel2 {relative: 0.5 0.5; to: "sb_hbar";}
+ image {
+ normal: GALLERY_EDC_IMAGE_POPUP_SCROLL_H;
+ border: 8 8 0 0;
+ border_scale: 1;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "load";
+ signal: "load";
+ source: "";
+ script {
+ set_state(PART:"sb_vbar_clip", "hidden", 0.0);
+ set_state(PART:"sb_hbar_clip", "hidden", 0.0);
+ set_state(PART:"vshadow_clip", "hidden", 0.0);
+ set_state(PART:"hshadow_clip", "hidden", 0.0);
+ set_int(sbvis_v, 0);
+ set_int(sbvis_h, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ set_int(edge_timer, 0);
+ emit("reload", "elm");
+ }
+ }
+ program { name: "vshadow_show";
+ signal: "do-show-vshadow";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "vshadow_clip";
+ }
+ program { name: "vshadow_hide";
+ signal: "do-hide-vshadow";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.2;
+ target: "vshadow_clip";
+ }
+ program { name: "hshadow_show";
+ signal: "do-show-hshadow";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "hshadow_clip";
+ }
+ program { name: "hshadow_hide";
+ signal: "do-hide-hshadow";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.2;
+ target: "hshadow_clip";
+ }
+ program {
+ name: "vbar_show";
+ signal: "elm,action,show,vbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program {
+ name: "vbar_hide";
+ signal: "elm,action,hide,vbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program {
+ name: "vbar_show_always";
+ signal: "elm,action,show_always,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (!v) {
+ set_int(sbalways_v, 1);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ }
+ }
+ }
+ program {
+ name: "vbar_show_notalways";
+ signal: "elm,action,show_notalways,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (v) {
+ set_int(sbalways_v, 0);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ }
+ }
+ program {
+ name: "sb_vbar_show";
+ signal: "do-show-vbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 1.0;
+ target: "sb_vbar_clip";
+ }
+ program {
+ name: "sb_vbar_hide";
+ signal: "do-hide-vbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 1.0;
+ target: "sb_vbar_clip";
+ }
+ program {
+ name: "hbar_show";
+ signal: "elm,action,show,hbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program {
+ name: "hbar_hide";
+ signal: "elm,action,hide,hbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program {
+ name: "hbar_show_always";
+ signal: "elm,action,show_always,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (!v) {
+ set_int(sbalways_h, 1);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ }
+ }
+ }
+ program {
+ name: "hbar_show_notalways";
+ signal: "elm,action,show_notalways,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (v) {
+ set_int(sbalways_h, 0);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ }
+ }
+ program {
+ name: "sb_hbar_show";
+ signal: "do-show-hbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 1.0;
+ target: "sb_hbar_clip";
+ }
+ program {
+ name: "sb_hbar_hide";
+ signal: "do-hide-hbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 1.0;
+ target: "sb_hbar_clip";
+ }
+ program {
+ name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if(!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(2.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ program { name: "show";
+ signal: "show";
+ source: "";
+ script {
+ new v;
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ v = get_int(sbalways_v);
+ if (!v) {
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ v = get_int(sbalways_h);
+ if (!v) {
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ }
+ program { name: "edge_top";
+ signal: "elm,edge,top";
+ source: "elm";
+ script {
+ set_state(PART:"shadow_top", "edge", 0.0);
+ set_state(PART:"shadow_bottom", "hidden", 0.0);
+ }
+ after: "edge_vertical";
+ }
+ program { name: "edge_bottom";
+ signal: "elm,edge,bottom";
+ source: "elm";
+ script {
+ set_state(PART:"shadow_top", "hidden", 0.0);
+ set_state(PART:"shadow_bottom", "edge", 0.0);
+ }
+ after: "edge_vertical";
+ }
+ program { name: "edge_left";
+ signal: "elm,edge,left";
+ source: "elm";
+ script {
+ set_state(PART:"shadow_left", "edge", 0.0);
+ set_state(PART:"shadow_right", "hidden", 0.0);
+ }
+ after: "edge_horizontal";
+ }
+ program { name: "edge_right";
+ signal: "elm,edge,right";
+ source: "elm";
+ script {
+ set_state(PART:"shadow_left", "hidden", 0.0);
+ set_state(PART:"shadow_right", "edge", 0.0);
+ }
+ after: "edge_horizontal";
+ }
+ program { name: "edge_vertical";
+ script {
+ new v;
+ v = get_int(edge_timer);
+ if (!v) {
+ emit("do-show-vshadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.1, "timer2", 0);
+ set_int(edge_timer, v);
+ }
+ }
+ program { name: "edge_horizontal";
+ script {
+ new v;
+ v = get_int(edge_timer);
+ if (!v) {
+ emit("do-show-hshadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.1, "timer2", 0);
+ set_int(edge_timer, v);
+ }
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/scroller/base/more_gallery/default";
+ inherit: "elm/scroller/base/ctxpopup";
+ GL_RES_IMG(GALLERY_EDC_IMAGE_OS_TOP);
+
+ parts {
+ part { name: "shadow_top";
+ clip_to: "vshadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 1 1;
+ align: 0.5 0.0;
+ color: 255 255 255 100;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ image.normal: GALLERY_EDC_IMAGE_OS_TOP;
+ image.border: 0 0 0 0;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group { name: "elm/ctxpopup/arrow/more_gallery/default"; }
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/base/more_gallery/default";
+ images {
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DORPDOWN_BG);
+ }
+ parts {
+ part {
+ name:"frame_shadow_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_SHADOW_LEFT_PADDING 0;//CTXPOPUP_SHADOW_TOP_PADDING;
+ max: CTXPOPUP_SHADOW_LEFT_PADDING 0;//CTXPOPUP_SHADOW_TOP_PADDING;
+ rel2 { relative: 0 0; }
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name:"frame_shadow_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
+ max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
+ rel1{relative: 1 1;}
+ align: 1 1;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "frame_bg";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1 {to:"frame_shadow_left_top_padding";}
+ rel2 {to:"frame_shadow_right_bottom_padding";}
+ min: CTXPOPUP_MORE_WIDTH_MIN_INC 0;
+ image {
+ normal: GALLERY_EDC_IMAGE_POPUP_DORPDOWN_BG;
+ border: CTXPOPUP_BUBBLE_MORE_BG_IMAGE_BORDER;
+ border_scale: 1;
+ }
+ }
+ }
+ part {
+ name:"content_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;}
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name:"content_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
+ max: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
+ rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
+ align: 1 1;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ align: 0 0;
+ rel1 {to:"content_left_top_padding"; relative: 1.0 1.0;}
+ rel2 {to:"content_right_bottom_padding"; relative: 0.0 0.0;}
+ }
+ }
+ part { name: "access.outline";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "frame_bg";
+ rel2.to: "frame_bg";
+ color: 0 0 0 0;
+ }
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/icon_text_style_item/more_gallery/default";
+
+ images {
+ GL_RES_IMG(GALLERY_EDC_IMAGE_MORE_POPUP_PRESS);
+ }
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+
+ data.item: "item_max_size" CTXPOPUP_MORE_TEXT_MAX_INC;
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: (CTXPOPUP_MORE_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2-CTXPOPUP_PRESS_PADDING*2) 1;
+ max: (CTXPOPUP_MORE_WIDTH_MAX_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2-CTXPOPUP_PRESS_PADDING*2) (CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC-CTXPOPUP_PRESS_PADDING*2);
+ rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
+ rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
+ image {
+ normal: GALLERY_EDC_IMAGE_MORE_POPUP_PRESS;
+ border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "bg_press_left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
+ max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
+ rel1 {to: "bg_press_top_padding"; relative: 0.0 0.0;}
+ align: 0 0.5;
+ }
+ }
+ part {
+ name: "bg_press_right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
+ max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
+ rel2 {to: "bg_press_bottom_padding"; relative: 1.0 1.0;}
+ align: 1 0.5;
+ }
+ }
+ part {
+ name: "bg_press_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
+ max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
+ rel1 {to: "separator2"; relative: 0.0 1.0;}
+ align: 0.5 0;
+ }
+ }
+ part {
+ name: "bg_press_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
+ max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
+ align: 0.5 1;
+ }
+ }
+ part {
+ name: "icon_left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
+ max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "separator1";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: CTXPOPUP_SEPARATOR_COLOR_INC;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ align: 0.5 0;
+ fixed: 0 1;
+ min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "separator2";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: CTXPOPUP_SEPARATOR2_COLOR_INC;
+ rel1 { relative: 0.0 1.0; to: "separator1"; }
+ rel2.to: "separator1";
+ rel2.offset: 0 0;
+ align: 0.5 0;
+ fixed: 0 1;
+ min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ clip_to: "icon_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
+ max: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
+ align: 0 0.5;
+ aspect: 1.0 1.0;
+ rel1 { to:"icon_left_padding"; relative: 1 0; }
+ }
+ }
+ part {
+ name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
+ }
+ }
+ part {
+ name: "icon_right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
+ max: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
+ align: 0 0.5;
+ fixed: 1 1;
+ rel1 { to:"elm.swallow.icon"; relative: 1 1; }
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 1 (CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC-CTXPOPUP_PRESS_PADDING*2);
+ max: CTXPOPUP_MORE_TEXT_MAX_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
+ align: 0.5 0.5;
+ rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
+ rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
+ color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
+ text {
+ font: "Tizen:style=Regular";
+ size: CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC;
+ size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
+ align: 0.0 0.5;
+ min: 1 1;
+ text_class: "list_item";
+ }
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
+ text.min: 0 1;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
+ }
+ description {
+ state: "ellipsis" 0.0;
+ inherit: "default" 0.0;
+ min: CTXPOPUP_MORE_TEXT_MAX_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
+ text.min: 0 1;
+ }
+ description {
+ state: "ellipsis_disabled" 0.0;
+ inherit: "ellipsis" 0.0;
+ color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
+ }
+ }
+ part {
+ name: "text_right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
+ max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ }
+ }
+ part {
+ name: "over1";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "over2";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ dragable {
+ x: 1 1 0;
+ y: 1 1 0;
+ }
+ description {
+ state: "default" 0.0;
+ rel1.to:"bg";
+ rel2.to:"bg";
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "disclip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ visible: 1;
+ color: CTXPOPUP_ITEM_DISABLED_COLOR;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "text_default";
+ signal: "elm,state,text,default";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "disabled")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program {
+ name: "text_ellipsis";
+ signal: "elm,state,text,ellipsis";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled"))
+ set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ }
+ }
+ program {
+ name: "item_unclick";
+ signal: "mouse,clicked,1";
+ source: "over1";
+ script {
+ if (get_int(multi_down) == 0) {
+ emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_snd");
+ }
+ }
+ }
+ program {
+ name: "touch_snd";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
+ }
+ program {
+ name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"icon_clip", "disabled", 0.0);
+ set_state(PART:"disclip", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"icon_clip", "default", 0.0);
+ set_state(PART:"disclip", "default", 0.0);
+ }
+ }
+ program {
+ name: "default";
+ signal: "elm,state,default";
+ source: "elm";
+ script {
+ set_state(PART:"separator1", "default", 0.0);
+ set_state(PART:"separator2", "default", 0.0);
+ }
+ }
+ program {
+ name: "separator";
+ signal: "elm,state,separator";
+ source: "elm";
+ script {
+ set_state(PART:"separator1", "visible", 0.0);
+ set_state(PART:"separator2", "visible", 0.0);
+ }
+ }
+ program {
+ name: "item_click2";
+ signal: "mouse,down,1";
+ source: "over2";
+ script {
+ if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
+ set_int(mouse_down, 1);
+ set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"bg", "clicked", 0.0);
+ }
+ }
+ }
+ program {
+ name: "drag";
+ signal: "drag";
+ source: "over2";
+ script {
+ new Float:dx, Float:dy;
+ get_drag(PART:"over2", dx, dy);
+ if ((abs(dx) > 20) || (abs(dy) > 20)) {
+ set_drag(PART:"over2", 0.0, 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ }
+ set_drag(PART:"over2", 0.0, 0.0);
+ }
+ }
+ program {
+ name: "item_unclick2";
+ signal: "mouse,up,1";
+ source: "over2";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ set_drag(PART:"over2", 0.0, 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ }
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+/* Refer to: "elm/layout/searchbar/cancel_button" */
+
+#define ENTRY_TEXT_SIZE_INC 44
+
+#define SEARCHBAR_CANCEL_BUTTON_W_INC 136
+#define SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 166
+#define SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 10
+#define SEARCHBAR_TOP_PADDING_INC 10
+#define SEARCHBAR_BOTTOM_PADDING_INC 10
+#define SEARCHBAR_HEIGHT_INC 66
+#define SEARCHBAR_LEFT_PADDING_INC 26
+#define SEARCHBAR_RIGHT_PADDING_INC 26
+#define SEARCHBAR_INPUTFIELD_BORDER_INC 12 13 12 13
+#define SEARCHBAR_LEFT_ICON_PADDING_INC 0 // 16
+#define SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 16
+#define SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 8
+#define SEARCHBAR_SEARCH_TEXTFIELD_H_INC 60
+
+#define EDITFIELD_TITLE_SIZE_INC 32
+#define EDITFIELD_TITLE_COLOR_INC 59 115 182 255
+#define EDITFIELD_GUIDE_TEXT_COLOR_INC 121 131 138 255
+#define EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC 6
+#define EDITFIELD_SEARCHBAR_TOP1_MULTI_INC 10
+#define EDITFIELD_SEARCHBAR_TOP2_INC 10
+#define EDITFIELD_SEARCHBAR_LEFT1_INC 0
+#define EDITFIELD_SEARCHBAR_LEFT2_INC 0
+#define EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 56
+#define EDITFIELD_SEARCHBAR_RIGHT2_INC 5
+#define EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC 8
+#define EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC 2
+#define EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC 16
+#define EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC 2
+#define EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC 50
+#define EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC 50
+#define EDITFIELD_SEARCHBAR_ERASER_MINW_INC 38
+#define EDITFIELD_SEARCHBAR_ERASER_MINH_INC 38
+#define EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC 38
+#define EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC 50
+#define EDITFIELD_ERASER_DEFAULT_COLOR_INC 128 128 128 255
+#define EDITFIELD_ERASER_PRESSED_COLOR_INC 59 115 182 255
+
+group { name: "elm/layout/searchbar/gallery";
+ images {
+ image: GALLERY_EDC_IMAGE_EDITFIELD_CLEAR COMP;
+ image: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG COMP;
+ image: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG_FOCUS COMP;
+ }
+ parts {
+ part { name: "top_padding_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 SEARCHBAR_TOP_PADDING_INC;
+ fixed: 0 1;
+ align: 0 0;
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ part { name: "bottom_padding_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 SEARCHBAR_BOTTOM_PADDING_INC;
+ fixed: 0 1;
+ align: 0 1;
+ rel1.relative: 0.0 1.0;
+ }
+ }
+ part { name: "base_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 SEARCHBAR_HEIGHT_INC;
+ align: 0 0.5;
+ fixed: 0 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "top_padding_rect";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to: "bottom_padding_rect";
+ }
+ }
+ }
+ part { name: "left_padding_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: SEARCHBAR_LEFT_PADDING_INC 0;
+ fixed: 1 0;
+ align: 0 0;
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part { name: "right_padding_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: SEARCHBAR_RIGHT_PADDING_INC 0;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1.relative: 1.0 0.0;
+ }
+ /*description { state: "in" 0.0;
+ inherit: "default" 0.0;
+ min: SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 0;
+ }*/
+ }
+ part { name: "inputfield_rect";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "left_padding_rect";
+ to_y: "base_bg";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "right_padding_rect";
+ to_y: "base_bg";
+ }
+ image {
+ normal: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG;
+ border: SEARCHBAR_INPUTFIELD_BORDER_INC;
+ }
+ }
+ }
+ part {
+ name: "focus_image";
+ mouse_events:1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ image.normal: GALLERY_EDC_IMAGE_SEARCH_EDIT_FIELD_BG_FOCUS;
+ image.border: SEARCHBAR_INPUTFIELD_BORDER_INC;
+ image.border_scale: 1;
+ rel1.to: "inputfield_rect";
+ rel2.to: "inputfield_rect";
+ }
+ description {
+ state: "in" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "right_btn_padding_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: SEARCHBAR_RIGHT_PADDING_INC 0;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1.relative: 1.0 0.0;
+ rel1.to: "inputfield_rect";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "inputfield_rect";
+ }
+ /*description { state: "in" 0.0;
+ inherit: "default" 0.0;
+ min: SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 0;
+ }*/
+ }
+ part { name: "left_icon_padding_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: SEARCHBAR_LEFT_ICON_PADDING_INC 0;
+ fixed: 1 0;
+ align: 0 0;
+ rel1.to: "inputfield_rect";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "inputfield_rect";
+ }
+ }
+ }
+ part { name: "left_padding_search_textfield";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "left_icon_padding_rect";
+ to_y: "inputfield_rect";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to_x: "left_icon_padding_rect";
+ to_y: "inputfield_rect";
+ }
+ }
+ }
+ part { name: "right_padding_search_textfield";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "inputfield_rect";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "inputfield_rect";
+ }
+ }
+ }
+ part { name: "search_textfield";
+ type: RECT;
+ mouse_events: 1;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
+ fixed: 0 1;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "left_padding_search_textfield";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "right_padding_search_textfield";
+ }
+ }
+ }
+ part { name: "button_cancel";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SEARCHBAR_CANCEL_BUTTON_W_INC 0;
+ align: 0.0 0.5;
+ state: "default" 0.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "right_btn_padding_rect";
+ to_y: "top_padding_rect";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "right_btn_padding_rect";
+ to_y: "bottom_padding_rect";
+ }
+ }
+ }
+ part { name: "top1";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "search_textfield";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to: "search_textfield";
+ }
+ align: 0.5 0;
+ }
+ description { state: "elm.text.show" 0.0;
+ inherit: "default" 0.0;
+ min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
+ }
+ }
+ part { name: "top2";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "search_textfield";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to: "search_textfield";
+ }
+ align: 0.5 0;
+ }
+ }
+ part { name: "left1";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
+ fixed: 1 1;
+ align: 0 0;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "search_textfield";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "search_textfield";
+ }
+ }
+ }
+ part { name: "left2";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
+ fixed: 1 1;
+ align: 0 0;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "search_textfield";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "search_textfield";
+ }
+ }
+ }
+ part { name: "right1";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0;
+ fixed: 1 1;
+ align: 1 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "search_textfield";
+ }
+ rel2.to: "search_textfield";
+ }
+ }
+ part { name: "right2";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
+ fixed: 1 1;
+ align: 1 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "search_textfield";
+ }
+ rel2.to: "search_textfield";
+ }
+ }
+ part { name: "bottom1";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
+ fixed: 1 1;
+ align: 0 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "search_textfield";
+ }
+ rel2.to: "search_textfield";
+ }
+ description { state: "elm.text.show" 0.0;
+ inherit: "default" 0.0;
+ min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
+ }
+ }
+ part { name: "bottom2";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
+ fixed: 0 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "search_textfield";
+ }
+ rel2.to: "search_textfield";
+ align: 0 1;
+ }
+ description { state: "elm.text.show" 0.0;
+ inherit: "default" 0.0;
+ min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
+ }
+ }
+ part { name: "bottom3";
+ type: RECT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
+ fixed: 0 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "search_textfield";
+ }
+ rel2.to: "search_textfield";
+ align: 0 1;
+ }
+ description { state: "elm.text.show" 0.0;
+ inherit: "default" 0.0;
+ min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.0 0.0;
+ min: 0 34;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "left2";
+ to_y: "top2";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to_x: "left2";
+ to_y: "top2";
+ }
+ color: EDITFIELD_TITLE_COLOR_INC;
+ text {
+ font: "Tizen:style=Medium";
+ size: EDITFIELD_TITLE_SIZE_INC;
+ min: 1 1;
+ align: 0.0 0.0;
+ text_class: "tizen";
+ }
+ }
+ description { state: "elm.text.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.guidetext";
+ type: TEXT;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
+ text {
+ font: "Tizen:style=Roman";
+ size: ENTRY_TEXT_SIZE_INC;
+ min: 0 0;
+ align: 0.0 0.5;
+ text_class: "tizen";
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ min: 0 40;
+ rel1 {
+ relative : 1.0 1.0;
+ to_x: "left1";
+ to_y: "top1";
+ }
+ rel2 {
+ relative : 0.0 0.0;
+ to_x: "right1";
+ to_y: "bottom1";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ part { name: "eraser_image";
+ scale: 1;
+ clip_to: "eraser_image.clipper";
+ description { state: "default" 0.0;
+ visible: 0;
+ min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC;
+ fixed: 1 1;
+ align: 1 0.5;
+ rel1 {
+ relative: 0.0 0.5;
+ to_x : "right2";
+ }
+ rel2 {
+ relative: 0.0 0.5;
+ to_x : "right2";
+ }
+ image.normal: GALLERY_EDC_IMAGE_EDITFIELD_CLEAR;
+ }
+ description { state: "elm.eraser.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "eraser_image.clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "elm.eraser.show" 0.0;
+ color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
+ }
+ description { state: "elm.eraser.pressed" 0.0;
+ color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
+ }
+ }
+ part { name: "eraser";
+ type: RECT;
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC;
+ fixed: 1 1;
+ align: 1 0.5;
+ color: 0 0 0 0;
+ rel1 {
+ relative: 0.0 0.5;
+ to_x : "right2";
+ }
+ rel2 {
+ relative: 0.0 0.5;
+ to_x : "right2";
+ }
+ }
+ description { state: "elm.eraser.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "guidetext_show";
+ signal: "elm,state,guidetext,show";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guidetext";
+ }
+ program {
+ name: "guidetext_hide";
+ signal: "elm,state,guidetext,hide";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guidetext";
+ }
+ program {
+ name: "eraser_show";
+ signal: "elm,state,eraser,show";
+ source: "elm";
+ action: STATE_SET "elm.eraser.show" 0.0;
+ target: "eraser_image";
+ target: "eraser_image.clipper";
+ target: "eraser";
+ }
+ program {
+ name: "eraser_hide";
+ signal: "elm,state,eraser,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "eraser_image";
+ target: "eraser_image.clipper";
+ target: "eraser";
+ }
+ program {
+ name: "label_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ action: STATE_SET "elm.text.show" 0.0;
+ target: "elm.text";
+ target: "top1";
+ target: "bottom1";
+ target: "bottom2";
+ target: "bottom3";
+ }
+ program {
+ name: "label_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ target: "top1";
+ target: "bottom1";
+ target: "bottom2";
+ target: "bottom3";
+ }
+ program {
+ name: "eraser_clicked";
+ signal: "mouse,clicked,1";
+ source: "eraser";
+ action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
+ }
+ program {
+ name: "bg_clicked";
+ signal: "mouse,clicked,1";
+ source: "search_textfield";
+ action: SIGNAL_EMIT "elm,bg,clicked" "elm";
+ }
+ program { name: "cancel_in";
+ signal: "cancel,in";
+ source: "";
+ action: STATE_SET "in" 0.0;
+ //target: "right_padding_rect";
+ //target: "right_btn_padding_rect";
+ target: "focus_image";
+ transition: LINEAR 0.3;
+ }
+ program { name: "cancel_out";
+ signal: "cancel,out";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ //target: "right_padding_rect";
+ //target: "right_btn_padding_rect";
+ target: "focus_image";
+ transition: LINEAR 0.3;
+ }
+ program { name: "cancel_show";
+ signal: "cancel,show";
+ source: "";
+ action: STATE_SET "in" 0.0;
+ target: "focus_image";
+ target: "right_padding_rect";
+ target: "right_btn_padding_rect";
+ }
+ program { name: "cancel_hide";
+ signal: "cancel,hide";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "focus_image";
+ target: "right_padding_rect";
+ target: "right_btn_padding_rect";
+ }
+ program {
+ name: "eraser_pressed";
+ signal: "mouse,down,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.pressed" 0.0;
+ target: "eraser_image.clipper";
+ }
+ program {
+ name: "eraser_unpressed";
+ signal: "mouse,up,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.show" 0.0;
+ target: "eraser_image.clipper";
+ }
+ GL_GENGRID_SOUND("eraser")
+ GL_GENGRID_PLARY_SOUND
+ }
+}
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define BUTTON_STATE_ENABLED 0
+#define BUTTON_STATE_DISABLED 1
+
+#define BUTTON_EDIT_STYLE_BORDER_INC 8 0 5 5
+
+ sounds {
+ sample {
+ name: "touch_sound" AS_IS;
+ source: GALLERY_EDC_SOUND_TOUCH_30MS;
+ }
+ }
+
+#define NAVIFRAME_TITLE_TEXT_BG_H_INC 88
+#define NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC 84
+#define NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC 8 8 2 2
+#define NAVIFRAME_TITLE_H_INC 40
+#define NAVIFRAME_LANDSCAPE_TITLE_H_INC 40
+#define NAVIFRAME_TAB_TITLE_H_INC 165
+#define NAVIFRAME_LANDSCAPE_TAB_TITLE_H_INC 145
+#define NAVIFRAME_TAB_TITLE_H2_INC 126
+#define NAVIFRAME_TOOLBAR_HEIGHT_INC 98
+#define NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC 85
+#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 115 96
+#define NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC 115 91
+#define NAVIFRAME_PREV_FUNC_BTN_SIZE_INC 85 98
+#define NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC 85 85
+#define NAVIFRAME_TITLE_TAB_H_INC 75
+#define NAVIFRAME_TITLE_TAB_FONT_SIZE_INC 44
+#define NAVIFRAME_LANDSCAPE_TITLE_TAB_FONT_SIZE_INC 38
+#define NAVIFRAME_TITLE_TAB_TEXT_H_INC 90
+#define NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC 70
+#define NAVIFRAME_TITLE_FONT_SIZE_INC 30
+#define NAVIFRAME_TITLE_FONT_MIN_SIZE_INC 26
+#define NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC 50
+#define NAVIFRAME_TITLE_SMALL_FONT_SIZE_INC 44
+#define NAVIFRAME_LANDSCAPE_TITLE_SMALL_FONT_SIZE_INC 38
+#define NAVIFRAME_ICON_SIZE_INC 45 45
+#define NAVIFRAME_PADDING_INC 26 0
+#define NAVIFRAME_PADDING2_INC 16 0
+#define NAVIFRAME_BADGE_LEFT_PADDING_INC 8 0
+#define NAVIFRAME_BADGE_TOP_PADDING_INC 0 10
+#define NAVIFRAME_BADGE_TEXT_LEFT_PADDING_INC 12 54
+#define NAVIFRAME_BADGE_TEXT_RIGHT_PADDING_INC 10 54
+#define NAVIFRAME_BADGE_TEXT_H_INC 34
+#define NAVIFRAME_BADGE_TEXT_MIN_W_INC 30
+#define NAVIFRAME_BADGE_TEXT_MAX_W_INC 60
+#define NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC 54 54
+#define NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC 26 26 0 0
+#define NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC 112 0
+#define NAVIFRAME_ICON_PADDING_INC 77 0
+#define NAVIFRAME_TITLE_TEXT_COLOR_INC 250 250 250 255
+#define NAVIFRAME_TITLE_STYLE_COLOR_INC "#FAFAFA"
+#define NAVIFRAME_SUBTITLE_TEXT_COLOR_INC 250 250 250 255
+#define NAVIFRAME_SUBTITLE_FONT_SIZE_INC 32
+#define NAVIFRAME_LANDSCAPE_SUBTITLE_FONT_SIZE_INC 28
+#define NAVIFRAME_SUBTITLE_H_INC 37
+#define NAVIFRAME_LANDSCAPE_SUBTITLE_H_INC 30
+#define NAVIFRAME_SUBTITLE_TOP_PADDING_H_INC 6
+#define NAVIFRAME_LANDSCAPE_SUBTITLE_TOP_PADDING_H_INC 4
+#define NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC 153 153 153 255
+#define NAVIFRAME_BADGE_TEXT_COLOR_INC 250 250 250 255;
+#define NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC 255 255 255 82
+
+
+#define GL_TITLE_DROPDOWN \
+ part { name: "dropdown_padding"; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ align: 0.0 0.0; \
+ rel1 { \
+ to: "maintitle_text_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to: "maintitle_text_bg"; \
+ relative: 0.0 1.0; \
+ } \
+ min: 6 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "elm.image.dropdown"; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ min: 200 30; \
+ max: 280 150; \
+ fixed: 1 1; \
+ rel1 { \
+ to: "left.padding.text"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to: "right.padding.text"; \
+ relative: 1.0 1.0; \
+ } \
+ image { \
+ normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG; \
+ border: 8 8 8 8; \
+ border_scale: 1; \
+ } \
+ } \
+ description { state: "clicked" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG; \
+ visible: 0; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS; \
+ } \
+ description { state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "focus_image"; \
+ scale: 1; \
+ mouse_events: 0; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ min: 54 54; \
+ max: 54 54; \
+ visible: 0; \
+ rel1.to : "elm.image.dropdown"; \
+ rel2.to : "elm.image.dropdown"; \
+ image { \
+ normal: GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_FOCUS; \
+ border: 8 8 8 8; \
+ border_scale: 1; \
+ } \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ description { state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "left.padding.text"; \
+ type: RECT; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ visible: 0; \
+ fixed: 1 0; \
+ min: 16 54; \
+ rel1 { \
+ to: "dropdown_padding"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to: "dropdown_padding"; \
+ relative: 0.0 1.0; \
+ } \
+ align: 0.0 0.0; \
+ } \
+ } \
+ part { name: "right.padding.text"; \
+ type: RECT; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ visible: 0; \
+ fixed: 1 1; \
+ min: 12 0; \
+ rel1 { \
+ to_x: "arrow_icon"; \
+ to_y: "elm.text.dropdown"; \
+ relative: 1.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "arrow_icon"; \
+ to_y: "elm.text.dropdown"; \
+ relative: 1.0 1.0; \
+ } \
+ align: 0.0 0.0; \
+ } \
+ } \
+ part { name: "elm.text.dropdown"; \
+ type: TEXT; \
+ mouse_events: 0; \
+ effect: FAR_SHADOW BOTTOM; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ visible: 1; \
+ rel1 { \
+ to: "left.padding.text"; \
+ relative: 1.0 0.0; \
+ } \
+ rel2 { \
+ to: "left.padding.text"; \
+ relative: 1.0 1.0; \
+ } \
+ min: 30 0; \
+ fixed: 1 0; \
+ align: 0.0 0.5; \
+ color: 250 250 250 255; \
+ color2: 0 0 0 192; \
+ text { \
+ font: "Tizen:style=Regular"; \
+ size: 20; \
+ min: 1 0; \
+ text_class: "tizen"; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ description { state: "clicked" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "arrow_icon_padding"; \
+ scale: 1; \
+ mouse_events: 0; \
+ type: RECT; \
+ description { state: "default" 0.0; \
+ min: 6 5; \
+ fixed: 1 1; \
+ align: 0.0 0.5; \
+ rel1 { \
+ relative: 1.0 0.0; \
+ to: "elm.text.dropdown"; \
+ } \
+ visible: 0; \
+ rel2.to: "elm.text.dropdown"; \
+ } \
+ } \
+ part { name: "arrow_icon_bottom_padding"; \
+ scale: 1; \
+ mouse_events: 0; \
+ type: RECT; \
+ description { state: "default" 0.0; \
+ min: 18 26; \
+ max: 18 26; \
+ fixed: 1 1; \
+ align: 0.0 1.0; \
+ rel1 { \
+ relative: 1.0 1.0; \
+ to_x: "arrow_icon_padding"; \
+ to_y: "elm.text.dropdown"; \
+ } \
+ rel2 { \
+ relative: 1.0 1.0; \
+ to_x: "arrow_icon_padding"; \
+ to_y: "elm.text.dropdown"; \
+ } \
+ visible: 0; \
+ } \
+ } \
+ part { name: "arrow_icon"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ min: 18 18; \
+ max: 18 18; \
+ fixed: 1 1; \
+ align: 0.0 1.0; \
+ rel1 { \
+ relative: 1.0 0.0; \
+ to_x: "arrow_icon_padding"; \
+ to_y: "arrow_icon_bottom_padding"; \
+ offset: 0 6; \
+ } \
+ rel2 { \
+ relative: 1.0 0.0; \
+ to_x: "arrow_icon_padding"; \
+ to_y: "arrow_icon_bottom_padding"; \
+ } \
+ image.normal: GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW; \
+ } \
+ description { state: "clicked" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW_PRESS; \
+ } \
+ description { state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "access.title"; \
+ type: RECT; \
+ scale: 1; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ fixed: 1 1; \
+ rel1.to: "elm.image.dropdown"; \
+ rel2.to: "elm.image.dropdown"; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "over2"; \
+ type: RECT; \
+ scale: 1; \
+ repeat_events: 1; \
+ ignore_flags: ON_HOLD; \
+ description { state: "default" 0.0; \
+ rel1.to: "elm.image.dropdown"; \
+ rel2.to: "elm.image.dropdown"; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "over3"; \
+ type: RECT; \
+ scale: 1; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ rel1.to: "elm.image.dropdown"; \
+ rel2.to: "elm.image.dropdown"; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "disabler"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ rel1.to: "elm.image.dropdown"; \
+ rel2.to: "elm.image.dropdown"; \
+ color: 0 0 0 0; \
+ visible: 0; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ }
+
+#define GL_TITLE_DROPDOWN_PGS \
+ program { name: "button_click"; \
+ signal: "mouse,down,1"; \
+ source: "over2"; \
+ action: SIGNAL_EMIT "elm,action,press" ""; \
+ after: "button_click_anim"; \
+ } \
+ program { name: "button_click_anim"; \
+ action: STATE_SET "clicked" 0.0; \
+ target: "elm.image.dropdown"; \
+ target: "elm.text.dropdown"; \
+ target: "arrow_icon"; \
+ } \
+ program { name: "button_double_click"; \
+ signal: "mouse,down,1,double"; \
+ source: "over2"; \
+ after: "button_click_anim"; \
+ } \
+ program { name: "button_unpress"; \
+ action: SIGNAL_EMIT "elm,action,unpress" ""; \
+ } \
+ program { name: "button_mouseout_clicked"; \
+ signal: "mouse,up,1"; \
+ source: "over3"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.text.dropdown", st, 30, vl); \
+ if (!strcmp(st, "clicked") || !strcmp(st, "focused")) \
+ { \
+ emit("elm,action,default,text,set", ""); \
+ set_state(PART:"elm.text.dropdown", "visible", 0.0); \
+ } \
+ if (get_int(button_state) != BUTTON_STATE_DISABLED) \
+ set_state(PART:"elm.image.dropdown", "default", 0.0); \
+ set_state(PART:"arrow_icon", "default", 0.0); \
+ } \
+ after: button_unpress; \
+ } \
+ program { name: "touch_snd"; \
+ signal: "mouse,clicked,1"; \
+ source: "over2"; \
+ action: PLAY_SAMPLE "touch_sound" 1.0; \
+ after: button_unclick3; \
+ } \
+ program { name: "button_unclick3"; \
+ action: SIGNAL_EMIT "elm,action,click" ""; \
+ } \
+ program { name: "disable"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "elm.image.dropdown"; \
+ target: "disabler"; \
+ after: "disable_text"; \
+ } \
+ program { name: "disable_text"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.text.dropdown", st, 30, vl); \
+ if (!strcmp(st, "visible")) \
+ set_state(PART:"elm.text.dropdown", "disabled_visible", 0.0); \
+ else \
+ set_state(PART:"elm.text.dropdown", "disabled", 0.0); \
+ set_int(button_state, BUTTON_STATE_DISABLED); \
+ } \
+ } \
+ program { name: "enable"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.image.dropdown"; \
+ target: "disabler"; \
+ after: "enable_text"; \
+ } \
+ program { name: "enable_text"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.text.dropdown", st, 30, vl); \
+ if (!strcmp(st, "disabled_visible")) \
+ set_state(PART:"elm.text.dropdown", "visible", 0.0); \
+ else \
+ set_state(PART:"elm.text.dropdown", "default", 0.0); \
+ set_int(button_state, BUTTON_STATE_ENABLED); \
+ } \
+ } \
+ program { name: "expn_title_show"; \
+ signal: "elm,action,dropdown,show"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.image.dropdown"; \
+ target: "focus_image"; \
+ target: "elm.text.dropdown"; \
+ target: "arrow_icon"; \
+ target: "elm.text.title"; \
+ after: enable; \
+ } \
+ program { name: "expn_title_hide"; \
+ signal: "elm,action,dropdown,hide"; \
+ source: "elm"; \
+ action: STATE_SET "hide" 0.0; \
+ target: "elm.image.dropdown"; \
+ target: "focus_image"; \
+ target: "elm.text.dropdown"; \
+ target: "arrow_icon"; \
+ target: "elm.text.title"; \
+ after: disable; \
+ } \
+ program { name: "action_focus"; \
+ signal: "elm,action,focus_highlight,show"; \
+ source: "elm"; \
+ action: STATE_SET "focused" 0.0; \
+ target: "focus_image"; \
+ } \
+ program { name: "action_unfocus"; \
+ signal: "elm,action,focus_highlight,hide"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_image"; \
+ }
+
+
+
+group {
+ name: "gl_naviframe_expanded_title";
+ GL_RES_IMG(GALLERY_EDC_IMAGE_TITLE_BG);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_PRESS);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_POPUP_DROPDOWN_TITLE_BG_FOCUS);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW_PRESS);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_BUTTON_ICON_ARROW);
+ GL_RES_IMG(GALLERY_EDC_IMAGE_BACK_BUTTON);
+
+ script {
+ public button_state = BUTTON_STATE_ENABLED;
+ public landscape = 0; //Landscape mode status
+ }
+
+ parts {
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 NAVIFRAME_TITLE_H_INC;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ align: 0.0 0.0;
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ }
+ }
+ part { name: "title_bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 NAVIFRAME_TITLE_H_INC;
+ max: -1 NAVIFRAME_TITLE_H_INC;
+ align: 0.0 0.0;
+ fixed: 0 1;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ image {
+ normal: GALLERY_EDC_IMAGE_TITLE_BG;
+ border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
+ border_scale: 1;
+ }
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "title_right_padding";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_PADDING_INC;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1 { relative: 1.0 0.0; to: "divider2"; }
+ rel2 { relative: 1.0 1.0; to: "divider2"; }
+ visible: 0;
+ }
+ description { state: "title_left_btn_set" 0.0;
+ inherit: "default" 0.0;
+ rel1 { relative: 1.0 0.0; to: "divider1"; }
+ rel2 { relative: 1.0 1.0; to: "divider1"; }
+ }
+ }
+ part { name: "title_left_padding";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 10 0;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_bg"; }
+ visible: 0;
+ }
+ description { state: "icon" 0.0;
+ inherit: "default" 0.0;
+ min: NAVIFRAME_ICON_PADDING_INC;
+ }
+ }
+ part { name: "title_left_padding2";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 26 0;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_bg"; }
+ visible: 0;
+ }
+ description { state: "icon" 0.0;
+ inherit: "default" 0.0;
+ min: NAVIFRAME_ICON_PADDING_INC;
+ }
+ }
+ part { name: "title_text_bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 NAVIFRAME_TITLE_TEXT_BG_H_INC;
+ max: -1 NAVIFRAME_TITLE_TEXT_BG_H_INC;
+ fixed: 0 1;
+ rel1 { relative: 1.0 0.0; to_x: "title_left_padding"; to_y: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_bg"; }
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC;
+ max: -1 NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC;
+ }
+ }
+ part { name: "maintitle_text_bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_text_bg"; }
+ }
+ }
+ part { name: "maintitle_text_bg2";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1 { relative: 1.0 0.0; to_x: "title_left_padding2"; to_y: "title_text_bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_text_bg"; }
+ }
+ }
+ part { name: "elm.title.text";
+ type: TEXT;
+ effect: FAR_SHADOW BOTTOM;
+ scale: 1;
+ description { state: "default" 0.0;
+ text { font: "Tizen:style=normal";
+ size: NAVIFRAME_TITLE_FONT_SIZE_INC;
+ size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_TITLE_FONT_SIZE_INC;
+ fit: 1 0;
+ min: 0 0;
+ max: 1 0;
+ align: 0.0 0.5;
+ text_class: "tizen";
+ }
+ color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
+ color3: 0 0 0 255;
+ align: 0.5 0.5;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "padding_before_text";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_text_bg"; }
+ fixed: 1 0;
+ min: NAVIFRAME_PADDING2_INC;
+ visible: 0;
+ }
+ }
+ part { name: "divider1";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ fixed: 1 1;
+ color: NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC;
+ rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
+ rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
+ align: 1.0 0.5;
+ visible : 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 2 64;
+ max: 2 64;
+ visible : 0;
+ }
+ }
+ part { name: "title_left_btn";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "divider2"; }
+ rel2 { relative: 0.0 1.0; to: "divider2"; }
+ visible : 0;
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
+ }
+ }
+ part { name: "divider2";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ fixed: 1 1;
+ color: NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC;
+ rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
+ rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
+ align: 1.0 0.5;
+ visible : 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 2 64;
+ max: 2 64;
+ visible : 0;
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ max: NAVIFRAME_ICON_SIZE_INC;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "padding_before_text"; }
+ rel2 { relative: 0.0 1.0; to: "padding_before_text"; }
+ aspect: 1.0 1.0;
+ aspect_preference: VERTICAL;
+ align: 1.0 0.5;
+ }
+ }
+ part { name: "title_right_btn";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 { relative: 1.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ visible : 0;
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
+ }
+ }
+ }
+ programs {
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ if (!get_int(landscape)) {
+ set_state(PART:"base", "default", 0.0);
+ set_state(PART:"title_bg", "default", 0.0);
+ } else {
+ set_state(PART:"base", "landscape", 0.0);
+ set_state(PART:"title_bg", "landscape", 0.0);
+ }
+ }
+ }
+ program {
+ name: "change_to_landscape";
+ script {
+ if (!get_int(landscape)) {
+ set_state(PART:"base", "landscape", 0.0);
+ set_state(PART:"title_text_bg", "landscape", 0.0);
+ set_state(PART:"title_left_btn", "landscape", 0.0);
+ set_state(PART:"title_right_btn", "landscape", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 30, vl);
+ if (!strcmp(st, "default"))
+ set_state(PART:"title_bg", "landscape", 0.0);
+
+ set_int(landscape, 1);
+ }
+ }
+ }
+ program {
+ name: "change_to_portrait";
+ script {
+ if (get_int(landscape)) {
+ set_state(PART:"base", "default", 0.0);
+ set_state(PART:"title_text_bg", "default", 0.0);
+ set_state(PART:"title_left_btn", "default", 0.0);
+ set_state(PART:"title_right_btn", "default", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 30, vl);
+ if (!strcmp(st, "landscape"))
+ set_state(PART:"title_bg", "default", 0.0);
+
+ set_int(landscape, 0);
+ }
+ }
+ }
+ program { name: "landscape_mode";
+ source: "elm";
+ signal: "elm,state,orient,90";
+ after: "change_to_landscape";
+ }
+ program { name: "landscape_mode2";
+ source: "elm";
+ signal: "elm,state,orient,270";
+ after: "change_to_landscape";
+ }
+ program { name: "portrait_mode";
+ source: "elm";
+ signal: "elm,state,orient,0";
+ after: "change_to_portrait";
+ }
+ program { name: "portrait_mode2";
+ source: "elm";
+ signal: "elm,state,orient,180";
+ after: "change_to_portrait";
+ }
+ program { name: "title_left_btn_show";
+ signal: "elm,state,title_left_btn,show";
+ source: "elm";
+ script {
+ set_state(PART:"divider1", "visible", 0.0);
+ set_state(PART:"title_right_padding", "title_left_btn_set", 0.0);
+ }
+ }
+ program { name: "title_left_btn_hide";
+ signal: "elm,state,title_left_btn,hide";
+ source: "elm";
+ script {
+ set_state(PART:"divider1", "default", 0.0);
+ set_state(PART:"title_right_padding", "default", 0.0);
+ }
+ }
+ program { name: "title_right_btn_show";
+ signal: "elm,state,title_right_btn,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "divider2";
+ }
+ program { name: "title_right_btn_hide";
+ signal: "elm,state,title_right_btn,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "divider2";
+ }
+
+ }
+ }
+ group { name : "title_bar";
+ parts {
+ part{ name : "bg";
+ type: RECT;
+ description{
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ color: 61 184 203 255;
+ }
+ }
+ part { name: "elm.title.text";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ text {
+ size : 20;
+ align: 0.5 0.5;
+ }
+ color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
+ color3: 0 0 0 255;
+ align: 0.5 0.5;
+ rel1.relative: 0.3 0.0;
+ rel1.to: "bg";
+ rel2.relative: 0.7 1.0;
+ rel2.to: "bg";
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_btn_left";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 61 184 203 255;
+ rel1 { relative: 0.0 0.0; to: "bg"; }
+ rel2 { relative: 0.3 1.0; to: "bg"; }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "visible" 0.0;
+ color: 46 140 154 255;
+ }
+ }
+ part { name: "title_btn_right";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 61 184 203 255;
+ rel1 { relative: 0.7 0.0; to: "bg"; }
+ rel2 { relative: 1.0 1.0; to: "bg"; }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "visible" 0.0;
+ color: 46 140 154 255;
+ }
+ }
+ part { name: "title_left_text";
+ type: TEXT;
+ effect: FAR_SHADOW BOTTOM;
+ scale: 1;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.148 0.0;
+ rel1.to: "title_btn_left";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "title_btn_left";
+ visible: 0;
+ text {
+ text: "CANCEL";
+ size: 20;
+ align: 0.0 0.5;
+ }
+ color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_right_text";
+ type: TEXT;
+ mouse_events: 1;
+ repeat_events: 1;
+ effect: FAR_SHADOW BOTTOM;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "title_btn_right";
+ rel2.relative: 0.89 1.0;
+ rel2.to: "title_btn_right";
+ visible: 0;
+ text {
+ text: "DONE";
+ size: 20;
+ align: 1.0 0.5;
+ }
+ color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.swallow.left";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "title_btn_left";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "title_btn_left";
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_image_btn_left";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ color:61 184 203 255;
+ rel1 { relative: 0.0 0.0; to: "left_image"; }
+ rel2 { relative: 1.0 1.0; to: "left_image"; }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "visible" 0.0;
+ color: 46 140 154 255;
+ }
+ }
+ part { name: "left_image";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "elm.swallow.left";
+ rel2.relative: 0.5 1.0;
+ rel2.to: "elm.swallow.left";
+ visible: 0;
+ color: 0 0 0 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "left_back_image";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.1 0.3;
+ rel1.to: "elm.swallow.left";
+ rel2.relative: 0.3 0.7;
+ rel2.to: "elm.swallow.left";
+ visible: 0;
+ image.normal: GALLERY_EDC_IMAGE_BACK_BUTTON;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.swallow.image.left";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "left_image";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "left_image";
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.swallow.right";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "title_btn_right";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "title_btn_right";
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs{
+ program{
+ name : "press_left";
+ signal: "mouse,down,1";
+ source: "title_btn_left";
+ action: STATE_SET "pressed" 0.0;
+ target: "title_btn_left";
+ }
+ program{
+ name : "unpress_left";
+ signal: "mouse,up,1";
+ source: "title_btn_left";
+ action: STATE_SET "visible" 0.0;
+ target: "title_btn_left";
+ }
+ program{
+ name : "press_right";
+ signal: "mouse,down,1";
+ source: "title_btn_right";
+ action: STATE_SET "pressed" 0.0;
+ target: "title_btn_right";
+ }
+ program{
+ name : "unpress_right";
+ signal: "mouse,up,1";
+ source: "title_btn_right";
+ action: STATE_SET "visible" 0.0;
+ target: "title_btn_right";
+ }
+ program{
+ name : "press_image_left";
+ signal: "mouse,down,1";
+ source: "title_image_btn_left";
+ action: STATE_SET "pressed" 0.0;
+ target: "title_image_btn_left";
+ }
+ program{
+ name : "unpress_image_left";
+ signal: "mouse,up,1";
+ source: "title_image_btn_left";
+ action: STATE_SET "visible" 0.0;
+ target: "title_image_btn_left";
+ }
+ program {
+ name: "button_show";
+ signal: "elm,button,state,visible";
+ source: "elm";
+ script {
+ set_state(PART:"title_btn_left", "visible", 0.0);
+ set_state(PART:"title_btn_right", "visible", 0.0);
+ set_state(PART:"title_left_text", "visible", 0.0);
+ set_state(PART:"title_right_text", "visible", 0.0);
+ set_state(PART:"elm.swallow.left", "visible", 0.0);
+ set_state(PART:"title_image_btn_left", "default", 0.0);
+ set_state(PART:"left_back_image", "hidden", 0.0);
+ set_state(PART:"elm.swallow.image.left", "default", 0.0);
+ set_state(PART:"elm.swallow.right", "visible", 0.0);
+ }
+ }
+ program {
+ name: "right_button_hide";
+ signal: "elm,button,state,hidden";
+ source: "elm";
+ script {
+ set_state(PART:"title_btn_right", "hidden", 0.0);
+ set_state(PART:"title_right_text", "hidden", 0.0);
+ set_state(PART:"elm.swallow.right", "hidden", 0.0);
+ }
+ }
+ program {
+ name: "left_button_show";
+ signal: "elm,button,state,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_image_btn_left", "visible", 0.0);
+ set_state(PART:"left_back_image", "visible", 0.0);
+ set_state(PART:"elm.swallow.image.left", "visible", 0.0);
+ }
+ }
+ program {
+ name: "left_button_hide";
+ signal: "elm,button,state,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_image_btn_left", "default", 0.0);
+ set_state(PART:"left_back_image", "default", 0.0);
+ set_state(PART:"elm.swallow.image.left", "default", 0.0);
+ }
+ }
+
+ program {
+ name: "button_hide";
+ signal: "elm,button,state,default";
+ source: "elm";
+ script {
+ set_state(PART:"title_btn_left", "default", 0.0);
+ set_state(PART:"title_btn_right", "default", 0.0);
+ set_state(PART:"title_left_text", "default", 0.0);
+ set_state(PART:"title_right_text", "default", 0.0);
+ set_state(PART:"elm.swallow.left", "default", 0.0);
+ set_state(PART:"elm.swallow.right", "default", 0.0);
+ }
+ }
+ }
+ }
+
+#undef BUTTON_STATE_ENABLED
+#undef BUTTON_STATE_DISABLED
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+/* 720/2 */
+#define ALBUM_ITEM_W 360
+/* 720/2 */
+#define ALBUM_ITEM_H 360
+
+#define CHECK_GAP_L (0)
+#define CHECK_GAP_R (0)
+#define CHECK_GAP_T (15)
+
+#define ALBUM_ICON_GAP_L (0)
+#define ALBUM_ICON_GAP_R (0)
+#define ALBUM_ICON_GAP_T (0)
+#define ALBUM_ICON_GAP_B (0)
+
+#define ALBUM_ICON_W (ALBUM_ITEM_W-ALBUM_ICON_GAP_L-ALBUM_ICON_GAP_R)
+#define ALBUM_ICON_H (ALBUM_ITEM_H-ALBUM_ICON_GAP_T-ALBUM_ICON_GAP_B)
+
+#define ALBUM_RENAME_R_PAD 2
+#define ALBUM_RENAME_B_PAD 2
+
+#define ALBUM_TEXT_BG_W 195
+/* 7 + 31 + 31*/
+#define ALBUM_TEXT_BG_H 70
+#define ALBUM_TEXT_GAP_L 10
+#define ALBUM_TEXT_GAP_R 8
+#define ALBUM_TEXT_GAP_T 6
+#define ALBUM_TEXT_SNS_X 60
+#define ALBUM_TEXT_DATE_H 31
+
+#define ALBUM_TYPE_GAP_T 8
+
+#define ALBUM_NAME_COLOR_INC 0 0 0 255
+#define ALBUM_COUNT_SHADOW_COLOR_INC 0 0 0 0
+
+#define ALBUM_NAME_TEXT_SIZE 18
+#define SPLIT_ALBUM_NAME_TEXT_SIZE 10
+
+#define ALBUM_COUNT_COLOR_INC 0 0 0 255
+#define ALBUM_COUNT_TEXT_SIZE 15
+
+#define ALBUM_TYPE_ICON_W 48
+#define ALBUM_TYPE_ICON_H 48
+
+#define ALBUM_PBAR_W 183
+#define ALBUM_PBAR_H 0
+#define ALBUM_PBAR_GAP_L 6
+#define ALBUM_PBAR_GAP_T 8
+
+#define ALBUM_RENAME_BTN_W 63
+#define ALBUM_RENAME_BTN_H 63
+
+#define ALBUM_CHECKBOX_W 10
+#define ALBUM_CHECKBOX_H 10
+#define ALBUM_CHECKBOX_GAP_L 6
+#define ALBUM_CHECKBOX_GAP_T (6+4)
+
+#define PARTS_PADDING_LEFT(param_padding_name, param_padding_size ) \
+ part { name: param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: param_padding_size 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ rel2.offset: -35 0; \
+ align: 0.0 0.0; \
+ } \
+ }
+
+#define PARTS_PADDING_RIGHT(param_padding_name, param_padding_size ) \
+ part { name: param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: param_padding_size 0; \
+ max: param_padding_size 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ rel1.relative: 1.0 0.0; \
+ align: 1.0 0.0; \
+ } \
+ }
+#define PARTS_PADDING_TOP(param_padding_name, param_padding_size ) \
+ part { name: param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 param_padding_size; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ align: 1.0 0.0; \
+ } \
+ }
+
+#define GL_ALBUM_BG \
+ part { \
+ name: "bg"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { relative: 0.0 0.0; } \
+ rel2 { relative: 1.0 1.0; } \
+ } \
+ }
+#define GL_ALBUM_BG_IMAGE \
+ part { \
+ name: "bg_image"; \
+ type: IMAGE; \
+ description { \
+ state: "default" 0.0; \
+ visible: 1; \
+ rel1 { relative: 0.0 0.0; to:"bg"; } \
+ rel2 { relative: 1.0 1.0; to:"bg"; } \
+ image.normal: GALLERY_EDC_IMAGE_ALBUM_BG; \
+ image.middle: 0; \
+ } \
+ }
+
+#define GL_ALBUM_ICON_BG \
+ part { name: "icon_bg"; \
+ type: RECT; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ scale : 1; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { relative: 0.0 0.0; to:"elm.swallow.icon"; } \
+ rel2 { relative: 1.0 1.0; to:"elm.swallow.icon"; } \
+ } \
+ }
+
+#define GL_ALBUM_ICON \
+ part { \
+ name: "elm.swallow.icon"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.clipper"; \
+ mouse_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1.to: "elm.icon.clipper"; \
+ rel2.to: "elm.icon.clipper"; \
+ } \
+ } \
+ part { \
+ name: "elm.icon.clipper"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0 0; offset: 2 2; to:"bg_image"; } \
+ rel2 { relative: 1 270/330; offset: -2 -2; to:"bg_image"; } \
+ } \
+ }
+
+#define GL_ALBUM_LABEL_BG \
+ part { \
+ name: "label_bg"; \
+ type: RECT; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { relative: 0 270/330; to:"bg_image"; } \
+ rel2 { relative: 1 1; to:"bg_image"; } \
+ } \
+ }
+
+#define GL_ALBUM_TYPE_ICON \
+ part { \
+ name: "elm.swallow.type_icon"; \
+ type: RECT; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ align: 0.5 0.5; \
+ rel1 { relative: (ALBUM_TEXT_GAP_L+ALBUM_ICON_GAP_L)/ALBUM_ICON_W 0.0; to: "label_bg"; } \
+ rel2 { relative: (ALBUM_TYPE_ICON_W+ALBUM_TEXT_GAP_L+ALBUM_ICON_GAP_L)/ALBUM_ICON_W 1.0; to: "label_bg"; } \
+ color: 0 0 0 0 ; \
+ } \
+ }
+
+#define GL_ALBUM_SD_ICON \
+ part { \
+ name: "elm.swallow.sd_icon"; \
+ type: SWALLOW; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ align: 0.5 0.5; \
+ rel1 { relative: 0.82 0.82; to: "elm.icon.clipper"; } \
+ rel2 { relative: 0.98 0.98; to: "elm.icon.clipper"; } \
+ } \
+ }
+
+#define GL_ALBUM_COUNT \
+ part { \
+ name: "elm.pad.right_count"; \
+ type: RECT; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { relative: 1.0 0.0; to: "label_bg"; } \
+ rel2 { relative: 1.0 1.0; to: "label_bg"; } \
+ min: 20 0; \
+ max: 20 0; \
+ fixed: 1 0; \
+ align: 1.0 0.0; \
+ } \
+ } \
+ part { \
+ name: "elm.text.count"; \
+ type: TEXT; \
+ mouse_events: 1; \
+ effect: FAR_SHADOW TOP; \
+ repeat_events: 1; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ visible: 1; \
+ rel1 { relative: 0.0 0.0; to_x: "elm.pad.right_count"; to_y: "label_bg";} \
+ rel2 { relative: 0.0 1.0; to_x: "elm.pad.right_count"; to_y: "label_bg";} \
+ min: 10 0; \
+ fixed: 1 0; \
+ align: 1.0 0.5; \
+ color: ALBUM_COUNT_COLOR_INC; \
+ color2: ALBUM_COUNT_SHADOW_COLOR_INC; \
+ text { \
+ font: "Tizen:style=Bold"; \
+ text_class: "tizen"; \
+ size: ALBUM_COUNT_TEXT_SIZE; \
+ min: 1 0; \
+ align: 1.0 0.5; \
+ } \
+ } \
+ }
+
+#define GL_ALBUM_NAME \
+ part { \
+ name: "elm.text.name"; \
+ type: TEXT; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 1.0; to: "elm.icon.clipper"; } \
+ rel2 { relative: 1.0 1.0; offset: 0 48; to: "elm.icon.clipper"; } \
+ color: ALBUM_NAME_COLOR_INC; \
+ align: 0.5 0.5; \
+ text { \
+ font: "Tizen:style=Bold"; \
+ size: ALBUM_NAME_TEXT_SIZE; \
+ align: 0.5 0.5; \
+ } \
+ } \
+ }
+
+#define GL_ALBUM_PBAR \
+ part { \
+ name: "elm.swallow.progressbar"; \
+ type: SWALLOW; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ align: 0.0 1.0; \
+ rel1 { relative: 0.0 (ALBUM_ICON_H-ALBUM_PBAR_H)/ALBUM_ICON_H; to: "elm.swallow.icon"; offset: -1 0; } \
+ rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; offset: -2 0; } \
+ } \
+ }
+
+#define GL_ALBUM_CHECK_GRID \
+ part { \
+ name: "elm.swallow.check_grid"; \
+ type: SWALLOW; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; to:"elm.swallow.icon"; } \
+ rel2 { relative: 1.0 1.0; to:"elm.swallow.icon"; } \
+ } \
+ }
+
+#define GL_ALBUM_CHECK \
+ part { \
+ name: "elm.swallow.check"; \
+ mouse_events: 1; \
+ type: SWALLOW; \
+ description { \
+ state: "default" 0.0; \
+ rel1 {relative: 1.0 1.0; to_x: "padding.check.left"; to_y: "padding.check.top"; }\
+ rel2 {relative: 1.0 1.0; to_x: "padding.check.right"; to_y: "padding.check.bottom"; }\
+ } \
+ }
+
+#define GL_ALBUM_DIM \
+ part { \
+ name: "elm.swallow.dim"; \
+ type: SWALLOW; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; } \
+ rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; } \
+ } \
+ }
+
+group {
+ name: "elm/gengrid/item/gallery/albums_view/default";
+
+ data.item: "texts" "elm.text.date elm.text.count";
+ data.item: "contents" "elm.swallow.icon elm.swallow.check elm.swallow.type_icon elm.swallow.sd_icon elm.swallow.progressbar elm.swallow.check_grid elm.swallow.dim elm.text.name.swallow";
+ images {
+ image: GALLERY_EDC_IMAGE_ALBUM_BG COMP;
+ image: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
+ }
+ parts {
+ PARTS_PADDING_LEFT("padding.check.left", CHECK_GAP_L)
+ PARTS_PADDING_LEFT("padding.check.right", CHECK_GAP_L+ALBUM_CHECKBOX_W)
+ PARTS_PADDING_RIGHT("padding.rename.left", CHECK_GAP_R+ALBUM_RENAME_BTN_W)
+ PARTS_PADDING_RIGHT("padding.rename.right", CHECK_GAP_R)
+ PARTS_PADDING_TOP("padding.rename.top", CHECK_GAP_T)
+ PARTS_PADDING_TOP("padding.rename.bottom", CHECK_GAP_T+ALBUM_RENAME_BTN_H)
+ PARTS_PADDING_TOP("padding.check.top", CHECK_GAP_T)
+ PARTS_PADDING_TOP("padding.check.bottom", CHECK_GAP_T+ALBUM_CHECKBOX_H)
+ part { name: "padding.top";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 0 1;
+ rel2 { relative: 1.0 0.0;}
+ align: 0.0 0.0;
+ }
+ }
+ GL_ALBUM_BG
+ part { name: "focus_bg";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS;
+ image.border: 13 13 13 13;
+ rel1 { relative: 0.0 0.0; to: "bg_image"; }
+ rel2 { relative: 1.0 270/330; to: "bg_image"; }
+ }
+ description { state: "enabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "bg_color";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0 0;
+ rel1.to : "elm.swallow.icon";
+ rel1.offset : 2 2;
+ rel2.relative: 1 1;
+ rel2.to : "elm.swallow.icon";
+ color: 230 230 230 255;
+ }
+ }
+ GL_ALBUM_BG_IMAGE
+ GL_ALBUM_ICON_BG
+ GL_ALBUM_ICON
+ GL_ALBUM_LABEL_BG
+ GL_ALBUM_TYPE_ICON
+ GL_ALBUM_SD_ICON
+ GL_ALBUM_COUNT
+ part {
+ name: "elm.text.name.swallow";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to: "elm.icon.clipper"; }
+ rel2 { relative: 1.0 1.0; to: "label_bg"; }
+ color: ALBUM_NAME_COLOR_INC;
+ align: 0.5 0.5;
+ }
+ }
+ GL_ALBUM_PBAR
+
+ GL_ALBUM_CHECK_GRID
+ GL_GENGRID_FOCUS_EVENT("elm.swallow.icon");
+ GL_ALBUM_CHECK
+ GL_ALBUM_DIM
+ }
+ programs {
+ program {
+ name: "show_top_pad";
+ signal: "show_top_pad";
+ source: "padding.top";
+ action: STATE_SET "show" 0.0;
+ target: "padding.top";
+ }
+ program {
+ name: "hide_sd_icon";
+ signal: "hide_sd_icon";
+ source: "elm.swallow.sd_icon";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.sd_icon";
+ }
+ GL_GENGRID_FOCUS("focus_event")
+ GL_GENGRID_SOUND("focus_event")
+ GL_GENGRID_SOUND("elm.swallow.check")
+ GL_GENGRID_PLARY_SOUND
+ }
+}
+group {
+ name: "elm/gengrid/item/gallery/albums_split_view/default";
+
+ data.item: "texts" "elm.text.date elm.text.badge";
+ data.item: "contents" "elm.swallow.icon elm.swallow.delete.count elm.swallow.check_grid elm.swallow.sd_icon elm.text.name.swallow";
+ images {
+ image: GALLERY_EDC_IMAGE_ALBUM_BG COMP;
+ image: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
+ image: GALLERY_EDC_IMAGE_BADGE_BG COMP;
+ }
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "padding.top";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ }
+ description {
+ state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 0 1;
+ rel2 { relative: 1.0 0.0;}
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "focus_bg";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS;
+ image.border: 13 13 13 13;
+ rel1 { relative: 0.0 0.0; to: "bg"; }
+ rel2 { relative: 1.0 270/330; to: "bg"; }
+ }
+ description { state: "enabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.icon.clipper";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0 0; offset: 4 4; to:"bg"; }
+ rel2 { relative: 1 270/330; offset: -4 -4; to:"bg"; }
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ clip_to: "elm.icon.clipper";
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.icon.clipper";
+ rel2.to: "elm.icon.clipper";
+ }
+ }
+ part {
+ name: "elm.swallow.check_grid";
+ type: SWALLOW;
+ clip_to: "elm.icon.clipper";
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.icon.clipper";
+ rel2.to: "elm.icon.clipper";
+ }
+ }
+ part {
+ name: "elm.text.name.swallow";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to: elm.swallow.icon; }
+ rel2 { relative: 1.0 1.27; to: elm.swallow.icon; }
+ color: 0 0 0 0;
+ align: 0.5 0.5;
+ }
+ }
+ part {
+ name: "elm.swallow.sd_icon";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1 { relative: 0.78 0.75; to: "elm.swallow.icon"; }
+ rel2 { relative: 0.98 0.95; to: "elm.swallow.icon"; }
+ }
+ }
+ part {
+ name: "elm.swallow.delete.count";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1 { relative: 0.75 0.05; to: "elm.icon.clipper"; }
+ rel2 { relative: 0.95 0.25; to: "elm.icon.clipper"; }
+ color: 255 0 0 255;
+ }
+ }
+ part {
+ name: "padding.badge";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ align: 1.0 0.0;
+ rel1 {
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ relative: 1.0 0.03;
+ }
+ min: 6 2;
+ fixed: 1 1;
+ visible: 0;
+ }
+ description {
+ state: "default" 0.10;
+ inherit: "default" 0.0;
+ min: 10 10;
+ }
+ description {
+ state: "default" 0.06;
+ inherit: "default" 0.0;
+ min: 6 10;
+ }
+ description {
+ state: "default" 0.04;
+ inherit: "default" 0.0;
+ min: 4 10;
+ }
+ }
+ part {
+ name: "elm.image.badge";
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: 25 25;
+ fixed: 1 1;
+ rel1 {
+ to: "left.padding.text";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "right.padding.text";
+ relative: 1.0 1.0;
+ }
+ image {
+ normal: GALLERY_EDC_IMAGE_BADGE_BG;
+ border_scale: 1;
+ }
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "left.padding.text";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ min: 5 25;
+ rel1 {
+ to: "elm.text.badge";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "elm.text.badge";
+ relative: 0.0 1.0;
+ }
+ align: 1.0 0.0;
+ }
+ }
+ part {
+ name: "right.padding.text";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ min: 5 25;
+ rel1 {
+ to: "padding.badge";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "padding.badge";
+ relative: 0.0 1.0;
+ }
+ align: 1.0 0.0;
+ }
+ }
+ part {
+ name: "elm.text.badge";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ rel1 {
+ to: "right.padding.text";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "right.padding.text";
+ relative: 0.0 1.0;
+ }
+ min: 12 0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ color: 250 250 250 255;
+ text {
+ font: "Tizen:style=Bold";
+ size: 12;
+ min: 1 0;
+ text_class: "tizen";
+ }
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ GL_GENGRID_FOCUS_EVENT("elm.swallow.icon");
+ }
+ programs {
+ program {
+ name: "show_top_pad";
+ signal: "show_top_pad";
+ source: "padding.top";
+ action: STATE_SET "show" 0.0;
+ target: "padding.top";
+ }
+ program { name: "badge_show";
+ signal: "elm,state,elm.text.badge,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.text.badge";
+ target: "elm.image.badge";
+ }
+ program { name: "badge_hide";
+ signal: "elm,state,elm.text.badge,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text.badge";
+ target: "elm.image.badge";
+ }
+ GL_GENGRID_FOCUS("focus_event")
+ GL_GENGRID_SOUND("focus_event")
+ GL_GENGRID_PLARY_SOUND
+ }
+}
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+#define PLACE_GIRD_ITEM_WIDTH 246
+#define PLACE_GIRD_ITEM_HEIGHT 180
+#define PLACE_GIRD_ITEM_VIDEO_X (PLACE_GIRD_ITEM_WIDTH-30)/(2*PLACE_GIRD_ITEM_WIDTH)
+#define PLACE_GIRD_ITEM_VIDEO_Y (PLACE_GIRD_ITEM_HEIGHT-30)/(2*PLACE_GIRD_ITEM_HEIGHT)
+
+//griditem style used in gridview of ctxpopup if marker clicked
+group {
+ name: "elm/gengrid/item/gallery_map/default";
+ data.item: "contents" "elm.swallow.icon";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ visible: 1;
+ rel1 { relative: 2/PLACE_GIRD_ITEM_WIDTH 0.0; to: "bg";}
+ rel2 { relative: (PLACE_GIRD_ITEM_WIDTH-2)/PLACE_GIRD_ITEM_WIDTH 1.0; to: "bg";}
+ }
+ }
+ GL_GENGRID_OVER("elm.swallow.icon");
+ }
+ programs {
+ GL_GENGRID_OVER_SOUND("elm.swallow.icon")
+ GL_GENGRID_PLARY_SOUND
+ }
+}
+
+group
+{
+ name: "elm/gengrid/photoframe/map_default_layout";
+ images {
+ image: GALLERY_EDC_IMAGE_PLACES_THUMB_BG COMP;
+ }
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ description {
+ state: "shrink" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "mouse_down_shrink";
+ signal: "mouse,down,shrink";
+ source: "bg";
+ action: STATE_SET "shrink" 0.0;
+ target: "elm.swallow.icon";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "mouse_up_expand";
+ signal: "mouse,up,expand";
+ source: "bg";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.icon";
+ transition: LINEAR 0.05;
+ after: "shrink,expand,done,icon";
+ }
+
+ program {
+ name: "shrink";
+ signal: "shrink";
+ source: "bg";
+ action: STATE_SET "shrink" 0.0;
+ target: "elm.swallow.icon";
+ after: "expand";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "expand";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.icon";
+ transition: LINEAR 0.05;
+ after: "shrink,expand,done,icon";
+ }
+ program {
+ name: "shrink,expand,done,icon";
+ action: SIGNAL_EMIT "shrink,expand,done" "bg";
+ }
+ }
+}
+
+group
+{
+ name: "elm/gengrid/photoframe/map_default_layout_video";
+
+ images {
+ image: GALLERY_EDC_IMAGE_BUTTON_PLAY COMP;
+ image: GALLERY_EDC_IMAGE_PLACES_THUMB_BG COMP;
+ }
+
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ color: 0 255 0 0;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ description {
+ state: "shrink" 0.0;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ }
+ }
+ part {
+ name: "elm.swallow.videoicon";
+ type: IMAGE;
+ mouse_events: 0;
+ repeat_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.5;
+ aspect: 1.0 1.0;
+ rel1 { relative: PLACE_GIRD_ITEM_VIDEO_X PLACE_GIRD_ITEM_VIDEO_Y;}
+ rel2 { relative: PLACE_GIRD_ITEM_VIDEO_X+30/PLACE_GIRD_ITEM_WIDTH PLACE_GIRD_ITEM_VIDEO_X+30/PLACE_GIRD_ITEM_HEIGHT;}
+ image.normal: GALLERY_EDC_IMAGE_BUTTON_PLAY;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "mouse_down_shrink";
+ signal: "mouse,down,shrink";
+ source: "bg";
+ action: STATE_SET "shrink" 0.0;
+ target: "elm.swallow.icon";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "mouse_up_expand";
+ signal: "mouse,up,expand";
+ source: "bg";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.icon";
+ transition: LINEAR 0.05;
+ after: "shrink,expand,done,icon";
+ }
+
+ program {
+ name: "shrink";
+ signal: "shrink";
+ source: "bg";
+ action: STATE_SET "shrink" 0.0;
+ target: "elm.swallow.icon";
+ after: "expand";
+ transition: LINEAR 0.1;
+ }
+ program {
+ name: "expand";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.icon";
+ transition: LINEAR 0.05;
+ after: "shrink,expand,done,icon";
+ }
+ program {
+ name: "shrink,expand,done,icon";
+ action: SIGNAL_EMIT "shrink,expand,done" "bg";
+ }
+ }
+}
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define W 180
+#define H 126
+#define W2 240
+#define H2 168
+#define W3 360
+#define H3 252
+#define GAP_W 3
+#define GAP_H 3
+#define THUMB_CHECK_W 10
+#define THUMB_CHECK_H 10
+#define THUMB_CHECK_BORDER_L 1
+#define THUMB_CHECK_BORDER_T 10
+#define MODE_W 64
+#define MODE_H 64
+
+#define BURST_W 16
+#define BURST_H 12
+#define BURST_PAD_R 4
+#define BURST_PAD_L 1
+
+/* Favourites icon boundary size */
+#define FAVOR_ICON_W 30
+#define FAVOR_ICON_H 30
+
+#define THUMBS_PARTS_PADDING_LEFT(param_padding_name, param_padding_size) \
+ part { name: param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: param_padding_size 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ rel2.offset: -35 0; \
+ align: 0.0 0.0; \
+ } \
+ }
+
+#define THUMBS_PARTS_PADDING_TOP(param_padding_name, param_padding_size) \
+ part { name: param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 param_padding_size; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ align: 1.0 0.0; \
+ } \
+ }
+
+#define PARTS_PADDING_BOT(param_padding_name, param_padding_size) \
+ part { name: param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 param_padding_size; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.0 1.0; \
+ } \
+ }
+
+#define GL_GRID_PART_ICON_SIZE(w, h) \
+ part { \
+ name: "elm.swallow.icon"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.clipper"; \
+ description { \
+ state: "default" 0.0; \
+ rel1.to: "elm.icon.clipper"; \
+ rel2.to: "elm.icon.clipper"; \
+ } \
+ } \
+ part { \
+ name: "elm.icon.clipper"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: GAP_W/w GAP_H/h;} \
+ rel2 { relative: (w-GAP_W)/w (h-GAP_H)/h;} \
+ } \
+ }
+
+#define GL_GRID_PART_ICON GL_GRID_PART_ICON_SIZE(W, H)
+
+#define GL_GRID_PART_BG \
+ part { \
+ name: "bg"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ }
+
+group {
+ name: "elm/gengrid/item/gallery/thumbnail_view/default";
+ data.item: "contents" "elm.swallow.icon elm.swallow.mode elm.swallow.check elm_image_open_icon_swallow elm_image_open_icon_swallow_blocker";
+ images {
+ image : GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
+ image: GALLERY_EDC_DELETE_SHOW_IMAGE_BG COMP;
+ image: GALLERY_EDC_DELETE_SHOW_IMAGE COMP;
+ image: GALLERY_EDC_SD_CARD_ICON COMP;
+ }
+
+ parts {
+ THUMBS_PARTS_PADDING_LEFT("padding.end.left", THUMB_CHECK_BORDER_L);
+ THUMBS_PARTS_PADDING_LEFT("padding.end.right", THUMB_CHECK_BORDER_L+THUMB_CHECK_W);
+ THUMBS_PARTS_PADDING_TOP("padding.end.top", THUMB_CHECK_BORDER_T);
+ THUMBS_PARTS_PADDING_TOP("padding.end.bottom", THUMB_CHECK_BORDER_T+THUMB_CHECK_H);
+ THUMBS_PARTS_PADDING_LEFT("padding.end.left2", GAP_W);
+ THUMBS_PARTS_PADDING_LEFT("padding.end.right2", GAP_W+MODE_W);
+ PARTS_PADDING_BOT("padding.end.top2", GAP_H+MODE_H);
+ PARTS_PADDING_BOT("padding.end.bottom2", GAP_H);
+ GL_GRID_PART_BG
+ part {
+ name: "icon_bg";
+ type: RECT;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ visible: 0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "icon_bg_color";
+ type: RECT;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ visible: 1;
+ rel1.to : "elm.swallow.icon";
+ rel1.offset : 2 2;
+ rel2.to : "elm.swallow.icon";
+ color: 230 230 230 255;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm.swallow.mode";
+ type: SWALLOW;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {relative: 1.0 0.0; to_x: "padding.end.left2"; to_y: "padding.end.top2"; }
+ rel2 {relative: 1.0 0.0; to_x: "padding.end.right2"; to_y: "padding.end.bottom2"; }
+ }
+ }
+ GL_GENGRID_FOCUS_BG
+ part {
+ name: "elm.swallow.check";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ rel1 {relative: 1.0 1.0; to_x: "padding.end.left"; to_y: "padding.end.top"; }
+ rel2 {relative: 1.0 1.0; to_x: "padding.end.right"; to_y: "padding.end.bottom"; }
+ }
+ }
+ part {
+ name: "sd_card_icon_rect";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1 {relative: 1 1; offset: -42 -42; to: bg; }
+ rel2 {relative: 1 1; offset: -8 -8; to: bg; }
+ min: 36 36;
+ max: 36 36;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "sd_card_icon_img";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ rel1 {relative: 0 0; to: sd_card_icon_rect; }
+ rel2 {relative: 1 1; to: sd_card_icon_rect; }
+ image.normal: GALLERY_EDC_SD_CARD_ICON;
+ }
+ description {
+ state: "show" 0.0;
+ visible: 1;
+ rel1 {relative: 0 0; to: sd_card_icon_rect; }
+ rel2 {relative: 1 1; to: sd_card_icon_rect; }
+ image.normal: GALLERY_EDC_SD_CARD_ICON;
+ }
+ }
+ part {
+ name: "elm_image_open_icon_rect";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1 {relative: 0 1; offset: 8 -42; to: bg; }
+ rel2 {relative: 0 1; offset: 42 -8; to: bg; }
+ min: 36 36;
+ max: 36 36;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm_image_open_icon_bg";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
+ rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
+ image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE_BG;
+ color : 0 0 0 100;
+ }
+ description {
+ state: "show" 0.0;
+ visible: 1;
+ rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
+ rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
+ image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE_BG;
+ color : 0 0 0 100;
+ }
+ }
+ part {
+ name: "elm_image_open_icon_image";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
+ rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
+ image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE;
+ }
+ description {
+ state: "show" 0.0;
+ visible: 1;
+ rel1 {relative: 0 0; to: elm_image_open_icon_rect; }
+ rel2 {relative: 1 1; to: elm_image_open_icon_rect; }
+ image.normal: GALLERY_EDC_DELETE_SHOW_IMAGE;
+ }
+ }
+ part {
+ name: "elm_image_open_icon_swallow_blocker";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events : 0;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1 {relative: 0 0.55; to: bg; }
+ rel2 {relative: 0.45 1.0; to: bg; }
+ }
+ }
+ part {
+ name: "elm_image_open_icon_swallow";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events : 0;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1 {relative: 0 0.55; to: bg; }
+ rel2 {relative: 0.45 1.0; to: bg; }
+ }
+ }
+ }
+ programs {
+ GL_GENGRID_FOCUS("elm.swallow.icon")
+ GL_GENGRID_SOUND("elm.swallow.check")
+ GL_GENGRID_SOUND("elm.swallow.icon")
+ GL_GENGRID_SOUND("elm_image_open_icon_swallow")
+ GL_GENGRID_PLARY_SOUND
+ program {
+ name: "show_image";
+ signal: "show_image_icon";
+ source: "elm_image_open_icon_rect";
+ action: STATE_SET "show" 0.0;
+ target: "elm_image_open_icon_bg";
+ target: "elm_image_open_icon_image";
+ }
+ program {
+ name: "hide_image";
+ signal: "hide_image_icon";
+ source: "elm_image_open_icon_rect";
+ action: STATE_SET "default" 0.0;
+ target: "elm_image_open_icon_bg";
+ target: "elm_image_open_icon_image";
+ }
+ program {
+ name: "show_sd_icon";
+ signal: "show_sd_card_icon";
+ source: "sd_card_icon_img";
+ action: STATE_SET "show" 0.0;
+ target: "sd_card_icon_img";
+ }
+ program {
+ name: "hide_sd_icon";
+ signal: "hide_sd_card_icon";
+ source: "sd_card_icon_img";
+ action: STATE_SET "default" 0.0;
+ target: "sd_card_icon_img";
+ }
+ }
+}
+
+group {
+ name: "elm/gengrid/item/gallery/date_view/default";
+
+ data.item: "texts" "year month";
+
+ parts {
+ GL_GRID_PART_BG
+ part {
+ name: "year";
+ type: TEXT;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ color: 88 88 88 255;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 24/127;}
+ text {
+ font: "Tizen:style=Regular";
+ text_class: "tizen";
+ size: 24;
+ align: 1.0 0.5;
+ }
+ }
+ }
+
+ part {
+ name: "month";
+ type: TEXT;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ color: 88 88 88 255;
+ rel1 { relative: 0.0 1.0; to: "year"; }
+ rel2 { relative: 1.0 48/127; to_x: "year"; }
+ text {
+ font: "Tizen:style=Bold";
+ text_class: "tizen";
+ size: 26;
+ align: 1.0 0.5;
+ }
+ }
+ }
+ }
+}
+
+#define GL_GENGRID_PHOTOFRAME_DEFAULT(NAME, w, h) \
+group \
+{ \
+ name: "elm/gengrid/photoframe/"NAME; \
+ parts { \
+ GL_GRID_PART_BG \
+ GL_GRID_PART_ICON_SIZE(w, h) \
+ } \
+}
+
+GL_GENGRID_PHOTOFRAME_DEFAULT("layout", W, H)
+GL_GENGRID_PHOTOFRAME_DEFAULT("layout2", W2, H2)
+GL_GENGRID_PHOTOFRAME_DEFAULT("layout3", W3, H3)
+
+#define GL_GENGRID_BURSTSHOT(icon_name, w, h, n, p1x, p1y, p2x, p2y) \
+ part { \
+ name: icon_name".bg"; \
+ type: IMAGE; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: (GAP_W+n*BURST_W)/w (GAP_H+n*BURST_H)/h;} \
+ rel2 { relative: (w-GAP_W-(2-n)*BURST_W)/w (h-GAP_H-(2-n)*BURST_H)/h;} \
+ image {normal: GALLERY_EDC_IMAGE_BUSTSHOT; border: 5 5 5 5;} \
+ } \
+ } \
+ part { \
+ name: icon_name".bg2"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ color: GALLERY_EDC_COLOR_BG; \
+ rel1 { relative: 0.0 0.0; to: icon_name".clipper"; } \
+ rel2 { relative: 1.0 1.0; to: icon_name".clipper"; } \
+ } \
+ } \
+ part { \
+ name: icon_name".bg3"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 45; \
+ rel1 { relative: 0.0 0.0; to: icon_name".clipper"; } \
+ rel2 { relative: 1.0 1.0; to: icon_name".clipper"; } \
+ } \
+ } \
+ part { \
+ name: icon_name; \
+ type: SWALLOW; \
+ clip_to: icon_name".clipper"; \
+ description { \
+ state: "default" 0.0; \
+ rel1.to: icon_name".clipper"; \
+ rel2.to: icon_name".clipper"; \
+ } \
+ } \
+ part { \
+ name: icon_name".clipper"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ align: 1.0 1.0; \
+ rel1 { relative: p1x/(w-2*GAP_W-2*BURST_W) p1y/(h-2*GAP_H-2*BURST_H); to: icon_name".bg"; } \
+ rel2 { relative: (w-2*GAP_W-2*BURST_W-p2x)/(w-2*GAP_W-2*BURST_W) (h-2*GAP_H-2*BURST_H-p2y)/(h-2*GAP_H-2*BURST_H); to: icon_name".bg"; } \
+ } \
+ }
+
+group {
+ name: "elm/gengrid/photoframe/burstshot2";
+ images {
+ image: GALLERY_EDC_IMAGE_BUSTSHOT COMP;
+ }
+ parts {
+ GL_GRID_PART_BG
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon3", W3, H3, 2, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon2", W3, H3, 1, (BURST_PAD_L+1.0), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon1", W3, H3, 0, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
+ }
+}
+
+group {
+ name: "elm/gengrid/photoframe/burstshot1";
+ images {
+ image: GALLERY_EDC_IMAGE_BUSTSHOT COMP;
+ }
+ parts {
+ GL_GRID_PART_BG
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon3", W2, H2, 2, (BURST_PAD_L+0.5), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon2", W2, H2, 1, (BURST_PAD_L+1.0), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon1", W2, H2, 0, (BURST_PAD_L+0.5), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
+ }
+}
+
+group {
+ name: "elm/gengrid/photoframe/burstshot";
+ images {
+ image: GALLERY_EDC_IMAGE_BUSTSHOT COMP;
+ }
+ parts {
+ GL_GRID_PART_BG
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon3", W, H, 2, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon2", W, H, 1, (BURST_PAD_L+1.0), BURST_PAD_L, BURST_PAD_R, BURST_PAD_R)
+ GL_GENGRID_BURSTSHOT("elm.swallow.icon1", W, H, 0, (BURST_PAD_L+0.5), BURST_PAD_L, (BURST_PAD_R+0.5), BURST_PAD_R)
+ }
+}
+
+
+#define GL_GENGRID_PHOTOFRAME_VIDEO(NAME, w, h, time_h) \
+group \
+{ \
+ name: "elm/gengrid/photoframe/"NAME; \
+ images { \
+ image: GALLERY_EDC_IMAGE_BUTTON_VIDEO_PLAY COMP; \
+ } \
+ parts { \
+ part { \
+ name: "bg"; \
+ type: RECT; \
+ mouse_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0;} \
+ rel2 { relative: 1.0 1.0;} \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { \
+ name: "elm.swallow.icon"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.clipper"; \
+ description { \
+ state: "default" 0.0; \
+ rel1.to: "elm.icon.clipper"; \
+ rel2.to: "elm.icon.clipper"; \
+ } \
+ } \
+ part { \
+ name: "elm.icon.clipper"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: GAP_W/w GAP_H/h;} \
+ rel2 { relative: (w-GAP_W)/w (h-GAP_H)/h;} \
+ } \
+ } \
+ part { \
+ name: "elm.swallow.videoicon"; \
+ type: IMAGE; \
+ mouse_events: 0; \
+ repeat_events: 0; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 24 24; \
+ max: 48 48; \
+ align: 0.5 0.5; \
+ aspect: 1.0 1.0; \
+ image.normal: GALLERY_EDC_IMAGE_BUTTON_VIDEO_PLAY; \
+ } \
+ } \
+ } \
+}
+
+GL_GENGRID_PHOTOFRAME_VIDEO("video", W, H, 20.5)
+GL_GENGRID_PHOTOFRAME_VIDEO("video2", W2, H2, 27.3)
+GL_GENGRID_PHOTOFRAME_VIDEO("video3", W3, H3, 41)
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+//////////Copied from scroller.edc//////////////////////
+
+sounds {
+ sample {
+ name: "touch_sound" RAW;
+ source: "button-pressed.wav";
+ }
+}
+
+#define GL_GENGRID_OVER(to_obj) \
+ part { name: "over_"to_obj; \
+ type: RECT; \
+ repeat_events: 1; \
+ ignore_flags: ON_HOLD; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { relative: 0.0 0.0; to: to_obj; }\
+ rel2 { relative: 1.0 1.0; to: to_obj; }\
+ } \
+ }
+
+#define GL_GENGRID_OVER_SOUND(src) \
+ program { name: src"_mouse_clicked"; \
+ signal: "mouse,clicked,1"; \
+ source: "over_"src; \
+ transition: DECELERATE 0.2; \
+ after: "touch_snd"; \
+ }
+
+#define GL_GENGRID_SOUND(src) \
+ program { name: src"_mouse_clicked"; \
+ signal: "mouse,clicked,1"; \
+ source: src; \
+ transition: DECELERATE 0.2; \
+ after: "touch_snd"; \
+ }
+
+#define GL_GENGRID_PLARY_SOUND \
+ program { name: "touch_snd"; \
+ action: RUN_PLUGIN "touch_sound_plugin"; \
+ }
+
+#define GL_GENGRID_FOCUS_BG \
+ part { name: "focus_bg"; \
+ type: IMAGE; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS; \
+ image.border: 13 13 13 13; \
+ } \
+ description { state: "enabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ }
+
+#define GL_GENGRID_FOCUS_EVENT(to_obj) \
+ part { name: "focus_event"; \
+ type: RECT; \
+ mouse_events: 1; \
+ repeat_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { relative: 0.0 0.0; to: to_obj; }\
+ rel2 { relative: 1.0 1.0; to: to_obj; }\
+ } \
+ }
+
+#define GL_GENGRID_FOCUS(src) \
+ program { \
+ name: "go_mouse_down_"src; \
+ signal: "mouse,down,1"; \
+ source: src; \
+ action: STATE_SET "enabled" 0.0; \
+ target: "focus_bg"; \
+ transition: ACCELERATE 0.2; \
+ } \
+ program { \
+ name: "go_mouse_up_"src; \
+ signal: "mouse,up,1"; \
+ source: src; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_bg"; \
+ transition: DECELERATE 0.2; \
+ } \
+ program { name: "focus_in"; \
+ signal: "elm,state,focused"; \
+ source: "elm"; \
+ action: STATE_SET "enabled" 0.0; \
+ target: "focus_bg"; \
+ } \
+ program { name: "focus_out"; \
+ signal: "elm,state,unfocused"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_bg"; \
+ }
+
+#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE "00_scroll_bar.png"
+#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE "00_scroll_bar.png"
+#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE_BORDER 5 10 5 10
+#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE_BORDER 5 10 5 10
+#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC 16 238
+#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_MAX_SIZE_INC 16 99999
+#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC 208 16
+#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_MAX_SIZE_INC 99999 16
+#define SCROLLER_DEFAULT_SCROLLBAR_VBAR_PADDING_SIZE 6
+#define SCROLLER_DEFAULT_SCROLLBAR_HBAR_PADDING_SIZE 6
+
+/*
+ * vim:ts=3
+*/
+group { name: "elm/scroller/base/gallery";
+
+ data {
+ item: "focus_highlight" "on";
+ }
+
+ script {
+ public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
+ public sh_v, sh_h, sh_timer, edge_timer;
+ public timer0(val) {
+ new v;
+ v = get_int(sbvis_v);
+ if (v) {
+ v = get_int(sbalways_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ v = get_int(sbvis_h);
+ if (v) {
+ v = get_int(sbalways_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ set_int(sbvis_timer, 0);
+ return 0;
+ }
+ public timer1(val) {
+ emit("do-hide-vshadow", "");
+ emit("do-hide-hshadow", "");
+ set_int(sh_timer, 0);
+ return 0;
+ }
+ public timer2(val) {
+ emit("do-hide-vshadow", "");
+ emit("do-hide-hshadow", "");
+ set_int(edge_timer, 0);
+ return 0;
+ }
+ }
+ images {
+ image: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE COMP;
+ image: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "clipper";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ clip_to: "clipper";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ }
+ }
+ part { name: "sb_vbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_vbar_clip";
+ clip_to: "sb_vbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_vbar";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ visible: 0;
+ min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
+ align: 1.0 0.0;
+ rel1 {
+ relative: 1.0 0.0;
+ offset: 0 0;
+ to_y: "elm.swallow.content";
+ to_x: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1 1;
+ to_y: "elm.swallow.content";
+ to_x: "elm.swallow.content";
+ }
+ }
+ }
+ part { name: "elm.dragable.vbar";
+ clip_to: "sb_vbar_clip";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ confine: "sb_vbar";
+ }
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
+ max: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MAX_SIZE_INC;
+ rel1 {
+ relative: 0.5 0.5;
+ offset: 0 0;
+ to: "sb_vbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ offset: 0 0;
+ to: "sb_vbar";
+ }
+ image {
+ normal: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE;
+ border: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE_BORDER;
+ border_scale: 1;
+ middle: DEFAULT;
+ }
+ }
+ }
+ part { name: "sb_hbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_hbar_clip";
+ clip_to: "sb_hbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_hbar";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ visible: 0;
+ min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
+ align: 0.0 1.0;
+ rel1 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ to_x: "elm.swallow.content";
+ to_y: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1 -1;
+ to_x: "elm.swallow.content";
+ to_y: "elm.swallow.content";
+ }
+ }
+ }
+ part { name: "elm.dragable.hbar";
+ clip_to: "sb_hbar_clip";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "sb_hbar";
+ }
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
+ max: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MAX_SIZE_INC;
+ rel1 {
+ relative: 0.5 0.5;
+ offset: 0 0;
+ to: "sb_hbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ offset: 0 0;
+ to: "sb_hbar";
+ }
+ image {
+ normal: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE;
+ border: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE_BORDER;
+ border_scale: 1;
+ middle: DEFAULT;
+ }
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "clipper";
+ rel2.to: "clipper";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color: 128 128 128 128;
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ signal: "load";
+ source: "";
+ script {
+ set_state(PART:"sb_hbar_clip", "hidden", 0.0);
+ set_state(PART:"sb_vbar_clip", "hidden", 0.0);
+ set_int(sbvis_h, 0);
+ set_int(sbvis_v, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ }
+ }
+
+ program { name: "vbar_show";
+ signal: "elm,action,show,vbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program { name: "vbar_hide";
+ signal: "elm,action,hide,vbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program { name: "vbar_show_always";
+ signal: "elm,action,show_always,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ set_int(sbalways_v, 1);
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ }
+ }
+ program { name: "vbar_show_notalways";
+ signal: "elm,action,show_notalways,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (v) {
+ set_int(sbalways_v, 0);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ }
+ }
+ program { name: "sb_vbar_show";
+ signal: "do-show-vbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_vbar_clip";
+ }
+ program { name: "sb_vbar_hide";
+ signal: "do-hide-vbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_vbar_clip";
+ }
+
+ program { name: "hbar_show";
+ signal: "elm,action,show,hbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program { name: "hbar_hide";
+ signal: "elm,action,hide,hbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program { name: "hbar_show_always";
+ signal: "elm,action,show_always,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ set_int(sbalways_h, 1);
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ }
+ }
+ program { name: "hbar_show_notalways";
+ signal: "elm,action,show_notalways,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (v) {
+ set_int(sbalways_h, 0);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ }
+ }
+ program { name: "sb_hbar_show";
+ signal: "do-show-hbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_hbar_clip";
+ }
+ program { name: "sb_hbar_hide";
+ signal: "do-hide-hbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_hbar_clip";
+ }
+
+ program { name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ }
+ }
+}
+
+group { name: "elm/gengrid/base/gallery";
+ inherit: "elm/scroller/base/gallery";
+
+ images {
+ /*image: GALLERY_EDC_IMAGE_OS_TOP COMP;
+ image: GALLERY_EDC_IMAGE_OS_BOTTOM COMP;*/
+ image: GALLERY_EDC_IMAGE_OS_LEFT COMP;
+ image: GALLERY_EDC_IMAGE_OS_RIGHT COMP;
+ }
+
+ parts {
+ part { name: "shadow_clip";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ /*part { name: "shadow_top";
+ clip_to: "shadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 1 1;
+ align: 0.5 0.0;
+ color: 255 255 255 100;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ image.normal: GALLERY_EDC_IMAGE_OS_TOP;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "shadow_bottom";
+ clip_to: "shadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ color: 255 255 255 100;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ image.normal: GALLERY_EDC_IMAGE_OS_BOTTOM;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }*/
+ part { name: "shadow_left";
+ clip_to: "shadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 30 0;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ color: 255 255 255 0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ image.normal: GALLERY_EDC_IMAGE_OS_LEFT;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "shadow_right";
+ clip_to: "shadow_clip";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 30 0;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ color: 255 255 255 0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ image.normal: GALLERY_EDC_IMAGE_OS_RIGHT;
+ }
+ description { state: "edge" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ /*part { name: "padding_jump_to_top";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
+ max: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 0.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ fixed: 1 1;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "elm.swallow.jump_to_top";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "padding_jump_to_top";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "padding_jump_to_top";
+ relative: 0.0 1.0;
+ }
+ fixed: 1 1;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "padding_jump_to_left";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
+ max: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 0.0 1.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ fixed: 1 1;
+ align: 0.0 1.0;
+ }
+ }
+ part { name: "elm.swallow.jump_to_left";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "padding_jump_to_left";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "padding_jump_to_left";
+ relative: 1.0 0.0;
+ }
+ fixed: 1 1;
+ align: 0.0 1.0;
+ }
+ }*/
+ }
+ programs {
+ program { name: "load";
+ script {
+ set_state(PART:"sb_hbar_clip", "hidden", 0.0);
+ set_state(PART:"sb_vbar_clip", "hidden", 0.0);
+ set_state(PART:"shadow_clip", "hidden", 0.0);
+ set_int(sbvis_h, 0);
+ set_int(sbvis_v, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ set_int(sh_v, 0);
+ set_int(sh_timer, 0);
+ set_int(edge_timer, 0);
+ }
+ }
+ program { name: "vshadow_show";
+ signal: "do-show-vshadow";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "shadow_clip";
+ }
+ program { name: "vshadow_hide";
+ signal: "do-hide-vshadow";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.5;
+ target: "shadow_clip";
+ }
+ program { name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1, "timer0", 0);
+ set_int(sbvis_timer, v);
+
+ /*v = get_int(edge_timer);
+ if (!v) {
+ set_state(PART:"shadow_top", "default", 0.0);
+ set_state(PART:"shadow_bottom", "default", 0.0);
+ set_state(PART:"shadow_left", "default", 0.0);
+ set_state(PART:"shadow_right", "default", 0.0);
+ emit("do-show-vshadow", "");
+ v = get_int(sh_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(0.2, "timer1", 0);
+ set_int(sh_timer, v);
+ }*/
+ }
+ }
+ /*program { name: "edge_top";
+ signal: "elm,edge,top";
+ source: "elm";
+ after: "edge";
+ }
+ program { name: "edge_bottom";
+ signal: "elm,edge,bottom";
+ source: "elm";
+ after: "edge";
+ }*/
+ program { name: "edge_left";
+ signal: "elm,edge,left";
+ source: "elm";
+ after: "edge_shadow_left";
+ }
+ program { name: "edge_right";
+ signal: "elm,edge,right";
+ source: "elm";
+ after: "edge_shadow_right";
+ }
+ /*program { name: "edge";
+ script {
+ new v;
+ v = get_int(sh_timer);
+ if (v > 0) cancel_timer(v);
+ set_state(PART:"shadow_top", "edge", 0.0);
+ set_state(PART:"shadow_bottom", "edge", 0.0);
+ set_state(PART:"shadow_left", "edge", 0.0);
+ set_state(PART:"shadow_right", "edge", 0.0);
+ v = get_int(edge_timer);
+ if (!v) {
+ emit("do-show-vshadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.2, "timer2", 0);
+ set_int(edge_timer, v);
+ }
+ }*/
+ program { name: "edge_shadow_left"; /* newly added */
+ script {
+ new v;
+ v = get_int(sh_timer);
+ if (v > 0) cancel_timer(v);
+ set_state(PART:"shadow_left", "edge", 0.0);
+ set_state(PART:"shadow_right", "default", 0.0);
+ v = get_int(edge_timer);
+ if (!v) {
+ emit("do-show-vshadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.2, "timer2", 0);
+ set_int(edge_timer, v);
+ }
+ }
+ program { name: "edge_shadow_right"; /* newly added */
+ script {
+ new v;
+ v = get_int(sh_timer);
+ if (v > 0) cancel_timer(v);
+ set_state(PART:"shadow_right", "edge", 0.0);
+ set_state(PART:"shadow_left", "default", 0.0);
+ v = get_int(edge_timer);
+ if (!v) {
+ emit("do-show-vshadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.2, "timer2", 0);
+ set_int(edge_timer, v);
+ }
+ }
+ program { name: "show";
+ signal: "show";
+ source: "";
+ script {
+ new v;
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ v = get_int(sbalways_v);
+ if (!v) {
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ v = get_int(sbalways_h);
+ if (!v) {
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ }
+ }
+}
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+
+ #define RESOURCE_IMAGE( FILE_NAME ) \
+ group { \
+ name: FILE_NAME; \
+ images.image: FILE_NAME COMP; \
+ parts { \
+ part { name: "image"; \
+ description { \
+ state: "default" 0.0; \
+ image.normal: FILE_NAME; \
+ aspect: 1 1; \
+ aspect_preference: BOTH; \
+ } \
+ } \
+ } \
+ }
+
+#define RESOURCE_IMAGE_LOSSY( FILE_NAME ) \
+ group { \
+ name: FILE_NAME; \
+ images.image: FILE_NAME LOSSY 85; \
+ parts { \
+ part { name: "image"; \
+ description { \
+ state: "default" 0.0; \
+ image.normal: FILE_NAME; \
+ aspect: 1 1; \
+ aspect_preference: BOTH; \
+ } \
+ } \
+ } \
+ }
+
+collections {
+ RESOURCE_IMAGE("T01_icon_lock.png");
+ RESOURCE_IMAGE("T01_album_icon_camera.png");
+ RESOURCE_IMAGE("T01_album_icon_download.png");
+ RESOURCE_IMAGE("T01_album_icon_folder.png");
+ RESOURCE_IMAGE("T01_album_icon_sd_card.png");
+ RESOURCE_IMAGE("T01_icon_camera_all.png");
+ RESOURCE_IMAGE("T01_icon_add_folder.png");
+ RESOURCE_IMAGE("T01_title_icon_select_all.png");
+ RESOURCE_IMAGE("T01_btn_thumbnail_play.png");
+ RESOURCE_IMAGE("T01_icon_thumbnail_bookmark.png");
+
+ RESOURCE_IMAGE("T01_icon_sound_shot.png");
+ RESOURCE_IMAGE("T01_icon_panorama.png");
+ RESOURCE_IMAGE("T01_icon_bustshot_45x45.PNG");
+
+ RESOURCE_IMAGE("T01_popup_icon_new_album.png");
+ RESOURCE_IMAGE("T01_popup_icon_slideshow.png");
+ RESOURCE_IMAGE("T01_icon_share.png");
+ RESOURCE_IMAGE("T01_popup_copy.png");
+ RESOURCE_IMAGE("T01_popup_move.png");
+ RESOURCE_IMAGE("T02_popup_icon_edit_image.png");
+ RESOURCE_IMAGE("T02_popup_icon_settings.png");
+ RESOURCE_IMAGE("T01_popup_icon_rotate_right.png");
+ RESOURCE_IMAGE("T01_popup_icon_rotate_left.png");
+ RESOURCE_IMAGE("T01_popup_icon_edit.png");
+ RESOURCE_IMAGE("T01_popup_icon_delete.png");
+ RESOURCE_IMAGE("T01_popup_icon_done.png");
+ RESOURCE_IMAGE("T01_popup_icon_rename.png");
+ RESOURCE_IMAGE("T01_nocontents_videos.png");
+ RESOURCE_IMAGE("T01_icon_back.png");
+ RESOURCE_IMAGE("gallery_list_icon_folder.png");
+ RESOURCE_IMAGE("gallery_list_icon_my_files_sd_card.png");
+}
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+//added for progressbar label
+
+//nbeat-inc.edc
+#define LABEL_TEXT_BLOCK_STYLE_COLOR_INC "#000000"
+
+#define TEXT_SLIDE_DURATION 10
+
+ styles {
+ style { name: "textblock_style";
+ base: "font=Tizen:style=Medium text_class=tizen font_size=24 color="LABEL_TEXT_BLOCK_STYLE_COLOR_INC" text_class=label";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "tab" "\t";
+ }
+ }
+
+ /* label doesn't use it */
+ styles {
+ style { name: "textblock_charwrap_style";
+ base: "font=Tizen:style=Medium text_class=tizen font_size=24 color="LABEL_TEXT_BLOCK_STYLE_COLOR_INC;
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "tab" "\t";
+ }
+ }
+
+ group { name: "elm/label/base/default";
+ alias: "elm/label/base/gallery/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "18";
+ data.item: "max_font_size" "60";
+ parts {
+ part { name: "label.swallow.background";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "label.text.clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ color: 255 255 255 255;
+ rel1 { relative: 0 0; to: "label.swallow.background"; }
+ rel2 { relative: 1 1; to: "label.swallow.background"; }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ }
+
+ /* default label doesn't use it */
+ group { name: "elm/label/base_wrap/default";
+ alias: "elm/label/base_wrap/gallery/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "18";
+ data.item: "max_font_size" "60";
+ parts {
+ part { name: "label.swallow.background";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0 0; to: "elm.text"; }
+ rel2 { relative: 1 1; to: "elm.text"; }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ multiline: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "charwrap_mode" 0.0;
+ text {
+ style: "textblock_charwrap_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "default_on";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "charwrap_on";
+ signal: "elm,state,charwrap";
+ source: "elm";
+ action: STATE_SET "charwrap_mode" 0.0;
+ target: "elm.text";
+ }
+ } // end programs
+ } // end group
+
+ /* default label doesn't use it */
+ group { name: "elm/label/base_wrap_ellipsis/default";
+ alias: "elm/label/base_wrap_ellipsis/gallery/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "18";
+ data.item: "max_font_size" "60";
+ parts {
+ part { name: "label.swallow.background";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0 0; to: "elm.text"; }
+ rel2 { relative: 1 1; to: "elm.text"; }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ multiline: 1;
+ description { state: "default" 0.0;
+ // FIXME : fixed for multiline ellipsis.
+ // does it need to make another ellipsis style?
+ fixed: 0 1;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "charwrap_mode" 0.0;
+ // FIXME : fixed for multiline ellipsis.
+ // does it need to make another ellipsis style?
+ fixed: 0 1;
+ text {
+ style: "textblock_charwrap_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "default_on";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "charwrap_on";
+ signal: "elm,state,charwrap";
+ source: "elm";
+ action: STATE_SET "charwrap_mode" 0.0;
+ target: "elm.text";
+ }
+ } // end programs
+ } // end group
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+/********Used for showing overscrolling images start*********/
+
+#define GL_CRIPT_SCROLLER \
+ script { \
+ public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; \
+ public sh_v, sh_h, sh_timer, edge_timer; \
+ public timer0(val) { \
+ new v; \
+ v = get_int(sbvis_v); \
+ if (v) { \
+ v = get_int(sbalways_v); \
+ if (!v) { \
+ emit("do-hide-vbar", ""); \
+ set_int(sbvis_v, 0); \
+ } \
+ } \
+ v = get_int(sbvis_h); \
+ if (v) { \
+ v = get_int(sbalways_h); \
+ if (!v) { \
+ emit("do-hide-hbar", ""); \
+ set_int(sbvis_h, 0); \
+ } \
+ } \
+ set_int(sbvis_timer, 0); \
+ return 0; \
+ } \
+ public timer1(val) { \
+ emit("do-hide-vshadow", ""); \
+ emit("do-hide-hshadow", ""); \
+ set_int(sh_timer, 0); \
+ return 0; \
+ } \
+ public timer2(val) { \
+ emit("do-hide-vshadow", ""); \
+ emit("do-hide-hshadow", ""); \
+ set_int(edge_timer, 0); \
+ return 0; \
+ } \
+ }
+
+#define GL_IMAGES_GRID_OVERSCROLL \
+ images { \
+ image: GALLERY_EDC_IMAGE_GIRD_OS_TOP COMP; \
+ image: GALLERY_EDC_IMAGE_GIRD_OS_BOT COMP; \
+ image: GALLERY_EDC_IMAGE_GIRD_OS_LEFT COMP; \
+ image: GALLERY_EDC_IMAGE_GIRD_OS_RIGHT COMP; \
+ }
+
+#define GL_SHADOW_SCROLLER(CONTENT) \
+ part { name: "vshadow_clip"; \
+ type: RECT; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ } \
+ description { state: "hidden" 0.0; \
+ visible: 0; \
+ color: 255 255 255 0; \
+ } \
+ } \
+ part { name: "hshadow_clip"; \
+ type: RECT; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ } \
+ description { state: "hidden" 0.0; \
+ visible: 0; \
+ color: 255 255 255 0; \
+ } \
+ } \
+ part { name: "shadow_top"; \
+ clip_to: "vshadow_clip"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ min: 0 405; \
+ fixed: 1 1; \
+ align: 0.5 0.0; \
+ color: 255 255 255 100; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 0.0; \
+ rel1.to: CONTENT; \
+ rel2.to: CONTENT; \
+ image.normal: GALLERY_EDC_IMAGE_GIRD_OS_TOP; \
+ } \
+ description { state: "edge" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "shadow_bottom"; \
+ clip_to: "vshadow_clip"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ min: 0 405; \
+ fixed: 1 1; \
+ align: 0.5 1.0; \
+ color: 255 255 255 100; \
+ rel1.relative: 0.0 1.0; \
+ rel2.relative: 1.0 1.0; \
+ rel1.to: CONTENT; \
+ rel2.to: CONTENT; \
+ image.normal: GALLERY_EDC_IMAGE_GIRD_OS_BOT; \
+ } \
+ description { state: "edge" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "shadow_left"; \
+ clip_to: "hshadow_clip"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ min: 405 0; \
+ fixed: 1 1; \
+ align: 0.0 0.5; \
+ color: 255 255 255 100; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 0.0 1.0; \
+ rel1.to: CONTENT; \
+ rel2.to: CONTENT; \
+ image.normal: GALLERY_EDC_IMAGE_GIRD_OS_LEFT; \
+ } \
+ description { state: "edge" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "shadow_right"; \
+ clip_to: "hshadow_clip"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ min: 405 0; \
+ fixed: 1 1; \
+ align: 1.0 0.5; \
+ color: 255 255 255 100; \
+ rel1.relative: 1.0 0.0; \
+ rel2.relative: 1.0 1.0; \
+ rel1.to: CONTENT; \
+ rel2.to: CONTENT; \
+ image.normal: GALLERY_EDC_IMAGE_GIRD_OS_RIGHT; \
+ } \
+ description { state: "edge" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ }
+
+#define GL_PROGRAM_SCROLLER \
+ program { name: "load"; \
+ signal: "load"; \
+ source: ""; \
+ script { \
+ set_state(PART:"vshadow_clip", "hidden", 0.0); \
+ set_state(PART:"hshadow_clip", "hidden", 0.0); \
+ set_int(sbvis_h, 0); \
+ set_int(sbvis_v, 0); \
+ set_int(sbalways_v, 0); \
+ set_int(sbalways_h, 0); \
+ set_int(sbvis_timer, 0); \
+ set_int(sh_timer, 0); \
+ set_int(edge_timer, 0); \
+ emit("reload", "elm"); \
+ } \
+ } \
+ program { name: "vbar_show_always"; \
+ signal: "elm,action,show_always,vbar"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(sbvis_v); \
+ v |= get_int(sbalways_v); \
+ if (!v) { \
+ set_int(sbalways_v, 1); \
+ emit("do-show-vbar", ""); \
+ set_int(sbvis_v, 1); \
+ } \
+ } \
+ } \
+ program { name: "vbar_show_notalways"; \
+ signal: "elm,action,show_notalways,vbar"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(sbalways_v); \
+ if (v) { \
+ set_int(sbalways_v, 0); \
+ v = get_int(sbvis_v); \
+ if (!v) { \
+ emit("do-hide-vbar", ""); \
+ set_int(sbvis_v, 0); \
+ } \
+ } \
+ } \
+ } \
+ program { name: "hbar_show_always"; \
+ signal: "elm,action,show_always,hbar"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(sbvis_h); \
+ v |= get_int(sbalways_h); \
+ if (!v) { \
+ set_int(sbalways_h, 1); \
+ emit("do-show-hbar", ""); \
+ set_int(sbvis_h, 1); \
+ } \
+ } \
+ } \
+ program { name: "hbar_show_notalways"; \
+ signal: "elm,action,show_notalways,hbar"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(sbalways_h); \
+ if (v) { \
+ set_int(sbalways_h, 0); \
+ v = get_int(sbvis_h); \
+ if (!v) { \
+ emit("do-hide-hbar", ""); \
+ set_int(sbvis_h, 0); \
+ } \
+ } \
+ } \
+ } \
+ program { name: "vshadow_show"; \
+ signal: "do-show-vshadow"; \
+ source: ""; \
+ action: STATE_SET "default" 0.0; \
+ transition: LINEAR 0.5; \
+ target: "vshadow_clip"; \
+ } \
+ program { name: "vshadow_hide"; \
+ signal: "do-hide-vshadow"; \
+ source: ""; \
+ action: STATE_SET "hidden" 0.0; \
+ transition: LINEAR 0.5; \
+ target: "vshadow_clip"; \
+ } \
+ program { name: "hshadow_show"; \
+ signal: "do-show-hshadow"; \
+ source: ""; \
+ action: STATE_SET "default" 0.0; \
+ transition: LINEAR 0.5; \
+ target: "hshadow_clip"; \
+ } \
+ program { name: "hshadow_hide"; \
+ signal: "do-hide-hshadow"; \
+ source: ""; \
+ action: STATE_SET "hidden" 0.0; \
+ transition: LINEAR 0.5; \
+ target: "hshadow_clip"; \
+ } \
+ program { name: "scroll"; \
+ signal: "elm,action,scroll"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(sbvis_v); \
+ v |= get_int(sbalways_v); \
+ if (!v) { \
+ emit("do-show-vbar", ""); \
+ set_int(sbvis_v, 1); \
+ } \
+ v = get_int(sbvis_h); \
+ v |= get_int(sbalways_h); \
+ if (!v) { \
+ emit("do-show-hbar", ""); \
+ set_int(sbvis_h, 1); \
+ } \
+ v = get_int(sbvis_timer); \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = timer(1, "timer0", 0); \
+ set_int(sbvis_timer, v); \
+ } \
+ } \
+ program { name: "scroll_up"; \
+ signal: "elm,action,scroll,up"; \
+ source: "elm"; \
+ after: "scroll_vertical"; \
+ } \
+ program { name: "scroll_down"; \
+ signal: "elm,action,scroll,down"; \
+ source: "elm"; \
+ after: "scroll_vertical"; \
+ } \
+ program { name: "scroll_vertical"; \
+ script { \
+ new v; \
+ v = get_int(edge_timer); \
+ if (!v) { \
+ set_state(PART:"shadow_top", "default", 0.0); \
+ set_state(PART:"shadow_bottom", "default", 0.0); \
+ emit("do-show-vshadow", ""); \
+ v = get_int(sh_timer); \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = timer(0.2, "timer1", 0); \
+ set_int(sh_timer, v); \
+ } \
+ } \
+ } \
+ program { name: "scroll_left"; \
+ signal: "elm,action,scroll,left"; \
+ source: "elm"; \
+ after: "scroll_horizontal"; \
+ } \
+ program { name: "scroll_right"; \
+ signal: "elm,action,scroll,right"; \
+ source: "elm"; \
+ after: "scroll_horizontal"; \
+ } \
+ program { name: "scroll_horizontal"; \
+ script { \
+ new v; \
+ v = get_int(edge_timer); \
+ if (!v) { \
+ set_state(PART:"shadow_left", "default", 0.0); \
+ set_state(PART:"shadow_right", "default", 0.0); \
+ emit("do-show-hshadow", ""); \
+ v = get_int(sh_timer); \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = timer(0.2, "timer1", 0); \
+ set_int(sh_timer, v); \
+ } \
+ } \
+ } \
+ program { name: "edge_top"; \
+ signal: "elm,edge,top"; \
+ source: "elm"; \
+ script { \
+ set_state(PART:"shadow_top", "edge", 0.0); \
+ set_state(PART:"shadow_bottom", "hidden", 0.0); \
+ } \
+ after: "edge_vertical"; \
+ } \
+ program { name: "edge_bottom"; \
+ signal: "elm,edge,bottom"; \
+ source: "elm"; \
+ script { \
+ set_state(PART:"shadow_top", "hidden", 0.0); \
+ set_state(PART:"shadow_bottom", "edge", 0.0); \
+ } \
+ after: "edge_vertical"; \
+ } \
+ program { name: "edge_left"; \
+ signal: "elm,edge,left"; \
+ source: "elm"; \
+ script { \
+ set_state(PART:"shadow_left", "edge", 0.0); \
+ set_state(PART:"shadow_right", "hidden", 0.0); \
+ } \
+ after: "edge_horizontal"; \
+ } \
+ program { name: "edge_right"; \
+ signal: "elm,edge,right"; \
+ source: "elm"; \
+ script { \
+ set_state(PART:"shadow_left", "hidden", 0.0); \
+ set_state(PART:"shadow_right", "edge", 0.0); \
+ } \
+ after: "edge_horizontal"; \
+ } \
+ program { name: "edge_all"; \
+ signal: "elm,edge,all"; \
+ source: "elm"; \
+ script { \
+ set_state(PART:"shadow_top", "edge", 0.0); \
+ set_state(PART:"shadow_bottom", "edge", 0.0); \
+ set_state(PART:"shadow_left", "edge", 0.0); \
+ set_state(PART:"shadow_right", "edge", 0.0); \
+ } \
+ after: "edge_hori_verti"; \
+ } \
+ program { name: "edge_vertical"; \
+ script { \
+ new v; \
+ v = get_int(sh_timer); \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = get_int(edge_timer); \
+ if (!v) { \
+ emit("do-show-vshadow", ""); \
+ } \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = timer(0.2, "timer2", 0); \
+ set_int(edge_timer, v); \
+ } \
+ } \
+ program { name: "edge_horizontal"; \
+ script { \
+ new v; \
+ v = get_int(sh_timer); \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = get_int(edge_timer); \
+ if (!v) { \
+ emit("do-show-hshadow", ""); \
+ } \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = timer(0.2, "timer2", 0); \
+ set_int(edge_timer, v); \
+ } \
+ } \
+ program { name: "edge_hori_verti"; \
+ script { \
+ new v; \
+ v = get_int(sh_timer); \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = get_int(edge_timer); \
+ if (!v) { \
+ emit("do-show-hshadow", ""); \
+ emit("do-show-vshadow", ""); \
+ } \
+ if (v > 0) \
+ cancel_timer(v); \
+ v = timer(0.2, "timer2", 0); \
+ set_int(edge_timer, v); \
+ } \
+ } \
+ program { name: "show"; \
+ signal: "show"; \
+ source: ""; \
+ script { \
+ new v; \
+ emit("do-show-vbar", ""); \
+ set_int(sbvis_v, 1); \
+ v = get_int(sbalways_v); \
+ if (!v) { \
+ v = get_int(sbvis_timer); \
+ if (v > 0) cancel_timer(v); \
+ v = timer(1.0, "timer0", 0); \
+ set_int(sbvis_timer, v); \
+ } \
+ emit("do-show-hbar", ""); \
+ set_int(sbvis_h, 1); \
+ v = get_int(sbalways_h); \
+ if (!v) { \
+ v = get_int(sbvis_timer); \
+ if (v > 0) cancel_timer(v); \
+ v = timer(1.0, "timer0", 0); \
+ set_int(sbvis_timer, v); \
+ } \
+ } \
+ }
+/********Used for showing overscrolling images done*********/
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define NAVIFRAME_VIEW_TRANS_TIME 0.3
+#define NAVIFRAME_TITLE_TRANS_TIME 0.5
+
+group { name: "elm/naviframe/item/gallery_empty/default";
+ script {
+ public tbar_close = 0; //Toolbar lastest Open/Close status
+ public landscape = 0; //Landscape mode status
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "left" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "left" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: -1.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ description { state: "right" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 2.0 1.0;
+ }
+ }
+ part { name: "title_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 NAVIFRAME_TITLE_H_INC;
+ max: -1 NAVIFRAME_TITLE_H_INC;
+ align: 0.0 0.0;
+ fixed: 0 1;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ }
+ description { state: "hide_trans" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide_trans_landscape" 0.0;
+ inherit: "landscape" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: -1 0;
+ }
+ }
+ part { name: "title_clip";
+ type: RECT;
+ mouse_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 { to_y: "title_bg"; }
+ rel2 { to_y: "title_bg"; }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "content_clip";
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.relative: 0.0 1.0;
+ rel1.to_x: "base";
+ rel1.to_y: "title_bg";
+ rel2.relative: 1.0 0.0;
+ rel2.to_x: "base";
+ rel2.to_y: "toolbar";
+ }
+ }
+ part { name: "content_clip";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ }
+ }
+ part { name: "title";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 0 NAVIFRAME_TITLE_H_INC;
+ max: -1 NAVIFRAME_TITLE_H_INC;
+ align: 0.0 0.0;
+ fixed: 0 1;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ }
+ description { state: "hide_trans" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide_trans_landscape" 0.0;
+ inherit: "landscape" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: -1 0;
+ }
+ }
+ part { name: "toolbar";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 999999 0;
+ fixed: 0 1;
+ align: 0.0 1.0;
+ visible: 0;
+ rel1 { to: "base"; }
+ rel2 { to: "base"; }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
+ max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
+ visible: 1;
+ }
+ description { state: "visible_landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
+ max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
+ visible: 1;
+ }
+ }
+ part { name: "more_btn_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "toolbar"; }
+ rel2 { relative: 0.0 1.0; to: "toolbar"; }
+ }
+ }
+ part { name: "toolbar_more_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
+ fixed: 1 1;
+ rel1.to: "more_btn_bg";
+ rel2.to: "more_btn_bg";
+ visible: 0;
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
+ }
+ }
+ part { name: "prev_btn_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1 { relative: 1.0 0.0; to: "toolbar"; }
+ rel2.to: "toolbar";
+ }
+ }
+ part { name: "elm.swallow.prev_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1.to: "prev_btn_bg";
+ rel2.to: "prev_btn_bg";
+ visible: 0;
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
+ }
+ }
+ part { name: "toolbar_clip";
+ type: RECT;
+ mouse_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 { to: "toolbar"; }
+ rel2 { to: "toolbar"; }
+ }
+ }
+ }
+ programs {
+ program { name: "content_new_pushed";
+ signal: "elm,state,new,pushed,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
+ after: "show_finished";
+ }
+ program { name: "content_cur_pushed";
+ signal: "elm,state,cur,pushed,deferred";
+ source: "elm";
+ action: STATE_SET "left" 0.0;
+ target: "base";
+ target: "clipper";
+ transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
+ after: "pushed_finished";
+ }
+ program { name: "content_prev_popped";
+ signal: "elm,state,prev,popped,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ target: "clipper";
+ transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
+ after: "show_finished";
+ }
+ program { name: "content_cur_popped";
+ signal: "elm,state,cur,popped,deferred";
+ source: "elm";
+ action: STATE_SET "right" 0.0;
+ target: "base";
+ transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
+ after: "popped_finished";
+ }
+ program { name: "cur_pushed";
+ signal: "elm,state,cur,pushed";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "new_pushed";
+ signal: "elm,state,new,pushed";
+ source: "elm";
+ action: STATE_SET "right" 0.0;
+ target: "base";
+ }
+ program { name: "prev_popped";
+ signal: "elm,state,prev,popped";
+ source: "elm";
+ action: STATE_SET "left" 0.0;
+ target: "base";
+ }
+ program { name: "cur_popped";
+ signal: "elm,state,cur,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "visible";
+ signal: "elm,state,visible";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ target: "clipper";
+ }
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ if (!get_int(landscape)) {
+ set_state(PART:"title", "default", 0.0);
+ set_state(PART:"title_bg", "default", 0.0);
+ } else {
+ set_state(PART:"title", "landscape", 0.0);
+ set_state(PART:"title_bg", "landscape", 0.0);
+ }
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"title", "hide", 0.0);
+ }
+ }
+ program { name: "title_show_anim";
+ signal: "elm,action,title,show";
+ source: "elm";
+ script {
+ if (!get_int(landscape)) {
+ set_state(PART:"title", "hide_trans", 0.0);
+ set_state(PART:"title_bg", "hide_trans", 0.0);
+ } else {
+ set_state(PART:"title", "hide_trans_landscape", 0.0);
+ set_state(PART:"title_bg", "hide_trans_landscape", 0.0);
+ }
+ run_program(PROGRAM:"title_show_anim_start");
+ }
+ }
+ program { name: "title_show_anim_start";
+ action: STATE_SET "default" 0.0;
+ target: "title";
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_show_anim_finished";
+ }
+ program { name: "title_show_anim_finished";
+ script {
+ emit("elm,action,title,transition,finished", "");
+ }
+ }
+ program { name: "title_hide_trans";
+ signal: "elm,action,title,hide";
+ source: "elm";
+ script {
+ if (!get_int(landscape)) {
+ set_state(PART:"title", "default", 0.0);
+ set_state(PART:"title_bg", "default", 0.0);
+ } else {
+ set_state(PART:"title", "landscape", 0.0);
+ set_state(PART:"title_bg", "landscape", 0.0);
+ }
+ run_program(PROGRAM:"title_hide_trans_start");
+ }
+ }
+ program { name: "title_hide_trans_start";
+ action: STATE_SET "hide_trans" 0.0;
+ target: "title";
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_hide_trans_finished";
+ }
+ program { name: "title_hide_trans_finished";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"title", "hide", 0.0);
+ emit("elm,action,title,transition,finished", "");
+ }
+ }
+ program { name: "toolbar_show";
+ signal: "elm,state,toolbar,show";
+ source: "elm";
+ script {
+ if (!get_int(landscape))
+ set_state(PART:"toolbar", "visible", 0.0);
+ else
+ set_state(PART:"toolbar", "visible_landscape", 0.0);
+ }
+ }
+ program { name: "toolbar_hide";
+ signal: "elm,state,toolbar,hide";
+ source: "elm";
+ script {
+ set_state(PART:"toolbar", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_open_internal";
+ signal: "elm,state,toolbar,open,internal";
+ source: "elm";
+ script {
+ set_int(tbar_close, 0);
+ if (!get_int(landscape))
+ set_state(PART:"toolbar", "visible", 0.0);
+ else
+ set_state(PART:"toolbar", "visible_landscape", 0.0);
+ }
+ }
+ program { name: "toolbar_close_internal";
+ signal: "elm,state,toolbar,close,internal";
+ source: "elm";
+ script {
+ set_int(tbar_close, 1);
+ set_state(PART:"toolbar", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_open";
+ signal: "elm,state,toolbar,open";
+ source: "";
+ script {
+ if (!get_int(landscape))
+ set_state(PART:"toolbar", "visible", 0.0);
+ else
+ set_state(PART:"toolbar", "visible_landscape", 0.0);
+ }
+ transition: LINEAR 0.2;
+ after: "toolbar_open_internal";
+ }
+ program { name: "toolbar_close";
+ signal: "elm,state,toolbar,close";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "toolbar";
+ transition: LINEAR 0.2;
+ after: "toolbar_close_internal";
+ }
+ program { name: "toolbar_instant_open";
+ signal: "elm,state,toolbar,instant_open";
+ source: "";
+ script {
+ emit("elm,state,toolbar,open,internal", "elm");
+ }
+ }
+ program { name: "toolbar_instant_close";
+ signal: "elm,state,toolbar,instant_close";
+ source: "";
+ script {
+ emit("elm,state,toolbar,close,internal", "elm");
+ }
+ }
+ program { name: "show_finished";
+ action: SIGNAL_EMIT "elm,action,show,finished" "";
+ }
+ program { name: "pushed_finished";
+ action: SIGNAL_EMIT "elm,action,pushed,finished" "";
+ }
+ program { name: "popped_finished";
+ action: SIGNAL_EMIT "elm,action,popped,finished" "";
+ }
+ program {
+ name: "change_to_landscape";
+ script {
+ if (!get_int(landscape)) {
+ set_state(PART:"toolbar_more_btn", "landscape", 0.0);
+ set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"title", st, 30, vl);
+ if (!strcmp(st, "default"))
+ set_state(PART:"title", "landscape", 0.0);
+ get_state(PART:"title_bg", st, 30, vl);
+ if (!strcmp(st, "default"))
+ set_state(PART:"title_bg", "landscape", 0.0);
+
+ get_state(PART:"toolbar", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"toolbar", "visible_landscape", 0.0);
+
+ set_int(landscape, 1);
+ }
+ }
+ }
+ program {
+ name: "change_to_portrait";
+ script {
+ if (get_int(landscape)) {
+ set_state(PART:"toolbar_more_btn", "default", 0.0);
+ set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"title", st, 30, vl);
+ if (!strcmp(st, "landscape"))
+ set_state(PART:"title", "default", 0.0);
+ get_state(PART:"title_bg", st, 30, vl);
+ if (!strcmp(st, "landscape"))
+ set_state(PART:"title_bg", "default", 0.0);
+
+ get_state(PART:"toolbar", st, 30, vl);
+ if (!strcmp(st, "visible_landscape"))
+ set_state(PART:"toolbar", "visible", 0.0);
+
+ set_int(landscape, 0);
+ }
+ }
+ }
+ program { name: "landscape_mode";
+ source: "elm";
+ signal: "elm,state,orient,90";
+ after: "change_to_landscape";
+ }
+ program { name: "landscape_mode2";
+ source: "elm";
+ signal: "elm,state,orient,270";
+ after: "change_to_landscape";
+ }
+ program { name: "portrait_mode";
+ source: "elm";
+ signal: "elm,state,orient,0";
+ after: "change_to_portrait";
+ }
+ program { name: "portrait_mode2";
+ source: "elm";
+ signal: "elm,state,orient,180";
+ after: "change_to_portrait";
+ }
+ }
+}
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC 36
+#define NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC_WHITE 20
+#define NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC 250 250 250 255
+#define NO_CONTENT_BG_HEIGHT_INC 185
+#define NO_CONTENT_BG_LANDSCAPE_HEIGHT_INC 132
+#define NO_CONTENT_MAX_HEIGHT_INC 244
+#define NO_CONTENT_LEFT_RIGHT_PADDING_WIDTH_INC 10
+
+ group {
+ name: "elm/layout/nocontents/gallery";
+ styles{
+ style { name: "nocontent_style";
+ base: "font=Tizen:style=Roman text_class=tizen font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=word";
+ tag: "br" "\n";
+ tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "tab" "\t";
+ }
+ }
+ images {
+ image: GALLERY_EDC_IMAGE_NOCONTENTS_PIC COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 0.0;}
+ rel2 { relative: 1.0 1.0;}
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "nocontents.image";
+ description { state: "default" 0.0;
+ visible: 1;
+ align: 0.5 0.0;
+ rel1 { relative: 234/720 466/1184; to: "bg";}
+ rel2 { relative: (234+252)/720 (466+252)/1184; to: "bg";}
+ image {
+ normal: GALLERY_EDC_IMAGE_NOCONTENTS_PIC;
+ border: 1 1 1 1;
+ border_scale: 1;
+ }
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ }
+ }
+ part { name: "middle.padding";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.5 0.0;
+ rel1 { relative: 0.0 1.0; to_y: "nocontents.image";}
+ rel2 { relative: 1.0 (466+252+0)/1184; to: "bg";}
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding";}
+ rel2 { relative: 1.0 (466+252+68)/1184; to: "bg";}
+ color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
+ text {
+ style: "nocontent_style";
+ align: 0.5 0.5;
+ min: 0 0;
+ max: 0 1;
+ }
+ }
+ }
+ part { name: "middle.padding.2";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.5 0.0;
+ rel1 { relative: 0.0 1.0; to_y: "elm.text";}
+ rel2 { relative: 1.0 (466+252+68+38)/1184; to: "bg";}
+ }
+ }
+ part { name: "elm.text.2";
+ type: TEXTBLOCK;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ visible: 1;
+ rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding.2";}
+ rel2 { relative: 1.0 1.0; to: "bg";}
+ color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
+ text {
+ style: "nocontent_style";
+ align: 0.5 0.5;
+ min: 0 0;
+ max: 0 1;
+ }
+ }
+ }
+ }
+ }
+
+
+ group {
+ name: "elm/layout/nocontents/gallery_white";
+ images {
+ image: "core_pattern_empty_bg.png" COMP;
+ image: "core_pattern_empty_bg_h.png" COMP;
+ }
+ styles{
+ style { name: "nocontent_style_white";
+ base: "font=Tizen:style=Regular font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC_WHITE" align=center color=#000000 wrap=word";
+ tag: "br" "\n";
+ tag: "hilight" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "b" "+ font=Tizen:style=Bold text_class=tizen";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: B011;
+ }
+ }
+ part { name: "bg_con";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color_class: "B238L1";
+ }
+ }
+ part { name: "bg_image";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 NO_CONTENT_BG_HEIGHT_INC;
+ rel1.to: "bg";
+ rel2 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ align: 0.0 0.0;
+ fixed: 0 1;
+ color_class: "B238L2";
+ image.normal: "core_pattern_empty_bg.png";
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NO_CONTENT_BG_LANDSCAPE_HEIGHT_INC;
+ image.normal: "core_pattern_empty_bg_h.png";
+ }
+ }
+ part { name: "text_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ max: -1 NO_CONTENT_MAX_HEIGHT_INC;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: NO_CONTENT_LEFT_RIGHT_PADDING_WIDTH_INC 0;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1.to: "text_bg";
+ rel2.to: "text_bg";
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part{ name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: NO_CONTENT_LEFT_RIGHT_PADDING_WIDTH_INC 0;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1 {
+ to: "text_bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "text_bg";
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "left_padding";
+ to_y: "text_bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ to_y: "text_bg";
+ relative: 0.0 1.0;
+ }
+ text {
+ style: "nocontent_style_white";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ }
+ }
+ }
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+group { name: "gl_popup_entry";
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 160;
+ fixed: 1 0;
+ }
+ }
+ part { name: "t_pad";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "base";
+ rel2.to: "base";
+ align: 0.0 0.0;
+ min: 0 10;
+ max: 0 10;
+ fixed: 1 1;
+ }
+ }
+ part { name: "top_content_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 30;
+ max: 0 40;
+ rel1 {
+ to_x: "base";
+ to_y: "t_pad";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_x: "base";
+ to_y: "t_pad";
+ relative: 1.0 1.0;
+ }
+ align: 0.0 0.0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "left_swallow_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 30 40;
+ max: 30 40;
+ rel1 {
+ to_x: "base";
+ to_y: "top_content_padding";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_x: "base";
+ to_y: "top_content_padding";
+ relative: 0.0 1.0;
+ }
+ align: 0.0 0.0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "right_swallow_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ min: 30 40;
+ max: 30 40;
+ rel1 {
+ to_x: "base";
+ to_y: "top_content_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_x: "base";
+ to_y: "top_content_padding";
+ relative: 1.0 1.0;
+ }
+ align: 1.0 0.0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ min: 0 80;
+ fixed: 0 1;
+ rel1 {
+ to: "left_swallow_padding";
+ relative : 1.0 1.0;
+ }
+ rel2 {
+ to: "right_swallow_padding";
+ relative: 0.0 1.0;
+ }
+ align: 0.0 0.5;
+ }
+ }
+ }
+}
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC 20
+#define PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC 0 0 0 255
+#define PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC 224 224 224 255
+#define PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC 8
+
+ group { name: "elm/progressbar/horizontal/gallery/list_progress";
+ images {
+ image: GALLERY_EDC_IMAGE_LIST_PROGRESS_BG COMP;
+ image: GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR COMP;
+ }
+ parts {
+ part { name: "elm.padding.left";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 0;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 0;
+ }
+ color: 0 0 0 0;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "elm.padding.right";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 0;
+ rel1 {
+ relative: 1.0 0.0;
+ offset: 0 0;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ }
+ color: 0 0 0 0;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "elm.background.progressbar";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to_x: "elm.padding.left";
+ relative: 1.0 0.0;
+ offset: 0 0;
+ }
+ rel2 {
+ to_x: "elm.padding.right";
+ relative: 0.0 1.0;
+ offset: 0 0;
+ }
+ }
+ }
+ part { name: "elm.swallow.bar";
+ mouse_events: 0;
+ scale: 1;
+ type: SWALLOW;
+ description {
+ min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
+ max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
+ state: "default" 0.0;
+ rel1 {
+ to: "elm.background.progressbar";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "elm.background.progressbar";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.0 0.5;
+ rel1 {
+ offset: 0 0;
+ to_y: "elm.background.progressbar";
+ }
+ rel2 {
+ offset: 0 -1;
+ relative: 0.0 1.0;
+ to_y: "elm.background.progressbar";
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ aspect: 1.0 1.0;
+ aspect_preference: VERTICAL;
+ rel2.offset: 4 -1;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ rel1.to_x: "elm.swallow.content";
+ rel1.relative: 1.0 0.0;
+ rel2.to_x: "elm.swallow.content";
+ rel2.relative: 1.0 1.0;
+ color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
+ text {
+ font: "SLP:style=Medium";
+ text_class: "slp";
+ size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
+ min: 0 0;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ text.min: 1 1;
+ }
+ }
+ part { name: "background";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "elm.background.progressbar";
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "elm.swallow.bar";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "elm.swallow.bar";
+ relative: 1.0 1.0;
+ }
+ image {
+ normal: GALLERY_EDC_IMAGE_LIST_PROGRESS_BG;
+ border: 0 0 1 1;
+ }
+ }
+ }
+ part { name: "elm.text.status";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ visible: 0;
+ rel1 {
+ to: "background";
+ relative: 0.5 0.5;
+ }
+ rel2 {
+ to: "background";
+ relative: 0.5 0.5;
+ }
+ text {
+ font: "SLP:style=Medium";
+ text_class: "slp";
+ size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
+ min: 0 0;
+ align: 0.5 0.0;
+ }
+ color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ text.min: 1 1;
+ }
+ }
+ part { name: "elm.progress.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "elm.background.progressbar";
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ rel1 {
+ to: "elm.swallow.bar";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_y: "elm.swallow.bar";
+ to_x: "elm.cur.progressbar";
+ offset: -1 -1;
+ }
+ image {
+ normal: GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR;
+ border: 0 0 1 1;
+ }
+ }
+ description {
+ state: "invert" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to_y: "elm.swallow.bar";
+ to_x: "elm.cur.progressbar";
+ }
+ rel2 {
+ to: "elm.swallow.bar";
+ relative: 1.0 1.0;
+ }
+ }
+ description {
+ state: "state_begin" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to: "elm.swallow.bar";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "elm.swallow.bar";
+ relative: 0.1 1.0;
+ }
+ }
+ description {
+ state: "state_end" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to: "elm.swallow.bar";
+ relative: 0.9 0.0;
+ }
+ rel2 {
+ to: "elm.swallow.bar";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "text-bar";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "progress-rect";
+ //effect: SOFT_SHADOW;
+ scale: 0;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ fixed: 1 1;
+ visible: 0;
+ rel1.to: "elm.text.status";
+ rel1.offset: -1 -1;
+ rel2.to: "elm.text.status";
+ text {
+ text_source: "elm.text.status";
+ font: "SLP:style=Medium";
+ text_class: "slp";
+ size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
+ min: 0 0;
+ align: 0.0 0.0;
+ }
+ color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ text.min: 1 1;
+ }
+ }
+ part { name: "elm.cur.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ confine: "background";
+ x: 1 1 1;
+ y: 0 0 0;
+ }
+ description { state: "default" 0.0;
+ min: 0 28;
+ fixed: 1 1;
+ visible: 0;
+ rel1 {
+ to: "background";
+ relative: 0 0;
+ }
+ rel2.to: "background";
+ }
+ }
+ part { name: "progress-rect";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.progress.progressbar";
+ rel2.to: "elm.progress.progressbar";
+ }
+ }
+ }
+ programs {
+ program { name: "label_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.text";
+ }
+ program { name: "label_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "units_show";
+ signal: "elm,state,units,visible";
+ source: "elm";
+ action: STATE_SET "show" 0.0;
+ target: "text-bar";
+ target: "elm.text.status";
+ }
+ program { name: "units_hide";
+ signal: "elm,state,units,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "text-bar";
+ target: "elm.text.status";
+ }
+ program { name: "slide_to_end";
+ action: STATE_SET "state_end" 0.0;
+ transition: LINEAR 0.5;
+ target: "elm.progress.progressbar";
+ after: "slide_to_begin";
+ }
+ program { name: "slide_to_begin";
+ signal: "elm,state,slide,begin";
+ action: STATE_SET "state_begin" 0.0;
+ target: "elm.progress.progressbar";
+ transition: LINEAR 0.5;
+ after: "slide_to_end";
+ }
+ program { name: "start_pulse";
+ signal: "elm,state,pulse,start";
+ source: "elm";
+ // after: "slide_to_end";
+ }
+ program { name: "stop_pulse";
+ signal: "elm,state,pulse,stop";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "slide_to_begin";
+ target: "slide_to_end";
+ target: "start_pulse";
+ //after: "state_pulse";
+ }
+ program { name: "state_pulse";
+ signal: "elm,state,pulse";
+ source: "elm";
+ action: STATE_SET "state_begin" 0.0;
+ target: "elm.progress.progressbar";
+ after: "units_hide";
+ }
+ program { name: "state_fraction";
+ signal: "elm,state,fraction";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "slide_to_begin";
+ target: "slide_to_end";
+ target: "start_pulse";
+ action: STATE_SET "default" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "set_invert_on";
+ signal: "elm,state,inverted,on";
+ source: "elm";
+ action: STATE_SET "invert" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "set_invert_off";
+ signal: "elm,state,inverted,off";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ }
+ }
+
+
+/////Processing popup layout with label and progressbar //////
+//568 = 378 + 190
+group { name: "popup_processing";
+#define GL_POPUP_PROCESSINGVIEW_CONTENT_MIN 568 188
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: GL_POPUP_PROCESSINGVIEW_CONTENT_MIN;
+ fixed: 1 0;
+ }
+ }
+ part { name:"pad_t";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 0 1;
+ align: 0 0;
+ rel1.to: "base";
+ rel2 {
+ relative: 1.0 0.0;
+ to: "base";
+ }
+ }
+ }
+ part { name: "pad_l";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 45 0;
+ max: 45 0;
+ fixed: 1 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "pad_r";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 45 0;
+ max: 45 0;
+ fixed: 1 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ align: 1.0 1.0;
+ }
+ }
+ part { name:"elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 60 0;
+ align: 0.0 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "pad_l";
+ to_y: "pad_t";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "pad_l";
+ to_y: "pad_b";
+ }
+ }
+ }
+ part { name:"pad_after_content";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 45 0;
+ fixed: 1 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ }
+ }
+ part { name:"elm.swallow.text";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 350 0;
+ align: 0.0 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "pad_after_content";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "pad_r";
+ to_y: "pad_b";
+ }
+ }
+ }
+ part { name:"pad_b";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 30;
+ fixed: 0 1;
+ align: 1 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "base";
+ }
+ rel2.to: "base";
+ }
+ }
+ }
+#undef GL_POPUP_PROCESSINGVIEW_CONTENT_MIN
+}
+
+#define POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_MIN_INC 0 70
+#define POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC 15 27
+#define POPUP_PROGRESSBAR_VIEW_LAYOUT_TEXT_FONT_SIZE_INC 0 38
+#define POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_INC 0 69
+#define POPUP_TEXT_FONT_SIZE 15
+
+
+group { name: "popup_text_progressbar_view_layout";
+ styles {
+ style { name: "popup_progress_style";
+ base: "font=Tizen:style=Regular align=right font_size="14" color=#FFFFFF wrap=mixed ellipsis=1.0";
+ tag: "br" "\n";
+ tag: "tab" "\t";
+ }
+ style { name: "popup_processing_style";
+ base: "font=Tizen:style=Regular align=left font_size="POPUP_TEXT_FONT_SIZE" color=#000000 wrap=mixed ellipsis=1.0";
+ tag: "br" "\n";
+ tag: "tab" "\t";
+ }
+ }
+
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_MIN_INC;
+ fixed: 1 0;
+ }
+ }
+ part { name: "pad_l_t";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
+ max: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
+ fixed: 1 1;
+ rel2.relative: 0.0 0.0;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "pad_r_t";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
+ max: POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC;
+ fixed: 1 1;
+ rel1.relative: 1.0 1.0;
+ align: 1.0 1.0;
+ }
+ }
+ part { name: "elm.text.description";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ min: POPUP_PROGRESSBAR_VIEW_LAYOUT_TEXT_FONT_SIZE_INC;
+ rel1 {
+ relative: 0.2 0.4;
+ to: "bg";
+ }
+ rel2 {
+ relative: 0.0 0.6;
+ to_x: "pad_r_t";
+ to_y: "bg";
+ }
+ text {
+ style: "popup_processing_style";
+ min: 0 1;
+ }
+ }
+ }
+ part { name: "progressbar_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ min: POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_INC;
+ rel1 {
+ relative: 0.0 0.0;
+ to_x: "bg";
+ to_y: "elm.text.description";
+ }
+ rel2 {
+ relative: 0.2 1.0;
+ to_x: "bg";
+ to_y: "elm.text.description";
+ }
+ }
+ }
+ part { name: "progressbar";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part { name: "progressbar_left";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ rel1.to: "progressbar_bg";
+ rel2.to: "progressbar_bg";
+ }
+ }
+ }
+}
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define SELINFO_H 48
+#define SELINFO_ARROW_H (SELINFO_H-9)
+#define SELINFO_COLOR 0 0 0 0
+#define SELINFO_PAD_R 20
+
+ group
+ {
+ name: "elm/standard/selectioninfo/gallery";
+
+ images {
+ image : GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL COMP;
+ image : GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS COMP;
+ image : GALLERY_EDC_IMAGE_BUTTON_REVEAL COMP;
+ image : GALLERY_EDC_IMAGE_BUTTON_REVEAL_PRESS COMP;
+ }
+
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ min: 0 SELINFO_H;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 1.0;
+ color: SELINFO_COLOR;
+ }
+ }
+ part { name: "right_padding";
+ type: RECT;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ min: SELINFO_PAD_R SELINFO_H;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ rel1 { relative: 1.0 0.0; to: "bg"; }
+ rel2 { relative: 1.0 1.0; to: "bg"; }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "arrow_image";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ max: SELINFO_ARROW_H SELINFO_ARROW_H;
+ align: 1.0 0.8;
+ aspect: 1.0 1.0;
+ fixed: 1 1;
+ rel1 {relative: 0.0 0.0; to: "right_padding"; }
+ rel2 {relative: 0.0 1.0; to: "right_padding"; }
+ }
+ description {
+ state: "arrow_reveal" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL;
+ }
+ description {
+ state: "arrow_press" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS;
+ }
+ }
+ part {
+ name: "arrow_center";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ max: SELINFO_ARROW_H SELINFO_ARROW_H;
+ align: 1.0 0.8;
+ aspect: 1.0 1.0;
+ fixed: 1 1;
+ rel1 {relative: 0.0 0.0; to: "arrow_image";}
+ rel2 {relative: 1.0 1.0; to: "arrow_image"; }
+ }
+ description {
+ state: "arrow_reveal" 0.0;
+ inherit: "default" 0.0;
+ image.normal: GALLERY_EDC_IMAGE_BUTTON_REVEAL;
+ visible: 1;
+ }
+ description {
+ state: "arrow_press" 0.0;
+ inherit: "default" 0.0;
+ image.normal: GALLERY_EDC_IMAGE_BUTTON_REVEAL_PRESS;
+ visible: 1;
+ }
+ }
+ }
+
+ programs {
+ program { name: "arrow_click";
+ signal: "mouse,down,1";
+ source: "arrow_center";
+ after: "arrow_click_anim";
+ }
+ program { name: "arrow_click_anim";
+ script {
+ set_state(PART:"arrow_image", "arrow_press", 0.0);
+ set_state(PART:"arrow_center", "arrow_press", 0.0);
+ }
+ }
+ program { name: "arrow_mouseout_clicked";
+ signal: "mouse,up,1";
+ source: "arrow_center";
+ script {
+ set_state(PART:"arrow_image", "arrow_reveal", 0.0);
+ set_state(PART:"arrow_center", "arrow_reveal", 0.0);
+ }
+ }
+ program { name: "arrow_click2";
+ signal: "mouse,clicked,1";
+ source: "arrow_center";
+ action: SIGNAL_EMIT "elm,action,click" "arrow";
+ }
+ program {//show arrow
+ name: "arrow_center_reveal";
+ signal: "elm,selectioninfo,arrow_show";
+ source: "elm";
+ script {
+ set_state(PART:"arrow_image", "arrow_reveal", 0.0);
+ set_state(PART:"arrow_center", "arrow_reveal", 0.0);
+ }
+ }
+ GL_GENGRID_SOUND("arrow_center")
+ GL_GENGRID_PLARY_SOUND
+ }
+ }
+
--- /dev/null
+/*
+* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+#define GL_TL_TITLE_H 46
+
+#define TIME_VIEW_GENLIST_STYLE(NAME, Y) \
+ group{ \
+ name: "elm/genlist/item/"#NAME"/default"; \
+ alias: "elm/genlist/item_compress/"#NAME"/default"; \
+ alias: "elm/genlist/tree/"#NAME"/default"; \
+ alias: "elm/genlist/tree_compress/"#NAME"/default";\
+ data.item: "contents" "elm.swallow"; \
+ data.item: "selectraise" "on"; \
+ data.item: "stacking" "above"; \
+ parts{ \
+ part{ \
+ name: "bg"; \
+ type: RECT; \
+ description{ \
+ state: "default" 0.0; \
+ color: 255 255 255 255; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 1.0; \
+ min: 0 Y; \
+ max: -1 Y; \
+ visible: 1; \
+ } \
+ } \
+ part{ \
+ name: "elm.swallow"; \
+ type: SWALLOW; \
+ description{ \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; to: "bg"; } \
+ rel2 { relative: 1.0 1.0; to: "bg"; } \
+ align: 0.5 0.5; \
+ } \
+ } \
+ } \
+ }
+
+#define PART_PADDING_LEFT( param_padding_size ) \
+ part { name: "elm.padding.left"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: param_padding_size 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ rel2.relative: 0.0 1.0; \
+ align: 0.0 0.0; \
+ } \
+ }
+
+#define PART_PADDING_RIGHT( param_padding_size ) \
+ part { name: "elm.padding.right"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: param_padding_size 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ rel1.relative: 1.0 0.0; \
+ align: 1.0 0.0; \
+ } \
+ }
+
+#define TL_BG \
+ part { \
+ name: "bg"; \
+ type: RECT; \
+ mouse_events: 1; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; } \
+ rel2 { relative: 1.0 1.0; } \
+ color: GALLERY_EDC_COLOR_BG; \
+ } \
+ }
+
+#define TL_BG_C \
+ part { \
+ name: "bg_c"; \
+ type: SWALLOW; \
+ scale: 1; \
+ mouse_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; to: "bg"; } \
+ rel2 { relative: 1.0 1.0; to: "bg"; } \
+ visible: 0; \
+ } \
+ }
+
+#define TL_TITLE_BG_TOP \
+ part { name: "title_bg"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 1 GL_TL_TITLE_H; \
+ fixed: 0 1; \
+ visible: 1; \
+ rel2.relative: 1.0 0.0; \
+ align: 0.0 0.0; \
+ color: GALLERY_EDC_COLOR_BG; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ min: 0 0; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ align: 0.0 0.0; \
+ } \
+ }
+
+#define TL_TITLE_TOP \
+ part { name: "title2"; \
+ type: SWALLOW; \
+ scale: 1; \
+ clip_to: "title_clip2"; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 GL_TL_TITLE_H; \
+ min: 999999 GL_TL_TITLE_H; \
+ fixed: 1 1; \
+ visible: 1; \
+ rel1.relative: 0.0 0.0; \
+ rel1.to: "title_bg"; \
+ rel2.relative: 1.0 0.0; \
+ rel2.to: "title_bg"; \
+ align: 0.0 0.0; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ min: 0 0; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ align: 0.0 0.0; \
+ } \
+ description { \
+ state: "top" 0.0; \
+ inherit: "default" 0.0; \
+ rel1.relative: 0.0 -1.0; \
+ rel1.to: "title_bg"; \
+ rel2.relative: 1.0 0.0; \
+ rel2.to: "title_bg"; \
+ } \
+ description { \
+ state: "bottom" 0.0; \
+ inherit: "default" 0.0; \
+ rel1.relative: 0.0 0.4; \
+ rel1.to: "title_bg"; \
+ rel2.relative: 1.0 1.4; \
+ rel2.to: "title_bg"; \
+ } \
+ } \
+ part { name: "title_clip2"; \
+ type: RECT; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ rel1 { to: "title_bg"; } \
+ rel2 { to: "title_bg"; } \
+ color: 255 255 255 0; \
+ } \
+ description { state: "fade_in" 0.0; \
+ rel1 { to: "title_bg"; } \
+ rel2 { to: "title_bg"; } \
+ color: 255 255 255 255; \
+ } \
+ } \
+ part { name: "title"; \
+ type: SWALLOW; \
+ scale: 1; \
+ clip_to: "title_clip"; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 GL_TL_TITLE_H; \
+ min: 999999 GL_TL_TITLE_H; \
+ fixed: 1 1; \
+ visible: 1; \
+ rel1.relative: 0.0 0.0; \
+ rel1.to: "title_bg"; \
+ rel2.relative: 1.0 0.0; \
+ rel2.to: "title_bg"; \
+ align: 0.0 0.0; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ min: 0 0; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel2.relative: 1.0 0.0; \
+ align: 0.0 0.0; \
+ } \
+ description { \
+ state: "top" 0.0; \
+ inherit: "default" 0.0; \
+ rel1.relative: 0.0 -0.6; \
+ rel1.to: "title_bg"; \
+ rel2.relative: 1.0 0.4; \
+ rel2.to: "title_bg"; \
+ } \
+ description { \
+ state: "bottom" 0.0; \
+ inherit: "default" 0.0; \
+ rel1.relative: 0.0 1.0; \
+ rel1.to: "title_bg"; \
+ rel2.relative: 1.0 2.0; \
+ rel2.to: "title_bg"; \
+ } \
+ } part { name: "title_clip"; \
+ type: RECT; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { to: "title_bg"; } \
+ rel2 { to: "title_bg"; } \
+ color: 255 255 255 255; \
+ } \
+ description { \
+ state: "fade_out" 0.0; \
+ rel1 { to: "title_bg"; } \
+ rel2 { to: "title_bg"; } \
+ color: 255 255 255 0; \
+ } \
+ }
+
+#define TL_SLIDER_PAD_BOT \
+ part { name: "slider_padding_b"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 8; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.0 1.0; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ } \
+ }
+
+#define TL_TITLE_BOTTOM \
+ part { name: "title"; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 GL_TL_TITLE_H; \
+ fixed: 0 1; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.0 1.0; \
+ } \
+ }
+
+#define TL_TITLE_PAD_BOTTOM \
+ part { name: "title_padding"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 8; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel1 { relative: 0.0 0.0; to: "title"; } \
+ rel2 { relative: 1.0 0.0; to: "title"; } \
+ align: 0.0 1.0; \
+ } \
+ }
+
+#define TL_OVER_SOUND(src)
+#define TL_VARIABLE
+#define GL_TL_PLAY_SOUND
+#define GL_TL_OVER(to_obj)
+
+#define TL_FOCUS_BG(N) \
+ part { \
+ name: N"_focus_bg"; \
+ type: IMAGE; \
+ repeat_events: 1; \
+ description { \
+ state: "default" 0.0; \
+ visible: 0; \
+ rel1 { relative: 0.0 0.0; to: N; } \
+ rel2 { relative: 1.0 1.0; to: N; } \
+ image.normal: GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS; \
+ image.border: 13 13 13 13; \
+ } \
+ description { \
+ state: "enabled" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ }
+
+#define TL_PG_FOCUS_BG(N) \
+ program { \
+ name: N"_go_mouse_down"; \
+ signal: "mouse,down,1"; \
+ source: N; \
+ action: STATE_SET "enabled" 0.0; \
+ target: N"_focus_bg"; \
+ transition: ACCELERATE 0.2; \
+ } \
+ program { \
+ name: N"_go_mouse_up"; \
+ signal: "mouse,up,1"; \
+ source: N; \
+ action: STATE_SET "default" 0.0; \
+ target: N"_focus_bg"; \
+ transition: DECELERATE 0.2; \
+ }
+
+#define TL_PADDING_LEFT(param_padding_name, param_padding_size, to_part) \
+ part { name: to_part"_"param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: param_padding_size 0; \
+ fixed: 1 0; \
+ visible: 0; \
+ rel1.to: to_part; \
+ rel2.to: to_part; \
+ rel2.relative: 1.0 0.0; \
+ rel2.offset: -30 0; \
+ align: 0.0 0.0; \
+ } \
+ }
+
+#define TL_PADDING_TOP(param_padding_name, param_padding_size, to_part) \
+ part { name: to_part"_"param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 param_padding_size; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel1.to: to_part; \
+ rel2.to: to_part; \
+ rel2.relative: 1.0 0.0; \
+ align: 0.0 0.0; \
+ } \
+ }
+
+#define TL_PADDING_BOT(param_padding_name, param_padding_size, to_part) \
+ part { name: to_part"_"param_padding_name; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 param_padding_size; \
+ fixed: 0 1; \
+ visible: 0; \
+ rel1.to: to_part; \
+ rel2.to: to_part; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.0 1.0; \
+ } \
+ }
+
+#define TL_PADDINGS(to_part) \
+ TL_PADDING_LEFT("padding.left", 2, to_part); \
+ TL_PADDING_LEFT("padding.right", 2+THUMB_CHECK_W, to_part); \
+ TL_PADDING_TOP("padding.top", 10, to_part); \
+ TL_PADDING_TOP("padding.bottom", 10+THUMB_CHECK_H, to_part); \
+ TL_PADDING_LEFT("padding.left2", 2, to_part); \
+ TL_PADDING_LEFT("padding.right2", 2+MODE_W, to_part); \
+ TL_PADDING_BOT("padding.top2", 2+MODE_H, to_part); \
+ TL_PADDING_BOT("padding.bottom2", 2, to_part); \
+
+#define TL_PART(part_name, rel1_x, rel1_y, rel1_to_x, rel1_to_y, rel2_x, rel2_y, rel2_to_x, rel2_to_y) \
+ part { \
+ name: part_name; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: rel1_x rel1_y; to_x: rel1_to_x; to_y: rel1_to_y; } \
+ rel2 { relative: rel2_x rel2_y; to_x: rel2_to_x; to_y: rel2_to_y; } \
+ } \
+ } \
+ TL_PADDINGS(part_name) \
+ part { \
+ name: part_name"_checkbox"; \
+ type: SWALLOW; \
+ description { \
+ state: "default" 0.0; \
+ rel1 {relative: 1.0 1.0; to_x: part_name"_padding.left"; to_y: part_name"_padding.top"; } \
+ rel2 {relative: 1.0 1.0; to_x: part_name"_padding.right"; to_y: part_name"_padding.bottom"; } \
+ } \
+ } \
+ TL_FOCUS_BG(part_name) \
+ GL_TL_OVER(part_name)
+
+
+images {
+ image : GALLERY_EDC_IMAGE_THUMBS_BG_FOCUS COMP;
+}
+
+group {
+ name: "gallery/timeline_1";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_1_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_1_1");
+ TL_OVER_SOUND("contents_1_1")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_1l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_1_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_1_1");
+ TL_OVER_SOUND("contents_1_1")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_2";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_2_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 450/956, "elm.padding.right", "bg");
+ TL_PART("contents_2_2", 1.0, (450+11)/956, "elm.padding.left", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_2_1");
+ TL_PG_FOCUS_BG("contents_2_2");
+ TL_OVER_SOUND("contents_2_1")
+ TL_OVER_SOUND("contents_2_2")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_2l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_2_1", 1.0, 0.0, "elm.padding.left", "bg", (11+830)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_2_2", (11+830+11)/1280, 0.0, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_2_1");
+ TL_PG_FOCUS_BG("contents_2_2");
+ TL_OVER_SOUND("contents_2_1")
+ TL_OVER_SOUND("contents_2_2")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_3";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_3_1", 1.0, 0.0, "elm.padding.left", "bg", 0.0, 450/956, "elm.padding.right", "bg");
+ TL_PART("contents_3_2", 1.0, (450+11)/956, "elm.padding.left", "bg", 450/720, 1.0, "bg", "bg");
+ TL_PART("contents_3_3", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_3_1");
+ TL_PG_FOCUS_BG("contents_3_2");
+ TL_PG_FOCUS_BG("contents_3_3");
+ TL_OVER_SOUND("contents_3_1")
+ TL_OVER_SOUND("contents_3_2")
+ TL_OVER_SOUND("contents_3_3")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_3l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_3_1", 1.0, 0.0, "elm.padding.left", "bg", (11+830)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_3_2", (11+830+11)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+181)/451, "elm.padding.right", "bg");
+ TL_PART("contents_3_3", (11+830+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_3_1");
+ TL_PG_FOCUS_BG("contents_3_2");
+ TL_PG_FOCUS_BG("contents_3_3");
+ TL_OVER_SOUND("contents_3_1")
+ TL_OVER_SOUND("contents_3_2")
+ TL_OVER_SOUND("contents_3_3")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_4";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_4_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 450/956, "bg", "bg");
+ TL_PART("contents_4_2", (450+12)/720, 0.0, "bg", "contents_4_1", 0.0, 542/956, "elm.padding.right", "bg");
+ TL_PART("contents_4_3", 1.0, (450+11)/956, "elm.padding.left", "bg", 450/720, 1.0, "bg", "bg");
+ TL_PART("contents_4_4", (450+12)/720, (542+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_4_1");
+ TL_PG_FOCUS_BG("contents_4_2");
+ TL_PG_FOCUS_BG("contents_4_3");
+ TL_PG_FOCUS_BG("contents_4_4");
+ TL_OVER_SOUND("contents_4_1")
+ TL_OVER_SOUND("contents_4_2")
+ TL_OVER_SOUND("contents_4_3")
+ TL_OVER_SOUND("contents_4_4")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_4l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_4_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_4_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_4_3", (11+415*2+11*2)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+181)/451, "elm.padding.right", "bg");
+ TL_PART("contents_4_4", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_4_1");
+ TL_PG_FOCUS_BG("contents_4_2");
+ TL_PG_FOCUS_BG("contents_4_3");
+ TL_PG_FOCUS_BG("contents_4_4");
+ TL_OVER_SOUND("contents_4_1")
+ TL_OVER_SOUND("contents_4_2")
+ TL_OVER_SOUND("contents_4_3")
+ TL_OVER_SOUND("contents_4_4")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_5";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_5_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 450/956, "bg", "bg");
+ TL_PART("contents_5_2", (450+12)/720, 0.0, "bg", "contents_5_1", 0.0, 1.0, "elm.padding.right", "contents_5_1");
+ TL_PART("contents_5_3", 1.0, (450+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
+ TL_PART("contents_5_4", (236+12)/720, 0.0, "bg", "contents_5_3", 0.0, 240/495, "elm.padding.right", "contents_5_3");
+ TL_PART("contents_5_5", (236+12)/720, (240+11)/495, "bg", "contents_5_3", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_5_1");
+ TL_PG_FOCUS_BG("contents_5_2");
+ TL_PG_FOCUS_BG("contents_5_3");
+ TL_PG_FOCUS_BG("contents_5_4");
+ TL_PG_FOCUS_BG("contents_5_5");
+ TL_OVER_SOUND("contents_5_1")
+ TL_OVER_SOUND("contents_5_2")
+ TL_OVER_SOUND("contents_5_3")
+ TL_OVER_SOUND("contents_5_4")
+ TL_OVER_SOUND("contents_5_5")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_5l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_5_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_5_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
+ TL_PART("contents_5_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_5_4", (11+415*2+11*2)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
+ TL_PART("contents_5_5", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_5_1");
+ TL_PG_FOCUS_BG("contents_5_2");
+ TL_PG_FOCUS_BG("contents_5_3");
+ TL_PG_FOCUS_BG("contents_5_4");
+ TL_PG_FOCUS_BG("contents_5_5");
+ TL_OVER_SOUND("contents_5_1")
+ TL_OVER_SOUND("contents_5_2")
+ TL_OVER_SOUND("contents_5_3")
+ TL_OVER_SOUND("contents_5_4")
+ TL_OVER_SOUND("contents_5_5")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_6";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_6_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 380/956, "bg", "bg");
+ TL_PART("contents_6_2", (450+12)/720, 0.0, "bg", "contents_6_1", 0.0, 450/956, "elm.padding.right", "bg");
+ TL_PART("contents_6_3", 1.0, (380+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
+ TL_PART("contents_6_4", (236+12)/720, (380+11)/956, "bg", "bg", 450/720, (380+11+380)/956, "bg", "bg");
+ TL_PART("contents_6_5", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "contents_6_4");
+ TL_PART("contents_6_6", (236+12)/720, (380+11+380+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_6_1");
+ TL_PG_FOCUS_BG("contents_6_2");
+ TL_PG_FOCUS_BG("contents_6_3");
+ TL_PG_FOCUS_BG("contents_6_4");
+ TL_PG_FOCUS_BG("contents_6_5");
+ TL_PG_FOCUS_BG("contents_6_6");
+ TL_OVER_SOUND("contents_6_1")
+ TL_OVER_SOUND("contents_6_2")
+ TL_OVER_SOUND("contents_6_3")
+ TL_OVER_SOUND("contents_6_4")
+ TL_OVER_SOUND("contents_6_5")
+ TL_OVER_SOUND("contents_6_6")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_6l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_6_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_6_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
+ TL_PART("contents_6_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_6_4", (11+415*2+11*2)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
+ TL_PART("contents_6_5", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", (11+415*2+11*2+202)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_6_6", (11+415*2+11*3+202)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_6_1");
+ TL_PG_FOCUS_BG("contents_6_2");
+ TL_PG_FOCUS_BG("contents_6_3");
+ TL_PG_FOCUS_BG("contents_6_4");
+ TL_PG_FOCUS_BG("contents_6_5");
+ TL_PG_FOCUS_BG("contents_6_6");
+ TL_OVER_SOUND("contents_6_1")
+ TL_OVER_SOUND("contents_6_2")
+ TL_OVER_SOUND("contents_6_3")
+ TL_OVER_SOUND("contents_6_4")
+ TL_OVER_SOUND("contents_6_5")
+ TL_OVER_SOUND("contents_6_6")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_7";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_7_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 380/956, "bg", "bg");
+ TL_PART("contents_7_2", (450+12)/720, 0.0, "bg", "contents_7_1", 0.0, 450/956, "elm.padding.right", "bg");
+ TL_PART("contents_7_3", 1.0, (380+11)/956, "elm.padding.left", "bg", 236/720, (380+11+280)/956, "bg", "bg");
+ TL_PART("contents_7_4", (236+12)/720, (380+11)/956, "bg", "bg", 450/720, (380+11+380)/956, "bg", "bg");
+ TL_PART("contents_7_5", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "contents_7_4");
+ TL_PART("contents_7_6", 1.0, (380+11+280+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
+ TL_PART("contents_7_7", (236+12)/720, (380+11+380+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_7_1");
+ TL_PG_FOCUS_BG("contents_7_2");
+ TL_PG_FOCUS_BG("contents_7_3");
+ TL_PG_FOCUS_BG("contents_7_4");
+ TL_PG_FOCUS_BG("contents_7_5");
+ TL_PG_FOCUS_BG("contents_7_6");
+ TL_PG_FOCUS_BG("contents_7_7");
+ TL_OVER_SOUND("contents_7_1")
+ TL_OVER_SOUND("contents_7_2")
+ TL_OVER_SOUND("contents_7_3")
+ TL_OVER_SOUND("contents_7_4")
+ TL_OVER_SOUND("contents_7_5")
+ TL_OVER_SOUND("contents_7_6")
+ TL_OVER_SOUND("contents_7_7")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_7l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_7_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_7_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
+ TL_PART("contents_7_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_7_4", (11+415*2+11*2)/1280, 0.0, "bg", "bg", (11+415*2+11*2+202)/1280, (GL_TL_TITLE_H+8+203)/451, "bg", "bg");
+ TL_PART("contents_7_5", (11+415*2+11*3+202)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
+ TL_PART("contents_7_6", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", (11+415*2+11*2+202)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_7_7", (11+415*2+11*3+202)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_7_1");
+ TL_PG_FOCUS_BG("contents_7_2");
+ TL_PG_FOCUS_BG("contents_7_3");
+ TL_PG_FOCUS_BG("contents_7_4");
+ TL_PG_FOCUS_BG("contents_7_5");
+ TL_PG_FOCUS_BG("contents_7_6");
+ TL_PG_FOCUS_BG("contents_7_7");
+ TL_OVER_SOUND("contents_7_1")
+ TL_OVER_SOUND("contents_7_2")
+ TL_OVER_SOUND("contents_7_3")
+ TL_OVER_SOUND("contents_7_4")
+ TL_OVER_SOUND("contents_7_5")
+ TL_OVER_SOUND("contents_7_6")
+ TL_OVER_SOUND("contents_7_7")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_8";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_8_1", 1.0, 0.0, "elm.padding.left", "bg", 450/720, 380/956, "bg", "bg");
+ TL_PART("contents_8_2", (450+12)/720, 0.0, "bg", "contents_8_1", 0.0, 450/956, "elm.padding.right", "bg");
+ TL_PART("contents_8_3", 1.0, (380+11)/956, "elm.padding.left", "bg", 236/720, (380+11+280)/956, "bg", "bg");
+ TL_PART("contents_8_4", (236+12)/720, (380+11)/956, "bg", "bg", 450/720, (380+11+380)/956, "bg", "bg");
+ TL_PART("contents_8_5", (450+12)/720, (450+11)/956, "bg", "bg", 0.0, 1.0, "elm.padding.right", "contents_8_4");
+ TL_PART("contents_8_6", 1.0, (380+11+280+11)/956, "elm.padding.left", "bg", 236/720, 1.0, "bg", "bg");
+ TL_PART("contents_8_7", (236+12)/720, (380+11+380+11)/956, "bg", "bg", (236+12+150)/720, 1.0, "bg", "bg");
+ TL_PART("contents_8_8", (236+12+150+12)/720, 0.0, "bg", "contents_8_7", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_8_1");
+ TL_PG_FOCUS_BG("contents_8_2");
+ TL_PG_FOCUS_BG("contents_8_3");
+ TL_PG_FOCUS_BG("contents_8_4");
+ TL_PG_FOCUS_BG("contents_8_5");
+ TL_PG_FOCUS_BG("contents_8_6");
+ TL_PG_FOCUS_BG("contents_8_7");
+ TL_PG_FOCUS_BG("contents_8_8");
+ TL_OVER_SOUND("contents_8_1")
+ TL_OVER_SOUND("contents_8_2")
+ TL_OVER_SOUND("contents_8_3")
+ TL_OVER_SOUND("contents_8_4")
+ TL_OVER_SOUND("contents_8_5")
+ TL_OVER_SOUND("contents_8_6")
+ TL_OVER_SOUND("contents_8_7")
+ TL_OVER_SOUND("contents_8_8")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+group {
+ name: "gallery/timeline_8l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+ TL_PART("contents_8_1", 1.0, 0.0, "elm.padding.left", "bg", (11+415)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_8_2", (11+415+11)/1280, 0.0, "bg", "bg", (11+415*2+11)/1280, (GL_TL_TITLE_H+8+181)/451, "bg", "bg");
+ TL_PART("contents_8_3", (11+415+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415+11+202)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_8_4", (11+415+11+202+11)/1280, (GL_TL_TITLE_H+8+181+11)/451, "bg", "bg", (11+415*2+11)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_8_5", (11+415*2+11*2)/1280, 0.0, "bg", "bg", (11+415*2+11*2+202)/1280, (GL_TL_TITLE_H+8+203)/451, "bg", "bg");
+ TL_PART("contents_8_6", (11+415*2+11*3+202)/1280, 0.0, "bg", "bg", 0.0, (GL_TL_TITLE_H+8+203)/451, "elm.padding.right", "bg");
+ TL_PART("contents_8_7", (11+415*2+11*2)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", (11+415*2+11*2+202)/1280, 1.0, "bg", "bg");
+ TL_PART("contents_8_8", (11+415*2+11*3+202)/1280, (GL_TL_TITLE_H+8+203+11)/451, "bg", "bg", 0.0, 1.0, "elm.padding.right", "bg");
+ }
+ programs {
+ TL_PG_FOCUS_BG("contents_8_1");
+ TL_PG_FOCUS_BG("contents_8_2");
+ TL_PG_FOCUS_BG("contents_8_3");
+ TL_PG_FOCUS_BG("contents_8_4");
+ TL_PG_FOCUS_BG("contents_8_5");
+ TL_PG_FOCUS_BG("contents_8_6");
+ TL_PG_FOCUS_BG("contents_8_7");
+ TL_PG_FOCUS_BG("contents_8_8");
+ TL_OVER_SOUND("contents_8_1")
+ TL_OVER_SOUND("contents_8_2")
+ TL_OVER_SOUND("contents_8_3")
+ TL_OVER_SOUND("contents_8_4")
+ TL_OVER_SOUND("contents_8_5")
+ TL_OVER_SOUND("contents_8_6")
+ TL_OVER_SOUND("contents_8_7")
+ TL_OVER_SOUND("contents_8_8")
+ GL_TL_PLAY_SOUND
+ }
+}
+
+#define TL_15_ITEM(N, X, Y) \
+ TL_PART("contents_15_"N, (224.6*(X-1)+(X-1)*12)/698, (181.6*(Y-1)+(Y-1)*12)/956, "contents_bg", "contents_bg", (224.6*X+(X-1)*12)/698, (181.6*Y+(Y-1)*12)/956, "contents_bg", "contents_bg");
+
+
+#define TL_15_PGS \
+ TL_PG_FOCUS_BG("contents_15_1") \
+ TL_PG_FOCUS_BG("contents_15_2") \
+ TL_PG_FOCUS_BG("contents_15_3") \
+ TL_PG_FOCUS_BG("contents_15_4") \
+ TL_PG_FOCUS_BG("contents_15_5") \
+ TL_PG_FOCUS_BG("contents_15_6") \
+ TL_PG_FOCUS_BG("contents_15_7") \
+ TL_PG_FOCUS_BG("contents_15_8") \
+ TL_PG_FOCUS_BG("contents_15_9") \
+ TL_PG_FOCUS_BG("contents_15_10") \
+ TL_PG_FOCUS_BG("contents_15_11") \
+ TL_PG_FOCUS_BG("contents_15_12") \
+ TL_PG_FOCUS_BG("contents_15_13") \
+ TL_PG_FOCUS_BG("contents_15_14") \
+ TL_PG_FOCUS_BG("contents_15_15") \
+ TL_OVER_SOUND("contents_15_1") \
+ TL_OVER_SOUND("contents_15_2") \
+ TL_OVER_SOUND("contents_15_3") \
+ TL_OVER_SOUND("contents_15_4") \
+ TL_OVER_SOUND("contents_15_5") \
+ TL_OVER_SOUND("contents_15_6") \
+ TL_OVER_SOUND("contents_15_7") \
+ TL_OVER_SOUND("contents_15_8") \
+ TL_OVER_SOUND("contents_15_9") \
+ TL_OVER_SOUND("contents_15_10") \
+ TL_OVER_SOUND("contents_15_11") \
+ TL_OVER_SOUND("contents_15_12") \
+ TL_OVER_SOUND("contents_15_13") \
+ TL_OVER_SOUND("contents_15_14") \
+ TL_OVER_SOUND("contents_15_15") \
+ GL_TL_PLAY_SOUND
+
+
+group {
+ name: "gallery/timeline_15";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+
+ part {
+ name: "contents_bg";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 1.0 0.0; to_x: "elm.padding.left"; to_y: "bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "bg"; }
+ }
+ }
+
+ TL_15_ITEM(1, 1, 1)
+ TL_15_ITEM(2, 2, 1)
+ TL_15_ITEM(3, 3, 1)
+ TL_15_ITEM(4, 1, 2)
+ TL_15_ITEM(5, 2, 2)
+ TL_15_ITEM(6, 3, 2)
+ TL_15_ITEM(7, 1, 3)
+ TL_15_ITEM(8, 2, 3)
+ TL_15_ITEM(9, 3, 3)
+ TL_15_ITEM(10, 1, 4)
+ TL_15_ITEM(11, 2, 4)
+ TL_15_ITEM(12, 3, 4)
+ TL_15_ITEM(13, 1, 5)
+ TL_15_ITEM(14, 2, 5)
+ TL_15_ITEM(15, 3, 5)
+ }
+ programs {
+ TL_15_PGS
+ }
+}
+
+
+#define TL_15_ITEM_L(N, X, Y) \
+ TL_PART("contents_15_"N, (242*(X-1)+(X-1)*12)/1258, (142.3*(Y-1)+(Y-1)*12)/451, "contents_bg", "contents_bg", (242*X+(X-1)*12)/1258, (142.3*Y+(Y-1)*12)/451, "contents_bg", "contents_bg");
+
+group {
+ name: "gallery/timeline_15l";
+
+ TL_VARIABLE
+
+ parts {
+ TL_BG
+ TL_BG_C
+ PART_PADDING_LEFT(11)
+ PART_PADDING_RIGHT(11)
+
+ part {
+ name: "contents_bg";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 1.0 0.0; to_x: "elm.padding.left"; to_y: "bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "bg"; }
+ color: 255 0 0 100;
+ }
+ }
+
+ TL_15_ITEM_L(1, 1, 1)
+ TL_15_ITEM_L(2, 2, 1)
+ TL_15_ITEM_L(3, 3, 1)
+ TL_15_ITEM_L(4, 4, 1)
+ TL_15_ITEM_L(5, 5, 1)
+ TL_15_ITEM_L(6, 1, 2)
+ TL_15_ITEM_L(7, 2, 2)
+ TL_15_ITEM_L(8, 3, 2)
+ TL_15_ITEM_L(9, 4, 2)
+ TL_15_ITEM_L(10, 5, 2)
+ TL_15_ITEM_L(11, 1, 3)
+ TL_15_ITEM_L(12, 2, 3)
+ TL_15_ITEM_L(13, 3, 3)
+ TL_15_ITEM_L(14, 4, 3)
+ TL_15_ITEM_L(15, 5, 3)
+ }
+ programs {
+ TL_15_PGS
+ }
+}
+
+group {
+ name: "elm/gengrid/item/gallery/timeline_page/default";
+
+ data.item: "contents" "elm.swallow.icon";
+
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1 { relative: 0.0 0.0; offset: 0 0;}
+ rel2 { relative: 1.0 1.0; offset: 0 0;}
+ }
+ }
+ part {
+ name: "icon_bg";
+ type: RECT;
+ scale : 1;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ visible: 0;
+ color: 0 0 0 0;
+ rel1 { relative: 0.0 0.0;to:"bg"; }
+ rel2 { relative: 1.0 1.0;to:"bg"; }
+
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "icon_bg"; }
+ rel2 { relative: 1.0 1.0; to: "icon_bg"; }
+ }
+ }
+ }
+}
+
+group {
+ name: "naviframe_title";
+ parts {
+ part { name: "title_bg";
+ type: RECT;
+ mouse_events: 1;
+ scale: 0;
+ description {
+ state: "default" 0.0;
+ min: 0 111;
+ align: 0.0 0.0;
+ visible: 0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "top_left_padding";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 16 32;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 0.0; to: "title_bg"; }
+ visible: 0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "bottom_right_padding";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 16 11;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1 { relative: 1.0 1.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ visible: 0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "title";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
+ rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ }
+ programs {
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "default", 0.0);
+ set_state(PART:"top_left_padding", "default", 0.0);
+ set_state(PART:"bottom_right_padding", "default", 0.0);
+ set_state(PART:"title", "default", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"top_left_padding", "hide", 0.0);
+ set_state(PART:"bottom_right_padding", "hide", 0.0);
+ set_state(PART:"title", "hide", 0.0);
+ }
+ }
+ }
+}
+
+group {
+ name: "naviframe_title_text";
+ parts {
+ part { name: "title_bg";
+ type: RECT;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 126 68;
+ fixed: 0 1;
+ visible: 1;
+ color: 255 0 255 155;
+ }
+ }
+ part {
+ name: "text";
+ type: TEXT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ align: 0.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ color: 0 0 0 255;
+ text {
+ font: "Tizen:style=Medium";
+ text_class: "tizen";
+ size: 56;
+ text: "";
+ align: 0.0 0.5;
+ }
+ }
+ }
+ }
+}
+
+/* View layout to hold slider */
+group {
+ name: "gallery/timeline";
+
+ parts {
+ TL_BG
+ TL_BG_C
+ TL_TITLE_BG_TOP
+ TL_TITLE_TOP
+ TL_SLIDER_PAD_BOT
+
+ part {
+ name: "elm.swallow.slider";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "title_bg"; }
+ rel2 { relative: 1.0 0.0; to_x: "bg"; to_y: "slider_padding_b"; }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "swallow_title_show";
+ signal: "elm,swallow_title,state,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "default", 0.0);
+ set_state(PART:"slider_padding_b", "default", 0.0);
+ }
+ }
+ program {
+ name: "swallow_slider_hide";
+ signal: "elm,swallow_title,state,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"slider_padding_b", "hide", 0.0);
+ }
+ }
+ program {
+ name: "title_fade_out";
+ signal: "elm,action,title,fade_out";
+ source: "elm";
+ action: STATE_SET "fade_out" 0.0;
+ transition: DECELERATE 0.5;
+ target: "title_clip";
+ }
+ program {
+ name: "title2_fade_in";
+ signal: "elm,action,title2,fade_in";
+ source: "elm";
+ action: STATE_SET "fade_in" 0.0;
+ transition: DECELERATE 0.5;
+ target: "title_clip2";
+ }
+ program {
+ name: "title2_show";
+ signal: "elm,state,title2,show,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "title2";
+ transition: DECELERATE 0.5;
+ after: "show_finished";
+ }
+ program {
+ name: "title_hide";
+ signal: "elm,state,title,hide,deferred";
+ source: "elm";
+ action: STATE_SET "top" 0.0;
+ target: "title";
+ transition: DECELERATE 0.5;
+ after: "hide_finished";
+ }
+ program {
+ name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_clip2", "default", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ set_state(PART:"title", "default", 0.0);
+ }
+ }
+ program {
+ name: "title2_created";
+ signal: "elm,state,title2,created";
+ source: "elm";
+ script {
+ set_state(PART:"title_clip2", "bottom", 0.0);
+ set_state(PART:"title_clip", "top", 0.0);
+ set_state(PART:"title2", "bottom", 0.0);
+ }
+ }
+ program { name: "show_finished";
+ action: SIGNAL_EMIT "elm,action,title2,show,finished" "";
+ }
+ program { name: "hide_finished";
+ action: SIGNAL_EMIT "elm,action,title,hide,finished" "";
+ }
+ }
+}
+
+group{ name: "timeline_gridview";
+ parts {
+ part { name: "group_date_bg";
+ type: RECT;
+ description {
+ rel1.relative : 0 0;
+ rel2.relative : 1 1;
+ min : 0 60;
+ max: -1 60;
+ align : 0 0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "group_date";
+ type: TEXT;
+ scale: 1;
+ description {
+ rel1.relative : 0 0;
+ rel1.to: "group_date_bg";
+ rel2.relative : 1 1;
+ rel2.to: "group_date_bg";
+ text {
+ text: "Select All";
+ size: 16;
+ align: 0.05 0.8;
+ }
+ color: 0 0 0 255;
+ }
+ }
+ part { name: "grid";
+ type: SWALLOW;
+ description {
+ rel1.relative : 0 1;
+ rel1.to : "group_date_bg";
+ rel2.relative : 1 1;
+ align : 0 0;
+ }
+ }
+ }
+ script {
+ public message(Msg_Type:type,id, ...)
+ {
+ if((type == MSG_INT) && (id == 2))
+ {
+ new a;
+ new x, y;
+ a = getarg(2);
+ custom_state(PART:"grid","default",0.0);
+ get_state_val(PART:"grid",STATE_MIN,x,y);
+ set_state_val(PART:"grid",STATE_MIN,x,a);
+ get_state_val(PART:"grid",STATE_MAX,x,y);
+ set_state_val(PART:"grid",STATE_MAX,x,a);
+ set_state(PART:"grid","custom",0.0);
+ }
+ }
+ }
+}
+
+group{ name: "timeline_gridview_date_toast";
+ parts {
+ part{
+ name: "bg";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ color: 255 255 255 255;
+ }
+ }
+ part{
+ name: "bg_left_vertical_line";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ rel1.relative: 0 0;
+ rel2.relative: 0 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ min: 2 0;
+ color: 0 0 255 255;
+ }
+ }
+ part{
+ name: "bg_right_vertical_line";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ rel1.relative: 1 0;
+ rel2.relative: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ min: 2 0;
+ align: 0.5 0.5;
+ color: 0 0 255 255;
+ }
+ }
+ part{
+ name: "bg_up_horizontal_line";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ rel1.relative: 0 0;
+ rel2.relative: 1 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ min: 0 2;
+ color: 0 0 255 255;
+ }
+ }
+ part{
+ name: "bg_down_horizontal_line";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ rel1.relative: 0 1;
+ rel2.relative: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ min: 0 2;
+ color: 0 0 255 255;
+ }
+ }
+ part{
+ name: "text";
+ type: TEXT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ rel1.relative: 0 0;
+ rel1.to: "bg";
+ rel2.relative: 1 1;
+ rel2.to: "bg";
+ text {
+ text: "Day";
+ size: 32;
+ align: 0.5 0.5;
+ }
+ color: 0 0 255 255;
+ }
+ }
+ }
+}
+
+group{
+ name: "elm/genlist/item/genlist_group_date/default";
+ alias: "elm/genlist/item_compress/genlist_group_date/default";
+ alias: "elm/genlist/tree/genlist_group_date/default";
+ alias: "elm/genlist/tree_compress/genlist_group_date/default";
+ data.item: "texts" "elm.text";
+ data.item: "contents" "elm.swallow";
+ data.item: "selectraise" "on";
+ data.item: "stacking" "above";
+ parts{
+ part{
+ name: "bg";
+ type: RECT;
+ description{
+ state: "default" 0.0;
+ color: 255 255 255 255;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ min: 0 60;
+ max: -1 200;
+ visible: 1;
+ }
+ }
+ part{
+ name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ description{
+ state: "default" 0.0;
+ rel1 { relative: 0.05 0.0; to: "bg"; }
+ rel2 { relative: 1.0 1.0; to: "bg"; }
+ color: 0 0 0 255;
+ text{
+ size: 16;
+ align: 0.0 0.5;
+ }
+ }
+ }
+ part{
+ name: "elm.swallow";
+ type: SWALLOW;
+ description{
+ state: "default" 0.0;
+ rel1 { relative: 0.6 0.0; to: "bg"; }
+ rel2 { relative: 1.0 1.0; to: "bg"; }
+ align: 0.5 0.5;
+ }
+ }
+ }
+}
+
+TIME_VIEW_GENLIST_STYLE(content_180, 180)
+TIME_VIEW_GENLIST_STYLE(content_240, 240)
+TIME_VIEW_GENLIST_STYLE(content_90, 90)
+TIME_VIEW_GENLIST_STYLE(content_214, 214)
+TIME_VIEW_GENLIST_STYLE(content_183,183)
+TIME_VIEW_GENLIST_STYLE(content_128, 128)
+TIME_VIEW_GENLIST_STYLE(content_135, 135)
+TIME_VIEW_GENLIST_STYLE(content_68, 68)
+TIME_VIEW_GENLIST_STYLE(content_160, 160)
+TIME_VIEW_GENLIST_STYLE(content_138, 138)
+TIME_VIEW_GENLIST_STYLE(content_96, 96)
+TIME_VIEW_GENLIST_STYLE(content_120, 120)
+TIME_VIEW_GENLIST_STYLE(content_60, 60)
+TIME_VIEW_GENLIST_STYLE(content_134, 134)
+TIME_VIEW_GENLIST_STYLE(content_115, 115)
+TIME_VIEW_GENLIST_STYLE(content_80, 80)
+
+group {
+ name: "timeline";
+ parts {
+ part {
+ name : "elm.rect";
+ type: RECT;
+ description {
+ state : "default" 0.0;
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ align : 0 0;
+ color : 255 255 255 255;
+ }
+ }
+ part {
+ name : "elm.swallow";
+ type: SWALLOW;
+ description {
+ state : "default" 0.0;
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ align : 0 0;
+ }
+ }
+ }
+}
\ No newline at end of file