From: jk7744.park Date: Sun, 1 Feb 2015 04:01:22 +0000 (+0900) Subject: tizen 2.3 release X-Git-Tag: submit/tizen_2.3/20150202.053052^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Ftizen_2.3_release;p=apps%2Fhome%2Fb2-clocksetting.git tizen 2.3 release --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1deda48..f821b99 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ SET(SRCS SET(VENDOR "samsung") SET(PACKAGE ${PROJECT_NAME}) -SET(PKGNAME "org.tizen.${PACKAGE}") +SET(PKGNAME "com.${VENDOR}.${PACKAGE}") SET(PREFIX ${CMAKE_INSTALL_PREFIX}) #SET(INSTALL_DIR_APPS "/usr/apps/${PKGNAME}") SET(INSTALL_DIR_PRE "/usr") @@ -47,6 +47,10 @@ SET(IMGDIR "./data/images") SET(IMG_PATH "data/images-b2") SET(FAKE_IMG_PATH "/usr/apps/${PKGNAME}/shared/res") +#IF(FEATURE_SETTING_CHANGEABLE) +SET(CHANGEABLE_PATH "${PREFIX}/shared/res/tables") +#ENDIF(FEATURE_SETTING_CHANGEABLE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") #IF(FEATURE_SETTING_TIZENW2) @@ -67,6 +71,11 @@ IF(FEATURE_SETTING_EMUL) MESSAGE("tiznew2 emul build!!!!!!!!!") ENDIF(FEATURE_SETTING_EMUL) +IF(FEATURE_SETTING_CHANGEABLE) + ADD_DEFINITIONS("-DFEATURE_SETTING_CHANGEABLE") + MESSAGE("changeable color is enabled") +ENDIF(FEATURE_SETTING_CHANGEABLE) + INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) INCLUDE(FindPkgConfig) @@ -77,10 +86,10 @@ pkg_check_modules(pkgs REQUIRED elementary ecore-imf utilX appcore-common appcor feedback efl-assist json-glib-1.0 deviced capi-network-bluetooth bluetooth-api capi-system-device capi-media-sound-manager capi-media-player mm-player mm-sound capi-system-system-settings capi-system-info libxml-2.0 capi-media-wav-player + #capability-manager capi-content-media-content aul ail capi-appfw-app-manager ) -# capability-manager #?? FIND_LIBRARY(LIB_M m) @@ -125,6 +134,11 @@ INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/fake-img/ DESTINATION ${FAKE_ # install Safety.zip INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/Safety.zip DESTINATION /usr/share) +# install color/font code table +IF(FEATURE_SETTING_CHANGEABLE) + INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/changeable/tables/ DESTINATION ${CHANGEABLE_PATH} FILES_MATCHING PATTERN "*.xml") +ENDIF(FEATURE_SETTING_CHANGEABLE) + ADD_DEFINITIONS(${pkgs_CFLAGS}) ADD_DEFINITIONS("-fpie") @@ -149,11 +163,25 @@ ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-pie" ${LIB_M}) #edj compile +IF(FEATURE_SETTING_CHANGEABLE) +ADD_CUSTOM_TARGET(${PROJECT_NAME}.edj + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/changeable/groups/images + ${CMAKE_SOURCE_DIR}/data/changeable/${PROJECT_NAME}.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/changeable/${PROJECT_NAME}.edc +) +ADD_CUSTOM_TARGET(portrait.edj + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/changeable/groups/images + ${CMAKE_SOURCE_DIR}/data/changeable/fake_effect.edc ${CMAKE_BINARY_DIR}/portrait.edj + DEPENDS ${CMAKE_SOURCE_DIR}/data/changeable/fake_effect.edc +) +ELSE(FEATURE_SETTING_CHANGEABLE) ADD_CUSTOM_TARGET(${PROJECT_NAME}.edj COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/data/groups/images #data/images ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.edj DEPENDS ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.edc ) +ENDIF(FEATURE_SETTING_CHANGEABLE) + ADD_DEPENDENCIES(${PROJECT_NAME} ${PROJECT_NAME}.edj) ADD_DEPENDENCIES(${PROJECT_NAME} edj_build) @@ -175,7 +203,7 @@ set(PREFIX ${CMAKE_INSTALL_PREFIX}) install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.clocksetting.xml DESTINATION /usr/share/packages) install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.clocksetting.png DESTINATION /usr/share/icons/default/small) install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.clocksetting_small.png DESTINATION /usr/share/icons/default/small) -install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.clocksetting.rule DESTINATION /etc/smack/accesses2.d/) +install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.clocksetting.efl DESTINATION /etc/smack/accesses.d/) #install(FILES ${CMAKE_SOURCE_DIR}/history DESTINATION /opt/usr/apps/org.tizen.clocksetting/data) #install fake image diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 3b739e3..0000000 --- a/LICENSE +++ /dev/null @@ -1,204 +0,0 @@ -Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - 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. - diff --git a/data/Safety.zip b/data/Safety.zip index 0309614..91957b3 100644 Binary files a/data/Safety.zip and b/data/Safety.zip differ diff --git a/data/changeable/clocksetting.edc b/data/changeable/clocksetting.edc new file mode 100755 index 0000000..708da85 --- /dev/null +++ b/data/changeable/clocksetting.edc @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + +#define FONT_BLD "Tizen:style=Bold" +#define FONT_MED "Tizen:style=Medium" +#define FONT_ROM "Tizen:style=Roman" +#define FONT_LIG "Tizen:style=Roman" + +collections { +#include "groups/setting_tts_macro.edc" +#include "groups/genlist_setting.edc" +#include "groups/edc_images.edc" +#include "groups/edc_image_macro.edc" +#include "groups/datefield.edc" +#include "groups/battery.edc" +#include "groups/index.edc" +#include "groups/volumn_popup.edc" +#include "groups/clock_type_layout.edc" +#include "groups/bg_thumbnail.edc" +#include "groups/two_finger_control.edc" +#include "groups/genlist_layout.edc" +#include "groups/empty_swallow.edc" +#include "groups/thumbnail_view.edc" +#include "groups/popup_layout.edc" +#include "groups/gengrid_thumbnail_theme.edc" +#include "groups/brightness_layout.edc" +#include "groups/setting_sound.edc" +#include "groups/setting_network_apn.edc" +#include "groups/pinlock_layout.edc" +#include "groups/setting_picker.edc" +#include "groups/blockingmode_settime.edc" +#include "groups/enhanced_pwrsaving.edc" +#include "groups/setting_permission.edc" +} diff --git a/data/changeable/fake_effect.edc b/data/changeable/fake_effect.edc new file mode 100644 index 0000000..5b9d28f --- /dev/null +++ b/data/changeable/fake_effect.edc @@ -0,0 +1,29 @@ +collections { + group { + name: "effect"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color_class: "B011"; + } + } + part { + name: "naviframe"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0.0; + min: 0 60; + fixed: 0 1; + color_class: "B0511"; + } + } + } + } +} \ No newline at end of file diff --git a/data/changeable/groups/HVGA-inc.edc b/data/changeable/groups/HVGA-inc.edc new file mode 100644 index 0000000..267dce2 --- /dev/null +++ b/data/changeable/groups/HVGA-inc.edc @@ -0,0 +1,596 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +//*** This file defines the width, height (not color!) for W widgets *** // + +// ************* Naming ************ // +// {WIDGET}_{PART}_{TYPE}_{STATE}_COLOR + + +// ***************************** Action bar ***********************************/ +#define ACTIONBAR_PADDING_SIZE 16 +#define ACTIONBAR_HEIGHT 60 +#define ACTIONBAR_TEXT_SIZE 33 +#define ACTIONBAR_ICON_SIZE 39 39 +#define ACTIONBAR_NEXT_BTN_SIZE 68 60 +#define ACTIONBAR_FADE_WIDTH 14 +#define ACTIONBAR_ICON_TEXT_TOP_PADDING_SIZE 11 +#define ACTIONBAR_ICON_TEXT_BOTTOM_PADDING_SIZE 10 + +// ***************************** Sroller **************************************/ +#define SCROLLER_VBAR_MIN_SIZE 4 15 +#define SCROLLER_VBAR_MAX_SIZE 4 99999 +#define SCROLLER_HBAR_MIN_SIZE 15 4 +#define SCROLLER_HBAR_MAX_SIZE 99999 4 +#define SCROLLER_VBAR_PADDING_TOP_SIZE 2 +#define SCROLLER_VBAR_PADDING_BOTTOM_SIZE 2 +#define SCROLLER_VBAR_PADDING_LEFT_SIZE 2 +#define SCROLLER_VBAR_PADDING_RIGHT_SIZE 2 +#define SCROLLER_HBAR_PADDING_TOP_SIZE 2 +#define SCROLLER_HBAR_PADDING_BOTTOM_SIZE 2 +#define SCROLLER_HBAR_PADDING_LEFT_SIZE 2 +#define SCROLLER_HBAR_PADDING_RIGHT_SIZE 2 +#define END_EFFECT_GLOW_MAX_SIZE 50 +#define END_EFFECT_GLOW_MIN_SIZE 40 +#define END_EFFECT_GLOW_MOVE_CORRECTION_VALUE 10 +#define END_EFFECT_HORIZONTAL_EDGE_SIZE 1 +#define END_EFFECT_VERTICAL_EDGE_SIZE 1 + +// ***************************** List *****************************************/ +#define LIST_PADDING_LEFT_SIZE 16 +#define LIST_PADDING_RIGHT_SIZE 8 +#define LIST_PADDING_DEFAULT_SIZE 16 +#define LIST_PADDING_R_ICON_RIGHT_SIZE 8 +#define LIST_PADDING_R_ICON_DEFAULT_SIZE 8 +#define LIST_GROUPINDEX_PADDING_TOP_SIZE 1 +#define LIST_GROUPINDEX_PADDING_BOTTOM_SIZE 1 +#define LIST_1LINE_HEIGHT 100 +#define LIST_1LINE_PADDING_TOP_SIZE 25 +#define LIST_1LINE_PADDING_BOTTOM_SIZE 26 +#define LIST_2LINE_PADDING_TOP_SIZE 8 +#define LIST_2LINE_PADDING_BOTTOM_SIZE 9 +#define LIST_TEXT_MAIN_SIZE 42 +#define LIST_TEXT_SUB_SIZE 27 +#define LIST_TEXT_SWEEP_SIZE 32 +#define LIST_DIVIDER_HEIGHT 56 +#define LIST_DIVIDER_PADDING_SIZE 8 +#define LIST_GROUPINDEX_HEIGHT 34 +#define LIST_GROUPINDEX_TEXT_SIZE 27 +#define LIST_HIDDEN_HEIGHT 85 +#define LIST_MULTILINE_HEIGHT 44 +#define LIST_MULTILINE_2LINE_HEIGHT 100 +// Notification +#define LIST_NOTI_ICON_SIZE 52 52 +#define LIST_NOTI_NUMBER_ICON_HEIGHT 30 +#define LIST_NOTI_TEXT_SIZE 24 +// Device option +#define LIST_DEVICE_OPTION_PADDING_LEFT_SIZE 25 // NOT USED +#define LIST_DEVICE_OPTION_PADDING_RIGHT_SIZE 25 // NOT USED +#define LIST_DEVICE_OPTION_PADDING_TOP_SIZE 14 +#define LIST_DEVICE_OPTION_PADDING_BOTTOM_SIZE 15 +#define LIST_DEVICE_OPTION_ICON_MIN_MAX_SIZE 56 56 +#define LIST_DEVICE_OPTION_PADDING_DEFAULT_SIZE 12 // NOT USED +#define LIST_DEVICE_OPTION_HEIGHT 115 +#define LIST_DEVICE_OPTION_TEXT_MAIN_SIZE 34 +#define LIST_DEVICE_OPTION_TEXT_SUB_SIZE 27 +#define LIST_DEVICE_OPTION_ICON1_MIN_MAX_SIZE 160 115 +#define LIST_DEVICE_OPTION_ICON_DIVIDER_MIN_MAX_INC 1 68 + + +// ***************************** Button ***************************************/ +#define BUTTON_TEXT_SIZE 31 +#define BUTTON_HEIGHT 85 +#define BUTTON_NEXTDEPTH_SIZE 56 56 +#define BUTTON_PLUS_SIZE 66 66 +#define BUTTON_BOTTOM_SIZE_LEFT 60 60 +#define BUTTON_BOTTOM_SIZE_RIGHT 60 60 +#define BUTTON_BOTTOM_BG_SIZE_LEFT 180 83 +#define BUTTON_BOTTOM_BG_SIZE_RIGHT 179 83 +#define BUTTON_DELETE_SIZE 50 50 +#define BUTTON_PADDING_SIZE 1 0 +#define BUTTON_ICON_SIZE 60 60 +// Naviframe +#define BUTTON_NAVIFRAME_BG_BORDER_SIZE 15 15 15 15 +// Divider +#define BUTTON_DIVIDER_BTN_SIZE 74 // ( 2 + 8 + 56 + 8 ) +#define BUTTON_DIVIDER_BTN_ICON_SIZE 56 +#define BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE 10 // LEFT PADDING + DIVIDER LINE ( 8 + 2 ) +#define BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE 8 +// Device_option +#define BUTTON_DEVICE_OPTION_TOP_PADDING_SIZE 1 +#define BUTTON_DEVICE_OPTION_ICON_SIZE 65 44 +#define BUTTON_DEVICE_OPTION_TEXT_PART_SIZE 0 70 +#define BUTTON_DEVICE_OPTION_LR_PADDING_SIZE 10 +// Date Time +#define BUTTON_TIME_PICKER_AM_PM_TEXT_SIZE 34 +#define BUTTON_TIME_PICKER_AM_PM_SIZE 100 100 +// Hidden Button +#define HIDDEN_BUTTON_HEIGHT 85 +// Clear Button +#define BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC 34 34 +#define BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC 34 34 + +// ***************************** Check and Radio ****************************************/ +#define CHECK_SIZE 56 56 +#define CHECK_TOGGLE_SIZE 207 110 +#define CHECK_TOGGLE_THUMB_SIZE 132 110 +#define RADIO_SIZE 56 56 +// popup +#define CHECK_TEXT_SIZE 36 +#define CHECK_PADDING_SIZE 8 0 + +// ***************************** Index ****************************************/ +// Scroll +#define INDEX_SCROLL_PADDING_SIZE 0 +#define INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE 27 +#define INDEX_SCROLL_HANDLE_ITEM_WIDTH 45 +#define INDEX_DIVIDER_WIDTH_INC 1 +#define INDEX_SCROLL_BG_LINE_WIDTH_INC 2 +#define INDEX_SCROLL_HANDLE_ITEM_HEIGHT 41 +#define INDEX_SCROLL_POPUP_TEXT_SIZE 70 +#define INDEX_SCROLL_2DEPTH_FOCUS_SIZE 34 +#define INDEX_SCROLL_DRAG_PART_SIZE 20 40 +#define INDEX_SCROLL_REF_RECT_SIZE 40 0 +#define INDEX_SCROLL_POPUP_SIZE 156 99 +#define INDEX_SCROLL_POPUP_TEXT_LEFT_RIGHT_PADDING 79 +#define INDEX_SCROLL_DIVIDER_WIDTH_INC 2 +// Tab +#define INDEX_TAB_HEIGHT 6 +// Thumbnail +#define INDEX_THUMBNAIL_BG_SIZE 20 20 +#define INDEX_THUMBNAIL_IND_SIZE 20 20 +#define INDEX_THUMBNAIL_IMAGE_BORDER_SIZE 6 6 5 7 + +// ***************************** Gengrid **************************************/ +#define GENGRID_DEFAULT_PADDING_LT_SIZE 0 0 +#define GENGRID_DEFAULT_PADDING_RB_SIZE 0 0 +#define GENGRID_DEFAULT_PADDING_ITEM_BG_LT_SIZE 0 0 +#define GENGRID_DEFAULT_PADDING_ITEM_BG_RB_SIZE 0 0 + +// ***************************** Ctxpopup **************************************/ +#define CTXPOPUP_MOVE_PAD_INC 40 +#define CTXPOPUP_SHADOW_LEFT_PADDING 1 +#define CTXPOPUP_SHADOW_TOP_PADDING 1 +#define CTXPOPUP_SHADOW_RIGHT_PADDING 1 +#define CTXPOPUP_SHADOW_BOTTOM_PADDING 1 +#define CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC 60 +#define CTXPOPUP_ICON_ITEM_HORIZONTAL_HEIGHT_INC 69 +#define CTXPOPUP_ARROW_SIZE_INC 32 32 +#define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 18 +#define CTXPOPUP_CONTENT_PADDING_WIDTH 1 +#define CTXPOPUP_CONTENT_PADDING_HEIGHT 1 +#define CTXPOPUP_ARROW_PADDING 3 +#define CTXPOPUP_HORIZONTAL_WIDTH_MIN_INC 73 +#define CTXPOPUP_WIDTH_MIN_INC 320 +#define CTXPOPUP_WIDTH_MAX_INC 320 +#define CTXPOPUP_ITEM_HEIGHT_MIN_INC 81 +#define CTXPOPUP_ITEM_HEIGHT_MAX_INC 101 +#define CTXPOPUP_HORIZONTAL_ITEM_HEIGHT_MAX_INC 89 +#define CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 1 +#define CTXPOPUP_HORIZONTAL_ITEM_LR_PADDING 8 +#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_TOP_PADDING_INC 18 +#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_BOTTOM_PADDING_INC 18 +#define CTXPOPUP_ITEM_TEXT_LR_PADDING_INC 6 +#define CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC 19 +#define CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC 19 +#define CTXPOPUP_ITEM_ICON_LR_PADDING_INC 8 +#define CTXPOPUP_ITEM_ICON_TOP_PADDING_INC 6 +#define CTXPOPUP_ITEM_ICON_BOTTOM_PADDING_INC 6 +#define CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC 42 +#define CTXPOPUP_TEXT_MAX_INC 306 +#define CTXPOPUP_ITEM_TEXT_SIZE_INC 36 +#define CTXPOPUP_ITEM_TEXT_MAX_SIZE_INC (CTXPOPUP_ITEM_TEXT_SIZE_INC*2) +#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_SIZE_INC 28 +#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_HEIGHT_MIN_INC 33 +#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_MAX_SIZE_INC (CTXPOPUP_HORIZONTAL_ITEM_TEXT_SIZE_INC*2) +#define CTXPOPUP_ITEM_ICON_PADDING_INC 6 +#define CTXPOPUP_ITEM_ICON_TEXT_PADDING_INC 8 +#define CTXPOPUP_ITEM_ICON_TEXT_TOP_PADDING_INC 12 +#define CTXPOPUP_ICON_WIDTH_INC 56 +#define CTXPOPUP_ICON_HEIGHT_INC 56 +#define CTXPOPUP_HORIZONTAL_ICON_WIDTH_INC 44 +#define CTXPOPUP_HORIZONTAL_ICON_HEIGHT_INC 43 + +#define CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MIN_INC 52 +#define CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MAX_INC 52 +#define CTXPOPUP_COPYPASTE_ITEM_HEIGHT_MIN_INC 70 +#define CTXPOPUP_COPYPASTE_ICON_WIDTH_INC 52 +#define CTXPOPUP_COPYPASTE_ICON_HEIGHT_INC 70 +#define CTXPOPUP_COPYPASTE_ITEM_ICON_TOP_PADDING_INC 0 +#define CTXPOPUP_COPYPASTE_ITEM_ICON_BOTTOM_PADDING_INC 0 +#define CTXPOPUP_COPYPASTE_ITEM_TEXT_PADDING_INC 0 +#define CTXPOPUP_COPYPASTE_ITEM_TEXT_BOTTOM_PADDING_INC 0 +#define CTXPOPUP_COPYPASTE_SEPARATOR_MIN_SIZE_INC 1 CTXPOPUP_COPYPASTE_ITEM_HEIGHT_MIN_INC +#define CTXPOPUP_COPYPASTE_SEPARATOR_MAX_SIZE_INC 1 -1 + +// ***************************** Popup ****************************************/ + +#define POPUP_OUTSIDE_PADDING "101" //480(total height) - 379(popup max height) 79% of total height +#define POPUP_TITLE_AREA_HEIGHT "68" + +#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC 360 0 +#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC 360 377 +#define POPUP_TEXT_PADDING_LEFT_SIZE 16 +#define POPUP_TEXT_PADDING_RIGHT_SIZE 16 +#define POPUP_TITLE_HEIGHT 68 +#define POPUP_TITLE_TEXT_SIZE 30 +#define POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT 1 +#define POPUP_LEFT_RIGHT_LINE_WIDTH 1 +#define POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT "83" +#define POPUP_BUTTON_HEIGHT 83 +#define POPUP_BUTTON_CENTER_PADDING_SIZE 1 +#define POPUP_BODY_TEXT_SIZE 34 +#define POPUP_BODY_TEXT_PADDING_TOP_SIZE 8 +#define POPUP_BODY_TEXT_PADDING_BOTTOM_SIZE 8 +// Popup -Toast +#define POPUP_TOAST_BG_WIDTH 360 +#define POPUP_TOAST_PADDING_BOTTOM_SIZE 0 +#define POPUP_TOAST_PADDING_LEFT_SIZE 16 +#define POPUP_TOAST_PADDING_RIGHT_SIZE 16 +#define POPUP_TOAST_PADDING_TOP_SIZE 22 +#define POPUP_TOAST_TEXT_PADDING_BOTTOM_SIZE 23 +#define POPUP_TOAST_TEXT_WIDTH 280 +#define POPUP_TOAST_TEXT_SIZE 34 + +// ***************************** Progressbar **********************************/ +#define PROGRESS_BG_BORDER_SIZE 6 6 2 2 +#define PROGRESS_BAR_IMAGE_BORDER_SIZE 6 6 2 2 +#define PROGRESSBAR_HEIGHT 6 +#define PROGRESSBAR_PENDING_SIZE 288 6 +#define PROGRESSBAR_POPUP_PENDING_SIZE 258 6 +#define PROGRESSBAR_ACTIVITY_IMAGE_SIZE 84 84 +#define PROGRESSBAR_ACTIVITY_GROUPINDEX_IMAGE_SIZE 34 34 + +// ***************************** Layout ***************************************/ +#define BUTTON_CONTROLLER_PADDING_LT_SIZE 8 8 +#define BUTTON_CONTROLLER_PADDING_RB_SIZE 8 8 +#define BUTTON_CONTROLLER_ICON_CENTER_SIZE 168 168 +#define BUTTON_CONTROLLER_ICON_SIZE 68 68 +// Layout - Body +#define BODY_ICON_SIZE 232 211 +#define BODY_NORMAL_PADDING_LEFT_SIZE 10 +#define BODY_NORMAL_PADDING_RIGHT_SIZE 10 +#define BODY_NORMAL_CENTER_PART_SIZE 307 +#define BODY_SUB_NORMAL_CENTER_PART_SIZE 294 +#define BODY_NORMAL_PADDING_MIDDLE_SIZE 8 +#define BODY_NORMAL_TEXT_SIZE 38 +#define BODY_NORMAL_TEXT_SUB_SIZE 27 +#define BODY_NORMAL_1LINE_TEXT_HEIGHT 88 +#define BODY_NORMAL_2LINE_TEXT_HEIGHT 44 +#define BODY_NORMAL_2LINE_TEXT_SUB_HEIGHT 31 +#define BODY_THUMBNAIL_SIZE 216 288 +#define BODY_THUMBNAIL_LINE_SIZE 2 +// Layout - No Item +#define NOITEM_TEXT_SIZE 32 +#define NOITEM_LR_PADDING_SIZE 16 +// Datetime +#define DATETIME_AM_PM_SIZE 228 102 +#define DATETIME_AM_PM_FIELD_SIZE 102 102 +#define DATETIME_AM_PM_CENTER_PADDING_SIZE 24 102 +// Search bar +#define SEARCHBAR_CANCEL_BUTTON_W_INC 34 +#define SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 10 +#define SEARCHBAR_H_INC 64 +#define SEARCHBAR_HEIGHT_INC 48 +#define SEARCHBAR_BASE_HEIGHT_INC 64 +#define SEARCHBAR_WIDTH_INC 120 +#define SEARCHBAR_TOP_PADDING_INC 8 +#define SEARCHBAR_BOTTOM_PADDING_INC 8 +#define SEARCHBAR_LEFT_PADDING_INC 16 +#define SEARCHBAR_RIGHT_PADDING_INC 16 +// ***************************** Slider ***************************************/ +#define SLIDER_IND_WIDTH 32 +#define SLIDER_IND_HEIGHT 32 +#define SLIDER_IND_MAX_WIDTH 46 +#define SLIDER_IND_MAX_HEIGHT 46 +#define SLIDER_BG_HEIGHT_INC 48 +#define SLIDER_ICON_PADDING_SIZE_INC 22 13 +#define SLIDER_POPUP_BOTTOM_PADDING_HEIGHT_INC 59 +#define SLIDER_POPUP_SIZE_INC 86 79 + +// ***************************** Radio ****************************************/ + +// ***************************** Datetime *************************************/ +#define DATETIME_DATE_PICKER_BG_MIN_SIZE 328 290 +#define DATETIME_TIME_PICKER_BG_MIN_SIZE 278 290 +#define DATETIME_DATE_YEAR_FIELD_WIDTH 124 +#define DATETIME_DATE_MONTH_FIELD_WIDTH 104 +#define DATETIME_DATE_DATE_FIELD_WIDTH 84 +#define DATETIME_DATE_FIELD_PADDING_WIDTH 8 +#define DATETIME_TIME_HOUR_FIELD_WIDTH 84 +#define DATETIME_TIME_MINUTE_FIELD_WIDTH 84 +#define DATETIME_TIME_AMPM_FIELD_WIDTH 94 +#define DATETIME_FIELD_HEIGHT 106 +#define DATETIME_TOP_FOOT_BUTTON_SIZE 72 72 +#define DATETIME_TOP_FOOT_BUTTON_SWALLOW_SIZE 84 92 // To increase the touch event area of top/foot button +#define DATETIME_TEXT_DIGIT_SIZE_INC 35 52 +#define DATETIME_TEXT_STRING_SIZE_INC 35 47 +// ***************************** Spiiner **************************************/ + +// ***************************** Spiiner **************************************/ +#define SPINNER_HORIZONTAL_DEFAULT_BG_SIZE 336 87 +#define SPINNER_VERTICAL_DEFAULT_BG_SIZE 168 304 +#define SPINNER_BG_LEFT_RIGHT_SIZE 77 87 +#define SPINNER_ICON_LEFT_RIGHT_SIZE 58 58 +#define SPINNER_ICON_TOP_BOTTOM_SIZE 68 68 +#define SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE 168 168 +#define SPINNER_DRAGABLE_PART_MIN_SIZE 90 180 +#define SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE 1 87 +#define SPINNER_CONTENT_BG_SIZE 180 87 +#define SPINNER_CENTER_IMAGE_SIZE 48 48 +#define SPINNER_TEXT_TOP_PADDING_HEIGHT 2 +#define SPINNER_BOTTOM_PADDING_SIZE 180 16 +#define SPINNER_PICKERSTYLE_BG_SIZE 124 290 +#define SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE 72 72 +#define SPINNER_PICKERSTYLE_TEXT_HEIGHT 52 +#define SPINNER_PICKERSTYLE_FIELD_HEIGHT 106 +#define SPINNER_PICKERSTYLE_FIELD_WIDTH 84 + +// ***************************** Entry ****************************************/ +#define ENTRY_TEXT_SIZE 34 +#define ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE 51 79 +#define ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 4 +#define ENTRY_TOP_BOTTOM_PADDING_HEIGHT 7 +#define MAGNIFIER_HEIGHT_FIXED 90 +#define MAGNIFIER_WIDTH_FIXED 200 +#define MAGNIFIER_ARROW_HEIGHT_INC 10 +#define MAGNIFIER_LEFT_OFFSET_INC 7 2 +#define MAGNIFIER_RIGHT_OFFSET_INC 7 12 +#define ENTRY_FOCUS_RECT_EDGE_INC 2 + +#define ENTRY_EDITFIELD_TEXT_SIZE_INC 24 +#define ENTRY_EDITFIELD_CLEAR_BUTTON_PADDING_MIN_MAX_INC 42 0 +#define ENTRY_EDITFIELD_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC 4 0 + +#define ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC 24 + +#define ENTRY_SEARCH_ICON_MIN_MAX_INC 34 34 +#define ENTRY_SEARCH_ICON_LEFT_PADDING_MIN_MAX_INC 6 0 +#define ENTRY_SEARCH_ICON_RIGHT_PADDING_MIN_MAX_INC 6 0 +#define ENTRY_SEARCH_CLEAR_BUTTON_PADDING_MIN_MAX_INC 42 0 +#define ENTRY_SEARCH_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC 4 0 + +// ***************************** Label ****************************************/ +#define LABEL_FONT_SIZE_INC 34 + +// PRESS +#define PRESS_TIMER_VAL 0.1 + +#define STYLE_TAG \ + tag: "br" "\n";\ + tag: "ps" "ps";\ + tag: "tab" "\t";\ + tag: "b" "+ font_weight=Bold"; + +#define STYLE_TAG_MATCH \ + tag: "match" "+ color=#ffffff color_class=T0212"; + +#define STYLE_TAG_MATCH_FOCUS \ + tag: "match" ; + +styles { + // Index_Scroller Styles + style { name: "Index_scroll_bar_select"; + base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T0311P text_class=T0311P ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "Index_scroll_bar_unselect"; + base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T0311 text_class=T0311 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "Index_scroll_1depth_popup"; + base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_POPUP_TEXT_SIZE" align=center color=#FFFFFF color_class=T0312P text_class=T0312P ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "Index_scroll_1depth_popup_left_align"; + base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_POPUP_TEXT_SIZE" align=left color=#FFFFFF color_class=T0312 text_class=T0312 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "Index_scroll_bar_2depth_popup"; + base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_POPUP_TEXT_SIZE" align=right color=#FFFFFF color_class=T0312P text_class=T0312P ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "Index_scroll_bar_2depth_focus_bar"; + base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T0313 text_class=T0313 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + // Naviframe Style + style { name: "action_bar_title"; + base: "font=Tizen:style=Bold font_size="ACTIONBAR_TEXT_SIZE" color=#FFFFFF color_class=T012 text_class=T012 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + // List Style + style { name: "list_text_groupindex_normal"; + base: "font=Tizen:style=Regular font_size="LIST_GROUPINDEX_TEXT_SIZE" color=#ffffff color_class=T0231 text_class=T0231 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_groupindex_sub_normal"; + base: "font=Tizen:style=Regular font_size="LIST_GROUPINDEX_TEXT_SIZE" color=#FFFFFF color_class=T0232 text_class=T0232 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_main_normal"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211 text_class=T0211 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_main_press"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211P text_class=T0211P ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_main_dim"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211D text_class=T0211D ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_normal"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_press"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022P ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_dim"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022D text_class=T022D ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_multiline_normal"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022 wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_multiline_dim"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022D text_class=T022D wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_multiline_press"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022P text_class=T022P wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_multiline"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211 text_class=T0211 wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_multiline_2line_normal"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211 text_class=T0211 wrap=mixed ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_multiline_2line_dim"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211D text_class=T0211D wrap=mixed ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_noti_style"; + base: "font=Tizen:style=Bold font_size="LIST_NOTI_TEXT_SIZE" align=center color="LIST_NOTI_TEXT_COLOR" wrap=mixed ellipsis=1.0 text_class=tizen"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_sweep_style"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SWEEP_SIZE" align=center color=#ffffff color_class=T024 text_class=T024 ellipsis=1.0 align=center"; + STYLE_TAG + STYLE_TAG_MATCH + } + // device_option + style { name: "list_device_option_sub_normal"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022 ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "button_popup_device_option_2_text_normal"; + base: "font=Tizen:style=Regular align=center font_size="LIST_DEVICE_OPTION_TEXT_SUB_SIZE" color=#FFFFFF color_class=T095 text_class=T095 wrap=mixed ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "button_popup_device_option_2_text_press"; + base: "font=Tizen:style=Regular align=center font_size="LIST_DEVICE_OPTION_TEXT_SUB_SIZE" align=center color=#FFFFFF color_class=T095P text_class=T095P ellipsis=1.0 wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "button_popup_device_option_2_text_dim"; + base: "font=Tizen:style=Regular align=center font_size="LIST_DEVICE_OPTION_TEXT_SUB_SIZE" align=center color=#FFFFFF color_class=T095D text_class=T095D ellipsis=1.0 wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + // Nocontent styles + style { name: "nocontent_style"; + base: "font=Tizen:style=Regular font_size="NOITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T071 text_class=T071 wrap=mixed "; + STYLE_TAG + } + // Button styles + style { name: "button_general_text_normal"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T041 ellipsis=1.0 wrap=mixed text_class=T041"; + STYLE_TAG + } + style { name: "button_general_text_dim"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T041D ellipsis=1.0 wrap=mixed text_class=T041D"; + STYLE_TAG + } + style { name: "button_general_text_press"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T041P ellipsis=1.0 wrap=mixed text_class=T041P"; + STYLE_TAG + } + style { name: "button_popup_text_normal"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T093 ellipsis=1.0 wrap=mixed text_class=T093"; + STYLE_TAG + } + style { name: "button_popup_text_dim"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T093D ellipsis=1.0 wrap=mixed text_class=T093D"; + STYLE_TAG + } + style { name: "button_popup_text_press"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T093P ellipsis=1.0 wrap=mixed text_class=T093P"; + STYLE_TAG + } + style { name: "check_text_normal"; + base: "font=Tizen:style=Regular font_size="CHECK_TEXT_SIZE" align=left color=#FFFFFF color_class=T092 wrap=mixed ellipsis=1.0 text_class=T092"; + } + style { name: "popup_title_style"; + base: "font=Tizen:style=Bold font_size="POPUP_TITLE_TEXT_SIZE" color=#FFFFFF color_class=T091 ellipsis=1.0 text_class=T091"; + STYLE_TAG + } + style { name: "popup_body_default_font_style"; + base: "font=Tizen:style=Regular font_size="POPUP_BODY_TEXT_SIZE" color=#FFFFFF color_class=T092 wrap=mixed text_class=T092"; + STYLE_TAG + } + style { name: "popup_toast_style"; + base: "font=Tizen:style=Regular font_size="POPUP_TOAST_TEXT_SIZE" color=#FFFFFF color_class=T092 wrap=mixed text_class=T092"; + STYLE_TAG + } + style { name: "popup_help_style"; + base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" color=#FFFFFF color_class=T011 ellipsis=1.0 wrap=mixed text_class=T011"; + STYLE_TAG + } + style { name: "body_normal_1line_style"; + base: "font=Tizen:style=Bold font_size="BODY_NORMAL_TEXT_SIZE" align=center color=#FFFFFF color_class=T0812 wrap=mixed ellipsis=1.0 text_class=T0812"; + STYLE_TAG + } + style { name: "body_normal_2line_main_style"; + base: "font=Tizen:style=Bold font_size="BODY_NORMAL_TEXT_SIZE" align=center color=#FFFFFF color_class=T0811 wrap=mixed ellipsis=1.0 text_class=T0811"; + STYLE_TAG + } + style { name: "body_normal_2line_style"; + base: "font=Tizen:style=Regular font_size="BODY_NORMAL_TEXT_SUB_SIZE" align=center color=#FFFFFF color_class=T082 wrap=mixed ellipsis=1.0 text_class=T082"; + STYLE_TAG + } +} diff --git a/data/changeable/groups/battery.edc b/data/changeable/groups/battery.edc new file mode 100644 index 0000000..b1f1b6a --- /dev/null +++ b/data/changeable/groups/battery.edc @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting-test/battery"; + parts { + part { name: "base"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + color: 0 0 0 255; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { name: "image"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 96 146; + rel1 { + relative: 0.0 0.0; + to: "base"; + offset: 0 40; + } + rel2 { + relative: 1.0 0.0; + to: "base"; + } + align: 0.5 0.0; + } + } + part { name: "text1"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 320 42; + fixed: 1 0; + rel1 { + relative: 0.0 1.0; + to_y: "image"; + offset: 0 22; + } + rel2 { + relative: 1.0 1.0; + to_y: "image"; + offset: 0 64; + } + color: 255 255 255 255; + text { + font: "Tizen:style=Regular"; + text_class:"tizen"; + size: 38; + min: 0 0; + align: 0.5 0.5; + } + } + } + part { name: "text2"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + rel1 { + to_y: "text1"; + relative: 0.0 1.0; + offset: 0 8; + } + rel2 { + relative: 1.0 1.0; + to_y: "text1"; + offset: 0 39; + } + color: 255 145 0 255; + text { + font: "Tizen:style=Regular"; + text_class:"tizen"; + size: 30; + min: 0 0; + align: 0.5 0.5; + } + min: 320 28; + } + } + } +} diff --git a/data/changeable/groups/bg_thumbnail.edc b/data/changeable/groups/bg_thumbnail.edc new file mode 100644 index 0000000..2105a63 --- /dev/null +++ b/data/changeable/groups/bg_thumbnail.edc @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting/bg_thumbnail"; + images { + image: "00_body_thumbnail_bg.png" COMP; + } + parts { + part { name: "top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 30; + fixed: 1 1; + align: 0.5 0.0; + rel2 { + relative: 1.0 0.0; + } + } + } + part { name: "bottom_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 30; + fixed: 1 1; + align: 0.5 1.0; + rel1 { + relative: 0.0 1.0; + } + } + } + part { name: "left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 30 0; + fixed: 0 0; + align: 0.0 0.5; + rel2 { + relative: 0.0 1.0; + } + } + } + part { name: "right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 30 0; + fixed: 0 0; + align: 1.0 0.5; + rel1 { + relative: 1.0 0.0; + } + } + } + part { name: "bg"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 260 260; + image { + normal: "00_body_thumbnail_bg.png"; + border: 14 14 14 14; + border_scale: 1; + } + rel1 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 1.0 1.0; + } + rel2 { + to_x: "right_padding"; + to_y: "bottom_padding"; + relative: 0.0 0.0; + } + } + } + part { name: "elm.icon"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 254 254; + rel1 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 1.0 1.0; + offset: 3 3; + } + rel2 { + to_x: "right_padding"; + to_y: "bottom_padding"; + relative: 0.0 0.0; + offset: -3 -3; + } + } + } + } +} diff --git a/data/changeable/groups/blockingmode_settime.edc b/data/changeable/groups/blockingmode_settime.edc new file mode 100644 index 0000000..b3b7c19 --- /dev/null +++ b/data/changeable/groups/blockingmode_settime.edc @@ -0,0 +1,454 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * PROPRIETARY/CONFIDENTIAL + * + * This software is the confidential and proprietary information of SAMSUNG + * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this + * software is owned by Samsung and you shall not disclose such Confidential + * Information and shall use it only in accordance with the terms of the license + * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no + * representations or warranties about the suitability of the software, either + * express or implied, including but not limited to the implied warranties of + * merchantability, fitness for a particular purpose, or non-infringement. + * SAMSUNG shall not be liable for any damages suffered by licensee arising out + * of or releated to this software. + * + */ +/////////////////////////////////////////////////////////////////////////////// +// set time period layout for blocking mode custom popup +/////////////////////////////////////////////////////////////////////////////// + +group { name: "blockmode_time"; + parts { + part { name: "bg"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + min: 360 255; + max: 360 255; + } + } + part { name: "top.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 1; + max: -1 1; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 0.0; + to: "bg"; + } + align: 0.5 0.0; + } + } + part { name: "left.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 15 0; + max: 15 -1; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 0.0 1.0; + to: "bg"; + } + align: 0.0 0.5; + } + } + part { name: "right.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 15 0; + max: 15 -1; + rel1 { + relative: 1.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + align: 1.0 0.5; + } + } + part { name: "upbtn.field"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 72; + max: -1 72; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "top.padding"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "top.padding"; + } + align: 0.5 0.0; + } + } + part { name: "upbtn.bottom.seperator"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 10; + max: -1 10; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "upbtn.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "upbtn.field"; + } + align: 0.5 0.0; + } + } + part { name: "content.field"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 84; + max: -1 84; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "upbtn.bottom.seperator"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "upbtn.bottom.seperator"; + } + align: 0.5 0.0; + } + } + part { name: "downbtn.upper.seperator"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 10; + max: -1 10; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "content.field"; + } + align: 0.5 0.0; + } + } + part { name: "downbtn.field"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 72; + max: -1 72; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "downbtn.upper.seperator"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "downbtn.upper.seperator"; + } + align: 0.5 0.0; + } + } + part { name: "start_upbtn.left.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 0 0; + max: 0 -1; + rel1 { + relative: 1.0 0.0; + to: "left.padding"; + } + rel2 { + relative: 1.0 1.0; + to: "left.padding"; + } + align: 0.0 0.5; + } + } + part { name: "start_upbtn.right.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 0 0; + max: 0 -1; + rel1 { + relative: 1.0 0.0; + to: "right.padding"; + } + rel2 { + relative: 1.0 1.0; + to: "right.padding"; + } + align: 1.0 0.5; + } + } + part { name: "start_upbtn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "start_upbtn.left.padding"; + to_y: "upbtn.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "start_upbtn.left.padding"; + to_y: "upbtn.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + part { name: "start_downbtn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "start_upbtn.left.padding"; + to_y: "downbtn.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "start_upbtn.left.padding"; + to_y: "downbtn.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + + part { name: "start_hour"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "left.padding"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "left.padding"; + to_y: "content.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + part { name: "start_hour.ampm.seperator"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 10 0; + max: 10 -1; + rel1 { + relative: 1.0 0.0; + to_x: "start_hour"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "start_hour"; + to_y: "content.field"; + } + align: 0.0 0.5; + } + } + part { name: "start_ampm"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "start_hour.ampm.seperator"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "start_hour.ampm.seperator"; + to_y: "content.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + part { name: "center.spacer"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 22 0; + max: 22 -1; + rel1 { + relative: 1.0 0.0; + to_x: "start_ampm"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "start_ampm"; + to_y: "content.field"; + } + align: 0.0 0.5; + } + } + part { name: "end_upbtn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "center.spacer"; + to_y: "upbtn.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "center.spacer"; + to_y: "upbtn.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + part { name: "end_downbtn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "center.spacer"; + to_y: "downbtn.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "center.spacer"; + to_y: "downbtn.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + part { name: "end_hour"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "center.spacer"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "center.spacer"; + to_y: "content.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + part { name: "end_hour.ampm.seperator"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 10 0; + max: 10 -1; + rel1 { + relative: 1.0 0.0; + to_x: "end_hour"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "end_hour"; + to_y: "content.field"; + } + align: 0.0 0.5; + } + } + part { name: "end_ampm"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 72 0; + max: 72 -1; + rel1 { + relative: 1.0 0.0; + to_x: "end_hour.ampm.seperator"; + to_y: "content.field"; + } + rel2 { + relative: 1.0 1.0; + to_x: "end_hour.ampm.seperator"; + to_y: "content.field"; + } + align: 0.0 0.5; + visible: 1; + } + } + + } +} diff --git a/data/changeable/groups/brightness_layout.edc b/data/changeable/groups/brightness_layout.edc new file mode 100644 index 0000000..e35e41e --- /dev/null +++ b/data/changeable/groups/brightness_layout.edc @@ -0,0 +1,402 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + +group { name: "setting/brightness_layout"; + styles{ + style { name: "custom_style2"; + base: "font=Tizen:style=Regular font_size="50" align=center color=""#FFFFFF"" wtext_class=tizen"; + tag: "br" "\n"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + style { name: "outdoor_style2"; + base: "font=Tizen:style=Regular font_size="25" align=center color=#FF9100 text_class=tizen"; + tag: "br" "\n"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + } + + images { + image: "tw_number_controller_icon_brightness.png" COMP; + image: "tw_number_controller_icon_brightness_1.png" COMP; + image: "tw_number_controller_icon_brightness_2.png" COMP; + image: "tw_number_controller_icon_brightness_3.png" COMP; + image: "tw_number_controller_icon_brightness_4.png" COMP; + image: "tw_number_controller_icon_brightness_5.png" COMP; + } + + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default"; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color_class: "B011"; + } + } + part { name: "top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 5; + max: -1 5; + fixed: 0 1; + align: 0.5 0.0; + rel2.relative: 1.0 0.0; + } + } + part { name: "bottom_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 28; + max: -1 28; + fixed: 0 1; + align: 0.5 1.0; + rel1.relative: 0.0 1.0; + } + } + part { name: "left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + max: 16 -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + max: 16 -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.text.bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 80 80; + max: 80 80; + rel1 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 0 1; + offset: 5 50; + } + rel2 { + to_x: "right_padding"; + to_y: "top_padding"; + relative: 0 1; + offset: 0 130; + } + color: 53 53 53 255; + visible : 0; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: 80 50; + max: 80 50; + rel1 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 0 1; + offset: 5 50; + } + rel2 { + to_x: "right_padding"; + to_y: "top_padding"; + relative: 0 1; + offset: 0 100; + } + text { + style: "custom_style2"; + align: 0.5 0.5; + min: 1 1; + } + visible: 0; + } + } + part { name: "elm.icon.1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 48; + fixed: 1 1; + align: 0.5 0.0; + rel1 { + to_x: "left_padding"; + to_y: "elm.text"; + relative: 1 1; + offset: 55 0; + } + rel2 { + to_x: "right_padding"; + to_y: "elm.text"; + relative: 0 1; + offset: 0 48; + } + } + } + part { name: "brightness.icon"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + min: 48 48; + max: 48 48; + fixed: 1 1; + rel1 { + to_x: "bg"; + to_y: "elm.text"; + relative: 0 1; + offset: 0 0; + } + rel2 { + to_x: "elm.icon.1"; + to_y: "elm.text"; + relative: 0 1; + offset: -7 48; + } + image.normal: "tw_number_controller_icon_brightness_1.png"; + color_class: "W173L1"; + } + description { + state: "level2" 0.0; + inherit: "default" 0.0; + image.normal: "tw_number_controller_icon_brightness_2.png"; + color_class: "W173L1"; + } + description { + state: "level3" 0.0; + inherit: "default" 0.0; + image.normal: "tw_number_controller_icon_brightness_3.png"; + color_class: "W173L1"; + } + description { + state: "level4" 0.0; + inherit: "default" 0.0; + image.normal: "tw_number_controller_icon_brightness_4.png"; + color_class: "W173L1"; + } + description { + state: "level5" 0.0; + inherit: "default" 0.0; + image.normal: "tw_number_controller_icon_brightness_5.png"; + color_class: "W173L1"; + } + } + + part { name: "auto.check"; + type: SWALLOW; + scale: 1; + description { + min: 48 48; + max: 48 48; + fixed: 1 1; + rel1 { + relative: 1 1; + to_x: "left_padding"; + to_y: "brightness.icon"; + offset: 0 30; + } + rel2 { + relative: 1 1; + to_x: "left_padding"; + to_y: "brightness.icon"; + offset: 56 78; + } + } + } + part { name: "auto.text"; + type: TEXT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + min: 0 56; + fixed: 1 1; + align: 0.0 0; + visible: 1; + rel1 { + relative: 1 0; + to: "auto.check"; + offset: 8 0; + } + rel2 { + relative: 1 1; + to_x: "bg"; + to_y: "auto.check"; + offset: -16 0; + } + color_class: "T011"; + text { + text_class:"T011"; + align: 0.0 0.5; + } + } + } + part { name: "auto.text.rect"; + type: RECT; + scale: 1; + mouse_events: 1; + description { state: "default" 0.0; + min: 0 56; + rel1 { + relative: 0.0 0.0; + to: "auto.text"; + } + rel2 { + relative: 1.0 1.0; + to: "auto.text"; + } + color: 0 0 0 0; + } + } + FOCUS_OBJECT("auto.text.rect") + + part { name: "elm.text.2"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: 0 30; + fixed: 1 1; + align: 0.5 0; + visible: 0; + rel1 { + to_x: "left_padding"; + to_y: "elm.icon.1"; + relative: 1 1; + offset: 0 20; + } + rel2 { + to_x: "right_padding"; + to_y: "elm.icon.1"; + relative: 0 1; + offset: 0 50; + } + text { + style: "outdoor_style"; + align: 0.5 0.0; + min: 1 1; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + + part { name: "btn1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + to_x: "padding"; + relative: 0.0 1.0; + } + min: 0 76; + align: 0.5 1; + } + } + part { name: "padding"; + type: SPACER; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { + relative: 0.5 1.0; + } + rel2 { + relative: 0.5 1.0; + } + align: 0.5 1.0; + min: 1 0; + max: 1 0; + fixed: 1 0; + } + } + part { name: "btn2"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + to_x: "padding"; + relative: 1.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + min: 0 76; + align: 0.5 1; + } + } + + + programs { + program { + signal: "elm,state,outdoor.visible"; + source: "*"; + action: STATE_SET "visible" 0.0; + target: "elm.text.2"; + } + + program { + signal: "elm,state,brightness,level,1"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "brightness.icon"; + } + program { + signal: "elm,state,brightness,level,2"; + source: "*"; + action: STATE_SET "level2" 0.0; + target: "brightness.icon"; + } + program { + signal: "elm,state,brightness,level,3"; + source: "*"; + action: STATE_SET "level3" 0.0; + target: "brightness.icon"; + } + program { + signal: "elm,state,brightness,level,4"; + source: "*"; + action: STATE_SET "level4" 0.0; + target: "brightness.icon"; + } + program { + signal: "elm,state,brightness,level,5"; + source: "*"; + action: STATE_SET "level5" 0.0; + target: "brightness.icon"; + } + } + } +} diff --git a/data/changeable/groups/clock_type_layout.edc b/data/changeable/groups/clock_type_layout.edc new file mode 100644 index 0000000..1f5aea9 --- /dev/null +++ b/data/changeable/groups/clock_type_layout.edc @@ -0,0 +1,734 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { + name: "setting-test/clock-type"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + color_class: "B101"; + } + } + part { + name: "clock-wallpaper"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + part { + name: "clock-color"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + part { + name: "clock-image"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + } +} + +group { + name: "setting-test/clock-type-home"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + color_class: "B101"; + visible: 1; + } + description { + state: "image" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + color_class: "B101"; + visible: 0; + } + } + part { + name: "bg/image"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + visible: 0; + } + description { + state: "image" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + visible: 1; + } + } + part { + name: "clock-wallpaper"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + part { + name: "clock-color"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + part { + name: "clock-image"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + } + +} + +group { + name: "setting-test/index-home"; + parts { + part { + name: "bg/image"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + } + } + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + color: 0 0 0 50; + } + } + + part { + name: "scroller"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; to: "bg";} + rel2 {relative: 1.0 1.0; to: "bg";} + } + } + } +} + +// Layout - thumbnail +#define BODY_THUMBNAIL_SIZE 216 288 +#define BODY_THUMBNAIL_LAYOUT_SIZE 248 480 +#define BODY_THUMBNAIL_LAYOUT_WIDTH 248 +#define BODY_THUMBNAIL_PADDING_TOP_SIZE 66 +#define BODY_THUMBNAIL_PADDING_LEFT_SIZE 16 +#define BODY_THUMBNAIL_PADDING_RIGHT_SIZE 16 +#define BODY_THUMBNAIL_PADDING_CENTER_SIZE 14 +#define BODY_THUMBNAIL_TEXT_SIZE 36 +#define BODY_THUMBNAIL_TEXT_SUB_SIZE 28 +#define BODY_THUMBNAIL_1LINE_TEXT_HEIGHT 88 +#define BODY_THUMBNAIL_2LINE_TEXT_HEIGHT 44 +#define BODY_THUMBNAIL_2LINE_TEXT_SUB_HEIGHT 32 +#define BODY_THUMBNAIL_LINE_SIZE 2 + +group { name: "setting/layout/body_thumbnail/default"; + images { + image: "edit_clock_btn_bg.#.png" COMP; + image: "edit_clock_btn_icon.png" COMP; + image: "edit_clock_btn_line.#.png" COMP; + } + + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: BODY_THUMBNAIL_LAYOUT_SIZE; + max: BODY_THUMBNAIL_LAYOUT_SIZE; + color_class: "W131"; + } + } + part { name: "top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.5 0.0; + rel2.relative: 1.0 0.0; + min: 0 BODY_THUMBNAIL_PADDING_TOP_SIZE; + max: -1 BODY_THUMBNAIL_PADDING_TOP_SIZE; + } + } + part { name: "left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: BODY_THUMBNAIL_PADDING_LEFT_SIZE 0; + max: BODY_THUMBNAIL_PADDING_LEFT_SIZE -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: BODY_THUMBNAIL_PADDING_RIGHT_SIZE 0; + max: BODY_THUMBNAIL_PADDING_RIGHT_SIZE -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.icon"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + rel1.to: "top_padding"; + rel1.relative: 0.0 1.0; + rel2.to: "top_padding"; + rel2.relative: 1.0 1.0; + align: 0.5 0.0; + min: BODY_THUMBNAIL_SIZE; + max: BODY_THUMBNAIL_SIZE; + fixed: 1 1; + } + } + part { name: "left_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + min: BODY_THUMBNAIL_LINE_SIZE 0; + max: BODY_THUMBNAIL_LINE_SIZE -1; + color_class: "W132"; + rel1.to: "elm.icon"; + rel2.to: "elm.icon"; + rel2.relative: 0.0 1.0; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color_class: "W132D"; + } + } + part { name: "right_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + align: 1.0 0.5; + min: BODY_THUMBNAIL_LINE_SIZE 0; + max: BODY_THUMBNAIL_LINE_SIZE -1; + color_class: "W132"; + rel1.to: "elm.icon"; + rel1.relative: 1.0 0.0; + rel2.to: "elm.icon"; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color_class: "W132D"; + } + } + part { name: "top_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.5 0.0; + min: 0 BODY_THUMBNAIL_LINE_SIZE; + max: -1 BODY_THUMBNAIL_LINE_SIZE; + color_class: "W132"; + rel1.to: "left_line"; + rel1.relative: 1.0 0.0; + rel2.to: "right_line"; + rel2.relative: 0.0 0.0; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color_class: "W132D"; + } + } + part { name: "bottom_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.5 1.0; + min: 0 BODY_THUMBNAIL_LINE_SIZE; + max: -1 BODY_THUMBNAIL_LINE_SIZE; + color_class: "W132"; + rel1.to: "left_line"; + rel1.relative: 1.0 1.0; + rel2.to: "right_line"; + rel2.relative: 0.0 1.0; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color_class: "W132D"; + } + } + part { name: "center_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.5 0.0; + min: 0 BODY_THUMBNAIL_PADDING_CENTER_SIZE; + max: -1 BODY_THUMBNAIL_PADDING_CENTER_SIZE; + rel1.to: "bottom_line"; + rel1.relative: 0.0 1.0; + rel2.to: "bottom_line"; + rel2.relative: 1.0 1.0; + } + } + part { name: "edit.btn.bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 55 55; + max: 55 55; + align: 0.5 0.0; + rel1 { + to: "center_padding"; + relative: 0.0 1.0; + } + rel2 { + to: "center_padding"; + relative: 1.0 1.0; + } + color: 8 8 8 125; + visible: 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "edit.btn.line"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 55 55; + max: 55 55; + align: 0.5 0.0; + rel1 { + to: "center_padding"; + relative: 0.0 1.0; + } + rel2 { + to: "center_padding"; + relative: 1.0 1.0; + } + color: 80 80 80 80; + image{ + normal: "edit_clock_btn_line.#.png"; + } + visible: 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "edit.btn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 55 55; + max: 55 55; + align: 0.5 0.0; + rel1 { + to: "center_padding"; + relative: 0.0 1.0; + } + rel2 { + to: "center_padding"; + relative: 1.0 1.0; + } + visible: 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "focus"; + signal: "elm,state,thumbnail,focus"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "left_line"; + target: "right_line"; + target: "top_line"; + target: "bottom_line"; + } + program { + name: "unfocus"; + signal: "elm,state,thumbnail,unfocus"; + source: "*"; + action: STATE_SET "unfocus" 0.0; + target: "left_line"; + target: "right_line"; + target: "top_line"; + target: "bottom_line"; + } + program { + name: "edit/btn/show"; + signal: "edit,btn,show"; + source: "*"; + action: STATE_SET "show" 0.0; + target: "edit.btn.bg"; + target: "edit.btn.line"; + target: "edit.btn"; + } + } +} + +group { name: "setting/layout/body_thumbnail/home"; + images { + image: "edit_clock_btn_bg.#.png" COMP; + image: "edit_clock_btn_icon.png" COMP; + image: "edit_clock_btn_line.#.png" COMP; + } + + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: BODY_THUMBNAIL_LAYOUT_SIZE; + max: BODY_THUMBNAIL_LAYOUT_SIZE; + color: 0 0 0 0; + } + } + part { name: "top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.5 0.0; + rel2.relative: 1.0 0.0; + min: 0 BODY_THUMBNAIL_PADDING_TOP_SIZE; + max: -1 BODY_THUMBNAIL_PADDING_TOP_SIZE; + } + } + part { name: "left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: BODY_THUMBNAIL_PADDING_LEFT_SIZE 0; + max: BODY_THUMBNAIL_PADDING_LEFT_SIZE -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: BODY_THUMBNAIL_PADDING_RIGHT_SIZE 0; + max: BODY_THUMBNAIL_PADDING_RIGHT_SIZE -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.icon"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + rel1.to: "top_padding"; + rel1.relative: 0.0 1.0; + rel2.to: "top_padding"; + rel2.relative: 1.0 1.0; + align: 0.5 0.0; + min: BODY_THUMBNAIL_SIZE; + max: BODY_THUMBNAIL_SIZE; + fixed: 1 1; + } + } + part { name: "left_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + min: BODY_THUMBNAIL_LINE_SIZE 0; + max: BODY_THUMBNAIL_LINE_SIZE -1; + color_class: "AO033"; + rel1.to: "elm.icon"; + rel2.to: "elm.icon"; + rel2.relative: 0.0 1.0; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color: 255 255 255 80; + } + } + part { name: "right_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + align: 1.0 0.5; + min: BODY_THUMBNAIL_LINE_SIZE 0; + max: BODY_THUMBNAIL_LINE_SIZE -1; + color_class: "AO033"; + rel1.to: "elm.icon"; + rel1.relative: 1.0 0.0; + rel2.to: "elm.icon"; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color: 255 255 255 80; + } + } + part { name: "top_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.5 0.0; + min: 0 BODY_THUMBNAIL_LINE_SIZE; + max: -1 BODY_THUMBNAIL_LINE_SIZE; + color_class: "AO033"; + rel1.to: "left_line"; + rel1.relative: 1.0 0.0; + rel2.to: "right_line"; + rel2.relative: 0.0 0.0; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color: 255 255 255 80; + } + } + part { name: "bottom_line"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.5 1.0; + min: 0 BODY_THUMBNAIL_LINE_SIZE; + max: -1 BODY_THUMBNAIL_LINE_SIZE; + color_class: "AO033"; + rel1.to: "left_line"; + rel1.relative: 1.0 1.0; + rel2.to: "right_line"; + rel2.relative: 0.0 1.0; + } + description { state: "unfocus" 0.0; + inherit: "default" 0.0; + color: 255 255 255 80; + } + } + part { name: "center_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.5 0.0; + min: 0 BODY_THUMBNAIL_PADDING_CENTER_SIZE; + max: -1 BODY_THUMBNAIL_PADDING_CENTER_SIZE; + rel1.to: "bottom_line"; + rel1.relative: 0.0 1.0; + rel2.to: "bottom_line"; + rel2.relative: 1.0 1.0; + } + } + part { name: "edit.btn.bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 55 55; + max: 55 55; + align: 0.5 0.0; + rel1 { + to: "center_padding"; + relative: 0.0 1.0; + } + rel2 { + to: "center_padding"; + relative: 1.0 1.0; + } + color: 8 8 8 125; + visible: 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "edit.btn.line"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 55 55; + max: 55 55; + align: 0.5 0.0; + rel1 { + to: "center_padding"; + relative: 0.0 1.0; + } + rel2 { + to: "center_padding"; + relative: 1.0 1.0; + } + color: 80 80 80 80; + image{ + normal: "edit_clock_btn_line.#.png"; + } + visible: 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "edit.btn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 55 55; + max: 55 55; + align: 0.5 0.0; + rel1 { + to: "center_padding"; + relative: 0.0 1.0; + } + rel2 { + to: "center_padding"; + relative: 1.0 1.0; + } + visible: 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "focus"; + signal: "elm,state,thumbnail,focus"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "left_line"; + target: "right_line"; + target: "top_line"; + target: "bottom_line"; + } + program { + name: "unfocus"; + signal: "elm,state,thumbnail,unfocus"; + source: "*"; + action: STATE_SET "unfocus" 0.0; + target: "left_line"; + target: "right_line"; + target: "top_line"; + target: "bottom_line"; + } + program { + name: "edit/btn/show"; + signal: "edit,btn,show"; + source: "*"; + action: STATE_SET "show" 0.0; + target: "edit.btn.bg"; + target: "edit.btn.line"; + target: "edit.btn"; + } + } +} \ No newline at end of file diff --git a/data/changeable/groups/datefield.edc b/data/changeable/groups/datefield.edc new file mode 100644 index 0000000..374160a --- /dev/null +++ b/data/changeable/groups/datefield.edc @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting-test/datetime"; + parts { + part { name: "base"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 360 420; + color_class: B011; + } + } + part { name: "content"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 290; + max: 0 290; + rel1 { + relative: 0.0 27/420; + to: "base"; + } + rel2 { + relative: 1.0 0.0; + to: "base"; + } + align: 0.5 0.0; + } + } + part { name: "btn1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + to_x: "padding"; + relative: 0.0 1.0; + } + min: 0 76; + align: 0.5 1; + } + } + part { name: "padding"; + type: SPACER; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { + relative: 0.5 1.0; + } + rel2 { + relative: 0.5 1.0; + } + align: 0.5 1.0; + min: 1 0; + max: 1 0; + fixed: 1 0; + } + } + part { name: "btn2"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + to_x: "padding"; + relative: 1.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + min: 0 76; + align: 0.5 1; + } + } + } +} diff --git a/data/changeable/groups/edc_image_macro.edc b/data/changeable/groups/edc_image_macro.edc new file mode 100644 index 0000000..dd54b49 --- /dev/null +++ b/data/changeable/groups/edc_image_macro.edc @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +#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; \ + color_class: "AO012"; \ + 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; \ + color_class: "AO012"; \ + aspect: 1 1; \ + aspect_preference: BOTH; \ + } \ + } \ + } \ + } + +#define RESOURCE_IMAGE2( 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_AND_COLOR( FILE_NAME, COLOR ) \ + group { \ + name: FILE_NAME; \ + images.image: FILE_NAME COMP; \ + parts { \ + part { name: "image"; \ + description { \ + state: "default" 0.0; \ + image.normal: FILE_NAME; \ + color_class: COLOR; \ + aspect: 1 1; \ + aspect_preference: BOTH; \ + } \ + } \ + } \ + } + +#define RESOURCE_IMAGE3( 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_preference: BOTH; \ + } \ + } \ + } \ + } \ No newline at end of file diff --git a/data/changeable/groups/edc_images.edc b/data/changeable/groups/edc_images.edc new file mode 100644 index 0000000..31cadd1 --- /dev/null +++ b/data/changeable/groups/edc_images.edc @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +#include "edc_image_macro.edc" + +RESOURCE_IMAGE("b_settings_change_clock.png"); +RESOURCE_IMAGE("b_settings_volume.png"); +RESOURCE_IMAGE("b_settings_display.png"); +RESOURCE_IMAGE("b_settings_text_input.png"); +RESOURCE_IMAGE("b_settings_power_saving.png"); +RESOURCE_IMAGE("b_settings_bluetooth.png"); +RESOURCE_IMAGE("b_settings_lockscreen.png"); +RESOURCE_IMAGE("b_settings_notifications.png"); +RESOURCE_IMAGE("b_settings_language.png"); +RESOURCE_IMAGE("b_settings_language_disabled.png"); +RESOURCE_IMAGE("b_settings_info.png"); +RESOURCE_IMAGE("b_settings_reset.png"); +RESOURCE_IMAGE("b_settings_double_press.png"); +RESOURCE_IMAGE("b_settings_profile.png"); +RESOURCE_IMAGE("b_settings_connections.png"); +RESOURCE_IMAGE("b_settings_call.png"); +RESOURCE_IMAGE("b_settings_messages.png"); +RESOURCE_IMAGE("b_settings_manner_mode.png"); +RESOURCE_IMAGE("b_setting_accessibility.png"); +RESOURCE_IMAGE("b_settings_motion.png"); +RESOURCE_IMAGE("b_settings_system_update.png"); +RESOURCE_IMAGE("b_settings_style.png"); +RESOURCE_IMAGE3("settings_preview_light.png"); +RESOURCE_IMAGE3("settings_preview_dark.png"); +RESOURCE_IMAGE3("settings_preview_dark_blue.png"); +RESOURCE_IMAGE3("settings_preview_light_blue.png"); +RESOURCE_IMAGE2("b_gallery_icon_select_all.png"); +RESOURCE_IMAGE_AND_COLOR("tw_number_controller_icon_brightness.png", "W173L1"); +RESOURCE_IMAGE_AND_COLOR("tw_number_controller_icon_brightness_1.png", "W173L1"); +RESOURCE_IMAGE_AND_COLOR("tw_number_controller_icon_brightness_2.png", "W173L1"); +RESOURCE_IMAGE_AND_COLOR("tw_number_controller_icon_brightness_3.png", "W173L1"); +RESOURCE_IMAGE_AND_COLOR("tw_number_controller_icon_brightness_4.png", "W173L1"); +RESOURCE_IMAGE_AND_COLOR("tw_number_controller_icon_brightness_5.png", "W173L1"); +RESOURCE_IMAGE_AND_COLOR("edit_clock_btn_icon.png", "AO0101"); diff --git a/data/changeable/groups/empty_swallow.edc b/data/changeable/groups/empty_swallow.edc new file mode 100644 index 0000000..bad98f9 --- /dev/null +++ b/data/changeable/groups/empty_swallow.edc @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting-empty/swallow"; + parts { + part { name: "empty.swallow"; + type: SWALLOW; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + min: 50 50; + max: 50 50; + } + } + } +} diff --git a/data/changeable/groups/enhanced_pwrsaving.edc b/data/changeable/groups/enhanced_pwrsaving.edc new file mode 100644 index 0000000..e940e89 --- /dev/null +++ b/data/changeable/groups/enhanced_pwrsaving.edc @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting/pwr_saving"; + parts { + part { name: "base"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 360 420; + color_class: B011; + } + } + part { name: "left.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 16 0; + max: 16 -1; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 0.0 1.0; + to: "base"; + } + align: 0.0 0.5; + } + } + part { name: "right.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 8 0; + max: 8 -1; + rel1 { + relative: 1.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 1.0; + to: "base"; + } + align: 1.0 0.5; + } + } + part { name: "top.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 16; + max: -1 16; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 0.0; + to: "base"; + } + align: 0.0 0.5; + } + } + part { name: "bottom.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 215; + max: -1 215; + rel1 { + relative: 0.0 1.0; + to: "base"; + } + rel2 { + relative: 1.0 1.0; + to: "base"; + } + align: 0.0 1.0; + } + } + part { name: "scroll"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 218; + max: -1 218; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 0.0; + to_x: "base"; + to_y: "seperator"; + } + align: 0.0 0.0; + } + } + part { name: "content"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 218; + max: -1 218; + rel1 { + relative: 1.0 1.0; + to_x: "left.padding"; + to_y: "top.padding"; + } + rel2 { + relative: 0.0 1.0; + to_x: "right.padding"; + to_y: "top.padding"; + } + align: 0.0 0.0; + } + } + part { name: "seperator"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + color_class: AO014; + min: 0 1; + max: -1 1; + rel1 { + relative: 0.0 0.0; + to: "bottom.padding"; + } + rel2 { + relative: 1.0 0.0; + to: "bottom.padding"; + } + align: 0.5 0.0; + } + } + part { name: "checkbox"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 138; + max: -1 138; + rel1 { + relative: 0.0 1.0; + to_x: "base"; + to_y: "seperator"; + } + rel2 { + relative: 1.0 1.0; + to_x: "base"; + to_y: "seperator"; + } + align: 0.5 0.0; + } + } + part { name: "btn1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + min: 0 85; + align: 0.5 1; + } + } + } +} diff --git a/data/changeable/groups/gengrid_thumbnail_theme.edc b/data/changeable/groups/gengrid_thumbnail_theme.edc new file mode 100644 index 0000000..f9618e2 --- /dev/null +++ b/data/changeable/groups/gengrid_thumbnail_theme.edc @@ -0,0 +1,542 @@ +group { name: "elm/gengrid/item/setting/wallpaper_style/default"; + data.item: "contents" "elm.swallow.icon elm.swallow.end"; + + images { + image: "settings_wallpaper_selected.png" COMP; + } + + parts { + part { name: "bg"; + scale: 1; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 255; + } + } + part { name: "left_top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 2 2; + align: 0.0 0.0; + visible: 0; + rel1.to: "bg"; + rel2 { + relative: 0.0 0.0; + to: "bg"; + } + } + } + part { name: "right_bottom_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 2 2; + align: 1.0 1.0; + visible: 0; + rel1 { + relative: 1.0 1.0; + to: "bg"; + } + rel2.to: "bg"; + } + } + part { name: "item_bg"; + type: RECT; + description { state: "default" 0.0; + color: 8 8 8 255; + rel1 { + relative: 1.0 1.0; + to: "left_top_padding"; + } + rel2 { + relative: 0.0 0.0; + to: "right_bottom_padding"; + } + } + } + part { name: "photo_frame"; + type: RECT; + description { state: "default" 0.0; + color: 8 8 8 255; + min: 170 170; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: -1 -1; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 1 1; + } + } + } + part { name: "selected_frame"; + type: IMAGE; + description { state: "default" 0.0; + min: 170 170; + rel1 { + relative: 0.0 0.0; + to: "photo_frame"; + } + rel2 { + relative: 1.0 1.0; + to: "photo_frame"; + } + image.normal: "settings_wallpaper_selected.png"; + visible: 0; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "empty_gallery_bg"; + type: RECT; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "right_bottom_padding"; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 0 0; + } + align: 0.5 0.5; + color: 8 8 8 255; + visible: 0; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + + part { name: "elm.swallow.icon.bg"; + type: RECT; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "right_bottom_padding"; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 0 0; + } + align: 0.5 0.5; + color: 33 33 33 255; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + rel1.offset: 3 3; + rel2.offset: -3 -3; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "right_bottom_padding"; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 0 0; + } + align: 0.5 0.5; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + rel1.offset: 3 3; + rel2.offset: -3 -3; + } + } + part { name: "reorder_bg"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 128; + visible: 0; + rel1.to: "elm.swallow.icon"; + rel2.to: "elm.swallow.icon"; + } + description { state: "enabled" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "elm.swallow.end"; + type: SWALLOW; + description { state: "default" 0.0; + min: 60 60; + max: 60 60; + rel1.to: "item_bg"; + rel2.to: "item_bg"; + align: 0.5 0.5; + } + } + } + programs { + program { name: "go_reorder_disabled"; + signal: "elm,state,reorder,disabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "reorder_bg"; + } + program { name: "go_reorder_enabled"; + signal: "elm,state,reorder,enabled"; + source: "elm"; + action: STATE_SET "enabled" 0.0; + target: "reorder_bg"; + } + program { name: "gallery_black_bg_enabled"; + signal: "gallery,black,bg,enabled"; + source: "*"; + action: STATE_SET "show" 0.0; + target: "empty_gallery_bg"; + } + program { name: "gallery_black_bg_disabled"; + signal: "gallery,black,bg,disabled"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "empty_gallery_bg"; + } + program { name: "selected_frame_enabled"; + signal: "selected,frame,enabled"; + source: "*"; + action: STATE_SET "selected" 0.0; + target: "selected_frame"; + target: "elm.swallow.icon"; + target: "elm.swallow.icon.bg"; + } + program { name: "selected_frame_disabled"; + signal: "selected,frame,disabled"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "selected_frame"; + target: "elm.swallow.icon"; + target: "elm.swallow.icon.bg"; + } + } + } + + + group { name: "elm/gengrid/item/setting/wallpaper_color_style/default"; + data.item: "contents" "elm.swallow.icon"; + parts { + part { name: "bg"; + scale: 1; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "left_top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 2 2; + align: 0.0 0.0; + visible: 0; + rel1.to: "bg"; + rel2 { + relative: 0.0 0.0; + to: "bg"; + } + } + } + part { name: "right_bottom_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 2 2; + align: 1.0 1.0; + visible: 0; + rel1 { + relative: 1.0 1.0; + to: "bg"; + } + rel2.to: "bg"; + } + } + part { name: "item_bg"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + rel1 { + relative: 1.0 1.0; + to: "left_top_padding"; + } + rel2 { + relative: 0.0 0.0; + to: "right_bottom_padding"; + } + } + } + part { name: "photo_frame"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + min: 175 175; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: -1 -1; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 1 1; + } + } + } + part { name: "selected_frame"; + type: IMAGE; + description { state: "default" 0.0; + min: 175 175; + rel1 { + relative: 0.0 0.0; + to: "photo_frame"; + } + rel2 { + relative: 1.0 1.0; + to: "photo_frame"; + } + image.normal: "settings_wallpaper_selected.png"; + visible: 0; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "right_bottom_padding"; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 0 0; + } + align: 0.5 0.5; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + rel1.offset: 3 3; + rel2.offset: -3 -3; + } + } + } + programs { + program { name: "selected_enabled"; + signal: "selected,enabled"; + source: "*"; + action: STATE_SET "selected" 0.0; + target: "selected_frame"; + target: "elm.swallow.icon"; + } + program { name: "selected_disabled"; + signal: "selected,disabled"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "selected_frame"; + target: "elm.swallow.icon"; + } + } + } + + group { name: "elm/gengrid/item/setting/wallpaper_delete_style/default"; + data.item: "contents" "elm.swallow.icon"; + + images { + image: "00_body_thumbnail_bg.png" COMP; + image: "b_gallery_select_btn.png" COMP; + } + + parts { + part { name: "bg"; + scale: 1; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "left_top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 2 2; + align: 0.0 0.0; + visible: 0; + rel1.to: "bg"; + rel2 { + relative: 0.0 0.0; + to: "bg"; + } + } + } + part { name: "right_bottom_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 2 2; + align: 1.0 1.0; + visible: 0; + rel1 { + relative: 1.0 1.0; + to: "bg"; + } + rel2.to: "bg"; + } + } + part { name: "item_bg"; + type: RECT; + description { state: "default" 0.0; + color: 8 8 8 255; + rel1 { + relative: 1.0 1.0; + to: "left_top_padding"; + } + rel2 { + relative: 0.0 0.0; + to: "right_bottom_padding"; + } + } + } + part { name: "selected_frame"; + type: IMAGE; + description { state: "default" 0.0; + min: 173 173; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + } + image.normal: "settings_wallpaper_selected.png"; + visible: 0; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "elm.swallow.icon.bg"; + type: RECT; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "right_bottom_padding"; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 0 0; + } + align: 0.5 0.5; + color: 33 33 33 255; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + rel1.offset: 3 3; + rel2.offset: -4 -4; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "right_bottom_padding"; + rel1 { + relative: 0.0 0.0; + to: "item_bg"; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + to: "item_bg"; + offset: 0 0; + } + align: 0.5 0.5; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + rel1.offset: 3 3; + rel2.offset: -4 -4; + } + } + part { name: "selected_bg"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 128; + visible: 0; + rel1.to: "elm.swallow.icon"; + rel2.to: "elm.swallow.icon"; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "selected_check"; + type: IMAGE; + description { state: "default" 0.0; + color_class: "AO017"; + visible: 0; + rel1.to: "elm.swallow.icon"; + rel2.to: "elm.swallow.icon"; + image.normal: "b_gallery_select_btn.png"; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { name: "selected_enabled"; + signal: "selected,enabled"; + source: "*"; + action: STATE_SET "selected" 0.0; + target: "selected_frame"; + target: "elm.swallow.icon"; + target: "selected_bg"; + target: "selected_check"; + target: "elm.swallow.icon.bg"; + } + program { name: "selected_disabled"; + signal: "selected,disabled"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "selected_frame"; + target: "elm.swallow.icon"; + target: "selected_bg"; + target: "selected_check"; + target: "elm.swallow.icon.bg"; + } + } + } \ No newline at end of file diff --git a/data/changeable/groups/genlist_layout.edc b/data/changeable/groups/genlist_layout.edc new file mode 100755 index 0000000..19842dd --- /dev/null +++ b/data/changeable/groups/genlist_layout.edc @@ -0,0 +1,240 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting/genlist/layout"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color_class: B011; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { + name: "elm.genlist"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + } +} + +group { name: "setting/genlist/2button-layout"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color_class : B011; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { + name: "elm.genlist"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + offset: 0 -87; + } + } + } + part{ name:"btn.left"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: -1 85; + rel1 { + to: "bg"; + relative: 0.0 1.0; + offset: 0 -85; + } + rel2 { + to: "bg"; + relative: 0.5 1.0; + offset: -1 0; + } + } + } + part{ name:"btn.right"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: -1 85; + rel1 { + to: "bg"; + relative: 0.5 1.0; + offset: 1 -85; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + } + } + } + } +} + +group { name: "setting/genlist/1button-layout"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color_class : B011; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { + name: "elm.genlist"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + offset: 0 -87; + } + } + } + part{ name:"btn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: -1 85; + rel1 { + to: "bg"; + relative: 0.0 1.0; + offset: 0 -85; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + offset: -1 0; + } + } + } + } +} + +group { name: "setting/genlist/2button-gallery-layout"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 0 0 0 255; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { + name: "elm.genlist"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + offset: 3 2; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + offset: -3 -85; + } + } + } + part{ name:"btn.left"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: -1 85; + rel1 { + to: "bg"; + relative: 0.0 1.0; + offset: 0 -85; + } + rel2 { + to: "bg"; + relative: 0.5 1.0; + offset: -1 0; + } + } + } + part{ name:"btn.right"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: -1 85; + rel1 { + to: "bg"; + relative: 0.5 1.0; + offset: 1 -85; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + } + } + } + } +} diff --git a/data/changeable/groups/genlist_macro.edc b/data/changeable/groups/genlist_macro.edc new file mode 100644 index 0000000..2cf2851 --- /dev/null +++ b/data/changeable/groups/genlist_macro.edc @@ -0,0 +1,1973 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * vim:ts=3 +*/ + +//****************************************************************************// +// ***************** EDJE description have 24 patterns **********************// + //**************************************************************************// +// ------------------ +// | --> HERE +// ------------------ + #define DESC_FROM_L( PARAM ) \ + description { state: "default" 0.0;\ + fixed: 1 0; \ + align: 0.0 0.5; \ + rel2.relative: 0.0 1.0; \ + PARAM\ + } + +// ------------------ +// HERE <-- | +// ------------------ + #define DESC_FROM_R( PARAM ) \ + description { state: "default" 0.0;\ + fixed: 1 0; \ + align: 1.0 0.5; \ + rel1.relative: 1 0; \ + PARAM\ + } + +// ---------- +// | HERE | +// ---------- +// | | +// ---------- + #define DESC_FROM_T( PARAM ) \ + description { state: "default" 0.0;\ + fixed: 0 1; \ + align: 0.5 0.0; \ + rel2.relative: 1.0 0.0; \ + PARAM\ + } + +// ---------- +// | HERE | +// ---------- +// | | +// ---------- + #define DESC_FROM_B( PARAM ) \ + description { state: "default" 0.0;\ + fixed: 0 1; \ + rel1.relative: 0.0 1.0; \ + align: 0.5 1.0; \ + PARAM\ + } + +// ------------------ +// | PART == HERE | +// ------------------ + #define DESC_TO( PART, PARAM ) \ + description { state: "default" 0.0;\ + rel1 { \ + relative: 0 0; \ + to: PART; \ + }\ + rel2 {\ + relative: 1 1;\ + to: PART; \ + }\ + PARAM\ + } + +// | TOP | +// --------------------- +// LEFT | HERE | RIGHT +// --------------------- +// | BOTTOM | +#define DESC_LRTB( LEFT, RIGHT, TOP, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + rel1 { \ + relative: 1 1; \ + to_x: LEFT; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 0 0;\ + to_x: RIGHT;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// --------------------- +// LEFT |--> HERE +// --------------------- +#define DESC_L( LEFT, PARAM ) \ + description { state: "default" 0.0;\ + align: 0 0.5; \ + fixed: 1 0; \ + rel1 { \ + relative: 1 0; \ + to_x: LEFT; \ + }\ + rel2 { \ + relative: 1 1;\ + to_x: LEFT; \ + }\ + PARAM\ + } + +// --------------------- +// HERE <--| RIGHT +// --------------------- +#define DESC_R( RIGHT, PARAM ) \ + description { state: "default" 0.0;\ + align: 1 0.5; \ + fixed: 1 0; \ + rel1 { \ + relative: 0 0; \ + to_x: RIGHT; \ + }\ + rel2 {\ + relative: 0 1;\ + to_x: RIGHT; \ + }\ + PARAM\ + } + +// -------------------------- +// LEFT |--> HERE <--| RIGHT +// -------------------------- +#define DESC_LR( LEFT, RIGHT, PARAM ) \ + description { state: "default" 0.0;\ + rel1 { \ + relative: 1 0; \ + to_x: LEFT; \ + }\ + rel2 {\ + relative: 0 1;\ + to_x: RIGHT;\ + }\ + PARAM\ + } + +// | TOP | +// ----------------- +// | HERE <--| RIGHT +// ----------------- +// | BOTTOM | +#define DESC_RTB( RIGHT, TOP, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 1 0.5;\ + rel1 { \ + relative: 0 1; \ + to_x: RIGHT; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 0 0;\ + to_x: RIGHT;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// LEFT | HERE | RIGHT +// --------------------- +// | BOTTOM | +#define DESC_LRB( LEFT, RIGHT, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 0.5 1;\ + rel1 { \ + relative: 1 0; \ + to_x: LEFT; \ + to_y: BOTTOM; \ + }\ + rel2 {\ + relative: 0 0;\ + to_x: RIGHT;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// | TOP | +// --------------------- +// LEFT | HERE | RIGHT +#define DESC_LRT( LEFT, RIGHT, TOP, PARAM ) \ + description { state: "default" 0.0;\ + align: 0.5 0;\ + rel1 { \ + relative: 1 1; \ + to_x: LEFT; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 0 1;\ + to_x: RIGHT;\ + to_y: TOP;\ + }\ + PARAM\ + } + +// | TOP | +// --------------------- +// LEFT | --> HERE | +#define DESC_LT( LEFT, TOP, PARAM ) \ + description { state: "default" 0.0;\ + align: 0 0;\ + rel1 { \ + relative: 1 1; \ + to_x: LEFT; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 1 1;\ + to_x: LEFT;\ + to_y: TOP;\ + }\ + PARAM\ + } + +// LEFT | --> HERE | +// --------------------- +// | BOTTOM | +#define DESC_LB( LEFT, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 0 1;\ + rel1 { \ + relative: 1 0; \ + to_x: LEFT; \ + to_y: BOTTOM; \ + }\ + rel2 {\ + relative: 1 0;\ + to_x: LEFT;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// | TOP | +// --------------------- +// LEFT |--> HERE | +// --------------------- +// | BOTTOM | +#define DESC_LTB( LEFT, TOP, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 0 0.5;\ + rel1 { \ + relative: 1 1; \ + to_x: LEFT; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 1 0;\ + to_x: LEFT;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// | TOP | +// --------------------- +// | HERE <--| RIGHT +#define DESC_RT( RIGHT, TOP, PARAM ) \ + description { state: "default" 0.0;\ + align: 1 0;\ + rel1 { \ + relative: 0 1; \ + to_x: RIGHT; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 0 1;\ + to_x: RIGHT;\ + to_y: TOP;\ + }\ + PARAM\ + } + +// | HERE <-- | RIGHT +// --------------------- +// | BOTTOM | +#define DESC_RB( RIGHT, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 1 1;\ + rel1 { \ + relative: 0 0; \ + to_x: RIGHT; \ + to_y: BOTTOM; \ + }\ + rel2 {\ + relative: 0 0;\ + to_x: RIGHT;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// | TOP | +// ---------- +// | HERE | +// ---------- +// | BOTTOM | +#define DESC_TB( TOP, BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 0.5 0.5;\ + rel1 { \ + relative: 0 1; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 1 0;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +// | TOP | +// ---------- +// | HERE | +// ---------- +#define DESC_T( TOP, PARAM ) \ + description { state: "default" 0.0;\ + align: 0.5 0.0;\ + rel1 { \ + relative: 0 1; \ + to_y: TOP; \ + }\ + rel2 {\ + relative: 1 1;\ + to_y: TOP;\ + }\ + PARAM\ + } + +// ---------- +// | HERE | +// ---------- +// | BOTTOM | +#define DESC_B( BOTTOM, PARAM ) \ + description { state: "default" 0.0;\ + align: 0.5 1.0;\ + rel1 { \ + relative: 0 0; \ + to_y: BOTTOM; \ + }\ + rel2 {\ + relative: 1 0;\ + to_y: BOTTOM;\ + }\ + PARAM\ + } + +//****************************************************************************// +//******************************* Part Macros ********************************// +//****************************************************************************// +#define PART(TYPE, NAME, DESCRIPION) \ + part { name: NAME; \ + scale: 1; \ + type: TYPE; \ + DESCRIPION \ + } + +//****************************************************************************// +//**************************** Genlist Macros ********************************// +//****************************************************************************// + +#define PROLOG_LIST \ + data.item: "treesize" 0; \ + data.item: "flips" "elm.flip.icon elm.flip.content"; \ + +#define PART_LIST_BG \ + PART(RECT, "bg_clip", \ + mouse_events: 0; \ + description { state: "default" 0.0; } \ + description { state: "decorate" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "reorder" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "decorate_reorder" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + ) \ + PART(RECT, "bg", \ + clip_to: "bg_clip"; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "selected" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0211D"; \ + } \ + ) + +#define PART_LIST_BOTTOMLINE \ + PART(RECT, "bottom_line_clip", \ + description { state: "default" 0.0; } \ + description { state: "hide" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "decorate" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "reorder" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "decorate_reorder" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "flipped" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + ) \ + PART(RECT, "bottom_line", \ + mouse_events: 0; \ + clip_to: "bottom_line_clip"; \ + description { state: "default" 0.0; \ + min: 0 1; \ + max: -1 1; \ + fixed: 0 1; \ + align: 0.5 1; \ + color_class: "B0222"; \ + rel1.offset: -1 -1; \ + } \ + ) + +#define PART_LIST_BOTTOMLINE_OFF \ + PART(RECT, "bottom_line_clip", \ + description { state: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "hide" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + ) \ + PART(RECT, "bottom_line", \ + description { state: "default" 0.0; \ + visible: 0; \ + } \ + ) + +//**************************** Genlist PADDING *******************************// +#define DESC_LIST_PADDINGS \ + description { state: "decorate" 0.0; \ + inherit: "default" 0.0; \ + min: 0 0; \ + max: 0 0; \ + } \ + description { state: "decorate_reorder" 0.0; \ + inherit: "default" 0.0; \ + min: 0 0; \ + max: 0 0; \ + } \ + description { state: "reorder" 0.0; \ + inherit: "default" 0.0; \ + min: 32 0; \ + max: 32 -1; \ + } + +#define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \ + PART(SWALLOW, "elm.swallow.pad", \ + mouse_events: 0; \ + DESC_FROM_L( ; ) \ + ) \ + PART(SWALLOW, "elm.swallow.colorbar", \ + mouse_events: 0; \ + DESC_L("elm.swallow.pad", ) \ + ) \ + PART(SPACER, "elm.padding.left", \ + DESC_L("elm.swallow.pad", \ + min: LEFT_SIZE 0; \ + max: LEFT_SIZE -1; \ + ) \ + ) \ + PART(SPACER, "elm.padding.right", \ + DESC_FROM_R( \ + min: RIGHT_SIZE 0; \ + max: RIGHT_SIZE -1; \ + ) \ + description { state: "decorate" 0.0; \ + inherit: "default" 0.0; \ + min: 0 0; \ + max: 0 0; \ + } \ + description { state: "decorate_reorder" 0.0; \ + inherit: "default" 0.0; \ + min: 0 0; \ + max: 0 0; \ + } \ + description { state: "reorder" 0.0; \ + inherit: "default" 0.0; \ + min: 32 0; \ + max: 32 -1; \ + } \ + ) \ + PART(SPACER, "elm.padding.top", \ + DESC_FROM_T( \ + min: 0 TOP_SIZE; \ + max: -1 TOP_SIZE; \ + ) \ + ) \ + PART(SPACER, "elm.padding.bottom", \ + DESC_FROM_B( \ + min: 0 BOTTOM_SIZE; \ + max: -1 BOTTOM_SIZE; \ + ) \ + ) + +//*************************** Genlist Programs ****************************// +#define PROGRAM_LIST_DEFAULT( TARGET ) \ + program { name: "default"; \ + signal: "elm,state,default"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + TARGET \ + } \ + +#define PROGRAM_LIST_DISABLE( TARGET ) \ + program { name: "enabled"; \ + signal: "elm,state,enabled"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + TARGET \ + } \ + program { name: "disabled"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + action: STATE_SET "disabled" 0.0; \ + TARGET \ + } + +#define PROGRAM_LIST_SELECT( TARGET ) \ + program { name: "selected"; \ + signal: "elm,state,selected"; \ + source: "elm"; \ + action: STATE_SET "selected" 0.0; \ + TARGET \ + } \ + program { name: "unselected"; \ + signal: "elm,state,unselected"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + TARGET \ + } + +#define PROGRAM_LIST_SOUND \ + program { name: "play_sound"; \ + signal: "elm,state,clicked"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"play_sample"); \ + } \ + } \ + program { \ + name: "play_sample"; \ + action: RUN_PLUGIN "touch_sound"; \ + } + +#define PROGRAM_LIST_FOCUS \ + program { name: "focused"; \ + signal: "elm,state,focused"; \ + source: "elm"; \ + action: STATE_SET "focused" 0.0; \ + target: "focus_part"; \ + } \ + program { name: "unfocused"; \ + signal: "elm,state,unfocused"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "focus_part"; \ + } + +#define PROGRAM_LIST_FLIP \ + program { name: "flip_enabled"; \ + signal: "elm,state,flip,enabled"; \ + source: "elm"; \ + transition: DECELERATE 0.5; \ + action: STATE_SET "flipped" 0.0; \ + target: "elm.flip.content"; \ + target: "elm.flip.icon"; \ + } \ + program { name: "flip_disabled"; \ + signal: "elm,state,flip,disabled"; \ + source: "elm"; \ + transition: DECELERATE 0.5; \ + action: STATE_SET "default" 0.0; \ + target: "elm.flip.content"; \ + target: "elm.flip.icon"; \ + } \ + program { name: "flip_enabled_bg"; \ + signal: "elm,state,flip,enabled"; \ + source: "elm"; \ + action: STATE_SET "flipped" 0.0; \ + target: "elm.flip.bg"; \ + } \ + program { name: "flip_disabled_bg"; \ + signal: "elm,state,flip,disabled"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "elm.flip.bg"; \ + } + +#define PROGRAM_LIST_DECORATE( TARGET ) \ + program { name: "decorate_enabled_effect_ef"; \ + signal: "elm,state,decorate,enabled,effect";\ + source: "elm";\ + action: STATE_SET "decorate" 0.0;\ + TARGET \ + }\ + program { name: "decorate_disabled_effect_ef";\ + signal: "elm,state,decorate,disabled,effect";\ + source: "elm";\ + action: STATE_SET "default" 0.0;\ + TARGET \ + } \ + program { name: "decorate_enabled_ef";\ + signal: "elm,state,decorate,enabled";\ + source: "elm";\ + action: STATE_SET "decorate" 0.0;\ + TARGET \ + }\ + program { name: "decorate_disabled_ef";\ + signal: "elm,state,decorate,disabled";\ + source: "elm";\ + action: STATE_SET "default" 0.0;\ + TARGET \ + } + +#define PROGRAM_LIST_DECORATE_FX( TARGET ) \ + program { name: "decorate_enabled_effect_ef"; \ + signal: "elm,state,decorate,enabled,effect";\ + source: "elm";\ + transition: DECELERATE 0.5;\ + action: STATE_SET "decorate" 0.0;\ + TARGET \ + }\ + program { name: "decorate_disabled_effect_ef";\ + signal: "elm,state,decorate,disabled,effect";\ + source: "elm";\ + transition: ACCELERATE 0.5;\ + action: STATE_SET "default" 0.0;\ + TARGET \ + } \ + program { name: "decorate_enabled_ef";\ + signal: "elm,state,decorate,enabled";\ + source: "elm";\ + action: STATE_SET "decorate" 0.0;\ + TARGET \ + }\ + program { name: "decorate_disabled_ef";\ + signal: "elm,state,decorate,disabled";\ + source: "elm";\ + action: STATE_SET "default" 0.0;\ + TARGET \ + } + +#define PROGRAM_LIST_BOTTOMLINE \ + program { name : "hide_bottomline"; \ + signal: "elm,state,bottomline,hide"; \ + source: ""; \ + action: STATE_SET "hide" 0.0; \ + target: "bottom_line_clip"; \ + } \ + program { name : "show_bottomline"; \ + signal: "elm,state,bottomline,show"; \ + source: ""; \ + action: STATE_SET "default" 0.0; \ + target: "bottom_line_clip"; \ + } \ + + +#define PROGRAMS_LIST( TARGET ) \ + programs { \ + PROGRAM_LIST_DEFAULT( TARGET \ + target: "bg"; \ + target: "bg_clip"; \ + target: "bottom_line"; \ + target: "bottom_line_clip"; \ + target: "elm.padding.left"; \ + target: "elm.padding.right"; \ + ) \ + PROGRAM_LIST_DISABLE( TARGET \ + target: "bg"; \ + ) \ + PROGRAM_LIST_SELECT( TARGET \ + target: "bg"; \ + ) \ + PROGRAM_LIST_SOUND \ + PROGRAM_LIST_DECORATE( \ + target: "bg"; \ + target: "bg_clip"; \ + target: "bottom_line"; \ + target: "bottom_line_clip"; \ + target: "elm.padding.left"; \ + target: "elm.padding.right"; \ + ) \ + PROGRAM_LIST_BOTTOMLINE \ + } + +//******************************* Genlist TEXT ********************************// +#define PARAM_TEXT(STYLE, PARAM) \ + text { \ + min: 0 1; \ + style: STYLE; \ + PARAM \ + } + +#define DESCRIPIONS_TEXT(DISABLED, SELECTED) \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + text.style: DISABLED; \ + } \ + description { state: "selected" 0.0; \ + inherit: "default" 0.0; \ + text.style: SELECTED; \ + } + +//******************************* Genlist SWIPE ********************************// +#define SWIPE_TRANSIT SIN_FAC 0.667 0.8 + +#define SWIPE_THRESH_X 60 +#define SWIPE_THRESH_Y 30 + +#define SWIPE_OVERLAP_SIZE 100 +#define SWIPE_ICON_SIZE 64 100 + +// state: normal(0)->start,right( 1)->rollback,right ( 3), swipe,right ( 2)-> normal(0) +// ->start,left (-1)->rollback,right (-3), swipe,right (-2)-> +#define SCRIPTS_LIST_SWIPE \ + script { \ + public _state; \ + public x1, y1; \ + public cleanup() { \ + set_int(_state, 0); \ + set_int(x1, 0); \ + set_int(y1, 0); \ + set_drag(PART:"drag_part", 0, 0); \ + set_state(PART:"drag_part", "default", 0.0); \ + set_state(PART:"drag_part_left", "default", 0.0); \ + set_state(PART:"drag_part_right", "default", 0.0); \ + set_state(PART:"elm.text.swipe.left", "default", 0.0); \ + set_state(PART:"elm.text.swipe.right", "default", 0.0); \ + set_state(PART:"elm.icon.swipe.left", "default", 0.0); \ + set_state(PART:"elm.icon.swipe.right", "default", 0.0); \ + set_state(PART:"swipe_temp_disabler", "default", 0.0); \ + } \ + } + +#define IMAGES_LIST_SWIPE \ + image : "b_list_swipe_right.#.png" COMP; \ + image : "b_list_swipe_left.#.png" COMP; + +#define PARTS_LIST_SWIPE \ + part { name: "drag_part"; \ + type: RECT; \ + scale: 1; \ + repeat_events: 1; \ + dragable { \ + x: 1 1 0; \ + y: 0 0 0; \ + } \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1.offset: -SWIPE_OVERLAP_SIZE 0; \ + rel2.offset: SWIPE_OVERLAP_SIZE 0; \ + } \ + description { state: "disable" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + visible: 0; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + description { state: "right_end" 0.0; \ + inherit: "start_right"; \ + rel1.relative: 1 0; \ + } \ + description { state: "right_rollback" 0.0; \ + inherit: "start_right" 0.0; \ + rel1.relative: -1 0; \ + color: 0 0 0 0; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + description { state: "left_end" 0.0; \ + inherit: "start_left" 0.0; \ + rel2.relative: 0 1; \ + } \ + description { state: "left_rollback" 0.0; \ + inherit: "start_left" 0.0; \ + rel2.relative: 2 1; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "drag_part_left"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1 { \ + relative: -999 0; \ + } \ + rel2 { \ + to_x: "drag_part"; \ + relative: 0 1; \ + offset: SWIPE_OVERLAP_SIZE 0; \ + } \ + image { \ + normal: "b_list_swipe_left.#.png"; \ + } \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0242"; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0242"; \ + } \ + } \ + part { name: "drag_part_right"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1 { \ + to_x: "drag_part"; \ + relative: 1 0; \ + offset: -SWIPE_OVERLAP_SIZE 0; \ + } \ + rel2 { \ + relative: 999 1; \ + } \ + image { \ + normal: "b_list_swipe_right.#.png"; \ + } \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0241"; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0241"; \ + } \ + } \ + part { name: "swipe_temp_disabler"; \ + type: RECT; \ + scale:1; \ + repeat_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { state: "enable" 0.0; \ + inherit: "default"; \ + visible: 1; \ + } \ + } \ + part { name: "elm.icon.swipe.left"; \ + type: SWALLOW; \ + clip_to: "elm.icon.swipe.clip"; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + rel1 { \ + to_x: "elm.padding.left"; \ + relative: 1 0; \ + } \ + rel2 { \ + to_x: "elm.padding.right"; \ + relative: 1 1; \ + } \ + align: 0 0.5; \ + fixed: 1 1; \ + min: SWIPE_ICON_SIZE; \ + max: SWIPE_ICON_SIZE; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 250 250 250 255; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + } \ + description { state: "right_rollback" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "left_rollback" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "elm.icon.swipe.right"; \ + type: SWALLOW; \ + clip_to: "elm.icon.swipe.clip"; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + rel1 { \ + to_x: "elm.padding.right"; \ + relative: 0 0; \ + } \ + rel2 { \ + to_x: "elm.padding.right"; \ + relative: 0 1; \ + } \ + align: 1 0.5; \ + fixed: 1 1; \ + min: SWIPE_ICON_SIZE; \ + max: SWIPE_ICON_SIZE; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 250 250 250 255; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + } \ + description { state: "right_rollback" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + description { state: "left_rollback" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "elm.icon.swipe.clip"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + color_class: "F071"; \ + } \ + } \ + part { name: "elm.text.swipe.left"; \ + type: TEXT; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel1 { \ + relative: 1 0; \ + to_x: "elm.icon.swipe.left"; \ + } \ + visible: 0; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default"; \ + visible: 1; \ + align: 0.5 0.5; \ + color_class: "T025"; \ + text { \ + align: 0.5 0.5; \ + min: 0 1; \ + text_class: "T025"; \ + } \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + } \ + } \ + part { name: "elm.text.swipe.right"; \ + type: TEXT; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel2 { \ + relative: 0 1; \ + to_x: "elm.icon.swipe.right"; \ + } \ + visible: 0; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + align: 0.5 0.5; \ + color_class: "T025"; \ + text { \ + align: 0.5 0.5; \ + min: 0 1; \ + text_class: "T025"; \ + text: "Call"; \ + } \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + } \ + } + +#define PARTS_LIST_SWIPE_RIGHT \ + part { name: "drag_part"; \ + type: RECT; \ + scale: 1; \ + repeat_events: 1; \ + dragable { \ + x: 1 1 0; \ + y: 0 0 0; \ + } \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1.offset: -SWIPE_OVERLAP_SIZE 0; \ + rel2.offset: SWIPE_OVERLAP_SIZE 0; \ + } \ + description { state: "disable" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + description { state: "right_end" 0.0; \ + inherit: "start_right"; \ + rel1.relative: 1 0; \ + } \ + description { state: "right_rollback" 0.0; \ + inherit: "start_right" 0.0; \ + rel1.relative: -1 0; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "drag_part_left"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1 { \ + relative: -999 0; \ + } \ + rel2 { \ + to_x: "drag_part"; \ + relative: 0 1; \ + offset: SWIPE_OVERLAP_SIZE 0; \ + } \ + image { \ + normal: "b_list_swipe_left.#.png"; \ + } \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0242"; \ + } \ + } \ + part { name: "drag_part_right"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1 { \ + to_x: "drag_part"; \ + relative: 1 0; \ + offset: -SWIPE_OVERLAP_SIZE 0; \ + } \ + rel2 { \ + relative: 999 1; \ + } \ + image { \ + normal: "b_list_swipe_right.#.png"; \ + } \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + } \ + part { name: "swipe_temp_disabler"; \ + type: RECT; \ + scale:1; \ + repeat_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { state: "enable" 0.0; \ + inherit: "default"; \ + visible: 1; \ + } \ + } \ + part { name: "elm.icon.swipe.right"; \ + type: SWALLOW; \ + clip_to: "elm.icon.swipe.clip"; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + rel1 { \ + to_x: "elm.padding.right"; \ + relative: 0 0; \ + } \ + rel2 { \ + to_x: "elm.padding.right"; \ + relative: 0 1; \ + } \ + align: 1 0.5; \ + fixed: 1 1; \ + min: SWIPE_ICON_SIZE; \ + max: SWIPE_ICON_SIZE; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 250 250 250 255; \ + } \ + description { state: "right_rollback" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "elm.icon.swipe.clip"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + color_class: "F071"; \ + } \ + } \ + part { name: "elm.text.swipe.right"; \ + type: TEXT; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel2 { \ + relative: 0 1; \ + to_x: "elm.icon.swipe.right"; \ + } \ + visible: 0; \ + } \ + description { state: "start_right" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + align: 0.5 0.5; \ + color_class: "T025"; \ + text { \ + align: 0.5 0.5; \ + min: 0 1; \ + text_class: "T025"; \ + text: "Call"; \ + } \ + } \ + } + +#define PARTS_LIST_SWIPE_LEFT \ + part { name: "drag_part"; \ + type: RECT; \ + scale: 1; \ + repeat_events: 1; \ + dragable { \ + x: 1 1 0; \ + y: 0 0 0; \ + } \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1.offset: -SWIPE_OVERLAP_SIZE 0; \ + rel2.offset: SWIPE_OVERLAP_SIZE 0; \ + } \ + description { state: "disable" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + description { state: "left_end" 0.0; \ + inherit: "start_left" 0.0; \ + rel2.relative: 0 1; \ + } \ + description { state: "left_rollback" 0.0; \ + inherit: "start_left" 0.0; \ + rel2.relative: 2 1; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "drag_part_left"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1 { \ + relative: -999 0; \ + } \ + rel2 { \ + to_x: "drag_part"; \ + relative: 0 1; \ + offset: SWIPE_OVERLAP_SIZE 0; \ + } \ + image { \ + normal: "b_list_swipe_left.#.png"; \ + } \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B041P"; \ + } \ + } \ + part { name: "drag_part_right"; \ + type: IMAGE; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + color: 0 0 0 0; \ + rel1 { \ + to_x: "drag_part"; \ + relative: 1 0; \ + offset: -SWIPE_OVERLAP_SIZE 0; \ + } \ + rel2 { \ + relative: 999 1; \ + } \ + image { \ + normal: "b_list_swipe_right.#.png"; \ + } \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + color_class: "B0241"; \ + } \ + } \ + part { name: "swipe_temp_disabler"; \ + type: RECT; \ + scale:1; \ + repeat_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { state: "enable" 0.0; \ + inherit: "default"; \ + visible: 1; \ + } \ + } \ + part { name: "elm.icon.swipe.left"; \ + type: SWALLOW; \ + clip_to: "elm.icon.swipe.clip"; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + rel1 { \ + to_x: "elm.padding.left"; \ + relative: 1 0; \ + } \ + rel2 { \ + to_x: "elm.padding.right"; \ + relative: 1 1; \ + } \ + align: 0 0.5; \ + fixed: 1 1; \ + min: SWIPE_ICON_SIZE; \ + max: SWIPE_ICON_SIZE; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 250 250 250 255; \ + } \ + description { state: "left_rollback" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + } \ + } \ + part { name: "elm.icon.swipe.clip"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + color_class: "F071"; \ + } \ + } \ + part { name: "elm.text.swipe.left"; \ + type: TEXT; \ + scale: 1; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel1 { \ + relative: 1 0; \ + to_x: "elm.icon.swipe.left"; \ + } \ + visible: 0; \ + } \ + description { state: "start_left" 0.0; \ + inherit: "default"; \ + visible: 1; \ + align: 0.5 0.5; \ + color_class: "T025"; \ + text { \ + align: 0.5 0.5; \ + min: 0 1; \ + text_class: "T025"; \ + } \ + } \ + } \ + +#define PROGRAMS_LIST_SWIPE \ + program { name: "drag_up"; \ + signal: "mouse,up,1"; \ + source: "drag_part"; \ + script { \ + new x, y, w, h, ww, hh; \ + get_geometry(PART:"bg", x, y, ww, hh); \ + get_geometry(PART:"drag_part", x, y, w, h); \ + x = x + SWIPE_OVERLAP_SIZE; \ + if (get_int(_state) == 1) { \ + if (x >= (ww/2)) { \ + set_int(_state, 3); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + run_program(PROGRAM:"end_move_right"); \ + } else { \ + set_int(_state, 2); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + set_state(PART:"elm.text.swipe.right", "default", 0.0); \ + set_state(PART:"elm.text.swipe.left", "default", 0.0); \ + run_program(PROGRAM:"end_rollback_right"); \ + } \ + } else if (get_int(_state) == -1) { \ + if (-x >= (ww/2)) { \ + set_int(_state, -3); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + run_program(PROGRAM:"end_move_left"); \ + } else { \ + set_int(_state, -2); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + set_state(PART:"elm.text.swipe.right", "default", 0.0); \ + set_state(PART:"elm.text.swipe.left", "default", 0.0); \ + run_program(PROGRAM:"end_rollback_left"); \ + } \ + } else cleanup(); \ + } \ + } \ + program { name: "drag_down"; \ + signal: "mouse,down,1"; \ + source: "drag_part"; \ + script { \ + new x, y; \ + get_mouse(x, y); \ + set_int(_state, 0); \ + set_int(x1, x); \ + set_int(y1, y); \ + } \ + } \ + program { name: "drag"; \ + signal: "drag"; \ + source: "drag_part"; \ + script { \ + new x2, y2; \ + get_mouse(x2, y2); \ + if (((y2 - get_int(y1)) >= SWIPE_THRESH_Y) || \ + ((y2 - get_int(y1)) <= -SWIPE_THRESH_Y)) \ + return; \ + if (get_int(_state) == 0) { \ + if ((x2 - get_int(x1)) >= SWIPE_THRESH_X) { \ + emit("elm,swipe,start", ""); \ + set_int(_state, 1); \ + run_program(PROGRAM:"start_right"); \ + } else if ((x2 - get_int(x1)) <= -SWIPE_THRESH_X) { \ + emit("elm,swipe,start", ""); \ + set_int(_state, -1); \ + run_program(PROGRAM:"start_left"); \ + } \ + } else if (get_int(_state) == -1) { \ + if (x2 > get_int(x1)) { \ + set_int(_state, 1); \ + run_program(PROGRAM:"start_right"); \ + }\ + } else if (get_int(_state) == 1) { \ + if (x2 < get_int(x1)) { \ + set_int(_state, -1); \ + run_program(PROGRAM:"start_left"); \ + } \ + } \ + } \ + } \ + program { name: "start_right"; \ + action: STATE_SET "start_right" 0.0; \ + target: "elm.icon.swipe.right"; \ + target: "elm.icon.swipe.left"; \ + target: "elm.text.swipe.right"; \ + target: "elm.text.swipe.left"; \ + target: "drag_part"; \ + target: "drag_part_left"; \ + target: "drag_part_right"; \ + } \ + program { name: "start_left"; \ + action: STATE_SET "start_left" 0.0; \ + target: "elm.icon.swipe.right"; \ + target: "elm.icon.swipe.left"; \ + target: "elm.text.swipe.right"; \ + target: "elm.text.swipe.left"; \ + target: "drag_part"; \ + target: "drag_part_left"; \ + target: "drag_part_right"; \ + } \ + program { name: "end_move_right"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "right_end" 0.0; \ + target: "drag_part"; \ + after: "right_ender"; \ + } \ + program { name: "end_move_left"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "left_end" 0.0; \ + target: "drag_part"; \ + after: "left_ender"; \ + } \ + program { name: "end_rollback_right"; \ + action: STATE_SET "right_rollback" 0.0; \ + target: "elm.icon.swipe.right"; \ + target: "elm.icon.swipe.left"; \ + after: "end_rollback_right_transit"; \ + } \ + program { name: "end_rollback_right_transit"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "right_rollback" 0.0; \ + target: "drag_part"; \ + after: "rollback_ender"; \ + } \ + program { name: "end_rollback_left"; \ + action: STATE_SET "left_rollback" 0.0; \ + target: "elm.icon.swipe.right"; \ + target: "elm.icon.swipe.left"; \ + after: "end_rollback_left_transit"; \ + } \ + program { name: "end_rollback_left_transit"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "left_rollback" 0.0; \ + target: "drag_part"; \ + after: "rollback_ender"; \ + } \ + program { name: "right_ender"; \ + script { \ + emit("elm,swipe,stop,right", ""); \ + cleanup(); \ + } \ + } \ + program { name: "left_ender"; \ + script { \ + emit("elm,swipe,stop,left", ""); \ + cleanup(); \ + } \ + } \ + program { name: "rollback_ender"; \ + source: ""; \ + script { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + } \ + } \ + program { name: "swipe_revert"; \ + signal: "elm,swipe,revert"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + }\ + cleanup(); \ + } \ + } \ + program { name: "swipe_disable"; \ + signal: "elm,swipe,disabled"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + }\ + set_state(PART:"drag_part", "disable", 0.0); \ + } \ + } \ + program { name: "swipe_enable"; \ + signal: "elm,swipe,enabled"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + }\ + set_state(PART:"drag_part", "default", 0.0); \ + } \ + } \ + program { name: "swipe_default"; \ + signal: "elm,state,default"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"swipe_enable"); \ + } \ + } \ + program { name: "swipe_disable_state"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"swipe_disable"); \ + } \ + } \ + +#define PROGRAMS_LIST_SWIPE_RIGHT \ + program { name: "drag_up"; \ + signal: "mouse,up,1"; \ + source: "drag_part"; \ + script { \ + new x, y, w, h, ww, hh; \ + get_geometry(PART:"bg", x, y, ww, hh); \ + get_geometry(PART:"drag_part", x, y, w, h); \ + x = x + SWIPE_OVERLAP_SIZE; \ + if (get_int(_state) == 1) { \ + if (x >= (ww/2)) { \ + set_int(_state, 3); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + run_program(PROGRAM:"end_move_right"); \ + } else { \ + set_int(_state, 2); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + set_state(PART:"elm.text.swipe.right", "default", 0.0); \ + set_state(PART:"elm.text.swipe.left", "default", 0.0); \ + run_program(PROGRAM:"end_rollback_right"); \ + } \ + } else cleanup(); \ + } \ + } \ + program { name: "drag_down"; \ + signal: "mouse,down,1"; \ + source: "drag_part"; \ + script { \ + new x, y; \ + get_mouse(x, y); \ + set_int(_state, 0); \ + set_int(x1, x); \ + set_int(y1, y); \ + } \ + } \ + program { name: "drag"; \ + signal: "drag"; \ + source: "drag_part"; \ + script { \ + new x2, y2; \ + get_mouse(x2, y2); \ + if (((y2 - get_int(y1)) >= SWIPE_THRESH_Y) || \ + ((y2 - get_int(y1)) <= -SWIPE_THRESH_Y)) \ + return; \ + if (get_int(_state) == 0) { \ + if ((x2 - get_int(x1)) >= SWIPE_THRESH_X) { \ + emit("elm,swipe,start", ""); \ + set_int(_state, 1); \ + run_program(PROGRAM:"start_right"); \ + } \ + } \ + } \ + } \ + program { name: "start_right"; \ + action: STATE_SET "start_right" 0.0; \ + target: "elm.icon.swipe.right"; \ + target: "elm.text.swipe.right"; \ + target: "drag_part"; \ + target: "drag_part_left"; \ + target: "drag_part_right"; \ + } \ + program { name: "end_move_right"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "right_end" 0.0; \ + target: "drag_part"; \ + after: "right_ender"; \ + } \ + program { name: "end_rollback_right"; \ + action: STATE_SET "right_rollback" 0.0; \ + target: "elm.icon.swipe.right"; \ + after: "end_rollback_right_transit"; \ + } \ + program { name: "end_rollback_right_transit"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "right_rollback" 0.0; \ + target: "drag_part"; \ + after: "rollback_ender"; \ + } \ + program { name: "right_ender"; \ + script { \ + emit("elm,swipe,stop,right", ""); \ + cleanup(); \ + } \ + } \ + program { name: "rollback_ender"; \ + source: ""; \ + script { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + } \ + } \ + program { name: "swipe_revert"; \ + signal: "elm,swipe,revert"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + }\ + cleanup(); \ + } \ + } \ + program { name: "swipe_disable"; \ + signal: "elm,swipe,disabled"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + }\ + set_state(PART:"drag_part", "disable", 0.0); \ + } \ + } \ + program { name: "swipe_enable"; \ + signal: "elm,swipe,enabled"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + }\ + set_state(PART:"drag_part", "default", 0.0); \ + } \ + } \ + program { name: "swipe_default"; \ + signal: "elm,state,default"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"swipe_enable"); \ + } \ + } \ + program { name: "swipe_disable_state"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"swipe_disable"); \ + } \ + } \ + +#define PROGRAMS_LIST_SWIPE_LEFT \ + program { name: "drag_up"; \ + signal: "mouse,up,1"; \ + source: "drag_part"; \ + script { \ + new x, y, w, h, ww, hh; \ + get_geometry(PART:"bg", x, y, ww, hh); \ + get_geometry(PART:"drag_part", x, y, w, h); \ + x = x + SWIPE_OVERLAP_SIZE; \ + if (get_int(_state) == -1) { \ + if (-x >= (ww/2)) { \ + set_int(_state, -3); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + run_program(PROGRAM:"end_move_left"); \ + } else { \ + set_int(_state, -2); \ + set_state(PART:"swipe_temp_disabler", "enable", 0.0); \ + set_state(PART:"elm.text.swipe.left", "default", 0.0); \ + run_program(PROGRAM:"end_rollback_left"); \ + } \ + } else cleanup(); \ + } \ + } \ + program { name: "drag_down"; \ + signal: "mouse,down,1"; \ + source: "drag_part"; \ + script { \ + new x, y; \ + get_mouse(x, y); \ + set_int(_state, 0); \ + set_int(x1, x); \ + set_int(y1, y); \ + } \ + } \ + program { name: "drag"; \ + signal: "drag"; \ + source: "drag_part"; \ + script { \ + new x2, y2; \ + get_mouse(x2, y2); \ + if (((y2 - get_int(y1)) >= SWIPE_THRESH_Y) || \ + ((y2 - get_int(y1)) <= -SWIPE_THRESH_Y)) \ + return; \ + if (get_int(_state) == 0) { \ + if ((x2 - get_int(x1)) <= -SWIPE_THRESH_X) { \ + emit("elm,swipe,start", ""); \ + set_int(_state, -1); \ + run_program(PROGRAM:"start_left"); \ + } \ + } \ + } \ + } \ + program { name: "start_left"; \ + action: STATE_SET "start_left" 0.0; \ + target: "elm.icon.swipe.left"; \ + target: "elm.text.swipe.left"; \ + target: "drag_part"; \ + target: "drag_part_left"; \ + } \ + program { name: "end_move_left"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "left_end" 0.0; \ + target: "drag_part"; \ + after: "left_ender"; \ + } \ + program { name: "end_rollback_left"; \ + action: STATE_SET "left_rollback" 0.0; \ + target: "elm.icon.swipe.left"; \ + after: "end_rollback_left_transit"; \ + } \ + program { name: "end_rollback_left_transit"; \ + transition: SWIPE_TRANSIT; \ + action: STATE_SET "left_rollback" 0.0; \ + target: "drag_part"; \ + after: "rollback_ender"; \ + } \ + program { name: "left_ender"; \ + script { \ + emit("elm,swipe,stop,left", ""); \ + cleanup(); \ + } \ + } \ + program { name: "rollback_ender"; \ + source: ""; \ + script { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + } \ + } \ + program { name: "swipe_revert"; \ + signal: "elm,swipe,revert"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + }\ + cleanup(); \ + } \ + } \ + program { name: "swipe_disable"; \ + signal: "elm,swipe,disabled"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + }\ + set_state(PART:"drag_part", "disable", 0.0); \ + } \ + } \ + program { name: "swipe_enable"; \ + signal: "elm,swipe,enabled"; \ + source: ""; \ + script { \ + if (get_int(_state) != 0) { \ + emit("elm,swipe,stop", ""); \ + cleanup(); \ + }\ + set_state(PART:"drag_part", "default", 0.0); \ + } \ + } \ + program { name: "swipe_default"; \ + signal: "elm,state,default"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"swipe_enable"); \ + } \ + } \ + program { name: "swipe_disable_state"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"swipe_disable"); \ + } \ + } \ + + + +#define SCRIPTS_LIST_SWEEP \ + script { \ + public dir_right; \ + } + +#define PARTS_LIST_SWEEP \ + PART(RECT, "bg.sweep",\ + description { state: "default" 0.0;\ + color_class: "B0232";\ + rel1.relative: -1.0 0.0;\ + rel2.relative: 0.0 1.0;\ + visible: 0;\ + }\ + description { state: "default_r" 0.0;\ + inherit: "default" 0.0;\ + rel1.relative: 1.0 0.0;\ + rel2.relative: 2.0 1.0;\ + visible: 0;\ + }\ + description { state: "visible" 0.0;\ + inherit: "default" 0.0;\ + rel1.relative: 0.0 0.0;\ + rel2.relative: 1.0 1.0;\ + visible: 1;\ + }\ + )\ + PART(TEXTBLOCK, "elm.text.sweep",\ + description { state: "default" 0.0;\ + rel1.to_x: "bg.sweep";\ + rel2.to_x: "elm.divider.sweep.left.padding";\ + rel2.relative: 0.0 1.0;\ + PARAM_TEXT("list_sweep_style",)\ + visible: 0;\ + }\ + description { state: "visible" 0.0;\ + inherit: "default" 0.0;\ + visible: 1;\ + }\ + )\ + PART(SPACER, "elm.divider.sweep.left.padding",\ + DESC_R("elm.divider.sweep",\ + min: LIST_DIVIDER_PADDING_SIZE 0;\ + max: LIST_DIVIDER_PADDING_SIZE -1;\ + )\ + )\ + PART(SWALLOW, "elm.icon.sweep",\ + DESC_FROM_R(\ + min: BUTTON_DIVIDER_BTN_SIZE 0;\ + max: BUTTON_DIVIDER_BTN_SIZE -1;\ + rel1.to: "bg.sweep";\ + rel2.to: "bg.sweep";\ + visible: 0;\ + )\ + description { state: "visible" 0.0;\ + inherit: "default" 0.0;\ + visible: 1;\ + }\ + )\ + PART(RECT, "elm.divider.sweep",\ + DESC_R("elm.icon.sweep",\ + visible: 0;\ + align: 0.0 0.5;\ + min: 2 LIST_DIVIDER_HEIGHT;\ + max: 2 LIST_DIVIDER_HEIGHT;\ + color: 0 0 0 0; \ + )\ + description { state: "visible" 0.0;\ + inherit: "default" 0.0;\ + visible: 1;\ + }\ + ) + +#define PROGRAMS_LIST_SWEEP \ + program { name: "sweep_default"; \ + signal: "elm,state,default"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0;\ + target: "bg.sweep";\ + target: "elm.icon.sweep";\ + target: "elm.text.sweep";\ + target: "elm.divider.sweep";\ + } \ + program { name: "sweep_right_show";\ + signal: "elm,state,sweep,right";\ + source: "";\ + script {\ + set_int(dir_right, 1);\ + set_state(PART:"bg.sweep", "default", 0.0);\ + run_program(PROGRAM:"sweep_show");\ + }\ + }\ + program { name: "sweep_left_show";\ + signal: "elm,state,sweep,left";\ + source: "";\ + script {\ + set_int(dir_right, 0);\ + set_state(PART:"bg.sweep", "default_r", 0.0);\ + run_program(PROGRAM:"sweep_show");\ + }\ + }\ + program { name: "sweep_show";\ + action: STATE_SET "visible" 0.0;\ + transition: DECELERATE 0.5;\ + target: "bg.sweep";\ + target: "elm.icon.sweep";\ + target: "elm.text.sweep";\ + target: "elm.divider.sweep";\ + }\ + program { name: "sweep_hide";\ + signal: "elm,state,sweep,hide";\ + source: "";\ + script {\ + if (get_int(dir_right)) {\ + run_program(PROGRAM:"sweep_left_hide");\ + } else {\ + run_program(PROGRAM:"sweep_right_hide");\ + }\ + }\ + }\ + program { name: "sweep_left_hide"; \ + action: STATE_SET "default" 0.0;\ + transition: DECELERATE 0.5;\ + target: "bg.sweep";\ + target: "elm.icon.sweep";\ + target: "elm.text.sweep";\ + target: "elm.divider.sweep";\ + }\ + program { name: "sweep_right_hide"; \ + action: STATE_SET "default_r" 0.0;\ + transition: DECELERATE 0.5;\ + target: "bg.sweep";\ + target: "elm.icon.sweep";\ + target: "elm.text.sweep";\ + target: "elm.divider.sweep";\ + } diff --git a/data/changeable/groups/genlist_setting.edc b/data/changeable/groups/genlist_setting.edc new file mode 100644 index 0000000..b611c5c --- /dev/null +++ b/data/changeable/groups/genlist_setting.edc @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * vim:ts=3 +*/ +#include "HVGA-inc.edc" +#include "genlist_macro.edc" + +group { name: "elm/genlist/item/multiline.2text.1icon/default"; + + PROLOG_LIST + data.item: "texts" "elm.text.1 elm.text.2"; + data.item: "contents" "elm.swallow.colorbar elm.icon"; + + parts { + PART_LIST_BG + PART_LIST_PADDINGS( + LIST_PADDING_LEFT_SIZE, LIST_PADDING_R_ICON_RIGHT_SIZE, + LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE + ) + PART_LIST_BOTTOMLINE + PART(TEXTBLOCK, "elm.text.1", + DESC_LRTB("elm.padding.left", "elm.padding.icon.left", "elm.padding.top", "elm.padding.text1.bottom", + min: 0 0; + fixed: 1 0; + PARAM_TEXT("list_text_main_normal",) + ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press") + ) + PART(SPACER, "elm.padding.text1.bottom", + DESC_T("elm.text.1", + min: 0 4; max: -1 4; + ) + ) + PART(TEXTBLOCK, "elm.text.2", + DESC_LRTB("elm.padding.left", "elm.padding.icon.left", "elm.padding.text1.bottom", "elm.padding.bottom", + min: 0 0; + fixed: 1 0; + PARAM_TEXT("list_text_sub_multiline_normal",) + ) DESCRIPIONS_TEXT("list_text_sub_multiline_dim", "list_text_sub_multiline_press") + ) + PART(SPACER, "elm.padding.icon.left", + DESC_R("elm.icon", + min: LIST_PADDING_R_ICON_DEFAULT_SIZE 0; max: LIST_PADDING_R_ICON_DEFAULT_SIZE -1; + ) + ) + PART(SWALLOW, "elm.icon", + DESC_RTB("elm.padding.right", "elm.padding.top", "elm.padding.bottom", + ) + ) + } + PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2"; + target: "elm.icon"; ) +} + diff --git a/data/changeable/groups/images/00_body_thumbnail_bg.png b/data/changeable/groups/images/00_body_thumbnail_bg.png new file mode 100644 index 0000000..842640e Binary files /dev/null and b/data/changeable/groups/images/00_body_thumbnail_bg.png differ diff --git a/data/changeable/groups/images/b_gallery_icon_select_all.png b/data/changeable/groups/images/b_gallery_icon_select_all.png new file mode 100644 index 0000000..cad2deb Binary files /dev/null and b/data/changeable/groups/images/b_gallery_icon_select_all.png differ diff --git a/data/changeable/groups/images/b_gallery_select_btn.png b/data/changeable/groups/images/b_gallery_select_btn.png new file mode 100644 index 0000000..f875587 Binary files /dev/null and b/data/changeable/groups/images/b_gallery_select_btn.png differ diff --git a/data/changeable/groups/images/b_setting_accessibility.png b/data/changeable/groups/images/b_setting_accessibility.png new file mode 100755 index 0000000..45eacb7 Binary files /dev/null and b/data/changeable/groups/images/b_setting_accessibility.png differ diff --git a/data/changeable/groups/images/b_settings_accessibility.png b/data/changeable/groups/images/b_settings_accessibility.png new file mode 100644 index 0000000..3cec04a Binary files /dev/null and b/data/changeable/groups/images/b_settings_accessibility.png differ diff --git a/data/changeable/groups/images/b_settings_bluetooth.png b/data/changeable/groups/images/b_settings_bluetooth.png new file mode 100644 index 0000000..d9140b4 Binary files /dev/null and b/data/changeable/groups/images/b_settings_bluetooth.png differ diff --git a/data/changeable/groups/images/b_settings_call.png b/data/changeable/groups/images/b_settings_call.png new file mode 100644 index 0000000..aabca68 Binary files /dev/null and b/data/changeable/groups/images/b_settings_call.png differ diff --git a/data/changeable/groups/images/b_settings_change_clock.png b/data/changeable/groups/images/b_settings_change_clock.png new file mode 100644 index 0000000..b19002e Binary files /dev/null and b/data/changeable/groups/images/b_settings_change_clock.png differ diff --git a/data/changeable/groups/images/b_settings_connect_device.png b/data/changeable/groups/images/b_settings_connect_device.png new file mode 100644 index 0000000..fa53d32 Binary files /dev/null and b/data/changeable/groups/images/b_settings_connect_device.png differ diff --git a/data/changeable/groups/images/b_settings_connections.png b/data/changeable/groups/images/b_settings_connections.png new file mode 100644 index 0000000..f857d18 Binary files /dev/null and b/data/changeable/groups/images/b_settings_connections.png differ diff --git a/data/changeable/groups/images/b_settings_display.png b/data/changeable/groups/images/b_settings_display.png new file mode 100644 index 0000000..f7e6340 Binary files /dev/null and b/data/changeable/groups/images/b_settings_display.png differ diff --git a/data/changeable/groups/images/b_settings_double_press.png b/data/changeable/groups/images/b_settings_double_press.png new file mode 100644 index 0000000..972e635 Binary files /dev/null and b/data/changeable/groups/images/b_settings_double_press.png differ diff --git a/data/changeable/groups/images/b_settings_info.png b/data/changeable/groups/images/b_settings_info.png new file mode 100644 index 0000000..cd1b9c9 Binary files /dev/null and b/data/changeable/groups/images/b_settings_info.png differ diff --git a/data/changeable/groups/images/b_settings_language.png b/data/changeable/groups/images/b_settings_language.png new file mode 100755 index 0000000..5a204f5 Binary files /dev/null and b/data/changeable/groups/images/b_settings_language.png differ diff --git a/data/changeable/groups/images/b_settings_language_disabled.png b/data/changeable/groups/images/b_settings_language_disabled.png new file mode 100755 index 0000000..ef31e70 Binary files /dev/null and b/data/changeable/groups/images/b_settings_language_disabled.png differ diff --git a/data/changeable/groups/images/b_settings_lockscreen.png b/data/changeable/groups/images/b_settings_lockscreen.png new file mode 100644 index 0000000..622fbeb Binary files /dev/null and b/data/changeable/groups/images/b_settings_lockscreen.png differ diff --git a/data/changeable/groups/images/b_settings_manner_mode.png b/data/changeable/groups/images/b_settings_manner_mode.png new file mode 100644 index 0000000..a798dac Binary files /dev/null and b/data/changeable/groups/images/b_settings_manner_mode.png differ diff --git a/data/changeable/groups/images/b_settings_messages.png b/data/changeable/groups/images/b_settings_messages.png new file mode 100755 index 0000000..ae5044a Binary files /dev/null and b/data/changeable/groups/images/b_settings_messages.png differ diff --git a/data/changeable/groups/images/b_settings_motion.png b/data/changeable/groups/images/b_settings_motion.png new file mode 100644 index 0000000..8da4873 Binary files /dev/null and b/data/changeable/groups/images/b_settings_motion.png differ diff --git a/data/changeable/groups/images/b_settings_notifications.png b/data/changeable/groups/images/b_settings_notifications.png new file mode 100644 index 0000000..b64ba33 Binary files /dev/null and b/data/changeable/groups/images/b_settings_notifications.png differ diff --git a/data/changeable/groups/images/b_settings_power_saving.png b/data/changeable/groups/images/b_settings_power_saving.png new file mode 100644 index 0000000..a51b333 Binary files /dev/null and b/data/changeable/groups/images/b_settings_power_saving.png differ diff --git a/data/changeable/groups/images/b_settings_profile.png b/data/changeable/groups/images/b_settings_profile.png new file mode 100644 index 0000000..8e76662 Binary files /dev/null and b/data/changeable/groups/images/b_settings_profile.png differ diff --git a/data/changeable/groups/images/b_settings_reset.png b/data/changeable/groups/images/b_settings_reset.png new file mode 100644 index 0000000..b87b281 Binary files /dev/null and b/data/changeable/groups/images/b_settings_reset.png differ diff --git a/data/changeable/groups/images/b_settings_style.png b/data/changeable/groups/images/b_settings_style.png new file mode 100644 index 0000000..9411386 Binary files /dev/null and b/data/changeable/groups/images/b_settings_style.png differ diff --git a/data/changeable/groups/images/b_settings_style_02.png b/data/changeable/groups/images/b_settings_style_02.png new file mode 100644 index 0000000..f1ffc8e Binary files /dev/null and b/data/changeable/groups/images/b_settings_style_02.png differ diff --git a/data/changeable/groups/images/b_settings_system_update.png b/data/changeable/groups/images/b_settings_system_update.png new file mode 100755 index 0000000..7749d22 Binary files /dev/null and b/data/changeable/groups/images/b_settings_system_update.png differ diff --git a/data/changeable/groups/images/b_settings_text_input.png b/data/changeable/groups/images/b_settings_text_input.png new file mode 100644 index 0000000..c23b3e7 Binary files /dev/null and b/data/changeable/groups/images/b_settings_text_input.png differ diff --git a/data/changeable/groups/images/b_settings_volume.png b/data/changeable/groups/images/b_settings_volume.png new file mode 100644 index 0000000..2ef0eee Binary files /dev/null and b/data/changeable/groups/images/b_settings_volume.png differ diff --git a/data/changeable/groups/images/edit_clock_btn_bg.#.png b/data/changeable/groups/images/edit_clock_btn_bg.#.png new file mode 100644 index 0000000..d6c99c4 Binary files /dev/null and b/data/changeable/groups/images/edit_clock_btn_bg.#.png differ diff --git a/data/changeable/groups/images/edit_clock_btn_icon.png b/data/changeable/groups/images/edit_clock_btn_icon.png new file mode 100644 index 0000000..229aa98 Binary files /dev/null and b/data/changeable/groups/images/edit_clock_btn_icon.png differ diff --git a/data/changeable/groups/images/edit_clock_btn_line.#.png b/data/changeable/groups/images/edit_clock_btn_line.#.png new file mode 100644 index 0000000..22bbccf Binary files /dev/null and b/data/changeable/groups/images/edit_clock_btn_line.#.png differ diff --git a/data/changeable/groups/images/settings_preview_dark.png b/data/changeable/groups/images/settings_preview_dark.png new file mode 100644 index 0000000..10ea3e1 Binary files /dev/null and b/data/changeable/groups/images/settings_preview_dark.png differ diff --git a/data/changeable/groups/images/settings_preview_dark_blue.png b/data/changeable/groups/images/settings_preview_dark_blue.png new file mode 100644 index 0000000..d122f92 Binary files /dev/null and b/data/changeable/groups/images/settings_preview_dark_blue.png differ diff --git a/data/changeable/groups/images/settings_preview_light.png b/data/changeable/groups/images/settings_preview_light.png new file mode 100644 index 0000000..2aa0cc3 Binary files /dev/null and b/data/changeable/groups/images/settings_preview_light.png differ diff --git a/data/changeable/groups/images/settings_preview_light_blue.png b/data/changeable/groups/images/settings_preview_light_blue.png new file mode 100644 index 0000000..d563260 Binary files /dev/null and b/data/changeable/groups/images/settings_preview_light_blue.png differ diff --git a/data/changeable/groups/images/settings_wallpaper_selected.png b/data/changeable/groups/images/settings_wallpaper_selected.png new file mode 100644 index 0000000..46e0f87 Binary files /dev/null and b/data/changeable/groups/images/settings_wallpaper_selected.png differ diff --git a/data/changeable/groups/images/sound/tw_number_controller_icon_alert.png b/data/changeable/groups/images/sound/tw_number_controller_icon_alert.png new file mode 100755 index 0000000..ddd65fc Binary files /dev/null and b/data/changeable/groups/images/sound/tw_number_controller_icon_alert.png differ diff --git a/data/changeable/groups/images/sound/tw_number_controller_icon_bell.png b/data/changeable/groups/images/sound/tw_number_controller_icon_bell.png new file mode 100755 index 0000000..fff498a Binary files /dev/null and b/data/changeable/groups/images/sound/tw_number_controller_icon_bell.png differ diff --git a/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_mute.png b/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_mute.png new file mode 100755 index 0000000..21439ba Binary files /dev/null and b/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_mute.png differ diff --git a/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_sound.png b/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_sound.png new file mode 100755 index 0000000..026627e Binary files /dev/null and b/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_sound.png differ diff --git a/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_vibrate.png b/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_vibrate.png new file mode 100755 index 0000000..fd16593 Binary files /dev/null and b/data/changeable/groups/images/sound/tw_number_controller_icon_ringtone_vibrate.png differ diff --git a/data/changeable/groups/images/sound/tw_number_controller_icon_system.png b/data/changeable/groups/images/sound/tw_number_controller_icon_system.png new file mode 100755 index 0000000..eeadfc8 Binary files /dev/null and b/data/changeable/groups/images/sound/tw_number_controller_icon_system.png differ diff --git a/data/changeable/groups/images/tw_number_controller_button_bg.png b/data/changeable/groups/images/tw_number_controller_button_bg.png new file mode 100644 index 0000000..56aef9b Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_button_bg.png differ diff --git a/data/changeable/groups/images/tw_number_controller_contents_bg.png b/data/changeable/groups/images/tw_number_controller_contents_bg.png new file mode 100644 index 0000000..ce45774 Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_contents_bg.png differ diff --git a/data/changeable/groups/images/tw_number_controller_icon_brightness.png b/data/changeable/groups/images/tw_number_controller_icon_brightness.png new file mode 100644 index 0000000..d0f8971 Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_icon_brightness.png differ diff --git a/data/changeable/groups/images/tw_number_controller_icon_brightness_1.png b/data/changeable/groups/images/tw_number_controller_icon_brightness_1.png new file mode 100644 index 0000000..6abb83f Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_icon_brightness_1.png differ diff --git a/data/changeable/groups/images/tw_number_controller_icon_brightness_2.png b/data/changeable/groups/images/tw_number_controller_icon_brightness_2.png new file mode 100644 index 0000000..ba982e3 Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_icon_brightness_2.png differ diff --git a/data/changeable/groups/images/tw_number_controller_icon_brightness_3.png b/data/changeable/groups/images/tw_number_controller_icon_brightness_3.png new file mode 100644 index 0000000..e8d6ba4 Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_icon_brightness_3.png differ diff --git a/data/changeable/groups/images/tw_number_controller_icon_brightness_4.png b/data/changeable/groups/images/tw_number_controller_icon_brightness_4.png new file mode 100644 index 0000000..223d030 Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_icon_brightness_4.png differ diff --git a/data/changeable/groups/images/tw_number_controller_icon_brightness_5.png b/data/changeable/groups/images/tw_number_controller_icon_brightness_5.png new file mode 100644 index 0000000..539cbfb Binary files /dev/null and b/data/changeable/groups/images/tw_number_controller_icon_brightness_5.png differ diff --git a/data/changeable/groups/index.edc b/data/changeable/groups/index.edc new file mode 100644 index 0000000..9f0ed59 --- /dev/null +++ b/data/changeable/groups/index.edc @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { + name: "setting-test/index"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color_class: "B101"; + rel1 {relative: 0.0 0.0;} + rel2 {relative: 1.0 1.0;} + } + } + part { + name: "scroller"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1 {relative: 0.0 0.0; to: "bg";} + rel2 {relative: 1.0 1.0; to: "bg";} + } + } + } +} + +group { + name: "setting-test/pagecontrol/page"; + parts { + part { + name: "page"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + } + } + part { + name: "text"; + type: TEXT; + scale: 1; + description { + state: "default" 0.0; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + text { + min: 1 1; + size: 50; + } + color: 255 255 255 255; + } + } + } +} + +group { + name: "setting/index_thumbnail"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color_class: "B101"; + rel1 {relative: 0.0 0.0;} + rel2 {relative: 1.0 1.0;} + } + } + part { + name: "scroller"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + } + } + part { + name: "controller"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 0 14; + max: -1 14; + fixed: 0 1; + align: 0.5 1.0; + rel1.to: "bottom.padding"; + rel2.to: "bottom.padding"; + rel2.relative: 1.0 0.0; + } + } + part { + name: "bottom.padding"; + type: SPACER; + scale: 1; + description { + state: "default" 0.0; + min: 0 3; + max: -1 3; + fixed: 0 1; + align: 0.5 1.0; + } + } + } +} diff --git a/data/changeable/groups/pinlock_layout.edc b/data/changeable/groups/pinlock_layout.edc new file mode 100644 index 0000000..b83c137 --- /dev/null +++ b/data/changeable/groups/pinlock_layout.edc @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2014 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: "editfield_layout"; + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + color_class: "B011"; + } + } + part { name: "top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 8; + align: 0.5 0.0; + fixed: 0 1; + rel1 { + relative: 0 0; + to: "bg"; + } + rel2 { + relative: 1 0; + to: "bg"; + } + color: 0 0 0 0; + } + } + part { name: "left_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + fixed: 1 0; + rel1 { + relative: 0 0; + to: "bg"; + } + rel2 { + relative: 0 1; + to: "bg"; + } + color: 0 0 0 0; + align: 0.0 0.5; + } + } + part { name: "bg_entry"; + type: RECT; + mouse_events: 0; + scale:1; + description { state: "default" 0.0; + min: 0 48; + max: 328 48; + fixed:1 1; + rel1 { + relative: 0.0 1.0; + to_y: "top_padding"; + } + color: 0 0 0 0; + align: 0 0; + } + } + part { name: "entry_part"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 328 48; + max: 328 48; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + to_x: "left_padding"; + to_y: "bg_entry"; + } + align: 0 0; + } + } + part { name: "padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 30; + align: 0 1; + rel1 { + relative: 0 1.0; + to_y: "entry_part"; + } + rel2.relative: 1 1.0; + color: 0 0 0 0; + } + } + } +} diff --git a/data/changeable/groups/popup_layout.edc b/data/changeable/groups/popup_layout.edc new file mode 100755 index 0000000..9e823b0 --- /dev/null +++ b/data/changeable/groups/popup_layout.edc @@ -0,0 +1,202 @@ + +//Height = 408 - (2 + 83 + 68) +group { name: "setting/popup/layout/title_content_button"; + parts { + part { name: "elm.swallow.content"; + scale: 1; + type: SWALLOW; + description { state: "default" 0.0; + min: 0 255; + max: -1 255; + } + } + } +} + +/* + * Popup with label & check + * --------- + * Label + * Check + * --------- + */ +group +{ + name: "setting/popup/layout/label_check"; + parts + { + part + { + name: "setting.swallow.content"; + scale: 1; + type: SWALLOW; + description + { + state: "default" 0.0; + min: 0 255; + max: -1 255; + } + } + part + { + name: "setting.swallow.text"; + scale: 1; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 0; + rel2.relative: 1.0 0.0; + rel2.to_y: "setting.swallow.check"; + align: 0.0 0.0; + } + } + part + { + name: "setting.swallow.check"; + scale: 1; + type: SWALLOW; + description + { + state: "default" 0.0; + min: 0 90; + max: -1 90; + fixed: 1 1; + rel1.relative: 0.0 1.0; + rel1.to_y: "setting.swallow.text"; + rel1.offset: 15 0; + rel2.relative: 1.0 1.0; + } + } + } +} + +//No button: Height = 408 - (2 + 68) +group { name: "setting/popup/layout/title_content"; + parts { + part { name: "elm.swallow.content"; + scale: 1; + type: SWALLOW; + description { state: "default" 0.0; + min: 0 338; + max: -1 338; + } + } + } +} + +//No title: Height = 408 - ( 2 + 83 ) +group { name: "setting/popup/layout/content_button"; + parts { + part { name: "elm.swallow.content"; + scale: 1; + type: SWALLOW; + description { state: "default" 0.0; + min: 0 323; + max: -1 323; + } + } + } +} + +//No title and button present: Height = 408 - 2 +group { name: "setting/popup/layout/default"; + parts { + part { name: "elm.swallow.content"; + scale: 1; + type: SWALLOW; + description { state: "default" 0.0; + min: 0 406; + max: -1 406; + } + } + } +} + +group { name: "popup_checkview_internal"; + parts { + part { name: "label"; + scale: 1; + type: SWALLOW; + description { state: "default" 0.0; + fixed: 1 0; + rel2 { + relative: 1.0 0.0; + to_y: "end_field"; + } + } + } + part { name: "bottom_pad"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.0 1.0; + min: 0 4; + fixed: 0 1; + rel1.relative: 0.0 1.0; + } + } + part { name: "pad_b"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.0 1.0; + min: 0 82; + fixed: 0 1; + rel1 { + relative: 0.0 0.0; + to: "bottom_pad"; + } + rel2 { + relative: 1.0 0.0; + to: "bottom_pad"; + } + } + } + part { name: "end_field"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.0 1.0; + min: 0 82; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + to: "pad_b"; + } + rel2 { + relative: 1.0 1.0; + to: "pad_b"; + } + } + } + part { name: "check_bottom"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + align: 0.0 1.0; + min: 0 4; + fixed: 0 1; + rel1 { + relative: 0.0 0.0; + to: "end_field"; + } + rel2 { + relative: 1.0 0.0; + to: "end_field"; + } + } + } + part { name: "elm.swallow.end"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + align: 0.0 0.5; + rel1.to: "end_field"; + rel1.offset: 1 0; + rel2.to: "end_field"; + } + } + } +} diff --git a/data/changeable/groups/progress.edc b/data/changeable/groups/progress.edc new file mode 100644 index 0000000..3cf9b93 --- /dev/null +++ b/data/changeable/groups/progress.edc @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting-test/progress"; + parts { + part { name: "base"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + color: 0 0 0 255; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { name: "process"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 0; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 1.0; + to: "base"; + } + align: 0.5 0.5; + } + } + + } +} diff --git a/data/changeable/groups/setting_network_apn.edc b/data/changeable/groups/setting_network_apn.edc new file mode 100755 index 0000000..f93a871 --- /dev/null +++ b/data/changeable/groups/setting_network_apn.edc @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + + +/* Edit */ +group +{ + name: "setting/network_apn/edit"; + + parts + { + part + { + name: "bg"; + type: RECT; + scale: 1; + description + { + state: "default" 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color_class: "B011"; + } + } + + part + { + name: "setting.swallow.content"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 + { + to: "bg"; + relative: 0.0 0.0; + } + rel2 + { + to: "bg"; + relative: 1.0 1.0; + offset: 0 -87; + } + } + } + + part + { + name: "setting.swallow.title"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 48; + fixed: 0 1; + align: 0.0 0.0; + rel1 + { + to: "setting.swallow.content"; + relative: 0.0 0.0; + offset: 15 0; + } + } + } + + part + { + name: "setting.swallow.editfield"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 48; + fixed: 0 1; + align: 0.0 0.0; + rel1 + { + to: "setting.swallow.title"; + relative: 0.0 1.0; + offset: 15 15; + } + rel2 + { + to: "setting.swallow.content"; + relative: 1.0 1.0; + offset: -15 0; + } + } + } + } +} \ No newline at end of file diff --git a/data/changeable/groups/setting_permission.edc b/data/changeable/groups/setting_permission.edc new file mode 100644 index 0000000..678f65c --- /dev/null +++ b/data/changeable/groups/setting_permission.edc @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting/permission"; + parts { + part { name: "base"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 360 420; + color_class: B011; + } + } + part { name: "left.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 16 0; + max: 16 -1; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 0.0 1.0; + to: "base"; + } + align: 0.0 0.5; + } + } + part { name: "right.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 8 0; + max: 8 -1; + rel1 { + relative: 1.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 1.0; + to: "base"; + } + align: 1.0 0.5; + } + } + part { name: "top.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 16; + max: -1 16; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 0.0; + to: "base"; + } + align: 0.0 0.5; + } + } + part { name: "bottom.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 185; + max: -1 185; + rel1 { + relative: 0.0 1.0; + to: "base"; + } + rel2 { + relative: 1.0 1.0; + to: "base"; + } + align: 0.0 1.0; + } + } + part { name: "desc"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 218; + max: -1 218; + rel1 { + relative: 1.0 1.0; + to_x: "left.padding"; + to_y: "top.padding"; + } + rel2 { + relative: 0.0 1.0; + to_x: "right.padding"; + to_y: "top.padding"; + } + align: 0.0 0.0; + } + } + part { name: "seperator"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + color_class: AO014; + min: 0 1; + max: -1 1; + rel1 { + relative: 0.0 0.0; + to: "bottom.padding"; + } + rel2 { + relative: 1.0 0.0; + to: "bottom.padding"; + } + align: 0.5 0.0; + } + } + part { name: "elm.genlist"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 0 100; + max: -1 100; + rel1 { + relative: 0.0 1.0; + to_x: "base"; + to_y: "seperator"; + } + rel2 { + relative: 1.0 1.0; + to_x: "base"; + to_y: "seperator"; + } + align: 0.5 0.0; + } + } + part { name: "btn1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + min: 0 85; + align: 0.5 1; + } + } + } +} diff --git a/data/changeable/groups/setting_picker.edc b/data/changeable/groups/setting_picker.edc new file mode 100644 index 0000000..f7958e0 --- /dev/null +++ b/data/changeable/groups/setting_picker.edc @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + +#define UP_SWALLOW_BTN(_to_part, _visibility) \ + part { \ + name: "btn.up"; \ + type: SWALLOW; \ + scale: 1; \ + description { state: "default" 0.0; \ + align: 0.5 0.0; \ + min: 84 92; \ + max: 84 92; \ + fixed: 1 1; \ + visible: _visibility; \ + rel1 { \ + to: _to_part; \ + } \ + rel2 { \ + to: _to_part; \ + } \ + } \ + } + +#define DOWN_SWALLOW_BTN(_to_part, _visibility) \ + part { \ + name: "btn.down"; \ + type: SWALLOW; \ + scale: 1; \ + description { state: "default" 0.0; \ + align: 0.5 1.0; \ + min: 84 92; \ + max: 84 92; \ + fixed: 1 1; \ + visible: _visibility; \ + rel1 { \ + to: _to_part; \ + } \ + rel2 { \ + to: _to_part; \ + } \ + } \ + } + + +group { name: "setting/picker/layout"; + parts { + part { name: "bg"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 360 290; + max: 360 290; + } + } + UP_SWALLOW_BTN(field0.padding, 1) + part { name: "field0.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 84 0; + max: 84 -1; + rel1.to: "bg"; + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + align: 0.5 0.5; + } + } + part { name: "date"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 106; + max: -1 106; + fixed: 0 1; + rel1.to: "field0.padding"; + rel2.to: "field0.padding"; + } + } + DOWN_SWALLOW_BTN(field0.padding, 1) + } +} + +group { name: "setting/limit_picker/layout"; + parts { + part { name: "bg"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 360 290; + max: 360 290; + } + } + UP_SWALLOW_BTN(field0.padding, 1) + part { name: "field0.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 164 0; + max: 164 -1; + rel1.to: "bg"; + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + align: 0.25 0.5; + } + } + part { name: "size"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 106; + max: -1 106; + fixed: 0 1; + rel1.to: "field0.padding"; + rel2.to: "field0.padding"; + } + } + DOWN_SWALLOW_BTN(field0.padding, 1) + + part { name: "field.padding0"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 8 0; + rel1 { + relative: 1.0 0.0; + to: "field0.padding"; + } + rel2 { + relative: 1.0 1.0; + to: "field0.padding"; + } + align: 0.0 0.5; + } + } + + part { name: "field1.padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 94 0; + rel1 { + relative: 1.0 0.0; + to: "field.padding0"; + } + rel2 { + relative: 1.0 1.0; + to: "field.padding0"; + } + align: 0.0 0.5; + } + } + part { name: "unit"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 106; + max: -1 106; + fixed: 0 1; + rel1.to: "field1.padding"; + rel2.to: "field1.padding"; + } + } + + } +} diff --git a/data/changeable/groups/setting_sound.edc b/data/changeable/groups/setting_sound.edc new file mode 100755 index 0000000..03c1963 --- /dev/null +++ b/data/changeable/groups/setting_sound.edc @@ -0,0 +1,657 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + + +RESOURCE_IMAGE( "sound/tw_number_controller_icon_ringtone_sound.png" ); +RESOURCE_IMAGE( "sound/tw_number_controller_icon_ringtone_mute.png" ); +RESOURCE_IMAGE( "sound/tw_number_controller_icon_ringtone_vibrate.png" ); +RESOURCE_IMAGE( "sound/tw_number_controller_icon_alert.png" ); +RESOURCE_IMAGE( "sound/tw_number_controller_icon_bell.png" ); +RESOURCE_IMAGE( "sound/tw_number_controller_icon_system.png" ); + + +/* Volume - Frame area */ +group +{ + name: "setting/sound/vol_frame"; + + parts + { + part + { + name: "bg"; + type: RECT; + scale: 1; + description + { + state: "default" 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color_class: "B011"; + } + } + + /* Content area */ + part + { + name: "setting.swallow.content"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 + { + to: "bg"; + relative: 0.0 0.0; + } + rel2 + { + to: "bg"; + relative: 1.0 1.0; + offset: 0 -87; + } + } + } + + /* Cancel button */ + part + { + name: "setting.swallow.btn1"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + max: -1 85; + rel1 + { + relative: 0.0 1.0; + offset: 0 -85; + } + rel2 + { + to_x: "padding"; + relative: 0.0 1.0; + } + } + } + + part + { + name: "padding"; + type: SPACER; + scale: 1; + mouse_events: 0; + description + { + state: "default" 0.0; + min: 1 0; + max: 1 0; + fixed: 1 0; + rel1.relative: 0.5 1.0; + rel2.relative: 0.5 1.0; + } + } + + /* OK button */ + part + { + name: "setting.swallow.btn2"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + max: -1 85; + rel1 + { + to_x: "padding"; + relative: 1.0 1.0; + offset: 0 -85; + } + rel2 + { + relative: 1.0 1.0; + } + } + } + } +} + +/* Volume - Content area */ +group +{ + name: "setting/sound/vol_content"; + + parts + { + part + { + name: "padding_left"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 27 0; + max: 27 -1; + fixed: 1 0; + rel1 + { + relative: 0.0 0.0; + } + rel2 + { + relative: 0.0 1.0; + } + } + } + + part + { + name: "padding_right"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 35 0; + max: 35 -1; + fixed: 1 0; + rel1 + { + relative: 1.0 0.0; + offset: -35 0; + } + rel2 + { + relative: 1.0 1.0; + } + } + } + + part + { + name: "padding_top"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 0 35; + max: -1 35; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + relative: 1.0 0.0; + } + rel2 + { + to_x: "padding_right"; + relative: 0.0 0.0; + } + } + } + + /* Swallow / Label - Media */ + part + { + name: "setting.swallow.label_media"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 50; + max: -1 50; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "padding_top"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.slider_media"; + relative: 0.0 0.0; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider icon - Media */ + part + { + name: "setting.swallow.slider_icon_media"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 48 48; + max: 48 48; + fixed: 1 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.label_media"; + relative: 1.0 1.0; + offset: 0 0; + } + rel2 + { + to_x: "setting.swallow.slider_media"; + to_y: "setting.swallow.label_media"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider - Media */ + part + { + name: "setting.swallow.slider_media"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 48; + fixed: 0 1; + rel1 + { + to_x: "setting.swallow.slider_icon_media"; + to_y: "setting.swallow.label_media"; + relative: 1.0 1.0; + offset: 22 0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_media"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + part + { + name: "padding_gap_1"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 0 15; + max: -1 15; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.slider_media"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_ring"; + relative: 0.0 0.0; + } + } + } + + /* Swallow / Label - Ringtone */ + part + { + name: "setting.swallow.label_ring"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 50; + max: -1 50; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "padding_gap_1"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.slider_ring"; + relative: 0.0 0.0; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider icon - Ringtone */ + part + { + name: "setting.swallow.slider_icon_ring"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 48 48; + max: 48 48; + fixed: 1 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.label_ring"; + relative: 1.0 1.0; + offset: 0 0; + } + rel2 + { + to_x: "setting.swallow.slider_ring"; + to_y: "setting.swallow.label_ring"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider - Ringtone */ + part + { + name: "setting.swallow.slider_ring"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 48; + fixed: 0 1; + rel1 + { + to_x: "setting.swallow.slider_icon_ring"; + to_y: "setting.swallow.label_ring"; + relative: 1.0 1.0; + offset: 22 0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_ring"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + part + { + name: "padding_gap_2"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 0 15; + max: -1 15; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.slider_ring"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_noti"; + relative: 0.0 0.0; + } + } + } + + /* Swallow / Label - Notification */ + part + { + name: "setting.swallow.label_noti"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 50; + max: -1 50; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "padding_gap_2"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.slider_noti"; + relative: 0.0 0.0; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider icon - Notification */ + part + { + name: "setting.swallow.slider_icon_noti"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 48 48; + max: 48 48; + fixed: 1 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.label_noti"; + relative: 1.0 1.0; + offset: 0 0; + } + rel2 + { + to_x: "setting.swallow.slider_noti"; + to_y: "setting.swallow.label_noti"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider - Notification */ + part + { + name: "setting.swallow.slider_noti"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 48; + fixed: 0 1; + rel1 + { + to_x: "setting.swallow.slider_icon_noti"; + to_y: "setting.swallow.label_noti"; + relative: 1.0 1.0; + offset: 22 0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_noti"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + part + { + name: "padding_gap_3"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 0 15; + max: -1 15; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.slider_noti"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_sys"; + relative: 0.0 0.0; + } + } + } + + /* Swallow / Label - System */ + part + { + name: "setting.swallow.label_sys"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 50; + max: -1 50; + fixed: 0 1; + rel1 + { + to_x: "padding_left"; + to_y: "padding_gap_3"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.slider_sys"; + relative: 0.0 0.0; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider icon - System */ + part + { + name: "setting.swallow.slider_icon_sys"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 48 48; + max: 48 48; + fixed: 1 1; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.label_sys"; + relative: 1.0 1.0; + offset: 0 0; + } + rel2 + { + to_x: "setting.swallow.slider_sys"; + to_y: "setting.swallow.label_sys"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + /* Swallow / Slider - System */ + part + { + name: "setting.swallow.slider_sys"; + type: SWALLOW; + scale: 1; + description + { + state: "default" 0.0; + min: 0 48; + fixed: 0 1; + rel1 + { + to_x: "setting.swallow.slider_icon_sys"; + to_y: "setting.swallow.label_sys"; + relative: 1.0 1.0; + offset: 22 0; + } + rel2 + { + to_x: "padding_right"; + to_y: "setting.swallow.label_sys"; + relative: 0.0 1.0; + offset: 0 48; + } + align: 0.0 0.5; + } + } + + // it necessarily needed for scroll + part + { + name: "padding_bottom_scroller"; + type: SPACER; + scale: 1; + description + { + state: "default" 0.0; + min: 0 18; + rel1 + { + to_x: "padding_left"; + to_y: "setting.swallow.slider_sys"; + relative: 1.0 1.0; + } + rel2 + { + to_x: "padding_right"; + relative: 0.0 1.0; + } + } + } + } +} \ No newline at end of file diff --git a/data/changeable/groups/setting_tts_macro.edc b/data/changeable/groups/setting_tts_macro.edc new file mode 100644 index 0000000..5b91811 --- /dev/null +++ b/data/changeable/groups/setting_tts_macro.edc @@ -0,0 +1,27 @@ +#define FOCUS_OBJECT(part_name)\ + part{\ + name: "focus."part_name;\ + type: SWALLOW;\ + repeat_events: 1;\ + mouse_events: 1;\ + description{\ + state: "default" 0.0;\ + fixed: 1 1;\ + rel1.to: part_name;\ + rel2.to: part_name;\ + visible: 1;\ + }\ + description {\ + state : "left" 0.0;\ + inherit : "default" 0.0;\ + }\ + description {\ + state : "right" 0.0;\ + inherit : "default" 0.0;\ + }\ + description {\ + state : "hide" 0.0;\ + inherit : "default" 0.0;\ + visible : 0;\ + }\ + } \ No newline at end of file diff --git a/data/changeable/groups/theme_default_inc.edc b/data/changeable/groups/theme_default_inc.edc new file mode 100644 index 0000000..08fc4ce --- /dev/null +++ b/data/changeable/groups/theme_default_inc.edc @@ -0,0 +1,232 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +//*** This file defines the color codes for default theme *** // + +// ****************************** Naming ************************************* / +// {WIDGET}_{PART}_{TYPE}_{STATE}_COLOR +// eg. LIST_TEXT_MAIN_NORMAL_COLOR + +#define TEXT_MATCH_COLOR "#FF9000FF" + +// ***************************** Background ********************************** / +#define BG_COLOR 0 0 0 255 + +// ***************************** Action bar ********************************** / +#define ACTIONBAR_TEXT_COLOR "#FFFFFFFF" +#define ACTIONBAR_BG_COLOR 75 66 55 255 +#define ACTIONBAR_BOTTOM_LINE_COLOR 107 86 61 255 +#define ACTIONBAR_MORE_DISABLED_COLOR 255 255 255 51 + +// ***************************** Scroller ************************************ / +#define SCROLLER_BAR_COLOR 102 102 102 255 + +// ***************************** List *****************************************/ +#define LIST_BG_NORMAL_COLOR 0 0 0 255 +#define LIST_BG_PRESSED_COLOR 88 73 58 255 +#define LIST_BG_DIM_COLOR 38 38 38 255 +#define LIST_DIVIDER_COLOR 76 76 76 255 +#define LIST_LINE_COLOR 64 64 64 255 +#define LIST_TEXT_GROUPINDEX_COLOR "#FF9000FF" +#define LIST_TEXT_GROUPINDEX_SUB_COLOR "#FF9000FF" +#define LIST_TEXT_MAIN_NORMAL_COLOR "#FFFFFFFF" +#define LIST_TEXT_MAIN_DIM_COLOR "#333333FF" +#define LIST_TEXT_SUB_NORMAL_COLOR "#BDA792FF" +#define LIST_TEXT_SUB_DIM_COLOR "#333333FF" +#define LIST_TEXT_SUB_MULTILINE_NORMAL_COLOR "#BDA792FF" +#define LIST_TEXT_SUB_MULTILINE_DIM_COLOR "#333333FF" +#define LIST_TEXT_SUB_MULTILINE_SELECTED_COLOR "#BDA792FF" +// Groupindex +#define LIST_GROUPINDEX_BG_NORMAL_COLOR 39 35 33 255 +#define LIST_GROUPINDEX_BG_PRESSED_COLOR 88 74 58 255 +// Email +#define LIST_EMAIL_NEW_TEXT_COLOR "#FFFFFFFF" +#define LIST_EMAIL_ADDRESS_TEXT_COLOR "#FF9000FF" +#define LIST_EMAIL_NUMBER_TEXT_COLOR "#FF9000FF" +// Weahter +#define LIST_WEATHER_TIME_TEXT_COLOR "#FFFFFFFF" +// Notifications +#define LIST_NOTI_TEXT_COLOR "#FFFFFFCC" +// Swipe +#define LIST_SWEEP_BG_NORMAL_COLOR 53 48 44 255 +#define LIST_SWEEP_TEXT_COLOR "#FFFFFF7F" +// Schedules +#define LIST_SCHEDULES_TEXT_SUB_NORMAL_COLOR "#FFFFFF3F" +#define LIST_SCHEDULES_TEXT_SUB_DIM_COLOR "#3333333F" +#define LIST_SCHEDULES_LINE_COLOR 96 96 96 255 +#define LIST_SCHEDULES_BG_PRESSED_COLOR 88 76 48 255 +// logs +#define LIST_LOGS_TEXT_MAIN_NORMAL "#FFFFFFFF" +#define LIST_LOGS_TEXT_SUB_NORMAL "#FFFFFF7F" +// Device_option +#define LIST_DEVICE_OPTION_TEXT_MAIN_NORMAL_COLOR "#FFFFFFFF" +#define LIST_DEVICE_OPTION_TEXT_SUB_NORMAL_COLOR "#FFFFFFFF" +#define LIST_DEVICE_OPTION_TEXT_SUB_DIM_COLOR "#444444FF" +#define LIST_DEVICE_OPTION_LINE_COLOR 34 34 34 255 +#define LIST_DEVICE_OPTION_ICON_DIVIDER_COLOR 34 34 34 255 +// Swipe +#define LIST_SWIPE_TEXT_COLOR 255 255 255 255 + +// ***************************** Button ***************************************/ +#define BUTTON_TEXT_NORMAL_COLOR "#FFFFFFFF" +#define BUTTON_TEXT_DIM_COLOR "#FFFFFF33" +#define BUTTON_SWALLOW_DIM_COLOR 255 255 255 51 +#define BUTTON_BOTTOM_PRESSED_COLOR 255 255 255 255 +#define BUTTON_BOTTOM_DIM_COLOR 255 255 255 51 +#define BUTTON_DELETE_PRESSED_COLOR 255 255 255 255 +#define BUTTON_DELETE_DIM_COLOR 255 255 255 127 +#define BUTTON_DIVIDER_BTN_ICON_DIM_COLOR 255 255 255 127 +#define BUTTON_ICON_CALL_MENU_NORMAL_COLOR 255 255 255 255 +#define BUTTON_ICON_CALL_MENU_PRESSED_COLOR 255 255 255 255 +#define BUTTON_ICON_CALL_MENU_DIM_COLOR 255 255 255 255 +// Controller +#define BUTTON_CONTROLLER_NORMAL_COLOR 51 51 51 255 +#define BUTTON_CONTROLLER_PRESS_COLOR 99 93 89 255 +#define BUTTON_CONTROLLER_DISABLE_COLOR 51 51 51 255 +#define BUTTON_CONTROLLER_CLIP_NORMAL_COLOR 255 255 255 255 +#define BUTTON_CONTROLLER_CLIP_PRESS_COLOR 255 255 255 255 +#define BUTTON_CONTROLLER_CLIP_DISABLE_COLOR 255 255 255 51 +// Device Option +#define BUTTON_DEVICE_OPTION_SWALLOW_DIM_COLOR 68 68 68 255 +#define BUTTON_DEFAULT_NORMAL_BG_COLOR 75 66 55 255 +#define BUTTON_DEFAULT_PRESS_BG_COLOR 99 93 89 255 +#define BUTTON_DEFAULT_DISABLE_BG_COLOR 29 26 24 255 +#define BUTTON_RED_NORMAL_BG_COLOR 206 35 2 255 +#define BUTTON_RED_PRESS_BG_COLOR 221 101 78 255 +#define BUTTON_RED_DISABLE_BG_COLOR 78 25 16 255 +#define BUTTON_ORANGE_NORMAL_BG_COLOR 237 134 0 255 +#define BUTTON_ORANGE_PRESS_BG_COLOR 242 171 77 255 +#define BUTTON_ORANGE_DISABLE_BG_COLOR 70 40 5 255 +#define BUTTON_GREEN_NORMAL_BG_COLOR 98 164 17 255 +#define BUTTON_GREEN_PRESS_BG_COLOR 145 191 89 255 +#define BUTTON_GREEN_DISABLE_BG_COLOR 38 53 30 255 +#define BUTTON_POPUP_NORMAL_BG_COLOR 75 66 55 255 +#define BUTTON_POPUP_PRESS_BG_COLOR 99 93 89 255 +#define BUTTON_POPUP_DISABLE_BG_COLOR 29 26 24 255 +#define BUTTON_NEXTDEPTH_PRESS_BG_COLOR 255 144 0 255 +#define BUTTON_NEXTDEPTH_DISABLE_BG_COLOR 51 51 51 255 +// Calendar +#define BUTTON_SCHEDULE_NORMAL_COLOR 93 169 1 255 +#define BUTTON_SCHEDULE_PRESS_COLOR 145 191 94 255 + +// ***************************** Check ****************************************/ +#define CHECK_TEXT_NORMAL_COLOR "#FFFFFFFF" + +// ***************************** Index ****************************************/ +// Scroll +#define INDEX_SCROLL_BG_COLOR_INC 34 34 34 255 +#define INDEX_SCROLL_TEXT_SELECT_COLOR "#FFFFFFFF" +#define INDEX_SCROLL_TEXT_UNSELECT_COLOR "#595959FF" +#define INDEX_SCROLL_TEXT_SELECT1_COLOR "#FF9000FF" +#define INDEX_SCROLL_PADDING_COLOR 34 34 34 255 +#define INDEX_SCROLL_HANDLE_BG_NORMAL_COLOR 34 34 34 255 +#define INDEX_SCROLL_HANDLE_BG_PRESSED_COLOR 255 144 0 255 +#define INDEX_SCROLL_HANDLE_TEXT_NORMAL_COLOR 89 89 89 255 +#define INDEX_SCROLL_HANDLE_TEXT_PRESSED_COLOR 255 144 0 255 +#define INDEX_SCROLL_HANDLE_2DEPTH_BG_NORMAL_COLOR 44 44 44 255 +#define INDEX_SCROLL_POPUP_TEXT_COLOR 255 144 0 255 +#define INDEX_SCROLL_POPUP_BG_COLOR 88 73 58 255 +// Tab +#define INDEX_TAB_COLR 53 48 44 255 +#define INDEX_TAB_FOCUS_COLR 249 145 7 255 +// Thumbnail +#define INDEX_THUMBNAIL_COLOR 26 26 26 255 +#define INDEX_THUMBNAIL_FOCUS_COLOR 255 255 255 255 +#define INDEX_THUMBNAIL_LINE_FOCUS_COLOR 255 144 0 255 +#define INDEX_THUMBNAIL_LINE_UNFOCUS_COLOR 255 144 0 55 + +// ***************************** GenGrid **************************************/ +#define GENGRID_BG_COLOR 0 0 0 0 + +// ***************************** Popup ****************************************/ +#define POPUP_TITLE_TEXT_COLOR "#FF9000FF" +#define POPUP_BODY_TEXT_COLOR "#F5F5F5FF" +#define POPUP_TOAST_TEXT_COLOR "#F5F5F5FF" +#define POPUP_TITLE_LINE_COLOR 67 67 67 255 + +// ***************************** Progressbar **********************************/ + +// ***************************** Layout ***************************************/ +// No Items +#define NOITEM_TEXT_COLOR "#FFFFFF" +// No Schdeule +#define NOITEM_NOSCHDEULE_TEXT_COLOR "#FFFFFF7F" +// Body +#define BODY_NORMAL_TEXT_COLOR "#FFFFFFFF" +#define BODY_NORMAL_TEXT_SUB_COLOR "#FF9000FF" +#define BODY_THUMBNAIL_BG_COLOR 26 26 26 255 +// Popup button controllers +#define POPUP_BUTTON_CONTROLLER_CONTENT_BG_COLOR 51 51 51 255 + +// ***************************** Slider ***************************************/ + +// ***************************** Radio ****************************************/ +#define RADIO_DATETIME_TEXT_NORMAL_COLOR 255 255 255 255 +#define RADIO_DATETIME_TEXT_FOCUSED_COLOR 0 0 0 255 +#define RADIO_DATETIME_TEXT_DISABLED_COLOR 64 64 64 255 +#define RADIO_DATETIME_AM_PM_TEXT_NORMAL_COLOR "#FFFFFF" +#define RADIO_DATETIME_AM_PM_TEXT_SELECTED_COLOR "#FF9000" + +// ***************************** Datetime *************************************/ +#define DATETIME_SEPARATOR_TEXT_COLOR 250 250 250 255 +#define DATETIME_TEXT_SELECTED_COLOR 255 255 255 255 + +// ***************************** Spinner **************************************/ +#define SPINNER_EVENT_RECT_COLOR 0 0 0 0 +#define SPINNER_DISABLED_COLOR 0 0 0 35 +#define SPINNER_MUSIC_CONTROLLER_TEXT_COLOR 255 255 255 255 +#define SPINNER_MINUS_PLUS_NORMAL_COLOR 51 51 51 255 +#define SPINNER_MINUS_PLUS_PRESS_COLOR 99 93 89 255 +#define SPINNER_MINUS_PLUS_DIM_COLOR 51 51 51 255 +#define SPINNER_MINUS_PLUS_IMAGE_NORMAL_COLOR 255 255 255 255 +#define SPINNER_MINUS_PLUS_IMAGE_PRESS_COLOR 255 255 255 255 +#define SPINNER_MINUS_PLUS_IMAGE_DISABLE_COLOR 255 255 255 51 +#define SPINNER_CONTENT_BG_COLOR 51 51 51 255 +#define SPINNER_CENTER_IMAGE_NORMAL_COLOR 255 144 0 255 +#define SPINNER_CENTER_IMAGE_FULL_COLOR 255 51 35 255 +#define SPINNER_CENTER_IMAGE_MUTE_COLOR 255 144 0 255 +#define SPINNER_CENTER_IMAGE_VIBRATE_COLOR 255 144 0 255 +#define SPINNER_TEXT_NORMAL_COLOR 255 144 0 255 +#define SPINNER_TEXT_FULL_COLOR 255 51 35 255 + +// ***************************** Entry ****************************************/ +#define ENTRY_TEXT_COLOR "#FFFFFF" +#define ENTRY_DISABLED_TEXT_COLOR "#969696" +#define ENTRY_GUIDE_TEXT_COLOR "#6C6E78" +#define ENTRY_CURSOR_COLOR 255 255 255 255 +#define ENTRY_PREEDIT_SUB1_COLOR "#2EA8E1" +#define ENTRY_PREEDIT_SUB2_COLOR "#9962C3" +#define ENTRY_PREEDIT_SUB3_COLOR "#76DE37" +#define ENTRY_PREEDIT_SUB4_COLOR "#999999" +#define ENTRY_PREEDIT_UNDERLINE_COLOR "#FFFFFF" +#define ENTRY_PREEDIT_TEXT_COLOR "#000000" +#define ENTRY_PREEDIT_BACKGROUND_COLOR "#FFFFFF" +#define ENTRY_SELECTION_BG_COLOR 19 106 144 255 +#define ENTRY_SELECTION_EDGE_COLOR 59 115 182 255 + +// ***************************** Label ****************************************/ +#define LABEL_TEXT_BLOCK_STYLE_COLOR_INC "#FFFFFF" diff --git a/data/changeable/groups/thumbnail_view.edc b/data/changeable/groups/thumbnail_view.edc new file mode 100644 index 0000000..808c282 --- /dev/null +++ b/data/changeable/groups/thumbnail_view.edc @@ -0,0 +1,176 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { + name: "thumbnail_page"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + min: 180 480; + max: 180 480; + state: "default" 0.0; + color: 0 0 0 255; + } + } + part { + name: "thumb1"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 180 240; + rel1 {relative: 0.0 0.0; to: "bg";} + rel2 {relative: 1.0 0.5; to: "bg";} + align: 0.5 0.5; + } + } + part { + name: "thumb2"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 180 240; + rel1 {relative: 0.0 0.5; to: "bg";} + rel2 {relative: 1.0 1.0; to: "bg";} + align: 0.5 0.5; + } + } + } +} + +group { + name: "thumbnail"; + parts { + part { + name: "thumb_bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + max: 177 237; + min: 177 237; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 255 255 255 255; + } + description { + state: "white" 0.0; + max: 177 237; + min: 177 237; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 255 255 255 255; + } + } + part { + name: "thumb_inner_bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + max: 175 235; + min: 175 235; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 0 0 0 255; + } + } + part { + name: "thumb"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + max: 175 235; + min: 175 235; + rel1 {relative: 0.0 0.0; to: "thumb_bg"; offset: 1 1;} + rel2 {relative: 1.0 1.0; to: "thumb_bg"; offset: -1 -1;} + } + } + part { + name: "thumb_btn"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + max: 70 70; + min: 70 70; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + } + part { + name: "thumb_op"; + type: RECT; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 0 0 0 0; + } + description { + state: "opacity" 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color_class: "AO0161D"; + } + } + part { + name: "thumb_select"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + max: 177 237; + min: 177 237; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + } + } + + programs { + program { + name: "thumb_bg,default"; + signal: "thumb_bg,default"; + source: "thumb_bg"; + action: STATE_SET default"" 0.0; + target: "thumb_bg"; + } + program { + name: "thumb_bg,white"; + signal: "thumb_bg,white"; + source: "thumb_bg"; + action: STATE_SET "white" 0.0; + target: "thumb_bg"; + } + program { + name: "thumbnail,opacity"; + signal: "thumbnail,opacity"; + source: "thumb_op"; + action: STATE_SET "opacity" 0.0; + target: "thumb_op"; + } + program { + name: "thumbnail,default"; + signal: "thumbnail,default"; + source: "thumb_op"; + action: STATE_SET "default" 0.0; + target: "thumb_op"; + } + } +} + diff --git a/data/changeable/groups/two_finger_control.edc b/data/changeable/groups/two_finger_control.edc new file mode 100644 index 0000000..46a6624 --- /dev/null +++ b/data/changeable/groups/two_finger_control.edc @@ -0,0 +1,207 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting/layout/button_controller2/default"; + images { + image: "tw_number_controller_button_bg.png" COMP; + image: "tw_number_controller_contents_bg.png" COMP; + } + styles{ + style { name: "controller_style"; + base: "font=Tizen:style=Regular font_size="20" align=center color=#FF9100 text_class=tizen"; + tag: "br" "\n"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + } + parts { + part { name: "bg"; + scale: 1; + description { state: "default" 0.0; + min: 284 86; + max: 284 86; + fixed: 1 1; + image { + normal: "tw_number_controller_button_bg.png"; + border: 7 7 7 7; + border_scale: 1; + } + } + } + part { name: "top_left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 6 6; + max: 6 6; + fixed: 1 1; + align: 0.0 0.0; + rel2.relative: 0.0 0.0; + } + } + part { name: "bottom_right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 6 6; + max: 6 6; + fixed: 1 1; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + } + } + part { name: "center_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 4 84; + max: 4 84; + fixed: 1 1; + } + } + part { name: "elm.icon.left"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 134 74; + max: 134 74; + fixed: 1 1; + align: 1.0 0.5; + rel1 { + to: "top_left_padding"; + relative: 1.0 1.0; + } + rel2 { + to_x: "center_padding"; + to_y: "bottom_right_padding"; + relative: 0.0 0.0; + } + } + } + part { name: "elm.icon.right"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 134 74; + max: 134 74; + fixed: 1 1; + align: 0.0 0.5; + rel1 { + to_x: "center_padding"; + to_y: "top_left_padding"; + relative: 1.0 1.0; + } + rel2 { + to: "bottom_right_padding"; + relative: 0.0 0.0; + } + } + } + part { name: "bg_center"; + scale: 1; + description { state: "default" 0.0; + image.normal: "tw_number_controller_contents_bg.png"; + image.border: 6 6 6 6; + image.border_scale: 1; + min: 94 52; // FIXME: 94 is too short for text?? + max: 94 52; + fixed: 1 1; + } + } + part { name: "elm.icon"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + visible: 1; + min: 40 40; + max: 40 40; + fixed: 1 1; + } + description { state: "1digit" 0.0; + inherit: "default" 0.0; + fixed: 1 1; + align: 0.5 0.5; + visible: 0; + rel1 { + to_y: "bg_center"; + offset: -25 -20; + relative: 0.5 0.5; + } + rel2 { + to_y: "bg_center"; + offset: 15 20; + relative: 0.5 0.5; + } + } + description { state: "2digit" 0.0; + inherit: "1digit" 0.0; + rel1.offset: 2 0; + rel2.offset: 2 0; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + description { state: "default" 0.0; + visible: 0; + fixed: 1 1; + align: 0.0 0.5; + rel1 { + to: "bg_center"; + offset: 35 0; + } + rel2 { + to: "bg_center"; + offset: 35 -1; + relative: 0.0 1.0; + } + text { + style: "controller_style"; + min: 1 1; + align: 0.5 0.5; + } + } + description { state: "1digit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "2digit" 0.0; + inherit: "1digit" 0.0; + rel1 { + to: "bg_center"; + offset: 23 0; + } + } + } + } + programs { + program { + signal: "elm,state,1digit"; + source: "*"; + action: STATE_SET "1digit" 0.0; + target: "elm.icon"; + target: "elm.text"; + } + program { + signal: "elm,state,2digit"; + source: "*"; + action: STATE_SET "2digit" 0.0; + target: "elm.icon"; + target: "elm.text"; + } + program { + signal: "elm,state,nodigit"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "elm.icon"; + target: "elm.text"; + } + } +} diff --git a/data/changeable/groups/volumn_popup.edc b/data/changeable/groups/volumn_popup.edc new file mode 100644 index 0000000..2311905 --- /dev/null +++ b/data/changeable/groups/volumn_popup.edc @@ -0,0 +1,618 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +group { name: "setting/2finger_popup/default"; + styles{ + style { name: "custom_style"; + base: "font=Tizen:style=Regular font_size="36" align=center color=""#FFFFFF"" wtext_class=tizen"; + tag: "br" "\n"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + style { name: "outdoor_style"; + base: "font=Tizen:style=Regular font_size="25" align=center color=#FF9100 text_class=tizen"; + tag: "br" "\n"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default"; + color: 0 0 0 255; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + } + part { name: "top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 10; + max: -1 10; + fixed: 0 1; + align: 0.5 0.0; + rel2.relative: 1.0 0.0; + } + } + part { name: "bottom_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 28; + max: -1 28; + fixed: 0 1; + align: 0.5 1.0; + rel1.relative: 0.0 1.0; + } + } + part { name: "left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + max: 16 -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + max: 16 -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.icon.left_top"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 60 60; + max: 60 60; + fixed: 1 1; + align: 0 0; + rel1 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 1 1; + } + rel2 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 1 1; + } + } + } + part { name: "elm.icon.right_top"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 60 60; + max: 60 60; + fixed: 1 1; + align: 1 0; + rel1 { + to_x: "right_padding"; + to_y: "top_padding"; + relative: 0 1; + } + rel2 { + to_x: "right_padding"; + to_y: "top_padding"; + relative: 0 1; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + align: 1 0; + rel1 { + to_x: "elm.icon.right_top"; + to_y: "top_padding"; + relative: 0 1; + } + rel2 { + to_x: "elm.icon.right_top"; + to_y: "top_padding"; + relative: 0 1; + } + text { + style: "custom_style"; + align: 0 0.5; + min: 1 1; + } + } + } + part { name: "v_padding1"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 18; + max: -1 18; + fixed: 0 1; + align: 0.5 0; + rel1 { + to_y: "elm.text"; + relative: 0.0 1.0; + } + rel1 { + to_y: "elm.text"; + relative: 1.0 1.0; + } + } + } + part { name: "left_body_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 18 0; + max: 18 -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_body_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 18 0; + max: 18 -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.icon.1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 80; + fixed: 1 1; + align: 0.5 0.5; + rel1 { + to_x: "left_body_padding"; + to_y: "v_padding1"; + relative: 1 1; + offset: 0 52; + } + rel2 { + to_x: "right_body_padding"; + to_y: "v_padding1"; + relative: 0 1; + } + } + } + part { name: "v_padding2"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 10; + max: -1 10; + fixed: 0 1; + align: 0.5 0; + rel1 { + to_y: "elm.icon.1"; + relative: 0.0 1.0; + } + rel1 { + to_y: "elm.icon.1"; + relative: 1.0 1.0; + } + } + } + part { name: "elm.text.2"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: 0 40; + fixed: 1 1; + align: 0.5 0; + visible: 1; + rel1 { + to_x: "left_body_padding"; + to_y: "v_padding2"; + relative: 1 1; + offset: 0 5; + } + rel2 { + to_x: "right_body_padding"; + to_y: "v_padding2"; + relative: 0 1; + offset: 0 35; + } + text { + style: "outdoor_style"; + align: 0.5 0.5; + min: 1 1; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + programs { + program { + signal: "elm,state,outdoor.visible"; + source: "*"; + action: STATE_SET "visible" 0.0; + target: "elm.text.2"; + } + } + } +} + + +group { name: "setting/2finger_popup/default2"; + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default"; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 255; + } + } + part { name: "top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 5; + max: -1 5; + fixed: 0 1; + align: 0.5 0.0; + rel2.relative: 1.0 0.0; + } + } + part { name: "bottom_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 28; + max: -1 28; + fixed: 0 1; + align: 0.5 1.0; + rel1.relative: 0.0 1.0; + } + } + part { name: "left_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + max: 16 -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 16 0; + max: 16 -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.icon.left_top"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 60 60; + max: 60 60; + fixed: 1 1; + align: 0 0; + rel1 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 1 1; + } + rel2 { + to_x: "left_padding"; + to_y: "top_padding"; + relative: 1 1; + } + } + } + part { name: "elm.icon.right_top"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 60 60; + max: 60 60; + fixed: 1 1; + align: 1 0; + rel1 { + to_x: "right_padding"; + to_y: "top_padding"; + relative: 0 1; + } + rel2 { + to_x: "right_padding"; + to_y: "top_padding"; + relative: 0 1; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + align: 1 0; + max: 0 0; + rel1 { + to_x: "elm.icon.right_top"; + to_y: "top_padding"; + relative: 0 1; + } + rel2 { + to_x: "elm.icon.right_top"; + to_y: "top_padding"; + relative: 0 1; + } + text { + style: "custom_style"; + align: 0 0.5; + min: 1 1; + } + } + } + part { name: "v_padding1"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: -1 0; + fixed: 0 1; + align: 0.5 0; + rel1 { + to_y: "elm.text"; + relative: 0.0 1.0; + } + rel1 { + to_y: "elm.text"; + relative: 1.0 1.0; + } + } + } + part { name: "left_body_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 18 0; + max: 18 -1; + fixed: 1 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + part { name: "right_body_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 18 0; + max: 18 -1; + fixed: 1 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + part { name: "elm.icon.1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 80; + fixed: 1 1; + align: 0.5 0.0; + rel1 { + to_x: "left_body_padding"; + relative: 1 0.4; + offset: 0 -40; + } + rel2 { + to_x: "right_body_padding"; + relative: 0 0.4; + offset: 0 40; + } + } + } + part { name: "v_padding2"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 0 18; + max: -1 18; + fixed: 0 1; + align: 0.5 0; + rel1 { + to_y: "elm.icon.1"; + relative: 0.0 1.0; + } + rel1 { + to_y: "elm.icon.1"; + relative: 1.0 1.0; + } + } + } + part { name: "elm.text.2"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: 0 30; + fixed: 1 1; + align: 0.5 0; + visible: 1; + rel1 { + to_x: "left_body_padding"; + to_y: "v_padding2"; + relative: 1 1; + offset: 0 0; + } + rel2 { + to_x: "right_body_padding"; + to_y: "v_padding2"; + relative: 0 1; + } + text { + style: "outdoor_style"; + align: 0.5 0.0; + min: 1 1; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + + part { name: "lt_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 3 3; + fixed: 1 1; + align: 0.0 0.0; + rel1 { + relative: 0.0 0.0; + offset: 0.0 180; + } + rel2.relative: 0.0 0.0; + } + } + part { name: "rb_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 3 3; + fixed: 1 1; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + } + } + part { name: "c_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 1 0; + max: 1 -1; + fixed: 1 0; + align: 0.5 0.5; + } + } + part{ name:"actionbtn1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: 300 76; + rel1 { + to: "lt_padding"; + relative: 1.0 1.0; + } + rel2 { + to_x: "c_padding"; + to_y: "rb_padding"; + relative: 0.0 0.0; + } + } + } + part{ name:"actionbtn2"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + max: 300 76; + rel1 { + to_x: "c_padding"; + to_y: "lt_padding"; + relative: 1.0 1.0; + } + rel2 { + to: "rb_padding"; + relative: 0.0 0.0; + } + } + } + + part { name: "btn1"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + relative: 0.0 1.0; + } + rel2 { + to_x: "padding"; + relative: 0.0 1.0; + } + min: 0 76; + align: 0.5 1; + } + } + part { name: "padding"; + type: SPACER; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { + relative: 0.5 1.0; + } + rel2 { + relative: 0.5 1.0; + } + align: 0.5 1.0; + min: 1 0; + max: 1 0; + fixed: 1 0; + } + } + part { name: "btn2"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + to_x: "padding"; + relative: 1.0 1.0; + } + rel2 { + relative: 1.0 1.0; + } + min: 0 76; + align: 0.5 1; + } + } + + + programs { + program { + signal: "elm,state,outdoor.visible"; + source: "*"; + action: STATE_SET "visible" 0.0; + target: "elm.text.2"; + } + } + } +} diff --git a/data/changeable/tables/org.tizen.clocksetting_ChangeableColorInfo.xml b/data/changeable/tables/org.tizen.clocksetting_ChangeableColorInfo.xml new file mode 100644 index 0000000..ebe9be0 --- /dev/null +++ b/data/changeable/tables/org.tizen.clocksetting_ChangeableColorInfo.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/changeable/tables/org.tizen.clocksetting_ChangeableFontInfo.xml b/data/changeable/tables/org.tizen.clocksetting_ChangeableFontInfo.xml new file mode 100644 index 0000000..c9fe496 --- /dev/null +++ b/data/changeable/tables/org.tizen.clocksetting_ChangeableFontInfo.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/data/clocklist.xml b/data/clocklist.xml index e34687d..cd641cc 100644 --- a/data/clocklist.xml +++ b/data/clocklist.xml @@ -9,4 +9,4 @@ - + \ No newline at end of file diff --git a/data/clocksetting.edc b/data/clocksetting.edc index a48ef71..b5429af 100644 --- a/data/clocksetting.edc +++ b/data/clocksetting.edc @@ -1,19 +1,14 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + #define FONT_BLD "Tizen:style=Bold" #define FONT_MED "Tizen:style=Medium" #define FONT_ROM "Tizen:style=Roman" @@ -34,4 +29,35 @@ collections { #include "groups/empty_swallow.edc" #include "groups/thumbnail_view.edc" #include "groups/setting_indicator.edc" + + group { name: "scroller_custom_layout"; + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "scroller"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + rel1 { + relative: 0.0 0.0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + to: "bg"; + } + } + } + } + } + + + + } diff --git a/data/fake-img/portrait.png b/data/fake-img/portrait.png deleted file mode 100755 index 3ad133f..0000000 Binary files a/data/fake-img/portrait.png and /dev/null differ diff --git a/data/groups/battery.edc b/data/groups/battery.edc index b242b5a..b1f1b6a 100644 --- a/data/groups/battery.edc +++ b/data/groups/battery.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting-test/battery"; parts { part { name: "base"; diff --git a/data/groups/bg_thumbnail.edc b/data/groups/bg_thumbnail.edc index 6ec5057..2105a63 100644 --- a/data/groups/bg_thumbnail.edc +++ b/data/groups/bg_thumbnail.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting/bg_thumbnail"; images { image: "00_body_thumbnail_bg.png" COMP; diff --git a/data/groups/clock_type_layout.edc b/data/groups/clock_type_layout.edc index b9e6944..2255d22 100644 --- a/data/groups/clock_type_layout.edc +++ b/data/groups/clock_type_layout.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting-test/clock-type"; parts { diff --git a/data/groups/datefield.edc b/data/groups/datefield.edc index ca58f05..92855e7 100644 --- a/data/groups/datefield.edc +++ b/data/groups/datefield.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting-test/datetime"; parts { part { name: "base"; diff --git a/data/groups/default_inc.edc b/data/groups/default_inc.edc index 1d1f934..2638cfe 100644 --- a/data/groups/default_inc.edc +++ b/data/groups/default_inc.edc @@ -1,19 +1,28 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 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 + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * - * http://www.apache.org/licenses/LICENSE-2.0 + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * 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. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. * -*/ + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ //*** This file defines the width, height (not color!) for W widgets *** // diff --git a/data/groups/edc_image_macro.edc b/data/groups/edc_image_macro.edc index c6f50dd..d328d67 100644 --- a/data/groups/edc_image_macro.edc +++ b/data/groups/edc_image_macro.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #define RESOURCE_IMAGE( FILE_NAME ) \ group { \ name: FILE_NAME; \ @@ -30,15 +24,16 @@ } \ } -#define RESOURCE_IMAGE_LOSSY( FILE_NAME ) \ +#define RESOURCE_IMAGE2( FILE_NAME ) \ group { \ name: FILE_NAME; \ - images.image: FILE_NAME LOSSY 85; \ + images.image: FILE_NAME COMP; \ parts { \ part { name: "image"; \ description { \ state: "default" 0.0; \ image.normal: FILE_NAME; \ + color: 255 144 0 255; \ aspect: 1 1; \ aspect_preference: BOTH; \ } \ diff --git a/data/groups/edc_images.edc b/data/groups/edc_images.edc index 8903afa..735b385 100644 --- a/data/groups/edc_images.edc +++ b/data/groups/edc_images.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include "edc_image_macro.edc" RESOURCE_IMAGE("b_settings_change_clock.png"); @@ -37,3 +31,4 @@ RESOURCE_IMAGE("b_setting_wallpaper.png"); RESOURCE_IMAGE("b_setting_display.png"); RESOURCE_IMAGE("b_setting_double-press.png"); RESOURCE_IMAGE("b_settings_profile.png"); +RESOURCE_IMAGE2("text_input_icon.png"); diff --git a/data/groups/empty_swallow.edc b/data/groups/empty_swallow.edc index adbc47c..bad98f9 100644 --- a/data/groups/empty_swallow.edc +++ b/data/groups/empty_swallow.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting-empty/swallow"; parts { part { name: "empty.swallow"; diff --git a/data/groups/genlist_layout.edc b/data/groups/genlist_layout.edc index f6ee936..655b213 100644 --- a/data/groups/genlist_layout.edc +++ b/data/groups/genlist_layout.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting/genlist/layout"; parts { part { diff --git a/data/groups/genlist_macro.edc b/data/groups/genlist_macro.edc index ad38821..b7c6605 100644 --- a/data/groups/genlist_macro.edc +++ b/data/groups/genlist_macro.edc @@ -1,19 +1,28 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 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 + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * - * http://www.apache.org/licenses/LICENSE-2.0 + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * 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. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. * -*/ + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ /* * vim:ts=3 diff --git a/data/groups/genlist_setting.edc b/data/groups/genlist_setting.edc index c19ea9e..c48f51a 100644 --- a/data/groups/genlist_setting.edc +++ b/data/groups/genlist_setting.edc @@ -1,19 +1,28 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 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 + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * - * http://www.apache.org/licenses/LICENSE-2.0 + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * 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. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. * -*/ + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ /* * vim:ts=3 @@ -45,3 +54,90 @@ group { name: "elm/genlist/item/setting_indicator/default"; PROGRAMS_LIST( target: "elm.icon"; ) } + +// ***************************** LIst *****************************************/ +#define LIST_PADDING_LEFT_SIZE 16 +#define LIST_PADDING_RIGHT_SIZE 16 +#define LIST_PADDING_DEFAULT_SIZE 16 +#define LIST_PADDING_R_ICON_RIGHT_SIZE 8 +#define LIST_PADDING_R_ICON_DEFAULT_SIZE 8 +#define LIST_GROUPINDEX_PADDING_TOP_SIZE 1 +#define LIST_GROUPINDEX_PADDING_BOTTOM_SIZE 1 +#define LIST_1LINE_HEIGHT 90 +#define LIST_1LINE_PADDING_TOP_SIZE 22 +#define LIST_1LINE_PADDING_BOTTOM_SIZE 23 +#define LIST_2LINE_PADDING_TOP_SIZE 8 +#define LIST_2LINE_PADDING_BOTTOM_SIZE 9 +#define LIST_TEXT_MAIN_SIZE 38 +#define LIST_TEXT_SUB_SIZE 24 +#define LIST_TEXT_SWEEP_SIZE 32 +#define LIST_DIVIDER_HEIGHT 50 +#define LIST_DIVIDER_PADDING_SIZE 8 +#define LIST_GROUPINDEX_HEIGHT 28 +#define LIST_GROUPINDEX_TEXT_SIZE 24 +#define LIST_HIDDEN_HEIGHT 76 +#define LIST_MULTILINE_HEIGHT 44 + +styles { + style { name: "list_text_sub_multiline_normal_setting"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color="LIST_TEXT_SUB_NORMAL_COLOR" text_class=tizen wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_sub_multiline_dim_setting"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color="LIST_TEXT_SUB_DIM_COLOR" text_class=tizen wrap=mixed"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_main_normal_setting"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="LIST_TEXT_MAIN_NORMAL_COLOR" text_class=list_item ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } + style { name: "list_text_main_dim_setting"; + base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="LIST_TEXT_MAIN_DIM_COLOR" text_class=list_item ellipsis=1.0"; + STYLE_TAG + STYLE_TAG_MATCH + } +} + +group { name: "elm/genlist/item/multiline.2text.1icon/default"; + PROLOG_LIST + data.item: "texts" "elm.text.1 elm.text.2"; + data.item: "contents" "elm.swallow.colorbar elm.icon"; + + parts { + PART_LIST_BG + PART_LIST_BOTTOMLINE + PART_LIST_PADDINGS( + LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE, + LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE + ) + PART(TEXTBLOCK, "elm.text.1", + DESC_LRTB("elm.padding.left", "elm.padding.icon.left", "elm.padding.top", "elm.padding.text1.bottom", +// min: 0 LIST_2LINE_MAIN_HEIGHT; + min: 0 10; + PARAM_TEXT("list_text_main_normal_setting",) + ) DESCRIPIONS_TEXT("list_text_main_dim_setting", "list_text_main_normal_setting") + ) + PART(SPACER, "elm.padding.text1.bottom", + DESC_B("elm.text.2", min: 0 4; max: -1 4; ) + ) + PART(TEXTBLOCK, "elm.text.2", + DESC_LRB("elm.padding.left", "elm.padding.icon.left", "elm.padding.bottom", +// min: 0 LIST_2LINE_SUB_HEIGHT; + min: 0 10; + PARAM_TEXT("list_text_sub_multiline_normal_setting",) + ) DESCRIPIONS_TEXT("list_text_sub_multiline_dim_setting", "list_text_sub_multiline_normal_setting") + ) + PART(SPACER, "elm.padding.icon.left", + DESC_R("elm.icon", + min: LIST_PADDING_DEFAULT_SIZE 0; max: LIST_PADDING_DEFAULT_SIZE -1; + ) + ) + PART(SWALLOW, "elm.icon", DESC_R("elm.padding.right", ) ) + + } + PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2"; + target: "elm.icon"; ) +} diff --git a/data/groups/images/text_input_icon.png b/data/groups/images/text_input_icon.png new file mode 100644 index 0000000..b3ab367 Binary files /dev/null and b/data/groups/images/text_input_icon.png differ diff --git a/data/groups/index.edc b/data/groups/index.edc index 23286fc..8c78aac 100644 --- a/data/groups/index.edc +++ b/data/groups/index.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting-test/index"; parts { diff --git a/data/groups/progress.edc b/data/groups/progress.edc index ea94178..3cf9b93 100644 --- a/data/groups/progress.edc +++ b/data/groups/progress.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting-test/progress"; parts { part { name: "base"; diff --git a/data/groups/setting_indicator.edc b/data/groups/setting_indicator.edc index 1ec7d9a..29f9321 100644 --- a/data/groups/setting_indicator.edc +++ b/data/groups/setting_indicator.edc @@ -1,19 +1,19 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * 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 + * 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. + * 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 SAMSUNG_SANS "Tizen" #define SAMSUNG_SANS_CLASS "tizen" diff --git a/data/groups/theme_default_inc.edc b/data/groups/theme_default_inc.edc index ea34729..08fc4ce 100644 --- a/data/groups/theme_default_inc.edc +++ b/data/groups/theme_default_inc.edc @@ -1,19 +1,28 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 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 + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * - * http://www.apache.org/licenses/LICENSE-2.0 + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * 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. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. * -*/ + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ //*** This file defines the color codes for default theme *** // diff --git a/data/groups/thumbnail_view.edc b/data/groups/thumbnail_view.edc index 18af133..b4cad45 100644 --- a/data/groups/thumbnail_view.edc +++ b/data/groups/thumbnail_view.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "thumbnail_page"; parts { @@ -34,7 +28,7 @@ group { scale: 1; description { state: "default" 0.0; - min: 158 158; + min: 160 160; rel1 {relative: 0.0 0.0; to: "bg";} rel2 {relative: 1.0 0.5; to: "bg";} align: 0.5 0.5; @@ -46,7 +40,7 @@ group { scale: 1; description { state: "default" 0.0; - min: 158 158; + min: 160 160; rel1 {relative: 0.0 0.5; to: "bg";} rel2 {relative: 1.0 1.0; to: "bg";} align: 0.5 0.5; @@ -59,15 +53,49 @@ group { name: "thumbnail"; parts { part { - name: "thumb"; - type: SWALLOW; + name: "thumb_bg"; + type: RECT; scale: 1; description { state: "default" 0.0; - max: 158 158; - min: 158 158; + max: 157 157; + min: 157 157; rel1.relative: 0.0 0.0; rel2.relative: 1.0 1.0; + color: 255 255 255 255; + } + description { + state: "white" 0.0; + max: 157 157; + min: 157 157; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 255 255 255 255; + } + } + part { + name: "thumb_inner_bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + max: 155 155; + min: 155 155; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + color: 0 0 0 255; + } + } + part { + name: "thumb"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + max: 155 155; + min: 155 155; + rel1 {relative: 0.0 0.0; to: "thumb_bg"; offset: 1 1;} + rel2 {relative: 1.0 1.0; to: "thumb_bg"; offset: -1 -1;} } } part { @@ -100,10 +128,36 @@ group { color: 0 0 0 76; } } + part { + name: "thumb_select"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + max: 157 157; + min: 157 157; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + } } programs { program { + name: "thumb_bg,default"; + signal: "thumb_bg,default"; + source: "thumb_bg"; + action: STATE_SET default"" 0.0; + target: "thumb_bg"; + } + program { + name: "thumb_bg,white"; + signal: "thumb_bg,white"; + source: "thumb_bg"; + action: STATE_SET "white" 0.0; + target: "thumb_bg"; + } + program { name: "thumbnail,opacity"; signal: "thumbnail,opacity"; source: "thumb_op"; diff --git a/data/groups/two_finger_control.edc b/data/groups/two_finger_control.edc index a029e39..46a6624 100644 --- a/data/groups/two_finger_control.edc +++ b/data/groups/two_finger_control.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting/layout/button_controller2/default"; images { image: "tw_number_controller_button_bg.png" COMP; diff --git a/data/groups/volumn_popup.edc b/data/groups/volumn_popup.edc index 7f65a27..f22a74f 100644 --- a/data/groups/volumn_popup.edc +++ b/data/groups/volumn_popup.edc @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ group { name: "setting/2finger_popup/default"; styles{ style { name: "custom_style"; @@ -429,7 +423,8 @@ group { name: "setting/2finger_popup/default2"; part { name: "elm.icon.1"; type: SWALLOW; scale: 1; - description { state: "default" 0.0; + description { + state: "default" 0.0; min: 0 80; fixed: 1 1; align: 0.5 0.0; @@ -437,7 +432,26 @@ group { name: "setting/2finger_popup/default2"; to_x: "left_body_padding"; to_y: "v_padding1"; relative: 1 1; - offset: 0 52; + //offset: 0 52; // CHANGE + offset: 0 10; + } + rel2 { + to_x: "right_body_padding"; + to_y: "v_padding1"; + relative: 0 1; + } + } + description { + state: "default_long" 0.0; + min: 0 80; + fixed: 1 1; + align: 0.5 0.0; + rel1 { + to_x: "left_body_padding"; + to_y: "v_padding1"; + relative: 1 1; + offset: 0 65; // CHANGE + //offset: 0 10; } rel2 { to_x: "right_body_padding"; @@ -445,7 +459,7 @@ group { name: "setting/2finger_popup/default2"; relative: 0 1; } } - } + } part { name: "v_padding2"; type: SPACER; scale: 1; @@ -620,6 +634,21 @@ group { name: "setting/2finger_popup/default2"; action: STATE_SET "visible" 0.0; target: "elm.text.2"; } + + program { + name: "show_normal_popup"; + signal: "set,popup,small"; + source: "*"; + action: STATE_SET "default" 0.0; + target: "elm.icon.1"; + } + program { + name: "show_long_popup"; + signal: "set,popup,long"; + source: "*"; + action: STATE_SET "default_long" 0.0; + target: "elm.icon.1"; + } } } } diff --git a/data/media-data-sdk/settings/Previews/B_Touch.ogg b/data/media-data-sdk/settings/Previews/B_Touch.ogg new file mode 100755 index 0000000..b4ea1cb Binary files /dev/null and b/data/media-data-sdk/settings/Previews/B_Touch.ogg differ diff --git a/data/media-data-sdk/settings/Previews/Media_preview_Over_the_horizon_B2.ogg b/data/media-data-sdk/settings/Previews/Media_preview_Over_the_horizon_B2.ogg new file mode 100644 index 0000000..a5d2dbc Binary files /dev/null and b/data/media-data-sdk/settings/Previews/Media_preview_Over_the_horizon_B2.ogg differ diff --git a/data/media-data-sdk/settings/Previews/Silent_mode_off.ogg b/data/media-data-sdk/settings/Previews/Silent_mode_off.ogg new file mode 100755 index 0000000..5c1de99 Binary files /dev/null and b/data/media-data-sdk/settings/Previews/Silent_mode_off.ogg differ diff --git a/data/media-data/settings/Alarms/Alarm_Ticktac.ogg b/data/media-data/settings/Alarms/Alarm_Ticktac.ogg old mode 100644 new mode 100755 diff --git a/data/media-data/settings/Alarms/Alarms_on_call.ogg b/data/media-data/settings/Alarms/Alarms_on_call.ogg old mode 100644 new mode 100755 diff --git a/data/media-data/settings/Emergency/Low_power_ringtone.ogg b/data/media-data/settings/Emergency/Low_power_ringtone.ogg old mode 100644 new mode 100755 diff --git a/data/media-data/settings/Previews/B_Touch.ogg b/data/media-data/settings/Previews/B_Touch.ogg old mode 100644 new mode 100755 diff --git a/data/media-data/settings/Previews/Silent_mode_off.ogg b/data/media-data/settings/Previews/Silent_mode_off.ogg old mode 100644 new mode 100755 diff --git a/data/media-data/settings/Wallpapers/btn_icons/settings_wallpaper_selected.png b/data/media-data/settings/Wallpapers/btn_icons/settings_wallpaper_selected.png new file mode 100644 index 0000000..46e0f87 Binary files /dev/null and b/data/media-data/settings/Wallpapers/btn_icons/settings_wallpaper_selected.png differ diff --git a/include/setting-battery.h b/include/setting-battery.h index 6b0a434..0084a64 100755 --- a/include/setting-battery.h +++ b/include/setting-battery.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-battery.h * diff --git a/include/setting-bluetooth.h b/include/setting-bluetooth.h index 28e7ddc..3c63a96 100644 --- a/include/setting-bluetooth.h +++ b/include/setting-bluetooth.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-bluetooth.h * diff --git a/include/setting-clock.h b/include/setting-clock.h index 9249403..526e8dc 100755 --- a/include/setting-clock.h +++ b/include/setting-clock.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-clock.h * @@ -41,8 +35,8 @@ #define CLOCK_DATE_AND_TIME_COUNT 3 -#define IDLE_CLOCK_CATEGROY2 "http://tizen.org/category/idle-clock" -#define IDLE_CLOCK_CATEGROY "com.samsung.wmanager.WATCH_CLOCK" +#define IDLE_CLOCK_CATEGROY2 "org.tizen.wmanager.WATCH_CLOCK" +#define IDLE_CLOCK_CATEGROY "http://tizen.org/category/wearable_clock" enum { HOURLY_ALERT_OFF, diff --git a/include/setting-common-sound.h b/include/setting-common-sound.h index 0de54ae..a70b6aa 100644 --- a/include/setting-common-sound.h +++ b/include/setting-common-sound.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-common-sound.h * @@ -28,6 +22,7 @@ #include #include #include +//#include #define SETTING_DEFAULT_RINGTONE_PATH "/opt/share/settings/Ringtones" diff --git a/include/setting-display.h b/include/setting-display.h index 82e5663..e31a08c 100755 --- a/include/setting-display.h +++ b/include/setting-display.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-display.h * @@ -70,6 +64,11 @@ enum { SETTING_DISPLAY_EDIT_APPS }; +enum { + SETTING_DISPLAY_FONT_STYLE, + SETTING_DISPLAY_FONT_SIZE +}; + char * _gl_display_title_get(void *data, Evas_Object *obj, const char *part); Evas_Object * _gl_display_check_get(void *data, Evas_Object *obj, const char *part); @@ -82,7 +81,7 @@ void _display_gl_font_cb(void *data, Evas_Object *obj, void *event_info); void _display_gl_font_style_cb(void *data, Evas_Object *obj, void *event_info); void _display_gl_font_size_cb(void *data, Evas_Object *obj, void *event_info); void _show_font_list(void* data); -void _show_font_style_list(void* data); +int _show_font_style_list(void* data); void _show_font_size_list(void* data); void _display_gl_rotate_screen_cb(void *data, Evas_Object *obj, void *event_info); void _show_rotate_screen_list(void* data); diff --git a/include/setting-double.h b/include/setting-double.h index d78fef8..0d40d59 100644 --- a/include/setting-double.h +++ b/include/setting-double.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-double.h * diff --git a/include/setting-homescreen.h b/include/setting-homescreen.h index 40599b4..0745757 100755 --- a/include/setting-homescreen.h +++ b/include/setting-homescreen.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-display.h * diff --git a/include/setting-info.h b/include/setting-info.h index 2f5d802..dcbf7d9 100755 --- a/include/setting-info.h +++ b/include/setting-info.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* @@ -29,7 +23,7 @@ #include #include #include -#include +#include #define ITEM_COUNT 2 #define ABOUT_ITEM_COUNT 5 diff --git a/include/setting-language.h b/include/setting-language.h index 5000db4..77c3a51 100644 --- a/include/setting-language.h +++ b/include/setting-language.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-language.h * @@ -35,6 +29,7 @@ #define LANGLIST_FILE_PATH_IN_RW "/opt/usr/data/setting/langlist.xml" #define LANGLIST_FILE_PATH_IN_RO "/usr/apps/org.tizen.clocksetting/data/langlist.xml" +//#define LANGLIST_FILE_PATH "/usr/apps/org.tizen.clocksetting/data/langlist_all.xml" #define ITEM_COUNT 2 diff --git a/include/setting-motion.h b/include/setting-motion.h index abfda9a..055fafd 100644 --- a/include/setting-motion.h +++ b/include/setting-motion.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-motion.h * diff --git a/include/setting-notification.h b/include/setting-notification.h index 40e9f42..d2d09c2 100644 --- a/include/setting-notification.h +++ b/include/setting-notification.h @@ -1,19 +1,9 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * setting-notification.h * - * 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. - * -*/ + * Created on: Feb 14, 2014 + * Author: min-hoyun + */ #ifndef SETTING_NOTIFICATION_H_ #define SETTING_NOTIFICATION_H_ diff --git a/include/setting-privacy.h b/include/setting-privacy.h index f3fda2b..9ee4422 100644 --- a/include/setting-privacy.h +++ b/include/setting-privacy.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-privacy.h * diff --git a/include/setting-profile.h b/include/setting-profile.h index ded620c..3c98574 100755 --- a/include/setting-profile.h +++ b/include/setting-profile.h @@ -1,19 +1,16 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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 + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. * - * http://www.apache.org/licenses/LICENSE-2.0 + * setting-profile.h (s-health) * - * 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. - * -*/ + */ #ifndef SETTING_PROFILE_H_ #define SETTING_PROFILE_H_ diff --git a/include/setting-reset.h b/include/setting-reset.h index 1dff0e0..ead78e3 100644 --- a/include/setting-reset.h +++ b/include/setting-reset.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-reset.h * diff --git a/include/setting-safety.h b/include/setting-safety.h index 49ce252..d525881 100755 --- a/include/setting-safety.h +++ b/include/setting-safety.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-safety.h * diff --git a/include/setting-sound.h b/include/setting-sound.h index 39f7fd0..e216be7 100644 --- a/include/setting-sound.h +++ b/include/setting-sound.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-sound.h * @@ -32,7 +26,8 @@ #include #define ITEM_SIZE 6 -#define RINGTONE_MAX_COUNT 5 +//#define RINGTONE_MAX_COUNT 5 +#define RINGTONE_MAX_COUNT 6 #define TOUCH_SOUND_ENABLE 1 #define TOUCH_SOUND_DISABLE 0 diff --git a/include/setting-theme.h b/include/setting-theme.h new file mode 100644 index 0000000..718bdd8 --- /dev/null +++ b/include/setting-theme.h @@ -0,0 +1,47 @@ +/* + * setting-theme.h + * + * Created on: Aug 7, 2014 + * Author: min-hoyun + */ + +#ifndef SETTING_THEME_H_ +#define SETTING_THEME_H_ + +#include + +#include "util.h" + +#define COLOR_THEME_COUNT 2 + +typedef struct _theme_data +{ + appdata * ad; + + Evas_Object * theme_layout; + Evas_Object * mapbuf[COLOR_THEME_COUNT]; + Evas_Object * scroller; + Evas_Object * index; + + Elm_Object_Item *last_it; + Elm_Object_Item *new_it; + + Elm_Object_Item *it[COLOR_THEME_COUNT]; + + int curr_theme_id; + int curr_page; + int min_page; + int max_page; + int curr_theme_type; +} Theme_Data; + +typedef struct _thumbnail_data { + int id; + int theme_type; + int prev_img_path; +} Thumbnail_Data; + + +void setting_theme_show_thumbnail(void * data, Evas_Object * obj, void * event_info); + +#endif /* SETTING_THEME_H_ */ diff --git a/include/setting-volume.h b/include/setting-volume.h index a03119b..0a027a2 100644 --- a/include/setting-volume.h +++ b/include/setting-volume.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-volume.h * diff --git a/include/setting.h b/include/setting.h index 57eeefb..cff8d89 100755 --- a/include/setting.h +++ b/include/setting.h @@ -1,23 +1,19 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef __SETTING_H__ #define __SETTING_H__ +#define FEATURE_SETTING_CHANGEABLE + #include #include #include @@ -30,7 +26,7 @@ #include #include -//#include "util.h" +#include "util.h" #define NUM_OF_SETTING_MAIN_MENU 11 @@ -59,6 +55,7 @@ void safety_cb(void *data, Evas_Object *obj, void *event_info); void reset_gear_cb(void *data, Evas_Object *obj, void *event_info); void gear_info_cb(void *data, Evas_Object *obj, void *event_info); void profile_cb(void *data, Evas_Object *obj, void *event_info); +void keyboard_cb(void *data, Evas_Object *obj, void *event_info); static void _update_main_menu_title( void * data ); diff --git a/include/setting_control_bt.h b/include/setting_control_bt.h index bc33ada..32d2daf 100644 --- a/include/setting_control_bt.h +++ b/include/setting_control_bt.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef _SETTING_CONTROL_BT_H_ #define _SETTING_CONTROL_BT_H_ diff --git a/include/setting_control_haptic.h b/include/setting_control_haptic.h index 51d555e..18279c1 100755 --- a/include/setting_control_haptic.h +++ b/include/setting_control_haptic.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef _SETTING_CONTROL_HAPTIC_ #define _SETTING_CONTROL_HAPTIC_ diff --git a/include/setting_data_vconf.h b/include/setting_data_vconf.h index ddfb7ab..1800eae 100644 --- a/include/setting_data_vconf.h +++ b/include/setting_data_vconf.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef _SETTING_DATA_VCONF_H_ #define _SETTING_DATA_VCONF_H_ @@ -21,7 +15,7 @@ #include -void unregister_vconf_changing(const char *vconf, vconf_callback_fn cb); +int unregister_vconf_changing(const char *vconf, vconf_callback_fn cb); int register_vconf_changing(const char *vconf, vconf_callback_fn cb, void *data); #endif diff --git a/include/setting_debug.h b/include/setting_debug.h index 1e25116..f8b2f49 100644 --- a/include/setting_debug.h +++ b/include/setting_debug.h @@ -1,25 +1,19 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #define _DLOG_USED #ifdef _DLOG_USED #include -#ifdef LOG_TAG 16 +#ifdef LOG_TAG #undef LOG_TAG #define LOG_TAG "W-SETTING" #endif diff --git a/include/setting_indicator_util.h b/include/setting_indicator_util.h index ccb2e82..78415bc 100755 --- a/include/setting_indicator_util.h +++ b/include/setting_indicator_util.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef _SETTING_INDICATOR_UTIL_H_ #define _SETTING_INDICATOR_UTIL_H_ diff --git a/include/setting_view_toast.h b/include/setting_view_toast.h index e3b2c36..c58afed 100644 --- a/include/setting_view_toast.h +++ b/include/setting_view_toast.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef _SETTING_VIEW_TOAST_H_ #define _SETTING_VIEW_TOAST_H_ diff --git a/include/util.h b/include/util.h index 2bd45b0..9ab6c59 100755 --- a/include/util.h +++ b/include/util.h @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #ifndef _UTIL_H_ #define _UTIL_H_ @@ -26,6 +20,14 @@ #define IMG_DIR "/usr/apps/org.tizen.clocksetting/data/images/" #define EDJE_PATH "/usr/apps/org.tizen.clocksetting/res/edje/clocksetting.edj" +#ifndef FEATURE_SETTING_CHANGEABLE +#define FEATURE_SETTING_CHANGEABLE +#endif + +#ifdef FEATURE_SETTING_CHANGEABLE +#define COLOR_INFO_TABLE "/usr/apps/org.tizen.clocksetting/shared/res/tables/org.tizen.clocksetting_ChangeableColorInfo.xml" +#endif + #define TRUE 1 #define FALSE 0 @@ -120,6 +122,10 @@ typedef struct _appdata int MENU_TYPE; Evas_Object *indicator_layout; + +#ifdef FEATURE_SETTING_CHANGEABLE + Ea_Theme_Color_Table *color_table; +#endif } appdata; typedef struct _Item_Data diff --git a/org.tizen.clocksetting.efl b/org.tizen.clocksetting.efl new file mode 100644 index 0000000..d0cc13e --- /dev/null +++ b/org.tizen.clocksetting.efl @@ -0,0 +1,68 @@ +org.tizen.clocksetting org.tizen.indicator rw---- ------ +org.tizen.clocksetting sound_server rw---- ------ +org.tizen.clocksetting org.tizen.clock r-x--- ------ +org.tizen.clocksetting ail::db rw---- ------ +org.tizen.clocksetting xorg rw---- ------ +org.tizen.clocksetting system::use_internet r----- ------ +org.tizen.clocksetting isf rwx--- ------ +org.tizen.clocksetting immvibed rw---- ------ +org.tizen.clocksetting tts-server r-x--- ------ +org.tizen.clocksetting dbus rwx--- ------ +org.tizen.clocksetting system::vconf_inhouse rw---- ------ +org.tizen.clocksetting system::vconf_system rwxat- ------ +org.tizen.clocksetting factory-reset r-x--- ------ +org.tizen.clocksetting org.tizen.setting::system rw---- ------ +org.tizen.clocksetting system::vconf_multimedia rw---- ------ +org.tizen.clocksetting org.tizen.setting::private rw---- ------ +org.tizen.clocksetting system::vconf_network rw---- ------ +org.tizen.clocksetting pkgmgr::db rwx--l ------ +org.tizen.clocksetting aul::launch --x--- ------ +org.tizen.clocksetting wrt_launchpad_d r----- ------ +org.tizen.clocksetting syspopup::db r----l ------ +org.tizen.clocksetting w-manager-service --x--- ------ +org.tizen.clocksetting media-data::db r----l ------ +org.tizen.clocksetting dfms-kernel r-x--- ------ +org.tizen.clocksetting aul::terminate --x--- ------ +org.tizen.clocksetting org.tizen.shealth -w---- ------ +org.tizen.clocksetting org.tizen.w-music-player rw---- ------ +org.tizen.clocksetting csc-feature r----- ------ +org.tizen.clocksetting org.tizen.w-taskmanager -w---- ------ +org.tizen.clocksetting svi-data r-x--- ------ +org.tizen.clocksetting wrt_launchpad_daemon r----- ------ +org.tizen.clocksetting default-fonts-fc-sdk::config rw---- ------ +org.tizen.clocksetting org.tizen.w-home rwx--- ------ +org.tizen.clocksetting deviced::haptic rw---- ------ +org.tizen.clocksetting deviced::display rw---- ------ + +system org.tizen.clocksetting rw---- ------ +display_wd org.tizen.clocksetting -w---- ------ +org.tizen.app-tray org.tizen.clocksetting rwx--- ------ +org.tizen.quickpanel org.tizen.clocksetting rwx--- ------ +org.tizen.indicator org.tizen.clocksetting rwx--- ------ +aul org.tizen.clocksetting r-x--- ------ +org.tizen.clocksetting system::homedir rwxat- ------ +org.tizen.clocksetting system::vconf rwxat- ------ +org.tizen.clocksetting system::media rwxat- ------ +org.tizen.clocksetting system::share rwxat- ------ +org.tizen.clocksetting pulseaudio rwxat- ------ +e17 org.tizen.clocksetting -w---- ------ +org.tizen.clocksetting sys-assert::core rwxat- ------ +org.tizen.clocksetting privacy-manager::db r----l ------ +org.tizen.clocksetting system::vconf_setting rw---- ------ +org.tizen.clocksetting system::vconf_privacy rw---- ------ +org.tizen.clocksetting system::vconf_misc rw---- ------ +org.tizen.clocksetting device::app_logging -w---- ------ +org.tizen.clocksetting device::sys_logging -w---- ------ +org.tizen.clocksetting org.tizen.w-idle-clock-weather2 rwx--- ------ +org.tizen.clocksetting org.tizen.idle-clock-pedometer rwx--- ------ +org.tizen.clocksetting org.tizen.w-idle-clock-shortcut2 rwx--- ------ +org.tizen.clocksetting org.tizen.idle-clock-event rwx--- ------ +org.tizen.clocksetting org.tizen.idle-clock-dual rwx--- ------ +org.tizen.clocksetting org.tizen.w-idle-clock-analog3 rwx--- ------ +org.tizen.clocksetting org.tizen.w-idle-clock-analog1 rwx--- ------ +org.tizen.clocksetting org.tizen.idle-clock-digital rwx--- ------ +org.tizen.clocksetting org.tizen.w-idle-clock-analog2 rwx--- ------ +org.tizen.clocksetting ecore::lock rwxat- ------ +org.tizen.clocksetting bt-service rw---- ------ +org.tizen.clocksetting bt-service::platform -w---- ------ +org.tizen.clocksetting bt-service::public -w---- ------ diff --git a/org.tizen.clocksetting.rule b/org.tizen.clocksetting.rule deleted file mode 100644 index 65b02d0..0000000 --- a/org.tizen.clocksetting.rule +++ /dev/null @@ -1,45 +0,0 @@ -org.tizen.clocksetting org.tizen.indicator rw -org.tizen.clocksetting sound_server rw -org.tizen.clocksetting org.tizen.clock rx -org.tizen.clocksetting ail::db rw -org.tizen.clocksetting xorg rw -org.tizen.clocksetting system::use_internet r -org.tizen.clocksetting isf rwx -org.tizen.clocksetting immvibed rw -org.tizen.clocksetting tts-server rx -org.tizen.clocksetting dbus rwx -org.tizen.clocksetting system::vconf_inhouse rw -org.tizen.clocksetting system::vconf_system rwxat -org.tizen.clocksetting bt-service::admin rw -org.tizen.clocksetting bt-service::manager rw -org.tizen.clocksetting factory-reset rx -org.tizen.clocksetting org.tizen.setting::system rw -org.tizen.clocksetting system::vconf_multimedia rw -org.tizen.clocksetting org.tizen.setting::private rw -org.tizen.clocksetting system::vconf_network rw -org.tizen.clocksetting pkgmgr::db rwx -org.tizen.clocksetting aul::launch x -org.tizen.clocksetting wrt_launchpad_d r -org.tizen.clocksetting syspopup::db rl -org.tizen.clocksetting w-manager-service x -org.tizen.clocksetting media-data::db rl -org.tizen.clocksetting dfms-kernel rx -org.tizen.clocksetting aul::terminate x -org.tizen.clocksetting org.tizen.shealth w -org.tizen.clocksetting org.tizen.w-music-player rw -org.tizen.clocksetting csc-feature r -org.tizen.clocksetting org.tizen.w-taskmanager w -org.tizen.clocksetting svi-data rx -org.tizen.clocksetting wrt_launchpad_daemon r -org.tizen.clocksetting sap x - -#object rule. -system org.tizen.clocksetting rw -display_wd org.tizen.clocksetting w -org.tizen.app-tray org.tizen.clocksetting rwx -org.tizen.quickpanel org.tizen.clocksetting rwx -org.tizen.indicator org.tizen.clocksetting rwx -aul org.tizen.clocksetting rx - -# default include -org.tizen.clocksetting app.default include diff --git a/org.tizen.clocksetting.xml b/org.tizen.clocksetting.xml index 721a2b7..c3e9980 100644 --- a/org.tizen.clocksetting.xml +++ b/org.tizen.clocksetting.xml @@ -1,9 +1,9 @@ - MyoungJune Park + Minho Yun Settings - + org.tizen.clocksetting.png org.tizen.clocksetting_small.png @@ -76,7 +76,7 @@ - + diff --git a/packaging/org.tizen.setting.spec b/packaging/org.tizen.setting.spec index ec84a3a..c554b50 100644 --- a/packaging/org.tizen.setting.spec +++ b/packaging/org.tizen.setting.spec @@ -1,6 +1,6 @@ %define PREFIX /usr/apps/org.tizen.clocksetting Name: org.tizen.clocksetting -Version: 0.0.2 +Version: 0.0.1 Release: 1 Summary: Tizen W ClockSetting application URL: http://slp-source.sec.samsung.net @@ -44,6 +44,8 @@ BuildRequires: pkgconfig(mm-player) BuildRequires: pkgconfig(mm-sound) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(capi-media-wav-player) +#BuildRequires: pkgconfig(capability-manager) +BuildRequires: model-build-features BuildRequires: pkgconfig(ail) BuildRequires: pkgconfig(aul) @@ -54,6 +56,11 @@ W ClockSetting application %setup -q %build +#%if 0export CFLAGS="${CFLAGS} -fPIC -fvisibility=hidden -fvisibility-inlines-hidden" +#CFLAGS+=" -fvisibility=hidden"; export CFLAGS +#CXXFLAGS+=" -fvisibility=hidden"; export CXXFLAGS +#FFLAGS+=" -fvisibility=hidden"; export FFLAGS + %if 0%{?tizen_build_binary_release_type_eng} export CFLAGS+=" -DTIZEN_ENGINEER_MODE" export CXXFLAGS+=" -DTIZEN_ENGINEER_MODE" @@ -66,10 +73,16 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" %endif LDFLAGS+="-Wl,--rpath=%{PREFIX}/lib -Wl,--as-needed -Wl,--hash-style=both"; export LDFLAGS -cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DFEATURE_SETTING_SDK=YES \ +cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \ +%if 0%{?sec_build_binary_sdk} + -DFEATURE_SETTING_SDK=YES \ +%endif %ifarch %{ix86} -DFEATURE_SETTING_EMUL=YES \ %endif +#%if "%{?sec_build_project_name}" == "rinato_eur_open" +# -DFEATURE_SETTING_TIZENW2=YES \ +#%endif make %{?jobs:-j%jobs} @@ -181,7 +194,7 @@ GOPTION="-g 6514" vconftool $GOPTION set -t bool db/setting/sound/touch_sounds_bak "1" -s org.tizen.setting::private vconftool $GOPTION set -t bool db/setting/sound/sound_lock_bak "1" -s org.tizen.setting::private #resetWallpaper - vconftool $GOPTION set -t string db/menu_widget/bgset "/opt/share/settings/Wallpapers/wallpaper_01.png" -f -s system::vconf_inhouse + vconftool $GOPTION set -t string db/menu_widget/bgset "" -f -s system::vconf_inhouse vconftool $GOPTION set -t string db/idle_lock/bgset "/opt/usr/share/settings/Wallpapers/Lock_default.png" -f -s system::vconf_inhouse #resetTilt @@ -220,7 +233,7 @@ GOPTION="-g 6514" %ifarch %{arm} vconftool $GOPTION set -t int db/setting/lcd_backlight_normal "10" -s system::vconf_system %else - vconftool $GOPTION set -t int db/setting/lcd_backlight_normal "0" -s system::vconf_system + vconftool $GOPTION set -t int db/setting/lcd_backlight_normal "10" -s system::vconf_system %endif vconftool $GOPTION set -t int db/setting/lcd_timeout_normal_backup "10" -s org.tizen.setting::private vconftool $GOPTION set -t int db/setting/automatic_brightness_level "60" -f -s org.tizen.setting::private @@ -318,9 +331,10 @@ GOPTION="-g 6514" vconftool $GOPTION set -t string db/setting/timezone_id "Asia/Seoul" -s system::vconf_inhouse - touch /opt/etc/initial_localtime - ln -sf /opt/etc/initial_localtime /opt/etc/localtime - ln -sf /opt/etc/localtime /etc/localtime + rm -f /opt/etc/localtime + ln -s /usr/share/zoneinfo/Asia/Seoul /opt/etc/localtime + rm -f /etc/localtime + ln -s /opt/etc/localtime /etc/localtime #resetAccessibility vconftool $GOPTION set -t bool db/setting/accessibility/high_contrast "0" -s system::vconf_system @@ -553,6 +567,15 @@ GOPTION="-g 6514" vconftool $GOPTION set -t int db/setting/pws_lcd_timeout "10" -s system::vconf_setting vconftool $GOPTION set -t string db/setting/pws_ringtone "/opt/share/settings/Emergency/Low_power_ringtone.ogg" -s system::vconf_setting + vconftool $GOPTION set -t string db/wms/clocks_set_idle "org.tizen.idle-clock-digital" -u 5000 -s system::vconf + vconftool $GOPTION set -t int db/wms/home_bg_mode 0 -u 5000 -s system::vconf + vconftool $GOPTION set -t string db/wms/home_bg_palette "000000" -u 5000 -s system::vconf + vconftool $GOPTION set -t string db/wms/home_bg_wallpaper "wallpaper_01.png" -u 5000 -s system::vconf + vconftool $GOPTION set -t string db/wms/home_bg_gallery "/opt/usr/media/.bgwallpaper.jpg" -u 5000 -s system::vconf + + # Idle clock edit mode ( with Home ) + vconftool $GOPTION set -t int db/setting/idle_clock_show "0" -s system::vconf_inhouse + if [ -d /opt/share/settings ] then rm -rf /opt/share/settings @@ -568,13 +591,18 @@ mkdir -p /opt/usr/data/setting %files %manifest %{name}.manifest -/etc/smack/accesses2.d/org.tizen.clocksetting.rule +/etc/smack/accesses.d/org.tizen.clocksetting.efl %defattr(-,root,root,-) %attr(-,inhouse,inhouse) %dir %{PREFIX}/data +#%{PREFIX}/bin/* +#%{PREFIX}/res/* /usr/share/packages/* /usr/share/icons/default/small/* +#/usr/share/packages/%{name}.xml +#/usr/apps/org.tizen.clocksetting/data/images/* /usr/apps/org.tizen.clocksetting/* +#/usr/apps/org.tizen.clocksetting/shared/res/* /opt/usr/share/settings/* /usr/share/Safety.zip /opt/usr/data/setting/* diff --git a/po/ar.po b/po/ar.po index cd00778..4b587e2 100755 --- a/po/ar.po +++ b/po/ar.po @@ -472,3 +472,9 @@ msgstr "ملف التعريف" msgid "IDS_COM_POP_PROCESSING" msgstr "جاري المعالجة..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "جعله مرئيًا" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "إدخال النص" diff --git a/po/as.po b/po/as.po index e686223..3107bba 100755 --- a/po/as.po +++ b/po/as.po @@ -472,3 +472,9 @@ msgstr "প্ৰ'ফাইল" msgid "IDS_COM_POP_PROCESSING" msgstr "প্ৰক্ৰিয়াৰত..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "দৃশ্যমান কৰক" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "পাঠ ইনপুট" diff --git a/po/az.po b/po/az.po index 67ca2f9..af04a6f 100755 --- a/po/az.po +++ b/po/az.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Emal edilir..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Görünən et" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Mətn girişi" diff --git a/po/bg.po b/po/bg.po index 4f3c52b..d0a148c 100755 --- a/po/bg.po +++ b/po/bg.po @@ -472,3 +472,9 @@ msgstr "Профил" msgid "IDS_COM_POP_PROCESSING" msgstr "Обработване..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Прав. видимо" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Въвеж. текст" diff --git a/po/bn.po b/po/bn.po index b8f73d8..18c479e 100755 --- a/po/bn.po +++ b/po/bn.po @@ -472,3 +472,9 @@ msgstr "প্রোফাইল" msgid "IDS_COM_POP_PROCESSING" msgstr "প্রক্রিয়াকরণ চলছে..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "দৃশ্যমান করুন" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "পাঠ্য ইনপুট" diff --git a/po/ca.po b/po/ca.po index 2b57e43..48886b8 100755 --- a/po/ca.po +++ b/po/ca.po @@ -472,3 +472,9 @@ msgstr "Perfil" msgid "IDS_COM_POP_PROCESSING" msgstr "Processant..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Fer visible" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Entrada text" diff --git a/po/cs.po b/po/cs.po index b4671d6..231d169 100755 --- a/po/cs.po +++ b/po/cs.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Probíhá zpracování..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Učinit vid." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Zadat text" diff --git a/po/da.po b/po/da.po index 41c942e..f27187e 100755 --- a/po/da.po +++ b/po/da.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Behandler ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Gør synlig" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Tekstindt." diff --git a/po/de.po b/po/de.po index e2ccc66..c605328 100755 --- a/po/de.po +++ b/po/de.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Verarbeitung läuft ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Sicht. mach." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Texteingabe" diff --git a/po/el_GR.po b/po/el_GR.po index bab8823..67c8d41 100755 --- a/po/el_GR.po +++ b/po/el_GR.po @@ -472,3 +472,9 @@ msgstr "Προφίλ" msgid "IDS_COM_POP_PROCESSING" msgstr "Επεξεργασία..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Ορατό" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Εισ. κειμέν." diff --git a/po/en.po b/po/en.po index a733173..614ef1a 100755 --- a/po/en.po +++ b/po/en.po @@ -472,3 +472,9 @@ msgstr "Profile" msgid "IDS_COM_POP_PROCESSING" msgstr "Processing..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Make visible" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Text input" diff --git a/po/en_PH.po b/po/en_PH.po index 5c125b2..800048a 100755 --- a/po/en_PH.po +++ b/po/en_PH.po @@ -472,3 +472,9 @@ msgstr "Profile" msgid "IDS_COM_POP_PROCESSING" msgstr "Processing..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Make visible" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Text input" diff --git a/po/en_US.po b/po/en_US.po index 81f4036..12c2a4d 100755 --- a/po/en_US.po +++ b/po/en_US.po @@ -472,3 +472,9 @@ msgstr "Profile" msgid "IDS_COM_POP_PROCESSING" msgstr "Processing..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Make visible" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Text input" diff --git a/po/es_ES.po b/po/es_ES.po index 64aa3da..e017e82 100755 --- a/po/es_ES.po +++ b/po/es_ES.po @@ -472,3 +472,9 @@ msgstr "Perfil" msgid "IDS_COM_POP_PROCESSING" msgstr "Procesando..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Hacer visible" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Introd texto" diff --git a/po/es_US.po b/po/es_US.po index 2fcae22..fef923f 100755 --- a/po/es_US.po +++ b/po/es_US.po @@ -254,7 +254,7 @@ msgid "IDS_ST_BODY_FONTSTYLE_ROSEMARY" msgstr "Rosemary" msgid "IDS_GALLERY_TPOP_HOME_BACKGROUND_SET" -msgstr "Fondo de inicio configurado." +msgstr "Fondo de pantalla configurado." msgid "IDS_LCKSCN_HEADER_PIN" msgstr "PIN" @@ -425,7 +425,7 @@ msgid "IDS_ST_MBODY_MANAGE_APPS_ABB" msgstr "Admin. aplicac." msgid "IDS_ST_POP_YOU_CAN_CHECK_ANNOUNCEMENTS_REGARDING_OPEN_SOURCE_LICENCES_BY_FOLLOWING_THE_STEPS_BELOW_N1_GO_TO_SETTINGS_GEAR_INFO_N2_SELECT_USB_MSG" -msgstr "Puede consultar las declaraciones relacionadas con las licencias de código abierto de la siguiente manera:\\n1. Vaya a Configuración > Información de Gear.\n2. Seleccione Depuración USB.\n3. Conecte su Gear a la PC.\n4. Pulse Aceptar en la ventana emergente de depuración USB que aparece en Samsung Gear.\n5. Con sdb cmd, descargue el archivo %1$s en su PC. Para ello, ejecute cmd e ingrese %2$s en el campo de entrada.\n\nVisite http://developer.samsung.com para descargar e instalar Samsung Gear SDK y usar sdb." +msgstr "Puede consultar las declaraciones relacionadas con las licencias de código abierto de la siguiente manera:\n1. Vaya a Configuración > Información de Gear.\n2. Seleccione Depuración USB.\n3. Conecte su Gear a la PC.\n4. Pulse Aceptar en la ventana emergente de depuración USB que aparece en Samsung Gear.\n5. Con sdb cmd, descargue el archivo %1$s en su PC. Para ello, ejecute cmd e ingrese %2$s en el campo de entrada.\n\nVisite http://developer.samsung.com para descargar e instalar Samsung Gear SDK y usar sdb." msgid "IDS_ST_OPT_RECENT_APPS_ABB" msgstr "Apl. recien." @@ -472,3 +472,9 @@ msgstr "Perfil" msgid "IDS_COM_POP_PROCESSING" msgstr "Procesando..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Hacer visib." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Intr. texto" diff --git a/po/et.po b/po/et.po index c1c51b8..e5b0c34 100755 --- a/po/et.po +++ b/po/et.po @@ -472,3 +472,9 @@ msgstr "Profiil" msgid "IDS_COM_POP_PROCESSING" msgstr "Töötlemine..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Muuda näht." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Tek. sisest." diff --git a/po/eu.po b/po/eu.po index 000b70f..50664bf 100755 --- a/po/eu.po +++ b/po/eu.po @@ -472,3 +472,9 @@ msgstr "Profila" msgid "IDS_COM_POP_PROCESSING" msgstr "Prozesatzen..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Jarri ikusgai" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Tes. idaztea" diff --git a/po/fa.po b/po/fa.po index dc1163b..653c6da 100755 --- a/po/fa.po +++ b/po/fa.po @@ -472,3 +472,9 @@ msgstr "نمایه" msgid "IDS_COM_POP_PROCESSING" msgstr "در حال انجام..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "قابل مشاهده" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ورود متن" diff --git a/po/fi.po b/po/fi.po index 3278592..dedf472 100755 --- a/po/fi.po +++ b/po/fi.po @@ -472,3 +472,9 @@ msgstr "Profiili" msgid "IDS_COM_POP_PROCESSING" msgstr "Käsitellään..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Muuta näkyv." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Tekstin syöttö" diff --git a/po/fr.po b/po/fr.po index 13c058c..3b4c54a 100755 --- a/po/fr.po +++ b/po/fr.po @@ -164,7 +164,7 @@ msgid "IDS_ST_OPT_SOUND_MODE_ABB" msgstr "Mode son" msgid "IDS_ST_OPT_STRONG_M_INTENSITY" -msgstr "Fort" +msgstr "Forte" msgid "IDS_ST_OPT_WEAK_M_INTENSITY" msgstr "Faible" @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "En cours..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Rendre vis." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Saisie texte" diff --git a/po/fr_CA.po b/po/fr_CA.po index 592f277..e843d53 100755 --- a/po/fr_CA.po +++ b/po/fr_CA.po @@ -164,7 +164,7 @@ msgid "IDS_ST_OPT_SOUND_MODE_ABB" msgstr "Mode son" msgid "IDS_ST_OPT_STRONG_M_INTENSITY" -msgstr "Fort" +msgstr "Forte" msgid "IDS_ST_OPT_WEAK_M_INTENSITY" msgstr "Faible" @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Traitement…" + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Rendre vis." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Saisie texte" diff --git a/po/ga.po b/po/ga.po index c794d00..1236f75 100755 --- a/po/ga.po +++ b/po/ga.po @@ -472,3 +472,9 @@ msgstr "Próifíl" msgid "IDS_COM_POP_PROCESSING" msgstr "Ag próiseáil..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Déan infheicthe" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Ionchur téacs" diff --git a/po/gl.po b/po/gl.po index 4fc5fee..23e9d8a 100755 --- a/po/gl.po +++ b/po/gl.po @@ -472,3 +472,9 @@ msgstr "Perfil" msgid "IDS_COM_POP_PROCESSING" msgstr "Procesando..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Facer visib." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Entrada txt." diff --git a/po/gu.po b/po/gu.po index 0bb71ce..6188708 100755 --- a/po/gu.po +++ b/po/gu.po @@ -472,3 +472,9 @@ msgstr "પ્રોફાઇલ" msgid "IDS_COM_POP_PROCESSING" msgstr "પ્રક્રિયા શરૂ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "દૃશ્યમાન બનાવો" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ટેક્સ્ટ દાખલ" diff --git a/po/he.po b/po/he.po index 63df1f2..208837d 100755 --- a/po/he.po +++ b/po/he.po @@ -472,3 +472,9 @@ msgstr "פרופיל" msgid "IDS_COM_POP_PROCESSING" msgstr "מעבד..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "הפוך לגלוי" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "קלט טקסט" diff --git a/po/hi.po b/po/hi.po index 1cac561..d738ae9 100755 --- a/po/hi.po +++ b/po/hi.po @@ -472,3 +472,9 @@ msgstr "प्रोफ़ाइल" msgid "IDS_COM_POP_PROCESSING" msgstr "प्रक्रिया हो रही है..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "दृश्यमान करे" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "टेक्स्ट इनपुट" diff --git a/po/hr.po b/po/hr.po index 1e5ad1b..9ceeebd 100755 --- a/po/hr.po +++ b/po/hr.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Procesiranje..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Učini vidlj." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Unos teksta" diff --git a/po/hu.po b/po/hu.po index 469f759..b4a8240 100755 --- a/po/hu.po +++ b/po/hu.po @@ -293,7 +293,7 @@ msgid "IDS_SM_TAB4_SOFTWARE_VERSION" msgstr "Szoftver verziója" msgid "IDS_HS_MBODY_HOME_ICON_SIZE_ABB" -msgstr "K.lap ik. mérete" +msgstr "Ikonok mérete" msgid "IDS_ST_OPT_EDIT_HOME_SCREEN_ABB" msgstr "Kez.kép. szerk." @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Feldolgozás folyamatban" + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Legyen láth." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Szöv.bevitel" diff --git a/po/hy.po b/po/hy.po index 2c9491f..2809473 100755 --- a/po/hy.po +++ b/po/hy.po @@ -472,3 +472,9 @@ msgstr "Պրոֆիլ" msgid "IDS_COM_POP_PROCESSING" msgstr "Ընթացքում է" + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Դրձնել տսնլի" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Տեքստ ներած." diff --git a/po/id.po b/po/id.po index aba7a00..d46e7bb 100755 --- a/po/id.po +++ b/po/id.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Memproses..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Buat tlihat" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Input teks" diff --git a/po/is.po b/po/is.po index b06bc78..3a85094 100755 --- a/po/is.po +++ b/po/is.po @@ -472,3 +472,9 @@ msgstr "Prófíll" msgid "IDS_COM_POP_PROCESSING" msgstr "Vinnsla í gangi..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Sýnilegt" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Innsl. texta" diff --git a/po/it_IT.po b/po/it_IT.po index 1304ad7..bf99156 100755 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -293,7 +293,7 @@ msgid "IDS_SM_TAB4_SOFTWARE_VERSION" msgstr "Vers. software" msgid "IDS_HS_MBODY_HOME_ICON_SIZE_ABB" -msgstr "Dimensione icone" +msgstr "Dimens. icone" msgid "IDS_ST_OPT_EDIT_HOME_SCREEN_ABB" msgstr "Modifica Home" @@ -472,3 +472,9 @@ msgstr "Profilo" msgid "IDS_COM_POP_PROCESSING" msgstr "Elaborazione..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Rendi vis." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Modal. testo" diff --git a/po/ja_JP.po b/po/ja_JP.po index 1f4b7aa..47da3b4 100755 --- a/po/ja_JP.po +++ b/po/ja_JP.po @@ -472,3 +472,9 @@ msgstr "プロフィール" msgid "IDS_COM_POP_PROCESSING" msgstr "処理中..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "公開" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "テキスト入力" diff --git a/po/ka.po b/po/ka.po index eeaf8bc..8f528d0 100755 --- a/po/ka.po +++ b/po/ka.po @@ -472,3 +472,9 @@ msgstr "პროფილი" msgid "IDS_COM_POP_PROCESSING" msgstr "მუშავდება..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "გამოჩენა" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "აკრეფა" diff --git a/po/kk.po b/po/kk.po index 30d8678..c32cde0 100755 --- a/po/kk.po +++ b/po/kk.po @@ -472,3 +472,9 @@ msgstr "Профиль" msgid "IDS_COM_POP_PROCESSING" msgstr "Өңделуде..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Көрін-й ету" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Мәтін енгізу" diff --git a/po/km.po b/po/km.po index 23e6d1a..a2be5fd 100755 --- a/po/km.po +++ b/po/km.po @@ -472,3 +472,9 @@ msgstr "ទម្រង់" msgid "IDS_COM_POP_PROCESSING" msgstr "កំពុង​ដំណើរការ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ធ្វើ​ឲ្យ​មើលឃើញ" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ការបញ្ចូល​អត្ថបទ" diff --git a/po/kn.po b/po/kn.po index f5f369c..455182a 100755 --- a/po/kn.po +++ b/po/kn.po @@ -472,3 +472,9 @@ msgstr "ಪ್ರೊಫೈಲ್" msgid "IDS_COM_POP_PROCESSING" msgstr "ಪ್ರಕ್ರಿಯೆಗೊಳ್ಳುತ್ತಿದೆ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ಕಾಣುವಂತೆ ಮಾಡಿ" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ಪಠ್ಯ ಇನ್‌ಪುಟ್‌" diff --git a/po/ko_KR.po b/po/ko_KR.po index 84d710e..b5c2065 100755 --- a/po/ko_KR.po +++ b/po/ko_KR.po @@ -472,3 +472,9 @@ msgstr "프로필" msgid "IDS_COM_POP_PROCESSING" msgstr "진행 중..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "검색 허용" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "텍스트 입력" diff --git a/po/lo.po b/po/lo.po index 7b00cd5..7b15978 100755 --- a/po/lo.po +++ b/po/lo.po @@ -164,7 +164,7 @@ msgid "IDS_ST_OPT_SOUND_MODE_ABB" msgstr "ໂໝດສຽງ" msgid "IDS_ST_OPT_STRONG_M_INTENSITY" -msgstr "ເຂັ້ມແຂງ" +msgstr "ແຮງ" msgid "IDS_ST_OPT_WEAK_M_INTENSITY" msgstr "ອ່ອນ" @@ -472,3 +472,9 @@ msgstr "ໂປຣໄຟລ໌" msgid "IDS_COM_POP_PROCESSING" msgstr "ກຳລັງ​ປະມວນ​ຜົນ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ເຮັດໃຫ້ເຫັນໄດ້" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ປ້ອນຂໍ້ຄວາມ" diff --git a/po/lt.po b/po/lt.po index 21daaa7..ec2f122 100755 --- a/po/lt.po +++ b/po/lt.po @@ -472,3 +472,9 @@ msgstr "Profilis" msgid "IDS_COM_POP_PROCESSING" msgstr "Apdorojama..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Rodyti" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Teksto įves." diff --git a/po/lv.po b/po/lv.po index 41495ce..252f186 100755 --- a/po/lv.po +++ b/po/lv.po @@ -472,3 +472,9 @@ msgstr "Profils" msgid "IDS_COM_POP_PROCESSING" msgstr "Notiek apstrāde..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Redzama" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Teksta iev." diff --git a/po/mk.po b/po/mk.po index 7253d4f..d69a50d 100755 --- a/po/mk.po +++ b/po/mk.po @@ -472,3 +472,9 @@ msgstr "Профил" msgid "IDS_COM_POP_PROCESSING" msgstr "Обработување..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Да е видлив" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Внесув.текст" diff --git a/po/ml.po b/po/ml.po index e94c1c3..74d41df 100755 --- a/po/ml.po +++ b/po/ml.po @@ -41,7 +41,7 @@ msgid "IDS_OP_BODY_VISIBILITY" msgstr "ദൃശ്യപരത" msgid "IDS_QP_BUTTON_BLUETOOTH" -msgstr "ബ്ലൂടൂ." +msgstr "ബ്ലൂടൂത്ത്" msgid "IDS_SMEMO_BUTTON_SET_TIME_ABB" msgstr "സമയം ക്രമീകരിക്കുക" @@ -472,3 +472,9 @@ msgstr "പ്രൊഫൈൽ" msgid "IDS_COM_POP_PROCESSING" msgstr "പ്രോസസ്സുചെയ്യുന്നു..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ദൃശ്യമാക്കുക" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ടെക്സ്റ്റ്‌ ഇന്‍പുട്ട്" diff --git a/po/mn_MN.po b/po/mn_MN.po new file mode 100644 index 0000000..a03a9bb --- /dev/null +++ b/po/mn_MN.po @@ -0,0 +1,3 @@ + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Бичвэр оруул" diff --git a/po/mr.po b/po/mr.po index 002f344..e3d307f 100755 --- a/po/mr.po +++ b/po/mr.po @@ -472,3 +472,9 @@ msgstr "प्रोफाइल" msgid "IDS_COM_POP_PROCESSING" msgstr "प्रक्रिया सुरू आहे..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "दृश्‍यमान करा" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "मजकूर ईनपुट" diff --git a/po/ms.po b/po/ms.po index 936544d..e9ddf76 100755 --- a/po/ms.po +++ b/po/ms.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Memproses…" + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Buat kelihatan" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Input teks" diff --git a/po/my.po b/po/my.po index 39cb262..45704e2 100755 --- a/po/my.po +++ b/po/my.po @@ -472,3 +472,9 @@ msgstr "အေၾကာင္းအခ်က္" msgid "IDS_COM_POP_PROCESSING" msgstr "လုပ္ငန္းေဆာင္ရြက္ေနပါသည္…." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ျမင္ႏိုင္ေအာင္ လုပ္ပါ" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ျဖည့္ထည့္ထားေသာ စာသား" diff --git a/po/nb.po b/po/nb.po index ca38831..e2415f9 100755 --- a/po/nb.po +++ b/po/nb.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Behandler..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Gjør synlig" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Tekstinndata" diff --git a/po/ne.po b/po/ne.po index 49b4908..8be46b7 100755 --- a/po/ne.po +++ b/po/ne.po @@ -472,3 +472,9 @@ msgstr "प्रोफाइल" msgid "IDS_COM_POP_PROCESSING" msgstr "प्रक्रिया चलाइरहेको..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "दृश्‍यमान बनाउनुहोस्" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "पाठ इन्पुट" diff --git a/po/nl.po b/po/nl.po index b089a72..d6529a6 100755 --- a/po/nl.po +++ b/po/nl.po @@ -472,3 +472,9 @@ msgstr "Profiel" msgid "IDS_COM_POP_PROCESSING" msgstr "Verwerken..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Zichtb maken" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Tekstinvoer" diff --git a/po/or.po b/po/or.po index 02ca826..43b052a 100755 --- a/po/or.po +++ b/po/or.po @@ -472,3 +472,9 @@ msgstr "ପ୍ରୋଫାଇଲ୍" msgid "IDS_COM_POP_PROCESSING" msgstr "ପ୍ରକ୍ରିୟାରତ କରୁଛି..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ଦୃଶ୍ୟଲବ୍ଧ କରାନ୍ତୁ" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ଟେକ୍ସଟ ଇନ୍‌ପୁଟ୍‌" diff --git a/po/pa.po b/po/pa.po index da7d857..9ab0409 100755 --- a/po/pa.po +++ b/po/pa.po @@ -410,7 +410,7 @@ msgid "IDS_HEALTH_OPT_PROFILE_ABB" msgstr "ਪ੍ਰੋਫਾਈਲ" msgid "IDS_ST_BODY_YOU_CAN_CHECK_NOTICES_REGARDING_SAFETY_INFORMATION_BY_FOLLOWING_THE_STEPS_BELOW_N_N1_GO_TO_SETTINGS_MSG" -msgstr "ਤੁਸੀਂ ਹੇਠਾਂ ਦਿੱਤੇ ਗਏ ਚਰਣਾਂ ਦਾ ਪਾਲਨ ਕਰਦੇ ਹੋਏ ਸੁਰੱਖਿਆ ਜਾਣਕਾਰੀ ਦੇ ਬਾਰੇ ਵਿੱਚ ਸੂਚਨਾਵਾਂ ਦੀ ਜਾਂਚ ਕਰ ਸਕਦੇ ਹੋ।\n\n1. ਸੈੱਟਿੰਗਸ > ਗੇਅਰ ਜਾਣਕਾਰੀ ਤੇ ਜਾਉ।\n2. USB ਡੀਬਗਿੰਗ ਦਾ ਚੋਣ ਕਰੋ।\n3. ਆਪਣੇ PC ਦੇ ਨਾਲ ਆਪਣੇ ਗੇਅਰ 2 ਨੂੰ ਕਨੈਕਟ ਕਰੋ।\n4. USB ਡੀਬਗਿੰਗ ਪੌਪ-ਅਪ ਤੇ ਓਕੇ ਟੈਪ ਕਰੋ ਜੋ ਤੁਹਾਡੇ ਗੇਅਰ 2 ਤੇ ਪ੍ਰਗਟ ਹੁੰਦਾ ਹੈ।\n5. sdb cmd ਦਾ ਉਪਯੋਗ ਕਰਦੇ ਹੋਏ (sdb cmd ਦਾ ਉਪਯੋਗ ਕਰਨ ਦੇ ਲਈ SDK ਸਥਾਪਿਤ ਕਰੋ ), ਇਨਪੁਟ ਖੇਤਰ ਵਿੱਚ “sdb pull /usr/share/Safety.zip c:\\Safety.zip” ਚਲਾਉਂਦੇ ਅਤੇ ਦਾਖਲ ਕਰਦੇ ਹੋਏ ਆਪਣੇ ਕੰਪਿਊਟਰ ਤੇ /usr/share/Safety.zip ਫਾਈਲ ਡਾਉਨਲੋਡ ਕਰੋ।\n6. zip ਫਾਈਲ c:\\Safety folder ਤੇ ਖੋਲ੍ਹੋ ਅਤੇ ਨਵੀਨਤਮ ਸੁਰੱਖਿਆ ਜਾਣਕਾਰੀ ਪੜ੍ਹਣ ਦੇ ਲਈ ਖੋਲ੍ਹੀ ਗਈ html ਫਾਈਲ ਖੋਲ੍ਹੋ।\n\nhttp://developer.samsung.com ਤੇ ਜਾਉ, sdb ਦਾ ਉਪਯੋਗ ਕਰਨ ਦੇ ਲਈ Samsung Gear SDK ਸਥਾਪਿਤ ਅਤੇ ਡਾਉਨਲੋਡ ਕਰੋ।" +msgstr "ਤੁਸੀਂ ਹੇਠਾਂ ਦਿੱਤੇ ਗਏ ਚਰਣਾਂ ਦਾ ਪਾਲਨ ਕਰਦੇ ਹੋਏ ਸੁਰੱਖਿਆ ਜਾਣਕਾਰੀ ਦੇ ਬਾਰੇ ਵਿੱਚ ਸੂਚਨਾਵਾਂ ਦੀ ਜਾਂਚ ਕਰ ਸਕਦੇ ਹੋ।\n\n1. ਸੈੱਟਿੰਗਸ > ਗੇਅਰ ਜਾਣਕਾਰੀ ਤੇ ਜਾਉ।\n2. USB ਡੀਬਗਿੰਗ ਦੀ ਚੋਣ ਕਰੋ।\n3. ਆਪਣੇ PC ਦੇ ਨਾਲ ਆਪਣੇ ਗੇਅਰ 2 ਨੂੰ ਕਨੈਕਟ ਕਰੋ।\n4. USB ਡੀਬਗਿੰਗ ਪੌਪ-ਅਪ ਤੇ ਓਕੇ ਟੈਪ ਕਰੋ ਜੋ ਤੁਹਾਡੇ ਗੇਅਰ 2 ਤੇ ਪ੍ਰਗਟ ਹੁੰਦਾ ਹੈ।\n5. sdb cmd ਦਾ ਉਪਯੋਗ ਕਰਦੇ ਹੋਏ (sdb cmd ਦਾ ਉਪਯੋਗ ਕਰਨ ਦੇ ਲਈ SDK ਸਥਾਪਿਤ ਕਰੋ ), ਇਨਪੁਟ ਖੇਤਰ ਵਿੱਚ “sdb pull /usr/share/Safety.zip c:\\Safety.zip” ਚਲਾਉਂਦੇ ਅਤੇ ਦਾਖਲ ਕਰਦੇ ਹੋਏ ਆਪਣੇ ਕੰਪਿਊਟਰ ਤੇ /usr/share/Safety.zip ਫਾਈਲ ਡਾਉਨਲੋਡ ਕਰੋ।\n6. zip ਫਾਈਲ c:\\Safety folder ਤੇ ਖੋਲ੍ਹੋ ਅਤੇ ਨਵੀਨਤਮ ਸੁਰੱਖਿਆ ਜਾਣਕਾਰੀ ਪੜ੍ਹਣ ਦੇ ਲਈ ਖੋਲ੍ਹੀ ਗਈ html ਫਾਈਲ ਖੋਲ੍ਹੋ।\n\nhttp://developer.samsung.com ਤੇ ਜਾਉ, sdb ਦਾ ਉਪਯੋਗ ਕਰਨ ਦੇ ਲਈ Samsung Gear SDK ਸਥਾਪਿਤ ਅਤੇ ਡਾਉਨਲੋਡ ਕਰੋ।" msgid "IDS_ST_TPOP_VOLUME_CURRENTLY_SET_TO_0" msgstr "ਵਾੱਲਿਊਮ ਵਰਤਮਾਨ ਵਿੱਚ 0 ਤੇ ਸੈੱਟ ਹੈ।" @@ -472,3 +472,9 @@ msgstr "ਪ੍ਰੋਫਾਈਲ" msgid "IDS_COM_POP_PROCESSING" msgstr "ਪ੍ਰਕਿਰਿਆ ਹੋ ਰਹੀ ਹੈ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ਦ੍ਰਿਸ਼ਮਾਨ ਬਣਾਉ" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ਟੈਕਸਟ ਇਨਪੁਟ" diff --git a/po/pl.po b/po/pl.po index 3687d9a..4b7cc58 100755 --- a/po/pl.po +++ b/po/pl.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Przetwarzanie..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Wł. widoczn." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Wpr. tekstu" diff --git a/po/pt_BR.po b/po/pt_BR.po index e7a4ab8..480cae6 100755 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -472,3 +472,9 @@ msgstr "Perfil" msgid "IDS_COM_POP_PROCESSING" msgstr "Processando…" + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Tornar vis." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Ent. texto" diff --git a/po/pt_PT.po b/po/pt_PT.po index e46f73d..3d5860e 100755 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -472,3 +472,9 @@ msgstr "Perfil" msgid "IDS_COM_POP_PROCESSING" msgstr "A processar..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Torn visível" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Intro texto" diff --git a/po/ro.po b/po/ro.po index 9563750..50e2bb4 100755 --- a/po/ro.po +++ b/po/ro.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Se procesează..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Set. vizibil" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Introd. text" diff --git a/po/ru_RU.po b/po/ru_RU.po index b8c38a0..e3dd525 100755 --- a/po/ru_RU.po +++ b/po/ru_RU.po @@ -26,7 +26,7 @@ msgid "IDS_LCKSCN_BODY_PATTERN" msgstr "Узор" msgid "IDS_LCKSCN_BODY_PRIVACY_LOCK_ABB" -msgstr "Защита лич. дан." +msgstr "Безопасность" msgid "IDS_LCKSCN_BODY_SEE_PATTERN_ABB" msgstr "Просм. рис." @@ -134,7 +134,7 @@ msgid "IDS_ST_BUTTON_CLOCK" msgstr "Часы" msgid "IDS_ST_BUTTON_GEAR_INFO" -msgstr "Сведения о Gear" +msgstr "Сведения" msgid "IDS_ST_BUTTON_LANGUAGE" msgstr "Язык" @@ -472,3 +472,9 @@ msgstr "Профиль" msgid "IDS_COM_POP_PROCESSING" msgstr "Обработка..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Отобразить" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Ввод текста" diff --git a/po/si.po b/po/si.po index d15c4c7..ecaba70 100755 --- a/po/si.po +++ b/po/si.po @@ -472,3 +472,9 @@ msgstr "පැතිකඩ" msgid "IDS_COM_POP_PROCESSING" msgstr "සකසමින්..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "දෘශ්‍ය කරන්න" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "පෙළ ආදානය" diff --git a/po/sk.po b/po/sk.po index 8c7c0c4..df2d6a5 100755 --- a/po/sk.po +++ b/po/sk.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Prebieha spracovanie..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Zviditeľniť" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Text. vstup" diff --git a/po/sl.po b/po/sl.po index 16ee54a..c7215db 100755 --- a/po/sl.po +++ b/po/sl.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Obdelujem..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Vidna" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Vn. besedila" diff --git a/po/sq.po b/po/sq.po index 2fca49e..46b4f0b 100755 --- a/po/sq.po +++ b/po/sq.po @@ -472,3 +472,9 @@ msgstr "Profili" msgid "IDS_COM_POP_PROCESSING" msgstr "Duke përpunuar..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Bëj të duk." + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Futja tekst" diff --git a/po/sr.po b/po/sr.po index 3d26ae6..428625a 100755 --- a/po/sr.po +++ b/po/sr.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Obrada..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Vidljivo" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Unos teksta" diff --git a/po/sv.po b/po/sv.po index 76cca9c..349bc19 100755 --- a/po/sv.po +++ b/po/sv.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Bearbetar..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Gör synlig" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Textinmatn." diff --git a/po/ta.po b/po/ta.po index daeb209..482e8a8 100755 --- a/po/ta.po +++ b/po/ta.po @@ -254,8 +254,8 @@ msgid "IDS_ST_BODY_FONTSTYLE_ROSEMARY" msgstr "ரோஸ்மெரி" msgid "IDS_GALLERY_TPOP_HOME_BACKGROUND_SET" -msgstr "முகப்பு பின்னணியை அமைக்கவும்." - +msgstr "முகப்பு பின்னணி அமைக்கப்பட்டது." + msgid "IDS_LCKSCN_HEADER_PIN" msgstr "PIN" @@ -472,3 +472,9 @@ msgstr "ப்ரொஃபைல்" msgid "IDS_COM_POP_PROCESSING" msgstr "செயலில்..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "புலப்பட செய்க" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "உரை உள்ளீடு" diff --git a/po/te.po b/po/te.po index 93f966f..8071c37 100755 --- a/po/te.po +++ b/po/te.po @@ -472,3 +472,9 @@ msgstr "ప్రొఫైల్" msgid "IDS_COM_POP_PROCESSING" msgstr "ప్రాసెస్ చేస్తోంది..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "కనిపించేలా చేయి" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "టెక్స్ట్ ఇన్‌పుట్" diff --git a/po/th.po b/po/th.po index f4b887d..f133523 100755 --- a/po/th.po +++ b/po/th.po @@ -472,3 +472,9 @@ msgstr "โปรไฟล์" msgid "IDS_COM_POP_PROCESSING" msgstr "ดำเนิน​การ..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "ให้มองเห็น" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "การใส่ตัวอักษร" diff --git a/po/tl.po b/po/tl.po index ee1e433..35bc7b0 100755 --- a/po/tl.po +++ b/po/tl.po @@ -472,3 +472,9 @@ msgstr "Profile" msgid "IDS_COM_POP_PROCESSING" msgstr "Pinoproseso..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Gawing nakikita" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Text input" diff --git a/po/tr_TR.po b/po/tr_TR.po index 6f87274..af7dcf9 100755 --- a/po/tr_TR.po +++ b/po/tr_TR.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Uygulanıyor..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Görünür yap" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Metin girişi" diff --git a/po/uk.po b/po/uk.po index 9ef31ce..2fe3ddd 100755 --- a/po/uk.po +++ b/po/uk.po @@ -472,3 +472,9 @@ msgstr "Профіль" msgid "IDS_COM_POP_PROCESSING" msgstr "Обробка..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Зроб.видимим" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Введ. тексту" diff --git a/po/ur.po b/po/ur.po index 9122bed..9df9089 100755 --- a/po/ur.po +++ b/po/ur.po @@ -472,3 +472,9 @@ msgstr "پروفائل" msgid "IDS_COM_POP_PROCESSING" msgstr "پروسیسنگ" + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "مرئی بنائیں" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "ٹیکسٹ ان پٹ" diff --git a/po/uz.po b/po/uz.po index ec145dd..efa826f 100755 --- a/po/uz.po +++ b/po/uz.po @@ -472,3 +472,9 @@ msgstr "Profil" msgid "IDS_COM_POP_PROCESSING" msgstr "Bajarilmoqda..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Ko‘rinadigan" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Matn kirit" diff --git a/po/vi.po b/po/vi.po index 18626c3..7c140bd 100755 --- a/po/vi.po +++ b/po/vi.po @@ -472,3 +472,9 @@ msgstr "Hồ sơ" msgid "IDS_COM_POP_PROCESSING" msgstr "Đang xử lý.." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "Hiển thị" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "Nhập văn bản" diff --git a/po/zh_CN.po b/po/zh_CN.po index 7771e82..a7be9bc 100755 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -472,3 +472,9 @@ msgstr "个人资料" msgid "IDS_COM_POP_PROCESSING" msgstr "处理中..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "显示" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "文本输入" diff --git a/po/zh_HK.po b/po/zh_HK.po index 6d311c3..92290ea 100755 --- a/po/zh_HK.po +++ b/po/zh_HK.po @@ -472,3 +472,9 @@ msgstr "個人資料" msgid "IDS_COM_POP_PROCESSING" msgstr "正在處理..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "使可被搜尋" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "文字輸入" diff --git a/po/zh_TW.po b/po/zh_TW.po index 12f140a..dd5b96d 100755 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -472,3 +472,9 @@ msgstr "個人資料" msgid "IDS_COM_POP_PROCESSING" msgstr "正在處理..." + +msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB" +msgstr "設為可被搜尋" + +msgid "IDS_ST_MBODY_TEXT_INPUT_ABB" +msgstr "文字輸入" diff --git a/src/setting-battery.c b/src/setting-battery.c index a143b00..de8d2d4 100755 --- a/src/setting-battery.c +++ b/src/setting-battery.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-battery.c * diff --git a/src/setting-bluetooth.c b/src/setting-bluetooth.c index f396278..cccb7c7 100644 --- a/src/setting-bluetooth.c +++ b/src/setting-bluetooth.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-bluetooth.c * @@ -21,16 +15,19 @@ * Author: min-hoyun */ +#include + #include "setting-bluetooth.h" #include "setting_control_bt.h" #include "setting_data_vconf.h" +#include "setting-common-sound.h" #include "util.h" static struct _bt_menu_item bt_menu_its[] = { { "IDS_QP_BUTTON_BLUETOOTH", DISABLE, _blutooth_cb }, { "IDS_VCALL_BODY_BT_HEADSET", DISABLE, _BT_headset_cb }, - { "IDS_ST_HEADER_DEVICE_NAME_ABB", DISABLE, _visibility_cb }, // "IDS_OP_BODY_VISIBILITY" + { "IDS_ST_MBODY_MAKE_VISIBLE_ABB", DISABLE, _visibility_cb }, // "IDS_OP_BODY_VISIBILITY" { NULL, DISABLE, NULL } }; @@ -55,6 +52,7 @@ static Elm_Object_Item* hf_it = NULL; static Evas_Object * bt_genlist = NULL; static Evas_Object * g_bt_check = NULL; +static Evas_Object * g_vb_check = NULL; static int is_bt_operating = BT_NON_OPERATING; static int timeout_seconds = VISIBILITY_TIMEOUT; @@ -65,10 +63,12 @@ static int is_connected_hf = FALSE; static char * g_device_name = NULL; -//static void bt_state_vconf_change_cb(keynode_t * key, void * data); static void _init_bt_value(); static int is_handsfree_connected(); static void _bt_genlist_update(); +static int is_disable_visibility_item_view(); +static void _update_visibility_view(); + static void sap_state_vconf_change_cb(keynode_t *key, void * data) { @@ -89,21 +89,14 @@ static void _bt_adapter_state_enabled_cb(int result, bt_adapter_state_e adapter_ } else if (adapter_state == BT_ADAPTER_DISABLED) { - DBG("Setting - BT adapter state : BT_ADAPTER_ENABLED"); -#if 0 - if( bt_it ) - { - elm_genlist_item_fields_update( bt_it, "elm.text.2", ELM_GENLIST_ITEM_FIELD_TEXT); - edje_object_signal_emit(elm_layout_edje_get(g_bt_check), "elm,state,enabled", "elm"); - elm_check_state_set(g_bt_check, EINA_FALSE); - } -#endif + DBG("Setting - BT adapter state : BT_ADAPTER_DISABLED"); + bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable = 0; is_connected_hf = FALSE; + _bt_genlist_update(); } _init_bt_value(); - } void initialize_bt() @@ -130,6 +123,12 @@ void initialize_bt() bluetooth_hf_init(hf_event_handler, NULL); register_vconf_changing("memory/private/sap/conn_status", sap_state_vconf_change_cb, NULL); + + int ret; + ret = feedback_initialize(); + if(ret != FEEDBACK_ERROR_NONE){ + DBG("feedback_initialize failed"); + } } Eina_Bool _clear_bluetooth_cb(void *data, Elm_Object_Item *it) @@ -144,10 +143,7 @@ static void _disable_visibility_item_view() bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable = DISABLE; timeout_seconds = VISIBILITY_TIMEOUT; - if( vb_it ) - { - elm_genlist_item_update(vb_it); - } + _update_visibility_view(); } static void hf_event_handler(int event, void *data, void *user_data) @@ -165,43 +161,6 @@ static void hf_event_handler(int event, void *data, void *user_data) } } -#if 0 -static void bt_state_vconf_change_cb(keynode_t * key, void * data) -{ - DBG("Setting - bt_state_vconf_change_cb() is called!"); - - bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable = vconf_keynode_get_int(key); - - if( bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable == VCONFKEY_BT_STATUS_ON ) - { - DBG("Setting - bt is On"); - - _bt_genlist_update(); - } - else if( bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable == VCONFKEY_BT_STATUS_OFF ) - { - DBG("Setting - bt is Off"); - - is_connected_hf = FALSE; - - _disable_visibility_item_view(); - - if( bt_it ) - { - elm_genlist_item_fields_update( bt_it, "elm.text.2", ELM_GENLIST_ITEM_FIELD_TEXT); - - elm_check_state_set(g_bt_check, EINA_FALSE); - } - if( hf_it ) - { - elm_genlist_item_update(hf_it); - } - } - - _init_bt_value(); -} -#endif - void _update_visibility_item_view(int is_hf_connected) { DBG("Setting - _update_view() is called!!"); @@ -219,19 +178,13 @@ void _update_visibility_item_view(int is_hf_connected) bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable = DISABLE; timeout_seconds = VISIBILITY_TIMEOUT; - if( vb_it ) - { - elm_genlist_item_update(vb_it); - } + _update_visibility_view(); } else { is_connected_hf = FALSE; - if( vb_it ) - { - elm_genlist_item_update(vb_it); - } + _update_visibility_view(); } } @@ -269,9 +222,15 @@ void clear_bt_resource() vb_it = NULL; bt_it = NULL; g_bt_check = NULL; + g_vb_check = NULL; /* Unregister SAP status vconf changeing callback */ unregister_vconf_changing("memory/private/sap/conn_status", sap_state_vconf_change_cb); + + ret = feedback_deinitialize(); + if(ret != FEEDBACK_ERROR_NONE){ + DBG("feedback_deinitialize failed"); + } } static void _init_bt_value() @@ -311,7 +270,7 @@ static void _alternate_bt_mode( void * data ) DBG("Setting - Current bt is on....disable..."); bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable = 0; - is_connected_hf = FALSE; + is_connected_hf = TRUE; _disable_visibility_item_view(); if( hf_it ) @@ -377,7 +336,9 @@ static void _blutooth_cb(void *data, Evas_Object *obj, void *event_info) ecore_timer_del(vb_timer); vb_timer = NULL; - elm_genlist_item_update(vb_it); + _update_visibility_view(); + + //elm_genlist_item_update(vb_it); } _alternate_bt_mode(data); @@ -404,7 +365,42 @@ static void _bt_genlist_update() } if( vb_it ) { - elm_genlist_item_update(vb_it); + elm_genlist_item_fields_update( vb_it, "elm.text.1", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update( vb_it, "elm.text.2", ELM_GENLIST_ITEM_FIELD_TEXT); + + elm_check_state_set(g_vb_check, (bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable == 1) ? EINA_TRUE : EINA_FALSE); + + if( is_disable_visibility_item_view() ) + { + edje_object_signal_emit(elm_layout_edje_get(g_vb_check), "elm,state,disabled", "elm"); + } + else + { + edje_object_signal_emit(elm_layout_edje_get(g_vb_check), "elm,state,enabled", "elm"); + } + } +} + +static void _update_visibility_view() +{ + DBG("Setting - _update_visibility_view()"); + + if( vb_it ) + { + elm_genlist_item_fields_update( vb_it, "elm.text.1", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update( vb_it, "elm.text.2", ELM_GENLIST_ITEM_FIELD_TEXT); + + elm_check_state_set(g_vb_check, (bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable == TRUE) + ? EINA_TRUE : EINA_FALSE); + + if( is_disable_visibility_item_view() ) + { + edje_object_signal_emit(elm_layout_edje_get(g_vb_check), "elm,state,disabled", "elm"); + } + else + { + edje_object_signal_emit(elm_layout_edje_get(g_vb_check), "elm,state,enabled", "elm"); + } } } @@ -421,7 +417,8 @@ static void _update_visibility_item_update(void * data) { DBG("Setting - update_visibility_item_update"); - _bt_genlist_update(); + _update_visibility_view(); + //_bt_genlist_update(); } } @@ -517,10 +514,7 @@ static void _bt_visibility_mode(void * data) bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable = ENABLE; timeout_seconds = VISIBILITY_TIMEOUT; - if( vb_it ) - { - elm_genlist_item_update(vb_it); - } + _update_visibility_view(); _start_visibility_timer(data); // Timer start } @@ -556,6 +550,16 @@ static void _visibility_cb(void *data, Evas_Object *obj, void *event_info) Elm_Object_Item* it = (Elm_Object_Item *)event_info; elm_genlist_item_selected_set(it, EINA_FALSE); + bool touch_sound_enable = false; + if( get_sound_mode() == SOUND_MODE_SOUND ) + { + vconf_get_bool(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, &touch_sound_enable); + if( touch_sound_enable ) + { + feedback_play(FEEDBACK_PATTERN_TOUCH_TAP); + } + } + if( is_disable_visibility_item_view() ) { DBG("Setting - disable visibility!!"); @@ -591,12 +595,12 @@ static void _BT_headset_cb(void *data, Evas_Object *obj, void *event_info) if( !_is_enable_BT_headset() ) return; - service_h service; - service_create(&service); - service_set_app_id(service, "org.tizen.bluetooth"); - service_add_extra_data(service, "launch-type", "setting"); - service_send_launch_request(service, NULL, NULL); - service_destroy(service); + app_control_h service; + app_control_create(&service); + app_control_set_app_id(service, "org.tizen.bluetooth"); + app_control_add_extra_data(service, "launch-type", "setting"); + app_control_send_launch_request(service, NULL, NULL); + app_control_destroy(service); } static char * _get_device_name() @@ -699,15 +703,10 @@ static char * _gl_bt_title_get(void *data, Evas_Object *obj, const char *part) } else { - //snprintf(buf, sizeof(buf)-1, "%s", _(visible_str[bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable])); - + g_device_name = _get_device_name(); if( g_device_name == NULL ) { - g_device_name = _get_device_name(); - if( g_device_name == NULL ) - { - g_device_name = _(visible_str[bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable]); - } + g_device_name = _(visible_str[bt_menu_its[BT_MENU_TYPE_VISIBLE_ON_OFF].is_enable]); } snprintf(buf, sizeof(buf)-1, "%s", g_device_name); @@ -717,7 +716,7 @@ static char * _gl_bt_title_get(void *data, Evas_Object *obj, const char *part) } return strdup(buf); } - +#if 0 static Evas_Object * _get_emtpy_layout(Evas_Object * parent) { if( parent == NULL ) @@ -728,24 +727,24 @@ static Evas_Object * _get_emtpy_layout(Evas_Object * parent) return layout; } +#endif static Evas_Object * _gl_bt_check_get(void *data, Evas_Object *obj, const char *part) { - Evas_Object *layout = NULL; Evas_Object *check = NULL; - //appdata *ad = data; Bt_Item_Data *id = data; int index = id->index; if( !strcmp(part, "elm.icon") ) { - layout = _get_emtpy_layout(obj); - check = elm_check_add(obj); + elm_object_style_set(check, "list"); elm_check_state_set(check, (bt_menu_its[index].is_enable == TRUE) ? EINA_TRUE : EINA_FALSE); evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_propagate_events_set(check, EINA_FALSE); + evas_object_repeat_events_set(check, EINA_TRUE); if( index == BT_MENU_TYPE_VISIBLE_ON_OFF ) { @@ -753,15 +752,14 @@ static Evas_Object * _gl_bt_check_get(void *data, Evas_Object *obj, const char * { edje_object_signal_emit(elm_layout_edje_get(check), "elm,state,disabled", "elm"); } + g_vb_check = check; } - else + else if( index == BT_MENU_TYPE_BT_ON_OFF ) { g_bt_check = check; } - - elm_object_part_content_set(layout, "empty.swallow", check); } - return layout; + return check; } static void _bt_gl_del(void *data, Evas_Object *obj) @@ -842,9 +840,6 @@ Evas_Object* _create_bt_list(void* data) init_values(); - // get BT enable Vconf - //vconf_get_int(VCONFKEY_BT_STATUS, &bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable); - bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable = is_BT_enable(); DBG("Setting - BT status is %d", bt_menu_its[BT_MENU_TYPE_BT_ON_OFF].is_enable); @@ -863,6 +858,7 @@ Evas_Object* _create_bt_list(void* data) is_connected_hf = FALSE; } + elm_theme_extension_add(NULL, EDJE_PATH); Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new(); itc->item_style = "2text.1icon.1"; itc->func.text_get = _gl_bt_title_get; @@ -874,6 +870,12 @@ Evas_Object* _create_bt_list(void* data) itc2->func.text_get = _gl_bt_title_get; itc2->func.del = _bt_gl_del; + Elm_Genlist_Item_Class *itc3 = elm_genlist_item_class_new(); + itc3->item_style = "multiline.2text.1icon"; + itc3->func.text_get = _gl_bt_title_get; + itc3->func.content_get = _gl_bt_check_get; + itc3->func.del = _bt_gl_del; + Evas_Object * layout = elm_layout_add(ad->nf); elm_layout_file_set(layout, EDJE_PATH, "setting/genlist/layout"); evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -884,19 +886,19 @@ Evas_Object* _create_bt_list(void* data) menu_its = bt_menu_its; + Elm_Genlist_Item_Class *itc_arr[3] = { itc, itc2, itc3 }; + for (idx = 0; idx < BT_LIST_ITEM_COUNT; idx++) { // if bt headset is disable, continue if( idx == BT_MENU_TYPE_BT_HEADSET && !is_add_BT_headset() ) continue; - temp_itc = (idx == BT_MENU_TYPE_BT_HEADSET) ? itc2 : itc; - Bt_Item_Data *id = calloc(sizeof(Bt_Item_Data), 1); id->index = idx; id->item = elm_genlist_item_append( genlist, // genlist object - temp_itc, // item class + itc_arr[idx], // item class id, // data NULL, ELM_GENLIST_ITEM_NONE, @@ -918,6 +920,7 @@ Evas_Object* _create_bt_list(void* data) } elm_genlist_item_class_free(itc); elm_genlist_item_class_free(itc2); + elm_genlist_item_class_free(itc3); bt_genlist = genlist; diff --git a/src/setting-clock.c b/src/setting-clock.c index 1a739c3..a1937e5 100755 --- a/src/setting-clock.c +++ b/src/setting-clock.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include #include @@ -25,6 +19,7 @@ #include #include #include +#include #include "setting-clock.h" #include "util.h" @@ -77,6 +72,25 @@ static appdata * temp_ad = NULL; static int _clock_type_compare_cb(const void *d1, const void *d2); + +Evas_Object * _elm_min_set(Evas_Object *obj, Evas_Object *parent, Evas_Coord w, Evas_Coord h) +{ + Evas_Object *table, *rect; + + table = elm_table_add(parent); + + rect = evas_object_rectangle_add(evas_object_evas_get(table)); + evas_object_size_hint_min_set(rect, w, h); + evas_object_size_hint_weight_set(rect, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(rect, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_table_pack(table, rect, 0, 0, 1, 1); + evas_object_size_hint_weight_set(obj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(obj, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_table_pack(table, obj, 0, 0, 1, 1); + + return table; +} + static Clock_Type_Item *_get_selected_clock() { Clock_Type_Item *pitem = NULL; @@ -228,6 +242,14 @@ static int _clock_appinfo_cb(pkgmgrinfo_appinfo_h handle, void *data) ERR("pkgmgrinfo_appinfo_is_category_exist error"); return -1; } + + if (!clockapp) { + r = pkgmgrinfo_appinfo_is_category_exist(tmp_handle, IDLE_CLOCK_CATEGROY2, &clockapp); + if (r != PMINFO_R_OK) { + ERR("pkgmgrinfo_appinfo_is_category_exist error"); + return -1; + } + } } if (clockapp) { @@ -238,7 +260,7 @@ static int _clock_appinfo_cb(pkgmgrinfo_appinfo_h handle, void *data) } static int _clock_app_event_cb(int req_id, const char *pkg_type, const char *pkgid, - const char key, const char *val, const void *pmsg, void *data) + const char* key, const char *val, const void *pmsg, void *data) { appdata *ad = data; @@ -273,7 +295,7 @@ static int _clock_app_event_cb(int req_id, const char *pkg_type, const char *pkg } static int _clock_app_uninstall_event_cb(int req_id, const char *pkg_type, const char *pkgid, - const char key, const char *val, const void *pmsg, void *data) + const char* key, const char *val, const void *pmsg, void *data) { appdata *ad = data; @@ -337,6 +359,14 @@ static int _clock_check_appinfo(void *data, char *appid) return -1; } + if (!clockapp) { + r = pkgmgrinfo_appinfo_is_category_exist(tmp_handle, IDLE_CLOCK_CATEGROY2, &clockapp); + if (r != PMINFO_R_OK) { + ERR("pkgmgrinfo_appinfo_is_category_exist error"); + return -1; + } + } + if (clockapp) { update_clock_list(ad, EINA_TRUE, EINA_TRUE); } @@ -464,6 +494,12 @@ static void _layout_del_cb(void *data , Evas *e, Evas_Object *obj, void *event_i { clock_page_data *pd = data; free(pd); + + int ret; + ret = feedback_deinitialize(); + if(ret != FEEDBACK_ERROR_NONE){ + DBG("feedback_deinitialize failed"); + } } static Eina_Bool animator_cb(void *data) @@ -509,6 +545,8 @@ static void _mouse_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_i prev_x = 0; touch_mode = NONE; + feedback_play(FEEDBACK_PATTERN_TOUCH_TAP); + // set gb vconf if(_set_clock_type(pkgid)) { @@ -559,12 +597,17 @@ static void _page_show(void *data, Evas * e, Evas_Object * obj, void *event_info DBG("name : %s, index : %d", pitem->name, pitem->index); } + int w, h; + elm_scroller_region_get(obj, NULL, NULL, &w, &h); + printf("%d %d\n",w,h); + elm_scroller_page_show(obj, page, 0); } static Evas_Object* _create_index(Evas_Object* parent) { - Evas_Object *layout, *scroller, *box, *page_layout, *mapbuf; + Evas_Object *layout, *scroller, *box, *page_layout, *mapbuf, *table; + Evas_Coord w = 0, h = 0; if (parent == NULL) return NULL; @@ -578,7 +621,8 @@ static Evas_Object* _create_index(Evas_Object* parent) if (pd == NULL) return NULL; - elm_layout_file_set(layout, EDJE_PATH, "setting-test/index"); + //elm_layout_file_set(layout, EDJE_PATH, "setting-test/index"); + elm_layout_file_set(layout, EDJE_PATH, "scroller_custom_layout"); evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_show(layout); evas_object_event_callback_add(layout, EVAS_CALLBACK_DEL, _layout_del_cb, pd); @@ -680,12 +724,23 @@ static Evas_Object* _create_index(Evas_Object* parent) elm_object_content_set(mapbuf, page_layout); pd->mapbuf[pitem->index] = mapbuf; #endif - elm_box_pack_end(box, page_layout); + elm_win_screen_size_get(elm_widget_top_get(parent), NULL, NULL, &w, &h); + table = _elm_min_set(page_layout, box, w, h); + evas_object_size_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(table, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_show(table); + elm_box_pack_end(box, table); } } evas_object_event_callback_add(scroller, EVAS_CALLBACK_RESIZE, _page_show, NULL); + int ret; + ret = feedback_initialize(); + if(ret != FEEDBACK_ERROR_NONE){ + DBG("feedback_initialize failed"); + } + //ecore_animator_add(animator_cb, pd); return layout; @@ -1575,6 +1630,7 @@ Evas_Object * _gl_alert_ridio_get(void *data, Evas_Object *obj, const char *part evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_radio_group_add(radio, radio_main); +#if 0 vconf_get_bool(VCONFKEY_SETAPPL_HOURLY_ALERT_BOOL, &is_alert_mode_type); is_alert_mode_type = !is_alert_mode_type; @@ -1583,6 +1639,7 @@ Evas_Object * _gl_alert_ridio_get(void *data, Evas_Object *obj, const char *part { elm_radio_value_set(radio_main, is_alert_mode_type); } +#endif index++; } return radio; @@ -1601,9 +1658,10 @@ static void _hourly_gl_cb(void *data, Evas_Object *obj, void *event_info) temp_ad->alert_rdg = NULL; } +#if 0 clock_menu_its[2].type_num = is_alert_mode_type; vconf_set_bool(VCONFKEY_SETAPPL_HOURLY_ALERT_BOOL, !is_alert_mode_type); - +#endif if( g_clock_genlist ) { elm_genlist_realized_items_update(g_clock_genlist); diff --git a/src/setting-common-sound.c b/src/setting-common-sound.c index 53dc169..484be90 100755 --- a/src/setting-common-sound.c +++ b/src/setting-common-sound.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-common-sound.c * @@ -31,6 +25,7 @@ static player_h player; static int is_player_created = 0; static sound_type_e _sound_type; +//player_prelistening_mode_e _get_prelistening_mode(sound_type_e sound_type); /** * @return zero on successful @@ -135,6 +130,22 @@ static int _profile_restart_player(void *data, char *ringtone_file, sound_type_e return err; } +#if 0 + if( prelistening_enable && sound_type != SOUND_TYPE_SYSTEM ) + { + DBG("Setting - profile_play_sound is sessioning.."); + + player_prelistening_mode_e mode = _get_prelistening_mode(sound_type); + + err = player_set_prelistening_mode(player, mode); + if (err != PLAYER_ERROR_NONE) { + DBG("Setting - error to player_set_session_prelistening[%d]", err); + player_destroy(player); + is_player_created = 0; + return err; + } + } +#endif err = player_prepare_async(player, _profile_player_prepare_cb, NULL); if (err != PLAYER_ERROR_NONE) { DBG("Setting - realizing the player handle failed[%d]", err); @@ -145,7 +156,25 @@ static int _profile_restart_player(void *data, char *ringtone_file, sound_type_e } return ret; } +#if 0 +player_prelistening_mode_e _get_prelistening_mode(sound_type_e sound_type) +{ + player_prelistening_mode_e mode = mode = PLAYER_PRELISTENING_MODE_RINGTONE; + switch(sound_type) { + case SOUND_TYPE_MEDIA: + mode = PLAYER_PRELISTENING_MODE_MEDIA; + break; + case SOUND_TYPE_RINGTONE: + mode = PLAYER_PRELISTENING_MODE_RINGTONE; + break; + case SOUND_TYPE_NOTIFICATION: + mode = PLAYER_PRELISTENING_MODE_NOTIFICATION; + break; + } + return mode; +} +#endif int profile_play_sound(void *data, void *cb, char *ringtone_file, float vol, sound_type_e sound_type, int prelistening_enable) { DBG("Setting - profile_play_sound is started. path: %s", ringtone_file); @@ -181,7 +210,6 @@ int profile_play_sound(void *data, void *cb, char *ringtone_file, float vol, sou DBG("Setting - profile_play_sound is preparing."); - //err = player_prepare(player); err = player_prepare_async(player, _profile_player_prepare_cb, NULL); if (err != PLAYER_ERROR_NONE) { DBG("Setting - realizing the player handle failed[%d]", err); @@ -264,7 +292,7 @@ int _close_player(void *data, sound_type_e type) void play_sound(char * file_path, float volume, sound_type_e sound_type) { - DBG("Setting - profile_play_sound function start ..."); + DBG("Setting - profile_play_sound function start ... : is_created_player() => (%d)", is_created_player()); if( !is_created_player() ) { DBG("Setting - profile_play_sound)"); diff --git a/src/setting-display.c b/src/setting-display.c index 7bf4a76..6878d88 100755 --- a/src/setting-display.c +++ b/src/setting-display.c @@ -1,19 +1,21 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2013-2014 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. - * -*/ + * PROPRIETARY/CONFIDENTIAL + * + * This software is the confidential and proprietary information of + * SAMSUNG ELECTRONICS ("Confidential Information"). + * You shall not disclose such Confidential Information and shall + * use it only in accordance with the terms of the license agreement + * you entered into with SAMSUNG ELECTRONICS. + * SAMSUNG make no representations or warranties about the suitability + * of the software, either express or implied, including but not + * limited to the implied warranties of merchantability, fitness for + * a particular purpose, or non-infringement. + * SAMSUNG shall not be liable for any damages suffered by licensee as + * a result of using, modifying or distributing this software or its derivatives. + */ + /* * setting-display.c * @@ -37,30 +39,27 @@ #include "setting-motion.h" #include "util.h" -#define _CSC_FEATURE_DEF_BOOL_HOME_EDIT_MODE_LONGPRESS_DISABLE 0 -#define _CSC_FEATURE_DEF_BOOL_SETTING_FONT_OTHER_PRELOAD_DISABLE 0 - static struct _display_menu_item display_menu_its[] = { -#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) - { "IDS_ST_BUTTON_BRIGHTNESS", SETTING_DISPLAY_BRIGTHNESS, _display_brightness_cb }, +//#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) +// { "IDS_ST_BUTTON_BRIGHTNESS", SETTING_DISPLAY_BRIGTHNESS, setting_display_show_brightness }, //_display_brightness_cb }, { "IDS_ST_MBODY_SCREEN_TIMEOUT_ABB", SETTING_DISPLAY_SCREEN_TIME, _display_gl_screen_timeout_cb }, +//#endif { "IDS_ST_BODY_FONT", SETTING_DISPLAY_FONT, _display_gl_font_cb }, -#endif { "IDS_ST_BUTTON_LANGUAGE", SETTING_DISPLAY_LANG, _display_gl_language_cb }, #if !defined(FEATURE_SETTING_EMUL) - { "IDS_ST_MBODY_WAKE_UP_GESTURE_ABB", SETTING_DISPLAY_GESTURE, _motion_gl_wake_up_cb }, +// { "IDS_ST_MBODY_WAKE_UP_GESTURE_ABB", SETTING_DISPLAY_GESTURE, _motion_gl_wake_up_cb }, #endif #if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) - { "IDS_HS_MBODY_HOME_ICON_SIZE_ABB", SETTING_DISPLAY_ICON_SIZE, _homescreen_gl_viewtype_cb }, - { "IDS_ST_MBODY_EDIT_HOME_SCREEN_ABB", SETTING_DISPLAY_EDIT_HOME, _homescreen_gl_edit_home_cb }, +// { "IDS_HS_MBODY_HOME_ICON_SIZE_ABB", SETTING_DISPLAY_ICON_SIZE, _homescreen_gl_viewtype_cb }, +// { "IDS_ST_MBODY_EDIT_HOME_SCREEN_ABB", SETTING_DISPLAY_EDIT_HOME, _homescreen_gl_edit_home_cb }, { "IDS_ST_MBODY_MANAGE_APPS_ABB", SETTING_DISPLAY_EDIT_APPS, _homescreen_gl_edit_apps_cb }, //{ "IDS_ST_HEADER_ROTATE_SCREEN_ABB", 0, 0, _display_gl_rotate_screen_cb }, #endif }; static struct _font_menu_item font_menu_its[] = { - { "IDS_ST_BODY_FONT_STYLE", _display_gl_font_style_cb }, - { "IDS_ST_BODY_FONT_SIZE_ABB", _display_gl_font_size_cb }, + { "IDS_ST_BODY_FONT_STYLE", SETTING_DISPLAY_FONT_STYLE, _display_gl_font_style_cb }, + { "IDS_ST_BODY_FONT_SIZE_ABB", SETTING_DISPLAY_FONT_SIZE, _display_gl_font_size_cb }, }; static int screen_time_str[] = { @@ -76,10 +75,6 @@ static char * font_size_str[] = { "IDS_ST_BODY_LARGE_M_FONT_SIZE_ABB2" }; -static char * brightness_number_str[] = { - "0", "1", "2", "3", "4", "5" -}; - static char *rotate_screen_str[] = { "IDS_COM_BODY_DEFAULT", "IDS_COM_OPT_ROTATE_CW", "IDS_COM_OPT_ROTATE_CCW", "IDS_ST_SBODY_180_DEGREE" }; @@ -89,64 +84,45 @@ static Evas_Object * g_display_genlist = NULL; static Evas_Object * g_screen_time_genlist = NULL; static Evas_Object * g_font_size_genlist = NULL; static Evas_Object * g_font_style_genlist = NULL; -static Evas_Object * brightness_layout = NULL; -static Evas_Object * g_brightness_controller = NULL; static Evas_Object * g_rotate_screen_genlist = NULL; static int screen_time_index = 1; // default: 10 seconds static int font_size_index = 1; // default: normal -static int brightness_index = 4; // default: 4 (level4 : 80) static int rotate_screen_rot = 0; // default: 0(0degree), vconf enum static int rotate_screen_index = 0; // default: 0, list index -static int brightness_origin_level = 0; -static int hbm_mode_on_original = 0; - static int touch_mode = NONE; -static spin_date *pd = NULL; - -static char *font_name = NULL; - -static Evas_Object * g_spinner = NULL; +/* Main display list item */ static Elm_Object_Item * lang_item = NULL; static Elm_Object_Item * wake_up_item = NULL; static Elm_Object_Item * edit_icon_item = NULL; +static Elm_Object_Item * screen_time_item = NULL; + +/* Font list item */ +static char *font_name = NULL; + +static Elm_Object_Item * font_style_item = NULL; +static Elm_Object_Item * font_size_item = NULL; -static void brightness_vconf_changed_cb(keynode_t * key, void * data); -static void _update_brightness_circle(Evas_Object * spiner); -static void wake_up_vconf_changed_cb(keynode_t * key, void * data); -static void icon_size_vconf_changed_cb(keynode_t * key, void * data); static void _font_size_gl_cb(void *data, Evas_Object *obj, void *event_info); static void _font_style_gl_cb(void *data, Evas_Object *obj, void *event_info); -static int _change_bright_lovel_to_index(int level); - +static Eina_Bool setting_font_style_pop_cb(void *data, Elm_Object_Item *it); +static void settings_font_style_changed_cb(system_settings_key_e key, void *user_data); +static void change_language_enabling(keynode_t *key, void * data); +static void change_screen_time_cb(keynode_t *key, void * data); +static void change_language_cb(keynode_t *key, void * data); +static Eina_Bool setting_font_list_pop_cb(void * data, Elm_Object_Item * it); +static void _lang_update_font_style_list(void * data, Evas_Object *obj, void *event_info); -static void change_language_enabling(keynode_t *key, void * data) -{ - if(lang_item == NULL) { - DBG("Setting - lang_item is null!!"); - return; - } - int enable = 0; - vconf_get_bool(VCONFKEY_WMS_WMANAGER_CONNECTED, &enable); - if(enable) - { - DBG("Setting - Language is disabled"); - } - else - { - DBG("Setting - Language is enabled"); - } - elm_genlist_item_update(lang_item); -} void _init_display() { register_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, change_language_enabling, NULL); - register_vconf_changing(VCONFKEY_WMS_WAKEUP_BY_GESTURE_SETTING, wake_up_vconf_changed_cb, NULL); - register_vconf_changing(VCONFKEY_SETAPPL_HOMESCREEN_TYPE_INT, icon_size_vconf_changed_cb, NULL); + register_vconf_changing(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, change_screen_time_cb, NULL); + register_vconf_changing(VCONFKEY_LANGSET, change_language_cb, NULL); + //_init_screen_rotate(); } @@ -198,119 +174,15 @@ Eina_Bool _clear_display_cb(void *data, Elm_Object_Item *it) g_font_style_genlist = NULL; g_rotate_screen_genlist = NULL; - brightness_origin_level = 0; - touch_mode = NONE; - unregister_vconf_changing(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, brightness_vconf_changed_cb); unregister_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, change_language_enabling); - unregister_vconf_changing(VCONFKEY_WMS_WAKEUP_BY_GESTURE_SETTING, wake_up_vconf_changed_cb); - unregister_vconf_changing(VCONFKEY_SETAPPL_HOMESCREEN_TYPE_INT, icon_size_vconf_changed_cb); - - g_spinner = NULL; - - return EINA_TRUE; -} - -static void _set_HBM_mode(int enable) -{ - if( display_enable_hbm(enable, 300) == 0 ) // after 5 minutes, HBM mode will be off! - { - DBG("Setting - HBM %s!!", (enable) ? "enabled" : "disabled"); - } - else - { - DBG("Setting - HBM api failed!!"); - } -} - -static void wake_up_vconf_changed_cb(keynode_t * key, void * data) -{ - DBG("Setting - motion_vconf_changed_cb() is called!"); - - - - if( wake_up_item ) - { - elm_genlist_item_update(wake_up_item); - } -} - -static void icon_size_vconf_changed_cb(keynode_t * key, void * data) -{ - DBG("Setting - icon_size_vconf_changed_cb() is called!"); - - - - if( edit_icon_item ) - { - elm_genlist_item_update(edit_icon_item); - } -} - -// free pd - -static Eina_Bool _brightness_pop_cb(void *data, Elm_Object_Item *it) -{ - DBG("Setting - brightness_pop_cb() is called!"); - - if( pd ) - { - DBG("Setting - Free pd!"); - free(pd); - } - - unregister_vconf_changing(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, brightness_vconf_changed_cb); + unregister_vconf_changing(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, change_screen_time_cb); + unregister_vconf_changing(VCONFKEY_LANGSET, change_language_cb); return EINA_TRUE; } -static void _power_off_popup_dismiss_cb(void *data, Evas_Object *obj, void *event_info) -{ - DBG("Setting - _power_off_popup_dismiss_cb() is called!"); - - int brightness_level = 0; - vconf_get_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, &brightness_level); - brightness_index = _change_bright_lovel_to_index(brightness_level); - - if( g_spinner ) - { - int enable = display_get_hbm(); - if( enable ) - { - brightness_index = 6; - } - elm_spinner_value_set(g_spinner, brightness_index); - _update_brightness_circle(g_spinner); - } -} - -static void _display_brightness_cb(void *data, Evas_Object *obj, void *event_info) -{ - elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); - - Evas_Object * layout = NULL; - Elm_Object_Item *navi_it = NULL; - - appdata * ad = data; - - if( ad != NULL ) - { - layout = _show_brightness_popup(ad, obj, event_info); - } - - if( layout ) - { - evas_object_event_callback_add(layout, EVAS_CALLBACK_MOUSE_IN, _power_off_popup_dismiss_cb, NULL); - - navi_it = elm_naviframe_item_push( ad->nf, "IDS_ST_BUTTON_BRIGHTNESS", NULL, NULL, layout, NULL ); - elm_object_item_domain_text_translatable_set(navi_it, SETTING_PACKAGE, EINA_TRUE); - elm_naviframe_item_pop_cb_set(navi_it, _brightness_pop_cb, NULL); - - register_vconf_changing(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, brightness_vconf_changed_cb, NULL); - } -} - void _display_gl_font_cb(void *data, Evas_Object *obj, void *event_info) { elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); @@ -318,11 +190,15 @@ void _display_gl_font_cb(void *data, Evas_Object *obj, void *event_info) if( data != NULL ) { _show_font_list(data); + } else { + DBG("ad->font_name is NULL !!!!!!"); } } void _display_gl_font_style_cb(void *data, Evas_Object *obj, void *event_info) { + DBG("_display_gl_font_style_cb"); + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); if( data != NULL ) @@ -375,6 +251,12 @@ void _display_gl_language_cb(void *data, Evas_Object *obj, void *event_info) return; } + if( ad->MENU_TYPE == SETTING_LANGUAGE ) + { + DBG("Already language screen enter:clear"); + return; + } + if( is_connected_GM() ) { DBG("Setting - language can not change!!"); @@ -387,6 +269,8 @@ void _display_gl_language_cb(void *data, Evas_Object *obj, void *event_info) return; } + ad->MENU_TYPE = SETTING_LANGUAGE; + _initialize_language(ad); _set_launguage_update_cb(_update_menu_text_when_lang_changed); @@ -396,9 +280,12 @@ void _display_gl_language_cb(void *data, Evas_Object *obj, void *event_info) DBG("%s", "language cb - genlist is null"); return; } - nf_it = elm_naviframe_item_push(ad->nf, NULL, NULL, NULL, genlist, NULL); + nf_it = elm_naviframe_item_push(ad->nf, "IDS_ST_BUTTON_LANGUAGE", NULL, NULL, genlist, NULL); evas_object_event_callback_add(genlist, EVAS_CALLBACK_DEL, _clear_lang_cb, ad); +#if !defined(FEATURE_SETTING_TELEPHONY) elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); +#endif + elm_object_item_domain_text_translatable_set(nf_it, SETTING_PACKAGE, EINA_TRUE); ad->MENU_TYPE = SETTING_LANGUAGE; } @@ -411,24 +298,72 @@ char * _gl_display_title_get(void *data, Evas_Object *obj, const char *part) if( !strcmp(part, "elm.text") || !strcmp(part,"elm.text.1")) { - if (id->item == lang_item) { - if( is_connected_GM() ) { + if (id->item == lang_item) + { + if( is_connected_GM() ) + { snprintf(buf, sizeof(buf)-1, "%s", _(display_menu_its[index].name)); - } else { + } + else + { snprintf(buf, sizeof(buf)-1, "%s", _(display_menu_its[index].name)); } - } else { + } + else + { snprintf(buf, sizeof(buf)-1, "%s", _(display_menu_its[index].name)); } } else if (!strcmp(part, "elm.text.2")) { - if(id->item == edit_icon_item){ - snprintf(buf, sizeof(buf)-1, "%s", _get_homeview_type_subtitle()); + if(id->item == edit_icon_item) + { + char *str = _get_homeview_type_subtitle(); + snprintf(buf, sizeof(buf)-1, "%s", str); + FREE(str); + } + else if(id->item == lang_item ) + { + const char * curr_lang = setting_get_lang_title(); + if(curr_lang) + { + if( is_connected_GM() ) + { + snprintf(buf, sizeof(buf)-1, "%s", curr_lang); + } + else + { + snprintf(buf, sizeof(buf)-1, "%s", curr_lang); + } + } + } + else if(id->item == screen_time_item) + { + int time = 10; + vconf_get_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, &time); + switch(time) + { + case 10: + snprintf(buf, sizeof(buf)-1, _("IDS_ST_BODY_10SEC"), screen_time_str[0]); + break; + case 15: + snprintf(buf, sizeof(buf)-1, _("IDS_ST_BODY_15SEC"), screen_time_str[1]); + break; + case 30: + snprintf(buf, sizeof(buf)-1, _("IDS_ST_BODY_30SEC"), screen_time_str[2]); + break; + case 60: + snprintf(buf, sizeof(buf)-1, _("IDS_ST_BODY_1_MINUTE_ABB2"), screen_time_str[3]); + break; + case 300: + snprintf(buf, sizeof(buf)-1, _("IDS_ST_BODY_5_MINUTES"), screen_time_str[4]); + break; + } } - else{ + else + { snprintf(buf, sizeof(buf)-1, "%s", _get_wake_up_gesture_sub_title()); } } @@ -477,16 +412,12 @@ Evas_Object* _create_display_list(void* data) for (idx = 0; idx < size; idx++) { - int b_disable_edit_app; - if(menu_its[idx].type == SETTING_DISPLAY_EDIT_APPS) - { - b_disable_edit_app = _CSC_FEATURE_DEF_BOOL_HOME_EDIT_MODE_LONGPRESS_DISABLE; //true for enable menu - if(!b_disable_edit_app) continue; - } - Elm_Genlist_Item_Class *itc_tmp = NULL; - if (menu_its[idx].type == SETTING_DISPLAY_GESTURE || menu_its[idx].type == SETTING_DISPLAY_ICON_SIZE) { + if (menu_its[idx].type == SETTING_DISPLAY_GESTURE + || menu_its[idx].type == SETTING_DISPLAY_ICON_SIZE + || menu_its[idx].type == SETTING_DISPLAY_LANG + || menu_its[idx].type == SETTING_DISPLAY_SCREEN_TIME ) { itc_tmp = itc2; } else { itc_tmp = itc; @@ -503,7 +434,8 @@ Evas_Object* _create_display_list(void* data) menu_its[ idx ].func, // call back ad); - if (menu_its[idx].type == SETTING_DISPLAY_LANG) { + if (menu_its[idx].type == SETTING_DISPLAY_LANG) + { lang_item = id->item; } else if(menu_its[idx].type == SETTING_DISPLAY_GESTURE) @@ -516,6 +448,11 @@ Evas_Object* _create_display_list(void* data) DBG("edit icon item@!!!"); edit_icon_item = id->item; } + else if(menu_its[idx].type == SETTING_DISPLAY_SCREEN_TIME ) + { + DBG("screen time item@!!!"); + screen_time_item = id->item; + } } elm_genlist_item_class_free(itc); elm_genlist_item_class_free(itc2); @@ -657,11 +594,22 @@ void _show_screen_timeout_list(void* data) elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS); evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + int timeout = 0; + vconf_get_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, &timeout); + screen_time_index = _get_timeout_index(timeout); + + Elm_Object_Item * curr_item = NULL; + for( idx = 0; idx < SCREEN_TIME_COUNT; idx++ ) { Item_Data *id = calloc(sizeof(Item_Data), 1); id->index = idx; id->item = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, _screen_timeout_gl_cb, (void*)idx); + + if(idx == screen_time_index) + { + curr_item = id->item; + } } ad->screen_timeout_rdg = elm_radio_add(genlist); @@ -670,12 +618,20 @@ void _show_screen_timeout_list(void* data) evas_object_data_set(genlist, "radio_main", ad->screen_timeout_rdg); + if(curr_item) + { + elm_genlist_item_show(curr_item, ELM_GENLIST_ITEM_SCROLLTO_TOP); + } + g_screen_time_genlist = genlist; elm_genlist_item_class_free(itc); - nf_it = elm_naviframe_item_push(ad->nf, NULL, NULL, NULL, genlist, NULL); + nf_it = elm_naviframe_item_push(ad->nf, "IDS_ST_MBODY_SCREEN_TIMEOUT_ABB", NULL, NULL, genlist, NULL); +#if !defined(FEATURE_SETTING_TELEPHONY) elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); +#endif + elm_object_item_domain_text_translatable_set(nf_it, SETTING_PACKAGE, EINA_TRUE); } static char * _gl_font_title_get(void *data, Evas_Object *obj, const char *part) @@ -683,10 +639,102 @@ static char * _gl_font_title_get(void *data, Evas_Object *obj, const char *part) char buf[1024]; Item_Data *id = data; - if( !strcmp(part, "elm.text") ) + if( !strcmp(part, "elm.text") || !strcmp(part,"elm.text.1") ) { snprintf(buf, sizeof(buf)-1, "%s", _(font_menu_its[id->index].name)); } + else if( !strcmp(part,"elm.text.2") ) + { + if( id->index == SETTING_DISPLAY_FONT_STYLE ) + { + char * font_name = NULL; + if (system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &font_name) + != SYSTEM_SETTINGS_ERROR_NONE) + { + ERR("failed to call system_setting_get_value_string with err"); + } + + if(font_name) + { + + DBG(" font_name <---------------------- (%s) ", font_name); + + if( strstr(font_name, "Samsung") ) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_DEFAULT_FONT")); + } + else + { + if (!strcmp(font_name, "Choco cooky")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_LCKSCN_BODY_CHOCO_COOKY_M_FONT")); + } + else if (!strcmp(font_name, "Cool jazz")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_COOL_JAZZ")); + } + else if (!strcmp(font_name, "Rosemary")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_FONTSTYLE_ROSEMARY")); + } + else if (!strcmp(font_name, "Tinkerbell")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_MBODY_TINKERBELL")); + } + else if (!strcmp(font_name, "Applemint")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_RH_BUTTON2_APPLEMINT_M_FONT")); + } + else if (!strcmp(font_name, "Kaiti")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_KAITI_M_FONT")); + } + else if (!strcmp(font_name, "POP")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_POP_JPN_DCM")); + } + else if (!strcmp(font_name, "UDMincho")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_UDMINCHO_JPN")); + } + else if (!strcmp(font_name, "UDRGothic")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_UDRGOTHICM_JPN")); + } + else if (!strcmp(font_name, "TizenSans")) + { + snprintf(buf, sizeof(buf)-1, "%s", _("TizenSans")); + } + else + { + snprintf(buf, sizeof(buf)-1, "%s", font_name); + } + } + } + else + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_UNKNOWN")); + } + } + else if( id->index == SETTING_DISPLAY_FONT_SIZE ) + { + int font_size = -1; + if( system_settings_get_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, &font_size) + != SYSTEM_SETTINGS_ERROR_NONE ) + { + DBG("Setting - system_settings_get_value_int() is failed."); + } + + if( font_size < 0 || font_size > 2 ) + { + snprintf(buf, sizeof(buf)-1, "%s", _("IDS_ST_BODY_UNKNOWN")); + } + else + { + snprintf(buf, sizeof(buf)-1, "%s", _(font_size_str[font_size])); + } + } + } return strdup(buf); } @@ -700,7 +748,7 @@ static char * _gl_font_style_title_get(void *data, Evas_Object *obj, const char char new_name[256]; int i=0; int count = 0; - while(*pos != '\0') + while( pos && *pos != '\0') { if (*pos == ' ') { @@ -719,31 +767,36 @@ static char * _gl_font_style_title_get(void *data, Evas_Object *obj, const char if( !strcmp(part, "elm.text") ) { + #if 0 if(id->index == 0) { snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_DEFAULT_FONT")); } else { - if (!strcmp(id->font_name, "Choco cooky")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_LCKSCN_BODY_CHOCO_COOKY_M_FONT")); - } else if (!strcmp(id->font_name, "Cool jazz")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_COOL_JAZZ")); - } else if (!strcmp(id->font_name, "Rosemary")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_FONTSTYLE_ROSEMARY")); - } else if (!strcmp(id->font_name, "Tinkerbell")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_MBODY_TINKERBELL")); - } else if (!strcmp(id->font_name, "Applemint")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_RH_BUTTON2_APPLEMINT_M_FONT")); - } else if (!strcmp(id->font_name, "Kaiti")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_KAITI_M_FONT")); - } else if (!strcmp(id->font_name, "POP")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_POP_JPN_DCM")); - } else if (!strcmp(id->font_name, "UDMincho")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_UDMINCHO_JPN")); - } else if (!strcmp(id->font_name, "UDRGothic")) { - snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_UDRGOTHICM_JPN")); - } else { - snprintf(buf, sizeof(buf)-1, "%s", new_name, id->font_name); - } + #endif + + if (!strcmp(id->font_name, "Choco cooky")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_LCKSCN_BODY_CHOCO_COOKY_M_FONT")); + } else if (!strcmp(id->font_name, "Cool jazz")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_COOL_JAZZ")); + } else if (!strcmp(id->font_name, "Rosemary")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_FONTSTYLE_ROSEMARY")); + } else if (!strcmp(id->font_name, "Tinkerbell")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_MBODY_TINKERBELL")); + } else if (!strcmp(id->font_name, "Applemint")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_RH_BUTTON2_APPLEMINT_M_FONT")); + } else if (!strcmp(id->font_name, "Kaiti")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_KAITI_M_FONT")); + } else if (!strcmp(id->font_name, "POP")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_POP_JPN_DCM")); + } else if (!strcmp(id->font_name, "UDMincho")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_UDMINCHO_JPN")); + } else if (!strcmp(id->font_name, "UDRGothic")) { + snprintf(buf, sizeof(buf)-1, "%s", new_name, _("IDS_ST_BODY_UDRGOTHICM_JPN")); + } else { + snprintf(buf, sizeof(buf)-1, "%s", new_name, id->font_name); + } +#if 0 } +#endif } DBG("font = %s", buf); @@ -764,7 +817,7 @@ static Evas_Object * _gl_font_style_ridio_get(void *data, Evas_Object *obj, cons evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_radio_group_add(radio, radio_main); - evas_object_smart_callback_add(radio, "changed", _font_style_gl_cb, (void *)id); + evas_object_smart_callback_add(radio, "clicked", _font_style_gl_cb, (void *)id); evas_object_propagate_events_set(radio, EINA_FALSE); } @@ -782,7 +835,12 @@ static void _font_style_gl_del(void *data, Evas_Object *obj) } static char * _gl_font_size_title_get(void *data, Evas_Object *obj, const char *part) +{int old_font_size = -1; +if( system_settings_get_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, &old_font_size) + != SYSTEM_SETTINGS_ERROR_NONE ) { + DBG("Setting - system_settings_get_value_int() is failed."); +} char buf[1024]; Item_Data *id = data; @@ -847,14 +905,17 @@ static Ecore_Timer * font_timer = NULL; static Eina_Bool _update_font_style(void * data) { // change font style - system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name); - - FREE(font_name); + if (font_name) { + system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name); + FREE(font_name); + } else { + ERR("font_name is null"); + } font_timer = NULL; return ECORE_CALLBACK_CANCEL; } - +#if 0 static void _font_style_cancel_cb(void *data, Evas_Object *obj, void *event_info) { appdata *ad = data; @@ -898,6 +959,7 @@ static void _font_style_ok_cb(void *data, Evas_Object *obj, void *event_info) } font_timer = ecore_timer_add(0.3, (Ecore_Task_Cb) _update_font_style, NULL); } +#endif static void _font_style_gl_cb(void *data, Evas_Object *obj, void *event_info) { @@ -906,12 +968,21 @@ static void _font_style_gl_cb(void *data, Evas_Object *obj, void *event_info) //elm_radio_value_set(temp_ad->font_style_rdg, id->index); - FREE(font_name); - font_name = strdup(id->font_name); + + if (id->font_name) + { + FREE(font_name); + font_name = strdup(id->font_name); + } //elm_genlist_realized_items_update(g_font_style_genlist); elm_naviframe_item_pop(temp_ad->nf); + if( font_style_item ) + { + elm_genlist_item_update(font_style_item); + } + if(!temp_ad->font_style_rdg) { evas_object_del(temp_ad->font_style_rdg); @@ -933,6 +1004,11 @@ static Eina_Bool _update_font_size(void * data) font_timer = NULL; + if( font_size_item ) + { + elm_genlist_item_update(font_size_item); + } + return ECORE_CALLBACK_CANCEL; } @@ -957,6 +1033,7 @@ static void _font_size_gl_cb(void *data, Evas_Object *obj, void *event_info) //elm_genlist_realized_items_update(g_font_size_genlist); elm_naviframe_item_pop(temp_ad->nf); + if(!temp_ad->font_size_rdg) { evas_object_del(temp_ad->font_size_rdg); @@ -974,7 +1051,6 @@ static void _font_size_gl_cb(void *data, Evas_Object *obj, void *event_info) DBG("Setting - font size is same with old."); font_timer = ecore_timer_add(0.3, (Ecore_Task_Cb) _update_font_size, NULL); } - } void _show_font_list(void* data) @@ -993,7 +1069,7 @@ void _show_font_list(void* data) temp_ad = ad; Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new(); - itc->item_style = "1text"; + itc->item_style = "2text"; itc->func.text_get = _gl_font_title_get; itc->func.del = _font_size_gl_del; @@ -1006,20 +1082,38 @@ void _show_font_list(void* data) elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS); evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - for( idx = 0; idx < sizeof(font_menu_its) / sizeof(struct _font_menu_item); idx++ ) + for( idx = 0; idx < 1; idx++ ) { Item_Data *id = calloc(sizeof(Item_Data), 1); id->index = idx; id->item = elm_genlist_item_append(genlist, itc, id, NULL, - ELM_GENLIST_ITEM_NONE, font_menu_its[idx].func, ad); + ELM_GENLIST_ITEM_NONE, _display_gl_font_style_cb, ad); + + if( idx == 0 ) + { + font_style_item = id->item; + } + else + { + font_size_item = id->item; + } } elm_object_part_content_set(layout, "elm.genlist", genlist); elm_genlist_item_class_free(itc); - nf_it = elm_naviframe_item_push(ad->nf, NULL, NULL, NULL, layout, NULL); + nf_it = elm_naviframe_item_push(ad->nf, "IDS_ST_BODY_FONT", NULL, NULL, layout, NULL); +#if !defined(FEATURE_SETTING_TELEPHONY) elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); +#endif + elm_object_item_domain_text_translatable_set(nf_it, SETTING_PACKAGE, EINA_TRUE); + elm_naviframe_item_pop_cb_set(nf_it, setting_font_list_pop_cb, ad); + + if(system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_FONT_TYPE, settings_font_style_changed_cb, ad) != 0) + { + ERR("system_settings_set_changed_cb failed!!"); + } } char* _get_default_font() @@ -1108,9 +1202,11 @@ static Eina_List *_get_available_font_list() return NULL; } + char *locale = setlocale(0, NULL); + pat = FcPatternCreate(); - os = FcObjectSetBuild(FC_FAMILY, FC_FILE, (char *) 0); + os = FcObjectSetBuild(FC_FAMILY, FC_FILE, FC_FAMILYLANG, (char *) 0); if (os) { fs = FcFontList(font_config, pat, os); @@ -1127,45 +1223,108 @@ static Eina_List *_get_available_font_list() int j; DBG("fs->nfont = %d", fs->nfont); - for (j = 0; j < fs->nfont; j++) { + for (j = 0; j < fs->nfont; j++) + { FcChar8 *family = NULL; FcChar8 *file = NULL; + FcChar8 *lang = NULL; + int id = 0; - if (FcPatternGetString(fs->fonts[j], FC_FILE, 0, &file) == FcResultMatch) { + if (FcPatternGetString(fs->fonts[j], FC_FILE, 0, &file) == FcResultMatch) + { int preload_path_len = strlen(SETTING_FONT_PRELOAD_FONT_PATH); int download_path_len = strlen(SETTING_FONT_DOWNLOADED_FONT_PATH); - int b_disable_preloaded_font; - b_disable_preloaded_font = _CSC_FEATURE_DEF_BOOL_SETTING_FONT_OTHER_PRELOAD_DISABLE; - /* true : disable for 5 && false : others shown */ - if(b_disable_preloaded_font == 1) { - //true : show only default(BRI,CHC,CHN,CTC,TGY) - DBG("show only default"); + char * family_result = NULL; + + if (FcPatternGetString(fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch) + { + DBG("Family name is invalid"); + continue; + } + + if (FcPatternGetString(fs->fonts[j], FC_FAMILYLANG, id, &lang) != FcResultMatch) + { + DBG("Family lang is invalid"); + continue; } - else{ - if (!strncmp((const char*)file, SETTING_FONT_PRELOAD_FONT_PATH, preload_path_len)){ - if (FcPatternGetString(fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch) { - DBG("Family name is invalid"); - continue; + + if (!strncmp((const char*)file, SETTING_FONT_PRELOAD_FONT_PATH, preload_path_len)) + { + // Find proper family name for current locale. + while (locale && family && lang) + { + //DBG("locale: %s, family: %s, lang: %s", locale, family, lang); + + if (!strncmp(locale, (char *)lang, strlen((char *)lang))) + { + family_result = (char *)family; + break; } - if (eina_list_data_find(list, family) == NULL) { - list = eina_list_append(list, family); - DBG("-------- ADDED FONT - family = %s", (char *)family); + // I will set english as default family language. + // If there is no proper family language for current locale, + // we have to show the english family name. + if (!strcmp(lang, "en")) + { + family_result = (char *)family; + } + id++; + if (FcPatternGetString(fs->fonts[j], FC_FAMILY, id, &family) != FcResultMatch) + { + break; + } + if (FcPatternGetString(fs->fonts[j], FC_FAMILYLANG, id, &lang) != FcResultMatch) + { + break; } } - } - /* always shown for D/L */ - if (!strncmp((const char*)file, SETTING_FONT_DOWNLOADED_FONT_PATH, download_path_len)) { - if (FcPatternGetString(fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch) { - DBG("Family name is invalid"); - continue; + if (eina_list_data_find(list, family_result) == NULL) + { + list = eina_list_append(list, family_result); + DBG("-------- ADDED FONT - family result = %s", (char *)family_result); + } + } + + id = 0; + + /* always shown for D/L */ + if (!strncmp((const char*)file, SETTING_FONT_DOWNLOADED_FONT_PATH, download_path_len)) + { + // Find proper family name for current locale. + while (locale && family && lang) + { + //DBG("locale: %s, family: %s, lang: %s", locale, family, lang); + + if (!strncmp(locale, (char *)lang, strlen((char *)lang))) + { + family_result = (char *)family; + break; + } + + // I will set english as default family language. + // If there is no proper family language for current locale, + // we have to show the english family name. + if (!strcmp(lang, "en")) + { + family_result = (char *)family; + } + id++; + if (FcPatternGetString(fs->fonts[j], FC_FAMILY, id, &family) != FcResultMatch) + { + break; + } + if (FcPatternGetString(fs->fonts[j], FC_FAMILYLANG, id, &lang) != FcResultMatch) + { + break; + } } - if (eina_list_data_find(list, family) == NULL) { - list = eina_list_append(list, family); - DBG("-------- ADDED FONT - family = %s", (char *)family); + if (eina_list_data_find(list, family_result) == NULL) + { + list = eina_list_append(list, family_result); + DBG("-------- ADDED FONT - family result = %s", (char *)family_result); } } } @@ -1179,13 +1338,13 @@ static Eina_List *_get_available_font_list() return list; } -void _show_font_style_list(void* data) +int _show_font_style_list(void* data) { appdata *ad = data; if( ad == NULL ) { DBG("%s", "_show_font_style_list - appdata is null"); - return; + return -1; } Evas_Object *genlist = NULL; Evas_Object *btn = NULL; @@ -1217,20 +1376,35 @@ void _show_font_style_list(void* data) if (ret != SYSTEM_SETTINGS_ERROR_NONE) { ERR("failed to call system_setting_get_value_string with err %d", ret); tmp_name = _get_default_font(); + if (tmp_name == NULL) + { + ERR("failed to get default font name"); + return -1; + } else { + DBG("get_default_font = %s", tmp_name); + } + } else { + DBG("SYSTEM_SETTINGS_KEY_FONT_TYPE = %s", tmp_name); } default_font_name = _get_default_font(); - Font_Style_Item_Data *id_default = calloc(sizeof(Font_Style_Item_Data), 1); - if (tmp_name && !strcmp(tmp_name, default_font_name)) { - matched_idx = idx; - font_name = strdup(tmp_name); + if (default_font_name) + { + Font_Style_Item_Data *id_default = calloc(sizeof(Font_Style_Item_Data), 1); + if (default_font_name && tmp_name && !strcmp(tmp_name, default_font_name)) { + matched_idx = idx; + font_name = strdup(tmp_name); + } + id_default->index = idx++; + id_default->font_name = (default_font_name != NULL) ? strdup(default_font_name) : NULL; + id_default->item = elm_genlist_item_append(genlist, itc, id_default, NULL, ELM_GENLIST_ITEM_NONE, + _font_style_gl_cb, (void*)id_default); + } else { + ERR("default_font_name is NULL"); } - id_default->index = idx++; - id_default->font_name = strdup(default_font_name); - id_default->item = elm_genlist_item_append(genlist, itc, id_default, NULL, ELM_GENLIST_ITEM_NONE, - _font_style_gl_cb, (void*)id_default); + // get font list Eina_List *font_list = NULL; Eina_List *l = NULL; FcChar8 *font_data = NULL; @@ -1243,6 +1417,9 @@ void _show_font_style_list(void* data) matched_idx = idx; font_name = strdup(tmp_name); } + + DBG("font_data -------> %s",(const char*)font_data); + id->index = idx++; id->font_name = (char *)strdup((char*)font_data); id->item = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, @@ -1263,22 +1440,104 @@ void _show_font_style_list(void* data) elm_genlist_item_class_free(itc); -/* - btn = elm_button_add(layout); - evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_object_text_set(btn, _("IDS_ST_BUTTON_CANCEL_ABB2")); - elm_object_part_content_set(layout, "btn.left", btn); - evas_object_smart_callback_add(btn, "clicked", _font_style_cancel_cb, ad); - - btn = elm_button_add(layout); - evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_object_text_set(btn, _("IDS_WNOTI_BUTTON_OK_ABB2")); - elm_object_part_content_set(layout, "btn.right", btn); - evas_object_smart_callback_add(btn, "clicked", _font_style_ok_cb, ad); -*/ + evas_object_smart_callback_add(genlist, "language,changed", _lang_update_font_style_list, ad); - nf_it = elm_naviframe_item_push(ad->nf, NULL, NULL, NULL, layout, NULL); + nf_it = elm_naviframe_item_push(ad->nf, "IDS_ST_BODY_FONT_STYLE", NULL, NULL, layout, NULL); +#if !defined(FEATURE_SETTING_TELEPHONY) elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); +#endif + elm_object_item_domain_text_translatable_set(nf_it, SETTING_PACKAGE, EINA_TRUE); + elm_naviframe_item_pop_cb_set(nf_it, setting_font_style_pop_cb, ad); + return 0; +} + +static void _lang_update_font_style_list(void * data, Evas_Object *obj, void *event_info) +{ + DBG("_lang_update_font_style_list"); + + appdata *ad = data; + if( ad == NULL ) + { + DBG("%s", "_lang_update_font_style_list - appdata is null"); + return; + } + + if(g_font_style_genlist) + { + elm_genlist_clear(g_font_style_genlist); + + char *default_font_name = NULL; + char *tmp_name = NULL; + int idx = 0, matched_idx = 0; + int ret = 0; + + Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new(); + itc->item_style = "1text.1icon.1"; + itc->func.text_get = _gl_font_style_title_get; + itc->func.content_get = _gl_font_style_ridio_get; + itc->func.del = _font_style_gl_del; + + FREE(font_name); + ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &tmp_name); + if (ret != SYSTEM_SETTINGS_ERROR_NONE) { + ERR("failed to call system_setting_get_value_string with err %d", ret); + tmp_name = _get_default_font(); + } + + default_font_name = _get_default_font(); + + Font_Style_Item_Data *id_default = calloc(sizeof(Font_Style_Item_Data), 1); + if (default_font_name && tmp_name && !strcmp(tmp_name, default_font_name)) { + matched_idx = idx; + font_name = strdup(tmp_name); + } + id_default->index = idx++; + id_default->font_name = (default_font_name != NULL) ? strdup(default_font_name) : NULL; + id_default->item = elm_genlist_item_append(g_font_style_genlist, itc, id_default, NULL, ELM_GENLIST_ITEM_NONE, + _font_style_gl_cb, (void*)id_default); + + Eina_List *font_list = NULL; + Eina_List *l = NULL; + FcChar8 *font_data = NULL; + font_list = _get_available_font_list(); + EINA_LIST_FOREACH(font_list, l, font_data) + { + if(!default_font_name || strcmp((const char *)default_font_name, (const char *)font_data)){ + Font_Style_Item_Data *id = calloc(sizeof(Item_Data), 1); + if (tmp_name && !strcmp((const char *)tmp_name, (const char *)font_data)) { + matched_idx = idx; + font_name = strdup(tmp_name); + } + DBG("Font1: %s, Font2: %s", tmp_name, font_data); + + id->index = idx++; + id->font_name = (char *)strdup((char*)font_data); + id->item = elm_genlist_item_append(g_font_style_genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, + _font_style_gl_cb, (void*)id); + } + } + + ad->font_style_rdg = evas_object_data_get(g_font_style_genlist, "radio_main"); + if(ad->font_style_rdg) + { + evas_object_del(ad->font_style_rdg); + ad->font_style_rdg = NULL; + } + + evas_font_reinit(); + ad->font_style_rdg = elm_radio_add(g_font_style_genlist); + elm_radio_state_value_set(ad->font_style_rdg, -1); + + evas_object_data_set(g_font_style_genlist, "radio_main", ad->font_style_rdg); + + elm_genlist_realized_items_update(g_font_style_genlist); + + DBG("Matched index: %d", matched_idx); + + elm_radio_value_set(ad->font_style_rdg, matched_idx); + + elm_genlist_item_class_free(itc); + } } void _show_font_size_list(void* data) @@ -1330,8 +1589,11 @@ void _show_font_size_list(void* data) elm_genlist_item_class_free(itc); - nf_it = elm_naviframe_item_push(ad->nf, NULL, NULL, NULL, layout, NULL); + nf_it = elm_naviframe_item_push(ad->nf, "IDS_ST_BODY_FONT_SIZE_ABB", NULL, NULL, layout, NULL); +#if !defined(FEATURE_SETTING_TELEPHONY) elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); +#endif + elm_object_item_domain_text_translatable_set(nf_it, SETTING_PACKAGE, EINA_TRUE); } static char * _gl_roatate_screen_title_get(void *data, Evas_Object *obj, const char *part) @@ -1475,202 +1737,274 @@ void _show_rotate_screen_list(void* data) elm_naviframe_item_title_enabled_set(nf_it, EINA_FALSE, EINA_FALSE); } -static void _set_cancel_cb(void *data, Evas_Object *obj, void *event_info) +static void _set_rotate_screen(const int rotation) { - appdata * ad = data; - if( ad == NULL ) + vconf_set_int(VCONFKEY_SETAPPL_SCREENROTATION_DEG_INT, rotation); +} + +static int _get_rotate_screen() +{ + int rot; + vconf_get_int(VCONFKEY_SETAPPL_SCREENROTATION_DEG_INT, &rot); + return rot; +} + +static void settings_font_style_changed_cb(system_settings_key_e key, void *user_data) +{ + DBG("settings_font_style_changed_cb"); + + appdata* ad = user_data; + if(ad == NULL) return; - int enable = display_get_hbm(); - if( hbm_mode_on_original ) - { - if( enable == DISABLE ) - { - _set_HBM_mode(TRUE); - } - } - else + char * font_name = NULL; + Evas_Object * font_style_radio = NULL; + if( g_font_style_genlist ) { - if( enable == ENABLE ) + font_style_radio = evas_object_data_get(g_font_style_genlist, "radio_main"); + if(font_style_radio) { - _set_HBM_mode(FALSE); + if (system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &font_name) + != SYSTEM_SETTINGS_ERROR_NONE) + { + ERR("failed to call system_setting_get_value_string with err"); + return; + } + + DBG("Update a font style list"); + + DBG("System font: %s", font_name); + + int index = 0; + Eina_List *font_list = NULL; + Eina_List *l = NULL; + Elm_Object_Item *font_item = NULL; + Font_Style_Item_Data * font_data = NULL; + + font_list = elm_genlist_realized_items_get(g_font_style_genlist); + EINA_LIST_FOREACH(font_list, l, font_item) + { + font_data = (Font_Style_Item_Data*) elm_object_item_data_get(font_item); + if(font_name && !strcmp((const char *)font_name, (const char *)font_data->font_name)) + { + DBG("1: %s, 2: %s", font_name, font_data->font_name); + DBG("Font style matched index : %d", index); + elm_radio_value_set(font_style_radio, index); + return; + } + index++; + } } } - device_set_brightness_to_settings(0, brightness_origin_level); - - brightness_layout = NULL; - g_brightness_controller = NULL; - - elm_naviframe_item_pop(ad->nf); -} - -static int _change_bright_lovel_to_index(int level) -{ - int index = 0; - - if( level >= 20 && level <= 100 ) + if( font_style_item ) { - index = (level / 20); - DBG("Setting - level -> index : %d", index); + elm_genlist_item_update(font_style_item); } - return index; } -static int _change_bright_index_to_level(int index) +static Eina_Bool setting_font_style_pop_cb(void *data, Elm_Object_Item *it) { - int level = 1; - if( index > 0 && index < 6 ) - { - switch(index) { - case 1: - level = 20; - break; - case 2: - level = 40; - break; - case 3: - level = 60; - break; - case 4: - level = 80; - break; - case 5: - level = 100; - break; - } - } + DBG("setting_font_style_pop_cb"); - DBG("Setting - index -> level : %d", level); + g_font_style_genlist = NULL; - return level; + return EINA_TRUE; } -static void brightness_vconf_changed_cb(keynode_t * key, void * data) +static Eina_Bool setting_font_list_pop_cb(void * data, Elm_Object_Item * it) { - DBG("Setting - brightness vconf changed!!"); + DBG("setting_font_list_pop_cb"); - int brightness_level = 0; - brightness_level = vconf_keynode_get_int(key); - brightness_index = _change_bright_lovel_to_index(brightness_level); + font_size_item = NULL; + font_style_item = NULL; - if( g_spinner ) + if(system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_FONT_TYPE) != 0) { - int enable = display_get_hbm(); - if( enable ) - { - brightness_index = 6; - } - elm_spinner_value_set(g_spinner, brightness_index); - _update_brightness_circle(g_spinner); + ERR("system_settings_unset_changed_cb failed!!"); } + + return EINA_TRUE; } -static void _set_brightness_clicked_cb(void *data, Evas_Object *obj, void *event_info) +static void change_language_enabling(keynode_t *key, void * data) { - appdata * ad = (appdata *) data; - if( ad == NULL ) + if(lang_item == NULL) { + DBG("Setting - lang_item is null!!"); return; + } - int enable = display_get_hbm(); - if( enable == TRUE ) + int enable = 0; + vconf_get_bool(VCONFKEY_WMS_WMANAGER_CONNECTED, &enable); + if(enable) { - char buf[1024]; - snprintf(buf, sizeof(buf)-1, _("IDS_IDLE_POP_AFTER_P1SD_MINS_BRIGHTNESS_WILL_BE_RESET_TO_DEFAULT_LEVEL_HP2SD"), 5, 4); - - // show toast - automatic freed!! - struct _toast_data * toast = _create_toast(ad, strdup(buf)); - if( toast ) { - _show_toast(ad, toast); - } + DBG("Setting - Language is disabled"); } else { - int brightness_level = _change_bright_index_to_level(brightness_index); + DBG("Setting - Language is enabled"); + } - device_set_brightness_to_settings(0, brightness_level); + if(lang_item) + { + elm_genlist_item_update(lang_item); } +} - brightness_layout = NULL; - g_brightness_controller = NULL; +static void change_screen_time_cb(keynode_t *key, void * data) +{ + DBG("Setting - change_screen_time_cb"); - if( ad->nf ) + if(screen_time_item) { - elm_naviframe_item_pop(ad->nf); + elm_genlist_item_update(screen_time_item); } } -static void sync_brightness(int real_brightness) +static void change_language_cb(keynode_t *key, void * data) { - DBG("Setting - Synchronized brightness level"); + DBG("Setting - change_language_cb"); - vconf_set_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, real_brightness); + if(lang_item) + { + elm_genlist_item_update(lang_item); + } } -static void _update_brightness_circle(Evas_Object * spiner) +#if 0 +static void _display_brightness_cb(void *data, Evas_Object *obj, void *event_info) { - if(spiner == NULL) - return; + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); - Evas_Coord w; - double min, max, posx2; - int idx = (int) elm_spinner_value_get(spiner); + Evas_Object * layout = NULL; + Elm_Object_Item *navi_it = NULL; - edje_object_part_geometry_get(elm_layout_edje_get(spiner), "center.image2", NULL, NULL, &w, NULL); - elm_spinner_min_max_get(spiner, &min, &max); + appdata * ad = data; - int enable = display_get_hbm(); - if( enable < 0 ) + if( ad != NULL ) { - DBG("Setting - dispaly_get_hbm() is fail!!"); + layout = _show_brightness_popup(ad, obj, event_info); } - if(enable == TRUE) - { - edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,full1", "elm"); - - elm_object_part_text_set(brightness_layout, "elm.text.2", _("IDS_ST_BODY_OUTDOOR_MODE_ABB")); - } - else + if( layout ) { - if(idx == min) - edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,min", "elm"); - if(idx == max) - edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,full1", "elm"); - if(idx < max) - edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,default1", "elm"); - - brightness_index = idx; - - posx2 = (double)(w/max) * brightness_index; + evas_object_event_callback_add(layout, EVAS_CALLBACK_MOUSE_IN, _power_off_popup_dismiss_cb, NULL); - edje_object_part_drag_value_set(elm_layout_edje_get(spiner), "elm.dragable.slider", posx2, 0); + navi_it = elm_naviframe_item_push( ad->nf, "IDS_ST_BUTTON_BRIGHTNESS", NULL, NULL, layout, NULL ); + elm_object_item_domain_text_translatable_set(navi_it, SETTING_PACKAGE, EINA_TRUE); + elm_naviframe_item_pop_cb_set(navi_it, _brightness_pop_cb, NULL); - elm_object_part_text_set(brightness_layout, "elm.text.2", ""); + register_vconf_changing(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, brightness_vconf_changed_cb, NULL); } } -static void _on_spinner_change_cb(void *data, Evas_Object * obj, void *event_info) +Evas_Object * _show_brightness_popup(void *data, Evas_Object *obj, void *event_info) { - DBG("Setting - _on_spinner_change_cb() is called!"); + Evas_Object *icon; + Evas_Object *ly; + Evas_Object *vol; + Evas_Object *btn; + appdata *ad = data; + int brightness_level = 0; - Evas_Coord w; + if( ad == NULL ) + return NULL; - static int prev = 0; - double min, max; - int idx = (int) elm_spinner_value_get(obj); + temp_ad = ad; - edje_object_part_geometry_get(elm_layout_edje_get(obj), "center.image2", NULL, NULL, &w, NULL); - elm_spinner_min_max_get(obj, &min, &max); + pd = (spin_date*) malloc(sizeof(spin_date)); - DBG("Setting - min: %i, max: %i, idx: %d", (int)min, (int)max, idx); + int real_brightness = 0; + device_get_brightness(0, &real_brightness); + DBG("Setting - Real brightness : %d", real_brightness); - if(idx == max) - edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,full", "elm"); - else if(idx < max) - edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,default", "elm"); - if(idx == min) - edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,min", "elm"); + /* Vconf brightness level */ + vconf_get_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, &brightness_level); + + if( real_brightness != brightness_level ) // HBM mode -> normal level(4) + { + sync_brightness(real_brightness); + + brightness_level = real_brightness; + } + + int enable = display_get_hbm(); + if( enable < 0 ) + { + DBG("Setting - dispaly_get_hbm() is fail!!"); + } + + if( enable == TRUE ) + { + DBG("Setting - current HBM mode!!"); + brightness_index = 6; + } + else + { + brightness_index = _change_bright_lovel_to_index(brightness_level); + } + + DBG("Setting - level: %d, index: %d", brightness_level, brightness_index); + + brightness_origin_level = brightness_level; + + ly = elm_layout_add(ad->nf); + elm_layout_file_set(ly, EDJE_PATH, "setting/2finger_popup/default2"); + evas_object_size_hint_min_set(ly, 320, 200); + evas_object_size_hint_weight_set (ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); + + brightness_layout = ly; + + pd->spinner = elm_spinner_add(ly); + elm_object_style_set(pd->spinner, "brightnessstyle"); + elm_spinner_editable_set(pd->spinner, EINA_TRUE); + elm_spinner_min_max_set(pd->spinner, 1, 6); + evas_object_smart_callback_add(pd->spinner, "changed", _on_spinner_change_cb, pd); + elm_object_part_content_set(ly, "elm.icon.1", pd->spinner); + elm_spinner_value_set(pd->spinner, brightness_index); + _update_brightness_circle(pd->spinner); + + btn = elm_button_add(ly); + evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_object_translatable_text_set(btn, "IDS_ST_BUTTON_CANCEL_ABB2"); + elm_object_part_content_set(ly, "btn1", btn); + evas_object_smart_callback_add(btn, "clicked", _set_cancel_cb, ad); + + btn = elm_button_add(ly); + evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_object_translatable_text_set(btn, "IDS_WNOTI_BUTTON_OK_ABB2"); + elm_object_part_content_set(ly, "btn2", btn); + evas_object_smart_callback_add(btn, "clicked", _set_brightness_clicked_cb, ad); + + hbm_mode_on_original = enable; // backup for cancel + + g_spinner = pd->spinner; + + return ly; +} + +static void _on_spinner_change_cb(void *data, Evas_Object * obj, void *event_info) +{ + DBG("Setting - _on_spinner_change_cb() is called!"); + + Evas_Coord w; + + static int prev = 0; + double min, max; + int idx = (int) elm_spinner_value_get(obj); + + edje_object_part_geometry_get(elm_layout_edje_get(obj), "center.image2", NULL, NULL, &w, NULL); + elm_spinner_min_max_get(obj, &min, &max); + + DBG("Setting - min: %i, max: %i, idx: %d", (int)min, (int)max, idx); + + if(idx == max) + edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,full", "elm"); + else if(idx < max) + edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,default", "elm"); + if(idx == min) + edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,min", "elm"); if(idx > min) edje_object_signal_emit(elm_layout_edje_get(obj), "elm,spinner,normal", "elm"); @@ -1712,35 +2046,113 @@ static void _on_spinner_change_cb(void *data, Evas_Object * obj, void *event_inf edje_object_part_drag_value_set(elm_layout_edje_get(obj), "elm.dragable.slider", posx2, 0); } -Evas_Object * _show_brightness_popup(void *data, Evas_Object *obj, void *event_info) +static Eina_Bool _brightness_pop_cb(void *data, Elm_Object_Item *it) { - Evas_Object *icon; - Evas_Object *ly; - Evas_Object *vol; - Evas_Object *btn; - appdata *ad = data; - int brightness_level = 0; + DBG("Setting - brightness_pop_cb() is called!"); - if( ad == NULL ) - return NULL; + if( pd ) + { + DBG("Setting - Free pd!"); + free(pd); + } - temp_ad = ad; + unregister_vconf_changing(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, brightness_vconf_changed_cb); - pd = (spin_date*) malloc(sizeof(spin_date)); + return EINA_TRUE; +} - int real_brightness = 0; - device_get_brightness(0, &real_brightness); - DBG("Setting - Real brightness : %d", real_brightness); +static void _power_off_popup_dismiss_cb(void *data, Evas_Object *obj, void *event_info) +{ + DBG("Setting - _power_off_popup_dismiss_cb() is called!"); - /* Vconf brightness level */ + int brightness_level = 0; vconf_get_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, &brightness_level); + brightness_index = _change_bright_lovel_to_index(brightness_level); - if( real_brightness != brightness_level ) // HBM mode -> normal level(4) + if( g_spinner ) { - sync_brightness(real_brightness); + int enable = display_get_hbm(); + if( enable ) + { + brightness_index = 6; + } + elm_spinner_value_set(g_spinner, brightness_index); + _update_brightness_circle(g_spinner); + } +} - brightness_level = real_brightness; +static void brightness_vconf_changed_cb(keynode_t * key, void * data) +{ + DBG("Setting - brightness vconf changed!!"); + + int brightness_level = 0; + brightness_level = vconf_keynode_get_int(key); + brightness_index = _change_bright_lovel_to_index(brightness_level); + + if( g_spinner ) + { + int enable = display_get_hbm(); + if( enable ) + { + brightness_index = 6; + } + elm_spinner_value_set(g_spinner, brightness_index); + _update_brightness_circle(g_spinner); + } +} + +static void _set_brightness_clicked_cb(void *data, Evas_Object *obj, void *event_info) +{ + appdata * ad = (appdata *) data; + if( ad == NULL ) + return; + + int enable = display_get_hbm(); + if( enable == TRUE ) + { + char buf[1024]; + snprintf(buf, sizeof(buf)-1, _("IDS_IDLE_POP_AFTER_P1SD_MINS_BRIGHTNESS_WILL_BE_RESET_TO_DEFAULT_LEVEL_HP2SD"), 5, 4); + + // show toast - automatic freed!! + struct _toast_data * toast = _create_toast(ad, buf); + if( toast ) { + _show_toast(ad, toast); + } + } + else + { + int brightness_level = _change_bright_index_to_level(brightness_index); + + device_set_brightness_to_settings(0, brightness_level); + } + + brightness_layout = NULL; + g_brightness_controller = NULL; + + if( ad->nf ) + { + elm_naviframe_item_pop(ad->nf); } +} + +static void sync_brightness(int real_brightness) +{ + DBG("Setting - Synchronized brightness level"); + + vconf_set_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, real_brightness); +} + +static void _update_brightness_circle(Evas_Object * spiner) +{ + if(spiner == NULL) + return; + + Evas_Coord w; + double min, max, posx2; + int idx = (int) elm_spinner_value_get(spiner); + + edje_object_part_geometry_get(elm_layout_edje_get(spiner), "center.image2", NULL, NULL, &w, NULL); + elm_spinner_min_max_get(spiner, &min, &max); int enable = display_get_hbm(); if( enable < 0 ) @@ -1748,64 +2160,132 @@ Evas_Object * _show_brightness_popup(void *data, Evas_Object *obj, void *event_i DBG("Setting - dispaly_get_hbm() is fail!!"); } - if( enable == TRUE ) + if(enable == TRUE) { - DBG("Setting - current HBM mode!!"); - brightness_index = 6; + edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,full1", "elm"); + + elm_object_part_text_set(brightness_layout, "elm.text.2", _("IDS_ST_BODY_OUTDOOR_MODE_ABB")); } else { - brightness_index = _change_bright_lovel_to_index(brightness_level); + if(idx == min) + edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,min", "elm"); + if(idx == max) + edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,full1", "elm"); + if(idx < max) + edje_object_signal_emit(elm_layout_edje_get(spiner), "elm,spinner,default1", "elm"); + + brightness_index = idx; + + posx2 = (double)(w/max) * brightness_index; + + edje_object_part_drag_value_set(elm_layout_edje_get(spiner), "elm.dragable.slider", posx2, 0); + + elm_object_part_text_set(brightness_layout, "elm.text.2", ""); } +} - DBG("Setting - level: %d, index: %d", brightness_level, brightness_index); +static void wake_up_vconf_changed_cb(keynode_t * key, void * data) +{ + DBG("Setting - motion_vconf_changed_cb() is called!"); - brightness_origin_level = brightness_level; + if( wake_up_item ) + { + elm_genlist_item_update(wake_up_item); + } +} - ly = elm_layout_add(ad->nf); - elm_layout_file_set(ly, EDJE_PATH, "setting/2finger_popup/default2"); - evas_object_size_hint_min_set(ly, 320, 200); - evas_object_size_hint_weight_set (ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); +static void icon_size_vconf_changed_cb(keynode_t * key, void * data) +{ + DBG("Setting - icon_size_vconf_changed_cb() is called!"); - brightness_layout = ly; + if( edit_icon_item ) + { + elm_genlist_item_update(edit_icon_item); + } +} - pd->spinner = elm_spinner_add(ly); - elm_object_style_set(pd->spinner, "brightnessstyle"); - elm_spinner_editable_set(pd->spinner, EINA_TRUE); - elm_spinner_min_max_set(pd->spinner, 1, 6); - evas_object_smart_callback_add(pd->spinner, "changed", _on_spinner_change_cb, pd); - elm_object_part_content_set(ly, "elm.icon.1", pd->spinner); - elm_spinner_value_set(pd->spinner, brightness_index); - _update_brightness_circle(pd->spinner); +static void _set_cancel_cb(void *data, Evas_Object *obj, void *event_info) +{ + appdata * ad = data; + if( ad == NULL ) + return; - btn = elm_button_add(ly); - evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_object_translatable_text_set(btn, "IDS_ST_BUTTON_CANCEL_ABB2"); - elm_object_part_content_set(ly, "btn1", btn); - evas_object_smart_callback_add(btn, "clicked", _set_cancel_cb, ad); + int enable = display_get_hbm(); + if( hbm_mode_on_original ) + { + if( enable == DISABLE ) + { + _set_HBM_mode(TRUE); + } + } + else + { + if( enable == ENABLE ) + { + _set_HBM_mode(FALSE); + } + } - btn = elm_button_add(ly); - evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_object_translatable_text_set(btn, "IDS_WNOTI_BUTTON_OK_ABB2"); - elm_object_part_content_set(ly, "btn2", btn); - evas_object_smart_callback_add(btn, "clicked", _set_brightness_clicked_cb, ad); + device_set_brightness_to_settings(0, brightness_origin_level); - hbm_mode_on_original = enable; // backup for cancel + brightness_layout = NULL; + g_brightness_controller = NULL; - g_spinner = pd->spinner; + elm_naviframe_item_pop(ad->nf); +} - return ly; +static int _change_bright_lovel_to_index(int level) +{ + int index = 0; + + if( level >= 20 && level <= 100 ) + { + index = (level / 20); + DBG("Setting - level -> index : %d", index); + } + return index; } -static void _set_rotate_screen(const int rotation) +static int _change_bright_index_to_level(int index) { - vconf_set_int(VCONFKEY_SETAPPL_SCREENROTATION_DEG_INT, rotation); + int level = 1; + if( index > 0 && index < 6 ) + { + switch(index) { + case 1: + level = 20; + break; + case 2: + level = 40; + break; + case 3: + level = 60; + break; + case 4: + level = 80; + break; + case 5: + level = 100; + break; + } + } + + DBG("Setting - index -> level : %d", level); + + return level; } -static int _get_rotate_screen() +static void _set_HBM_mode(int enable) { - int rot; - vconf_get_int(VCONFKEY_SETAPPL_SCREENROTATION_DEG_INT, &rot); - return rot; + if( display_enable_hbm(enable, 300) == 0 ) // after 5 minutes, HBM mode will be off! + { + DBG("Setting - HBM %s!!", (enable) ? "enabled" : "disabled"); + } + else + { + DBG("Setting - HBM api failed!!"); + } } + +#endif diff --git a/src/setting-double.c b/src/setting-double.c index b95f628..5931047 100644 --- a/src/setting-double.c +++ b/src/setting-double.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-double.c * diff --git a/src/setting-homescreen.c b/src/setting-homescreen.c index 5ea323f..c5df0aa 100755 --- a/src/setting-homescreen.c +++ b/src/setting-homescreen.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include @@ -22,7 +16,7 @@ #include #include -#include +//#include #include @@ -62,8 +56,8 @@ static struct _color color[] = { static char * home_icon_sub_str[] = { - "IDS_ST_BODY_LARGE_ICONS_HP1SDXP2SD_ABB", - "IDS_ST_BODY_SMALL_ICONS_HP1SDXP2SD_ABB", + "IDS_HS_OPT_LARGE_ICONS_ABB", + "IDS_HS_OPT_SMALL_ICONS_ABB", }; static char * thumb_path[] = { @@ -95,8 +89,11 @@ static bool running_gallery = false; static Ecore_Timer *running_gallery_timer = NULL; static Evas_Object * g_wallpaper_layout = NULL; +static Evas_Object * g_wallpaper_scroller = NULL; static Evas_Object * g_color_page = NULL; static Evas_Object * g_gallery_prv = NULL; +static Evas_Object * g_wallpaper_box = NULL; +static bool wallpaper_touched = false; static int _chk_pkg_install(const char *pkgid) { @@ -155,11 +152,14 @@ static void _get_last_img_path() } media_content_connect(); - ret = media_info_foreach_media_from_db(media_filter, _gallery_item_cb, &item_list); + +#if 0 + ret = media_info_foreach_media_from_db_with_media_mode(media_filter, _gallery_item_cb, &item_list); if(ret != MEDIA_CONTENT_ERROR_NONE) { DBG("Cannot retrive data err[%d]", ret); } +#endif media_content_disconnect(); media_filter_destroy(media_filter); } @@ -330,16 +330,7 @@ char * _get_homeview_type_subtitle() DBG("VCONFKEY_SETAPPL_HOMESCREEN_TYPE_INT : %d", value); char * substr = NULL; - if(value==SETTING_HOMESCREEN_TYPE_1_1){ - char buf[1024]; - snprintf(buf, sizeof(buf)-1, REPL(REPL(_(home_icon_sub_str[value]),"%1$d","%1$s"),"%2$d","%2$s") ,ICU_NUM(1) , ICU_NUM(1)); - substr = strdup(buf); - } - else{ - char buf[1024]; - snprintf(buf, sizeof(buf)-1, REPL(REPL(_(home_icon_sub_str[value]),"%1$d","%1$s"),"%2$d","%2$s") ,ICU_NUM(2) , ICU_NUM(2)); - substr = strdup(buf); - } + substr = strdup(_(home_icon_sub_str[value])); return substr; } @@ -348,7 +339,7 @@ static char * _gl_viewtype_title_get(void *data, Evas_Object *obj, const char *p { Item_Data *id = data; char * title = NULL; - if (!strcmp(part, "elm.text.1") || !strcmp(part, "elm.text")) { + if (!strcmp(part, "elm.text")){ if (!id->index) { char buf[1024]; snprintf(buf, sizeof(buf)-1, "%s",_("IDS_HS_OPT_LARGE_ICONS_ABB")); @@ -359,18 +350,6 @@ static char * _gl_viewtype_title_get(void *data, Evas_Object *obj, const char *p title = strdup(buf); } } - else if (!strcmp(part, "elm.text.2")) - { - if (!id->index) { - char buf[1024]; - snprintf(buf, sizeof(buf)-1, "(%sX%s)" ,ICU_NUM(1) , ICU_NUM(1)); - title = strdup(buf); - } else { - char buf[1024]; - snprintf(buf, sizeof(buf)-1, "(%sX%s)" ,ICU_NUM(2) , ICU_NUM(2)); - title = strdup(buf); - } - } return title; } @@ -435,7 +414,7 @@ void _show_viewtype_list(void* data) temp_ad = ad; Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new(); - itc->item_style = "2text.1icon.1"; + itc->item_style = "1text.1icon.1"; itc->func.text_get = _gl_viewtype_title_get; itc->func.content_get = _gl_viewtype_radio_get; itc->func.del = _viewtype_gl_del; @@ -605,7 +584,6 @@ static int prev_x = 0; static void _mouse_down_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) { - DBG("down"); if(running_gallery == true){ touch_mode = NONE; return; @@ -650,7 +628,6 @@ static void _mouse_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_i static void _mouse_move_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) { - DBG("move"); if(running_gallery == true){ touch_mode = NONE; return; @@ -669,7 +646,6 @@ static void _mouse_move_cb(void *data, Evas *evas, Evas_Object *obj, void *event static void _mouse_up_wallpaper_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) { - DBG("up"); if(running_gallery == true){ touch_mode = NONE; return; @@ -704,6 +680,7 @@ static void _mouse_up_wallpaper_cb(void *data, Evas *evas, Evas_Object *obj, voi if(_set_wallpaper_path(idx)) { feedback_play(FEEDBACK_PATTERN_TOUCH_TAP); + wallpaper_touched = true; if( temp_ad != NULL ) { elm_naviframe_item_pop(temp_ad->nf); @@ -714,6 +691,7 @@ static void _mouse_up_wallpaper_cb(void *data, Evas *evas, Evas_Object *obj, voi if( toast ) { _show_toast(temp_ad, toast); } + } else { DBG("Setting - wallpaper path is wrong!!"); @@ -882,6 +860,153 @@ static void _wallpaper_page_show(void *data, Evas * e, Evas_Object * obj, void * elm_scroller_page_show(obj, page_idx, 0); } +static void _update_wallpaper() +{ + Evas_Object *page_layout, *thumbnail, *color_page, *gallery_page, *touch_eo; + Evas_Object *box = g_wallpaper_box; + + if (box && !wallpaper_touched) { + elm_box_clear(box); + int totalPageCnt = 0; + totalPageCnt = (DEFAULT_WALLPAPER_COUNT+NUM_DEFAULT_THUMB_BUTTON+gallery_img_cnt+1)/NUM_MAX_THUMB_IN_PAGES; + int index; + for(index = 0; index < totalPageCnt; index++ ) + { + page_layout = elm_layout_add(box); + evas_object_size_hint_weight_set(page_layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(page_layout, EVAS_HINT_FILL, EVAS_HINT_FILL); + + elm_layout_file_set(page_layout, EDJE_PATH, "thumbnail_page"); + evas_object_show(page_layout); + + int thumbIdx = 0; + for( thumbIdx = index*NUM_MAX_THUMB_IN_PAGES; thumbIdx < ((index*NUM_MAX_THUMB_IN_PAGES) + NUM_MAX_THUMB_IN_PAGES); thumbIdx++ ) + { + DBG("total : %d, thumbIdx : %d",DEFAULT_WALLPAPER_COUNT+NUM_DEFAULT_THUMB_BUTTON+gallery_img_cnt+1, thumbIdx); + if(DEFAULT_WALLPAPER_COUNT+NUM_DEFAULT_THUMB_BUTTON+gallery_img_cnt == thumbIdx) + { + DBG("check break"); + break; + } + Evas_Object *thumbnail_layout = elm_layout_add(page_layout); + evas_object_size_hint_weight_set(thumbnail_layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(thumbnail_layout, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_layout_file_set(thumbnail_layout, EDJE_PATH, "thumbnail"); + evas_object_show(thumbnail_layout); + //elm_object_signal_emit(thumbnail_layout, "thumb_bg,white", "thumb_bg"); + + // color palette - set color box + if(thumbIdx == 0){ + char *bg_color = NULL; + int R = 0x00, G = 0x00, B = 0x00; + bg_color = vconf_get_str("db/wms/home_bg_palette"); + colorstr_to_decimal(bg_color, &R, &G, &B); + DBG("R : [%d] G : [%d] B : [%d]", R, G, B); + color_page = evas_object_rectangle_add(evas_object_evas_get(page_layout)); + evas_object_color_set(color_page, R, G, B, 255); + evas_object_size_hint_weight_set(color_page, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(color_page, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_object_part_content_set(thumbnail_layout, "thumb", color_page); + evas_object_show(color_page); + g_color_page = color_page; + } + + if(thumbIdx == 1){ + _get_last_img_path(); + gallery_page = elm_image_add(page_layout); + elm_image_file_set(gallery_page, last_img_path, NULL); + elm_object_part_content_set(thumbnail_layout, "thumb", gallery_page); + evas_object_show(gallery_page); + } + + // page content + char buf[256]; + thumbnail = elm_image_add(page_layout);//thumb_path + + int idx_arr; + //default 1,2page thumbnail button : pallette btn, gallery btn + if(gallery_img_cnt || thumbIdx == 0 || thumbIdx == 1){ + idx_arr = thumbIdx; + } + else{ + idx_arr = thumbIdx+1; + } + + snprintf(buf, sizeof(buf), "%s", thumb_path[idx_arr]); + + if ( ecore_file_exists(buf) ) + { + elm_image_file_set(thumbnail, buf, NULL); + } + else + { + elm_image_file_set(thumbnail, NULL, NULL); + } + elm_image_aspect_fixed_set(thumbnail, EINA_FALSE); + elm_image_resizable_set(thumbnail, EINA_TRUE, EINA_TRUE); + + if(thumbIdx == 0 || thumbIdx == 1) + elm_object_part_content_set(thumbnail_layout, "thumb_btn", thumbnail); + else + elm_object_part_content_set(thumbnail_layout, "thumb", thumbnail); + + if(thumbIdx == 2 && gallery_img_cnt){ + g_gallery_prv = thumbnail; + } + evas_object_show(thumbnail); + + // select page + int bg_mode; + vconf_get_int("db/wms/home_bg_mode", &bg_mode); + + if(bg_mode){ + char *sel_wallpaper = NULL; + sel_wallpaper = vconf_get_str("db/menu_widget/bgset"); + if(buf && !strcmp(buf, sel_wallpaper)){ + Evas_Object *selected_rect = elm_image_add(page_layout); + elm_image_file_set(selected_rect, SETTING_DEFAULT_WALLPAPER_PATH"/btn_icons/settings_wallpaper_selected.png", NULL); + elm_image_aspect_fixed_set(selected_rect, EINA_FALSE); + elm_image_resizable_set(selected_rect, EINA_TRUE, EINA_TRUE); + elm_object_part_content_set(thumbnail_layout, "thumb_select", selected_rect); + evas_object_show(selected_rect); + } + } + + switch ( thumbIdx%NUM_MAX_THUMB_IN_PAGES) + { + case 0: + elm_object_part_content_set(page_layout, "thumb1", thumbnail_layout); + break; + case 1: + elm_object_part_content_set(page_layout, "thumb2", thumbnail_layout); + break; + } + + // touch event + if(thumbIdx == 0){ + touch_eo = color_page; + elm_object_signal_emit(thumbnail_layout, "thumbnail,opacity", "thumb_op"); + } + else if(thumbIdx == 1){ + touch_eo = gallery_page; + elm_object_signal_emit(thumbnail_layout, "thumbnail,opacity", "thumb_op"); + } + else{ + touch_eo = thumbnail; + elm_object_signal_emit(thumbnail_layout, "thumbnail,default", "thumb_op"); + } + + evas_object_event_callback_add(touch_eo, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, NULL); + evas_object_event_callback_add(touch_eo, EVAS_CALLBACK_MOUSE_UP, _mouse_up_wallpaper_cb, (void*)idx_arr); + evas_object_event_callback_add(touch_eo, EVAS_CALLBACK_MOUSE_MOVE, _mouse_move_cb, NULL); + } + elm_box_pack_end(box, page_layout); + } + //_wallpaper_page_show(NULL, NULL, g_wallpaper_scroller, NULL); + } +} + + static void _wallpaper_page_refresh(void *data, Evas * e, Evas_Object * obj, void *event_info) { DBG("is_prev_update , %d", is_prev_update); @@ -924,12 +1049,19 @@ static void _wallpaper_vconf_wallpaper_changed_cb(keynode_t *node, void *data) } if(bg_mode == 2 && gallery_img_cnt){ //gallery type - char *bg_gallery = NULL; - bg_gallery = vconf_get_str(VCONFKEY_BGSET); - DBG(" bg mode 2 , gallery true , [%s]", bg_gallery); - elm_image_file_set(g_gallery_prv, bg_gallery, NULL); - evas_object_show(g_gallery_prv); + //char *bg_gallery = NULL; + //bg_gallery = vconf_get_str(VCONFKEY_BGSET); + //DBG(" bg mode 2 , gallery true , [%s]", bg_gallery); + //elm_image_file_set(g_gallery_prv, bg_gallery, NULL); + //evas_object_show(g_gallery_prv); + _update_wallpaper(); } + + if(bg_mode == 0 || bg_mode == 1) + { + _update_wallpaper(); + } + wallpaper_touched = false; } static Evas_Object* _create_wallpaper_thumbnail(Evas_Object* parent) @@ -973,6 +1105,7 @@ static Evas_Object* _create_wallpaper_thumbnail(Evas_Object* parent) elm_object_style_set(scroller, "effect"); elm_scroller_bounce_set(scroller, EINA_TRUE, EINA_TRUE); evas_object_show(scroller); + g_wallpaper_scroller = scroller; /* Create Box */ box = elm_box_add(scroller); @@ -981,7 +1114,7 @@ static Evas_Object* _create_wallpaper_thumbnail(Evas_Object* parent) elm_box_horizontal_set(box, EINA_TRUE); elm_object_content_set(scroller, box); evas_object_show(box); - + g_wallpaper_box = box; int totalPageCnt = 0; totalPageCnt = (DEFAULT_WALLPAPER_COUNT+NUM_DEFAULT_THUMB_BUTTON+gallery_img_cnt+1)/NUM_MAX_THUMB_IN_PAGES; @@ -997,11 +1130,18 @@ static Evas_Object* _create_wallpaper_thumbnail(Evas_Object* parent) int thumbIdx = 0; for( thumbIdx = index*NUM_MAX_THUMB_IN_PAGES; thumbIdx < ((index*NUM_MAX_THUMB_IN_PAGES) + NUM_MAX_THUMB_IN_PAGES); thumbIdx++ ) { + DBG("total : %d, thumbIdx : %d",DEFAULT_WALLPAPER_COUNT+NUM_DEFAULT_THUMB_BUTTON+gallery_img_cnt+1, thumbIdx); + if(DEFAULT_WALLPAPER_COUNT+NUM_DEFAULT_THUMB_BUTTON+gallery_img_cnt == thumbIdx) + { + DBG("check break"); + break; + } Evas_Object *thumbnail_layout = elm_layout_add(page_layout); evas_object_size_hint_weight_set(thumbnail_layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(thumbnail_layout, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_layout_file_set(thumbnail_layout, EDJE_PATH, "thumbnail"); evas_object_show(thumbnail_layout); + //elm_object_signal_emit(thumbnail_layout, "thumb_bg,white", "thumb_bg"); // color palette - set color box if(thumbIdx == 0){ @@ -1063,6 +1203,23 @@ static Evas_Object* _create_wallpaper_thumbnail(Evas_Object* parent) } evas_object_show(thumbnail); + // select page + int bg_mode; + vconf_get_int("db/wms/home_bg_mode", &bg_mode); + + if(bg_mode){ + char *sel_wallpaper = NULL; + sel_wallpaper = vconf_get_str("db/menu_widget/bgset"); + if(buf && !strcmp(buf, sel_wallpaper)){ + Evas_Object *selected_rect = elm_image_add(page_layout); + elm_image_file_set(selected_rect, SETTING_DEFAULT_WALLPAPER_PATH"/btn_icons/settings_wallpaper_selected.png", NULL); + elm_image_aspect_fixed_set(selected_rect, EINA_FALSE); + elm_image_resizable_set(selected_rect, EINA_TRUE, EINA_TRUE); + elm_object_part_content_set(thumbnail_layout, "thumb_select", selected_rect); + evas_object_show(selected_rect); + } + } + switch ( thumbIdx%NUM_MAX_THUMB_IN_PAGES) { case 0: @@ -1151,7 +1308,7 @@ Evas_Object *create_wallpaper_list(void *data) return layout_inner; } -void _gallery_result_cb(service_h service, service_h reply, service_result_e result, void *data) +void _gallery_result_cb(app_control_h service, app_control_h reply, app_control_result_e result, void *data) { DBG("_gallery_result_cb"); if(running_gallery){ @@ -1183,12 +1340,13 @@ void _gallery_gl_cb(void *data, Evas_Object *obj, void *event_info) if (ad == NULL) return; + //app_manager_is_running("org.tizen.w-gallery.appcontrol.setting_wallpaper", &running); if(!running_gallery){ - service_h service; - service_create(&service); - service_set_app_id(service, "org.tizen.w-gallery.appcontrol.setting_wallpaper"); - service_send_launch_request(service, _gallery_result_cb, obj); - service_destroy(service); + app_control_h service; + app_control_create(&service); + app_control_set_app_id(service, "org.tizen.w-gallery.appcontrol.setting_wallpaper"); + app_control_send_launch_request(service, _gallery_result_cb, obj); + app_control_destroy(service); if(running_gallery_timer) { ecore_timer_del(running_gallery_timer); @@ -1227,12 +1385,12 @@ static void _show_edit_home(void* data) return; } - service_h service; - service_create(&service); - service_set_app_id(service, "org.tizen.w-launcher-app"); - service_add_extra_data(service, "home_op", "edit"); - service_send_launch_request(service, NULL, NULL); - service_destroy(service); + app_control_h service; + app_control_create(&service); + app_control_set_app_id(service, "org.tizen.w-launcher-app"); + app_control_add_extra_data(service, "home_op", "edit"); + app_control_send_launch_request(service, NULL, NULL); + app_control_destroy(service); } /* edit home screen */ @@ -1245,11 +1403,11 @@ static void _show_edit_apps(void* data) return; } - service_h service; - service_create(&service); - service_set_app_id(service, "org.tizen.w-launcher-app"); - service_add_extra_data(service, "home_op", "apps_edit"); - service_send_launch_request(service, NULL, NULL); - service_destroy(service); + app_control_h service; + app_control_create(&service); + app_control_set_app_id(service, "org.tizen.w-launcher-app"); + app_control_add_extra_data(service, "home_op", "apps_edit"); + app_control_send_launch_request(service, NULL, NULL); + app_control_destroy(service); } diff --git a/src/setting-info.c b/src/setting-info.c index 4ce2a50..bb8952e 100755 --- a/src/setting-info.c +++ b/src/setting-info.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-info.c * @@ -28,8 +22,6 @@ #include "setting-battery.h" #include "util.h" -#define _CSC_FEATURE_DEF_BOOL_SETTING_IMEI_SERIAL_ADDITION 0 - static struct _info_menu_item info_menu_its[] = { { "IDS_ST_BODY_ABOUT_GEAR_ABB", 0, _gl_info_cb }, @@ -459,7 +451,7 @@ void _safety_inform_popup_cb(void *data, Evas_Object *obj, void *event_info) char * safety_str = elm_entry_utf8_to_markup(_("IDS_ST_BODY_YOU_CAN_CHECK_NOTICES_REGARDING_SAFETY_INFORMATION_BY_FOLLOWING_THE_STEPS_BELOW_N_N1_GO_TO_SETTINGS_MSG")); - char buf[1536]; + char buf[2048]; snprintf(buf, sizeof(buf)-1, "%s", safety_str); char *txt = strdup(buf); @@ -499,10 +491,6 @@ void _gl_info_cb(void *data, Evas_Object *obj, void *event_info) struct _info_menu_item *menu_its = NULL; int idx = 0; - if (_CSC_FEATURE_DEF_BOOL_SETTING_IMEI_SERIAL_ADDITION) { - kor = 1; - } - Elm_Genlist_Item_Class *itc_tmp; Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new(); diff --git a/src/setting-language.c b/src/setting-language.c index 8b0afdd..1c1b471 100644 --- a/src/setting-language.c +++ b/src/setting-language.c @@ -1,19 +1,21 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2013-2014 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. - * -*/ + * PROPRIETARY/CONFIDENTIAL + * + * This software is the confidential and proprietary information of + * SAMSUNG ELECTRONICS ("Confidential Information"). + * You shall not disclose such Confidential Information and shall + * use it only in accordance with the terms of the license agreement + * you entered into with SAMSUNG ELECTRONICS. + * SAMSUNG make no representations or warranties about the suitability + * of the software, either express or implied, including but not + * limited to the implied warranties of merchantability, fitness for + * a particular purpose, or non-infringement. + * SAMSUNG shall not be liable for any damages suffered by licensee as + * a result of using, modifying or distributing this software or its derivatives. + */ + /* * setting-language.c * @@ -28,12 +30,31 @@ #include #include "setting-language.h" +#include "setting_view_toast.h" #include "util.h" static struct _lang_menu_item lang_menu_its[LANGUAGE_ITEM_COUNT]; static Evas_Object * g_lang_radio = NULL; +static void change_language_enabling(keynode_t *key, void * data) +{ + if( is_connected_GM() ) + { + DBG("Setting - language can not change!!"); + + // automatic freed!! + struct _toast_data * toast = _create_toast(tmp_ad, _("IDS_ST_TPOP_CHANGE_LANGUAGE_ON_MOBILE_DEVICE")); + if( toast ) { + _show_toast(tmp_ad, toast); + } + if( tmp_ad ) { + elm_naviframe_item_pop(tmp_ad->nf); + + } + } +} + void _initialize_language(void * data) { g_lang_radio = NULL; @@ -42,8 +63,7 @@ void _initialize_language(void * data) tmp_ad = data; } - // Temp - _get_language_list(); + register_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, change_language_enabling, NULL); } void _set_launguage_update_cb( void (*cb)(void*) ) @@ -61,6 +81,8 @@ void _set_launguage_update_cb( void (*cb)(void*) ) void _clear_g_lang_menu_items() { + DBG("_clear_g_lang_menu_items"); + int i; for(i = 0; i < LANGUAGE_ITEM_COUNT; i++ ) { @@ -75,6 +97,8 @@ void _clear_g_lang_menu_items() void _clear_lang_cb(void *data , Evas *e, Evas_Object *obj, void *event_info) { + DBG("_clear_lang_cb"); + appdata *ad = data; if( ad == NULL ) { return; @@ -90,6 +114,8 @@ void _clear_lang_cb(void *data , Evas *e, Evas_Object *obj, void *event_info) _clear_g_lang_menu_items(); + unregister_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, change_language_enabling); + ad->MENU_TYPE = SETTING_DISPLAY; } @@ -196,15 +222,17 @@ void _gl_lang_sel_cb(void * data, Evas_Object * obj, void * event_info) elm_radio_value_set(g_lang_radio, lang_index); } - if( tmp_ad ) { - elm_naviframe_item_pop(tmp_ad->nf); + char *locale = vconf_get_str(VCONFKEY_LANGSET); + elm_language_set(locale); + + if( lang_update_cb ) + { + lang_update_cb( tmp_ad ); } - if(lang_timer) { - ecore_timer_del(lang_timer); - lang_timer = NULL; + if( tmp_ad ) { + elm_naviframe_item_pop(tmp_ad->nf); } - lang_timer = ecore_timer_add(0.3, (Ecore_Task_Cb) _update_language, NULL); } void _lang_sel_changed_cb(void *data, Evas_Object *obj, void *event_info) @@ -256,15 +284,27 @@ Evas_Object * _gl_lang_ridio_get(void *data, Evas_Object *obj, const char *part) snprintf(buf, sizeof(buf)-1, "%s.UTF-8", lang_menu_its[index].id); char * alt_lang_set = strdup(buf); - if( !strcasecmp(lang_set, buf) ) { + if( !strcasecmp(lang_set, buf) ) + { elm_radio_value_set(radio_main, index); + + if(id->item) + { + elm_genlist_item_show(id->item, ELM_GENLIST_ITEM_SCROLLTO_TOP); + } } free(alt_lang_set); snprintf(buf, sizeof(buf)-1, "%s.UTF8", lang_menu_its[index].id); char * alt_lang_set2 = strdup(buf); - if( !strcasecmp(lang_set, buf) ) { + if( !strcasecmp(lang_set, buf) ) + { elm_radio_value_set(radio_main, index); + + if(id->item) + { + elm_genlist_item_show(id->item, ELM_GENLIST_ITEM_SCROLLTO_TOP); + } } free(alt_lang_set2); @@ -287,6 +327,8 @@ static void _lang_gl_del(void *data, Evas_Object *obj) Evas_Object* _create_lang_list(void* data) { + DBG("_create_lang_list:clear"); + appdata *ad = data; if( ad == NULL ) { @@ -494,3 +536,57 @@ static void _tree_walk_langlist(xmlNodePtr cur) } } } + +const char * setting_get_lang_title(void) +{ + DBG("%s", __func__); + + int ret = 0; + + if( s_langlist == NULL ) + { + _langlist_load(); + } + + Eina_List* lang_list = s_langlist; + Eina_List* elist = NULL; + + struct _lang_menu_item * lang_entry; + + char* title = NULL; + char* language = NULL; + char buf[32]; + + language = vconf_get_str(VCONFKEY_LANGSET); + + DBG("current language : %s", language); + + if ( language == NULL ) + { + return NULL; + } + + while( lang_list ) + { + lang_entry = (struct _lang_menu_item * ) eina_list_data_get(lang_list); + if( lang_entry ) + { + DBG("%s : language -> %s, locale -> %s", __func__, language, lang_entry->id); + + snprintf(buf, sizeof(buf)-1, "%s.UTF-8", lang_entry->id); + if ( !strcmp(buf, language) ) + { + char pull_title_buf[128]; + if(lang_entry->sub_name && strlen(lang_entry->sub_name) > 1) + snprintf(pull_title_buf, sizeof(pull_title_buf)-1, "%s %s", lang_entry->name, lang_entry->sub_name); + else + snprintf(pull_title_buf, sizeof(pull_title_buf)-1, "%s", lang_entry->name); + title = strdup(pull_title_buf); + break; + } + } + lang_list = eina_list_next(lang_list); + } + + return title; +} diff --git a/src/setting-motion.c b/src/setting-motion.c index ea5aada..c860ef3 100755 --- a/src/setting-motion.c +++ b/src/setting-motion.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-motion.c * @@ -391,14 +385,17 @@ Evas_Object* _create_motion_list(void* data) menu_its = motion_menu_its; -// device_info_h* device_info = NULL; -// bundle *b = NULL; +#if 0 + device_info_h* device_info = NULL; + bundle *b = NULL; char *val = NULL; -// capability_manager_create_device_info(&device_info); -// capability_manager_get_device_features(device_info, &b); -// val = bundle_get_val(b, "smartrelay"); -// capability_manager_destroy_device_info(device_info); - + capability_manager_create_device_info(&device_info); + capability_manager_get_device_features(device_info, &b); + val = bundle_get_val(b, "smartrelay"); + capability_manager_destroy_device_info(device_info); +#else + char *val = NULL; +#endif for (idx = 0; idx < MOTION_ITEM_COUNT; idx++) { diff --git a/src/setting-notification.c b/src/setting-notification.c index e93610f..6b4a369 100755 --- a/src/setting-notification.c +++ b/src/setting-notification.c @@ -1,20 +1,4 @@ /* - * Copyright (c) 2000 - 2013 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. - * -*/ -/* * setting-notification.c * * Created on: Feb 14, 2014 diff --git a/src/setting-privacy.c b/src/setting-privacy.c index 97b9acd..321a7d9 100755 --- a/src/setting-privacy.c +++ b/src/setting-privacy.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-privacy.c * @@ -87,7 +81,7 @@ int _set_see_pattern_value(int value) return TRUE; } -static void _privacy_lock_setting_cb(service_h service, service_h reply, service_result_e result, void *data) +static void _privacy_lock_setting_cb(app_control_h service, app_control_h reply, app_control_result_e result, void *data) { appdata *ad = data; if (!ad) { @@ -95,7 +89,7 @@ static void _privacy_lock_setting_cb(service_h service, service_h reply, service return; } - if (result == SERVICE_RESULT_SUCCEEDED) { + if (result == APP_CONTROL_RESULT_SUCCEEDED) { _set_lock_type_value(1); elm_naviframe_item_pop(ad->nf); @@ -105,7 +99,7 @@ static void _privacy_lock_setting_cb(service_h service, service_h reply, service } } -static void _privacy_lock_verify_cb(service_h service, service_h reply, service_result_e result, void *data) +static void _privacy_lock_verify_cb(app_control_h service, app_control_h reply, app_control_result_e result, void *data) { appdata *ad = data; if (!ad) { @@ -113,7 +107,7 @@ static void _privacy_lock_verify_cb(service_h service, service_h reply, service_ return; } - if (result == SERVICE_RESULT_SUCCEEDED) { + if (result == APP_CONTROL_RESULT_SUCCEEDED) { _create_privacy_pattern_list(ad); } } @@ -149,13 +143,13 @@ static void _privacy_pattern_enable_cb(void *data, Evas_Object *obj, void *event return; } - service_h service; - service_create(&service); - service_set_app_id(service, "org.tizen.w-lockscreen-setting"); + app_control_h service; + app_control_create(&service); + app_control_set_app_id(service, "org.tizen.w-lockscreen-setting"); - service_add_extra_data(service, "type", "setting"); - service_send_launch_request(service, _privacy_lock_setting_cb, ad); - service_destroy(service); + app_control_add_extra_data(service, "type", "setting"); + app_control_send_launch_request(service, _privacy_lock_setting_cb, ad); + app_control_destroy(service); } static void _privacy_pattern_disable_cb(void *data, Evas_Object *obj, void *event_info) @@ -273,13 +267,13 @@ static void _privacy_lock_cb(void *data, Evas_Object *obj, void *event_info) if (!_get_lock_type_value()) { _create_privacy_pattern_list(ad); } else { - service_h service; - service_create(&service); - service_set_app_id(service, "org.tizen.w-lockscreen-setting"); + app_control_h service; + app_control_create(&service); + app_control_set_app_id(service, "org.tizen.w-lockscreen-setting"); - service_add_extra_data(service, "type", "verify"); - service_send_launch_request(service, _privacy_lock_verify_cb, ad); - service_destroy(service); + app_control_add_extra_data(service, "type", "verify"); + app_control_send_launch_request(service, _privacy_lock_verify_cb, ad); + app_control_destroy(service); } } diff --git a/src/setting-profile.c b/src/setting-profile.c index 9a4ee2a..f825860 100755 --- a/src/setting-profile.c +++ b/src/setting-profile.c @@ -1,19 +1,16 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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 + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. * - * 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. - * -*/ + * setting-profile.c (s-health) + * + */ #include "setting-profile.h" #include "util.h" @@ -27,11 +24,11 @@ void _create_profile(void *data, Evas_Object *obj, void *event_info) return; } - service_h service; - service_create(&service); - service_set_package(service, PROFILE_APP_ID); - service_set_operation(service, PROFILE_OP_ID); - service_send_launch_request(service, NULL, NULL); - service_destroy(service); + app_control_h service; + app_control_create(&service); + app_control_set_package(service, PROFILE_APP_ID); + app_control_set_operation(service, PROFILE_OP_ID); + app_control_send_launch_request(service, NULL, NULL); + app_control_destroy(service); } diff --git a/src/setting-reset.c b/src/setting-reset.c index a537ca9..b991923 100755 --- a/src/setting-reset.c +++ b/src/setting-reset.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-reset.c * diff --git a/src/setting-safety.c b/src/setting-safety.c index 7c5f01a..39bb5ab 100755 --- a/src/setting-safety.c +++ b/src/setting-safety.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * setting-safety.c * diff --git a/src/setting-sound.c b/src/setting-sound.c index 43694af..46bcb3d 100755 --- a/src/setting-sound.c +++ b/src/setting-sound.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include #include @@ -203,95 +197,6 @@ void _stop_player() } } -static void sorting_file_list(int type) -{ - int i; - int j; - char * cur_ring_path = NULL; - if( type ) - { - if( ringtone_count == 0 ) - { - return; - } - - cur_ring_path = vconf_get_str(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR); - if( cur_ring_path == NULL ) - { - cur_ring_path = vconf_get_str(VCONFKEY_SETAPPL_CALL_RINGTONE_DEFAULT_PATH_STR); - } - - for( i = 0; i < 3; i++ ) - { - for( j = i+1; j < 3; j++ ) - { - if( strcmp(ringtone_name_arr[i], ringtone_name_arr[j]) > 0 ) - { - char temp[1024]; - strcpy(temp, ringtone_name_arr[i]); - strcpy(ringtone_name_arr[i], ringtone_name_arr[j]); - strcpy(ringtone_name_arr[j], temp); - - strcpy(temp, ""); - strcpy(temp, ringtone_arr[i]); - strcpy(ringtone_arr[i], ringtone_arr[j]); - strcpy(ringtone_arr[j], temp); - } - } - } - - for( i = 0; i < 3; i++ ) - { - if( !strcmp(cur_ring_path, ringtone_arr[i])) - { - ringtone_type = i; - break; - } - } - } - else - { - if( notification_count == 0 ) - { - return; - } - - cur_ring_path = vconf_get_str(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR); - if( cur_ring_path == NULL ) - { - cur_ring_path = vconf_get_str(VCONFKEY_SETAPPL_NOTI_RINGTONE_DEFAULT_PATH_STR); - } - - for( i = 0; i < 3; i++ ) - { - for( j = i+1; j < 3; j++ ) - { - if( strcmp(notification_name_arr[i], notification_name_arr[j]) > 0 ) - { - char temp[1024]; - strcpy(temp, notification_name_arr[i]); - strcpy(notification_name_arr[i], notification_name_arr[j]); - strcpy(notification_name_arr[j], temp); - - strcpy(temp, ""); - strcpy(temp, notification_arr[i]); - strcpy(notification_arr[i], notification_arr[j]); - strcpy(notification_arr[j], temp); - } - } - } - - for( i = 0; i < 3; i++ ) - { - if( !strcmp(cur_ring_path, notification_arr[i])) - { - notification_type = i; - break; - } - } - } -} - static void get_sound_file_list(char* dir, int type) { DIR * dp; @@ -711,6 +616,7 @@ static Evas_Object * _gl_sound_mode_ridio_get(void *data, Evas_Object *obj, cons if( !strcmp(part, "elm.icon") ) { radio = elm_radio_add(obj); + elm_object_style_set(radio,"list"); elm_radio_state_value_set(radio, id->index); evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -933,6 +839,7 @@ void _show_sound_mode_list(void* data) id3->item = item; ad->sound_mode_rdg = elm_radio_add(genlist); + elm_object_style_set(ad->sound_mode_rdg, "elm/radio/base/list"); elm_radio_state_value_set(ad->sound_mode_rdg, 3); elm_radio_value_set(ad->sound_mode_rdg, sound_mode); @@ -1019,6 +926,7 @@ static char *_gl_ringtone_text_get(void *data, Evas_Object *obj, const char *par char buf[1024]; + //DBG("---> %d ---> %s ", (item->index%ringtone_count), ringtone_name_arr[item->index % ringtone_count]); sprintf(buf, "%s", ringtone_name_arr[item->index % ringtone_count]); return strdup(buf); @@ -1034,6 +942,7 @@ static Evas_Object *_gl_ringtone_radio_get(void *data, Evas_Object *obj, const c if( !strcmp(part, "elm.icon") ) { radio = elm_radio_add(obj); + elm_object_style_set(radio,"list"); elm_radio_state_value_set(radio, id->index); evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -1110,8 +1019,16 @@ static void pm_state_vconf_changed_cb(keynode_t * key, void * data) } } +int cstring_cmp(const void *a, const void *b) +{ + const char *ia = (const char *)a; + const char *ib = (const char *)b; + return strcmp(ia, ib); +} + void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info) { + DBG("ENTER _show_ringtone_popup_cb"); Evas_Object *popup, *btn; unsigned int index; appdata *ad = data; @@ -1126,20 +1043,28 @@ void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info) get_sound_file_list("/opt/share/settings/Ringtones/", 1); is_loaded_ringtone_data = 1; - sorting_file_list(1); + // @todo apply eina_sort + //qsort (ringtone_name_arr, ringtone_count-1, sizeof(char*), cstring_cmp); } cur_sound_type = SOUND_TYPE_RINGTONE; popup = elm_layout_add(ad->win_main); - elm_layout_file_set(popup, EDJE_PATH, "setting/genlist/2button-layout"); + + EAPI Eina_Bool bret = elm_layout_file_set(popup, EDJE_PATH, "setting/genlist/2button-layout"); + if (bret == EINA_FALSE) { + DBG("elm_layout_file_set FAILED with setting/genlist/2button-layout"); + } else { + DBG("elm_layout_file_set OK with setting/genlist/2button-layout"); + } evas_object_size_hint_weight_set (popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(popup, EVAS_HINT_FILL, EVAS_HINT_FILL); Elm_Genlist_Item_Class *itc = NULL; itc = elm_genlist_item_class_new(); - itc->item_style = "settings.1text.1icon.1"; //"1text.1icon.1"; + //itc->item_style = "settings.1text.1icon.1"; //"1text.1icon.1"; + itc->item_style = "1text.1icon.1"; //"1text.1icon.1"; itc->func.text_get = _gl_ringtone_text_get; itc->func.content_get = _gl_ringtone_radio_get; @@ -1148,8 +1073,10 @@ void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info) elm_object_style_set(genlist, "popup"); elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS); + DBG("---> ringtone_count %d to GENLIST", ringtone_count); for (index = 0; index < ringtone_count; index++) { + //DBG("---> add item to list %d to GENLIST", index); Item_Data * item = (Item_Data*)calloc(sizeof(Item_Data), 1); item->index = index; item->item = elm_genlist_item_append(genlist, @@ -1171,6 +1098,7 @@ void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info) g_ringtone_type_genlist = genlist; elm_object_part_content_set(popup, "elm.genlist", genlist); +// evas_object_show(popup); evas_object_show(genlist); elm_genlist_item_class_free(itc); @@ -1192,6 +1120,7 @@ void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info) //VCONFKEY_PM_STATE register_vconf_changing(VCONFKEY_PM_STATE, pm_state_vconf_changed_cb,NULL); + DBG("LEAVE _show_ringtone_popup_cb"); } static void _notification_back_cb(void * data, Evas_Object * obj, void * event_info) @@ -1292,6 +1221,7 @@ static Evas_Object *_gl_notification_radio_get(void *data, Evas_Object *obj, con if( !strcmp(part, "elm.icon") ) { radio = elm_radio_add(obj); + elm_object_style_set(radio,"list"); elm_radio_state_value_set(radio, id->index); evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -1357,7 +1287,7 @@ void _show_notification_popup_cb(void *data, Evas_Object *obj, void *event_info) get_sound_file_list("/opt/share/settings/Alerts/", 0); is_loaded_noti_data = 1; - sorting_file_list(0); + //sorting_file_list(0); } cur_sound_type = SOUND_TYPE_NOTIFICATION; @@ -1369,7 +1299,8 @@ void _show_notification_popup_cb(void *data, Evas_Object *obj, void *event_info) Elm_Genlist_Item_Class *itc = NULL; itc = elm_genlist_item_class_new(); - itc->item_style = "settings.1text.1icon.1"; //"1text.1icon.1"; + //itc->item_style = "settings.1text.1icon.1"; //"1text.1icon.1"; + itc->item_style = "1text.1icon.1"; itc->func.text_get = _gl_notification_text_get; itc->func.content_get = _gl_notification_radio_get; @@ -1511,6 +1442,7 @@ static Evas_Object *_gl_vibration_radio_get(void *data, Evas_Object *obj, const if( !strcmp(part, "elm.icon") ) { radio = elm_radio_add(obj); + elm_object_style_set(radio,"list"); elm_radio_state_value_set(radio, id->index); evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); diff --git a/src/setting-theme.c b/src/setting-theme.c new file mode 100644 index 0000000..890ade2 --- /dev/null +++ b/src/setting-theme.c @@ -0,0 +1,422 @@ +/* + * setting-theme.c + * + * Created on: Aug 7, 2014 + * Author: min-hoyun + */ + +#include +#include + +#include "setting-theme.h" +#include "setting_view_toast.h" + + +static Thumbnail_Data thumbnail_arr[COLOR_THEME_COUNT] = { + { EA_THEME_COLOR_TABLE_1, EA_THEME_STYLE_DARK, "settings_preview_dark.png" }, + { EA_THEME_COLOR_TABLE_1, EA_THEME_STYLE_LIGHT, "settings_preview_light.png" }, + { EA_THEME_COLOR_TABLE_1 + 1, EA_THEME_STYLE_DARK, "settings_preview_dark_blue.png" }, + { EA_THEME_COLOR_TABLE_1 + 1, EA_THEME_STYLE_LIGHT, "settings_preview_light_blue.png" } +}; + +int center_item = 0; +static appdata * g_ad; + +static Evas_Object * setting_theme_create_thumbnail_layout(void * data); +static void setting_theme_thumbnail_scroll(void *data, Evas_Object *obj, void *ei); +static void setting_theme_index_refresh(void *data); +static void setting_theme_index_sync(void *data); +static void setting_theme_layout_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info); +static void setting_theme_on_index_mouse_down_cb(void *data, Evas *e, Evas_Object *o, void *event_info); +static void setting_theme_on_index_mouse_up_cb(void *data, Evas *e, Evas_Object *o, void *event_info); +static void setting_theme_on_index_mouse_move_cb(void *data, Evas *e, Evas_Object *o, void *event_info); +static void setting_theme_mouse_down_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info); +static void setting_theme_mouse_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info); +static void setting_theme_mouse_move_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info); +static void setting_theme_layout_del_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info); + + + + +void setting_theme_show_thumbnail(void * data, Evas_Object * obj, void * event_info) +{ + DBG("setting_theme_show_thumbnail"); + + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); + + appdata * ad = data; + if( ad == NULL ) + return; + + Theme_Data * td = (Theme_Data*)calloc(1, sizeof(Theme_Data)); + td->ad = ad; + td->curr_theme_id = 1; //EA_THEME_COLOR_TABLE_1; + td->theme_layout = setting_theme_create_thumbnail_layout(td); + if(td->theme_layout) + { + Elm_Object_Item *it = elm_naviframe_item_push(ad->nf, NULL, NULL, NULL, td->theme_layout, NULL); + elm_naviframe_item_title_enabled_set(it, EINA_FALSE, EINA_FALSE); + } + + int ret; + ret = feedback_initialize(); + if(ret != FEEDBACK_ERROR_NONE){ + DBG("feedback_initialize failed"); + } + + g_ad = ad; +} + +static Evas_Object * setting_theme_create_thumbnail_layout(void * data) +{ + DBG("setting_display_create_brightness_layout"); + + Evas_Object *layout, *scroller, *box, *page_layout, *page, *mapbuf; + Eina_List *colors; + Ea_Theme_Color_hsv *hsv_color; + Evas_Object * image; + + int start, r, g, b; + + int i; + + Theme_Data * td = data; + if( td == NULL ) + return NULL; + + vconf_get_int("db/setting/color_theme_type", &td->curr_theme_type); + + DBG("Color theme type: %d", td->curr_theme_type); + + /* Create Layout */ + layout = elm_layout_add(td->ad->nf); + elm_layout_file_set(layout, EDJE_PATH, "setting/index_thumbnail"); + evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(layout); + evas_object_event_callback_add(layout, EVAS_CALLBACK_DEL, setting_theme_layout_del_cb, td); + + /* Create Scroller */ + scroller = elm_scroller_add(layout); + elm_scroller_loop_set(scroller, EINA_FALSE, EINA_FALSE); + evas_object_size_hint_weight_set(scroller, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(scroller, EVAS_HINT_FILL, EVAS_HINT_FILL); +// elm_scroller_page_relative_set(scroller, 1.0, 0.0); + elm_scroller_page_size_set(scroller, 248, 0); + elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); + elm_scroller_page_scroll_limit_set(scroller, 1, 0); + elm_object_scroll_lock_y_set(scroller, EINA_TRUE); + elm_object_part_content_set(layout, "scroller", scroller); + elm_object_style_set(scroller, "effect"); + evas_object_show(scroller); + td->scroller = scroller; + + /* Create Box */ + box = elm_box_add(scroller); + elm_box_horizontal_set(box, EINA_TRUE); + elm_object_content_set(scroller, box); + evas_object_show(box); + + Evas_Object * rect = evas_object_rectangle_add(evas_object_evas_get(box)); + evas_object_size_hint_min_set(rect, 56, 480); +// ea_theme_object_color_set(rect, "B011"); + elm_box_pack_end(box, rect); + + /* Create Pages */ + for (i = 0; i < COLOR_THEME_COUNT; ++i) + { + page_layout = elm_layout_add(box); + evas_object_size_hint_weight_set(page_layout, 0, 0); + evas_object_size_hint_align_set(page_layout, 0, EVAS_HINT_FILL); + elm_layout_theme_set(page_layout, "layout", "body_thumbnail", "default"); + evas_object_show(page_layout); + + image = elm_image_add(page_layout); + elm_image_file_set(image, EDJE_PATH, thumbnail_arr[i].prev_img_path); + evas_object_size_hint_align_set(image, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(image, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + + // touch event + evas_object_event_callback_add(image, EVAS_CALLBACK_MOUSE_DOWN, setting_theme_mouse_down_cb, NULL); + evas_object_event_callback_add(image, EVAS_CALLBACK_MOUSE_UP, setting_theme_mouse_up_cb, (void*)i); + evas_object_event_callback_add(image, EVAS_CALLBACK_MOUSE_MOVE, setting_theme_mouse_move_cb, NULL); + + elm_object_part_content_set(page_layout, "elm.icon", image); + + Evas_Object * ao = elm_access_object_register(image, page_layout); + if(ao) + { + elm_access_activate_cb_set(ao, setting_theme_mouse_up_cb, (void*)i); + } + + if ( i == td->curr_theme_type ) + { + elm_object_signal_emit(page_layout, "elm,state,thumbnail,focus", "*"); + } + else + { + elm_object_signal_emit(page_layout, "elm,state,thumbnail,unfocus", "*"); + } + + mapbuf = elm_mapbuf_add(box); + evas_object_size_hint_weight_set(mapbuf, 0, 0); + evas_object_size_hint_align_set(mapbuf, 0, EVAS_HINT_FILL); + evas_object_show(mapbuf); + elm_object_content_set(mapbuf, page_layout); + td->mapbuf[i] = mapbuf; + + elm_box_pack_end(box, mapbuf); + } + + rect = evas_object_rectangle_add(evas_object_evas_get(box)); + evas_object_size_hint_min_set(rect, 56, 480); +// ea_theme_object_color_set(rect, "B011"); + elm_box_pack_end(box, rect); + + /* Use Index */ + evas_object_smart_callback_add(scroller, "scroll", setting_theme_thumbnail_scroll, td); + + evas_object_event_callback_add(scroller, EVAS_CALLBACK_RESIZE, setting_theme_layout_resize_cb, td); + + Evas_Object *index = elm_index_add(layout); + elm_object_style_set(index, "thumbnail"); + evas_object_size_hint_weight_set(index, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(index, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_index_horizontal_set(index, EINA_TRUE); + elm_index_autohide_disabled_set(index, EINA_TRUE); + elm_object_part_content_set(layout, "controller", index); + + + for (i = 0; i < COLOR_THEME_COUNT; ++i) + { + td->it[i] = elm_index_item_append(index, NULL, NULL, (void *) i); + } + + elm_object_item_style_set(td->it[center_item - 1] , "item/vertical/center"); + + td->min_page = 0; + td->max_page = COLOR_THEME_COUNT; + + elm_index_level_go(index, 0); + elm_index_item_selected_set(td->it[0], EINA_TRUE); + td->curr_page = 0; + td->last_it = td->it[0]; + td->index = index; + + evas_object_event_callback_add(index, EVAS_CALLBACK_MOUSE_DOWN, setting_theme_on_index_mouse_down_cb, td); + evas_object_event_callback_add(index, EVAS_CALLBACK_MOUSE_MOVE, setting_theme_on_index_mouse_move_cb, td); + evas_object_event_callback_add(index, EVAS_CALLBACK_MOUSE_UP, setting_theme_on_index_mouse_up_cb, td); + + return layout; +} + +static void setting_theme_thumbnail_scroll(void *data, Evas_Object *obj, void *ei) +{ + int cur_page; + Theme_Data *td = (Theme_Data *)data; + elm_scroller_current_page_get(td->scroller, &cur_page, NULL); + if (cur_page != td->curr_page) + { + DBG("scroll: %d\n", td->curr_page); + + td->curr_page = cur_page; + + setting_theme_index_sync(td); + } +} + +static void setting_theme_index_sync(void *data) +{ + Theme_Data *td = (Theme_Data *)data; + + Elm_Object_Item *it = elm_index_item_find(td->index, (void *)td->curr_page); + if (it) + { + elm_index_item_selected_set(it, EINA_TRUE); + td->last_it = it; + td->new_it = it; + } + else + { + setting_theme_index_refresh(td); + } +} + +static void setting_theme_index_refresh(void *data) +{ + int i; + Elm_Object_Item *it; + Theme_Data *td = (Theme_Data *)data; + + elm_index_item_clear(td->index); + if (td->curr_page < td->min_page) + { + for(i = td->curr_page ; i < td->curr_page + COLOR_THEME_COUNT ; i++) + { + it = elm_index_item_append(td->index, NULL, NULL, (void *) i); + + if(i == center_item) + elm_object_item_style_set(it, "item/vertical/center"); + } + td->min_page = td->curr_page; + td->min_page = td->curr_page + COLOR_THEME_COUNT - 1; + } + else + { + for(i = td->curr_page - 2 + 1; i < td->curr_page + 1 ; i++) + { + it = elm_index_item_append(td->index, NULL, NULL, (void *) i); + if(i == center_item) + elm_object_item_style_set(it, "item/vertical/center"); + } + td->min_page = td->curr_page - 2; + td->min_page = td->curr_page - 1; + } + elm_index_level_go(td->index, 0); + + setting_theme_index_sync(td); +} + +static void setting_theme_layout_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + DBG("setting_theme_layout_resize_cb"); + + Theme_Data *td = (Theme_Data *)data; + if(td) + { + elm_scroller_page_show(obj, td->curr_theme_type, 0); + + td->curr_page = td->curr_theme_type; + + setting_theme_index_sync(td); + } +} + +static void setting_theme_on_index_mouse_down_cb(void *data, Evas *e, Evas_Object *o, void *event_info) +{ + Theme_Data *pd = (Theme_Data *)data; + + /* Keep the last index item active and save the selected index item */ + if (!pd->last_it) return; + + int level = elm_index_item_level_get(o); + pd->new_it = elm_index_selected_item_get(o, level); + elm_index_item_selected_set(pd->last_it, EINA_TRUE); +} + +static void setting_theme_on_index_mouse_up_cb(void *data, Evas *e, Evas_Object *o, void *event_info) +{ + Theme_Data *pd = (Theme_Data *)data; + + /* Keep the last index item active and move to the page of the currently selected index item */ + if (!pd->last_it) return; + elm_index_item_selected_set(pd->last_it, EINA_TRUE); + + if (!pd->new_it) return; + + int idx = (int) elm_object_item_data_get(pd->new_it); + if (idx == pd->curr_page) return; + + elm_scroller_page_bring_in(pd->scroller, idx, 0); +} + +static void setting_theme_on_index_mouse_move_cb(void *data, Evas *e, Evas_Object *o, void *event_info) +{ + Theme_Data *pd = (Theme_Data *)data; + + /* Keep the last index item active and save the currently selected index item */ + if (!pd->last_it) return; + + int level = elm_index_item_level_get(o); + pd->new_it = elm_index_selected_item_get(o, level); + elm_index_item_selected_set(pd->last_it, EINA_TRUE); +} + +static int prev_x = 0; +static int touch_mode = NONE; + +static void setting_theme_mouse_down_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) +{ + touch_mode = TOUCH_DOWN; + + Evas_Event_Mouse_Down *ev = event_info; + prev_x = ev->canvas.x; +} + +static void setting_theme_mouse_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) +{ + if( touch_mode == TOUCH_MOVE ) + return; + + feedback_play(FEEDBACK_PATTERN_TOUCH_TAP); + + int id = (int*)data; + + DBG("Id: %d", id); + + int curr_theme_type = 0; + vconf_get_int("db/setting/color_theme_type", &curr_theme_type); + + int ret = ea_theme_input_colors_set(thumbnail_arr[id].id, thumbnail_arr[id].theme_type); + + DBG("ea_theme_input_colors_set ret : %d", ret); + if(!ret) + { + ERR("ea_theme_input_colors_set() failed!"); + //return; + } + + if( id != curr_theme_type ) + { + DBG("Color Id: %d, type: %d", thumbnail_arr[id].id, thumbnail_arr[id].theme_type); + + vconf_set_int("db/setting/color_theme_type", id); + + // automatic freed!! + struct _toast_data * toast = _create_toast(g_ad, _("IDS_ST_TPOP_COLOUR_THEME_CHANGED")); + if( toast ) + { + _show_toast(g_ad, toast); + } + } + else + { + // automatic freed!! + struct _toast_data * toast = _create_toast(g_ad, _("IDS_ST_TPOP_COLOUR_THEME_ALREADY_SET")); + if( toast ) + { + _show_toast(g_ad, toast); + } + } + + if( g_ad ) + { + elm_naviframe_item_pop(g_ad->nf); + } +} + +static void setting_theme_mouse_move_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) +{ + Evas_Event_Mouse_Move *ev = event_info; + + int cur_x = ev->cur.canvas.x; + if( abs(cur_x - prev_x) > 15) + { + // todo : confirm and remove + touch_mode = TOUCH_MOVE; + } +} + +static void setting_theme_layout_del_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) +{ + DBG("setting_theme_layout_del_cb"); + + Theme_Data * td = data; + if(td) + free(td); + + int ret; + ret = feedback_deinitialize(); + if(ret != FEEDBACK_ERROR_NONE){ + DBG("feedback_deinitialize failed"); + } +} diff --git a/src/setting-volume.c b/src/setting-volume.c index d3edfc9..cb73984 100755 --- a/src/setting-volume.c +++ b/src/setting-volume.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include @@ -617,16 +611,6 @@ static void _set_multimedia_clicked_cb(void *data, Evas_Object *obj, void *event elm_naviframe_item_pop(ad->nf); } -#if 0 -static void wav_player_completed_cb(int id, void *user_data) -{ - DBG("wav_player_completed_cb() is called!"); - - is_wav_playing_vol = SOUND_STATE_STOP; - sound_id_vol = -1; -} -#endif - static void _play_sound_all_type(int sound_type, float volume) { if( is_myself_ringtone_changing ) @@ -689,7 +673,7 @@ static void _play_sound_all_type(int sound_type, float volume) else if( sound_type == SOUND_TYPE_NOTIFICATION ) { DBG("Setting - notification safety volume!!"); - sound_manager_set_volume(sound_type, volume_index); + sound_manager_set_volume(sound_type, temp_volume_index); } else { @@ -730,29 +714,6 @@ static void _play_sound_all_type(int sound_type, float volume) } } -#if 0 - if( sound_type == SOUND_TYPE_RINGTONE ) - { - if( is_wav_playing_vol == SOUND_STATE_STOP ) - { - is_wav_playing_vol = SOUND_STATE_PLAY; - wav_player_start(buf, sound_type, _player_stop_cb, NULL, &sound_id_vol); - } - return; - } - else if( sound_type == SOUND_TYPE_MEDIA ) - { - if( is_wav_playing_vol == SOUND_STATE_STOP ) - { - is_wav_playing_vol = SOUND_STATE_PLAY; - wav_player_start(buf, sound_type, _player_stop_cb, NULL, &sound_id_vol); - - DBG("Setting - wav start : %d", sound_id_vol); - } - return; - } -#endif -#if 1 else if( sound_type == SOUND_TYPE_SYSTEM ) { stop_wav(); @@ -766,18 +727,8 @@ static void _play_sound_all_type(int sound_type, float volume) play_sound(buf, 0.0, SOUND_TYPE_NOTIFICATION); set_looping(FALSE); -#if 0 - //stop_wav(); - if( is_wav_playing_vol == SOUND_STATE_STOP ) - { - is_wav_playing_vol = SOUND_STATE_PLAY; - wav_player_start(buf, sound_type, wav_player_completed_cb, NULL, &sound_id_vol); - } -#endif return; } - -#endif } static void _change_to_vibrate_mode( ) @@ -1049,23 +1000,45 @@ void _show_multimedia_popup(void *data, Evas_Object *obj, void *event_info) ad->MENU_TYPE = SETTING_VOLUME_2_DEPTH; + ly = elm_layout_add(ad->nf); elm_layout_file_set(ly, EDJE_PATH, "setting/2finger_popup/default2"); evas_object_size_hint_weight_set (ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); + int w,h; + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h); + DBG(" ----> width : %d, height : %d ", w, h); + if ( w==360 && h == 480) + { + DBG("make long height !!!!!!!!!!!!!!!!!"); + //elm_object_signal_emit(layout, "set,popup,long", "elm.icon.1"); + elm_object_signal_emit(ly, "set,popup,long", "*"); + } + + Evas_Object * spinner = elm_spinner_add(ly); g_volume_spinner = spinner; - elm_object_style_set(spinner, "volumestyle"); - elm_spinner_editable_set(spinner, EINA_TRUE); + //elm_object_style_set(spinner, "volumestyle"); + elm_spinner_editable_set(spinner, EINA_FALSE); elm_spinner_min_max_set(spinner, 0, 15); elm_spinner_value_set(spinner, volume_index); _update_volume_circle(spinner); evas_object_smart_callback_add(spinner, "changed", _on_media_volume_spinner_change_cb, ly); elm_object_part_content_set(ly, "elm.icon.1", spinner); + //ea_theme_object_color_set(spinner, "B101"); + //ea_theme_object_color_set(spinner, "B011"); + //ea_theme_object_color_set(spinner, "AO033"); + //evas_object_color_set(spinner, 255, 0, 0, 255); +// evas_object_color_set(spinner, 31, 23, 17, 255 ); + //ea_theme_object_color_set(spinner, "AO017"); + //ea_theme_object_color_set(spinner, "B101"); + //ea_theme_object_color_set(spinner, "AO011"); + //ea_theme_object_color_replace(spinner, "AO011", "B101"); + btn = elm_button_add(ly); elm_object_style_set(btn, "popup"); evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -1080,8 +1053,6 @@ void _show_multimedia_popup(void *data, Evas_Object *obj, void *event_info) elm_object_part_content_set(ly, "btn2", btn); evas_object_smart_callback_add(btn, "clicked", _set_multimedia_clicked_cb, ad); - evas_object_show(ly); - Elm_Object_Item * nf_it = elm_naviframe_item_push( ad->nf, "IDS_ST_BUTTON_MULTIMEDIA", NULL, NULL, @@ -1159,7 +1130,7 @@ void _show_ringtone_popup(void *data, Evas_Object *obj, void *event_info) // sync volume volume_index = sync_volume(volume_index, virtual_index); - original_volume = volume_index; + original_volume = real_volume_index; ad->MENU_TYPE = SETTING_VOLUME_2_DEPTH; @@ -1168,14 +1139,25 @@ void _show_ringtone_popup(void *data, Evas_Object *obj, void *event_info) evas_object_size_hint_weight_set (ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); + int w,h; + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h); + DBG(" ----> width : %d, height : %d ", w, h); + if ( w==360 && h == 480) + { + DBG("make long height !!!!!!!!!!!!!!!!!"); + //elm_object_signal_emit(layout, "set,popup,long", "elm.icon.1"); + elm_object_signal_emit(ly, "set,popup,long", "*"); + } + + Evas_Object * spinner = elm_spinner_add(ly); g_volume_spinner = spinner; DBG("Setting- Volume: %d", volume_index); - elm_object_style_set(spinner, "volumestyle"); - elm_spinner_editable_set(spinner, EINA_TRUE); + //elm_object_style_set(spinner, "volumestyle"); + elm_spinner_editable_set(spinner, EINA_FALSE); elm_spinner_min_max_set(spinner, 0, 15); if( sound_mode != SOUND_MODE_SOUND ) @@ -1284,13 +1266,22 @@ void _show_notification_popup(void *data, Evas_Object *obj, void *event_info) evas_object_size_hint_weight_set (ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); + int w,h; + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h); + DBG(" ----> width : %d, height : %d ", w, h); + if ( w==360 && h == 480) + { + DBG("make long height !!!!!!!!!!!!!!!!!"); + //elm_object_signal_emit(layout, "set,popup,long", "elm.icon.1"); + elm_object_signal_emit(ly, "set,popup,long", "*"); + } Evas_Object * spinner = elm_spinner_add(ly); g_volume_spinner = spinner; - elm_object_style_set(spinner, "volumestyle"); - elm_spinner_editable_set(spinner, EINA_TRUE); + //elm_object_style_set(spinner, "volumestyle"); + elm_spinner_editable_set(spinner, EINA_FALSE); elm_spinner_min_max_set(spinner, 0, 15); if( get_sound_mode() != SOUND_MODE_SOUND ) @@ -1400,12 +1391,22 @@ void _show_system_popup(void *data, Evas_Object *obj, void *event_info) evas_object_size_hint_weight_set (ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); + int w,h; + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h); + DBG(" ----> width : %d, height : %d ", w, h); + if ( w==360 && h == 480) + { + DBG("make long height !!!!!!!!!!!!!!!!!"); + //elm_object_signal_emit(layout, "set,popup,long", "elm.icon.1"); + elm_object_signal_emit(ly, "set,popup,long", "*"); + } + Evas_Object * spinner = elm_spinner_add(ly); g_volume_spinner = spinner; - elm_object_style_set(spinner, "volumestyle"); - elm_spinner_editable_set(spinner, EINA_TRUE); + //elm_object_style_set(spinner, "volumestyle"); + elm_spinner_editable_set(spinner, EINA_FALSE); elm_spinner_min_max_set(spinner, 0, 15); if( get_sound_mode() != SOUND_MODE_SOUND ) diff --git a/src/setting.c b/src/setting.c index a254325..5adef7b 100755 --- a/src/setting.c +++ b/src/setting.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include /* ecore_x_window_size_get */ @@ -22,6 +16,7 @@ #include #include #include +#include #include "setting-sound.h" #include "setting-volume.h" @@ -46,6 +41,12 @@ #include "setting_view_toast.h" #include "setting_indicator_util.h" +#define FEATURE_SETTING_CHANGEABLE + +#ifdef FEATURE_SETTING_CHANGEABLE +#include "setting-theme.h" +#endif + #if 0 #ifndef FEATURE_SETTING_SDK #define LANGUAGE_MENU_INDEX 10 @@ -61,41 +62,56 @@ static struct _menu_item setting_emergency_menu_its[] = { #ifdef FEATURE_SETTING_EMUL { "IDS_ST_BUTTON_CLOCK", "b_settings_change_clock.png", clock_cb }, #endif +//#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) { "IDS_ST_OPT_SOUND_ABB2", "b_settings_volume.png", sound_cb }, +// { "IDS_ST_OPT_VOLUME", "b_settings_volume.png", volume_cb }, +//#endif { "IDS_ST_MBODY_DISPLAY_ABB", "b_setting_display.png", display_cb }, #ifndef FEATURE_SETTING_EMUL +// { "IDS_ST_BODY_BATTERY_ABB", "b_settings_battery.png", battery_cb }, { "IDS_QP_BUTTON_BLUETOOTH", "b_settings_bluetooth.png", bluetooth_cb }, #endif -//#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) -#if !defined(FEATURE_SETTING_SDK) +#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) { "IDS_ST_MBODY_SAFETY_ABB", "b_settings_safety.png", safety_cb }, #endif { NULL, NULL, NULL } }; static struct _menu_item setting_menu_its[] = { - {/*ALWAYS*/"IDS_ST_BUTTON_CLOCK", "b_settings_change_clock.png", clock_cb }, + { "IDS_ST_BUTTON_CLOCK", "b_settings_change_clock.png", clock_cb }, #if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) { "IDS_ST_BODY_WALLPAPERS", "b_setting_wallpaper.png", homescreen_cb }, { "IDS_ST_BUTTON_NOTIFICATIONS", "b_settings_notifications.png", notification_cb }, #endif - -#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) +//#ifndef FEATURE_SETTING_EMUL { "IDS_ST_OPT_SOUND_ABB2", "b_settings_volume.png", sound_cb }, +// { "IDS_ST_OPT_VOLUME", "b_settings_volume.png", volume_cb }, +//#endif + { "IDS_ST_MBODY_DISPLAY_ABB", "b_setting_display.png", display_cb }, + { "IDS_ST_MBODY_TEXT_INPUT_ABB", "text_input_icon.png", keyboard_cb }, +#ifndef FEATURE_SETTING_EMUL +// { "IDS_ST_BODY_BATTERY_ABB", "b_settings_battery.png", battery_cb }, + { "IDS_QP_BUTTON_BLUETOOTH", "b_settings_bluetooth.png", bluetooth_cb }, +// { "IDS_WMGR_HEADER_MOTIONS", "b_settings_motion.png", motion_cb }, #endif - {/*ALWAYS*/"IDS_ST_MBODY_DISPLAY_ABB", "b_setting_display.png", display_cb }, - - {/*ALWAYS*/"IDS_QP_BUTTON_BLUETOOTH", "b_settings_bluetooth.png", bluetooth_cb }, - -#if !defined(FEATURE_SETTING_SDK) +#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) { "IDS_ST_MBODY_DOUBLE_PRESS_ABB", "b_setting_double-press.png", double_pressing_cb }, { "IDS_LCKSCN_BODY_PRIVACY_LOCK_ABB", "b_settings_lockscreen.png", lockscreen_cb }, { "IDS_HEALTH_MBODY_PROFILE", "b_settings_profile.png", profile_cb }, #endif -#if !defined(FEATURE_SETTING_SDK) +// { "IDS_ST_BUTTON_LANGUAGE", "b_settings_language.png", language_cb }, +#if !defined(FEATURE_SETTING_SDK) && !defined(FEATURE_SETTING_EMUL) + //{ "Safety", "b_settings_safety.png", safety_cb }, +#endif + +// factory reset is not supported in tizen_2.3 +#if 0 { "IDS_ST_BODY_RESET_GEAR_ABB", "b_settings_reset.png", reset_gear_cb }, #endif - {/*ALWAYS*/"IDS_ST_BUTTON_GEAR_INFO", "b_settings_info.png", gear_info_cb }, + +#ifndef FEATURE_SETTING_EMUL + { "IDS_ST_BUTTON_GEAR_INFO", "b_settings_info.png", gear_info_cb }, +#endif { NULL, NULL, NULL } }; @@ -103,6 +119,7 @@ static int is_emergency; static Elm_Object_Item * lang_item = NULL; static bool running = false; static Ecore_Timer *running_timer = NULL; +static Ecore_Timer *scrl_timer = NULL; static Evas_Object* _create_bg(Evas_Object *parent); static Evas_Object* _create_conform(Evas_Object *parent); @@ -110,7 +127,31 @@ static Evas_Object* _create_layout_main(Evas_Object* parent); static Evas_Object* _create_naviframe_layout(Evas_Object* parent); static void _create_view_layout(appdata *ad); static int init_clocksetting(appdata *ad); +static Eina_Bool _app_ctrl_timer_cb(void *data); +static Eina_Bool _scroller_timer_cb(void *data); + +#ifdef FEATURE_SETTING_CHANGEABLE +static Ea_Theme_Color_Table* _changeable_colors_set(void) +{ + Ea_Theme_Color_Table *table; + + /* Enable changeable UI */ + ea_theme_changeable_ui_enabled_set(EINA_TRUE); + + table = ea_theme_color_table_new(COLOR_INFO_TABLE); + ea_theme_colors_set(table, EA_THEME_STYLE_DEFAULT); + + return table; +} + +static void _changeable_colors_free(Ea_Theme_Color_Table *table) +{ + // when the process is killed, you don’t need to call this + //ea_theme_colors_unset(table, EA_THEME_STYLE_DEFAULT); // This API will be removed. + ea_theme_color_table_free(table); +} +#endif void clock_cb(void *data, Evas_Object *obj, void *event_info) { @@ -326,6 +367,39 @@ void display_cb(void *data, Evas_Object *obj, void *event_info) ad->MENU_TYPE = SETTING_DISPLAY; } +void keyboard_cb(void *data, Evas_Object *obj, void *event_info) +{ + elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); + + appdata *ad = data; + + if( ad == NULL ) + { + DBG("Setting - ad is null"); + return; + } + + if(running){ + return; + } + + if(!running){ + app_control_h service; + app_control_create(&service); + app_control_set_package(service, "org.tizen.w-text-input-setting"); + app_control_send_launch_request(service, NULL, NULL); + app_control_destroy(service); + + running = true; + + if(running_timer) { + ecore_timer_del(running_timer); + running_timer = NULL; + } + running_timer = ecore_timer_add(0.5, (Ecore_Task_Cb)_app_ctrl_timer_cb, NULL); + } +} + void battery_cb(void *data, Evas_Object *obj, void *event_info) { elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE); @@ -634,6 +708,17 @@ static Eina_Bool _app_ctrl_timer_cb(void *data) { return ECORE_CALLBACK_CANCEL; } +static Eina_Bool _scroller_timer_cb(void *data) { + DBG("hide scroller bar"); + + Evas_Object *genlist = data; + + if (genlist) + elm_layout_signal_emit(genlist, "do-hide-vbar", ""); + + return ECORE_CALLBACK_CANCEL; +} + void profile_cb(void *data, Evas_Object *obj, void *event_info) { DBG("profile cb"); @@ -684,6 +769,11 @@ static Eina_Bool _pop_cb(void *data, Elm_Object_Item *it) if(running) running = false; + if(scrl_timer) { + ecore_timer_del(scrl_timer); + scrl_timer = NULL; + } + if (ad && ad->win_main) { elm_win_lower(ad->win_main); @@ -948,10 +1038,12 @@ static Evas_Object* _create_mainlist_winset(Evas_Object* parent, appdata* ad) NULL, NULL); elm_genlist_item_select_mode_set(id_indi->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); +#if 0 vconf_get_bool(VCONFKEY_SETAPPL_EMERGENCY_STATUS_BOOL, &is_emergency); - +#else + is_emergency = 0; +#endif int item_count = 0; - if(is_emergency) { menu_its = setting_emergency_menu_its; @@ -1024,6 +1116,7 @@ static void _naviframe_back_cb(void * data, Evas_Object * obj, void * event_info if(ad->MENU_TYPE == SETTING_BLUETOOTH) { clear_bt_resource(); + ad->MENU_TYPE = SETTING_MAIN; } else if(ad->MENU_TYPE == SETTING_VOLUME_2_DEPTH) { @@ -1128,6 +1221,11 @@ bool app_create(void *data) elm_language_set(locale); } +#ifdef FEATURE_SETTING_CHANGEABLE + // set color table for changeable color + ad->color_table = _changeable_colors_set(); +#endif + ad->is_first_launch = 1; init_clocksetting(ad); @@ -1193,6 +1291,13 @@ void app_terminate(void *data) /* unregister motion vconf changed callback */ //unregister_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, change_language_enabling); + +#ifdef FEATURE_SETTING_CHANGEABLE + if (ad->color_table) { + _changeable_colors_free(ad->color_table); + ad->color_table = NULL; + } +#endif } void app_pause(void *data) @@ -1225,18 +1330,21 @@ void app_pause(void *data) void app_resume(void *data) { DBG("Setting - app_resume()"); + + appdata *ad = data; + if(running) running = false; } -void app_reset(service_h service, void *data) +void app_reset(app_control_h service, void *data) { DBG("Setting - app_reset()"); appdata *ad = data; char *operation = NULL; - service_get_operation(service, &operation); + app_control_get_operation(service, &operation); DBG("operation : %s", operation); if (!ad->is_first_launch) { if (operation && !strcmp(operation, "http://tizen.org/appcontrol/operation/main")) { @@ -1256,6 +1364,13 @@ void app_reset(service_h service, void *data) if (ad->main_genlist) { elm_genlist_item_show(elm_genlist_first_item_get(ad->main_genlist), ELM_GENLIST_ITEM_SCROLLTO_TOP); + elm_layout_signal_emit(ad->main_genlist, "do-show-vbar", ""); + + if(scrl_timer) { + ecore_timer_del(scrl_timer); + scrl_timer = NULL; + } + scrl_timer = ecore_timer_add(1, (Ecore_Task_Cb)_scroller_timer_cb, ad->main_genlist); } } } else { @@ -1286,7 +1401,7 @@ int main(int argc, char *argv[]) event_callback.terminate = app_terminate; event_callback.pause = app_pause; event_callback.resume = app_resume; - event_callback.service = app_reset; + event_callback.app_control = app_reset; event_callback.low_memory = NULL; event_callback.low_battery = NULL; event_callback.device_orientation = NULL; diff --git a/src/setting_control_bt.c b/src/setting_control_bt.c index 91e69c6..b1fc977 100644 --- a/src/setting_control_bt.c +++ b/src/setting_control_bt.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include "setting_control_bt.h" #include "setting_debug.h" #include diff --git a/src/setting_control_haptic.c b/src/setting_control_haptic.c index b3fe518..3dc3c70 100644 --- a/src/setting_control_haptic.c +++ b/src/setting_control_haptic.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include "setting_control_haptic.h" #include "util.h" diff --git a/src/setting_data_vconf.c b/src/setting_data_vconf.c index ef052c8..8373aec 100644 --- a/src/setting_data_vconf.c +++ b/src/setting_data_vconf.c @@ -1,50 +1,49 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include "setting_data_vconf.h" #include "util.h" -void unregister_vconf_changing(const char *vconf, vconf_callback_fn cb) +int unregister_vconf_changing(const char *vconf, vconf_callback_fn cb) { - if (vconf && cb) { - int ret = vconf_ignore_key_changed(vconf, cb); - if (ret != 0) { - DBG("Setting - vconf's changed callback do not unregist"); + int ret = TRUE; + if ( vconf && cb ) { + ret = vconf_ignore_key_changed(vconf, cb); + if ( ret == VCONF_OK ) + { + DBG("Setting - vconf's changed callback unregisted!!"); } else { - DBG("Setting - vconf's changed callback unregisted!!"); + DBG("Setting - vconf's changed callback do not unregist"); + ret = FALSE; } } + return ret; } int register_vconf_changing(const char *vconf, vconf_callback_fn cb, void *data) { - int ret = 1; + int ret = TRUE; if ( vconf && cb ) { - if(0 == vconf_notify_key_changed(vconf, cb, data)) + ret = vconf_notify_key_changed(vconf, cb, data); + if( ret == VCONF_OK ) { DBG("Setting - vconf's changed callback is registed!"); } else { DBG("Setting - vconf's changed callback is not registed!"); - ret = 0; + ret = FALSE; } } return ret; diff --git a/src/setting_indicator_util.c b/src/setting_indicator_util.c index 6233949..6e4e917 100755 --- a/src/setting_indicator_util.c +++ b/src/setting_indicator_util.c @@ -1,23 +1,18 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include #include +#include "setting_data_vconf.h" #include "setting_indicator_util.h" void indicator_vconf_changed_cb(keynode_t *node, void *data) @@ -136,18 +131,16 @@ void indicator_view_update(Evas_Object *layout) void indicator_set_vconf_changed_cb(void *data) { - vconf_notify_key_changed(VCONFKEY_WMS_WMANAGER_CONNECTED, indicator_vconf_changed_cb, data); - vconf_notify_key_changed(VCONFKEY_SYSMAN_BATTERY_CAPACITY, indicator_vconf_changed_cb, data); - vconf_notify_key_changed(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, indicator_vconf_changed_cb, data); - vconf_notify_key_changed(VCONFKEY_BT_DEVICE, indicator_vconf_changed_cb, data); + register_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, indicator_vconf_changed_cb, data); + register_vconf_changing(VCONFKEY_SYSMAN_BATTERY_CAPACITY, indicator_vconf_changed_cb, data); + register_vconf_changing(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, indicator_vconf_changed_cb, data); + register_vconf_changing(VCONFKEY_BT_DEVICE, indicator_vconf_changed_cb, data); } void indicator_unset_vconf_changed_cb() { - vconf_ignore_key_changed(VCONFKEY_WMS_WMANAGER_CONNECTED, indicator_vconf_changed_cb); - vconf_ignore_key_changed(VCONFKEY_SYSMAN_BATTERY_CAPACITY, indicator_vconf_changed_cb); - vconf_ignore_key_changed(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, indicator_vconf_changed_cb); - vconf_ignore_key_changed(VCONFKEY_BT_DEVICE, indicator_vconf_changed_cb); + unregister_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, indicator_vconf_changed_cb); + unregister_vconf_changing(VCONFKEY_SYSMAN_BATTERY_CAPACITY, indicator_vconf_changed_cb); + unregister_vconf_changing(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, indicator_vconf_changed_cb); + unregister_vconf_changing(VCONFKEY_BT_DEVICE, indicator_vconf_changed_cb); } - - diff --git a/src/setting_view_toast.c b/src/setting_view_toast.c index e81e273..8f387bf 100755 --- a/src/setting_view_toast.c +++ b/src/setting_view_toast.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ #include #include "setting_view_toast.h" diff --git a/src/util.c b/src/util.c index f4161f2..23b7e69 100755 --- a/src/util.c +++ b/src/util.c @@ -1,19 +1,13 @@ /* - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2010 Samsung Electronics, Inc. + * 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. - * -*/ + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ /* * util.c *