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")
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)
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)
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)
# 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")
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)
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
+++ /dev/null
-Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.\r
-\r
- Apache License\r
- Version 2.0, January 2004\r
- http://www.apache.org/licenses/\r
-\r
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r
-\r
- 1. Definitions.\r
-\r
- "License" shall mean the terms and conditions for use, reproduction,\r
- and distribution as defined by Sections 1 through 9 of this document.\r
-\r
- "Licensor" shall mean the copyright owner or entity authorized by\r
- the copyright owner that is granting the License.\r
-\r
- "Legal Entity" shall mean the union of the acting entity and all\r
- other entities that control, are controlled by, or are under common\r
- control with that entity. For the purposes of this definition,\r
- "control" means (i) the power, direct or indirect, to cause the\r
- direction or management of such entity, whether by contract or\r
- otherwise, or (ii) ownership of fifty percent (50%) or more of the\r
- outstanding shares, or (iii) beneficial ownership of such entity.\r
-\r
- "You" (or "Your") shall mean an individual or Legal Entity\r
- exercising permissions granted by this License.\r
-\r
- "Source" form shall mean the preferred form for making modifications,\r
- including but not limited to software source code, documentation\r
- source, and configuration files.\r
-\r
- "Object" form shall mean any form resulting from mechanical\r
- transformation or translation of a Source form, including but\r
- not limited to compiled object code, generated documentation,\r
- and conversions to other media types.\r
-\r
- "Work" shall mean the work of authorship, whether in Source or\r
- Object form, made available under the License, as indicated by a\r
- copyright notice that is included in or attached to the work\r
- (an example is provided in the Appendix below).\r
-\r
- "Derivative Works" shall mean any work, whether in Source or Object\r
- form, that is based on (or derived from) the Work and for which the\r
- editorial revisions, annotations, elaborations, or other modifications\r
- represent, as a whole, an original work of authorship. For the purposes\r
- of this License, Derivative Works shall not include works that remain\r
- separable from, or merely link (or bind by name) to the interfaces of,\r
- the Work and Derivative Works thereof.\r
-\r
- "Contribution" shall mean any work of authorship, including\r
- the original version of the Work and any modifications or additions\r
- to that Work or Derivative Works thereof, that is intentionally\r
- submitted to Licensor for inclusion in the Work by the copyright owner\r
- or by an individual or Legal Entity authorized to submit on behalf of\r
- the copyright owner. For the purposes of this definition, "submitted"\r
- means any form of electronic, verbal, or written communication sent\r
- to the Licensor or its representatives, including but not limited to\r
- communication on electronic mailing lists, source code control systems,\r
- and issue tracking systems that are managed by, or on behalf of, the\r
- Licensor for the purpose of discussing and improving the Work, but\r
- excluding communication that is conspicuously marked or otherwise\r
- designated in writing by the copyright owner as "Not a Contribution."\r
-\r
- "Contributor" shall mean Licensor and any individual or Legal Entity\r
- on behalf of whom a Contribution has been received by Licensor and\r
- subsequently incorporated within the Work.\r
-\r
- 2. Grant of Copyright License. Subject to the terms and conditions of\r
- this License, each Contributor hereby grants to You a perpetual,\r
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
- copyright license to reproduce, prepare Derivative Works of,\r
- publicly display, publicly perform, sublicense, and distribute the\r
- Work and such Derivative Works in Source or Object form.\r
-\r
- 3. Grant of Patent License. Subject to the terms and conditions of\r
- this License, each Contributor hereby grants to You a perpetual,\r
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
- (except as stated in this section) patent license to make, have made,\r
- use, offer to sell, sell, import, and otherwise transfer the Work,\r
- where such license applies only to those patent claims licensable\r
- by such Contributor that are necessarily infringed by their\r
- Contribution(s) alone or by combination of their Contribution(s)\r
- with the Work to which such Contribution(s) was submitted. If You\r
- institute patent litigation against any entity (including a\r
- cross-claim or counterclaim in a lawsuit) alleging that the Work\r
- or a Contribution incorporated within the Work constitutes direct\r
- or contributory patent infringement, then any patent licenses\r
- granted to You under this License for that Work shall terminate\r
- as of the date such litigation is filed.\r
-\r
- 4. Redistribution. You may reproduce and distribute copies of the\r
- Work or Derivative Works thereof in any medium, with or without\r
- modifications, and in Source or Object form, provided that You\r
- meet the following conditions:\r
-\r
- (a) You must give any other recipients of the Work or\r
- Derivative Works a copy of this License; and\r
-\r
- (b) You must cause any modified files to carry prominent notices\r
- stating that You changed the files; and\r
-\r
- (c) You must retain, in the Source form of any Derivative Works\r
- that You distribute, all copyright, patent, trademark, and\r
- attribution notices from the Source form of the Work,\r
- excluding those notices that do not pertain to any part of\r
- the Derivative Works; and\r
-\r
- (d) If the Work includes a "NOTICE" text file as part of its\r
- distribution, then any Derivative Works that You distribute must\r
- include a readable copy of the attribution notices contained\r
- within such NOTICE file, excluding those notices that do not\r
- pertain to any part of the Derivative Works, in at least one\r
- of the following places: within a NOTICE text file distributed\r
- as part of the Derivative Works; within the Source form or\r
- documentation, if provided along with the Derivative Works; or,\r
- within a display generated by the Derivative Works, if and\r
- wherever such third-party notices normally appear. The contents\r
- of the NOTICE file are for informational purposes only and\r
- do not modify the License. You may add Your own attribution\r
- notices within Derivative Works that You distribute, alongside\r
- or as an addendum to the NOTICE text from the Work, provided\r
- that such additional attribution notices cannot be construed\r
- as modifying the License.\r
-\r
- You may add Your own copyright statement to Your modifications and\r
- may provide additional or different license terms and conditions\r
- for use, reproduction, or distribution of Your modifications, or\r
- for any such Derivative Works as a whole, provided Your use,\r
- reproduction, and distribution of the Work otherwise complies with\r
- the conditions stated in this License.\r
-\r
- 5. Submission of Contributions. Unless You explicitly state otherwise,\r
- any Contribution intentionally submitted for inclusion in the Work\r
- by You to the Licensor shall be under the terms and conditions of\r
- this License, without any additional terms or conditions.\r
- Notwithstanding the above, nothing herein shall supersede or modify\r
- the terms of any separate license agreement you may have executed\r
- with Licensor regarding such Contributions.\r
-\r
- 6. Trademarks. This License does not grant permission to use the trade\r
- names, trademarks, service marks, or product names of the Licensor,\r
- except as required for reasonable and customary use in describing the\r
- origin of the Work and reproducing the content of the NOTICE file.\r
-\r
- 7. Disclaimer of Warranty. Unless required by applicable law or\r
- agreed to in writing, Licensor provides the Work (and each\r
- Contributor provides its Contributions) on an "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
- implied, including, without limitation, any warranties or conditions\r
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r
- PARTICULAR PURPOSE. You are solely responsible for determining the\r
- appropriateness of using or redistributing the Work and assume any\r
- risks associated with Your exercise of permissions under this License.\r
-\r
- 8. Limitation of Liability. In no event and under no legal theory,\r
- whether in tort (including negligence), contract, or otherwise,\r
- unless required by applicable law (such as deliberate and grossly\r
- negligent acts) or agreed to in writing, shall any Contributor be\r
- liable to You for damages, including any direct, indirect, special,\r
- incidental, or consequential damages of any character arising as a\r
- result of this License or out of the use or inability to use the\r
- Work (including but not limited to damages for loss of goodwill,\r
- work stoppage, computer failure or malfunction, or any and all\r
- other commercial damages or losses), even if such Contributor\r
- has been advised of the possibility of such damages.\r
-\r
- 9. Accepting Warranty or Additional Liability. While redistributing\r
- the Work or Derivative Works thereof, You may choose to offer,\r
- and charge a fee for, acceptance of support, warranty, indemnity,\r
- or other liability obligations and/or rights consistent with this\r
- License. However, in accepting such obligations, You may act only\r
- on Your own behalf and on Your sole responsibility, not on behalf\r
- of any other Contributor, and only if You agree to indemnify,\r
- defend, and hold each Contributor harmless for any liability\r
- incurred by, or claims asserted against, such Contributor by reason\r
- of your accepting any such warranty or additional liability.\r
-\r
- END OF TERMS AND CONDITIONS\r
-\r
- APPENDIX: How to apply the Apache License to your work.\r
-\r
- To apply the Apache License to your work, attach the following\r
- boilerplate notice, with the fields enclosed by brackets "[]"\r
- replaced with your own identifying information. (Don't include\r
- the brackets!) The text should be enclosed in the appropriate\r
- comment syntax for the file format. We also recommend that a\r
- file or class name and description of purpose be included on the\r
- same "printed page" as the copyright notice for easier\r
- identification within third-party archives.\r
-\r
- Copyright [yyyy] [name of copyright owner]\r
-\r
- Licensed under the Apache License, Version 2.0 (the "License");\r
- you may not use this file except in compliance with the License.\r
- You may obtain a copy of the License at\r
-\r
- http://www.apache.org/licenses/LICENSE-2.0\r
-\r
- Unless required by applicable law or agreed to in writing, software\r
- distributed under the License is distributed on an "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- See the License for the specific language governing permissions and\r
- limitations under the License.\r
-\r
--- /dev/null
+/*
+ * 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"
+}
--- /dev/null
+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
--- /dev/null
+/*
+ * 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
+ }
+}
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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;
+ }
+ }
+
+ }
+}
--- /dev/null
+/*
+ * 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";
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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");
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+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
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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";\
+ }
--- /dev/null
+/*
+ * 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"; )
+}
+
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+
+//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";
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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;
+ }
+ }
+
+ }
+}
--- /dev/null
+/*
+ * 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
--- /dev/null
+/*
+ * 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;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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";
+ }
+ }
+
+ }
+}
--- /dev/null
+/*
+ * 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" );\r
+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
--- /dev/null
+#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
--- /dev/null
+/*
+ * 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"
--- /dev/null
+/*
+ * 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";
+ }
+ }
+}
+
--- /dev/null
+/*
+ * 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";
+ }
+ }
+}
--- /dev/null
+/*
+ * 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";
+ }
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ChangeableColorTable num="1">
+ <Theme style="Dark">
+ <ChangeableColorInfo id="AO011" inputColor="1" hue="0" saturation="0" value="18" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO012" inputColor="3" hue="11" saturation="54" value="44" alpha="100" />
+ <ChangeableColorInfo id="AO013" inputColor="1" hue="-2" saturation="29" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO014" inputColor="K" hue="0" saturation="0" value="19" alpha="100" />
+ <ChangeableColorInfo id="AO015" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO015D" inputColor="W" hue="0" saturation="0" value="0" alpha="20" />
+ <ChangeableColorInfo id="AO0161" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0161P" inputColor="3" hue="4" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AO0161D" inputColor="K" hue="0" saturation="0" value="0" alpha="30" />
+ <ChangeableColorInfo id="AO0162" inputColor="K" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO0163" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO017" inputColor="K" hue="0" saturation="0" value="0" alpha="40" />
+ <ChangeableColorInfo id="AO018" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO021" inputColor="W" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO021S" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO022" inputColor="-" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO0231" inputColor="3" hue="46" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AO0232" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0241" inputColor="K" hue="0" saturation="0" value="0" alpha="40" />
+ <ChangeableColorInfo id="AO0242" inputColor="K" hue="0" saturation="0" value="0" alpha="40" />
+ <ChangeableColorInfo id="AO025" inputColor="K" hue="0" saturation="0" value="0" alpha="25" />
+ <ChangeableColorInfo id="AO025S" inputColor="K" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO026" inputColor="K" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AT011" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AT012" inputColor="3" hue="4" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AT013" inputColor="3" hue="4" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AT022" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0101" inputColor="W" hue="0" saturation="0" value="0" alpha="22" />
+ <ChangeableColorInfo id="AO0102L1" inputColor="K" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0102L2" inputColor="W" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO033" inputColor="-" hue="0" saturation="0" value="98" alpha="100" />
+ <ChangeableColorInfo id="AO033P" inputColor="-" hue="0" saturation="0" value="98" alpha="50" />
+ </Theme>
+ <Theme style="Light">
+ <ChangeableColorInfo id="AO011" inputColor="1" hue="0" saturation="-13" value="71" alpha="100" />
+ <ChangeableColorInfo id="AO012" inputColor="3" hue="11" saturation="66" value="56" alpha="100" />
+ <ChangeableColorInfo id="AO013" inputColor="1" hue="0" saturation="0" value="96" alpha="100" fixedHue="true" fixedSaturation="true" fixedValue="true" />
+ <ChangeableColorInfo id="AO014" inputColor="K" hue="0" saturation="0" value="70" alpha="100" />
+ <ChangeableColorInfo id="AO015" inputColor="W" hue="0" saturation="0" value="-76" alpha="100" />
+ <ChangeableColorInfo id="AO015D" inputColor="W" hue="0" saturation="0" value="-76" alpha="20" />
+ <ChangeableColorInfo id="AO0161" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0161P" inputColor="3" hue="4" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AO0161D" inputColor="K" hue="0" saturation="0" value="0" alpha="30" />
+ <ChangeableColorInfo id="AO0162" inputColor="K" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO0163" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO017" inputColor="K" hue="0" saturation="0" value="0" alpha="40" />
+ <ChangeableColorInfo id="AO018" inputColor="W" hue="0" saturation="0" value="-96" alpha="100" />
+ <ChangeableColorInfo id="AO021" inputColor="W" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO021S" inputColor="W" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO022" inputColor="-" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO0231" inputColor="K" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO0232" inputColor="W" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO0241" inputColor="3" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO0242" inputColor="K" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO025" inputColor="K" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO025S" inputColor="K" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AO026" inputColor="K" hue="" saturation="" value="" alpha="" />
+ <ChangeableColorInfo id="AT011" inputColor="W" hue="0" saturation="0" value="-96" alpha="100" />
+ <ChangeableColorInfo id="AT012" inputColor="3" hue="4" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AT013" inputColor="3" hue="4" saturation="66" value="65" alpha="100" />
+ <ChangeableColorInfo id="AT022" inputColor="W" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0101" inputColor="K" hue="0" saturation="0" value="0" alpha="22" />
+ <ChangeableColorInfo id="AO0102L1" inputColor="K" hue="0" saturation="0" value="0" alpha="100" />
+ <ChangeableColorInfo id="AO0102L2" inputColor="W" hue="0" saturation="0" value="0" alpha="50" />
+ <ChangeableColorInfo id="AO033" inputColor="-" hue="0" saturation="0" value="98" alpha="100" />
+ <ChangeableColorInfo id="AO033P" inputColor="-" hue="0" saturation="0" value="98" alpha="50" />
+ </Theme>
+</ChangeableColorTable>
+<ChangeableColorTable num="2">
+ <Theme style="Dark">
+ </Theme>
+ <Theme style="Light">
+ </Theme>
+</ChangeableColorTable>
+<ChangeableColorTable num="3">
+ <Theme style="Dark">
+ </Theme>
+ <Theme style="Light">
+ </Theme>
+</ChangeableColorTable>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<FontInfoTable>
+ <FontInfo id="AT011" style="R" size="36" />
+ <FontInfo id="AT012" style="R" size="32" />
+ <FontInfo id="AT013" style="R" size="28" />
+ <FontInfo id="AT022" style="R" size="28" />
+</FontInfoTable>
<clock package="org.tizen.idle-clock-pedometer" image="b_idle_clock_thumb_weather_clock_pedometers.png" str_id="IDS_WMGR_HEADER_PEDOMETER_CLOCK"/>
<clock package="org.tizen.w-idle-clock-shortcut2" image="b_idle_clock_thumb_event_shortcut_clock.png" str_id="IDS_WMGR_HEADER_SHORTCUT_CLOCK"/>
<clock package="org.tizen.w-idle-clock-weather2" image="b_idle_clock_thumb_weather_clock.png" str_id="IDS_WMGR_MBODY_WEATHER_CLOCK"/>
-</clocklist>
+</clocklist>
\ No newline at end of file
/*
- * 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"
#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";
+ }
+ }
+ }
+ }
+ }
+
+
+
+
}
/*
- * 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";
/*
- * 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;
/*
- * 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 {
/*
- * 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";
/*
- * 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 *** //
/*
- * 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; \
} \
}
-#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; \
} \
/*
- * 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");
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");
/*
- * 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";
/*
- * 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 {
/*
- * 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
/*
- * 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
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"; )
+}
/*
- * 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 {
/*
- * 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";
/*
- * 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"
/*
- * 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 *** //
/*
- * 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 {
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;
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;
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 {
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";
/*
- * 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;
/*
- * 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";
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;
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";
relative: 0 1;
}
}
- }
+ }
part { name: "v_padding2";
type: SPACER;
scale: 1;
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";
+ }
}
}
}
/*
- * 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
*
/*
- * 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
*
/*
- * 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
*
#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,
/*
- * 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
*
#include <sound_manager.h>
#include <mm_sound_private.h>
#include <wav_player.h>
+//#include <player_product.h>
#define SETTING_DEFAULT_RINGTONE_PATH "/opt/share/settings/Ringtones"
/*
- * 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
*
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);
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);
/*
- * 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
*
/*
- * 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
*
/*
- * 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 <Elementary.h>
#include <libintl.h>
#include <string.h>
-#include <system_info.h>
+#include <system_info_internal.h>
#define ITEM_COUNT 2
#define ABOUT_ITEM_COUNT 5
/*
- * 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
*
#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
/*
- * 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
*
/*
- * 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_
/*
- * 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
*
/*
- * 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_
/*
- * 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
*
/*
- * 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
*
/*
- * 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
*
#include <sound_manager.h>
#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
--- /dev/null
+/*
+ * setting-theme.h
+ *
+ * Created on: Aug 7, 2014
+ * Author: min-hoyun
+ */
+
+#ifndef SETTING_THEME_H_
+#define SETTING_THEME_H_
+
+#include <Elementary.h>
+
+#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_ */
/*
- * 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
*
/*
- * 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 <Elementary.h>
#include <stdlib.h>
#include <limits.h>
#include <efl_assist.h>
#include <bluetooth.h>
-//#include "util.h"
+#include "util.h"
#define NUM_OF_SETTING_MAIN_MENU 11
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 );
/*
- * 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_
/*
- * 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_
/*
- * 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_
#include <vconf-keys.h>
-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
/*
- * 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 <dlog.h>
-#ifdef LOG_TAG 16
+#ifdef LOG_TAG
#undef LOG_TAG
#define LOG_TAG "W-SETTING"
#endif
/*
- * 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_
/*
- * 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_
/*
- * 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_
#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
int MENU_TYPE;
Evas_Object *indicator_layout;
+
+#ifdef FEATURE_SETTING_CHANGEABLE
+ Ea_Theme_Color_Table *color_table;
+#endif
} appdata;
typedef struct _Item_Data
--- /dev/null
+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---- ------
+++ /dev/null
-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
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.clocksetting" version="0.0.1" install-location="internal-only">
<label>Settings</label>
- <author email="mj2004.park@samsung.com" href="www.samsung.com">MyoungJune Park</author>
+ <author email="min-ho.yun@samsung.com" href="www.samsung.com">Minho Yun</author>
<description>Settings</description>
- <ui-application appid="org.tizen.clocksetting" exec="/usr/apps/org.tizen.clocksetting/bin/clocksetting" nodisplay="false" multiple="false" type="capp" taskmanage="true" indicatordisplay= "false" portrait-effectimage="/usr/apps/org.tizen.clocksetting/shared/res/portrait.png">
+ <ui-application appid="org.tizen.clocksetting" exec="/usr/apps/org.tizen.clocksetting/bin/clocksetting" nodisplay="false" multiple="false" type="capp" taskmanage="true" indicatordisplay= "false">
<category name="org.tizen.wmanager.WATCH_APP"></category>
<icon>org.tizen.clocksetting.png</icon>
<icon section="small">org.tizen.clocksetting_small.png</icon>
<label xml:lang="pt-pt">Definições</label>
<label xml:lang="ro-ro">Setări</label>
<label xml:lang="ru-ru">Параметры</label>
- <label xml:lang="si-lk">à·\83à·\90à¶\9aà·\83à·\93ම්</label>
+ <label xml:lang="si-lk">à·\83à·\90à¶\9aà·\83à·\94ම්</label>
<label xml:lang="sk-sk">Nastavenia</label>
<label xml:lang="sl-si">Nastavitve</label>
<label xml:lang="sq-al">Cilësimet</label>
%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
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)
%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"
%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}
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
%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
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
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
%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/*
msgid "IDS_COM_POP_PROCESSING"
msgstr "جاري المعالجة..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "جعله مرئيًا"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "إدخال النص"
msgid "IDS_COM_POP_PROCESSING"
msgstr "প্ৰক্ৰিয়াৰত..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "দৃশ্যমান কৰক"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "পাঠ ইনপুট"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "Обработване..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Прав. видимо"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Въвеж. текст"
msgid "IDS_COM_POP_PROCESSING"
msgstr "প্রক্রিয়াকরণ চলছে..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "দৃশ্যমান করুন"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "পাঠ্য ইনপুট"
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"
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"
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."
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "Επεξεργασία..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Ορατό"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Εισ. κειμέν."
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"
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"
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"
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"
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"
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."
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"
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."
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "در حال انجام..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "قابل مشاهده"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ورود متن"
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ö"
msgstr "Mode son"
msgid "IDS_ST_OPT_STRONG_M_INTENSITY"
-msgstr "Fort"
+msgstr "Forte"
msgid "IDS_ST_OPT_WEAK_M_INTENSITY"
msgstr "Faible"
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"
msgstr "Mode son"
msgid "IDS_ST_OPT_STRONG_M_INTENSITY"
-msgstr "Fort"
+msgstr "Forte"
msgid "IDS_ST_OPT_WEAK_M_INTENSITY"
msgstr "Faible"
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"
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"
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."
msgid "IDS_COM_POP_PROCESSING"
msgstr "પ્રક્રિયા શરૂ..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "દૃશ્યમાન બનાવો"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ટેક્સ્ટ દાખલ"
msgid "IDS_COM_POP_PROCESSING"
msgstr "מעבד..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "הפוך לגלוי"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "קלט טקסט"
msgid "IDS_COM_POP_PROCESSING"
msgstr "प्रक्रिया हो रही है..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "दृश्यमान करे"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "टेक्स्ट इनपुट"
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"
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."
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "Ընթացքում է"
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Դրձնել տսնլի"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Տեքստ ներած."
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"
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"
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"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "処理中..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "公開"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "テキスト入力"
msgid "IDS_COM_POP_PROCESSING"
msgstr "მუშავდება..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "გამოჩენა"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "აკრეფა"
msgid "IDS_COM_POP_PROCESSING"
msgstr "Өңделуде..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Көрін-й ету"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Мәтін енгізу"
msgid "IDS_COM_POP_PROCESSING"
msgstr "កំពុងដំណើរការ..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ធ្វើឲ្យមើលឃើញ"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ការបញ្ចូលអត្ថបទ"
msgid "IDS_COM_POP_PROCESSING"
msgstr "ಪ್ರಕ್ರಿಯೆಗೊಳ್ಳುತ್ತಿದೆ..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ಕಾಣುವಂತೆ ಮಾಡಿ"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ಪಠ್ಯ ಇನ್ಪುಟ್"
msgid "IDS_COM_POP_PROCESSING"
msgstr "진행 중..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "검색 허용"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "텍스트 입력"
msgstr "ໂໝດສຽງ"
msgid "IDS_ST_OPT_STRONG_M_INTENSITY"
-msgstr "à»\80àº\82ັà»\89ມà»\81àº\82ງ"
+msgstr "à»\81ຮງ"
msgid "IDS_ST_OPT_WEAK_M_INTENSITY"
msgstr "ອ່ອນ"
msgid "IDS_COM_POP_PROCESSING"
msgstr "ກຳລັງປະມວນຜົນ..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ເຮັດໃຫ້ເຫັນໄດ້"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ປ້ອນຂໍ້ຄວາມ"
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."
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."
msgid "IDS_COM_POP_PROCESSING"
msgstr "Обработување..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Да е видлив"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Внесув.текст"
msgstr "ദൃശ്യപരത"
msgid "IDS_QP_BUTTON_BLUETOOTH"
-msgstr "ബ്ലൂടൂ."
+msgstr "ബ്ലൂടൂത്ത്"
msgid "IDS_SMEMO_BUTTON_SET_TIME_ABB"
msgstr "സമയം ക്രമീകരിക്കുക"
msgid "IDS_COM_POP_PROCESSING"
msgstr "പ്രോസസ്സുചെയ്യുന്നു..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ദൃശ്യമാക്കുക"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ടെക്സ്റ്റ് ഇന്പുട്ട്"
--- /dev/null
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Бичвэр оруул"
msgid "IDS_COM_POP_PROCESSING"
msgstr "प्रक्रिया सुरू आहे..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "दृश्यमान करा"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "मजकूर ईनपुट"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "လုပ္ငန္းေဆာင္ရြက္ေနပါသည္…."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ျမင္ႏိုင္ေအာင္ လုပ္ပါ"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ျဖည့္ထည့္ထားေသာ စာသား"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "प्रक्रिया चलाइरहेको..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "दृश्यमान बनाउनुहोस्"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "पाठ इन्पुट"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "ପ୍ରକ୍ରିୟାରତ କରୁଛି..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ଦୃଶ୍ୟଲବ୍ଧ କରାନ୍ତୁ"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ଟେକ୍ସଟ ଇନ୍ପୁଟ୍"
msgstr "ਪ੍ਰੋਫਾਈਲ"
msgid "IDS_ST_BODY_YOU_CAN_CHECK_NOTICES_REGARDING_SAFETY_INFORMATION_BY_FOLLOWING_THE_STEPS_BELOW_N_N1_GO_TO_SETTINGS_MSG"
-msgstr "ਤà©\81ਸà©\80à¨\82 ਹà©\87ਠਾà¨\82 ਦਿੱਤà©\87 à¨\97à¨\8f à¨\9aਰਣਾà¨\82 ਦਾ ਪਾਲਨ à¨\95ਰਦà©\87 ਹà©\8bà¨\8f ਸà©\81ਰੱà¨\96ਿà¨\86 à¨\9cਾਣà¨\95ਾਰà©\80 ਦà©\87 ਬਾਰà©\87 ਵਿੱà¨\9a ਸà©\82à¨\9aਨਾਵਾà¨\82 ਦà©\80 à¨\9cਾà¨\82à¨\9a à¨\95ਰ ਸà¨\95ਦà©\87 ਹà©\8b।\n\n1. ਸà©\88ੱà¨\9fਿੰà¨\97ਸ > à¨\97à©\87à¨\85ਰ à¨\9cਾਣà¨\95ਾਰà©\80 ਤà©\87 à¨\9cਾà¨\89।\n2. USB ਡà©\80ਬà¨\97ਿੰà¨\97 ਦਾ ਚੋਣ ਕਰੋ।\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 "ਤà©\81ਸà©\80à¨\82 ਹà©\87ਠਾà¨\82 ਦਿੱਤà©\87 à¨\97à¨\8f à¨\9aਰਣਾà¨\82 ਦਾ ਪਾਲਨ à¨\95ਰਦà©\87 ਹà©\8bà¨\8f ਸà©\81ਰੱà¨\96ਿà¨\86 à¨\9cਾਣà¨\95ਾਰà©\80 ਦà©\87 ਬਾਰà©\87 ਵਿੱà¨\9a ਸà©\82à¨\9aਨਾਵਾà¨\82 ਦà©\80 à¨\9cਾà¨\82à¨\9a à¨\95ਰ ਸà¨\95ਦà©\87 ਹà©\8b।\n\n1. ਸà©\88ੱà¨\9fਿੰà¨\97ਸ > à¨\97à©\87à¨\85ਰ à¨\9cਾਣà¨\95ਾਰà©\80 ਤà©\87 à¨\9cਾà¨\89।\n2. USB ਡà©\80ਬà¨\97ਿੰà¨\97 ਦà©\80 ਚੋਣ ਕਰੋ।\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 ਤੇ ਸੈੱਟ ਹੈ।"
msgid "IDS_COM_POP_PROCESSING"
msgstr "ਪ੍ਰਕਿਰਿਆ ਹੋ ਰਹੀ ਹੈ..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ਦ੍ਰਿਸ਼ਮਾਨ ਬਣਾਉ"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ਟੈਕਸਟ ਇਨਪੁਟ"
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"
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"
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"
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"
msgstr "Узор"
msgid "IDS_LCKSCN_BODY_PRIVACY_LOCK_ABB"
-msgstr "Ð\97аÑ\89иÑ\82а лиÑ\87. дан."
+msgstr "Ð\91езопаÑ\81ноÑ\81Ñ\82Ñ\8c"
msgid "IDS_LCKSCN_BODY_SEE_PATTERN_ABB"
msgstr "Просм. рис."
msgstr "Часы"
msgid "IDS_ST_BUTTON_GEAR_INFO"
-msgstr "Сведения о Gear"
+msgstr "Сведения"
msgid "IDS_ST_BUTTON_LANGUAGE"
msgstr "Язык"
msgid "IDS_COM_POP_PROCESSING"
msgstr "Обработка..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Отобразить"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Ввод текста"
msgid "IDS_COM_POP_PROCESSING"
msgstr "සකසමින්..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "දෘශ්ය කරන්න"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "පෙළ ආදානය"
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"
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"
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"
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"
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."
msgstr "ரோஸ்மெரி"
msgid "IDS_GALLERY_TPOP_HOME_BACKGROUND_SET"
-msgstr "முகப்பு பின்னணியை அமைக்கவும்."
-
+msgstr "முகப்பு பின்னணி அமைக்கப்பட்டது."
+
msgid "IDS_LCKSCN_HEADER_PIN"
msgstr "PIN"
msgid "IDS_COM_POP_PROCESSING"
msgstr "செயலில்..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "புலப்பட செய்க"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "உரை உள்ளீடு"
msgid "IDS_COM_POP_PROCESSING"
msgstr "ప్రాసెస్ చేస్తోంది..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "కనిపించేలా చేయి"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "టెక్స్ట్ ఇన్పుట్"
msgid "IDS_COM_POP_PROCESSING"
msgstr "ดำเนินการ..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "ให้มองเห็น"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "การใส่ตัวอักษร"
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"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "Обробка..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "Зроб.видимим"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "Введ. тексту"
msgid "IDS_COM_POP_PROCESSING"
msgstr "پروسیسنگ"
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "مرئی بنائیں"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "ٹیکسٹ ان پٹ"
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"
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"
msgid "IDS_COM_POP_PROCESSING"
msgstr "处理中..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "显示"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "文本输入"
msgid "IDS_COM_POP_PROCESSING"
msgstr "正在處理..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "使可被搜尋"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "文字輸入"
msgid "IDS_COM_POP_PROCESSING"
msgstr "正在處理..."
+
+msgid "IDS_ST_MBODY_MAKE_VISIBLE_ABB"
+msgstr "設為可被搜尋"
+
+msgid "IDS_ST_MBODY_TEXT_INPUT_ABB"
+msgstr "文字輸入"
/*
- * 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
*
/*
- * 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
*
* Author: min-hoyun
*/
+#include <feedback.h>
+
#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 }
};
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;
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)
{
}
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()
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)
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)
}
}
-#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!!");
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();
}
}
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()
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 )
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);
}
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");
+ }
}
}
{
DBG("Setting - update_visibility_item_update");
- _bt_genlist_update();
+ _update_visibility_view();
+ //_bt_genlist_update();
}
}
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
}
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!!");
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()
}
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);
}
return strdup(buf);
}
-
+#if 0
static Evas_Object * _get_emtpy_layout(Evas_Object * parent)
{
if( parent == NULL )
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 )
{
{
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)
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);
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;
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);
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,
}
elm_genlist_item_class_free(itc);
elm_genlist_item_class_free(itc2);
+ elm_genlist_item_class_free(itc3);
bt_genlist = genlist;
/*
- * 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 <vconf.h>
#include <vconf-keys.h>
#include <unicode/ucal.h>
#include <unicode/ucol.h>
#include <package-manager.h>
#include <pkgmgr-info.h>
+#include <feedback.h>
#include "setting-clock.h"
#include "util.h"
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;
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) {
}
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;
}
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;
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);
}
{
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)
prev_x = 0;
touch_mode = NONE;
+ feedback_play(FEEDBACK_PATTERN_TOUCH_TAP);
+
// set gb vconf
if(_set_clock_type(pkgid))
{
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;
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);
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;
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;
{
elm_radio_value_set(radio_main, is_alert_mode_type);
}
+#endif
index++;
}
return radio;
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);
/*
- * 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
*
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
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);
}
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);
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);
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)");
/*
- * 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
*
#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[] = {
"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"
};
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();
}
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);
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 )
return;
}
+ if( ad->MENU_TYPE == SETTING_LANGUAGE )
+ {
+ DBG("Already language screen enter:clear");
+ return;
+ }
+
if( is_connected_GM() )
{
DBG("Setting - language can not change!!");
return;
}
+ ad->MENU_TYPE = SETTING_LANGUAGE;
+
_initialize_language(ad);
_set_launguage_update_cb(_update_menu_text_when_lang_changed);
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;
}
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, "<font color=#515151>%s</font>",
_(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, "<font color=#515151>%s</font>", 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());
}
}
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;
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)
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);
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);
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)
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);
}
char new_name[256];
int i=0;
int count = 0;
- while(*pos != '\0')
+ while( pos && *pos != '\0')
{
if (*pos == ' ')
{
if( !strcmp(part, "elm.text") )
{
+ #if 0
if(id->index == 0) {
snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_DEFAULT_FONT"));
} else {
- if (!strcmp(id->font_name, "Choco cooky")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_LCKSCN_BODY_CHOCO_COOKY_M_FONT"));
- } else if (!strcmp(id->font_name, "Cool jazz")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_COOL_JAZZ"));
- } else if (!strcmp(id->font_name, "Rosemary")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_FONTSTYLE_ROSEMARY"));
- } else if (!strcmp(id->font_name, "Tinkerbell")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_MBODY_TINKERBELL"));
- } else if (!strcmp(id->font_name, "Applemint")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_RH_BUTTON2_APPLEMINT_M_FONT"));
- } else if (!strcmp(id->font_name, "Kaiti")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_KAITI_M_FONT"));
- } else if (!strcmp(id->font_name, "POP")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_POP_JPN_DCM"));
- } else if (!strcmp(id->font_name, "UDMincho")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_UDMINCHO_JPN"));
- } else if (!strcmp(id->font_name, "UDRGothic")) {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_UDRGOTHICM_JPN"));
- } else {
- snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, id->font_name);
- }
+ #endif
+
+ if (!strcmp(id->font_name, "Choco cooky")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_LCKSCN_BODY_CHOCO_COOKY_M_FONT"));
+ } else if (!strcmp(id->font_name, "Cool jazz")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_COOL_JAZZ"));
+ } else if (!strcmp(id->font_name, "Rosemary")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_FONTSTYLE_ROSEMARY"));
+ } else if (!strcmp(id->font_name, "Tinkerbell")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_MBODY_TINKERBELL"));
+ } else if (!strcmp(id->font_name, "Applemint")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_RH_BUTTON2_APPLEMINT_M_FONT"));
+ } else if (!strcmp(id->font_name, "Kaiti")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_KAITI_M_FONT"));
+ } else if (!strcmp(id->font_name, "POP")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_POP_JPN_DCM"));
+ } else if (!strcmp(id->font_name, "UDMincho")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_UDMINCHO_JPN"));
+ } else if (!strcmp(id->font_name, "UDRGothic")) {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, _("IDS_ST_BODY_UDRGOTHICM_JPN"));
+ } else {
+ snprintf(buf, sizeof(buf)-1, "<font=%s>%s</font>", new_name, id->font_name);
+ }
+#if 0
}
+#endif
}
DBG("font = %s", buf);
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);
}
}
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;
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;
}
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)
{
//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);
font_timer = NULL;
+ if( font_size_item )
+ {
+ elm_genlist_item_update(font_size_item);
+ }
+
return ECORE_CALLBACK_CANCEL;
}
//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);
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)
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;
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()
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);
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);
}
}
}
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;
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;
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,
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)
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)
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");
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 )
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
/*
- * 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
*
/*
- * 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 <app_manager.h>
#include <vconf.h>
#include <pkgmgr-info.h>
#include <media_content.h>
-#include <media_info.h>
+//#include <media_info_comm_feature.h>
#include <feedback.h>
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[] = {
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)
{
}
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);
}
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;
}
{
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"));
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;
}
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;
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;
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;
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;
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);
if( toast ) {
_show_toast(temp_ad, toast);
}
+
} else
{
DBG("Setting - wallpaper path is wrong!!");
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);
}
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)
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);
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;
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){
}
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:
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){
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);
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 */
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);
}
/*
- * 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
*
#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 },
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, "<font_size=34>%s</font_size>", safety_str);
char *txt = strdup(buf);
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();
/*
- * 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
*
#include <unicode/udatpg.h>
#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;
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*) )
void _clear_g_lang_menu_items()
{
+ DBG("_clear_g_lang_menu_items");
+
int i;
for(i = 0; i < LANGUAGE_ITEM_COUNT; i++ )
{
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;
_clear_g_lang_menu_items();
+ unregister_vconf_changing(VCONFKEY_WMS_WMANAGER_CONNECTED, change_language_enabling);
+
ad->MENU_TYPE = SETTING_DISPLAY;
}
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)
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);
Evas_Object* _create_lang_list(void* data)
{
+ DBG("_create_lang_list:clear");
+
appdata *ad = data;
if( ad == NULL )
{
}
}
}
+
+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;
+}
/*
- * 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
*
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++)
{
/*
- * 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
/*
- * 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
*
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) {
return;
}
- if (result == SERVICE_RESULT_SUCCEEDED) {
+ if (result == APP_CONTROL_RESULT_SUCCEEDED) {
_set_lock_type_value(1);
elm_naviframe_item_pop(ad->nf);
}
}
-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) {
return;
}
- if (result == SERVICE_RESULT_SUCCEEDED) {
+ if (result == APP_CONTROL_RESULT_SUCCEEDED) {
_create_privacy_pattern_list(ad);
}
}
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)
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);
}
}
/*
- * 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"
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);
}
/*
- * 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
*
/*
- * 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
*
/*
- * 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 <feedback.h>
#include <sys/types.h>
#include <dirent.h>
}
}
-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;
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);
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);
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);
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);
}
}
+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;
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;
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,
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);
//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)
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);
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;
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;
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);
--- /dev/null
+/*
+ * setting-theme.c
+ *
+ * Created on: Aug 7, 2014
+ * Author: min-hoyun
+ */
+
+#include <efl_assist.h>
+#include <feedback.h>
+
+#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");
+ }
+}
/*
- * 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 <vconf.h>
#include <vconf-keys.h>
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 )
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
{
}
}
-#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();
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( )
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);
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,
// 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;
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 )
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 )
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 )
/*
- * 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 <dlog.h>
#include <Ecore_X.h> /* ecore_x_window_size_get */
#include <vconf-keys.h>
#include <fcntl.h>
#include <appcore-efl.h>
+#include <efl_assist.h>
#include "setting-sound.h"
#include "setting-volume.h"
#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
#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 }
};
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);
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)
{
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);
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");
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);
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;
if(ad->MENU_TYPE == SETTING_BLUETOOTH)
{
clear_bt_resource();
+ ad->MENU_TYPE = SETTING_MAIN;
}
else if(ad->MENU_TYPE == SETTING_VOLUME_2_DEPTH)
{
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);
/* 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)
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")) {
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 {
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;
/*
- * 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 <stdio.h>
/*
- * 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"
/*
- * 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;
/*
- * 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 <bluetooth.h>
#include <vconf-keys.h>
#include <vconf.h>
+#include "setting_data_vconf.h"
#include "setting_indicator_util.h"
void indicator_vconf_changed_cb(keynode_t *node, void *data)
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);
}
-
-
/*
- * 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 <string.h>
#include "setting_view_toast.h"
/*
- * 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
*