--- /dev/null
+# Target name and AppID
+## TODO : set application name and PKG_ID
+SET(this_target Clock)
+SET(PKG_ID PhYwYqDa1I)
+
+# include directory
+INCLUDE_DIRECTORIES(
+ /usr/include/osp
+ inc
+ )
+
+# Source files
+FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
+
+# Create executable
+SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
+ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
+
+# Set link libraries and link options
+## TODO : add more link libraries and options
+TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-media osp-image osp-telephony pthread)
+TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
+TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-media osp-image osp-telephony osp-shell pthread)
+
+# Copy info, data, res, and icons directories
+INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKG_ID}/bin)
+
+# Copy resource
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKG_ID}/info)
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKG_ID})
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKG_ID})
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data DESTINATION ../usr/apps/${PKG_ID})
+
+
--- /dev/null
+Flora License
+
+Version 1.1, April, 2013
+
+http://floralicense.org/license/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction,
+and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by
+the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and
+all other entities that control, are controlled by, or are
+under common control with that entity. For the purposes of
+this definition, "control" means (i) the power, direct or indirect,
+to cause the direction or management of such entity,
+whether by contract or otherwise, or (ii) ownership of fifty percent (50%)
+or more of the outstanding shares, or (iii) beneficial ownership of
+such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity
+exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.
+
+"Object" form shall mean any form resulting from mechanical
+transformation or translation of a Source form, including but
+not limited to compiled object code, generated documentation,
+and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form,
+made available under the License, as indicated by a copyright notice
+that is included in or attached to the work (an example is provided
+in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form,
+that is based on (or derived from) the Work and for which the editorial
+revisions, annotations, elaborations, or other modifications represent,
+as a whole, an original work of authorship. For the purposes of this License,
+Derivative Works shall not include works that remain separable from,
+or merely link (or bind by name) to the interfaces of, the Work and
+Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original
+version of the Work and any modifications or additions to that Work or
+Derivative Works thereof, that is intentionally submitted to Licensor
+for inclusion in the Work by the copyright owner or by an individual or
+Legal Entity authorized to submit on behalf of the copyright owner.
+For the purposes of this definition, "submitted" means any form of
+electronic, verbal, or written communication sent to the Licensor or
+its representatives, including but not limited to communication on
+electronic mailing lists, source code control systems, and issue
+tracking systems that are managed by, or on behalf of, the Licensor
+for the purpose of discussing and improving the Work, but excluding
+communication that is conspicuously marked or otherwise designated
+in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity
+on behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+"Tizen Certified Platform" shall mean a software platform that complies
+with the standards set forth in the Tizen Compliance Specification
+and passes the Tizen Compliance Tests as defined from time to time
+by the Tizen Technical Steering Group and certified by the Tizen
+Association or its designated agent.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of,
+publicly display, publicly perform, sublicense, and distribute the
+Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made,
+use, offer to sell, sell, import, and otherwise transfer the Work
+solely as incorporated into a Tizen Certified Platform, where such
+license applies only to those patent claims licensable by such
+Contributor that are necessarily infringed by their Contribution(s)
+alone or by combination of their Contribution(s) with the Work solely
+as incorporated into a Tizen Certified Platform to which such
+Contribution(s) was submitted. If You institute patent litigation
+against any entity (including a cross-claim or counterclaim
+in a lawsuit) alleging that the Work or a Contribution incorporated
+within the Work constitutes direct or contributory patent infringement,
+then any patent licenses granted to You under this License for that
+Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+Work or Derivative Works thereof pursuant to the copyright license
+above, in any medium, with or without modifications, and in Source or
+Object form, provided that You meet the following conditions:
+
+ 1. You must give any other recipients of the Work or Derivative Works
+ a copy of this License; and
+ 2. You must cause any modified files to carry prominent notices stating
+ that You changed the files; and
+ 3. You must retain, in the Source form of any Derivative Works that
+ You distribute, all copyright, patent, trademark, and attribution
+ notices from the Source form of the Work, excluding those notices
+ that do not pertain to any part of the Derivative Works; and
+ 4. If the Work includes a "NOTICE" text file as part of its distribution,
+ then any Derivative Works that You distribute must include a readable
+ copy of the attribution notices contained within such NOTICE file,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works, in at least one of the following places:
+ within a NOTICE text file distributed as part of the Derivative Works;
+ within the Source form or documentation, if provided along with the
+ Derivative Works; or, within a display generated by the Derivative Works,
+ if and wherever such third-party notices normally appear.
+ The contents of the NOTICE file are for informational purposes only
+ and do not modify the License.
+
+You may add Your own attribution notices within Derivative Works
+that You distribute, alongside or as an addendum to the NOTICE text
+from the Work, provided that such additional attribution notices
+cannot be construed as modifying the License. You may add Your own
+copyright statement to Your modifications and may provide additional or
+different license terms and conditions for use, reproduction, or
+distribution of Your modifications, or for any such Derivative Works
+as a whole, provided Your use, reproduction, and distribution of
+the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+any Contribution intentionally submitted for inclusion in the Work
+by You to the Licensor shall be under the terms and conditions of
+this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify
+the terms of any separate license agreement you may have executed
+with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+names, trademarks, service marks, or product names of the Licensor,
+except as required for reasonable and customary use in describing the
+origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+agreed to in writing, Licensor provides the Work (and each
+Contributor provides its Contributions) on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied, including, without limitation, any warranties or conditions
+of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+PARTICULAR PURPOSE. You are solely responsible for determining the
+appropriateness of using or redistributing the Work and assume any
+risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+whether in tort (including negligence), contract, or otherwise,
+unless required by applicable law (such as deliberate and grossly
+negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a
+result of this License or out of the use or inability to use the
+Work (including but not limited to damages for loss of goodwill,
+work stoppage, computer failure or malfunction, or any and all
+other commercial damages or losses), even if such Contributor
+has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+the Work or Derivative Works thereof, You may choose to offer,
+and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this
+License. However, in accepting such obligations, You may act only
+on Your own behalf and on Your sole responsibility, not on behalf
+of any other Contributor, and only if You agree to indemnify,
+defend, and hold each Contributor harmless for any liability
+incurred by, or claims asserted against, such Contributor by reason
+of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Flora License to your work
+
+To apply the Flora License to your work, attach the following
+boilerplate notice, with the fields enclosed by brackets "[]"
+replaced with your own identifying information. (Don't include
+the brackets!) The text should be enclosed in the appropriate
+comment syntax for the file format. We also recommend that a
+file or class name and description of purpose be included on the
+same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Flora License, Version 1.1 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://floralicense.org/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.
+
--- /dev/null
+Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
+Except as noted, this software is licensed under Flora License, Version 1.1.
+Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
--- /dev/null
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDC_BUTTON;
+extern const wchar_t* IDC_BUTTON0;
+extern const wchar_t* IDC_BUTTON1;
+extern const wchar_t* IDC_BUTTON2;
+extern const wchar_t* IDC_BUTTON3;
+extern const wchar_t* IDC_BUTTON4;
+extern const wchar_t* IDC_BUTTON5;
+extern const wchar_t* IDC_BUTTON6;
+extern const wchar_t* IDC_BUTTON7;
+extern const wchar_t* IDC_BUTTON8;
+extern const wchar_t* IDC_BUTTON9;
+extern const wchar_t* IDC_BUTTON_CLR;
+extern const wchar_t* IDC_BUTTON_FRI;
+extern const wchar_t* IDC_BUTTON_HOUR;
+extern const wchar_t* IDC_BUTTON_HOURS;
+extern const wchar_t* IDC_BUTTON_HOUR_DISPLAY;
+extern const wchar_t* IDC_BUTTON_MIN;
+extern const wchar_t* IDC_BUTTON_MINUTES;
+extern const wchar_t* IDC_BUTTON_MINUTE_DISPLAY;
+extern const wchar_t* IDC_BUTTON_MON;
+extern const wchar_t* IDC_BUTTON_MORE;
+extern const wchar_t* IDC_BUTTON_RESET;
+extern const wchar_t* IDC_BUTTON_RESTART;
+extern const wchar_t* IDC_BUTTON_SAT;
+extern const wchar_t* IDC_BUTTON_SECONDS;
+extern const wchar_t* IDC_BUTTON_SECOND_DISPLAY;
+extern const wchar_t* IDC_BUTTON_START;
+extern const wchar_t* IDC_BUTTON_STOP;
+extern const wchar_t* IDC_BUTTON_SUN;
+extern const wchar_t* IDC_BUTTON_THU;
+extern const wchar_t* IDC_BUTTON_TOGGLE;
+extern const wchar_t* IDC_BUTTON_TUE;
+extern const wchar_t* IDC_BUTTON_WED;
+extern const wchar_t* IDC_CITY_LISTVIEW;
+extern const wchar_t* IDC_CITY_SEARCHBAR;
+extern const wchar_t* IDC_EDITFIELD1;
+extern const wchar_t* IDC_EDITFIELD2;
+extern const wchar_t* IDC_EDITFIELD3;
+extern const wchar_t* IDC_GROUPEDLISTVIEW1;
+extern const wchar_t* IDC_INPUT_PANEL;
+extern const wchar_t* IDC_LABEL;
+extern const wchar_t* IDC_LABEL1;
+extern const wchar_t* IDC_LABEL2;
+extern const wchar_t* IDC_LABEL3;
+extern const wchar_t* IDC_LABEL4;
+extern const wchar_t* IDC_LABEL9;
+extern const wchar_t* IDC_LABEL_AM;
+extern const wchar_t* IDC_LABEL_PM;
+extern const wchar_t* IDC_LABEL_TIMER;
+extern const wchar_t* IDC_LABEL_TITLE;
+extern const wchar_t* IDC_LISTVIEW1;
+extern const wchar_t* IDC_LISTVIEW_ALARM;
+extern const wchar_t* IDC_LISTVIEW_WORLD_CLOCK;
+extern const wchar_t* IDC_PANEL;
+extern const wchar_t* IDC_PANEL1;
+extern const wchar_t* IDC_PANEL_DAYS;
+extern const wchar_t* IDC_PANEL_EDITTIME;
+extern const wchar_t* IDC_PANEL_LIST;
+extern const wchar_t* IDC_PANEL_TIMER_STARTED;
+extern const wchar_t* IDC_POPUP_LIST;
+extern const wchar_t* IDC_SCROLLPANEL1;
+extern const wchar_t* IDC_SELECT_ALL;
+extern const wchar_t* IDC_SETTING_LIST;
+extern const wchar_t* IDC_SLIDER_VOLUME;
+extern const wchar_t* IDC_SNOOZE_ARROW_LABEL1;
+extern const wchar_t* IDC_SNOOZE_ARROW_LABEL2;
+extern const wchar_t* IDC_SNOOZE_ARROW_LABEL3;
+extern const wchar_t* IDC_SNOOZE_LABEL;
+extern const wchar_t* IDC_SNOOZE_PANEL;
+extern const wchar_t* IDC_STOP_ARROW_LABEL1;
+extern const wchar_t* IDC_STOP_ARROW_LABEL2;
+extern const wchar_t* IDC_STOP_ARROW_LABEL3;
+extern const wchar_t* IDC_STOP_LABEL;
+extern const wchar_t* IDC_STOP_PANEL;
+extern const wchar_t* IDC_TIMER_PANEL;
+extern const wchar_t* IDL_ALARM_EDITOR_FORM;
+extern const wchar_t* IDL_ALARM_LIST;
+extern const wchar_t* IDL_ALARM_RINGING_FORM;
+extern const wchar_t* IDL_ALARM_RINGING_LOCK_FORM;
+extern const wchar_t* IDL_ALARM_RINGING_LOCK_PANEL;
+extern const wchar_t* IDL_CITY_LIST;
+extern const wchar_t* IDL_DELETE_ALARM_LIST;
+extern const wchar_t* IDL_DELETE_WORLD_CLOCK_LIST;
+extern const wchar_t* IDL_DST_POPUP;
+extern const wchar_t* IDL_REORDER_WORLD_CLOCK_LIST;
+extern const wchar_t* IDL_SORT_BY;
+extern const wchar_t* IDL_STOP_WATCH;
+extern const wchar_t* IDL_TIMER;
+extern const wchar_t* IDL_TIMER_RINGING_FORM;
+extern const wchar_t* IDL_TIMER_RINGING_LOCK_FORM;
+extern const wchar_t* IDL_WORLD_CLOCK_LIST;
+extern const wchar_t* IDS_ALM_BODY_10MINS;
+extern const wchar_t* IDS_ALM_BODY_10TIMES;
+extern const wchar_t* IDS_ALM_BODY_1_ALARM_SELECTED;
+extern const wchar_t* IDS_ALM_BODY_3MINS;
+extern const wchar_t* IDS_ALM_BODY_3TIMES;
+extern const wchar_t* IDS_ALM_BODY_5MINS;
+extern const wchar_t* IDS_ALM_BODY_5TIMES;
+extern const wchar_t* IDS_ALM_BODY_ALERTTYEP_MELODY;
+extern const wchar_t* IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION;
+extern const wchar_t* IDS_ALM_BODY_ALERTTYEP_VIBRATION;
+extern const wchar_t* IDS_ALM_BODY_EVERYDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_FRIDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_MONDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_SATURDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_SUNDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_THURSDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_TUESDAY;
+extern const wchar_t* IDS_ALM_BODY_EVERY_WEDNESDAY;
+extern const wchar_t* IDS_ALM_BODY_MELODY;
+extern const wchar_t* IDS_ALM_BODY_NAME;
+extern const wchar_t* IDS_ALM_BODY_NO_ALARMS;
+extern const wchar_t* IDS_ALM_BODY_PD_ALARMS_SELECTED;
+extern const wchar_t* IDS_ALM_BODY_REPEAT;
+extern const wchar_t* IDS_ALM_BODY_SNOOZE;
+extern const wchar_t* IDS_ALM_BODY_SNOOZE_DURATION;
+extern const wchar_t* IDS_ALM_BODY_SNOOZE_REPEAT;
+extern const wchar_t* IDS_ALM_BODY_TIME;
+extern const wchar_t* IDS_ALM_BODY_TONE;
+extern const wchar_t* IDS_ALM_BODY_TYPE;
+extern const wchar_t* IDS_ALM_HEADER_SELECT_ALARMS;
+extern const wchar_t* IDS_ALM_HEADER_TYPE;
+extern const wchar_t* IDS_ALM_OPT_SORT_BY;
+extern const wchar_t* IDS_ALM_SK3_SAVE;
+extern const wchar_t* IDS_ALM_SK_CANCEL;
+extern const wchar_t* IDS_ALM_SK_DELETE;
+extern const wchar_t* IDS_ALM_SK_REMOVE;
+extern const wchar_t* IDS_BODY_WORLD_CLOCK_EXIST;
+extern const wchar_t* IDS_CLOCK_BODY_PD_TIMES;
+extern const wchar_t* IDS_COM_BODY_ALARM;
+extern const wchar_t* IDS_COM_BODY_AM;
+extern const wchar_t* IDS_COM_BODY_APR;
+extern const wchar_t* IDS_COM_BODY_AUG;
+extern const wchar_t* IDS_COM_BODY_DEC;
+extern const wchar_t* IDS_COM_BODY_FEB;
+extern const wchar_t* IDS_COM_BODY_JAN;
+extern const wchar_t* IDS_COM_BODY_JUL;
+extern const wchar_t* IDS_COM_BODY_JULY;
+extern const wchar_t* IDS_COM_BODY_JUN;
+extern const wchar_t* IDS_COM_BODY_JUNE;
+extern const wchar_t* IDS_COM_BODY_MAR;
+extern const wchar_t* IDS_COM_BODY_MAY;
+extern const wchar_t* IDS_COM_BODY_MORE;
+extern const wchar_t* IDS_COM_BODY_NOV;
+extern const wchar_t* IDS_COM_BODY_NO_ITEMS;
+extern const wchar_t* IDS_COM_BODY_NO_SEARCH_RESULTS;
+extern const wchar_t* IDS_COM_BODY_OCT;
+extern const wchar_t* IDS_COM_BODY_PD_SELECTED;
+extern const wchar_t* IDS_COM_BODY_SEARCH;
+extern const wchar_t* IDS_COM_BODY_SELECT_ALL;
+extern const wchar_t* IDS_COM_BODY_SEP;
+extern const wchar_t* IDS_COM_BODY_STOPWATCH;
+extern const wchar_t* IDS_COM_BODY_TIMER;
+extern const wchar_t* IDS_COM_BODY_WORLD_CLOCK;
+extern const wchar_t* IDS_COM_BUTTON_RECENT;
+extern const wchar_t* IDS_COM_POP_DELETED;
+extern const wchar_t* IDS_COM_POP_PM;
+extern const wchar_t* IDS_COM_SK_ADD;
+extern const wchar_t* IDS_COM_SK_ADD_CITY;
+extern const wchar_t* IDS_COM_SK_CREATE_ALARM;
+extern const wchar_t* IDS_COM_SK_NEW;
+extern const wchar_t* IDS_MAX_CHARACTER_LIMIT_MESSAGE;
+extern const wchar_t* IDS_MEMORY_FULL;
+extern const wchar_t* IDS_MERMORY_FULL;
+extern const wchar_t* IDS_NOTHING_SELECTED;
+extern const wchar_t* IDS_NO_ITEMS;
+extern const wchar_t* IDS_STRING1;
+extern const wchar_t* IDS_SWT_BUTTON_LAP;
+extern const wchar_t* IDS_SWT_BUTTON_RESET;
+extern const wchar_t* IDS_SWT_BUTTON_RESTART;
+extern const wchar_t* IDS_TMR_BODY_HOUR;
+extern const wchar_t* IDS_TMR_BODY_MIN;
+extern const wchar_t* IDS_TMR_BODY_MIN1;
+extern const wchar_t* IDS_TMR_BODY_SEC;
+extern const wchar_t* IDS_TMR_BODY_STOP_RINGING;
+extern const wchar_t* IDS_TMR_BODY_TIME_OUT;
+extern const wchar_t* IDS_TMR_BODY_TIME_OUT_ALARM;
+extern const wchar_t* IDS_TMR_POP_TIME_IS_UP;
+extern const wchar_t* IDS_TMR_SK3_RESTART;
+extern const wchar_t* IDS_TMR_SK3_STOP;
+extern const wchar_t* IDS_TMR_SK_RESET;
+extern const wchar_t* IDS_TMR_SK_START;
+extern const wchar_t* IDS_WCL_BODY_CANCEL_DST;
+extern const wchar_t* IDS_WCL_BODY_TIME_ZONE;
+extern const wchar_t* IDS_WCL_HEADER_SELECT_TIME_ZONE;
+extern const wchar_t* IDS_WCL_OPT_DST_SETTINGS;
+extern const wchar_t* IDS_WCL_OPT_REORDER;
+extern const wchar_t* IDS_WCL_POP_1_CITY_SELECTED;
+extern const wchar_t* IDS_WCL_POP_PD_CITIES_SELECTED;
+extern const wchar_t* IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST;
+extern const wchar_t* IDS_WCL_REORDER;
+extern const wchar_t* IDS_WCL_SK_BY_NAME;
+extern const wchar_t* IDS_WCL_SK_DONE;
+extern const wchar_t* IDS_WCL_SK_EDIT;
+extern const wchar_t* IDS_WCL_TAB_TIME;
+
+#endif // _APP_RESOURCE_ID_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarm.h
+ * @brief This is the header file contains the declarations of the %Alarm class.
+ *
+ */
+#ifndef _CLK_ALARM_H_
+#define _CLK_ALARM_H_
+
+
+/**
+ * @enum AlarmType
+ *
+ * AlarmType enum is used to define type of alarm
+ *
+ */
+enum type
+{
+ ALARM_TYPE_MELODY = 0,
+ ALARM_TYPE_VIBRATION,
+ ALARM_TYPE_MELODY_AND_VIBRATION
+};
+
+/**
+ * @class Alarm
+ * @brief This is a model class which contains all the properties of Alarm class
+ * and the methods to get and set the values for those properties
+ */
+class AlarmData
+: public Tizen::Base::Object
+{
+public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmData(void);
+
+ /**
+ *@brief Initialises the instance the class Alarm with the specified parameter
+ */
+ AlarmData(const AlarmData& alarm);
+
+ /**
+ *@brief Default destructor
+ */
+ ~AlarmData(void);
+
+ /**
+ *@brief "=" operator overloading
+ */
+ AlarmData& operator =(const AlarmData& pAlarm);
+
+ /**
+ * This function gets the created time of all the alarms
+ *
+ * @return DateTime
+ * @param No parameter
+ */
+ Tizen::Base::DateTime GetAlarmCreatedtime(void) const;
+
+ /**
+ * This function gets the alarm id
+ *
+ * @return An Integer
+ * @param No parameter
+ */
+ int GetAlarmId(void) const;
+
+ /**
+ * This function gets the alarm name
+ *
+ * @return A String
+ * @param No parameter
+ */
+ Tizen::Base::String GetAlarmName(void) const;
+
+ /**
+ * This function gets the alarm on state
+ *
+ * @return An Integer
+ * @param No parameter
+ */
+ int GetAlarmOnState(void) const;
+
+ /**
+ * This function gets the alarm time
+ *
+ * @return DateTime
+ * @param No parameter
+ */
+ Tizen::Base::DateTime GetAlarmTime(void) const;
+
+ /**
+ * This function gets the last ringing time of all the alarms
+ *
+ * @return DateTime
+ * @param No parameter
+ */
+ Tizen::Base::DateTime GetLastRingingTime(void) const;
+
+ /**
+ * This function gets the next ringing time of all the alarms
+ *
+ * @return DateTime
+ * @param No parameter
+ */
+ Tizen::Base::DateTime GetNextRingingTime(void);
+
+ /**
+ * This function gets the state of repetition on friday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEveryFridayFlag(void) const;
+
+ /**
+ * This function gets the state of repetition on monday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEveryMondayFlag(void) const;
+
+ /**
+ * This function gets the state of repetition on saturday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEverySaturdayFlag(void) const;
+
+ /**
+ * This function gets the state of repetition on sunday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEverySundayFlag(void) const;
+
+ /**
+ * This function gets the state of repetition on thursday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEveryThursdayFlag(void) const;
+
+ /**
+ * This function gets the state of repetition on tuesday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEveryTuesdayFlag(void) const;
+
+ /**
+ * This function gets the state of repetition on wednesday for the alarm object
+ *
+ * @return bool type, true if repetition is set else false
+ * @param No parameter
+ */
+ bool GetRepeatEveryWednesdayFlag(void) const;
+
+ /**
+ * This function gets the flags for the alarm to be stored in order of the days(SMTWTFS)
+ *
+ * @return A String
+ * @param No parameter
+ */
+ Tizen::Base::String GetRepeatFlags(void);
+
+ /**
+ * This function gets the Ring tone file path for the alarm object
+ *
+ * @return A String
+ * @param No parameter
+ */
+ Tizen::Base::String GetRingTone(void) const;
+
+ /**
+ * This function gets the Ring type for the alarm object
+ *
+ * @return A String
+ * @param No parameter
+ */
+ type GetRingType(void) const;
+
+ /**
+ * This function gets the ringing volume for the alarm object
+ *
+ * @return An Integer
+ * @param No parameter
+ */
+ int GetRingVolume(void) const;
+
+ /**
+ * This function gets the duration of snooze for the alarm object
+ *
+ * @return An Integer
+ * @param No parameter
+ */
+ int GetSnoozeDuration(void) const;
+
+ /**
+ * This function gets the state of snooze for the alarm object
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool GetSnoozeOn(void) const;
+
+ /**
+ * This function gets the repeat count of snooze for the alarm object
+ *
+ * @return An Integer
+ * @param No parameter
+ */
+ int GetSnoozeRepeat(void) const;
+
+ /**
+ * This function gets the present snooze repeat count of the alarm
+ *
+ * @return Integer
+ * @param No parameter
+ */
+ int GetSnoozeRepeatCount(void) const;
+
+ /**
+ * This function sets the created time for the alarm object
+ *
+ * @return No return type
+ * @param alarmCreatedTime The last ringing time for the Alarm object
+ */
+ void SetAlarmCreatedTime(const Tizen::Base::DateTime& alarmCreatedTime);
+
+ /**
+ * This function sets the alarmId for the alarm object
+ *
+ * @return No return type
+ * @param alarmId The ID for the alarm object
+ */
+ void SetAlarmId(const int& alarmId);
+
+ /**
+ * This function sets the alarmName for the alarm object
+ *
+ * @return No return type
+ * @param alarmName The alarmName for the alarm object
+ */
+ void SetAlarmName(const Tizen::Base::String& alarmName);
+
+ /**
+ * This function sets the alarmOnState for the alarm object
+ *
+ * @return No return type
+ * @param alarmId The ID for the alarm object
+ */
+ void SetAlarmOnState(const int& alarmOnState);
+
+ /**
+ * This function sets the createdTime for the alarm object
+ *
+ * @return No return type
+ * @param alarmTime The time for the Alarm
+ */
+ void SetAlarmTime(const Tizen::Base::DateTime& alarmTime);
+
+ /**
+ * This function sets the last ringing time for the alarm object
+ *
+ * @return No return type
+ * @param lastRingingTime The last ringing time for the Alarm object
+ */
+ void SetLastRingingTime(const Tizen::Base::DateTime& lastRingingTime);
+
+ /**
+ * This function sets the flags for the alarm to be stored on friday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on friday else false
+ */
+ void SetRepeatedEveryFriday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored on monday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on monday else false
+ */
+ void SetRepeatedEveryMonday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored on sataurday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on sataurday else false
+ */
+ void SetRepeatedEverySaturday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored on sunday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on sunday else false
+ */
+ void SetRepeatedEverySunday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored on thursday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on thursday else false
+ */
+ void SetRepeatedEveryThursday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored on tuesday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on tuesday else false
+ */
+ void SetRepeatedEveryTuesday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored on wednesday
+ *
+ * @return No return type
+ * @param repeat True if alarm to be stored on wednesday else false
+ */
+ void SetRepeatedEveryWednesday(const bool repeat);
+
+ /**
+ * This function sets the flags for the alarm to be stored in order of the days(SMTWTFS)
+ *
+ * @return No return type
+ * @param repeat The alarm to be stored in order of the days(SMTWTFS)
+ */
+ void SetRepeatedFlags(const Tizen::Base::String& repeat);
+
+ /**
+ * This function sets the ring tone file path for the alarm object
+ *
+ * @return No return type
+ * @param path The ring tone file path for the alarm object
+ */
+ void SetRingTone(const Tizen::Base::String& path);
+
+ /**
+ * This function sets the ring type for the alarm object
+ *
+ * @return No return type
+ * @param ringType The volume for the alarm object
+ */
+ void SetRingType(const type& ringType);
+
+ /**
+ * This function sets the ring volume for the alarm object
+ *
+ * @return No return type
+ * @param volume The volume for the alarm object
+ */
+ void SetRingVolume(const int& volume);
+
+ /**
+ * This function sets the duration of snooze time for the alarm object
+ *
+ * @return No return type
+ * @param duration The duration of snooze time
+ */
+ void SetSnoozeDuration(const int& duration);
+
+ /**
+ * This function sets the state of snooze for the alarm object
+ *
+ * @return No return type
+ * @param snooze The state for snooze
+ */
+ void SetSnoozeOn(const bool snooze);
+
+ /**
+ * This function sets the repeat count for snooze
+ *
+ * @return No return type
+ * @param repeat The repeat count for snooze
+ */
+ void SetSnoozeRepeat(const int& repeat);
+
+ /**
+ * This function sets the present snooze repeat count
+ *
+ * @return No return type
+ * @param count The present snooze repeat count to be set
+ */
+ void SetSnoozeRepeatCount(const int& count);
+
+private:
+ Tizen::Base::DateTime __alarmCreatedTime;
+ int __alarmId;
+ Tizen::Base::String __alarmName;
+ int __isOn;
+ Tizen::Base::DateTime __lastRingingTime;
+ bool __repeatEveryFriday;
+ bool __repeatEveryMonday;
+ bool __repeatEverySaturday;
+ bool __repeatEverySunday;
+ bool __repeatEveryThursday;
+ bool __repeatEveryTuesday;
+ bool __repeatEveryWednesday;
+ Tizen::Base::String __repeatFlags;
+ Tizen::Base::String __ringTone;
+ type __ringType;
+ int __ringVolume;
+ int __snoozeDuration;
+ bool __snoozeOn;
+ int __snoozeRepeat;
+ int __snoozeRepeatCount;
+ Tizen::Base::DateTime __time;
+
+};
+
+#endif //_CLK_ALARM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmDeleteListForm.h
+ * @brief This is the header file contains the declarations of the %AlarmDeleteListForm class.
+ *
+ */
+
+#ifndef _CLK_ALARM_DELETE_LIST_FORM_H_
+#define _CLK_ALARM_DELETE_LIST_FORM_H_
+
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+class AlarmDeleteListForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::ISettingEventListener
+ {
+ public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmDeleteListForm(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmDeleteListForm(void);
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool Initialize(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+
+ virtual Tizen::Ui::Controls::ListItemBase * CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status){}
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){}
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){}
+
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+ private:
+ bool __isNoAlarmPresent;
+ Tizen::Base::Collection::ArrayList* __pData;
+ Tizen::Ui::Controls::ListView* __pListView; // The GroupedListView which contains the history lists
+ Tizen::Ui::Controls::CheckButton* __pSelectAllCheck;
+ Tizen::Ui::Controls::Label* __pSelectedLabel;
+ int __selectedCount;
+ int __selectedItemCount;
+ Tizen::Base::Collection::ArrayList __selectedItemList;
+ Tizen::Base::Integer* __pSortByValue;
+
+ public:
+ bool is24HourFormat;
+
+};
+
+#endif // _CLK_ALARM_DELETE_LIST_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file clkAlarmEditorForm.h
+ * @brief This is the header file contains the declarations of the %AlarmEditorForm class.
+ *
+ */
+
+#ifndef _CLK_ALARM_EDITOR_FORM_H_
+#define _CLK_ALARM_EDITOR_FORM_H_
+
+#include <FMedia.h>
+#include <FSysIDeviceEventListener.h>
+#include <FSysDeviceManager.h>
+#include <FSystem.h>
+
+class AlarmEditorForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::App::IAppControlResponseListener
+ , public Tizen::Media::IPlayerEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IEditTextFilter
+ , public Tizen::Ui::Controls::IGroupedListViewItemProvider
+ , public Tizen::Ui::Controls::IGroupedListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::Controls::ISliderEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IAdjustmentEventListener
+ , public Tizen::Ui::IClipboardPopupEventListener
+ , public Tizen::Ui::IInputConnectionEventListener
+ , public Tizen::Ui::IInputConnectionProvider
+ , public Tizen::Ui::IKeypadEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::IPropagatedKeyEventListener
+ , public Tizen::Ui::ITextEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::ISettingEventListener
+ , public Tizen::Ui::ITouchEventListener
+ , public Tizen::System::IDeviceEventListener
+ , public Tizen::Ui::IFocusEventListener
+
+ {
+ public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmEditorForm(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmEditorForm(void);
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool Initialize(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IAdjustmentEventListener
+ virtual void OnAdjustmentValueChanged(const Tizen::Ui::Control& source, int adjustment);
+
+ //IAppControlEventListener
+ virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //IOrientationEventListener
+ void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ //ISliderEventListener
+ virtual void OnSliderBarMoved(Tizen::Ui::Controls::Slider& source, int value);
+
+ //ITouchEventListener
+ void OnTouchCanceled(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {};
+ void OnTouchDoublePressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {};
+ void OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo){};
+ void OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo){};
+ void OnTouchLongPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {};
+ void OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ void OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo);
+ void OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+
+ //ListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IGroupedListViewItemProvider
+ Tizen::Ui::Controls::GroupItem* CreateGroupItem(int groupIndex, int itemWidth);
+ Tizen::Ui::Controls::ListItemBase* CreateItem(int groupIndex, int itemIndex, int itemWidth);
+ bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::GroupItem* pItem, int itemWidth);
+
+ //IListViewItemProvider
+ bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+ int GetGroupCount(void);
+ int GetItemCount(int groupIndex);
+
+ //IGroupedListViewItemEventListener
+ void OnGroupedListViewContextItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListContextItemStatus status){};
+ void OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ void OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction){};
+
+ //IKeypadListener
+ virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction){};
+ virtual void OnKeypadClosed(Tizen::Ui::Control& source);
+ virtual void OnKeypadOpened(Tizen::Ui::Control& source);
+ virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
+ virtual void OnKeypadBoundsChanged(Tizen::Ui::Control& source);
+ //IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status){};
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+
+ //ITextEventListener
+ virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+ virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+ // IPlayerEventListener
+ virtual void OnPlayerOpened(result r) {}
+ virtual void OnPlayerEndOfClip(void) {}
+ virtual void OnPlayerBuffering(int percent) {}
+ virtual void OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r) {}
+ virtual void OnPlayerInterrupted(void) {}
+ virtual void OnPlayerReleased(void) {}
+ virtual void OnPlayerSeekCompleted(result r) {}
+
+ //IClipboardPopupEventListener
+ virtual void OnClipboardPopupClosed(const Tizen::Ui::ClipboardItem* pClipboardItem);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnDeviceStateChanged(Tizen::System::DeviceType deviceType, const Tizen::Base::String& state);
+ void StartAudio(void);
+
+ virtual bool ValidatePastedText(const Tizen::Base::String &pastedText, Tizen::Base::String &replacedText);
+
+ virtual void OnFocusGained (const Tizen::Ui::Control &source);
+ virtual void OnFocusLost (const Tizen::Ui::Control &source);
+
+ virtual void OnInputConnectionPanelShowStateChanged(Tizen::Ui::InputConnection& source, Tizen::Ui::InputPanelShowState showState);
+ virtual void OnInputConnectionPanelLanguageChanged(Tizen::Ui::InputConnection& source, Tizen::Locales::LanguageCode language){};
+ virtual void OnInputConnectionPanelBoundsChanged(Tizen::Ui::InputConnection& source, const Tizen::Graphics::Rectangle& bounds);
+ virtual void OnInputConnectionTextPredictionShowStateChanged(Tizen::Ui::InputConnection& source, bool isShown){};
+ virtual void OnInputConnectionTextPredictionBoundsChanged(Tizen::Ui::InputConnection& source, const Tizen::Graphics::Rectangle& bounds){};
+ virtual void OnInputConnectionTextCommitted(Tizen::Ui::InputConnection& source, const Tizen::Base::String& committedText);
+ virtual void OnInputConnectionComposingTextChanged(Tizen::Ui::InputConnection& source, const Tizen::Base::String& preEditText, int cursorPosition){};
+ virtual void DeleteSurroundingText(Tizen::Ui::InputConnection& source, int offset, int chars){};
+ virtual void GetPreviousText(Tizen::Ui::InputConnection& source, Tizen::Base::String& text, int& cursorPosition){};
+
+
+ virtual bool OnKeyPressed(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+ virtual bool OnKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+ virtual bool OnPreviewKeyPressed(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo) {return false;};
+ virtual bool OnPreviewKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo) {return false;};
+
+ result ShowHourKeypad();
+ result HideHourKeypad();
+
+ result ShowMinKeypad();
+ result HideMinKeypad();
+
+ private:
+ /**
+ * This function rearranges all the controls of the form
+ *
+ * @return No return type
+ * @param No parameter
+ */
+ void RearrangeControls(void);
+
+ private:
+ Tizen::Base::String __alarmName;
+ Tizen::Base::String __audioFilePath;
+ Tizen::Base::String __defaultEditFieldValue;
+ Tizen::Base::String __defaultToggleValue;
+ Tizen::Base::Integer* __pDuration;
+ int __fontValue;
+ Tizen::Base::String __hourText;
+ int __inputConnectionHeight;
+ bool __isAppControlCompleted;
+ bool __isPlaying;
+ bool __isSnoozeOn;
+ bool __maxLengthReached;
+ int __modalMsgBoxResult;
+ AlarmData* __pAlarm;
+ Tizen::Ui::Controls::Button* __pBtnDayFri;
+ Tizen::Ui::Controls::Button* __pBtnDayMon;
+ Tizen::Ui::Controls::Button* __pBtnDaySat;
+ Tizen::Ui::Controls::Button* __pBtnDaySun;
+ Tizen::Ui::Controls::Button* __pBtnDayThu;
+ Tizen::Ui::Controls::Button* __pBtnDayTue;
+ Tizen::Ui::Controls::Button* __pBtnDayWed;
+ Tizen::Ui::Controls::Button* __pBtnHourDisplay;
+ Tizen::Ui::Controls::Button* __pBtnMinDisplay;
+ Tizen::Ui::Controls::Button* __pBtnMore;
+ Tizen::Ui::Controls::Button* __pBtnToggle;
+ Tizen::Ui::Controls::EditField* __pEditField;
+ Tizen::Ui::Controls::GroupedListView* __pGroupedListView;
+ Tizen::Ui::InputConnection* __pHourImf;
+ Tizen::Ui::Controls::Label* __pLabelAm;
+ Tizen::Ui::Controls::Label* __pLabelEditfieldTitle;
+ Tizen::Ui::Controls::Label* __pLabelPm;
+ Tizen::Ui::Controls::Label* __pLabelTitle;
+ Tizen::Media::Player* __player;
+ Tizen::Ui::Controls::ListView* __pListView;
+ Tizen::Ui::InputConnection* __pMinImf;
+ Tizen::Ui::Controls::MessageBox __pMsgBox;
+ AlarmData* __pOldAlarm;
+ Tizen::Ui::Controls::Panel* __pPanelDays;
+ Tizen::Ui::Controls::Panel* __pPanelEditTime;
+ Tizen::Ui::Controls::Panel* __pPanelList;
+ Tizen::Ui::Controls::Popup* __pResetPopup;
+ Tizen::Ui::Controls::ScrollPanel* __pScrollPanel;
+ Tizen::Ui::Controls::Slider* __pSlider;
+ Tizen::Base::Integer* __pRepeat;
+ Tizen::Base::String __repeatName;
+ int __selectedIndex;
+ Tizen::Base::Collection::ArrayList __selectedIndexValues;
+ bool __showMessageBox;
+ bool __showRepeat;
+ bool __showType;
+ int __sliderDefaultValue;
+ int __sliderValue;
+ Tizen::Base::Collection::StackT<int> __sliderValues;
+ Tizen::Base::String __snoozeDurationValue;
+ bool __snoozeStatus;
+ int __snoozeValue;
+ int __textLength;
+ int __typeName;
+ Tizen::Base::String __typeNameValue;
+
+ public:
+ bool is24HourFormat;
+ bool isHourClicked;
+ int systemVolume;
+
+ };
+
+#endif // _CLK_ALARM_EDITOR_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmListForm.h
+ * @brief This is the header file contains the declarations of the %AlarmListForm class.
+ *
+ */
+
+#ifndef _CLK_ALARM_LIST_FORM_H_
+#define _CLK_ALARM_LIST_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkAlarm.h"
+#include "ClkSortByPopUp.h"
+
+class AlarmListForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IFormMenuEventListener
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::ISettingEventListener
+ , public ISortByEventListener
+ {
+ public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmListForm(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmListForm(void);
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool Initialize(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+
+ //result OnDraw(void);
+
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ /**
+ * This function is used to add the contextmenu on the footer.
+ *
+ * @return result type
+ * @param pt Point type
+ */
+ result InitContextMenu(const Tizen::Graphics::Point& point);
+
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ virtual void OnFormMenuRequested(Tizen::Ui::Controls::Form& source);
+
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ virtual void OnSortByPopUpItemSelected(SortBy sortby);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+
+ private:
+ SortBy __alarmSortbyType;
+ AlarmData* __pAlarm;
+ Tizen::App::AppRegistry* __pAppRegistry;
+ Tizen::Base::Collection::ArrayList* __pData;
+ Tizen::Ui::Controls::ListContextItem* __pItemContext;
+ Tizen::Ui::Controls::ListContextItem* __pItemContextLandscape;
+ bool __noAlarms;
+ Tizen::Ui::Controls::ListView* __pListview;
+ Tizen::Ui::Controls::ContextMenu* __pMenu;
+ Tizen::Ui::Controls::OptionMenu* __pOptionMenu;
+ SortByPopUp* __pPopUp;
+ Tizen::Base::String __sortByOption;
+ int __timerResetFlag;
+ Tizen::Base::String __timerResetKey;
+
+ public:
+ bool is24HourFormat;
+ };
+
+#endif // _CLK_ALARM_LIST_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+//
+/**
+ * @file ClkAlarmPresentationModel.h
+ * @brief This is the header file for AlarmPresentationModel class
+ */
+
+
+#ifndef _CLK_ALARM_PRESENTATION_MODEL_H_
+#define _CLK_ALARM_PRESENTATION_MODEL_H_
+
+
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkAlarm.h"
+#include "ClkDataServiceProvider.h"
+
+/**
+ * @class AlarmPresentationModel
+ * @brief This class declares functions which will manage database
+ */
+class AlarmPresentationModel
+{
+public:
+
+ /**
+ * Initialize AlarmPresentaion Model
+ */
+ result Initialize(void);
+
+ /**
+ * This function sets the listener class for IAlarmEventListener
+ *
+ * @return An error code
+ * @param pListener listener of type IAlarmEventListener
+ */
+ void AddEventListener(Tizen::System::IAlarmEventListener* pListener);
+
+ /*
+ * This function creates the list of alarms
+ *
+ * @return An error code
+ * @param nAlarmCount The no of Alarm present
+ * @param alarmList An ArrayList where the Alarm will be stored
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful as the list is not being created
+ * @remarks To work properly , the alarm count and and existing list should be passed
+ */
+ result CreateAlarmListN(int alarmCount, Tizen::Base::Collection::ArrayList& alarmList);
+
+ /**
+ * This function gets the sort all alarms based on createdTime
+ *
+ * @return An error code
+ * @param alarmTimeList list of alarms after sorting
+ */
+ void CreatedTimeSort(Tizen::Base::Collection::ArrayList& alarmTimeList);
+
+ /**
+ * This function gets the recent Alarm out of all the alarms
+ *
+ * @return An error code
+ * @param alarmTimeList list of alarms after sorting
+ */
+ void DateTimeSort(Tizen::Base::Collection::ArrayList& alarmTimeList);
+
+ /*
+ * This function deletes the alarm from the alarm table
+ *
+ * @return An error code
+ * @param alarmId The alarm id
+ * @exception E_SUCCESS The alarm is successfully deleted
+ * @exception E_FAILURE The alarm deletion is unsuccessful
+ */
+ result DeleteAlarm(int alarmId);
+
+ /*
+ * This function deletes the alarms from the alarm table
+ *
+ * @return An error code
+ * @param alarmList The list of alarms to delete
+ * @exception E_SUCCESS The alarms are successfully deleted
+ * @exception E_FAILURE The alarm deletion is unsuccessful
+ */
+ result DeleteAlarm(Tizen::Base::Collection::ArrayList& alarmList);
+
+ /*
+ * This function selects the alarm from the table
+ *
+ * @return An error code
+ * @param startIndex the OFFSET value
+ * @param limit The LIMIT till which the select statement will be executed
+ * @param bookmarkList The arraylist where the selected alarm will be retrieved
+ */
+ result GetAlarm(const int startIndex, const int limit, Tizen::Base::Collection::ArrayList& alarmList);
+
+ /**
+ * This function returns the number of Alarms
+ *
+ * @return An error code
+ * @param count output parameter to get alarm count
+ */
+ result GetAlarmCount(int& count) const;
+
+ /**
+ * This function returns the instance of AlarmPresentationModel
+ *
+ * @return The instance of AlarmPresentationModel
+ */
+ static AlarmPresentationModel* GetInstance(void);
+
+ /**
+ * This function gets the recent Alarm out of all the alarms
+ *
+ * @return An error code
+ * @param recentAlarm the next alarm time out of all the alarms
+ */
+ result GetRecentAlarm(Tizen::Base::DateTime& recentAlarmTime, AlarmData& recentAlarm);
+
+ /**
+ * This function adds the alarm to the alarm table
+ *
+ * @return An error code
+ * @param alarm Alarm object
+ * @exception E_SUCCESS The alarm is inserted successfully to the table
+ * @exception E_FAILURE The alarm is not inserted successfully
+ */
+ result SaveAlarm(AlarmData& alarm);
+
+ void SetAlarm(const AlarmData& alarm);
+
+ /**
+ * This function sets the listener class for Form
+ *
+ * @return An error code
+ * @param pForm listener of type Form
+ */
+ void SetCurrentForm(Tizen::Ui::Controls::Form* pForm);
+
+ AlarmData* GetAlarm(void) const;
+
+ result UpdateAlarm(AlarmData& oldAlarm, AlarmData& newAlarm);
+
+ void ReRegisterAlarm();
+private:
+ /**
+ * Default constructor
+ */
+ AlarmPresentationModel(void);
+
+ /**
+ *@brief Initialises the instance the class Alarm with the specified parameter
+ */
+ AlarmPresentationModel(const AlarmPresentationModel& alarmPresentationModel);
+
+ /**
+ *@brief "=" operator overloading
+ */
+ AlarmPresentationModel& operator =(const AlarmPresentationModel& alarmPresentationModel);
+
+ /**
+ * Default destructor
+ */
+ ~AlarmPresentationModel(void);
+
+ /**
+ * This function constructs the instance of AlarmPresentationModel
+ *
+ */
+ result Construct(void);
+
+ /**
+ * This function creates the instance of AlarmPresentationModel
+ *
+ * @return No return value
+ */
+ static void CreateInstance(void);
+
+ /**
+ * This function destroys the instance of AlarmPresentationModel
+ *
+ * @return No return value
+ */
+ static void DestroyInstance(void);
+
+
+
+
+private:
+ AlarmData* __pAlarm;
+ Tizen::Ui::Controls::Form* __pForm;
+ static AlarmPresentationModel* __pInstance;
+ Tizen::System::IAlarmEventListener* __pListener;
+ Tizen::System::Alarm* __pSystemAlarm;
+public:
+ const Tizen::Base::String defaultAudioPath;
+ };
+
+#endif //_CLK_ALARM_PRESENTATION_MODEL_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRepeatCustomItem.h
+ * @brief The %AlarmRepeatCustomItem defines Alarmrepeat custom item.
+ */
+
+#ifndef _CLK_ALARM_REPEAT_CUSTOM_ITEM_H_
+#define _CLK_ALARM_REPEAT_CUSTOM_ITEM_H_
+
+#include <FUi.h>
+
+#include "ClkAlarm.h"
+
+class AlarmRepeatCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ AlarmRepeatCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~AlarmRepeatCustomItem(void);
+ /**
+ * @brief Initializes this instance of %DropDownCustomItem.
+ *
+ * @return An error code
+ * @param[in] width The width of the Custom Item
+ * @param[in] height The height of the Custom Item
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Construct(int width, int height, bool itemChecked, bool is24Format);
+
+ //getter and setter methods for Text
+ /**
+ * This function gets the repeat flag for the alarm object
+ *
+ * @return A String
+ * @param No parameter
+ */
+ Tizen::Base::String GetRepeatFlag(void) const;
+
+ /**
+ * @brief The method used to get the text of CustomItem
+ * @return A String
+ * @param No parameter
+ */
+ Tizen::Base::String GetText(void) const;
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ *
+ * @return An error code
+ * @param[in] void An instance of the Rectangle class @n
+ * This instance represents the x and y coordinates of the top-left corner of the created window along with
+ * the width and height of the window.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result MakeAlarmRepeatCustomItem(void);
+
+ /**
+ * @brief The method used to set alarm
+ * @return no return value
+ * @param[in] alarm The alarm object
+ */
+ void SetAlarm(const AlarmData& alarm);
+
+ /**
+ * @brief The method used to set repeat flag for alarm
+ * @return no return value
+ * @param[in] flag The flag to be set for alarm
+ */
+ void SetRepeatFlags(const Tizen::Base::String& flag);
+
+ /**
+ * @brief The method used to set the text of CustomItem
+ * @return no return value
+ * @param[in] text The text to be set on CustomItem
+ */
+ void SetText(const Tizen::Base::String& text);
+
+private:
+ int __height;
+ bool __isItemChecked;
+ bool __is24HourFormat;
+ AlarmData* __pAlarm;
+ Tizen::Base::String __repeatFlags;
+ Tizen::Base::String __text;
+ int __width;
+
+};
+
+#endif /* _CLK_ALARM_REPEAT_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRingingForm.h
+ * @brief This header file contains the declarations of the AlarmRingingForm class.
+ *
+ */
+
+#ifndef CLKALARMRINGINGFORM_H_
+#define CLKALARMRINGINGFORM_H_
+
+#include <FTelCallManager.h>
+
+#include "ClkAlarm.h"
+
+class AlarmRingingForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Media::IPlayerEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::System::ISettingEventListener
+ , public Tizen::Telephony::ITelephonyCallEventListener
+{
+public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmRingingForm();
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmRingingForm();
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool Initialize(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ result OnInitializing(void);
+
+ result OnTerminating(void);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ virtual void OnPlayerOpened(result r) {}
+ virtual void OnPlayerEndOfClip(void) {}
+ virtual void OnPlayerBuffering(int percent) {}
+ virtual void OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r) {}
+ virtual void OnPlayerInterrupted(void) {}
+ virtual void OnPlayerReleased(void) {}
+ virtual void OnPlayerSeekCompleted(result r) {}
+
+ void OnTelephonyCallStatusChangedN (Tizen::Telephony::CallStatus callStatus, Tizen::Telephony::CallInfo *pCallInfo);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnScreenOn(void){}
+ virtual void OnScreenOff(void);
+ virtual void OnScreenBrightnessChanged(int brightness) {}
+
+ /**
+ * @brief This will be called every second to ensure clock feature is achieved
+ *
+ * @return No return type
+ * @param[in] void
+ */
+ void ShowClock(void);
+
+ /**
+ * @brief This method is used to start audio playing when alarm rings.
+ *
+ * @return No return type
+ * @param[in] void
+ */
+ result StartAudio(Tizen::Base::String& path, int volume);
+
+ /**
+ * @brief This method is used to start vibrator when alarm rings and the type is in vibrator.
+ *
+ * @return No return type
+ * @param[in] void
+ */
+ result StartVibrator(void);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+private:
+ Tizen::Telephony::CallManager __callManager;
+ int __hours;
+ int __minutes;
+ bool __nextSceneExist;
+ AlarmData* __pAlarm;
+ Tizen::Ui::Controls::Label* __pAlarmTimeLabel;
+ Tizen::Ui::Controls::Label* __pAlarmTitleLabel;
+ Tizen::Ui::Controls::Label* __pClockLabel;
+ Tizen::Ui::Controls::Label* __pCurrentTimeLabel;
+ Tizen::Media::Player* __pPlayer;
+ Tizen::Ui::Controls::Button* __pSnoozeButton;
+ Tizen::Ui::Controls::Button* __pStopButton;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::System::Vibrator* __pVibrator;
+ bool __timerExpired;
+public:
+ bool is24HourFormat;
+};
+
+#endif /* CLKALARMRINGINGFORM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRingingLockForm.h
+ * @brief This is the header file for AlarmRingingLockForm class.
+ *
+ */
+
+#ifndef _CLK_ALARM_RINGING_LOCK_FORM_H_
+#define _CLK_ALARM_RINGING_LOCK_FORM_H_
+
+#include <FTelCallManager.h>
+
+#include "ClkAlarm.h"
+#include "ClkAlarmRingingLockPanel.h"
+#include "ClkAlarmRingingSnoozeOffPanel.h"
+#include "ClkTypes.h"
+
+class AlarmRingingLockForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Media::IPlayerEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::Telephony::ITelephonyCallEventListener
+ , public IAlarmRingingLockPanelEvent
+{
+public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmRingingLockForm();
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmRingingLockForm();
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool Initialize(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ result OnInitializing(void);
+
+ result OnTerminating(void);
+
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ virtual void OnAlarmRingingLockEvent(AlarmRingingCommandId commandId);
+
+ virtual void OnPlayerOpened(result r) {}
+ virtual void OnPlayerEndOfClip(void) {}
+ virtual void OnPlayerBuffering(int percent) {}
+ virtual void OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r) {}
+ virtual void OnPlayerInterrupted(void) {}
+ virtual void OnPlayerReleased(void) {}
+ virtual void OnPlayerSeekCompleted(result r) {}
+
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ void OnTelephonyCallStatusChangedN (Tizen::Telephony::CallStatus callStatus, Tizen::Telephony::CallInfo *pCallInfo);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnScreenOn(void){}
+ virtual void OnScreenOff(void);
+ virtual void OnScreenBrightnessChanged(int brightness) {}
+
+ /**
+ * @brief This will be called every second to ensure clock feature is achieved
+ *
+ * @return No return type
+ * @param[in] void
+ *
+ */
+ void ShowClock(void);
+
+ /**
+ * @brief This method is used to start audio playing when alarm rings.
+ *
+ * @return No return type
+ * @param[in] void
+ */
+ result StartAudio(Tizen::Base::String& path, int volume);
+
+ /**
+ * @brief This method is used to start vibrator when alarm rings and the type is in vibrator.
+ *
+ * @return No return type
+ * @param[in] void
+ */
+ result StartVibrator(void);
+
+private:
+ int __hours;
+ int __minutes;
+ AlarmData* __pAlarm;
+ AlarmRingingLockPanel* __pAlarmRingPanel;
+ AlarmRingingSnoozeOffPanel* __pAlarmRingingSnoozeOffPanel;
+ Tizen::Ui::Controls::Label* __pAlarmTimeLabel;
+ Tizen::Ui::Controls::Label* __pAlarmTitleLabel;
+ Tizen::Ui::Controls::Label* __pClockLabel;
+ Tizen::Ui::Controls::Label* __pCurrentTimeLabel;
+ Tizen::Telephony::CallManager __callManager;
+ Tizen::Media::Player* __pPlayer;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::System::Vibrator* __pVibrator;
+
+};
+
+#endif // _CLK_ALARM_RINGING_LOCK_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRingingLockPanel.h
+ * @brief This header file contains the declarations of the %AlarmRingingLockPanel class.
+ *
+ */
+
+#ifndef _CLK_ALARM_RINGING_LOCKPANEL_H_
+#define _CLK_ALARM_RINGING_LOCKPANEL_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+enum AlarmRingingCommandId
+{
+ ALARM_RINGING_PANEL_SNOOZE = 0,
+ ALARM_RINGING_PANEL_STOP,
+ ALARM_RINGING_PANEL_COUNT
+};
+
+class IAlarmRingingLockPanelEvent
+{
+public:
+ virtual ~IAlarmRingingLockPanelEvent(void){}
+ virtual void OnAlarmRingingLockEvent(AlarmRingingCommandId commandId) = 0;
+};
+class AlarmRingingLockPanel
+ : public Tizen::Ui::Controls::Panel
+ , public Tizen::Ui::ITouchEventListener
+ , public Tizen::Base::Runtime::ITimerEventListener
+{
+public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmRingingLockPanel();
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmRingingLockPanel();
+
+ /**
+ * This function constructs the form
+ *
+ * @return result type
+ * @param controlRect Rectangle
+ */
+ result Construct(Tizen::Graphics::Rectangle controlRect);
+
+ //IAlarmRingingLockPanelEvent
+ void SetAlarmRinignigCommandListener(IAlarmRingingLockPanelEvent* pEventListener);
+
+ //ITouchEventListener
+ virtual void OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ virtual void OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ virtual void OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ virtual void OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {}
+ virtual void OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {}
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+private:
+ AlarmRingingCommandId __commandId;
+ Tizen::Graphics::Point __controlRestPosition;
+ bool __isDragging;
+ IAlarmRingingLockPanelEvent* __pEventListener;
+ Tizen::Graphics::Bitmap* __pSnoozeArrowBitmap;
+ Tizen::Graphics::Bitmap* __pSnoozeArrowPressedBitmap;
+ Tizen::Ui::Controls::Label* __pSnoozeLabel;
+ Tizen::Ui::Controls::Panel* __pSnoozePanel;
+ Tizen::Graphics::Bitmap* __pStopArrowBitmap;
+ Tizen::Graphics::Bitmap* __pStopArrowPressedBitmap;
+ Tizen::Ui::Controls::Label* __pStopLabel;
+ Tizen::Ui::Controls::Panel* __pStopPanel;
+ Tizen::Base::Runtime::Timer* __pUpdateTimer;
+};
+
+#endif /* _CLK_ALARM_RINGING_LOCKPANEL_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file AlarmRingingSnoozeOffPanel.h
+ * @brief This header file contains the declarations of the AlarmRingingSnoozeOffPanel class.
+ *
+ */
+
+#ifndef _CLK_ALARM_RINGING_SNOOZE_OFF_PANEL_H_
+#define _CLK_ALARM_RINGING_SNOOZE_OFF_PANEL_H_
+
+#include <FBase.h>
+#include <FUi.h>
+#include "ClkAlarmRingingLockPanel.h"
+
+class AlarmRingingSnoozeOffPanel
+ : public Tizen::Ui::Controls::Panel
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::ITouchEventListener
+{
+public:
+ /**
+ * @brief Default constructor
+ */
+ AlarmRingingSnoozeOffPanel();
+ /**
+ *@brief Default destructor
+ */
+ virtual ~AlarmRingingSnoozeOffPanel();
+ /**
+ * This function constructs the form
+ *
+ * @return result type
+ * @param controlRect Rectangle
+ */
+ result Construct(Tizen::Graphics::Rectangle controlRect);
+
+ //IAlarmRingingLockPanelEvent
+ void SetAlarmRinignigCommandListener(IAlarmRingingLockPanelEvent* pEventListener);
+
+ //ITouchEventListener
+ virtual void OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ virtual void OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ virtual void OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+ virtual void OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {}
+ virtual void OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) {}
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+private:
+ AlarmRingingCommandId __commandId;
+ bool __isDragging;
+ IAlarmRingingLockPanelEvent* __pEventListener;
+ Tizen::Graphics::Bitmap* __pStopBitmap;
+ Tizen::Ui::Controls::Label* __pStopLabel;
+ Tizen::Graphics::Bitmap* __pStopPressedBitmap;
+ Tizen::Base::Runtime::Timer* __pUpdateTimer;
+
+};
+
+#endif // _CLK_ALARM_RINGING_SNOOZE_OFF_PANEL_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkRadioCustomItem.h
+ * @brief The %ClkRadioCustomItem defines radio custom item.
+ *
+ */
+
+#ifndef _CLK_CHECKBOX_CUSTOM_ITEM_H_
+#define _CLK_CHECKBOX_CUSTOM_ITEM_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+
+class CheckBoxCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ CheckBoxCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~CheckBoxCustomItem(void);
+
+ /**
+ * @brief Initializes this instance of CheckBoxCustomItem .
+ *
+ * @return An error code
+ * @param[in] width The width of the Custom Item
+ * @param[in] height The height of the Custom Item
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Construct(int width, int height);
+
+ //getter and setter methods for Text
+ /**
+ * @brief The method used to get selection state of the CheckBoxCustomItem
+ * @return True if selected or false if unselected
+ */
+ bool GetSelected(void);
+
+ /**
+ * @brief The method used to get the text of CustomItem
+ * @return An error code
+ */
+ Tizen::Base::String GetText(void);
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ *
+ * @return An error code
+ * @param[in] void An instance of the Rectangle class @n
+ * This instance represents the x and y coordinates of the top-left corner of the created window along with
+ * the width and height of the window.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Make(void);
+
+ /**
+ * @brief The method used to set the selection state of the Radio Button
+ * @return void
+ */
+ void SetSelected(bool selectedValue);
+
+ /**
+ * @brief The method used to set the text of CustomItem
+ * @return An error code
+ */
+ void SetText(Tizen::Base::String& text);
+
+private:
+ int __height; ///Height of the CheckBoxCustomItem Instance
+ bool __isSelected;
+ Tizen::Base::String __text; ///The Text for the CheckBoxCustomItem
+ int __width; ///Width of the CheckBoxCustomItem Instance
+};
+
+#endif /* _CLK_CHECKBOX_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file CityListCustomItem
+ * @brief This class defines common behaviour of custom Item.
+ *
+ */
+
+#ifndef _CLK_CITY_LIST_CUSTOM_ITEM_H_
+#define _CLK_CITY_LIST_CUSTOM_ITEM_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+
+class CityListCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ CityListCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~CityListCustomItem(void);
+
+public:
+
+ /**
+ * @brief Initializes this instance of %DropDownCustomItem.
+ */
+ result Construct(int width, int height, bool searchBarModeOn);
+
+ //getter and setter methods for Text
+
+ /**
+ * @brief The method used to get the subtext of CustomItem
+ */
+ Tizen::Base::String GetRightSubText(void);
+
+ /**
+ * @brief The method used to get the subtext of CustomItem
+ */
+ Tizen::Base::String GetSubText(void);
+
+ /**
+ * @brief The method used to get the text of CustomItem
+ */
+ Tizen::Base::String GetText(void);
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ */
+ result Make(Tizen::Base::String& searchText, int mainTextFont);
+
+ /**
+ * @brief The method used to set the subtext of CustomItem
+ */
+ void SetRightSubText(Tizen::Base::String& text);
+
+ /**
+ * @brief The method used to set the subtext of CustomItem
+ */
+ void SetSubText(Tizen::Base::String& text);
+
+ /**
+ * @brief The method used to set the text of CustomItem
+ */
+ void SetText(Tizen::Base::String& text);
+
+private:
+ int __height; ///Height of the SettingToggleCustomItem Instance
+ Tizen::Base::String __rightSubText;
+ Tizen::Base::String __subText;
+ Tizen::Base::String __text; ///The Text for the Toggle Button
+ int __width; ///Width of the SettingToggleCustomItem Instance
+ bool searchBarModeInput;
+
+
+};
+
+#endif /* _CLK_CITY_LIST_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file clkCityListForm.h
+ * @brief This header file contains the declarations of the CityListForm class.
+ *
+ */
+
+#ifndef _CLK_CITY_LIST_FORM_H_
+#define _CLK_CITY_LIST_FORM_H_
+
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiScenes.h>
+
+#include "ClkAlarm.h"
+
+class NameComparer: public Tizen::Base::Collection::IComparer
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ NameComparer();
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~NameComparer();
+
+ //IComparer
+ result Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp)const;
+};
+
+class TimeComparer: public Tizen::Base::Collection::IComparer
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ TimeComparer();
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~TimeComparer();
+
+ //IComparer
+ result Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp)const;
+};
+
+class CityListForm
+: public Tizen::Ui::Controls::Form
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::Controls::IFastScrollListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::Controls::ISearchBarEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IKeypadEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::Ui::IFocusEventListener
+ , public Tizen::Ui::ITextEventListener
+ {
+ public:
+ /**
+ * @brief The Default Constructor
+ */
+ CityListForm(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~CityListForm(void);
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param No parameter
+ */
+ bool Initialize(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+
+ /**
+ * @brief Shows alert message.
+ */
+ void CreateMessage(Tizen::Base::String& str);
+
+ public:
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IFastScrollListener
+ virtual void OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //IKeypadEventListener
+ virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
+ virtual void OnKeypadOpened(Tizen::Ui::Control& source);
+ virtual void OnKeypadClosed(Tizen::Ui::Control& source);
+ virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+ virtual void OnKeypadBoundsChanged(Tizen::Ui::Control& source);
+
+ // IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ virtual void OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source, Tizen::Ui::Controls::SearchBarMode mode);
+
+ virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+ virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source) {};
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnFocusGained (const Tizen::Ui::Control &source);
+ virtual void OnFocusLost (const Tizen::Ui::Control &source);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ private:
+ bool __isOperationCompleted;
+ bool __isProcessing;
+ int __modalMsgBoxResult;
+ NameComparer nameComparer;
+ Tizen::Base::Collection::ArrayList* __pDataList;
+ Tizen::Ui::Controls::MessageBox* __pMsgBox;
+ Tizen::Ui::Controls::ListView* __pNameListview;
+ Tizen::Ui::Controls::SearchBar* __pSearchBar;
+ Tizen::Ui::Controls::ListView* __pTimeListview;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::Base::String __searchText;
+ TimeComparer timeComparer;
+
+ };
+
+#endif // _CLK_CITY_LIST_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkClockApp.h
+ * @brief This header file contains the declarations of the ClockApp class.
+ *
+ */
+
+#ifndef _CLOCK_H_
+#define _CLOCK_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FShell.h>
+#include <FUi.h>
+
+#include "ClkAlarm.h"
+
+/**
+ * [ClockApp] UiApp must inherit from UiApp class
+ * which provides basic features necessary to define an UiApp.
+ */
+class ClockApp
+ : public Tizen::App::UiApp
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::System::IAlarmEventListener
+ , public Tizen::System::ISettingEventListener
+ , public Tizen::App::IAppLaunchConditionEventListener
+
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ ClockApp(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual~ClockApp(void);
+
+ /**
+ * [Test] UiApp must have a factory method that creates an instance of itself.
+ */
+ static Tizen::App::UiApp* CreateInstance(void);
+
+ //IAlarmEventListener
+ virtual void OnAlarmExpired(Tizen::System::Alarm& alarm);
+
+ // Called when the UiApp is initializing.
+ bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UiApp initializing is finished.
+ bool OnAppInitialized(void);
+
+ // Called when the UiApp is terminating.
+ bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UiApp is requested to terminate.
+ bool OnAppWillTerminate(void);
+
+ // Called when this UiApp's frame is moved from top of the screen to the background.
+ void OnBackground(void);
+
+ // Called when the battery level changes.
+ void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the UiApp's frame moves to the top of the screen.
+ void OnForeground(void);
+
+ // Called when the system memory is not sufficient to run the UiApp any further.
+ void OnLowMemory(void);
+
+ void ShowAlarmRingingForm(void);
+
+ void ShowTimerRingingForm(void);
+
+ void ResetValues(void);
+
+ void RegisterAppForTimer(void);
+
+ int GetFontSize(void);
+
+ int GetHeightOffset(void);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnAppLaunchConditionMetN (const Tizen::Base::String &condition, Tizen::Base::Object *pExtraData, Tizen::Base::Collection::IList *pArguments);
+
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+private:
+ Tizen::Base::String __currentTimeKey;
+ Tizen::Base::String fontSizeStr;
+ bool __isAlarmLaunchedAutomatically;
+ bool __isrebooted;
+ bool __isTimerLaunchedAutomatically;
+ Tizen::Base::String __langValue;
+ Tizen::Base::String __nameKey;
+ AlarmData* __pAlarm;
+ Tizen::App::AppRegistry* __pAppRegistry;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ int __ringingAlarmId;
+ Tizen::Ui::Scenes::SceneId __sceneId;
+ Tizen::Base::String __timerResetKey;
+ int __timerResetValue;
+ Tizen::Base::String __timerTimeKey;
+ Tizen::Base::DateTime __timerTimeReached;
+ Tizen::Base::String __userSetValueKey;
+
+public:
+ Tizen::App::AppId activeAppId;
+
+};
+
+#endif // _CLOCK_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkCommonLib.h
+ * @brief To define the common method of Clock application
+ */
+
+#ifndef _CLK_COMMON_LIB_H_
+#define _CLK_COMMON_LIB_H_
+
+#include <FGraphics.h>
+
+/**
+* @struct CommonBitmapTable
+*
+* Defines the table to store a bitmap
+*
+*/
+struct CommonBitmapTable
+{
+ Tizen::Base::String filename;
+ int height;
+ Tizen::Graphics::Bitmap* ptr;
+ int refcount;
+ int width;
+
+};
+
+/**
+* @enum CommonBitmapId
+*
+* Defines a ID for a Bitmap path
+*
+*/
+enum CommonBitmapId
+{
+
+};
+
+/**
+ * @class CommonUtil
+ * @brief This file declares common methods to be used
+ */
+class CommonUtil
+{
+public:
+
+ /**
+ * Returns a pointer to a bitmap value using ID
+ *
+ * @return Pointer to a bitmap value
+ * @param[in] CommonBitmapId The ID of the Bitmap
+ * @remarks To work properly, the existing CommonBitmapId has to be passed.
+ */
+ static Tizen::Graphics::Bitmap* GetBitmap(CommonBitmapId id);
+
+ /**
+ * Returns a pointer to a bitmap value using bitmap path, bitmap width and bitmap height
+ *
+ * @return Pointer to a bitmap value
+ * @param[in] strPath The path of the existing bitmap stored in res folder
+ * @param[in] width The width of the existing bitmap stored in res folder
+ * @param[in] height The height of the existing bitmap stored in res folder
+ * @remarks To work properly, the existing strPath, its width and height has to be passed.
+ */
+ static Tizen::Graphics::Bitmap* GetBitmapN(const Tizen::Base::String& strPath, const int width, const int height);
+
+ /**
+ * Releases a bitmap using ID assigned to it.
+ *
+ * @return no return value
+ * @param[in] no input parameters
+ * @remarks Releases all the bitmaps stored
+ */
+ static Tizen::Graphics::Bitmap* GetNinepatchedBitmap(const Tizen::Base::String& strPath, const int width, const int height);
+
+ /**
+ * Returns the string value using ID
+ *
+ * @return String
+ * @param[in] resourceId The ID of the resource string
+ * @remarks To work properly, the existing resourceId has to be passed.
+ */
+ static Tizen::Base::String GetString(Tizen::Base::String resourceId);
+
+ /**
+ * Releases a bitmap using ID assigned to it.
+ *
+ * @return no return value
+ * @param[in] no input parameters
+ * @remarks Releases all the bitmaps stored
+ */
+ static void ReleaseAllBitmap(void);
+
+ /**
+ * Releases a bitmap using ID assigned to it.
+ *
+ * @return no return value
+ * @param[in] CommonBitmapId The ID of the Bitmap to be released
+ * @remarks To work properly, the existing CommonBitmapId has to be passed.
+ */
+ static void ReleaseBitmap(CommonBitmapId id);
+
+ /**
+ * Releases a bitmap using ID assigned to it.
+ *
+ * @return no return value
+ * @param[in] ptr The pointer to a bitmap that has to released
+ * @remarks To work properly, the pointer to a existing Bitmap has to be passed.
+ */
+ static void ReleaseBitmap(Tizen::Graphics::Bitmap* ptr);
+
+private:
+ static CommonBitmapTable __commonBitmapTable[];
+
+};
+
+#endif //_CLK_COMMON_LIB_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkCustomColors.h
+ * @brief This is the header file for Custom Colors
+ */
+
+#ifndef _CLK_CUSTOM_COLORS_H_
+#define _CLK_CUSTOM_COLORS_H_
+
+static const unsigned int CUSTOM_COLOR_GREY = Tizen::Graphics::Color32<153,153,153>::Value;
+static const unsigned int CUSTOM_COLOR_DARK_GREY = Tizen::Graphics::Color32<128,128,128>::Value;
+static const unsigned int CUSTOM_COLOR_TRANSPARENT = Tizen::Graphics::Color32<0,0,0>::Value;
+static const unsigned int CUSTOM_COLOR_RADIO_NORMAL = Tizen::Graphics::Color32<236, 240, 242>::Value;
+static const unsigned int CUSTOM_COLOR_RADIO_PRESSED = Tizen::Graphics::Color32<42, 137, 194>::Value;
+static const unsigned int CUSTOM_COLOR_LIST_VIEW_NORMAL = Tizen::Graphics::Color32<248,246,239>::Value;
+
+
+#endif // _CLK_CUSTOM_COLORS_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkPresentationModelBase.h
+ * @brief This is the header file for PresentationModelBase class
+ */
+
+#ifndef _CLK_DATA_SERVICE_PROVIDER_H_
+#define _CLK_DATA_SERVICE_PROVIDER_H_
+
+#include <FIo.h>
+
+#include "ClkTypes.h"
+
+/**
+ * @class DataServiceProvider
+ * @brief This class declares functions which will manage database
+ */
+class DataServiceProvider
+{
+public:
+ /**
+ * Initialize storage service
+ */
+ static result Initialize(void);
+
+ /**
+ * Deinitialize storage service
+ */
+ static result UnInitialize(void);
+
+public:
+ /**
+ * This function deletes the database
+ *
+ * @return An error code
+ * @param No parameter
+ * @exception E_SUCCESS The database closed successfully
+ * @exception E_FAILURE The database is not closed successfully
+ */
+ static result CloseDb(void);
+
+ /**
+ * This function commits the database
+ *
+ * @return An error code
+ * @param No parameter
+ * @exception E_SUCCESS The database closed successfully
+ * @exception E_FAILURE The database is not closed successfully
+ */
+ static result CommitDb(void);
+
+ /**
+ * This function creates the table in database
+ *
+ * @return An error code
+ * @param tableType The name of the table
+ * @exception E_SUCCESS The table is created successfully in database
+ * @exception E_FAILURE The table creation in database is not successful
+ */
+ static result CreateDBTables(ClockDbTableTypes tableType);
+
+ /**
+ * This function finds the next row present in the database or not.
+ *
+ * @return An error code
+ * @param nextRowpresent true/false : the next row present or not.
+ * @exception E_SUCCESS The table is dropped successfully from database
+ * @exception E_FAILURE The table drop is unsuccessful
+ */
+ static result DbIsNextRowPresent(bool& nextRowpresent);
+
+ /**
+ * This function drops the existing tables from database
+ *
+ * @return An error code
+ * @param No parameter
+ * @exception E_SUCCESS The table is dropped successfully from database
+ * @exception E_FAILURE The table drop is unsuccessful
+ */
+ static result DropDBTables(void);
+
+ /**
+ * This function drops the existing tables from database
+ *
+ * @return An error code
+ * @param No parameter
+ * @exception E_SUCCESS The table is dropped successfully from database
+ * @exception E_FAILURE The table drop is unsuccessful
+ */
+ static result ExecuteQuery(const Tizen::Base::String pszFormatQuery, int& nRowCount);
+
+ /**
+ * This function returns the instance of WorldClockPresentationModel
+ *
+ * @return The instance of WorldClockPresentationModel
+ */
+ static DataServiceProvider* GetInstance();
+
+ /**
+ * This function gives the last inserted row id
+ *
+ * @return An error code
+ * @param tableName The name of the table
+ * @param rowId The rowId in which last inserted rowId will be saved.
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful
+ * @remarks To work properly , the table name should be passed properly
+ */
+ result GetLastInsertedId(Tizen::Base::String& tableName, int& rowId);
+
+ /**
+ * This function creates the database and constructs it.
+ *
+ * @return An error code
+ * @param No parameter
+ * @exception E_SUCCESS The database created successfully
+ * @exception E_FAILURE The database creation is failed
+ */
+ static result OpenDb(void);
+
+ /**
+ * This function calls the CreateDBTables function for all the tables
+ *
+ * @return An error code
+ * @param No parameter
+ */
+ static result InitializeDBTables(void);
+
+
+
+ static result IsNullColumn(int nIndex, bool& isColumNull);
+ static result GetColumn(int nIndex, Tizen::Base::String& strVal);
+ static result GetColumn(int nIndex, int& nIntVal);
+ static result GetColumn(int nIndex, double& dblVal);
+ static result GetColumn(int nIndex, Tizen::Base::DateTime& dtVal);
+ static result RollbackDb(void);
+
+ static bool GetCurrentDateTime(Tizen::Base::DateTime& dt);
+
+private:
+ /**
+ * Default constructor
+ */
+ DataServiceProvider(void);
+
+ /**
+ * Default destructor
+ */
+ ~DataServiceProvider(void);
+
+ /**
+ * This function constructs the instance of DataServiceProvider
+ *
+ */
+ result Construct(void);
+
+ /**
+ * This function creates the instance of DataServiceProvider
+ *
+ * @return No return value
+ */
+ static void CreateInstance(void);
+
+ /**
+ * This function destroys the instance of DataServiceProvider
+ *
+ * @return No return value
+ */
+ static void DestroyInstance(void);
+
+public:
+ static Tizen::Base::String DB_FILE_PATH;
+
+private:
+ static bool __isBeginTransaction;
+ static Tizen::Io::Database* __pDataBase;
+ static Tizen::Io::DbEnumerator* __pDbEnum;
+ static Tizen::Io::DbStatement* __pDbStatement;
+ static DataServiceProvider* __pInstance;
+};
+
+ #endif //_CLK_DATA_SERVICE_PROVIDER_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/**
+ * @file DaylightSavingPopUp.h
+ * @brief This header file contains the declarations of the DaylightSavingPopUp
+ *
+ */
+
+#ifndef _CLK_DST_POPUP_H_
+#define _CLK_DST_POPUP_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FUi.h>
+
+
+class IDstTimeEventListener
+{
+public:
+ IDstTimeEventListener();
+ virtual ~IDstTimeEventListener();
+
+ virtual void OnDaylightSavingPopUpItemSelected(int DstTime ) = 0 ;
+};
+
+class DaylightSavingPopUp
+ : public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::Controls::Popup
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IPropagatedKeyEventListener
+ {
+ public:
+ /**
+ * @brief The Default Constructor
+ */
+ DaylightSavingPopUp(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ ~DaylightSavingPopUp(void);
+
+ /**
+ * @brief Initializes this SettingForm Form.
+ *
+ * @return An error code
+ * @exception true The method is succeIOrientationEventListenerssful.
+ * @exception false An error Occured.
+ */
+ bool Initialize(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+
+ public:
+
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ // IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+
+ void SetDstIndex(int index);
+
+ void SetEventListner(IDstTimeEventListener* listner);
+
+ virtual bool OnKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ virtual bool OnKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
+ virtual bool OnPreviewKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ virtual bool OnPreviewKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+
+ private:
+ Tizen::Ui::Controls::ListView* __pList;
+ IDstTimeEventListener* __pListener;
+ };
+
+
+#endif /* _CLK_DST_POPUP_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file DefaultCustomItem
+ * @brief This class defines common behaviour of custom Item.
+ *
+ */
+
+#ifndef _CLK_DEFAULT_CUSTOM_ITEM_H_
+#define _CLK_DEFAULT_CUSTOM_ITEM_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+
+class DefaultCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ DefaultCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~DefaultCustomItem(void);
+
+public:
+
+ /**
+ * @brief Initializes this instance of %DropDownCustomItem.
+ */
+ result Construct(int width, int height);
+
+ //getter and setter methods for Text
+
+ /**
+ * @brief The method used to get the subtext of CustomItem
+ */
+ Tizen::Base::String GetRightSubText(void);
+
+ /**
+ * @brief The method used to get the subtext of CustomItem
+ */
+ Tizen::Base::String GetSubText(void);
+
+ /**
+ * @brief The method used to get the text of CustomItem
+ */
+ Tizen::Base::String GetText(void);
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ */
+ result Make(int fontSize);
+
+ /**
+ * @brief The method used to set the subtext of CustomItem
+ */
+ void SetRightSubText(Tizen::Base::String& text);
+
+ /**
+ * @brief The method used to set the subtext of CustomItem
+ */
+ void SetSubText(Tizen::Base::String& text);
+
+ /**
+ * @brief The method used to set the text of CustomItem
+ */
+ void SetText(Tizen::Base::String& text);
+
+private:
+ int __height; ///Height of the SettingToggleCustomItem Instance
+ Tizen::Base::String __rightSubText;
+ Tizen::Base::String __subText;
+ Tizen::Base::String __text; ///The Text for the Toggle Button
+ int __width; ///Width of the SettingToggleCustomItem Instance
+
+
+};
+
+#endif /* _CLK_DEFAULT_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file DropDownCustomItem
+ * @brief This class defines common behaviour of Drop down custom Item.
+ *
+ */
+
+#ifndef _CLK_DROPDOWN_CUSTOM_ITEM_H_
+#define _CLK_DROPDOWN_CUSTOM_ITEM_H_
+
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+
+enum DropDownItemState
+{
+ DROP_DOWN_ITEM_STATE_OPENED = 0,
+ DROP_DOWN_ITEM_STATE_CLOSED
+};
+
+class DropDownCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+
+public:
+ /**
+ * @brief The Default constructor
+ */
+ DropDownCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~DropDownCustomItem(void);
+
+ /**
+ * Initializes this instance of DropDownCustomItem.
+ */
+ result Construct(int width, int fontSize);
+
+ //getter and setter methods for Main Text
+
+ /**
+ * @brief The method used to get the Title text of CustomItem
+ */
+ DropDownItemState GetCurState(void) const;
+
+ /**
+ * @brief The method used to get the Title text of CustomItem
+ */
+ Tizen::Base::String GetMainText(void) const;
+
+ /**
+ * @brief The method used to get the Sub text of CustomItem
+ */
+ Tizen::Base::String GetSubText(void) const;
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ *
+ */
+ result MakeElements(int fontSize);
+
+ /**
+ * @brief The method used to set the Title text of CustomItem
+ */
+ void SetCurState(const DropDownItemState state);
+
+ /**
+ * @brief The method used to set the Title text of CustomItem
+ */
+ void SetMainText(const Tizen::Base::String& text);
+
+ /**
+ * @brief The method used to set the Sub text of CustomItem
+ */
+ void SetSubText(const Tizen::Base::String& text);
+
+private:
+ DropDownItemState currentState;
+ int __height; ///Height of the SettingToggleCustomItem Instance
+ Tizen::Base::String __mainText; ///The MainText for the Toggle Button
+ Tizen::Base::String __subText; ///The SubText for the Toggle Button
+ int __width; ///Width of the SettingToggleCustomItem Instance
+
+};
+
+#endif /* _CLK_DROPDOWN_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file DropdownAndRepeatCustomItem
+ * @brief This class defines common behaviour of Drop down and repeat custom Item.
+ *
+ */
+
+#ifndef _CLK_DROPDOWN_AND_REPEAT_CUSTOM_ITEM_H_
+#define _CLK_DROPDOWN_AND_REPEAT_CUSTOM_ITEM_H_
+
+
+enum DropDownAndRepeatItemState
+{
+ DROP_DOWN_AND_REPEAT_ITEM_STATE_OPENED = 0,
+ DROP_DOWN_AND_REPEAT_ITEM_STATE_CLOSED
+};
+
+class DropdownAndRepeatCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+
+public:
+ /**
+ * @brief The Default constructor
+ */
+ DropdownAndRepeatCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~DropdownAndRepeatCustomItem(void);
+
+ /**
+ * Initializes this instance of DropDownCustomItem.
+ */
+ result Construct(int width);
+
+ //getter and setter methods for Main Text
+
+ /**
+ * @brief The method used to get the Title text of CustomItem
+ */
+ DropDownAndRepeatItemState GetCurState(void) const;
+
+ /**
+ * @brief The method used to get the Title text of CustomItem
+ */
+ Tizen::Base::String GetMainText(void) const;
+
+ /**
+ * This function gets the repeat flag for the alarm object
+ *
+ * @return A String
+ * @param No parameter
+ */
+ Tizen::Base::String GetRepeatFlag(void) const;
+
+ /**
+ * @brief The method used to get the Sub text of CustomItem
+ */
+ Tizen::Base::String GetSubText(void) const;
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ *
+ */
+ result MakeElements(void);
+
+ /**
+ * @brief The method used to set the Title text of CustomItem
+ */
+ void SetCurState(const DropDownAndRepeatItemState state);
+
+ /**
+ * @brief The method used to set the Title text of CustomItem
+ */
+ void SetMainText(const Tizen::Base::String& text);
+
+ /**
+ * @brief The method used to set repeat flag for alarm
+ * @return no return value
+ * @param[in] flag The flag to be set for alarm
+ */
+ void SetRepeatFlags(const Tizen::Base::String& flag);
+
+ /**
+ * @brief The method used to set the Sub text of CustomItem
+ */
+ void SetSubText(const Tizen::Base::String& text);
+
+private:
+ DropDownAndRepeatItemState currentState;
+ int __height; ///Height of the SettingToggleCustomItem Instance
+ Tizen::Base::String __mainText; ///The MainText for the Toggle Button
+ Tizen::Base::String __repeatFlags;
+ Tizen::Base::String __subText; ///The SubText for the Toggle Button
+ int __width; ///Width of the SettingToggleCustomItem Instance
+
+};
+
+#endif /* _CLK_DROPDOWN_AND_REPEAT_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkEditSnoozeForm.h
+ * @brief The %ClkEditSnoozeForm defines settings.
+ *
+ */
+
+#ifndef _CLK_EDIT_SNOOZE_FORM_H_
+#define _CLK_EDIT_SNOOZE_FORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+
+class EditSnoozeForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IGroupedListViewItemEventListener
+ , public Tizen::Ui::Controls::IGroupedListViewItemProvider
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ EditSnoozeForm(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~EditSnoozeForm(void);
+
+ /**
+ * @brief Initializes this EditSnoozeForm Form.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for EditSnoozeForm.
+ */
+ result OnInitializing(void);
+
+ //IGroupedListViewItemProvider
+ Tizen::Ui::Controls::GroupItem* CreateGroupItem(int groupIndex, int itemWidth);
+ Tizen::Ui::Controls::ListItemBase* CreateItem(int groupIndex, int itemIndex, int itemWidth);
+ bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::GroupItem* pItem, int itemWidth);
+ bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+ int GetGroupCount(void);
+ int GetItemCount(int groupIndex);
+
+ //IActionEventListener
+ void OnActionPerformed(const Tizen::Ui::Control& source, int actionId){};
+
+ //IFormBackEventListener
+ void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //IGroupedListViewItemEventListener
+ void OnGroupedListViewContextItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListContextItemStatus status){};
+ void OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ void OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction){};
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId){};
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+private:
+ int __durationName;
+ int __durationSelectedIndex;
+ Tizen::Ui::Controls::GroupedListView* __pListView;
+ int __repeatName;
+ int __repeatSelectedIndex;
+ bool __showSnoozeDuration;
+ bool __showSnoozeRepeat;
+};
+
+
+#endif /* _CLK_EDIT_SNOOZE_FORM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkMainFrame.h
+ * @brief This header file contains the declarations of the MainFrame class.
+ *
+ */
+
+#ifndef _CLK_MAINFRAME_H_
+#define _CLK_MAINFRAME_H_
+
+
+class MainFrame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ MainFrame(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~MainFrame(void);
+
+ /**
+ * This function initializes all the controls of the form
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+};
+
+#endif //_CLK_MAINFRAME_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkNotification.h
+ * @brief This header file contains the declarations of the Notification
+ *
+ */
+
+#ifndef _CLK_NOTIFICATION_H_
+#define _CLK_NOTIFICATION_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FUi.h>
+
+class Notification
+ : public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::Controls::Panel
+ {
+ public:
+ /**
+ * @brief The Default Constructor
+ */
+ Notification(Tizen::Ui::Controls::Form& aForm);
+
+ /**
+ * @brief The Default Destructor
+ */
+ ~Notification(void);
+
+ // ITimerEventListener
+ void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ /**
+ * This function displays the Notification
+ *
+ * @return No return type.
+ * @param none.
+ */
+ void ShowNotification(void);
+
+ /**
+ * This function gets the Sets the text of the Notification
+ *
+ * @return No return type.
+ * @param message The Notification Message.
+ */
+ void SetText(Tizen::Base::String& message);
+
+ private:
+ Tizen::Ui::Controls::Form& __form;
+ Tizen::Ui::Controls::Label* __pLabel;
+ Tizen::Base::Runtime::Timer* __pTimer;
+
+ };
+
+#endif /* _CLK_NOTIFICATION_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkNumberSelectorControl.h
+ * @brief This header file contains the declarations of the NumberSelectorControl
+ *
+ */
+
+#ifndef _CLK_NUMBER_SELECTOR_CONTROL_H_
+#define _CLK_NUMBER_SELECTOR_CONTROL_H_
+
+class NumberSelectorControl;
+
+class INumberSelectorEventListener
+{
+public:
+ INumberSelectorEventListener();
+ virtual ~INumberSelectorEventListener();
+
+ virtual void OnNumberSelected(const NumberSelectorControl&, int number) = 0;
+};
+
+class NumberSelectorControl
+:public Tizen::Ui::Controls::Panel
+ ,public Tizen::Ui::IActionEventListener
+ {
+ public:
+ /**
+ * @brief The Default Constructor
+ */
+ NumberSelectorControl(Tizen::Ui::Controls::ScrollPanel&);
+
+ /**
+ * @brief The Default Destructor
+ */
+ ~NumberSelectorControl(void);
+
+ /**
+ * This function constructs the form
+ *
+ * @return bool type
+ * @param limit integer type
+ */
+ result Initialize(int limit, int startIndex);
+
+ public:
+ /**
+ * This function gets the anchor position.
+ *
+ * @return Point the anchor position.
+ * @param No parameter
+ */
+ Tizen::Graphics::Point GetAnchorPosition(void);
+
+ /**
+ * This function gets the number selected.
+ *
+ * @return int type
+ * @param No parameter
+ */
+ int GetNumber(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ /**
+ * This function sets the anchor position.
+ *
+ * @return No Return type
+ * @param Point the anchor position.
+ */
+ void SetAnchorPosition(Tizen::Graphics::Point);
+
+ /**
+ * This function sets the number selected.
+ *
+ * @return no return type
+ * @param int type
+ */
+ void SetNumber(int);
+
+ //INumberSelectorEventListener
+ INumberSelectorEventListener* GetEventListner(void);
+ void SetEventListner(INumberSelectorEventListener*);
+
+ private:
+ void __SetNumber(int);
+
+ private:
+ int __actionIdOffset;
+ Tizen::Graphics::Point __anchorPosition;
+ int __noLimit;
+ Tizen::Ui::Controls::Label* __pAnchorLabel;
+ Tizen::Ui::Controls::ScrollPanel& __parentForm;
+ INumberSelectorEventListener *__pListener;
+ Tizen::Ui::Controls::ScrollPanel *__pNewScroll;
+ int __selectedValue;
+ };
+
+#endif /* _CLK_NUMBER_SELECTOR_CONTROL_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkRadioCustomItem.h
+ * @brief The %ClkRadioCustomItem defines radio custom item.
+ *
+ */
+
+#ifndef _CLK_RADIO_CUSTOM_ITEM_H_
+#define _CLK_RADIO_CUSTOM_ITEM_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+
+class RadioCustomItem
+ : public Tizen::Ui::Controls::CustomItem
+{
+public:
+ /**
+ * @brief The Default Constructor
+ */
+ RadioCustomItem(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ virtual ~RadioCustomItem(void);
+
+ /**
+ * @brief Initializes this instance of %DropDownCustomItem.
+ *
+ * @return An error code
+ * @param[in] width The width of the Custom Item
+ * @param[in] height The height of the Custom Item
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Construct(int width, int height);
+
+public:
+ //getter and setter methods for Text
+ /**
+ * @brief The method used to get selection state of the Radio Button
+ * @return True if selected or false if unselected
+ */
+ const bool GetSelected(void);
+
+ /**
+ * @brief The method used to get the text of CustomItem
+ * @return An error code
+ */
+ const Tizen::Base::String GetText(void);
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ *
+ * @return An error code
+ * @param[in] void An instance of the Rectangle class @n
+ * This instance represents the x and y coordinates of the top-left corner of the created window along with
+ * the width and height of the window.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Make(int fontSize);
+
+ //getter and setter methods for Text
+ /**
+ * @brief The method used to set the selection state of the Radio Button
+ * @return void
+ */
+ void SetSelected(const bool selectedValue);
+
+ /**
+ * @brief The method used to set the text of CustomItem
+ * @return An error code
+ */
+ void SetText(const Tizen::Base::String& text);
+
+private:
+
+ int __height; ///Height of the SettingToggleCustomItem Instance
+ bool __isSelected;
+ Tizen::Base::String __text; ///The Text for the Toggle Button
+ int __width; ///Width of the SettingToggleCustomItem Instance
+};
+
+#endif /* _CLK_RADIO_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/**
+ * @file ClkSceneFactory.h
+ * @brief SceneFactory class helps in creating appropriate forms with a specified form ID.
+ * It Should be derived from Tizen::Ui::Scenes::IFormFactory class
+ */
+
+
+#ifndef _CLK_SCENE_FACTORY_H_
+#define _CLK_SCENE_FACTORY_H_
+
+#include <FUi.h>
+#include <FUiScenes.h>
+
+/// Use 'extern' to eliminate duplicate data allocation.
+extern const wchar_t* IDL_FORM_ALARM_LIST;
+extern const wchar_t* IDL_FORM_ALARM_DELETE_LIST;
+extern const wchar_t* IDL_FORM_CREATE_ALARM;
+extern const wchar_t* IDL_FORM_CITY_LIST;
+extern const wchar_t* IDL_FORM_EDIT_SNOOZE;
+extern const wchar_t* IDL_FORM_ALARM_RINGING;
+extern const wchar_t* IDL_FORM_WORLD_CLOCK_LIST;
+extern const wchar_t* IDL_FORM_WORLD_CLOCK_DELETE_LIST;
+extern const wchar_t* IDL_FORM_STOP_WATCH;
+extern const wchar_t* IDL_FORM_TIMER_VIEW;
+extern const wchar_t* IDL_FORM_TIMER_RINGING;
+extern const wchar_t* IDL_FORM_WORLD_CLOCK_REORDER ;
+extern const wchar_t* IDL_FORM_ALARM_RINGING_LOCK;
+extern const wchar_t* IDL_FORM_TIMER_RINGING_LOCK;
+
+/**
+ * @class SceneFactory
+ * @brief SceneFactory class helps in creating appropriate forms with a specified form ID.
+ * It Should be derived from Tizen::Ui::Scenes::IFormFactory class
+ */
+class SceneFactory
+ : public Tizen::Ui::Scenes::IFormFactory
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ /**
+ * Default constructor
+ */
+ SceneFactory(void);
+
+ /**
+ * Default destructor
+ */
+ virtual ~SceneFactory(void);
+
+ /**
+ * Called with a form ID and scene ID when an instance of Form control is required.
+ *
+ * @return Pointer to a form
+ * @param[in] formId The ID of the form
+ * @param[in] sceneId The ID of the scene
+ * @remarks To work properly, the existing formId and sceneId has to be passed.
+ */
+ virtual Tizen::Ui::Controls::Form* CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId);
+
+ void SetFontSize(Tizen::Ui::Container& container, int font);
+
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId){}
+};
+
+#endif // _CLK_SCENE_FACTORY_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file SceneRegister.h
+ * @brief This header file contains the declarations of the SceneRegister class.
+ *
+ */
+
+#ifndef _CLK_SCENE_REGISTER_H_
+#define _CLK_SCENE_REGISTER_H_
+
+/// Use 'extern' to eliminate duplicate data allocation.
+extern const wchar_t* IDSCN_ALARM_LIST;
+extern const wchar_t* IDSCN_ALARM_DELETE_LIST;
+extern const wchar_t* IDSCN_CREATE_ALARM;
+extern const wchar_t* IDSCN_CITY_LIST;
+extern const wchar_t* IDSCN_EDIT_SNOOZE;
+extern const wchar_t* IDSCN_ALARM_RINGING;
+extern const wchar_t* IDSCN_ALARM_RINGING_LOCK;
+extern const wchar_t* IDSCN_WORLD_CLOCK_LIST;
+extern const wchar_t* IDSCN_WORLD_CLOCK_DELETE_LIST;
+extern const wchar_t* IDSCN_STOP_WATCH;
+extern const wchar_t* IDSCN_TIMER_VIEW;
+extern const wchar_t* IDSCN_TIMER_RINGING;
+extern const wchar_t* IDSCN_WORLD_CLOCK_REORDER ;
+extern const wchar_t* IDSCN_TIMER_RINGING_LOCK;
+
+
+class SceneRegister
+{
+public:
+
+ /**
+ * Unregister and destroy the scene
+ *
+ * @return An error code
+ * @param[in] sceneID The sceneID of new view.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OBJ_ALREADY_EXIST The specified @c sceneId already exists.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_INVALID_STATE This instance has not been constructed as yet.
+ * @remarks Unregister and destroy the scene
+ */
+ static result DestroyAndUnRegisterScene(const Tizen::Base::String& sceneID);
+
+ /**
+ * Registers all the scenes using Register~SceneRegisterScene() method of the SceneManager class
+ *
+ */
+ static void RegisterAllScenes(void);
+
+ /**
+ * Registers New main view scene for multi window
+ *
+ * @return no return value
+ * @param[in] sceneID The sceneID of new view.
+ * @param[in] formID The formID of new View.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OBJ_ALREADY_EXIST The specified @c sceneId already exists.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_INVALID_STATE This instance has not been constructed as yet.
+ * @remarks Register the new main view in scenemanager.
+ */
+ static result RegisterNewMainView(const Tizen::Base::String& sceneID, const Tizen::Base::String& FormID);
+
+private:
+ /**
+ * Default constructor
+ */
+ SceneRegister(void);
+
+ /**
+ * Default destructor
+ */
+ ~SceneRegister(void);
+};
+
+#endif // _CLK_SCENE_REGISTER_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkSortByPopUp.h
+ * @brief This header file contains the declarations of the SortByPopUp
+ *
+ */
+
+#ifndef _CLK_SORTBY_POPUP_H_
+#define _CLK_SORTBY_POPUP_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FUi.h>
+
+enum SortBy
+{
+ SORTBY_RECENT,
+ SORTBY_TIME
+};
+
+class ISortByEventListener
+{
+public:
+ ISortByEventListener();
+ virtual ~ISortByEventListener();
+
+ virtual void OnSortByPopUpItemSelected(SortBy sortby ) = 0;
+};
+
+class SortByPopUp
+ : public Tizen::Ui::Controls::Popup
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IPropagatedKeyEventListener
+ {
+ public:
+ /**
+ * @brief The Default Constructor
+ */
+ SortByPopUp(void);
+
+ /**
+ * @brief The Default Destructor
+ */
+ ~SortByPopUp(void);
+
+ /**
+ * @brief Initializes this SettingForm Form.
+ *
+ * @return An error code
+ * @exception true The method is succeIOrientationEventListenerssful.
+ * @exception false An error Occured.
+ */
+ bool Initialize(void);
+
+ /**
+ * This function terminates all the controls
+ *
+ * @return result type
+ * @param No parameter
+ */
+ virtual result OnTerminating(void);
+
+ public:
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ // IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+
+ //ISortByEventListener
+ ISortByEventListener* GetEventListner(void);
+ void SetEventListner(ISortByEventListener*);
+
+ void SetDstIndex(int index);
+
+ virtual bool OnKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ virtual bool OnKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
+ virtual bool OnPreviewKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ virtual bool OnPreviewKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ private:
+ Tizen::Ui::Controls::ListView* __pList;
+ ISortByEventListener *__pListener;
+ Tizen::Base::Collection::ArrayList* __pShareList;
+
+ };
+
+#endif /* _CLK_SORTBY_POPUP_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/*
+ * @file ClkStopWatchForm.h
+ * @brief This header file contains the declarations of the StopWatchForm Class.
+ */
+
+#ifndef _CLK_STOP_WATCH_FORM_H_
+#define _CLK_STOP_WATCH_FORM_H_
+
+class StopWatchForm
+: public Tizen::Ui::Controls::Form
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ {
+ public:
+ /**
+ * @brief The Default constructor
+ */
+ StopWatchForm(void);
+
+ /**
+ * @brief The Default destructor
+ */
+ virtual ~StopWatchForm(void);
+
+ /**
+ * @brief Initializes this StopWatchForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for StopWatchForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * @brief Terminates the controls of the UI for StopWatchForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ */
+ virtual result OnTerminating(void);
+
+ public:
+ // To create the stop,start,reset and lap button
+ void CreateButtons(void);
+
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ // Adds item in the list when lap button is clicked
+ void InsertItem(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId){};
+
+ //ITimerEventListener
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ // sets buutons based on state
+ void SetButtonState(void);
+
+ // sets the timer
+ void SetTimer(void);
+
+ // Display the timer
+ void DisplayTimer(void);
+
+ private:
+ bool __checkFlag;
+ Tizen::Base::String __lapTimeText;
+ Tizen::Base::String __milliSecondsField;
+ Tizen::Ui::Controls::Button* __pBtnLap;
+ Tizen::Ui::Controls::Button* __pBtnReset;
+ Tizen::Ui::Controls::Button* __pBtnRestart;
+ Tizen::Ui::Controls::Button* __pBtnStart;
+ Tizen::Ui::Controls::Button* __pBtnStop;
+ Tizen::Ui::Controls::Label* __pDisplayLabel;
+ Tizen::Ui::Controls::Label* __pEighthDigit;
+ Tizen::Ui::Controls::Label* __pFifthDigit;
+ Tizen::Ui::Controls::Label* __pFirstDigit;
+ Tizen::Ui::Controls::Label* __pFourthDigit;
+ Tizen::Base::Collection::ArrayList* __pLapTimeTextList;
+ Tizen::Ui::Controls::ListView* __pList;
+ Tizen::Ui::Controls::Label* __pMillisecondLabel;
+ Tizen::Ui::Controls::Panel* __pPanel;
+ Tizen::Ui::Controls::Label* __pSecondDigit;
+ Tizen::Ui::Controls::Label* __pSeventhDigit;
+ Tizen::Ui::Controls::Label* __pSixthDigit;
+ Tizen::Ui::Controls::Label* __pThirdDigit;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::Base::Collection::ArrayList* __pWatchTextList;
+ long long __restartTick;
+ long long __startTick;
+ int __status;
+ long long __stopTick;
+ long long __temp;
+ int __timerResetFlag;
+ Tizen::Base::String __timerResetKey;
+ long long __tmpTick;
+ long long __tmpTicker;
+ Tizen::Base::String __watchText;
+ };
+
+#endif // _CLK_STOP_WATCH_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/*
+ * @file ClkStopWatchPresentationModel.h
+ * @brief This header file contains the declarations of the StopWatchPresentationModel Class.
+ */
+
+
+#ifndef CLKSTOPWATCHPRESENTATIONMODEL_H_
+#define CLKSTOPWATCHPRESENTATIONMODEL_H_
+
+class StopWatchPresentationModel
+{
+public:
+
+ /**
+ * This function returns the instance of StopWatchPresentationModel
+ *
+ * @return The instance of StopWatchPresentationModel
+ */
+ static StopWatchPresentationModel* GetInstance();
+
+ /**
+ * This function gets the stopwatch lap values
+ *
+ * @return No return type
+ * @param lapsList The list of watchText values
+ * lapTimeTextList The list of lapTimeList values
+ * tempTicker A string
+ * checkFlag An integer
+ */
+ void GetStopWatchLaps(Tizen::Base::Collection::ArrayList& lapsList, Tizen::Base::Collection::ArrayList& lapTimeTextList, Tizen::Base::String& tempTicker, int& checkFlag);
+
+ /**
+ * This function gets the stopwatch values and its status
+ *
+ * @return No return type
+ * @param status The status of Timer
+ * startTick Time at which start button is clicked
+ * tempTick difference between stopTick and restartTick
+ * restartTick Time at which restart button is clicked
+ * stopTick Time at which stop button is clicked
+ * milliSecondText milliSeconds when the app is terminated
+ * watchText watchText when the app is terminated
+ */
+ void GetStopWatchValue(int& status, Tizen::Base::String& startTick, Tizen::Base::String& tempTick, Tizen::Base::String& restartTick, Tizen::Base::String& stopTick, Tizen::Base::String& milliSecondText, Tizen::Base::String& watchText);
+
+ /**
+ * This function sets the stopwatch lap values
+ *
+ * @return No return type
+ * @param watchTextList The list of watchText values
+ * lapTimeTextList The list of lapTimeList values
+ * tempTicker A string
+ * checkFlag An Integer
+ */
+ void SetStopWatchLaps(Tizen::Base::Collection::ArrayList& watchTextList, Tizen::Base::Collection::ArrayList& lapTimeTextList, Tizen::Base::String& tempTicker, int& checkFlag);
+
+ /**
+ * This function sets the stopwatch values and its status
+ *
+ * @return No return type
+ * @param status The status of StopWatch
+ * startTick Time at which start button is clicked
+ * tempTick difference between stopTick and restartTick
+ * restartTick Time at which restart button is clicked
+ * stopTick Time at which stop button is clicked
+ * milliSecondText milliSeconds when the app is terminated
+ * watchText watchText when the app is terminated
+ */
+ void SetStopWatchValue(int& status, Tizen::Base::String& startTick, Tizen::Base::String& tempTick, Tizen::Base::String& restartTick, Tizen::Base::String& stopTick, Tizen::Base::String& milliSecondText, Tizen::Base::String& watchText);
+
+ void SetStatus(int& status);
+private:
+ /**
+ * Default constructor
+ */
+ StopWatchPresentationModel(void);
+
+ /**
+ * Default destructor
+ */
+ ~StopWatchPresentationModel(void);
+
+ /**
+ * This function constructs the instance of StopWatchPresentationModel
+ *
+ */
+ result Construct(void);
+
+ /**
+ * This function creates the instance of StopWatchPresentationModel
+ *
+ * @return No return value
+ */
+ static void CreateInstance(void);
+
+ /**
+ * This function destroys the instance of StopWatchPresentationModel
+ *
+ * @return No return value
+ */
+ static void DestroyInstance(void);
+
+private:
+ Tizen::Base::String __checkFlagKey;
+ Tizen::Base::String __LapCountKey;
+ Tizen::Base::String __millisecondTextKey;
+ Tizen::App::AppRegistry* __pAppRegistry;
+ static StopWatchPresentationModel* __pInstance;
+ Tizen::Base::String __restartTick;
+ Tizen::Base::String __startTick;
+ Tizen::Base::String __statusKey;
+ Tizen::Base::String __stopTick;
+ Tizen::Base::String __tempTick;
+ Tizen::Base::String __tmpTicker;
+ Tizen::Base::String __watchTextKey;
+};
+
+#endif /* CLKSTOPWATCHPRESENTATIONMODEL_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/*
+ * @file ClkTimerForm.h
+ * @brief This header file contains the declarations of the TimerForm Class.
+ */
+
+#ifndef _CLK_TIMER_FORM_H_
+#define _CLK_TIMER_FORM_H_
+
+class TimerForm
+: public Tizen::Ui::Controls::Form
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::System::ISettingEventListener
+ {
+ public:
+ /**
+ * Default constructor
+ */
+ TimerForm(void);
+
+ /**
+ * Default destructor
+ */
+ virtual ~TimerForm(void);
+
+ /**
+ * @brief Displays the time
+ *
+ * @return No return value
+ */
+ void DisplayTimer(void);
+
+ /**
+ * @brief Initializes %TimerForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for %TimerForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * @brief Terminates the controls of the UI for %TimerForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ virtual result OnTerminating(void);
+
+ /**
+ * @brief Enable the buttons based on state value
+ *
+ * @return No return value
+ */
+ void SetButtonState(void);
+
+ /**
+ * @brief Updates the timer
+ *
+ * @return No return value
+ * @param[in] inputval
+ */
+ void SetTimer(const Tizen::Base::String &inputval);
+
+ public:
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ //ITimerEventListener
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ void SetNumberBitmaps(void);
+
+ void SetButtonFocus(void);
+
+ virtual void OnScreenOn(void){}
+ virtual void OnScreenOff(void);
+ virtual void OnScreenBrightnessChanged(int brightness) {}
+
+ private:
+ Tizen::Base::String __focusKey;
+ Tizen::Base::String __inputText;
+ bool __isHourSelected;
+ bool __isMinuteSelected;
+ bool __isSecondSelected;
+ bool __isTimerUp;
+ Tizen::App::AppRegistry* __pAppRegistry;
+ Tizen::Ui::Controls::Button* __pBtnHourDisplay;
+ Tizen::Ui::Controls::Button* __pBtnMinuteDisplay;
+ Tizen::Ui::Controls::Button* __pBtnReset;
+ Tizen::Ui::Controls::Button* __pBtnRestart;
+ Tizen::Ui::Controls::Button* __pBtnSecondDisplay;
+ Tizen::Ui::Controls::Button* __pBtnSetHours;
+ Tizen::Ui::Controls::Button* __pBtnSetMinutes;
+ Tizen::Ui::Controls::Button* __pBtnSetSeconds;
+ Tizen::Ui::Controls::Button* __pBtnStart;
+ Tizen::Ui::Controls::Button* __pBtnStop;
+ Tizen::Ui::Controls::Button* __pButton0;
+ Tizen::Ui::Controls::Button* __pButton1;
+ Tizen::Ui::Controls::Button* __pButton2;
+ Tizen::Ui::Controls::Button* __pButton3;
+ Tizen::Ui::Controls::Button* __pButton4;
+ Tizen::Ui::Controls::Button* __pButton5;
+ Tizen::Ui::Controls::Button* __pButton6;
+ Tizen::Ui::Controls::Button* __pButton7;
+ Tizen::Ui::Controls::Button* __pButton8;
+ Tizen::Ui::Controls::Button* __pButton9;
+ Tizen::Ui::Controls::Button* __pButtonClr;
+ Tizen::Ui::Controls::Label* __pDisplayLabel;
+ Tizen::Ui::Controls::Panel* __pInputPanel;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::Ui::Controls::Panel* __pTimerPanel;
+ Tizen::Ui::Controls::Panel* __pTimerStartedPanel;
+ long long __restartTick;
+ int __spanHours;
+ int __spanMilliSeconds;
+ int __spanMinutes;
+ int __spanSeconds;
+ long long __startTick;
+ int __status;
+ long long __stopTick;
+ int __timerResetFlag;
+ Tizen::Base::String __timerResetKey;
+ long long __tmpTick;
+ Tizen::Base::String __userSetValue;
+ Tizen::Base::DateTime __registeredTime;
+ bool __zeroClicked;
+ int __count;
+ };
+
+#endif // _CLK_TIMER_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/*
+ * @file ClkTimerPresentationModel.h
+ * @brief This header file contains the declarations of the TimerPresentationModel Class.
+ */
+
+#ifndef CLKTIMERPRESENTATIONMODEL_H_
+#define CLKTIMERPRESENTATIONMODEL_H_
+
+class TimerPresentationModel
+{
+public:
+ /**
+ * This function returns the instance of TimerPresentationModel
+ *
+ * @return The instance of TimerPresentationModel
+ */
+ static TimerPresentationModel* GetInstance();
+
+ /**
+ * This function gets the timer value and its status
+ *
+ * @return No return type
+ * @param timerValue The current Timer value
+ * status The status of Timer
+ * startTick Time at which start button is clicked
+ * tempTick difference between stopTick and restartTick
+ * restartTick Time at which restart button is clicked
+ * stopTick Time at which stop button is clicked
+ * userSetValue The timer value set by user
+ */
+ void GetTimerValue(Tizen::Base::DateTime& timerValue, Tizen::Base::String& remainingTime, int& status, Tizen::Base::String& startTick, Tizen::Base::String& tempTick, Tizen::Base::String& restartTick, Tizen::Base::String& stopTick, Tizen::Base::String& userSetValue, Tizen::Base::String& registeredValue);
+
+ /**
+ * This function sets the timer value and its status
+ *
+ * @return No return type
+ * @param remainingTime The remaining time of Timer
+ * status The status of Timer
+ * startTick Time at which start button is clicked
+ * tempTick difference between stopTick and restartTick
+ * restartTick Time at which restart button is clicked
+ * stopTick Time at which stop button is clicked
+ * userSetValue The timer value set by user
+ */
+ void SetTimerValue(const Tizen::Base::DateTime& remainingTime, int& status, Tizen::Base::String& startTick, Tizen::Base::String& tempTick, Tizen::Base::String& restartTick, Tizen::Base::String& stopTick, Tizen::Base::String& userSetValue, Tizen::Base::String& registeredValue);
+
+ void SetStatus(int& status);
+
+ void SetTimerTime(const Tizen::Base::DateTime& dateTime);
+
+ void SetRegisteredTime(Tizen::Base::DateTime& dateTime);
+
+ void SetFocus(const int& value);
+private:
+ /**
+ * Default constructor
+ */
+ TimerPresentationModel(void);
+
+ /**
+ * Default destructor
+ */
+ ~TimerPresentationModel(void);
+
+ /**
+ * This function constructs the instance of TimerPresentationModel
+ *
+ */
+ result Construct(void);
+
+ /**
+ * This function creates the instance of TimerPresentationModel
+ *
+ * @return No return value
+ */
+ static void CreateInstance(void);
+
+ /**
+ * This function destroys the instance of TimerPresentationModel
+ *
+ * @return No return value
+ */
+ static void DestroyInstance(void);
+
+private:
+ Tizen::Base::String __focusKey;
+ Tizen::Base::String __nameKey;
+ Tizen::App::AppRegistry* __pAppRegistry;
+ static TimerPresentationModel* __pInstance;
+ Tizen::Base::String __remainingTimeKey;
+ Tizen::Base::String __restartTickKey;
+ Tizen::Base::String __statusKey;
+ Tizen::Base::String __startTickKey;
+ Tizen::Base::String __stopTickKey;
+ Tizen::Base::String __tempTickKey;
+ Tizen::Base::String __userSetValueKey;
+ Tizen::Base::String __registeredValueKey;
+
+public:
+ Tizen::Base::String userValue;
+};
+
+#endif /* CLKTIMERPRESENTATIONMODEL_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTimerRingingForm.h
+ * @brief This is the header file for TimerRingingForm class
+ */
+
+#ifndef CLKTIMERRINGINGFORM_H_
+#define CLKTIMERRINGINGFORM_H_
+
+#include <FTelCallManager.h>
+#include <FTelCallInfo.h>
+
+class TimerRingingForm
+: public Tizen::Ui::Controls::Form
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Media::IPlayerEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::System::ISettingEventListener
+ , public Tizen::Telephony::ITelephonyCallEventListener
+ {
+ public:
+ /**
+ * @brief The Default constructor
+ */
+ TimerRingingForm();
+
+ /**
+ * @brief The Default destructor
+ */
+ virtual ~TimerRingingForm();
+
+ /**
+ * @brief Initializes this TimerRingingForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for TimerRingingForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result OnInitializing(void);
+
+ virtual result OnTerminating(void);
+
+ public:
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //ISceenEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ // ITimerEventListener
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ //ITelephonyCallEventListener
+ void OnTelephonyCallStatusChangedN (Tizen::Telephony::CallStatus callStatus, Tizen::Telephony::CallInfo *pCallInfo);
+
+ // IPlayerEventListener
+ virtual void OnPlayerOpened(result r) {}
+ virtual void OnPlayerEndOfClip(void) {}
+ virtual void OnPlayerBuffering(int percent) {}
+ virtual void OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r) {}
+ virtual void OnPlayerInterrupted(void) {}
+ virtual void OnPlayerReleased(void);
+ virtual void OnPlayerSeekCompleted(result r) {}
+ virtual void OnPlayerAudioFocusChanged (void);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnScreenOn(void){}
+ virtual void OnScreenOff(void);
+ virtual void OnScreenBrightnessChanged(int brightness) {}
+
+ private:
+ Tizen::Telephony::CallManager __callManager;
+ bool __nextSceneExist;
+ Tizen::Media::Player* __pPlayer;
+ Tizen::Ui::Controls::Button* __pStopButton;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::Ui::Controls::Label* __pTimerTimeLabel;
+ int __timerCalledCount;
+ bool __timerExpired;
+ };
+
+#endif /* CLKTIMERRINGINGFORM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTimerRingingLockForm.h
+ * @brief This is the header file for TimerRingingLockForm class
+ */
+
+#ifndef _CLK_TIMER_RINGING_LOCK_FORM_H_
+#define _CLK_TIMER_RINGING_LOCK_FORM_H_
+
+#include <FTelCallManager.h>
+#include <FTelCallInfo.h>
+
+#include "ClkAlarmRingingSnoozeOffPanel.h"
+
+class TimerRingingLockForm
+: public Tizen::Ui::Controls::Form
+ , public IAlarmRingingLockPanelEvent
+, public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Media::IPlayerEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::Telephony::ITelephonyCallEventListener
+ {
+ public:
+ /**
+ * @brief The Default constructor
+ */
+ TimerRingingLockForm();
+
+ /**
+ * @brief The Default destructor
+ */
+ virtual ~TimerRingingLockForm();
+
+ /**
+ * @brief Initializes this TimerRingingLockForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for TimerRingingLockForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result OnInitializing(void);
+
+ virtual result OnTerminating(void);
+
+ public:
+ //IAlarmRingingLockPanelEvent
+ virtual void OnAlarmRingingLockEvent(AlarmRingingCommandId commandId);
+
+ //ISceenEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ // ITimerEventListener
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ //ITelephonyCallEventListener
+ void OnTelephonyCallStatusChangedN (Tizen::Telephony::CallStatus callStatus, Tizen::Telephony::CallInfo *pCallInfo);
+
+ // IPlayerEventListener
+ virtual void OnPlayerOpened(result r) {}
+ virtual void OnPlayerEndOfClip(void) {}
+ virtual void OnPlayerBuffering(int percent) {}
+ virtual void OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason r) {}
+ virtual void OnPlayerInterrupted(void) {}
+ virtual void OnPlayerReleased(void) {}
+ virtual void OnPlayerSeekCompleted(result r) {}
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ virtual void OnScreenOn(void){}
+ virtual void OnScreenOff(void);
+ virtual void OnScreenBrightnessChanged(int brightness) {}
+
+ private:
+ Tizen::Telephony::CallManager __callManager;
+ Tizen::Media::Player __player;
+ AlarmRingingSnoozeOffPanel* __pAlarmRingingSnoozeOffPanel;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ Tizen::Ui::Controls::Label* __pTimerTimeLabel;
+ int __timerCalledCount;
+ };
+
+#endif /* CLKTIMERRINGINGFORM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/*
+ * @file ToggleCustomItem.h
+ * @brief This is the header file for the ToggleCustomItem class
+ */
+
+#ifndef _CLK_SETTING_TOGGLE_CUSTOM_ITEM_H_
+#define _CLK_SETTING_TOGGLE_CUSTOM_ITEM_H_
+
+class ToggleCustomItem
+: public Tizen::Ui::Controls::CustomItem
+ {
+ public:
+ /**
+ * @brief The Default constructor
+ */
+ ToggleCustomItem(void);
+
+ /**
+ * @brief The Default destructor
+ */
+ virtual ~ToggleCustomItem(void);
+
+ /**
+ * @brief Initializes this instance of %DropDownCustomItem.
+ *
+ * @return An error code
+ * @param[in] void An instance of the Rectangle class @n
+ * This instance represents the x and y coordinates of the top-left corner of the created window along with
+ * the width and height of the window.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Construct(int width, int height);
+
+ //getter and setter methods for __text
+
+ /**
+ * @brief The method used to get the text of CustomItem
+ *
+ * @return A String
+ */
+ Tizen::Base::String GetText(void);
+
+ /**
+ * @brief Add all the required elements and create the Custom Item.
+ *
+ * @return An error code
+ * @param[in] void An instance of the Rectangle class @n
+ * This instance represents the x and y coordinates of the top-left corner of the created window along with
+ * the width and height of the window.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result Make(void);
+
+ /**
+ * @brief The method used to set the text of CustomItem
+ *
+ * @return No return value
+ * @param[in] text A string to set
+ */
+ void SetText(Tizen::Base::String& text);
+
+ private:
+ int __height; ///Height of the SettingToggleCustomItem Instance
+ Tizen::Base::String __text; ///The Text for the Toggle Button
+ int __width; ///Width of the SettingToggleCustomItem Instance
+ };
+
+#endif /* _CLK_SETTING_TOGGLE_CUSTOM_ITEM_H_ */
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+//
+/**
+ * @file ClkTypes.h
+ * @brief This is the header file for TableType
+ */
+
+#ifndef _CLK_TYPES_H_
+#define _CLK_TYPES_H_
+
+static const int MAX_WORLDCLOCK_TABLE_COLUMN = 10;
+static const int MAX_ALARM_TABLE_COLUMN = 15;
+static const int LIST_ITEM_HEIGHT = 204;
+
+extern const int DURATION_RINGING_UI_UPDATION;
+extern const int MIN_Y_TOUCH_POSITION;
+extern const int MAX_Y_TOUCH_POSITION;
+extern const int MIN_Y_TOUCH_POSITION_SNOOZEOFF;
+extern const int MAX_Y_TOUCH_POSITION_SNOOZEOFF;
+extern const int CONTROL_WIDTH_OFFSET;
+extern const int Y_RINGER_LOCK_PANEL_OFFSET;
+extern const int H_RINGER_LOCK_PANEL;
+extern const int Y_RINGER_LOCK_PANEL_RELATIVE_OFFSET;
+extern const int REQUEST_ID_SHOW_TIMERFORM;
+
+
+extern const wchar_t* IDB_CONTROLBAR_ICON_ALARM;
+extern const wchar_t* IDB_CONTROLBAR_ICON_ALARM_NORMAL;
+extern const wchar_t* IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED;
+extern const wchar_t* IDB_CONTROLBAR_ICON_WORLDCLOCK;
+extern const wchar_t* IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL;
+extern const wchar_t* IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED;
+extern const wchar_t* IDB_CONTROLBAR_ICON_STOPWATCH;
+extern const wchar_t* IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL;
+extern const wchar_t* IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED;
+extern const wchar_t* IDB_CONTROLBAR_ICON_TIMER;
+extern const wchar_t* IDB_CONTROLBAR_ICON_TIMER_NORMAL;
+extern const wchar_t* IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED;
+extern const wchar_t* IDB_EDIT_BACKGROUND;
+extern const wchar_t* IDB_LIST_LEFTSIDE;
+extern const wchar_t* IDB_BUTTON_SWEEP_DELETE;
+extern const wchar_t* IDB_BUTTON_SWEEP_DELETE_PRESS;
+extern const wchar_t* IDB_ALARM_CLOCK;
+extern const wchar_t* IDB_CHECK_BG;
+extern const wchar_t* IDB_CHECK_CHECKING;
+extern const wchar_t* IDB_LIST_EXPAND_CLOSED;
+extern const wchar_t* IDB_LIST_EXPAND_CLOSED_PRESS;
+extern const wchar_t* IDB_LIST_EXPAND_OPENED;
+extern const wchar_t* IDB_LIST_EXPAND_OPENED_PRESS;
+extern const wchar_t* IDB_LIST_GROUP_BG;
+extern const wchar_t* IDB_LIST_GROUP_BG_PRESS;
+extern const wchar_t* IDB_BUTTON_RADIO_PRESS1;
+extern const wchar_t* IDB_BUTTON_RADIO_PRESS2;
+extern const wchar_t* IDB_WORLD_CLOCK_BG1;
+extern const wchar_t* IDB_WORLD_CLOCK_BG2;
+extern const wchar_t* IDB_TIMER_FOCUS_BG;
+extern const wchar_t* IDB_TIMER_BG;
+extern const wchar_t* IDB_TIMER_NORMAL_BG;
+extern const wchar_t* IDB_STOPWATCH_ZERO;
+extern const wchar_t* IDB_STOPWATCH_ONE;
+extern const wchar_t* IDB_STOPWATCH_TWO;
+extern const wchar_t* IDB_STOPWATCH_THREE;
+extern const wchar_t* IDB_STOPWATCH_FOUR;
+extern const wchar_t* IDB_STOPWATCH_FIVE;
+extern const wchar_t* IDB_STOPWATCH_SIX;
+extern const wchar_t* IDB_STOPWATCH_SEVEN;
+extern const wchar_t* IDB_STOPWATCH_EIGHT;
+extern const wchar_t* IDB_STOPWATCH_NINE;
+extern const wchar_t* IDB_STOPWATCH_SMALL_ZERO;
+extern const wchar_t* IDB_STOPWATCH_SMALL_ONE;
+extern const wchar_t* IDB_STOPWATCH_SMALL_TWO;
+extern const wchar_t* IDB_STOPWATCH_SMALL_THREE;
+extern const wchar_t* IDB_STOPWATCH_SMALL_FOUR;
+extern const wchar_t* IDB_STOPWATCH_SMALL_FIVE;
+extern const wchar_t* IDB_STOPWATCH_SMALL_SIX;
+extern const wchar_t* IDB_STOPWATCH_SMALL_SEVEN;
+extern const wchar_t* IDB_STOPWATCH_SMALL_EIGHT;
+extern const wchar_t* IDB_STOPWATCH_SMALL_NINE;
+extern const wchar_t* IDB_ALARM_ICON_OFF;
+extern const wchar_t* IDB_ALARM_ICON_ON;
+extern const wchar_t* IDB_ALARM_ICON_SNOOZE;
+
+extern const wchar_t* IDB_RINGER_LOCK_SNOOZE_RIGHT_ARROW;
+extern const wchar_t* IDB_RINGER_LOCK_SNOOZE;
+extern const wchar_t* IDB_RINGER_LOCK_SNOOZE_PRESSED;
+extern const wchar_t* IDB_RINGER_LOCK_STOP;
+extern const wchar_t* IDB_RINGER_LOCK_STOP_PRESSED;
+extern const wchar_t* IDB_RINGER_LOCK_STOP_LEFT_ARROW;
+extern const wchar_t* IDB_RINGER_LOCK_STOP_RIGHT_ARROW;
+
+extern const wchar_t* IDB_WORLD_CLOCK_WHITE_BG;
+extern const wchar_t* IDB_WORLD_CLOCK_BLACK_BG;
+extern const wchar_t* IDB_WORLD_CLOCK_WHITE_FG;
+extern const wchar_t* IDB_WORLD_CLOCK_BLACK_FG;
+extern const wchar_t* IDB_ALARM_TIME_BG ;
+extern const wchar_t* IDB_ALARM_TIME_NORMAL_BG;
+extern const wchar_t* IDB_ALARM_TIME_FOCUS_BG;
+extern const wchar_t* IDB_ALARM_TIME_TOGGLE_AM_BG;
+extern const wchar_t* IDB_ALARM_TIME_TOGGLE_PM_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_FOCUS_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_SUN_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_SUN_FOCUS_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_MON_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_MON_FOCUS_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_TUE_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_TUE_FOCUS_BG;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_WED_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_WED_FOCUS_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_THU_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_THU_FOCUS_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_FRI_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_FRI_FOCUS_BG;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_SAT_BG ;
+extern const wchar_t* IDB_ALARM_TIME_DAYS_SAT_FOCUS_BG ;
+extern const wchar_t* IDS_HOUR_IMAGE_PATH ;
+extern const wchar_t* IDS_MIN_IMAGE_PATH ;
+extern const wchar_t* IDS_SEC_IMAGE_PATH ;
+extern const wchar_t* IDS_CLOCK_TAB4_ALARM_TONE ;
+
+enum ClockDbTableTypes
+{
+ DB_TYPE_INVALID = -1,
+ DB_TYPE_WORLDCLOCK,
+ DB_TYPE_ALARMDATA,
+ DB_TYPE_MAX
+
+};
+
+
+#endif // _CLK_TYPES_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkWorldClock.h
+ * @brief This is the header file for WorldClock class
+ */
+
+#ifndef _CLK_WORLD_CLOCK_H_
+#define _CLK_WORLD_CLOCK_H_
+
+/**
+ * @class WorldClock
+ * @brief This is a model class which contains all the properties of WorldClock class
+ * and the methods to get and set the values for those properties
+ */
+class WorldClock
+: public Tizen::Base::Object
+ {
+ public:
+ /**
+ * @brief Default constructor
+ */
+ WorldClock(void);
+
+ /**
+ *@brief Initialises the instance the class WorldClock with the specified parameter
+ */
+ WorldClock(const WorldClock& rhs);
+
+ /**
+ *@brief Default destructor
+ */
+ ~WorldClock(void);
+
+ /**
+ *@brief "=" operator overloading
+ */
+ WorldClock& operator =(const WorldClock& pWorldClock);
+
+ /**
+ * This function gets the DaylightSavingTime
+ *
+ * @return integer
+ * @param No parameter
+ */
+ const int GetDstTime(void);
+
+ /**
+ * This function gets the order for the WorldClock object
+ *
+ * @return integer
+ * @param none
+ */
+ const int GetOrder(void);
+
+ /**
+ * This function gets the timezone(GMT difference in minutes) forthe WorldClock object
+ *
+ * @return An integer
+ * @param none
+ */
+ const int GetTimeZone(void);
+
+ /**
+ * This function gets the WorldClockCity
+ *
+ * @return A String
+ * @param No parameter
+ */
+ const Tizen::Base::String GetWorldClockCity(void);
+
+ /**
+ * This function gets the WorldClockCountry
+ *
+ * @return A String
+ * @param No parameter
+ */
+ const Tizen::Base::String GetWorldClockCountry(void);
+
+ /**
+ * This function gets the WorldClockId
+ *
+ * @return A String
+ * @param No parameter
+ */
+ const Tizen::Base::String GetWorldClockId(void);
+
+ /**
+ * This function sets the daylightsavingTime of the WorldClock object
+ *
+ * @return No return type
+ * @param dstTime To set the order of the Clock item in the list
+ */
+ void SetDstTime(const int dstTime);
+
+ /**
+ * This function sets the order of the WorldClock object
+ *
+ * @return No return type
+ * @param order To set the order of the Clock item in the list
+ */
+ void SetOrder(const int order);
+
+ /**
+ * This function sets the timeZone
+ *
+ * @return No return type
+ * @param timeZone The GMT difference in minutes
+ */
+ void SetTimeZone(const int timeZone);
+
+ /**
+ * This function sets the WorldClockCity for the WorldClock object
+ *
+ * @return No return type
+ * @param City The City for the WorldClock object
+ */
+ void SetWorldClockCity(const Tizen::Base::String& city);
+
+ /**
+ * This function sets the WorldClockCountry for the WorldClock object
+ *
+ * @return No return type
+ * @param Country The Country for the WorldClock object
+ */
+ void SetWorldClockCountry(const Tizen::Base::String& worldClockCountry);
+
+ /**
+ * This function sets the ParentId for the WorldClock object
+ *
+ * @return No return type
+ * @param worldClockID The worldClockID for the WorldClock object
+ */
+ void SetWorldClockId(const Tizen::Base::String& worldClockID);
+
+ private:
+ int __dstTime;
+ int __order;
+ int __timeZone;
+ Tizen::Base::String __worldClockCity;
+ Tizen::Base::String __worldClockCountry;
+ Tizen::Base::String __worldClockId;
+ };
+
+#endif //_CLK_WORLD_CLOCK_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file WorldClockDeleteListForm.h
+ * @brief This is the header file for WorldClockDeleteListForm class
+ */
+
+#ifndef _CLK_WORLD_CLOCK_DELETE_LIST_FORM_H_
+#define _CLK_WORLD_CLOCK_DELETE_LIST_FORM_H_
+
+class WorldClockDeleteListForm
+: public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ {
+ public:
+ /**
+ *@brief Default destructor
+ */
+ WorldClockDeleteListForm(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~WorldClockDeleteListForm(void);
+
+ /**
+ * @brief Initializes %WorldClockDeleteListForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for %WorldClockDeleteListForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * @brief Terminates the controls of the UI for %WorldClockDeleteListForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ */
+ virtual result OnTerminating(void);
+
+ public:
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status){};
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+ virtual void OnListViewItemReordered(Tizen::Ui::Controls::ListView& listView, int indexFrom, int indexTo);
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ private:
+ Tizen::Base::Collection::ArrayList* __pData;
+ Tizen::Ui::Controls::ListView* __pListView; // The GroupedListView which contains the history lists
+ Tizen::Ui::Controls::CheckButton* __pSelectAllCheck;
+ Tizen::Ui::Controls::Label* __pSelectedLabel;
+ bool __sameOrder;
+ int __selectedCount;
+ int __selectedItemCount;
+ Tizen::Base::Collection::ArrayList __worldClockList;
+ Tizen::Base::Collection::ArrayList __previousWorldClockList;
+ Tizen::Base::Collection::ArrayList __selectedItemList;
+
+ };
+
+#endif // _CLK_WORLD_CLOCK_DELETE_LIST_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/*
+ * @file ClkWorldClockListForm.h
+ * @brief This is the header file for WorldClockListForm class
+ */
+
+#ifndef _CLK_WORLD_CLOCK_LIST_FORM_H_
+#define _CLK_WORLD_CLOCK_LIST_FORM_H_
+
+#include <FUi.h>
+
+#include "ClkDaylightSavingPopUp.h"
+
+class WorldClockListForm
+ : public Tizen::Ui::Controls::Form
+ , public IDstTimeEventListener
+ , public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IFormMenuEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ , public Tizen::System::ISettingEventListener
+ {
+ public:
+ /**
+ *@brief Default destructor
+ */
+ WorldClockListForm(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~WorldClockListForm(void);
+
+ /**
+ * @brief Initializes %WorldClockListForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for %WorldClockListForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ * @brief Terminates the controls of the UI for %WorldClockListForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ virtual result OnTerminating(void);
+
+ /**
+ * @brief Initialises the context menu at the point for %WorldClockListForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ result InitContextMenu(Tizen::Graphics::Point& p);
+
+ public:
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase * CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IDstTimeEventListener
+ virtual void OnDaylightSavingPopUpItemSelected(int dstTime);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ virtual void OnFormMenuRequested(Tizen::Ui::Controls::Form& source);
+
+ // IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status){};
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+ // ITimerEventListener
+ virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ virtual void OnSettingChanged(Tizen::Base::String& key);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+ private:
+ int __dstTime;
+ int __index;
+ bool __showPopup;
+ Tizen::Ui::Controls::ListContextItem* __pItemContext;
+ Tizen::Ui::Controls::ListContextItem* __pItemContextLandscape;
+ Tizen::Ui::Controls::ListView* __pListview;
+ Tizen::Ui::Controls::ContextMenu* __pMenu;
+ Tizen::Ui::Controls::OptionMenu* __pOptionMenu;
+ DaylightSavingPopUp* __pPopUp;
+ Tizen::Base::Runtime::Timer* __pTimer;
+ int __timerResetFlag;
+ Tizen::Base::String __timerResetKey;
+
+ };
+
+#endif // _CLK_WORLD_CLOCK_LIST_FORM_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/*
+ * @file ClkWorldClockPresentationModel.h
+ * @brief This is the header file for WorldClockPresentationModel class
+ */
+
+
+#ifndef _CLK_WORLD_CLOCK_PRESENTATION_MODEL_H_
+#define _CLK_WORLD_CLOCK_PRESENTATION_MODEL_H_
+
+#include "ClkWorldClock.h"
+
+/**
+ * @class WorldClockPresentationModel
+ * @brief This class declares functions which will manage database
+ */
+class WorldClockPresentationModel
+{
+public:
+ /**
+ * This function adds the worldClock to the WorldClock table
+ *
+ * @return An error code
+ * @param worldClock The worldClock
+ * @exception E_SUCCESS The worldClock is inserted successfully to the table
+ * @exception E_FAILURE The worldClock is not inserted successfully
+ */
+ result AddWorldClock(WorldClock& worldClock);
+
+ /**
+ * @param worlClockCount The no of worldClocks present
+ * @param worldClockList An ArrayList where the added WorldClocks will be stored
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful as the list is not being created
+ * @remarks To work properly , the worlClock count and and existing list should be passed
+ */
+ result CreateAddedWorldClockList(int worldClockCount, Tizen::Base::Collection::ArrayList& worldClockList);
+
+ /**
+ * This function deletes the worldClock from the WorldClock table
+ *
+ * @return An error code
+ * @param worldClockId The worldClockId
+ * @exception E_SUCCESS The worldClock is successfully deleted
+ * @exception E_FAILURE The worldClock deletion is unsuccessful
+ */
+ result DeleteWorldClock(int worldClockId);
+
+ /**
+ * This function deletes the list of added worldClocks
+ *
+ * @return An error code
+ * @param worldClockList An ArrayList which contains worldclocks to be deleted
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful as the list is not being created
+ * @remarks To work properly , the worlClock count and and existing list should be passed
+ */
+ result DeleteWorldClock(Tizen::Base::Collection::ArrayList& worldclocklist);
+
+ /**
+ * This function returns the number of added worldClocks
+ *
+ * @return An error code
+ * @param count output parameter which gets the count of added worldClock
+ */
+ result GetAddedClockCount(int& addedWorlClockcount);
+
+ /**
+ * This function gets the list of added worldClocks
+ *
+ * @return An error code
+ * @param startIndex
+ * @param limit
+ * @param worldClockList An ArrayList to get the added WorldClocks
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful as the list is not being created
+ * @remarks To work properly , the worlClock count and and existing list should be passed
+ */
+ result GetAddedWorldClock(int startIndex, int limit, Tizen::Base::Collection::ArrayList& worldClockList);
+
+ /**
+ * This function gets the list of cities from the searchText
+ *
+ * @return A pointer to arrayList
+ * @param searchText The text to be searched
+ */
+ Tizen::Base::Collection::ArrayList* GetCityList(const Tizen::Base::String& searchText = L"");
+
+ /**
+ * This function returns the instance of WorldClockPresentationModel
+ *
+ * @return The instance of WorldClockPresentationModel
+ */
+ static WorldClockPresentationModel* GetInstance();
+
+ /**
+ * Initialize WorldClockPresentation Model
+ */
+ result Initialize(void);
+
+ /**
+ * This function updates DST time of worldclock the worldclock
+ *
+ * @return An error code
+ * @param worldClock
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful as the list is not being created
+ */
+ result UpdateWorldClockDst(WorldClock& worldclock);
+
+ /**
+ * This function updates Order in which the worldclock is listed
+ *
+ * @return An error code
+ * @param worldClock
+ * @exception E_SUCCESS The method is successful
+ * @exception E_FAILURE The method is not successful as the list is not being created
+ */
+ result UpdateWorldClockOrder(WorldClock& worldclock);
+
+private:
+ /**
+ * Default constructor
+ */
+ WorldClockPresentationModel(void);
+
+ /**
+ * Default destructor
+ */
+ ~WorldClockPresentationModel(void);
+
+ /**
+ * This function constructs the instance of WorldClockPresentationModel
+ *
+ */
+ result Construct(void);
+
+ /**
+ * This function creates the instance of WorldClockPresentationModel
+ *
+ * @return No return value
+ */
+ static void CreateInstance(void);
+
+ /**
+ * This function destroys the instance of WorldClockPresentationModel
+ *
+ * @return No return value
+ */
+ static void DestroyInstance(void);
+
+private:
+ static WorldClockPresentationModel* __pInstance;
+};
+
+#endif //_CLK_WORLD_CLOCK_PRESENTATION_MODEL_H_
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/*
+ * @file WorldClockReorderForm.h
+ * @brief This is the header file for the WorldClockReorderForm class
+ */
+
+
+#ifndef _CLK_WORLD_CLOCK_REORDER_FORM_H_
+#define _CLK_WORLD_CLOCK_REORDER_FORM_H_
+
+class WorldClockReorderForm
+: public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+ {
+ public:
+ /**
+ *@brief Default destructor
+ */
+ WorldClockReorderForm(void);
+
+ /**
+ *@brief Default destructor
+ */
+ virtual ~WorldClockReorderForm(void);
+
+ /**
+ * @brief Initializes this %WorldClockReorderForm.
+ *
+ * @return An error code
+ * @param[in] void
+ * @exception true The method is successful.
+ * @exception false An error occurred.
+ */
+ bool Initialize(void);
+
+ /**
+ * @brief Initializes the controls of the UI for %WorldClockReorderForm.
+ *
+ * @return An error code
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_STATE This instance has already been constructed.
+ * @exception E_INVALID_ARG A specified input parameter is invalid.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ */
+ virtual result OnInitializing(void);
+
+ public:
+ //IListViewItemProvider
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth);
+ virtual int GetItemCount(void);
+
+ //IActionEventListener
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ //IFormBackEventListener
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ //IListViewItemEventListener
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status){};
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status){};
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
+ virtual void OnListViewItemReordered(Tizen::Ui::Controls::ListView & listView, int indexFrom,int indexTo);
+
+ //ISceneEventListener
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId){};
+
+ private:
+ Tizen::Base::Collection::ArrayList* __pData;
+ Tizen::Ui::Controls::ListView* __pListView; // The GroupedListView which contains the history lists
+ Tizen::Base::Collection::ArrayList __worldClockList;
+ };
+
+#endif // _CLK_WORLD_CLOCK_REORDER_FORM_H_
--- /dev/null
+static const wchar_t* IDC_CITY_LISTVIEW = L"IDC_CITY_LISTVIEW";
+static const wchar_t* IDC_CITY_SEARCHBAR = L"IDC_CITY_SEARCHBAR";
+static const wchar_t* IDC_FOOTERITEM1 = L"FOOTERITEM1";
+static const wchar_t* IDC_FOOTERITEM2 = L"FOOTERITEM2";
+
+
+static const wchar_t* IDC_LISTVIEW_ALARM = L"IDC_LISTVIEW_ALARM";
+static const wchar_t* IDC_SELECT_ALL = L"IDC_SELECT_ALL";
+static const wchar_t* IDC_back = L"back";
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>PhYwYqDa1I</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.core.cpu.arch.armv7">true</Feature>
+ <Feature Name="http://tizen.org/feature/platform.core.cpu.arch.x86">true</Feature>
+ <Feature Name="http://tizen.org/feature/platform.core.fpu.arch.vfpv3">true</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges>
+ <Privilege>http://tizen.org/privilege/uimanager</Privilege>
+ <Privilege>http://tizen.org/privilege/alarm</Privilege>
+ <Privilege>http://tizen.org/privilege/application.launch</Privilege>
+ <Privilege>http://tizen.org/privilege/notification</Privilege>
+ <Privilege>http://tizen.org/privilege/power</Privilege>
+ <Privilege>http://tizen.org/privilege/appusage</Privilege>
+ <Privilege>http://tizen.org/privilege/setting</Privilege>
+ <Privilege>http://tizen.org/privilege/appmanager.launch</Privilege>
+ <Privilege>http://tizen.org/privilege/telephonymanager</Privilege>
+ <Privilege>http://tizen.org/privilege/vibrator</Privilege>
+ </Privileges>
+ <UiApp LaunchingHistoryVisible="True" Main="True" MenuIconVisible="True" Name="Clock">
+ <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-PH">Clock</DisplayName>
+ <DisplayName Locale="zho-SG">时钟</DisplayName>
+ <DisplayName Locale="kat-GE">საათი</DisplayName>
+ <DisplayName Locale="est-EE">Kell</DisplayName>
+ <DisplayName Locale="ukr-UA">Годинник</DisplayName>
+ <DisplayName Locale="srp-RS">Sat</DisplayName>
+ <DisplayName Locale="hrv-HR">Sat</DisplayName>
+ <DisplayName Locale="isl-IS">Klukka</DisplayName>
+ <DisplayName Locale="ell-GR">Ρολόι</DisplayName>
+ <DisplayName Locale="glg-ES">Reloxo</DisplayName>
+ <DisplayName Locale="lit-LT">Laikrodis</DisplayName>
+ <DisplayName Locale="aze-AZ">Saat</DisplayName>
+ <DisplayName Locale="eng-US">Clock</DisplayName>
+ <DisplayName Locale="mkd-MK">Часовник</DisplayName>
+ <DisplayName Locale="zho-HK">時鐘</DisplayName>
+ <DisplayName Locale="hye-AM">Ժամացույց</DisplayName>
+ <DisplayName Locale="hun-HU">Óra</DisplayName>
+ <DisplayName Locale="slk-SK">Hodiny</DisplayName>
+ <DisplayName Locale="ces-CZ">Hodiny</DisplayName>
+ <DisplayName Locale="fin-FI">Kello</DisplayName>
+ <DisplayName Locale="ara-AE">الساعة</DisplayName>
+ <DisplayName Locale="ita-IT">Orologio</DisplayName>
+ <DisplayName Locale="eus-ES">Ordularia</DisplayName>
+ <DisplayName Locale="tur-TR">Saat</DisplayName>
+ <DisplayName Locale="rus-RU">Часы</DisplayName>
+ <DisplayName Locale="cat-ES">Rellotge</DisplayName>
+ <DisplayName Locale="kaz-KZ">Сағат</DisplayName>
+ <DisplayName Locale="deu-DE">Uhr</DisplayName>
+ <DisplayName Locale="zho-CN">时钟</DisplayName>
+ <DisplayName Locale="por-PT">Relógio</DisplayName>
+ <DisplayName Locale="slv-SI">Ura</DisplayName>
+ <DisplayName Locale="fra-FR">Horloge</DisplayName>
+ <DisplayName Locale="ron-RO">Ceas</DisplayName>
+ <DisplayName Locale="hin-IN">घड़ी</DisplayName>
+ <DisplayName Locale="fra-CA">Horloge</DisplayName>
+ <DisplayName Locale="spa-ES">Reloj</DisplayName>
+ <DisplayName Locale="nld-NL">Klok</DisplayName>
+ <DisplayName Locale="dan-DK">Ur</DisplayName>
+ <DisplayName Locale="por-BR">Relógio</DisplayName>
+ <DisplayName Locale="bul-BG">Часовник</DisplayName>
+ <DisplayName Locale="zho-TW">時鐘</DisplayName>
+ <DisplayName Locale="jpn-JP">時計</DisplayName>
+ <DisplayName Locale="swe-SE">Klocka</DisplayName>
+ <DisplayName Locale="kor-KR">알람/시간</DisplayName>
+ <DisplayName Locale="spa-MX">Reloj</DisplayName>
+ <DisplayName Locale="nob-NO">Klokke</DisplayName>
+ <DisplayName Locale="uzb-UZ">Soat</DisplayName>
+ <DisplayName Locale="pol-PL">Zegar</DisplayName>
+ <DisplayName Locale="gle-IE">Clog</DisplayName>
+ <DisplayName Locale="eng-GB">Clock</DisplayName>
+ <DisplayName Locale="lav-LV">Pulkstenis</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" Type="Xhigh">mainmenu.png</Icon>
+ </Icons>
+ <LaunchConditions/>
+ </UiApp>
+ </Apps>
+</Manifest>
--- /dev/null
+Name: apps.Clock
+Summary: Clock application
+Version: 1.0.0.0
+Release: 1
+Group: TO_BE/FILLED_IN
+License: TO BE FILLED IN
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(osp-appfw)
+BuildRequires: pkgconfig(osp-uifw)
+BuildRequires: osp-appfw-internal-devel
+BuildRequires: osp-uifw-internal-devel
+BuildRequires: pkgconfig(osp-uifw)
+BuildRequires: osp-uifw-internal-devel
+BuildRequires: pkgconfig(osp-media)
+BuildRequires: osp-media-internal-devel
+BuildRequires: pkgconfig(osp-image)
+BuildRequires: osp-media-internal-devel
+BuildRequires: pkgconfig(osp-image-core)
+BuildRequires: pkgconfig(osp-telephony)
+BuildRequires: pkgconfig(osp-shell)
+BuildRequires: hash-signer
+
+%description
+Verification application: Clock
+
+%prep
+%setup -q
+
+%build
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%ifarch %{ix86}
+%if 0%{?simulator}
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%endif
+%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%endif
+
+# Call make instruction with smp support
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE.Flora %{buildroot}/usr/share/license/%{name}
+
+%make_install
+###### for package signing step ######
+PKG_ID=PhYwYqDa1I
+%define tizen_sign 1
+%define tizen_sign_base /usr/apps/${PKG_ID}
+%define tizen_sign_level platform
+%define tizen_author_sign 1
+%define tizen_dist_sign 1
+
+
+%post
+/sbin/ldconfig
+PKG_ID=PhYwYqDa1I
+echo "/usr/etc/package-manager/backend/tpk -i /usr/apps/"${PKG_ID}
+/usr/etc/package-manager/backend/tpk -i /usr/apps/${PKG_ID}
+cp -f /usr/lib/osp/osp-service-app-loader /usr/apps/${PKG_ID}/bin/Clock
+
+%postun
+/sbin/ldconfig
+PKG_ID=PhYwYqDa1I
+echo "/usr/etc/package-manager/backend/tpk -u "${PKG_ID}
+/usr/etc/package-manager/backend/tpk -u ${PKG_ID}
+
+%files
+%defattr(-,root,root,-)
+/usr/apps/*
+/usr/share/license/%{name}
--- /dev/null
+Name: apps.Clock
+Summary: MyFiles application
+Version: 1.0.0.0
+Release: 1
+Group: TO_BE/FILLED_IN
+License: TO BE FILLED IN
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(osp-content)
+BuildRequires: pkgconfig(osp-appfw)
+BuildRequires: pkgconfig(osp-uifw)
+BuildRequires: osp-appfw-internal-devel
+BuildRequires: osp-uifw-internal-devel
+BuildRequires: pkgconfig(osp-uifw)
+BuildRequires: osp-uifw-internal-devel
+BuildRequires: pkgconfig(osp-media)
+BuildRequires: osp-media-internal-devel
+BuildRequires: pkgconfig(osp-image)
+BuildRequires: osp-media-internal-devel
+BuildRequires: pkgconfig(osp-image-core)
+BuildRequires: pkgconfig(osp-net)
+BuildRequires: osp-net-internal-devel
+BuildRequires: pkgconfig(osp-locations)
+%description
+Verification application: MyFiles
+
+%prep
+%setup -q
+
+%build
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%ifarch %{ix86}
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%endif
+
+# Call make instruction with smp support
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%post
+/sbin/ldconfig
+PKG_ID=PhYwYqDa1I
+echo "/usr/etc/package-manager/backend/tpk -i /usr/apps/"${PKG_ID}
+/usr/etc/package-manager/backend/tpk -i /usr/apps/${PKG_ID}
+cp -f /usr/lib/osp/osp-service-app-loader /usr/apps/${PKG_ID}/bin/MyFiles
+
+%postun
+/sbin/ldconfig
+PKG_ID=PhYwYqDa1I
+echo "/usr/etc/package-manager/backend/tpk -u "${PKG_ID}
+/usr/etc/package-manager/backend/tpk -u ${PKG_ID}
+
+%files
+%defattr(-,root,root,-)
+/usr/apps/*
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">نغمة واهتزاز</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">المنطقة الزمنية</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 مرات</text>
+ <text id="IDS_COM_BODY_NOV">11</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">محدد %d</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">تحديد المنطقة الزمنية</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">اختيار الكل</text>
+ <text id="IDS_NOTHING_SELECTED">لا شيء محدد</text>
+ <text id="IDS_COM_BODY_DEC">12</text>
+ <text id="IDS_ALM_SK_CANCEL">إلغاء</text>
+ <text id="IDS_ALM_BODY_REPEAT">التكرار</text>
+ <text id="IDS_TMR_BODY_MIN1">دق</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">لا يوجد منبهات</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">لا توجد عناصر</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">كل يوم اثنين</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">التوقيت</text>
+ <text id="IDS_COM_SK_NEW">جديدة</text>
+ <text id="IDS_ALM_SK3_SAVE">حفظ</text>
+ <text id="IDS_COM_BODY_JUN">06</text>
+ <text id="IDS_ALM_BODY_TIME">التوقيت</text>
+ <text id="IDS_ALM_BODY_SNOOZE">غفوة</text>
+ <text id="IDS_COM_BODY_JUL">07</text>
+ <text id="IDS_SWT_BUTTON_RESTART">إعادة تشغيل</text>
+ <text id="IDS_ALM_BODY_TYPE">النوع</text>
+ <text id="IDS_TMR_SK3_STOP">إيقاف</text>
+ <text id="IDS_TMR_SK3_RESTART">إستئناف</text>
+ <text id="IDS_WCL_SK_DONE">تمت</text>
+ <text id="IDS_COM_BODY_APR">04</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 دقائق</text>
+ <text id="IDS_COM_BODY_MAY">05</text>
+ <text id="IDS_ALM_BODY_NAME">الاسم</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">اهتزاز</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">إعدادات DST</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">مدة الغفوة</text>
+ <text id="IDS_COM_BODY_MAR">03</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">تم تحديد تنبيه واحد</text>
+ <text id="IDS_ALM_BODY_MELODY">نغمة</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">كل يوم جمعة</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">إعادة ترتيب</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">كل يوم أربعاء</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">انتهى الوقت</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">تعذر إضافة مدن. الساعة العالمية ممتلئة. احذف بعض العناصر أولا</text>
+ <text id="IDS_ALM_OPT_SORT_BY">فرز بواسطة</text>
+ <text id="IDS_TMR_BODY_SEC">ثواني</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 مرات</text>
+ <text id="IDS_COM_BODY_STOPWATCH">ساعة الإيقاف</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">إيقاف الرنين</text>
+ <text id="IDS_TMR_BODY_HOUR">ساعة</text>
+ <text id="IDS_COM_BODY_JAN">01</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">الساعة العالمية</text>
+ <text id="IDS_COM_BODY_SEP">09</text>
+ <text id="IDS_COM_BODY_AUG">08</text>
+ <text id="IDS_TMR_SK_START">بدء</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">كل يوم ثلاثاء</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">المنبه</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">المزيد</text>
+ <text id="IDS_COM_BODY_TIMER">المؤقت</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">إنذار منقضي</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">تكرار الغفوة</text>
+ <text id="IDS_COM_BODY_SEARCH">بحث</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">تحديد تنبيهات</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">كل يوم سبت</text>
+ <text id="IDS_SWT_BUTTON_RESET">إرجاع</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">تم تحديد %d مدينة</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">كل يوم</text>
+ <text id="IDS_ALM_BODY_10MINS">10 دقائق</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">إلغاء التوقيت الصيفي</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 دقائق</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">كل يوم خميس</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">انتهى الوقت</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">تم تحديد %d تنبيهات</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">للمرة %d</text>
+ <text id="IDS_COM_POP_DELETED">تم المسح</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 مرات</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">لا توجد نتائج للبحث</text>
+ <text id="IDS_SWT_BUTTON_LAP">لفة</text>
+ <text id="IDS_COM_SK_ADD">إضافة</text>
+ <text id="IDS_ALM_BODY_TONE">النغمة</text>
+ <text id="IDS_TMR_SK_RESET">إرجاع</text>
+ <text id="IDS_ALM_HEADER_TYPE">النوع</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">نغمة</text>
+ <text id="IDS_COM_BUTTON_RECENT">حالي</text>
+ <text id="IDS_TMR_BODY_MIN">دق</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">تم تحديد مدينة واحدة</text>
+ <text id="IDS_COM_BODY_OCT">10</text>
+ <text id="IDS_WCL_SK_BY_NAME">حسب الاسم</text>
+ <text id="IDS_ALM_SK_DELETE">مسح</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">كل يوم أحد</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">لا توجد عناصر</text>
+ <text id="IDS_COM_BODY_FEB">02</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201309242034" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodiya və titrəmə</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Vaxt zonası</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 dəfə</text>
+ <text id="IDS_COM_BODY_NOV">Noy.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seçilmişi</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Vaxt zonasını seçin</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Hamısını seç</text>
+ <text id="IDS_NOTHING_SELECTED">He nə seçilməmişdir</text>
+ <text id="IDS_COM_BODY_DEC">Dek</text>
+ <text id="IDS_ALM_SK_CANCEL">Ləğv et</text>
+ <text id="IDS_ALM_BODY_REPEAT">Təkrar et</text>
+ <text id="IDS_TMR_BODY_MIN1">dəqiqə</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Siqnal yoxdur</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Elementlər yoxdur</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Hər bazar ertəsi</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Vaxt</text>
+ <text id="IDS_COM_SK_NEW">Yeni</text>
+ <text id="IDS_ALM_SK3_SAVE">Saxlayın</text>
+ <text id="IDS_COM_BODY_JUN">İyun</text>
+ <text id="IDS_ALM_BODY_TIME">Vaxt</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Mürgülə</text>
+ <text id="IDS_COM_BODY_JUL">İyul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Yenidən başladın</text>
+ <text id="IDS_ALM_BODY_TYPE">Növ</text>
+ <text id="IDS_TMR_SK3_STOP">Dayandır</text>
+ <text id="IDS_TMR_SK3_RESTART">Yenidən başladın</text>
+ <text id="IDS_WCL_SK_DONE">Bitdi</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 dəqiqə</text>
+ <text id="IDS_COM_BODY_MAY">May</text>
+ <text id="IDS_ALM_BODY_NAME">Ad</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrasiya</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST parametrlər</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Mürgüləmənin davamiyyəti</text>
+ <text id="IDS_COM_BODY_MAR">Mart</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 xəbərdarlıq seçildi</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodiya</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Hər cümə günü</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Yenidən nizamlayın</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Hər çərşənbə</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Vaxt bitdi</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sıralama qaydası</text>
+ <text id="IDS_TMR_BODY_SEC">san</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 dəfə</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Saniyəölçən</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Zəngi dayandır</text>
+ <text id="IDS_TMR_BODY_HOUR">saat(lar)</text>
+ <text id="IDS_COM_BODY_JAN">Yan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Ümumdünya saatı</text>
+ <text id="IDS_COM_BODY_SEP">Sent</text>
+ <text id="IDS_COM_BODY_AUG">Avq</text>
+ <text id="IDS_TMR_SK_START">Başla</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Hər çərşənbə axşamı</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Xəbərdarlıq siqnalı</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Daha įox</text>
+ <text id="IDS_COM_BODY_TIMER">Sayqac</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Tamamlanma siqnalı</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Mürgüləmə rejimini təkrarla</text>
+ <text id="IDS_COM_BODY_SEARCH">Axtarış</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Xəbərdarlıqları seç</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Hər şənbə günü</text>
+ <text id="IDS_SWT_BUTTON_RESET">Sıfırla</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Hər gün</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d şəhər seçilib</text>
+ <text id="IDS_ALM_BODY_10MINS">10 dəqiqə</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DST-ni rədd edin</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 dəqiqə</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Hər cümə axşamı</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Vaxt tamamlandı</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d xəbərdarlıq seçilib</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d dəfə</text>
+ <text id="IDS_COM_POP_DELETED">Silindi</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 dəfə</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Axtarış nəticəsi yoxdur</text>
+ <text id="IDS_SWT_BUTTON_LAP">Dövrə</text>
+ <text id="IDS_COM_SK_ADD">Əlavə et</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Sıfırla</text>
+ <text id="IDS_ALM_HEADER_TYPE">Növ</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodiya</text>
+ <text id="IDS_COM_BUTTON_RECENT">Sonuncu</text>
+ <text id="IDS_TMR_BODY_MIN">dəqiqə</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 şəhər seçilib</text>
+ <text id="IDS_COM_BODY_OCT">Okt</text>
+ <text id="IDS_WCL_SK_BY_NAME">Ad ilə</text>
+ <text id="IDS_ALM_SK_DELETE">Sil</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Hər bazar günü</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Elementlər yoxdur</text>
+ <text id="IDS_COM_BODY_FEB">Fev.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Вибрация и мелодия</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Часова зона</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 пъти</text>
+ <text id="IDS_COM_BODY_NOV">Ное</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Избрани</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Избор на часови пояс</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Избери всички</text>
+ <text id="IDS_NOTHING_SELECTED">Нищо не е избрано</text>
+ <text id="IDS_COM_BODY_DEC">Дек.</text>
+ <text id="IDS_ALM_SK_CANCEL">Отмени</text>
+ <text id="IDS_ALM_BODY_REPEAT">Повтори</text>
+ <text id="IDS_TMR_BODY_MIN1">мин.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Няма аларми</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Няма елементи</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Всеки понеделник</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Час</text>
+ <text id="IDS_COM_SK_NEW">Ново</text>
+ <text id="IDS_ALM_SK3_SAVE">Запиши</text>
+ <text id="IDS_COM_BODY_JUN">Юни</text>
+ <text id="IDS_ALM_BODY_TIME">Час</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Дрямка</text>
+ <text id="IDS_COM_BODY_JUL">Юли</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Рестартиране</text>
+ <text id="IDS_ALM_BODY_TYPE">Тип</text>
+ <text id="IDS_TMR_SK3_STOP">Стоп</text>
+ <text id="IDS_TMR_SK3_RESTART">Рестарт</text>
+ <text id="IDS_WCL_SK_DONE">Готово</text>
+ <text id="IDS_COM_BODY_APR">Апр.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 мин</text>
+ <text id="IDS_COM_BODY_MAY">Май</text>
+ <text id="IDS_ALM_BODY_NAME">Име</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Вибрация</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Настройки за лятно часово време</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Продължителност на дрямка</text>
+ <text id="IDS_COM_BODY_MAR">Март</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 аларма избрана</text>
+ <text id="IDS_ALM_BODY_MELODY">Мелодия</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Всеки петък</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Пренареждане</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Всяка сряда</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Времето изтече</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Градът не може да се добави. Списъкът на Световен часовник е пълен. Първо изтрийте някои елементи</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Сортиране по</text>
+ <text id="IDS_TMR_BODY_SEC">сек</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 пъти</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Хронометър</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Спиране на звъненето</text>
+ <text id="IDS_TMR_BODY_HOUR">Час</text>
+ <text id="IDS_COM_BODY_JAN">Ян</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Световен часовник</text>
+ <text id="IDS_COM_BODY_SEP">Сеп.</text>
+ <text id="IDS_COM_BODY_AUG">Авг.</text>
+ <text id="IDS_TMR_SK_START">Старт</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Всеки вторник</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Аларма</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Още</text>
+ <text id="IDS_COM_BODY_TIMER">Таймер</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Аларма за изтекъл срок</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Повтаряне на дрямка</text>
+ <text id="IDS_COM_BODY_SEARCH">Търси</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Избор на аларми</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Всяка събота</text>
+ <text id="IDS_SWT_BUTTON_RESET">Нyлиране</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d града избрани</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Всеки ден</text>
+ <text id="IDS_ALM_BODY_10MINS">10 мин</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Отмяна лятно часово време</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 мин</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Всеки четвъртък</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Времето изтече</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d аларми избрани</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d пъти</text>
+ <text id="IDS_COM_POP_DELETED">Изтрито</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 пъти</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Няма резултати от търсенето</text>
+ <text id="IDS_SWT_BUTTON_LAP">Обиколка</text>
+ <text id="IDS_COM_SK_ADD">Добави</text>
+ <text id="IDS_ALM_BODY_TONE">Тон</text>
+ <text id="IDS_TMR_SK_RESET">Нyлир.</text>
+ <text id="IDS_ALM_HEADER_TYPE">Тип</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Мелодия</text>
+ <text id="IDS_COM_BUTTON_RECENT">Последни</text>
+ <text id="IDS_TMR_BODY_MIN">мин.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 град избран</text>
+ <text id="IDS_COM_BODY_OCT">Окт.</text>
+ <text id="IDS_WCL_SK_BY_NAME">По име</text>
+ <text id="IDS_ALM_SK_DELETE">Изтрий</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Всяка неделя</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Няма елементи</text>
+ <text id="IDS_COM_BODY_FEB">Фев.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Vibració i melodia</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Zona horària</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 vegades</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seleccionat</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Seleccionar zona horària</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Seleccioni-ho tot</text>
+ <text id="IDS_NOTHING_SELECTED">No s'ha seleccionat res</text>
+ <text id="IDS_COM_BODY_DEC">Des.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancel·lar</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetir</text>
+ <text id="IDS_TMR_BODY_MIN1">minut</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Cap alarma</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">No hi ha elements</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Cada dilluns</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Hora</text>
+ <text id="IDS_COM_SK_NEW">Nou</text>
+ <text id="IDS_ALM_SK3_SAVE">Desar</text>
+ <text id="IDS_COM_BODY_JUN">Juny</text>
+ <text id="IDS_ALM_BODY_TIME">Hora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Alarma de repetició</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reiniciar</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipus</text>
+ <text id="IDS_TMR_SK3_STOP">Aturar</text>
+ <text id="IDS_TMR_SK3_RESTART">Reiniciar</text>
+ <text id="IDS_WCL_SK_DONE">Finalit.</text>
+ <text id="IDS_COM_BODY_APR">Abr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Maig</text>
+ <text id="IDS_ALM_BODY_NAME">Nom</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibració</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Ajustaments d'horari d'estiu</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Durada de la repetició</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarma seleccionada</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Cada divendres</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Tornar a ordenar</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Cada dimecres</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">S'ha exhaurit el temps</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">No es pot afegir la ciutat. Llista de Rellotge mundial plena. Esborri'n alguns elements abans</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordenar per</text>
+ <text id="IDS_TMR_BODY_SEC">seg</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 vegades</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronòmetre</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Aturar alarma</text>
+ <text id="IDS_TMR_BODY_HOUR">hora</text>
+ <text id="IDS_COM_BODY_JAN">Gen.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Rellotge mundial</text>
+ <text id="IDS_COM_BODY_SEP">Set.</text>
+ <text id="IDS_COM_BODY_AUG">Ago.</text>
+ <text id="IDS_TMR_SK_START">Iniciar</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Cada dimarts</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarma</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Més</text>
+ <text id="IDS_COM_BODY_TIMER">Temporitzador</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarma de temps d'espera</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Repetició d'alarma</text>
+ <text id="IDS_COM_BODY_SEARCH">Cercar</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Seleccionar alarmes</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Cada dissabte</text>
+ <text id="IDS_SWT_BUTTON_RESET">Restablir</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d ciutats seleccionades</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Cada dia</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancel·lar DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Cada dijous</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Temps exhaurit</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmes seleccionades</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d vegades</text>
+ <text id="IDS_COM_POP_DELETED">Esborrat</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 vegades</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">No hi ha cap resultat de cerca</text>
+ <text id="IDS_SWT_BUTTON_LAP">Volta</text>
+ <text id="IDS_COM_SK_ADD">Afegir</text>
+ <text id="IDS_ALM_BODY_TONE">To</text>
+ <text id="IDS_TMR_SK_RESET">Restablir</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipus</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodia</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recent</text>
+ <text id="IDS_TMR_BODY_MIN">minut</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 ciutat seleccionada</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Per nom</text>
+ <text id="IDS_ALM_SK_DELETE">Esborrar</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Cada diumenge</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">No hi ha elements</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201310251600" Dversion="20120315">
+ <text id="IDS_ALM_BODY_10TIMES">10krát</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodie a vibrace</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Časové pásmo</text>
+ <text id="IDS_COM_BODY_NOV">Lis</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Vybráno</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Vybrat časové pásmo</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Vybrat vše</text>
+ <text id="IDS_NOTHING_SELECTED">Není nic vybráno</text>
+ <text id="IDS_COM_BODY_DEC">Pro</text>
+ <text id="IDS_ALM_SK_CANCEL">Zrušit</text>
+ <text id="IDS_ALM_BODY_REPEAT">Opakovat</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Žádná upozornění</text>
+ <text id="IDS_COM_BODY_AM">do</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Žádné položky</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Každé pondělí</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Čas</text>
+ <text id="IDS_COM_SK_NEW">Nový</text>
+ <text id="IDS_ALM_SK3_SAVE">Uložit</text>
+ <text id="IDS_COM_BODY_JUN">Čer</text>
+ <text id="IDS_ALM_BODY_TIME">Čas</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Posunout budík</text>
+ <text id="IDS_COM_BODY_JUL">Čvc</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Restartování</text>
+ <text id="IDS_ALM_BODY_TYPE">Typ</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Restartovat</text>
+ <text id="IDS_WCL_SK_DONE">Hotovo</text>
+ <text id="IDS_COM_BODY_APR">Dub</text>
+ <text id="IDS_COM_POP_PM">od</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Kvě</text>
+ <text id="IDS_ALM_BODY_NAME">Jméno</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrace</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Nastavení letního času</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Doba trvání odložení</text>
+ <text id="IDS_COM_BODY_MAR">Bře</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Bylo vybráno 1 upozornění</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodie</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Každý pátek</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Změnit uspořádání</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Každá středa</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Časový limit</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Nelze přidat město. Seznam Světových hodin je plný. Nejprve odstraňte některé položky</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Seřadit podle</text>
+ <text id="IDS_TMR_BODY_SEC">s</text>
+ <text id="IDS_ALM_BODY_3TIMES">3krát</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopky</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Zastavit vyzvánění</text>
+ <text id="IDS_TMR_BODY_HOUR">Hodina</text>
+ <text id="IDS_COM_BODY_JAN">Led</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Světové hodiny</text>
+ <text id="IDS_COM_BODY_SEP">Zář</text>
+ <text id="IDS_COM_BODY_AUG">Srp</text>
+ <text id="IDS_TMR_SK_START">Spustit</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Každé úterý</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Upozornění</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Další</text>
+ <text id="IDS_COM_BODY_TIMER">Časovač</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Upozornění po časovém limitu</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Opakování buzení</text>
+ <text id="IDS_COM_BODY_SEARCH">Hledat</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Vybrat upozornění</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Každá sobota</text>
+ <text id="IDS_SWT_BUTTON_RESET">Vynulovat</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Každý den</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Bylo vybráno %d měst</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Zrušit letní čas</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Každý čtvrtek</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Časový limit vypršel</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Bylo vybráno %d upozornění</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d krát</text>
+ <text id="IDS_COM_POP_DELETED">Odstraněno</text>
+ <text id="IDS_ALM_BODY_5TIMES">5krát</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Žádné výsledky</text>
+ <text id="IDS_COM_SK_ADD">Přidat</text>
+ <text id="IDS_SWT_BUTTON_LAP">Mezičas</text>
+ <text id="IDS_ALM_BODY_TONE">Tón</text>
+ <text id="IDS_TMR_SK_RESET">Vynulovat</text>
+ <text id="IDS_ALM_HEADER_TYPE">Typ</text>
+ <text id="IDS_COM_BUTTON_RECENT">Poslední</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodie</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Bylo vybráno 1 město</text>
+ <text id="IDS_WCL_SK_BY_NAME">Dle názvu</text>
+ <text id="IDS_COM_BODY_OCT">Říj</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_SK_DELETE">Odstranit</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Každá neděle</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Žádné položky</text>
+ <text id="IDS_COM_BODY_FEB">Úno</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodi og vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Tidszone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 gange</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Valgte</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Vælg tidszone</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Vælg alle</text>
+ <text id="IDS_NOTHING_SELECTED">Intet er valgt</text>
+ <text id="IDS_COM_BODY_DEC">Dec</text>
+ <text id="IDS_ALM_SK_CANCEL">Annullér</text>
+ <text id="IDS_ALM_BODY_REPEAT">Gentag</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ingen alarmer</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Ingen elementer</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Hver mandag</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Tid</text>
+ <text id="IDS_COM_SK_NEW">Ny</text>
+ <text id="IDS_ALM_SK3_SAVE">Gem</text>
+ <text id="IDS_COM_BODY_JUN">Jun</text>
+ <text id="IDS_ALM_BODY_TIME">Tid</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Slumre</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Genstart</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Genstart</text>
+ <text id="IDS_WCL_SK_DONE">Udført</text>
+ <text id="IDS_COM_BODY_APR">Apr</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Maj</text>
+ <text id="IDS_ALM_BODY_NAME">Navn</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrator</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Indstillinger for sommertid</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Varighed af udsættelse</text>
+ <text id="IDS_COM_BODY_MAR">Mar</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm valgt</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodi</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Hver fredag</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Skift rækkefølge</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Hver onsdag</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tiden er gået</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Byen kunne ikke tilføjes. Listen med verdensure er fyldt. Slet nogle elementer først</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortér efter</text>
+ <text id="IDS_TMR_BODY_SEC">sek.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 gange</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopur</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stop ringning</text>
+ <text id="IDS_TMR_BODY_HOUR">Time</text>
+ <text id="IDS_COM_BODY_JAN">Jan</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Verdensur</text>
+ <text id="IDS_COM_BODY_SEP">Sep</text>
+ <text id="IDS_COM_BODY_AUG">Aug</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Hver tirsdag</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mere</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Timeout-alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Gentag Slumre</text>
+ <text id="IDS_COM_BODY_SEARCH">Søg</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Vælg alarmer</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Hver lørdag</text>
+ <text id="IDS_SWT_BUTTON_RESET">Nulstil</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d byer valgt</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Hver dag</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Annullér DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Hver torsdag</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Timeout</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmer valgt</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d gange</text>
+ <text id="IDS_COM_POP_DELETED">Slettet</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 gange</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Ingen søgeresultater</text>
+ <text id="IDS_SWT_BUTTON_LAP">Omgang</text>
+ <text id="IDS_COM_SK_ADD">Tilføj</text>
+ <text id="IDS_ALM_BODY_TONE">Tone</text>
+ <text id="IDS_TMR_SK_RESET">Nulstil</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodi</text>
+ <text id="IDS_COM_BUTTON_RECENT">Seneste</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 by valgt</text>
+ <text id="IDS_COM_BODY_OCT">Okt</text>
+ <text id="IDS_WCL_SK_BY_NAME">Eft. navn</text>
+ <text id="IDS_ALM_SK_DELETE">Slet</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Hver søndag</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Ingen elementer</text>
+ <text id="IDS_COM_BODY_FEB">Feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201309242034" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodie und Vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Zeitzone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 Mal</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Ausgewählt</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Zeitzone auswählen</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Alle auswählen</text>
+ <text id="IDS_NOTHING_SELECTED">Nichts ausgewählt</text>
+ <text id="IDS_COM_BODY_DEC">Dez.</text>
+ <text id="IDS_ALM_SK_CANCEL">Abbrechen</text>
+ <text id="IDS_ALM_BODY_REPEAT">Wiederholen</text>
+ <text id="IDS_TMR_BODY_MIN1">Min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Keine Alarme</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Keine Elemente</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Jeden Montag</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Zeit</text>
+ <text id="IDS_COM_SK_NEW">Neu</text>
+ <text id="IDS_ALM_SK3_SAVE">Speichern</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Zeit</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Erinnern</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Neustart</text>
+ <text id="IDS_ALM_BODY_TYPE">Typ</text>
+ <text id="IDS_TMR_SK3_STOP">Stopp</text>
+ <text id="IDS_TMR_SK3_RESTART">Neustart</text>
+ <text id="IDS_WCL_SK_DONE">OK</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 Minuten</text>
+ <text id="IDS_COM_BODY_MAY">Mai</text>
+ <text id="IDS_ALM_BODY_NAME">Name</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibration</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST-Einstellungen</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Schlummerdauer</text>
+ <text id="IDS_COM_BODY_MAR">Mär.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 ausgewählter Alarm</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodie</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Jeden Freitag</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Neu sortieren</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Jeden Mittwoch</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Zeit abgelaufen</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortieren nach</text>
+ <text id="IDS_TMR_BODY_SEC">Sek.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 Mal</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stoppuhr</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Klingeln stoppen</text>
+ <text id="IDS_TMR_BODY_HOUR">Stunde</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Weltuhr</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Jeden Dienstag</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mehr</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Timeout-Alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Erinnerungswiederholung</text>
+ <text id="IDS_COM_BODY_SEARCH">Suche</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Alarme auswählen</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Jeden Samstag</text>
+ <text id="IDS_SWT_BUTTON_RESET">Reset</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Täglich</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d Städte ausgewählt</text>
+ <text id="IDS_ALM_BODY_10MINS">10 Minuten</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DST abbrechen</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 Minuten</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Jeden Donnerstag</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Zeitüberschreitung</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d Alarme ausgewählt.</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d Mal</text>
+ <text id="IDS_COM_POP_DELETED">Gelöscht</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 Mal</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Keine Suchergebnisse</text>
+ <text id="IDS_SWT_BUTTON_LAP">Runde</text>
+ <text id="IDS_COM_SK_ADD">Hinzufügen</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Zurücks.</text>
+ <text id="IDS_ALM_HEADER_TYPE">Typ</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodie</text>
+ <text id="IDS_COM_BUTTON_RECENT">Kürzlich</text>
+ <text id="IDS_TMR_BODY_MIN">Min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 Stadt ausgewählt</text>
+ <text id="IDS_COM_BODY_OCT">Okt.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Nach Name</text>
+ <text id="IDS_ALM_SK_DELETE">Löschen</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Jeden Sonntag</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Keine Elemente</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Μελωδία και δόνηση</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Ζώνη ώρας</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 φορές</text>
+ <text id="IDS_COM_BODY_NOV">Noέμ</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Επιλεγμένο</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Επιλογή ζώνης ώρας</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Επιλογή όλων</text>
+ <text id="IDS_NOTHING_SELECTED">Δεν έχει γίνει καμία επιλογή</text>
+ <text id="IDS_COM_BODY_DEC">Δεκ</text>
+ <text id="IDS_ALM_SK_CANCEL">Άκυρο</text>
+ <text id="IDS_ALM_BODY_REPEAT">Επανάληψη</text>
+ <text id="IDS_TMR_BODY_MIN1">λεπ.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Καμία ειδοποίηση</text>
+ <text id="IDS_COM_BODY_AM">ΠΜ</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Κανένα στοιχείο</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Κάθε Δευτέρα</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Ώρα</text>
+ <text id="IDS_COM_SK_NEW">Νέο</text>
+ <text id="IDS_ALM_SK3_SAVE">Αποθήκ.</text>
+ <text id="IDS_COM_BODY_JUN">Ιούν</text>
+ <text id="IDS_ALM_BODY_TIME">Ώρα</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Αναβολή</text>
+ <text id="IDS_COM_BODY_JUL">Ιούλ</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Επαν\κίνηση</text>
+ <text id="IDS_ALM_BODY_TYPE">Είδος</text>
+ <text id="IDS_TMR_SK3_STOP">Διακοπή</text>
+ <text id="IDS_TMR_SK3_RESTART">Επανεκκίνηση</text>
+ <text id="IDS_WCL_SK_DONE">Ok</text>
+ <text id="IDS_COM_BODY_APR">Απρ</text>
+ <text id="IDS_COM_POP_PM">ΜΜ</text>
+ <text id="IDS_ALM_BODY_5MINS">5 λεπτά</text>
+ <text id="IDS_COM_BODY_MAY">Μάης</text>
+ <text id="IDS_ALM_BODY_NAME">Όνομα</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Δόνηση</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Ρυθμίσεις θερινής ώρας</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Διάρκεια αναβολής</text>
+ <text id="IDS_COM_BODY_MAR">Μάρτ</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Επιλέχθηκε 1 ειδοποίηση</text>
+ <text id="IDS_ALM_BODY_MELODY">Μελωδία</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Κάθε Παρασκευή</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Επανάληψη παραγγελίας</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Κάθε Τετάρτη</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Ο χρόνος τελείωσε</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Δεν είναι δυνατή η προσθήκη πόλης. Η λίστα Παγκοσμίου Ρολογιού είναι πλήρης. Πρώτα, διαγράψτε ορισμένα στοιχεία</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ταξινόμηση κατά</text>
+ <text id="IDS_TMR_BODY_SEC">δευτ.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 φορές</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Χρονόμετρο</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Διακοπή ήχου ειδοποίησης</text>
+ <text id="IDS_TMR_BODY_HOUR">Ώρα</text>
+ <text id="IDS_COM_BODY_JAN">Ιαν</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Παγκόσμιο Ρολόι</text>
+ <text id="IDS_COM_BODY_SEP">Σεπτ</text>
+ <text id="IDS_COM_BODY_AUG">Αυγ</text>
+ <text id="IDS_TMR_SK_START">Έναρξη</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Κάθε Τρίτη</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Ειδοποίηση</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Περισσότερα</text>
+ <text id="IDS_COM_BODY_TIMER">Αντίστροφη μέτρηση</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Λήξη ειδοποίησης</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Επανάληψη αναβολής</text>
+ <text id="IDS_COM_BODY_SEARCH">Αναζήτηση</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Επιλογή ειδοποιήσεων</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Κάθε Σάββατο</text>
+ <text id="IDS_SWT_BUTTON_RESET">Μηδενισμ.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Επιλέχθηκαν %d πόλεις</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Καθημερινά</text>
+ <text id="IDS_ALM_BODY_10MINS">10 λεπτά</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Ακύρωση DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 λεπτά</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Κάθε Πέμπτη</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Τέλος χρόνου</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Έχουν επιλεγεί %d ειδοποιήσεις</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d φορές</text>
+ <text id="IDS_COM_POP_DELETED">Διαγράφηκε</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 φορές</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Δεν υπάρχουν αποτελέσματα αναζήτησης</text>
+ <text id="IDS_SWT_BUTTON_LAP">Γύρος</text>
+ <text id="IDS_COM_SK_ADD">Προσθήκη</text>
+ <text id="IDS_ALM_BODY_TONE">Ήχος</text>
+ <text id="IDS_TMR_SK_RESET">Μηδενισμός</text>
+ <text id="IDS_ALM_HEADER_TYPE">Είδος</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Μελωδία</text>
+ <text id="IDS_COM_BUTTON_RECENT">Πρόσφατα</text>
+ <text id="IDS_TMR_BODY_MIN">λεπ.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Επιλέχθηκε 1 πόλη</text>
+ <text id="IDS_COM_BODY_OCT">Οκτ</text>
+ <text id="IDS_WCL_SK_BY_NAME">Ανά όνομα</text>
+ <text id="IDS_ALM_SK_DELETE">Διαγραφή</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Κάθε Κυριακή</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Κανένα στοιχείο</text>
+ <text id="IDS_COM_BODY_FEB">Φεβρ</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melody and vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Time zone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 times</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d selected</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Select time zone</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Select all</text>
+ <text id="IDS_NOTHING_SELECTED">Nothing selected</text>
+ <text id="IDS_COM_BODY_DEC">Dec</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancel</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repeat</text>
+ <text id="IDS_TMR_BODY_MIN1">mins</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">No alarms</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">No items</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Every Monday</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Time</text>
+ <text id="IDS_COM_SK_NEW">New</text>
+ <text id="IDS_ALM_SK3_SAVE">Save</text>
+ <text id="IDS_COM_BODY_JUN">Jun</text>
+ <text id="IDS_ALM_BODY_TIME">Time</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Snooze</text>
+ <text id="IDS_COM_BODY_JUL">Jul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Restart</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Restart</text>
+ <text id="IDS_WCL_SK_DONE">Done</text>
+ <text id="IDS_COM_BODY_APR">Apr</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 mins</text>
+ <text id="IDS_COM_BODY_MAY">May</text>
+ <text id="IDS_ALM_BODY_NAME">Name</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibration</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST settings</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Snooze duration</text>
+ <text id="IDS_COM_BODY_MAR">Mar</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm selected</text>
+ <text id="IDS_ALM_BODY_MELODY">Melody</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Every Friday</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reorder</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Every Wednesday</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Time is up</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sort by</text>
+ <text id="IDS_TMR_BODY_SEC">secs</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 times</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopwatch</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stop ringing</text>
+ <text id="IDS_TMR_BODY_HOUR">Hour</text>
+ <text id="IDS_COM_BODY_JAN">Jan</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">World Clock</text>
+ <text id="IDS_COM_BODY_SEP">Sep</text>
+ <text id="IDS_COM_BODY_AUG">Aug</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Every Tuesday</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">More</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Time-out alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Snooze repeat</text>
+ <text id="IDS_COM_BODY_SEARCH">Search</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Select alarms</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Every Saturday</text>
+ <text id="IDS_SWT_BUTTON_RESET">Reset</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Everyday</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cities selected</text>
+ <text id="IDS_ALM_BODY_10MINS">10 mins</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancel DST</text>
+ <text id="IDS_ALM_BODY_3MINS">3 mins</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Every Thursday</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Time-out</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarms selected</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d times</text>
+ <text id="IDS_COM_POP_DELETED">Deleted</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 times</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">No search results</text>
+ <text id="IDS_COM_SK_ADD">Add</text>
+ <text id="IDS_SWT_BUTTON_LAP">Lap</text>
+ <text id="IDS_ALM_BODY_TONE">Tone</text>
+ <text id="IDS_TMR_SK_RESET">Reset</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recent</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melody</text>
+ <text id="IDS_TMR_BODY_MIN">mins</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 city selected</text>
+ <text id="IDS_WCL_SK_BY_NAME">By name</text>
+ <text id="IDS_COM_BODY_OCT">Oct</text>
+ <text id="IDS_ALM_SK_DELETE">Delete</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Every Sunday</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">No items</text>
+ <text id="IDS_COM_BODY_FEB">Feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melody and vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Time zone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 times</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d selected</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Select time zone</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Select all</text>
+ <text id="IDS_NOTHING_SELECTED">Nothing selected</text>
+ <text id="IDS_COM_BODY_DEC">Dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancel</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repeat</text>
+ <text id="IDS_TMR_BODY_MIN1">mins</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">No alarms</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">No items</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Every Monday</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Time</text>
+ <text id="IDS_COM_SK_NEW">New</text>
+ <text id="IDS_ALM_SK3_SAVE">Save</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Time</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Snooze</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Restart</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Restart</text>
+ <text id="IDS_WCL_SK_DONE">Done</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 mins</text>
+ <text id="IDS_COM_BODY_MAY">May</text>
+ <text id="IDS_ALM_BODY_NAME">Name</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibration</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST settings</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Snooze duration</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm selected</text>
+ <text id="IDS_ALM_BODY_MELODY">Melody</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Every Friday</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Re-order</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Every Wednesday</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Time is up</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sort by</text>
+ <text id="IDS_TMR_BODY_SEC">secs</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 times</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopwatch</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stop ringing</text>
+ <text id="IDS_TMR_BODY_HOUR">Hour</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">World Clock</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Every Tuesday</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">More</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Time-out alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Frequency</text>
+ <text id="IDS_COM_BODY_SEARCH">Search</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Select alarms</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Every Saturday</text>
+ <text id="IDS_SWT_BUTTON_RESET">Reset</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cities selected</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Everyday</text>
+ <text id="IDS_ALM_BODY_10MINS">10 mins</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancel DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 mins</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Every Thursday</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Time-out</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarms selected</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d times</text>
+ <text id="IDS_COM_POP_DELETED">Deleted</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 times</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">No search results</text>
+ <text id="IDS_SWT_BUTTON_LAP">Lap</text>
+ <text id="IDS_COM_SK_ADD">Add</text>
+ <text id="IDS_ALM_BODY_TONE">Tone</text>
+ <text id="IDS_TMR_SK_RESET">Reset</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melody</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recent</text>
+ <text id="IDS_TMR_BODY_MIN">mins</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 city selected</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">By name</text>
+ <text id="IDS_ALM_SK_DELETE">Delete</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Every Sunday</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">No items</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201309242034" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melody and vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Time zone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 times</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d selected</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Select time zone</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Select all</text>
+ <text id="IDS_NOTHING_SELECTED">Nothing selected</text>
+ <text id="IDS_COM_BODY_DEC">Dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancel</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repeat</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">No alarms</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">No items</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Every Monday</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Time</text>
+ <text id="IDS_COM_SK_NEW">New</text>
+ <text id="IDS_ALM_SK3_SAVE">Save</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Time</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Snooze</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Restart</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Restart</text>
+ <text id="IDS_WCL_SK_DONE">Done</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">May</text>
+ <text id="IDS_ALM_BODY_NAME">Name</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibration</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST settings</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Snooze duration</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm selected</text>
+ <text id="IDS_ALM_BODY_MELODY">Melody</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Every Friday</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reorder</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Every Wednesday</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Time is up</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sort by</text>
+ <text id="IDS_TMR_BODY_SEC">sec</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 times</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopwatch</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stop ringing</text>
+ <text id="IDS_TMR_BODY_HOUR">Hour</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">World Clock</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Every Tuesday</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">More</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Time-out alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Snooze repeat</text>
+ <text id="IDS_COM_BODY_SEARCH">Search</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Select alarms</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Every Saturday</text>
+ <text id="IDS_SWT_BUTTON_RESET">Reset</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cities selected</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Everyday</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancel DST</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Every Thursday</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Time out</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarms selected</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d times</text>
+ <text id="IDS_COM_POP_DELETED">Deleted</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 times</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">No search results</text>
+ <text id="IDS_SWT_BUTTON_LAP">Lap</text>
+ <text id="IDS_COM_SK_ADD">Create alarm</text>
+ <text id="IDS_ALM_BODY_TONE">Tone</text>
+ <text id="IDS_TMR_SK_RESET">Reset</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melody</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recent</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 city selected</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">By name</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_SK_DELETE">Delete</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Every Sunday</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">No items</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201309242034" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Meloodia ja värin</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Ajavöönd</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 korda</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Valitud</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Valige ajavöönd</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Vali kõik</text>
+ <text id="IDS_NOTHING_SELECTED">Valik tegemata</text>
+ <text id="IDS_COM_BODY_DEC">Det.</text>
+ <text id="IDS_ALM_SK_CANCEL">Tühista</text>
+ <text id="IDS_ALM_BODY_REPEAT">Korda</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Märguandeid pole</text>
+ <text id="IDS_COM_BODY_AM">EL</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Üksusi ei ole</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Igal esmaspäeval</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Kellaaeg</text>
+ <text id="IDS_COM_SK_NEW">Uus</text>
+ <text id="IDS_ALM_SK3_SAVE">Salvesta</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Kellaaeg</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Kordus</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Taaskäivita</text>
+ <text id="IDS_ALM_BODY_TYPE">Tüüp</text>
+ <text id="IDS_TMR_SK3_STOP">Lõpeta</text>
+ <text id="IDS_TMR_SK3_RESTART">Taaskäivita</text>
+ <text id="IDS_WCL_SK_DONE">Valmis</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PL</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Mai</text>
+ <text id="IDS_ALM_BODY_NAME">Nimi</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Värin</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Suveaja seaded</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Korduse kestus</text>
+ <text id="IDS_COM_BODY_MAR">Mär.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 märguanne on valitud</text>
+ <text id="IDS_ALM_BODY_MELODY">Meloodia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Igal reedel</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Järjesta ümber</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Igal kolmapäeval</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Aeg on läbi</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortimisalus</text>
+ <text id="IDS_TMR_BODY_SEC">sek.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 korda</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopper</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Lõpeta helisemine</text>
+ <text id="IDS_TMR_BODY_HOUR">Tund</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Maailmakell</text>
+ <text id="IDS_COM_BODY_SEP">Sept</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Alusta</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Igal teisipäeval</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Veel</text>
+ <text id="IDS_COM_BODY_TIMER">Taimer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Ajakatkestuse märguanne</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Kordus</text>
+ <text id="IDS_COM_BODY_SEARCH">Otsi</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Valige märguanded</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Igal laupäeval</text>
+ <text id="IDS_SWT_BUTTON_RESET">Lähtesta</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Iga päev</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d linna on valitud</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Tühista DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Igal neljapäeval</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Kuvalõpp</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Valitud on %d märguannet</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d korda</text>
+ <text id="IDS_COM_POP_DELETED">Kustutatud</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 korda</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Otsingutulemeid pole</text>
+ <text id="IDS_SWT_BUTTON_LAP">Ring</text>
+ <text id="IDS_COM_SK_ADD">Lisa</text>
+ <text id="IDS_ALM_BODY_TONE">Toon</text>
+ <text id="IDS_TMR_SK_RESET">Lähtesta</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tüüp</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Meloodia</text>
+ <text id="IDS_COM_BUTTON_RECENT">Hiljut.</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 linn on valitud</text>
+ <text id="IDS_COM_BODY_OCT">Okt</text>
+ <text id="IDS_WCL_SK_BY_NAME">Nime jär.</text>
+ <text id="IDS_ALM_SK_DELETE">Kustuta</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Igal pühapäeval</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Üksusi ei ole</text>
+ <text id="IDS_COM_BODY_FEB">Veeb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Dardara eta melodia</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Ordu eremua</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 aldiz</text>
+ <text id="IDS_COM_BODY_NOV">Aza.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Aukeratutakoa(k)</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Aukeratu ordu eremua</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Denak aukeratu</text>
+ <text id="IDS_NOTHING_SELECTED">Ez da ezer aukeratu</text>
+ <text id="IDS_COM_BODY_DEC">Abe.</text>
+ <text id="IDS_ALM_SK_CANCEL">Ezeztatu</text>
+ <text id="IDS_ALM_BODY_REPEAT">Errepikatu</text>
+ <text id="IDS_TMR_BODY_MIN1">minutu</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Alarmarik ez</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Elementurik ez</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Astelehenero</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Ordua</text>
+ <text id="IDS_COM_SK_NEW">Berria</text>
+ <text id="IDS_ALM_SK3_SAVE">Gorde</text>
+ <text id="IDS_COM_BODY_JUN">Eka.</text>
+ <text id="IDS_ALM_BODY_TIME">Ordua</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Alarma atzeratu</text>
+ <text id="IDS_COM_BODY_JUL">Uzt.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Berrekin</text>
+ <text id="IDS_ALM_BODY_TYPE">Mota</text>
+ <text id="IDS_TMR_SK3_STOP">Gelditu</text>
+ <text id="IDS_TMR_SK3_RESTART">Berrabiarazi</text>
+ <text id="IDS_WCL_SK_DONE">Amaituta</text>
+ <text id="IDS_COM_BODY_APR">Api.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Maiatza</text>
+ <text id="IDS_ALM_BODY_NAME">Izena</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Dardara</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Udako ordutegia ezarpenak</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Lozorroaren iraupena</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Alarma 1 aukeratuta</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Ostiralero</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Ordenatu berriro</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Asteazkenero</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Denbora amaitu da</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Ezin izan da hiria gehitu. Munduko Erlojuaren zerrenda beteta. Ezabatu elementu batzuk lehenik</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Honen bidez antolatu</text>
+ <text id="IDS_TMR_BODY_SEC">seg</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 aldiz</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Kronometroa</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Utzi deitzeari</text>
+ <text id="IDS_TMR_BODY_HOUR">Ordua</text>
+ <text id="IDS_COM_BODY_JAN">Urt.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Munduko Erlojua</text>
+ <text id="IDS_COM_BODY_SEP">Ira.</text>
+ <text id="IDS_COM_BODY_AUG">Abu.</text>
+ <text id="IDS_TMR_SK_START">Abiarazi</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Asteartero</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarma</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Gehiago</text>
+ <text id="IDS_COM_BODY_TIMER">Tenporizadorea</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Denboraz kanpoko alarma</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Lozorroa errepikatu</text>
+ <text id="IDS_COM_BODY_SEARCH">Bilatu</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Hautatu alarmak</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Larunbatero</text>
+ <text id="IDS_SWT_BUTTON_RESET">Berrezar.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d hiri hautatuta</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Egunero</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Ezeztatu DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Ostegunero</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Itxarote denbora</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarma hautatu dira</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d aldiz</text>
+ <text id="IDS_COM_POP_DELETED">Ezabatua</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 aldiz</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Ez dago bilaketaren emaitzarik</text>
+ <text id="IDS_SWT_BUTTON_LAP">Bira</text>
+ <text id="IDS_COM_SK_ADD">Gehitu</text>
+ <text id="IDS_ALM_BODY_TONE">Doinua</text>
+ <text id="IDS_TMR_SK_RESET">Berrezarri</text>
+ <text id="IDS_ALM_HEADER_TYPE">Mota</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodia</text>
+ <text id="IDS_COM_BUTTON_RECENT">Berriki</text>
+ <text id="IDS_TMR_BODY_MIN">minutu</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Hiri bakarra aukeratuta</text>
+ <text id="IDS_COM_BODY_OCT">Urr.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Iz. arab.</text>
+ <text id="IDS_ALM_SK_DELETE">Ezabatu</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Igandero</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Elementurik ez</text>
+ <text id="IDS_COM_BODY_FEB">Ots.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Soittoääni ja värinä</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Aikavyöhyke</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 kertaa</text>
+ <text id="IDS_COM_BODY_NOV">Mar</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Valittu</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Valitse aikavyöhyke</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Valitse kaikki</text>
+ <text id="IDS_NOTHING_SELECTED">Mitään ei valittu</text>
+ <text id="IDS_COM_BODY_DEC">Jou</text>
+ <text id="IDS_ALM_SK_CANCEL">Peruuta</text>
+ <text id="IDS_ALM_BODY_REPEAT">Toista</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ei hälytyksiä</text>
+ <text id="IDS_COM_BODY_AM">AP</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Ei kohteita</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Joka maanantai</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Aika</text>
+ <text id="IDS_COM_SK_NEW">Uusi</text>
+ <text id="IDS_ALM_SK3_SAVE">Tallenna</text>
+ <text id="IDS_COM_BODY_JUN">Kesä</text>
+ <text id="IDS_ALM_BODY_TIME">Aika</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Torkku</text>
+ <text id="IDS_COM_BODY_JUL">Hei</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Aloita uud.</text>
+ <text id="IDS_ALM_BODY_TYPE">Tyyppi</text>
+ <text id="IDS_TMR_SK3_STOP">Pysäytä</text>
+ <text id="IDS_TMR_SK3_RESTART">Käynn. uud.</text>
+ <text id="IDS_WCL_SK_DONE">Valmis</text>
+ <text id="IDS_COM_BODY_APR">Huh</text>
+ <text id="IDS_COM_POP_PM">IP</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Toukokuu</text>
+ <text id="IDS_ALM_BODY_NAME">Nimi</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Värinä</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Kesäaika-asetukset</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Torkun kesto</text>
+ <text id="IDS_COM_BODY_MAR">Maa.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 hälytys valittu</text>
+ <text id="IDS_ALM_BODY_MELODY">Soittoääni</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Joka perjantai</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Järjestä uudestaan</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Joka keskiviikko</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Aika on lopussa</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Kaupunkia ei voi lisätä. Maailmankello-luettelo on täynnä. Poista joitain kohteita ensin</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Lajitteluperuste</text>
+ <text id="IDS_TMR_BODY_SEC">s</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 kertaa</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Sekuntik.</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Lopeta soittoääni</text>
+ <text id="IDS_TMR_BODY_HOUR">Tunti</text>
+ <text id="IDS_COM_BODY_JAN">Tam.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Maailmankello</text>
+ <text id="IDS_COM_BODY_SEP">Syys</text>
+ <text id="IDS_COM_BODY_AUG">Elo</text>
+ <text id="IDS_TMR_SK_START">Käynnistä</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Joka tiistai</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Hälytys</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Lisää</text>
+ <text id="IDS_COM_BODY_TIMER">Ajastin</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Aikakatkaisuhälytys</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Torkun toisto</text>
+ <text id="IDS_COM_BODY_SEARCH">Etsi</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Valitse hälytykset</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Joka lauantai</text>
+ <text id="IDS_SWT_BUTTON_RESET">Nollaa</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d kaupunkia valittu</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Päivittäin</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Ota kesäaika pois</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Joka torstai</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Aikaraja ylitetty</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d hälytystä valittu</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d kertaa</text>
+ <text id="IDS_COM_POP_DELETED">Poistettu</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 kertaa</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Ei hakutuloksia</text>
+ <text id="IDS_SWT_BUTTON_LAP">Kierros</text>
+ <text id="IDS_COM_SK_ADD">Lisää</text>
+ <text id="IDS_ALM_BODY_TONE">Ääni</text>
+ <text id="IDS_TMR_SK_RESET">Nollaa</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tyyppi</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Soittoääni</text>
+ <text id="IDS_COM_BUTTON_RECENT">Uusimmat</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 kaupunki valittu</text>
+ <text id="IDS_COM_BODY_OCT">Lok</text>
+ <text id="IDS_WCL_SK_BY_NAME">Nimen m.</text>
+ <text id="IDS_ALM_SK_DELETE">Poista</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Joka sunnuntai</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Ei kohteita</text>
+ <text id="IDS_COM_BODY_FEB">Hel</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Mélodie et vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Fuseau horaire</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 fois</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Sélectionné</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Sélectionner le fuseau horaire</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Sélectionner tout</text>
+ <text id="IDS_NOTHING_SELECTED">Aucune sélection</text>
+ <text id="IDS_COM_BODY_DEC">Déc.</text>
+ <text id="IDS_ALM_SK_CANCEL">Annuler</text>
+ <text id="IDS_ALM_BODY_REPEAT">Nombre de répétitions</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Aucune alarme</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Aucun élément</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Tous les lundis</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Heure</text>
+ <text id="IDS_COM_SK_NEW">Nouveau</text>
+ <text id="IDS_ALM_SK3_SAVE">Sauv.</text>
+ <text id="IDS_COM_BODY_JUN">Jui.</text>
+ <text id="IDS_ALM_BODY_TIME">Heure</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Rappel d\'alarme</text>
+ <text id="IDS_COM_BODY_JUL">Juil.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Redémarrer</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Arrêter</text>
+ <text id="IDS_TMR_SK3_RESTART">Redémarrer</text>
+ <text id="IDS_WCL_SK_DONE">OK</text>
+ <text id="IDS_COM_BODY_APR">Avr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Mai</text>
+ <text id="IDS_ALM_BODY_NAME">Nom</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibreur</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Paramètres HA</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Répéter toutes les</text>
+ <text id="IDS_COM_BODY_MAR">Mars</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarme sélectionnée</text>
+ <text id="IDS_ALM_BODY_MELODY">Mélodie</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Tous les vendredis</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Réorganiser</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Tous les mercredis</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Temps écoulé</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Impossible d'ajouter la ville. Liste des horloges mondiales saturée. Supprimez des éléments</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Trier par</text>
+ <text id="IDS_TMR_BODY_SEC">s</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 fois</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Chronomètre</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Arrêter la sonnerie</text>
+ <text id="IDS_TMR_BODY_HOUR">Heure</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Horloge mondiale</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aou.</text>
+ <text id="IDS_TMR_SK_START">Début</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Tous les mardis</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarme</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Plus</text>
+ <text id="IDS_COM_BODY_TIMER">Minuterie</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarme après dépassement du délai</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Nombre de répétitions</text>
+ <text id="IDS_COM_BODY_SEARCH">Recherche</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Sélectionner des alarmes</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Tous les samedis</text>
+ <text id="IDS_SWT_BUTTON_RESET">Réinit.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d villes sélectionnées</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Tous les jours</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">AnnulerHA</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Tous les jeudis</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Pause</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmes sélectionnées</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d fois</text>
+ <text id="IDS_COM_POP_DELETED">Supprimé</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 fois</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Aucun résultat de recherche</text>
+ <text id="IDS_SWT_BUTTON_LAP">Tour</text>
+ <text id="IDS_COM_SK_ADD">Ajouter</text>
+ <text id="IDS_ALM_BODY_TONE">Tonalité</text>
+ <text id="IDS_TMR_SK_RESET">Réinitialiser</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Mélodie</text>
+ <text id="IDS_COM_BUTTON_RECENT">Récent</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 ville sélectionnée</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Par nom</text>
+ <text id="IDS_ALM_SK_DELETE">Supprimer</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Tous les dimanches</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Aucun élément</text>
+ <text id="IDS_COM_BODY_FEB">Fév.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Mélodie et vibreur</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Fuseau horaire</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 fois</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Sélectionné</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Sélectionner le fuseau horaire</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Sélect. tout</text>
+ <text id="IDS_NOTHING_SELECTED">Aucune sélection</text>
+ <text id="IDS_COM_BODY_DEC">Déc.</text>
+ <text id="IDS_ALM_SK_CANCEL">Annuler</text>
+ <text id="IDS_ALM_BODY_REPEAT">Nombre de répétitions</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Aucune alarme</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Aucun élément</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Chaque lundi</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Heure</text>
+ <text id="IDS_COM_SK_NEW">Nouveau</text>
+ <text id="IDS_ALM_SK3_SAVE">Enreg.</text>
+ <text id="IDS_COM_BODY_JUN">Jui.</text>
+ <text id="IDS_ALM_BODY_TIME">Heure</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Répéter</text>
+ <text id="IDS_COM_BODY_JUL">Juil</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Redémarrer</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Arrêter</text>
+ <text id="IDS_TMR_SK3_RESTART">Redémarrer</text>
+ <text id="IDS_WCL_SK_DONE">Effectué</text>
+ <text id="IDS_COM_BODY_APR">Avr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Mai</text>
+ <text id="IDS_ALM_BODY_NAME">Nom</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibreur</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Heure d'été</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Répéter toutes les</text>
+ <text id="IDS_COM_BODY_MAR">Mars</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarme sélectionnée</text>
+ <text id="IDS_ALM_BODY_MELODY">Mélodie</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Chaque vendredi</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Réorganiser</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Chaque mercredi</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Temps écoulé</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Impossible d'ajouter la ville. Liste des horloges mondiales saturée. Supprimez des éléments</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Trier par</text>
+ <text id="IDS_TMR_BODY_SEC">sec</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 fois</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Chronomètre</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Arrêter la sonnerie</text>
+ <text id="IDS_TMR_BODY_HOUR">Heure</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Horloge mondiale</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aoû.</text>
+ <text id="IDS_TMR_SK_START">Lancer</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Chaque mardi</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarme</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Plus</text>
+ <text id="IDS_COM_BODY_TIMER">Minuteur</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarme après dépassement du délai</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Répétitions</text>
+ <text id="IDS_COM_BODY_SEARCH">Rechercher</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Sélectionner des alarmes</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Chaque samedi</text>
+ <text id="IDS_SWT_BUTTON_RESET">Réinit.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d villes sélectionnées</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Tous les jours</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Annuler DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Chaque jeudi</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Durée écoulée</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmes sélectionnées</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d fois</text>
+ <text id="IDS_COM_POP_DELETED">Supprimé</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 fois</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Aucun résultat trouvé</text>
+ <text id="IDS_SWT_BUTTON_LAP">Tour</text>
+ <text id="IDS_COM_SK_ADD">Ajouter</text>
+ <text id="IDS_ALM_BODY_TONE">Tonalité</text>
+ <text id="IDS_TMR_SK_RESET">Réinit.</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Mélodie</text>
+ <text id="IDS_COM_BUTTON_RECENT">Récents</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 ville sélectionnée</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Par nom</text>
+ <text id="IDS_ALM_SK_DELETE">Supprimer</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Chaque dimanche</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Aucun élément</text>
+ <text id="IDS_COM_BODY_FEB">Fév.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Séis agus crith</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Amchrios</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 n-uaire</text>
+ <text id="IDS_COM_BODY_NOV">Samh</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Roghnaithe</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Roghnaigh amchrios</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Roghnaigh gach</text>
+ <text id="IDS_NOTHING_SELECTED">Dada roghnaithe</text>
+ <text id="IDS_COM_BODY_DEC">Nol.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cuir ar ceal</text>
+ <text id="IDS_ALM_BODY_REPEAT">Athdhéan</text>
+ <text id="IDS_TMR_BODY_MIN1">nóim</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Níl aláraim ann</text>
+ <text id="IDS_COM_BODY_AM">R.N.</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Níl míreanna ann</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Gach Luan</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Am</text>
+ <text id="IDS_COM_SK_NEW">Nua</text>
+ <text id="IDS_ALM_SK3_SAVE">Sábháil</text>
+ <text id="IDS_COM_BODY_JUN">Meit</text>
+ <text id="IDS_ALM_BODY_TIME">Am</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Néal codlata</text>
+ <text id="IDS_COM_BODY_JUL">Iúil</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Atosaigh</text>
+ <text id="IDS_ALM_BODY_TYPE">Cineál</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Atosaigh</text>
+ <text id="IDS_WCL_SK_DONE">Déanta</text>
+ <text id="IDS_COM_BODY_APR">Aib.</text>
+ <text id="IDS_COM_POP_PM">I.N.</text>
+ <text id="IDS_ALM_BODY_5MINS">5 nóim</text>
+ <text id="IDS_COM_BODY_MAY">Bealtaine</text>
+ <text id="IDS_ALM_BODY_NAME">Ainm</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Crith</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Socruithe DST</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Fad ama an néil chodlata</text>
+ <text id="IDS_COM_BODY_MAR">Már.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 Aláram roghnaithe</text>
+ <text id="IDS_ALM_BODY_MELODY">Séis</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Gach Aoine</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Déan athordú</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Gach Céadaoin</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tá an t-am istigh</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Ní féidir cathair a chur leis. Tá liosta na gClog Domhanda lán. Scrios roinnt míreanna ar dtús</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sórtáil de réir</text>
+ <text id="IDS_TMR_BODY_SEC">soic</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 huaire</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Staduaireadóir</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stop bualadh</text>
+ <text id="IDS_TMR_BODY_HOUR">Uair an chloig</text>
+ <text id="IDS_COM_BODY_JAN">Ean.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Clog Domhanda</text>
+ <text id="IDS_COM_BODY_SEP">M.F.</text>
+ <text id="IDS_COM_BODY_AUG">Lún.</text>
+ <text id="IDS_TMR_SK_START">Tosaigh</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Gach Máirt</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Aláram</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Tuilleadh</text>
+ <text id="IDS_COM_BODY_TIMER">Amadóir</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Aláram am istigh</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Déan néal codlata arís</text>
+ <text id="IDS_COM_BODY_SEARCH">Cuardaigh</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Roghnaigh aláraim</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Gach Satharn</text>
+ <text id="IDS_SWT_BUTTON_RESET">Athshocrú</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cathair roghnaithe</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Gach lá</text>
+ <text id="IDS_ALM_BODY_10MINS">10 nóim</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cuir DST ar ceal</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 nóim</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Gach Déardaoin</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Am istigh</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d aláram roghnaithe</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d uair</text>
+ <text id="IDS_COM_POP_DELETED">Scriosta</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 huaire</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Níl torthaí cuardaigh ann</text>
+ <text id="IDS_SWT_BUTTON_LAP">Cuaird</text>
+ <text id="IDS_COM_SK_ADD">Cuir leis</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Athshocrú</text>
+ <text id="IDS_ALM_HEADER_TYPE">Cineál</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Séis</text>
+ <text id="IDS_COM_BUTTON_RECENT">Deireanach</text>
+ <text id="IDS_TMR_BODY_MIN">nóim</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 chathair roghnaithe</text>
+ <text id="IDS_COM_BODY_OCT">D.F.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Le hainm</text>
+ <text id="IDS_ALM_SK_DELETE">Scrios</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Gach Domhnach</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Níl míreanna ann</text>
+ <text id="IDS_COM_BODY_FEB">Feab</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodía e vibración</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Zona horaria</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 veces</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seleccionado</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Seleccionar zona horaria</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Seleccionar todo</text>
+ <text id="IDS_NOTHING_SELECTED">Non se seleccionou nada</text>
+ <text id="IDS_COM_BODY_DEC">Dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancelar</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetir</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Non hai alarmas</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Sen elementos</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Todos os luns</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Hora</text>
+ <text id="IDS_COM_SK_NEW">Novo</text>
+ <text id="IDS_ALM_SK3_SAVE">Gardar</text>
+ <text id="IDS_COM_BODY_JUN">Xun.</text>
+ <text id="IDS_ALM_BODY_TIME">Hora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Función de repetición</text>
+ <text id="IDS_COM_BODY_JUL">Xul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reiniciar</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipo</text>
+ <text id="IDS_TMR_SK3_STOP">Deter</text>
+ <text id="IDS_TMR_SK3_RESTART">Reinic.</text>
+ <text id="IDS_WCL_SK_DONE">Finalizado</text>
+ <text id="IDS_COM_BODY_APR">Abr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Mai.</text>
+ <text id="IDS_ALM_BODY_NAME">Nome</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibración</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Axustes do horario de verán</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Duración da repetición</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarma seleccionada</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodía</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Todos os venres</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Volver ordenar</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Todos os mércores</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tempo esgotado</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Non se pode engadir a cidade. A lista do Reloxo Mundial está chea. Elimina primeiro algúns elementos</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordenar por</text>
+ <text id="IDS_TMR_BODY_SEC">seg</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 veces</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronómetro</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Deter ton de chamada</text>
+ <text id="IDS_TMR_BODY_HOUR">Hora</text>
+ <text id="IDS_COM_BODY_JAN">Xan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Reloxo Mundial</text>
+ <text id="IDS_COM_BODY_SEP">Set.</text>
+ <text id="IDS_COM_BODY_AUG">Ago.</text>
+ <text id="IDS_TMR_SK_START">Comezar</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Todos os martes</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarma</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Máis</text>
+ <text id="IDS_COM_BODY_TIMER">Temporizador</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Espertador fóra de tempo</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Prolongación da repetición</text>
+ <text id="IDS_COM_BODY_SEARCH">Buscar</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Seleccionar alarmas</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Todos os sábados</text>
+ <text id="IDS_SWT_BUTTON_RESET">Restab.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cidades seleccionadas</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Todos os días</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancelar DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Todos os xoves</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tempo de espera</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmas seleccionadas</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d veces</text>
+ <text id="IDS_COM_POP_DELETED">Eliminado</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 veces</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Non hai resultados da busca</text>
+ <text id="IDS_SWT_BUTTON_LAP">Volta</text>
+ <text id="IDS_COM_SK_ADD">Engadir</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Restablecer</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipo</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodía</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recente</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 cidade seleccionada</text>
+ <text id="IDS_COM_BODY_OCT">Out.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Por nome</text>
+ <text id="IDS_ALM_SK_DELETE">Eliminar</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Todos os domingos</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Sen elementos</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">मेलोडी और कंपन</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">समय ज़ोन</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 बार</text>
+ <text id="IDS_COM_BODY_NOV">नव.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d चुना गया</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">समय जोन चुनें</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">सभी चुनें</text>
+ <text id="IDS_NOTHING_SELECTED">कुछ चयनित नहीं</text>
+ <text id="IDS_COM_BODY_DEC">दिस.</text>
+ <text id="IDS_ALM_SK_CANCEL">रद्द</text>
+ <text id="IDS_ALM_BODY_REPEAT">दोहराएँ</text>
+ <text id="IDS_TMR_BODY_MIN1">मिनट</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">कोई अलार्म नहीं</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">कोई मदें नहीं</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">प्रत्येक सोमवार</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">समय</text>
+ <text id="IDS_COM_SK_NEW">नया</text>
+ <text id="IDS_ALM_SK3_SAVE">सुरक्षित करें</text>
+ <text id="IDS_COM_BODY_JUN">जून</text>
+ <text id="IDS_ALM_BODY_TIME">समय</text>
+ <text id="IDS_ALM_BODY_SNOOZE">स्नूज़</text>
+ <text id="IDS_COM_BODY_JUL">जुल.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">पुनः शुरू करें</text>
+ <text id="IDS_ALM_BODY_TYPE">प्रकार</text>
+ <text id="IDS_TMR_SK3_STOP">रोकें</text>
+ <text id="IDS_TMR_SK3_RESTART">पुन: शुरू</text>
+ <text id="IDS_WCL_SK_DONE">हुआ</text>
+ <text id="IDS_COM_BODY_APR">अप.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 मिनट</text>
+ <text id="IDS_COM_BODY_MAY">मई</text>
+ <text id="IDS_ALM_BODY_NAME">नाम</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">कंपन</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST सेटिंग्स</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">स्नूज़ अवधि</text>
+ <text id="IDS_COM_BODY_MAR">मा.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 अलार्म चुना गया</text>
+ <text id="IDS_ALM_BODY_MELODY">मेलोडी</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">प्रत्येक शुक्रवार</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">पुन: क्रम</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">प्रत्येक बुधवार</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">समय बीत गया</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">शहर जोड़ने में अक्षम। विश्व घड़ी सूची पूर्ण। पहले कुछ आइटम्स हटाएँ</text>
+ <text id="IDS_ALM_OPT_SORT_BY">से छाटें</text>
+ <text id="IDS_TMR_BODY_SEC">सेकंड</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 बार</text>
+ <text id="IDS_COM_BODY_STOPWATCH">स्टॉपवॉच</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">रिंग करना बंद करें</text>
+ <text id="IDS_TMR_BODY_HOUR">घंटा</text>
+ <text id="IDS_COM_BODY_JAN">जन.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">विश्व घड़ी</text>
+ <text id="IDS_COM_BODY_SEP">सित.</text>
+ <text id="IDS_COM_BODY_AUG">अग.</text>
+ <text id="IDS_TMR_SK_START">प्रारंभ</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">प्रत्येक मंगलवार</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">अलार्म</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">अधिक</text>
+ <text id="IDS_COM_BODY_TIMER">टाइमर</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">अलार्म समय समाप्त</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">स्नूज़ दोहराव</text>
+ <text id="IDS_COM_BODY_SEARCH">खोजें</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">अलार्म्स चुनें</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">प्रत्येक शनिवार</text>
+ <text id="IDS_SWT_BUTTON_RESET">रीसेट</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d शहर चयनित</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">प्रतिदिन</text>
+ <text id="IDS_ALM_BODY_10MINS">10 मिनट</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DST कैंसिल करें</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 मिनट</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">प्रत्येक गुरूवार</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">समय समाप्त</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d अलार्म चयनित</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d बार</text>
+ <text id="IDS_COM_POP_DELETED">हटाया गया</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 बार</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">कोई खोज परिणाम नहीं</text>
+ <text id="IDS_SWT_BUTTON_LAP">लेप</text>
+ <text id="IDS_COM_SK_ADD">जोड़ें</text>
+ <text id="IDS_ALM_BODY_TONE">स्वर</text>
+ <text id="IDS_TMR_SK_RESET">रीसेट</text>
+ <text id="IDS_ALM_HEADER_TYPE">प्रकार</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">मेलोडी</text>
+ <text id="IDS_COM_BUTTON_RECENT">हाल ही का</text>
+ <text id="IDS_TMR_BODY_MIN">मिनट</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 शहर चयनित</text>
+ <text id="IDS_COM_BODY_OCT">अक.</text>
+ <text id="IDS_WCL_SK_BY_NAME">नाम द्वारा</text>
+ <text id="IDS_ALM_SK_DELETE">हटाएँ</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">प्रत्येक रविवार</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">कोई मदें नहीं</text>
+ <text id="IDS_COM_BODY_FEB">फ़र</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Ton zvona i vibracija</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Vremenska zona</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 puta</text>
+ <text id="IDS_COM_BODY_NOV">Stu</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Odabrano</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Odabir vremenske zone</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Odaberi sve</text>
+ <text id="IDS_NOTHING_SELECTED">Ništa odabrano</text>
+ <text id="IDS_COM_BODY_DEC">Pro</text>
+ <text id="IDS_ALM_SK_CANCEL">Prekid</text>
+ <text id="IDS_ALM_BODY_REPEAT">Ponavljanje</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nema alarma</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Nema stavki</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Svakog ponedjeljka</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Vrijeme</text>
+ <text id="IDS_COM_SK_NEW">Nova</text>
+ <text id="IDS_ALM_SK3_SAVE">Spremi</text>
+ <text id="IDS_COM_BODY_JUN">Lip</text>
+ <text id="IDS_ALM_BODY_TIME">Vrijeme</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Odgođeno</text>
+ <text id="IDS_COM_BODY_JUL">Srp</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Ponovi</text>
+ <text id="IDS_ALM_BODY_TYPE">Vrsta</text>
+ <text id="IDS_TMR_SK3_STOP">Zaustavi</text>
+ <text id="IDS_TMR_SK3_RESTART">Pon. pokretanje</text>
+ <text id="IDS_WCL_SK_DONE">OK</text>
+ <text id="IDS_COM_BODY_APR">Tra</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Svibanj</text>
+ <text id="IDS_ALM_BODY_NAME">Naziv</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibracija</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Postavke ljetnog vremena</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Interval</text>
+ <text id="IDS_COM_BODY_MAR">Ožu</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm odabran</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodija</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Svakog petka</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Poredaj</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Svake srijede</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Vrijeme isteklo</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Nemoguće dodati grad. Popis Svjetskog vremena pun. Obrišite neke</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortiraj po</text>
+ <text id="IDS_TMR_BODY_SEC">sek</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 puta</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Štoperica</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Prekid zvonjenja</text>
+ <text id="IDS_TMR_BODY_HOUR">Sat</text>
+ <text id="IDS_COM_BODY_JAN">Sij</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Svjetsko vrijeme</text>
+ <text id="IDS_COM_BODY_SEP">Ruj</text>
+ <text id="IDS_COM_BODY_AUG">Kol</text>
+ <text id="IDS_TMR_SK_START">Pokreni</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Svakog utorka</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Više</text>
+ <text id="IDS_COM_BODY_TIMER">Odbrojavanje</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarm isteka vremena</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Ponavljanje</text>
+ <text id="IDS_COM_BODY_SEARCH">Traži</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Odaberi alarme</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Svake subote</text>
+ <text id="IDS_SWT_BUTTON_RESET">Poništi</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Gradova odabrano: %d</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Dnevno</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Isključi ljetno vrijeme</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Svakog četvrtka</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Istek vremena</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Odabrano %d alarma</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d puta</text>
+ <text id="IDS_COM_POP_DELETED">Obrisano</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 puta</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nema traženih rezultata</text>
+ <text id="IDS_SWT_BUTTON_LAP">Krug</text>
+ <text id="IDS_COM_SK_ADD">Dodaj</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Poništi</text>
+ <text id="IDS_ALM_HEADER_TYPE">Vrsta</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodija</text>
+ <text id="IDS_COM_BUTTON_RECENT">Posljednji</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 grad odabran</text>
+ <text id="IDS_COM_BODY_OCT">Lis</text>
+ <text id="IDS_WCL_SK_BY_NAME">Po nazivu</text>
+ <text id="IDS_ALM_SK_DELETE">Obriši</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Svake nedjelje</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Nema stavki</text>
+ <text id="IDS_COM_BODY_FEB">Velj</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Dallam és rezgés</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Időzóna</text>
+ <text id="IDS_ALM_BODY_10TIMES">Tízszer</text>
+ <text id="IDS_COM_BODY_NOV">nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Kiválasztott</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Időzóna kiválasztása</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Összes kijelölése</text>
+ <text id="IDS_NOTHING_SELECTED">Semmi nincs kiválasztva</text>
+ <text id="IDS_COM_BODY_DEC">dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Mégse</text>
+ <text id="IDS_ALM_BODY_REPEAT">Ismétlés</text>
+ <text id="IDS_TMR_BODY_MIN1">perc</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nincs ébresztés</text>
+ <text id="IDS_COM_BODY_AM">de.</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Nincs tétel</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Minden hétfőn</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Idő</text>
+ <text id="IDS_COM_SK_NEW">Új</text>
+ <text id="IDS_ALM_SK3_SAVE">Ment</text>
+ <text id="IDS_COM_BODY_JUN">jún.</text>
+ <text id="IDS_ALM_BODY_TIME">Idő</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Szundi</text>
+ <text id="IDS_COM_BODY_JUL">júl.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Újraindít</text>
+ <text id="IDS_ALM_BODY_TYPE">Típus</text>
+ <text id="IDS_TMR_SK3_STOP">Leállít</text>
+ <text id="IDS_TMR_SK3_RESTART">Újraindít</text>
+ <text id="IDS_WCL_SK_DONE">Kész</text>
+ <text id="IDS_COM_BODY_APR">ápr.</text>
+ <text id="IDS_COM_POP_PM">du.</text>
+ <text id="IDS_ALM_BODY_5MINS">5 perc</text>
+ <text id="IDS_COM_BODY_MAY">máj.</text>
+ <text id="IDS_ALM_BODY_NAME">Név</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Rezgés</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Nyári időszámítás beállításai</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Szundi időtartama</text>
+ <text id="IDS_COM_BODY_MAR">már.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 jelzés kijelölve</text>
+ <text id="IDS_ALM_BODY_MELODY">Dallam</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Minden pénteken</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Átrendezés</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Minden szerdán</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Lejárt az idő</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Nem adható hozzá város. A Világóra listája megtelt. Előbb töröljön néhány tételt</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Rendezés</text>
+ <text id="IDS_TMR_BODY_SEC">mp</text>
+ <text id="IDS_ALM_BODY_3TIMES">Háromszor</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopperóra</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Csengés leállítása</text>
+ <text id="IDS_TMR_BODY_HOUR">óra</text>
+ <text id="IDS_COM_BODY_JAN">jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Világóra</text>
+ <text id="IDS_COM_BODY_SEP">szep</text>
+ <text id="IDS_COM_BODY_AUG">aug.</text>
+ <text id="IDS_TMR_SK_START">Indít</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Minden kedden</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Jelzés</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Egyebek</text>
+ <text id="IDS_COM_BODY_TIMER">Időzítő</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Jelzés ideje</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Szundi ismétlése</text>
+ <text id="IDS_COM_BODY_SEARCH">Keresés</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Jelzés kiválasztása</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Minden szombaton</text>
+ <text id="IDS_SWT_BUTTON_RESET">Nullázás</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d város kiválasztva</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Minden nap</text>
+ <text id="IDS_ALM_BODY_10MINS">10 perc</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Nyári időszámítást kikapcsol</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 perc</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Minden csütörtökön</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Időtúllépés</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d jelzés kijelölve</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d ízben</text>
+ <text id="IDS_COM_POP_DELETED">Törölve</text>
+ <text id="IDS_ALM_BODY_5TIMES">Ötször</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nincs találat</text>
+ <text id="IDS_SWT_BUTTON_LAP">Köridő</text>
+ <text id="IDS_COM_SK_ADD">Hozzáad</text>
+ <text id="IDS_ALM_BODY_TONE">Hang</text>
+ <text id="IDS_TMR_SK_RESET">Visszaállít</text>
+ <text id="IDS_ALM_HEADER_TYPE">Típus</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Dallam</text>
+ <text id="IDS_COM_BUTTON_RECENT">Utolsó</text>
+ <text id="IDS_TMR_BODY_MIN">perc</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 város kiválasztva</text>
+ <text id="IDS_COM_BODY_OCT">okt.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Név szer.</text>
+ <text id="IDS_ALM_SK_DELETE">Töröl</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Minden vasárnap</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Nincs tétel</text>
+ <text id="IDS_COM_BODY_FEB">feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Մեղեդի և թրթռում</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Ժամային գոտի</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 անգամ</text>
+ <text id="IDS_COM_BODY_NOV">Նոյ</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Ընտրված</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Ընտրել ժամային գոտին</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Ընտրել բոլորը</text>
+ <text id="IDS_NOTHING_SELECTED">Ոչինչ ընտրված չէ</text>
+ <text id="IDS_COM_BODY_DEC">Դեկտ</text>
+ <text id="IDS_ALM_SK_CANCEL">Չեղարկել</text>
+ <text id="IDS_ALM_BODY_REPEAT">Կրկնություն</text>
+ <text id="IDS_TMR_BODY_MIN1">րոպ</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ազդանշան չկա</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Տարրեր չկան</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Յուրաքանչյուր Երկուշաբթի</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Ժամանակ</text>
+ <text id="IDS_COM_SK_NEW">Նոր</text>
+ <text id="IDS_ALM_SK3_SAVE">Պահպանել</text>
+ <text id="IDS_COM_BODY_JUN">Հուն</text>
+ <text id="IDS_ALM_BODY_TIME">Ժամանակ</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Հիշեցնել հետո</text>
+ <text id="IDS_COM_BODY_JUL">Հուլ</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Վերագործրկլ</text>
+ <text id="IDS_ALM_BODY_TYPE">Տեսակ</text>
+ <text id="IDS_TMR_SK3_STOP">Կանգնել</text>
+ <text id="IDS_TMR_SK3_RESTART">Վերսկսել</text>
+ <text id="IDS_WCL_SK_DONE">Պատրաստ</text>
+ <text id="IDS_COM_BODY_APR">Ապր.</text>
+ <text id="IDS_COM_POP_PM">ԿՀ</text>
+ <text id="IDS_ALM_BODY_5MINS">5 րոպ</text>
+ <text id="IDS_COM_BODY_MAY">Մայ</text>
+ <text id="IDS_ALM_BODY_NAME">Անուն</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Թրթռիչ</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">ԱԺ-ի դրվածքներ</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Հետաձգման տևողություն</text>
+ <text id="IDS_COM_BODY_MAR">Մրտ</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 տագնապ է ընտրվել</text>
+ <text id="IDS_ALM_BODY_MELODY">Մեղեդի</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Յուրաքանչյուր Ուրբաթ</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Վերադասավորել</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Յուրաքանչյուր Չորեքշաբթի</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Ժամանակը սպառվեց</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Անհնար է ավելացնել քաղաք: Աշխարհի ժամացույցի ցանկը լիքն է: Նախ վերացրեք որոշ տարրեր</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Տեսակավորել ըստ</text>
+ <text id="IDS_TMR_BODY_SEC">վրկ</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 անգամ</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Վայրկյանաչափ</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Կանգնեցնել զանգը</text>
+ <text id="IDS_TMR_BODY_HOUR">Ժամ</text>
+ <text id="IDS_COM_BODY_JAN">Հնվ</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Համաշխարհային ժամացույց</text>
+ <text id="IDS_COM_BODY_SEP">Սպտ</text>
+ <text id="IDS_COM_BODY_AUG">Օգս</text>
+ <text id="IDS_TMR_SK_START">Սկսել</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Յուրաքանչյուր Երեքշաբթի</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Ազդանշան</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Ավելին</text>
+ <text id="IDS_COM_BODY_TIMER">Ժամանակաչափ</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Ժամանակը սպառված տագնապ</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Հիշեցման կրկնում</text>
+ <text id="IDS_COM_BODY_SEARCH">Որոնել</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Ընտրել տագնապի ազդանշանններ</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Յուրաքանչյուր Շաբաթ</text>
+ <text id="IDS_SWT_BUTTON_RESET">Զրոյացնել</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d քաղաք է ընտրվել</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Ամեն օր</text>
+ <text id="IDS_ALM_BODY_10MINS">10 րոպ</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Չեղարկել ամառային ժմնակը</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 րոպ</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Յուրաքանչյուր Հինգշաբթի</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Ժամանակը սպառվեց</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Ընտրվել է %d ազդանշան</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d անգամ</text>
+ <text id="IDS_COM_POP_DELETED">Ջնջված է</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 անգամ</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Որոնման արդյունքներ չկան</text>
+ <text id="IDS_SWT_BUTTON_LAP">Պտույտ</text>
+ <text id="IDS_COM_SK_ADD">Ավելացնել</text>
+ <text id="IDS_ALM_BODY_TONE">Ձայն</text>
+ <text id="IDS_TMR_SK_RESET">Զրոյացնել</text>
+ <text id="IDS_ALM_HEADER_TYPE">Տեսակ</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Մեղեդի</text>
+ <text id="IDS_COM_BUTTON_RECENT">Վերջերս</text>
+ <text id="IDS_TMR_BODY_MIN">րոպ</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 քաղաք է ընտրվել</text>
+ <text id="IDS_COM_BODY_OCT">Հոկտ</text>
+ <text id="IDS_WCL_SK_BY_NAME">Ըստ անվան</text>
+ <text id="IDS_ALM_SK_DELETE">Ջնջել</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Յուրաքանչյուր Կիրակի</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Տարրեր չկան</text>
+ <text id="IDS_COM_BODY_FEB">Փտրվ</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201309242034" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Lag og titringur</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Tímabelti</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 sinnum</text>
+ <text id="IDS_COM_BODY_NOV">nóv.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Valið</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Veldu tímabelti</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Velja allt</text>
+ <text id="IDS_NOTHING_SELECTED">Ekkert er valið</text>
+ <text id="IDS_COM_BODY_DEC">Des.</text>
+ <text id="IDS_ALM_SK_CANCEL">Hætta við</text>
+ <text id="IDS_ALM_BODY_REPEAT">Endurtaka</text>
+ <text id="IDS_TMR_BODY_MIN1">mín</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Engar áminningar</text>
+ <text id="IDS_COM_BODY_AM">fh</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Engin atriði</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Alla mánudaga</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Tími</text>
+ <text id="IDS_COM_SK_NEW">Nýr</text>
+ <text id="IDS_ALM_SK3_SAVE">Vista</text>
+ <text id="IDS_COM_BODY_JUN">Jún.</text>
+ <text id="IDS_ALM_BODY_TIME">Tími</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Blunda</text>
+ <text id="IDS_COM_BODY_JUL">Júl.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Endurræsa</text>
+ <text id="IDS_ALM_BODY_TYPE">Gerð</text>
+ <text id="IDS_TMR_SK3_STOP">Stöðva</text>
+ <text id="IDS_TMR_SK3_RESTART">Endurræsa</text>
+ <text id="IDS_WCL_SK_DONE">Lokið</text>
+ <text id="IDS_COM_BODY_APR">apr.</text>
+ <text id="IDS_COM_POP_PM">eh</text>
+ <text id="IDS_ALM_BODY_5MINS">5 mín</text>
+ <text id="IDS_COM_BODY_MAY">Maí</text>
+ <text id="IDS_ALM_BODY_NAME">Heiti</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Titringur</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Stillingar sumartíma</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Lengd blunds</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 áminning valin</text>
+ <text id="IDS_ALM_BODY_MELODY">Lag</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Alla föstudaga</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Panta aftur</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Alla miðvikudaga</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tíminn er liðinn</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Raða eftir</text>
+ <text id="IDS_TMR_BODY_SEC">sek</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 skipti</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Skeiðklukka</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Hætta hringingu</text>
+ <text id="IDS_TMR_BODY_HOUR">Klst.</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Heimsklukka</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">ág.</text>
+ <text id="IDS_TMR_SK_START">Ræsa</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Alla þriðjudaga</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Vekjaraklukka</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Meira</text>
+ <text id="IDS_COM_BODY_TIMER">Niðurteljari</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Áminning tímamarka</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Endurtaka blund</text>
+ <text id="IDS_COM_BODY_SEARCH">Leit</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Velja áminningar</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Alla laugardaga</text>
+ <text id="IDS_SWT_BUTTON_RESET">Núllstil.</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Daglega</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d borgir valdar</text>
+ <text id="IDS_ALM_BODY_10MINS">10 mín</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Hætta að nota sumartíma</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 mín</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Alla fimmtudaga</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tími búinn</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d áminningar valdar</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d sinnum</text>
+ <text id="IDS_COM_POP_DELETED">Eytt</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 skipti</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Engar leitarniðurstöður</text>
+ <text id="IDS_COM_SK_ADD">Bæta við</text>
+ <text id="IDS_SWT_BUTTON_LAP">Millitími</text>
+ <text id="IDS_ALM_BODY_TONE">Tónn</text>
+ <text id="IDS_TMR_SK_RESET">Endurstilla</text>
+ <text id="IDS_ALM_HEADER_TYPE">Gerð</text>
+ <text id="IDS_COM_BUTTON_RECENT">Nýlegt</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Lag</text>
+ <text id="IDS_TMR_BODY_MIN">mín</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 valin borg</text>
+ <text id="IDS_WCL_SK_BY_NAME">Nafnaleit</text>
+ <text id="IDS_COM_BODY_OCT">okt.</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_SK_DELETE">Eyða</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Alla sunnudaga</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Engin atriði</text>
+ <text id="IDS_COM_BODY_FEB">feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Suoneria e vibrazione</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Fuso orario</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 volte</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Selezionato</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Seleziona fuso orario</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Seleziona tutto</text>
+ <text id="IDS_NOTHING_SELECTED">Nessun elemento selezionato</text>
+ <text id="IDS_COM_BODY_DEC">Dic</text>
+ <text id="IDS_ALM_SK_CANCEL">Annulla</text>
+ <text id="IDS_ALM_BODY_REPEAT">Ripeti</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nessuna sveglia</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Nessun elemento</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Ogni lunedì</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Ora</text>
+ <text id="IDS_COM_SK_NEW">Nuovo</text>
+ <text id="IDS_ALM_SK3_SAVE">Salva</text>
+ <text id="IDS_COM_BODY_JUN">Giu</text>
+ <text id="IDS_ALM_BODY_TIME">Ora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Sospendi</text>
+ <text id="IDS_COM_BODY_JUL">Lug</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Riavvia</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipo</text>
+ <text id="IDS_TMR_SK3_STOP">Ferma</text>
+ <text id="IDS_TMR_SK3_RESTART">Riavvia</text>
+ <text id="IDS_WCL_SK_DONE">Fatto</text>
+ <text id="IDS_COM_BODY_APR">Apr</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Maggio</text>
+ <text id="IDS_ALM_BODY_NAME">Nome</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrazione</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Ora legale</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Durata rinvio</text>
+ <text id="IDS_COM_BODY_MAR">Mar</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 avviso selezionato</text>
+ <text id="IDS_ALM_BODY_MELODY">Suoneria</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Ogni venerdì</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Riordina</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Ogni mercoledì</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tempo scaduto</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Impossibile aggiungere città. Elenco Fusi orari pieno. Eliminare prima alcuni elementi</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordina per</text>
+ <text id="IDS_TMR_BODY_SEC">sec</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 volte</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronometro</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Arresta suoneria</text>
+ <text id="IDS_TMR_BODY_HOUR">Ora</text>
+ <text id="IDS_COM_BODY_JAN">Gen</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Fusi orari</text>
+ <text id="IDS_COM_BODY_SEP">Set</text>
+ <text id="IDS_COM_BODY_AUG">Ago</text>
+ <text id="IDS_TMR_SK_START">Avvia</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Ogni martedì</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Sveglia</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Altro</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Timer</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Ripetizione sospensione</text>
+ <text id="IDS_COM_BODY_SEARCH">Cerca</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Seleziona sveglie</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Ogni sabato</text>
+ <text id="IDS_SWT_BUTTON_RESET">Azzera</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d città selezionate</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Ogni giorno</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Annulla ora legale</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Ogni giovedì</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tempo scaduto</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d sveglie selezionate</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d volte</text>
+ <text id="IDS_COM_POP_DELETED">Eliminato/i</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 volte</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nessun risultato della ricerca</text>
+ <text id="IDS_SWT_BUTTON_LAP">Giro</text>
+ <text id="IDS_COM_SK_ADD">Aggiungi</text>
+ <text id="IDS_ALM_BODY_TONE">Tono</text>
+ <text id="IDS_TMR_SK_RESET">Azzera</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipo</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Suoneria</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recenti</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 città selezionata</text>
+ <text id="IDS_COM_BODY_OCT">Ott</text>
+ <text id="IDS_WCL_SK_BY_NAME">Per nome</text>
+ <text id="IDS_ALM_SK_DELETE">Elimina</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Ogni domenica</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Nessun elemento</text>
+ <text id="IDS_COM_BODY_FEB">Feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">メロディとバイブ</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">タイムゾーン</text>
+ <text id="IDS_ALM_BODY_10TIMES">10回</text>
+ <text id="IDS_COM_BODY_NOV">11月</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d 選択済み</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">タイムゾーンを選択</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">全て選択</text>
+ <text id="IDS_NOTHING_SELECTED">何も選択されていません。</text>
+ <text id="IDS_COM_BODY_DEC">12月</text>
+ <text id="IDS_ALM_SK_CANCEL">キャンセル</text>
+ <text id="IDS_ALM_BODY_REPEAT">繰り返し</text>
+ <text id="IDS_TMR_BODY_MIN1">分</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">アラームはありません。</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">アイテムがありません。</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">毎週月曜日</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Time</text>
+ <text id="IDS_COM_SK_NEW">新規</text>
+ <text id="IDS_ALM_SK3_SAVE">保存</text>
+ <text id="IDS_COM_BODY_JUN">6月</text>
+ <text id="IDS_ALM_BODY_TIME">時刻</text>
+ <text id="IDS_ALM_BODY_SNOOZE">スヌーズ</text>
+ <text id="IDS_COM_BODY_JUL">7月</text>
+ <text id="IDS_SWT_BUTTON_RESTART">リスタート</text>
+ <text id="IDS_ALM_BODY_TYPE">ファイルタイプ</text>
+ <text id="IDS_TMR_SK3_STOP">ストップ</text>
+ <text id="IDS_TMR_SK3_RESTART">リスタート</text>
+ <text id="IDS_WCL_SK_DONE">完了</text>
+ <text id="IDS_COM_BODY_APR">4月</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5分</text>
+ <text id="IDS_COM_BODY_MAY">5月</text>
+ <text id="IDS_ALM_BODY_NAME">名前</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">バイブ</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">サマータイム設定</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">スヌーズ間隔</text>
+ <text id="IDS_COM_BODY_MAR">3月</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1件のアラームを選択しました</text>
+ <text id="IDS_ALM_BODY_MELODY">メロディ</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">毎週金曜日</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">並べ替え</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">毎週水曜日</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">タイムアップ</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">都市を追加できません。世界時計リストがいっぱいです。先にアイテムをいくつか削除してください。</text>
+ <text id="IDS_ALM_OPT_SORT_BY">ソート</text>
+ <text id="IDS_TMR_BODY_SEC">秒</text>
+ <text id="IDS_ALM_BODY_3TIMES">3回</text>
+ <text id="IDS_COM_BODY_STOPWATCH">ストップウォッチ</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">音を停止</text>
+ <text id="IDS_TMR_BODY_HOUR">時間</text>
+ <text id="IDS_COM_BODY_JAN">1月</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">世界時計</text>
+ <text id="IDS_COM_BODY_SEP">9月</text>
+ <text id="IDS_COM_BODY_AUG">8月</text>
+ <text id="IDS_TMR_SK_START">スタート</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">毎週火曜日</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">アラーム</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">その他</text>
+ <text id="IDS_COM_BODY_TIMER">タイマー</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">時間切れアラーム</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">スヌーズ回数</text>
+ <text id="IDS_COM_BODY_SEARCH">検索</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">アラームを選択</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">毎週土曜日</text>
+ <text id="IDS_SWT_BUTTON_RESET">リセット</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d件の都市が選択されました</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">毎日</text>
+ <text id="IDS_ALM_BODY_10MINS">10分</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DSTを中止</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3分ごと</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">毎週木曜日</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">時間です</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d件のアラームが選択されました</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d回</text>
+ <text id="IDS_COM_POP_DELETED">削除しました。</text>
+ <text id="IDS_ALM_BODY_5TIMES">5回</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">検索結果がありません。</text>
+ <text id="IDS_SWT_BUTTON_LAP">ラップ</text>
+ <text id="IDS_COM_SK_ADD">追加</text>
+ <text id="IDS_ALM_BODY_TONE">音</text>
+ <text id="IDS_TMR_SK_RESET">リセット</text>
+ <text id="IDS_ALM_HEADER_TYPE">ファイルタイプ</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">メロディ</text>
+ <text id="IDS_COM_BUTTON_RECENT">最近の履歴</text>
+ <text id="IDS_TMR_BODY_MIN">分</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1件の都市が選択されました</text>
+ <text id="IDS_COM_BODY_OCT">10月</text>
+ <text id="IDS_WCL_SK_BY_NAME">名前順</text>
+ <text id="IDS_ALM_SK_DELETE">削除</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">毎週日曜日</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">アイテムがありません。</text>
+ <text id="IDS_COM_BODY_FEB">2月</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">მელოდია და ვიბრაცია</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">საათობრივი სარტყელი</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 ჯერ</text>
+ <text id="IDS_COM_BODY_NOV">ნოე.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d შერჩეული</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">დროითი სარტყელის არჩევა</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">ყველას არჩევა</text>
+ <text id="IDS_NOTHING_SELECTED">არაფერია არჩეული</text>
+ <text id="IDS_COM_BODY_DEC">დეკ.</text>
+ <text id="IDS_ALM_SK_CANCEL">გაუქმება</text>
+ <text id="IDS_ALM_BODY_REPEAT">გამეორება</text>
+ <text id="IDS_TMR_BODY_MIN1">წუთი</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">სიგნალები არ არის</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">ელემენტები არ არის</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">ყოველ ორშაბათს</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">დრო</text>
+ <text id="IDS_COM_SK_NEW">ახალი</text>
+ <text id="IDS_ALM_SK3_SAVE">შენახვა</text>
+ <text id="IDS_COM_BODY_JUN">ივნ.</text>
+ <text id="IDS_ALM_BODY_TIME">დრო</text>
+ <text id="IDS_ALM_BODY_SNOOZE">თვლემა</text>
+ <text id="IDS_COM_BODY_JUL">ივლ.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">თავიდან ჩართვა</text>
+ <text id="IDS_ALM_BODY_TYPE">ტიპი</text>
+ <text id="IDS_TMR_SK3_STOP">შეჩერება</text>
+ <text id="IDS_TMR_SK3_RESTART">თავიდან ჩართვა</text>
+ <text id="IDS_WCL_SK_DONE">შესრულდა</text>
+ <text id="IDS_COM_BODY_APR">აპრ.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 წთ.</text>
+ <text id="IDS_COM_BODY_MAY">მაისი</text>
+ <text id="IDS_ALM_BODY_NAME">სახელი</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">ვიბრაცია</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST პარამეტრები</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">თვლემის ხანგრძლივობა</text>
+ <text id="IDS_COM_BODY_MAR">მარ.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">არჩეულია 1 სიგნალი</text>
+ <text id="IDS_ALM_BODY_MELODY">მელოდია</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">ყოველ პარასკევს</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">გადალაგება</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">ყოველ ოთხშაბათს</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">დრო გავიდა</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">ქალაქს ვერ დაამატებთ. მსოფლიო საათების სია გაივსო. ჯერ წაშალეთ ზოგიერთი მათგანი</text>
+ <text id="IDS_ALM_OPT_SORT_BY">გადარჩევა</text>
+ <text id="IDS_TMR_BODY_SEC">წმ.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3-ჯერ</text>
+ <text id="IDS_COM_BODY_STOPWATCH">წამზომი</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">რეკვის შეჩერება</text>
+ <text id="IDS_TMR_BODY_HOUR">საათი</text>
+ <text id="IDS_COM_BODY_JAN">იან.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">მსოფლიო საათი</text>
+ <text id="IDS_COM_BODY_SEP">სექ.</text>
+ <text id="IDS_COM_BODY_AUG">აგვ.</text>
+ <text id="IDS_TMR_SK_START">დაწყება</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">ყოველ სამშაბათს</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">სიგნალი</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">სხვა</text>
+ <text id="IDS_COM_BODY_TIMER">თაიმერი</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">დროგასული სიგნალი</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">თვლემის გამეორება</text>
+ <text id="IDS_COM_BODY_SEARCH">ძიება</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">სიგნალების არჩევა</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">ყოველ შაბათს</text>
+ <text id="IDS_SWT_BUTTON_RESET">გაუქმება</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">არჩეულია %d ქალაქი</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">ყოველდღე</text>
+ <text id="IDS_ALM_BODY_10MINS">10 წთ.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DST-ის გაუქმება</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 წთ.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">ყოველ ხუთშაბათს</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">დრო ამოიწურა</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">არჩეულია %d სიგნალი</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d-ჯერ</text>
+ <text id="IDS_COM_POP_DELETED">წაშლილია</text>
+ <text id="IDS_ALM_BODY_5TIMES">5-ჯერ</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">ძიების შედეგი არ არის</text>
+ <text id="IDS_SWT_BUTTON_LAP">დროის ჩანიშვნა</text>
+ <text id="IDS_COM_SK_ADD">დამატება</text>
+ <text id="IDS_ALM_BODY_TONE">მელოდია</text>
+ <text id="IDS_TMR_SK_RESET">განულება</text>
+ <text id="IDS_ALM_HEADER_TYPE">ტიპი</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">მელოდია</text>
+ <text id="IDS_COM_BUTTON_RECENT">ბოლო</text>
+ <text id="IDS_TMR_BODY_MIN">წუთი</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">არჩეულია 1 ქალაქი</text>
+ <text id="IDS_COM_BODY_OCT">ოქტ.</text>
+ <text id="IDS_WCL_SK_BY_NAME">სახელით</text>
+ <text id="IDS_ALM_SK_DELETE">წაშლა</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">ყოველ კვირადღეს</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">ელემენტები არ არის</text>
+ <text id="IDS_COM_BODY_FEB">თებ.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Дірілдеу мен әуен</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Уақыт зонасы</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 рет</text>
+ <text id="IDS_COM_BODY_NOV">Қар</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Таңдалды</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Уақыт белдеуін таңдау</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Бәрін бөлектеу</text>
+ <text id="IDS_NOTHING_SELECTED">Ештенке таңдалмады</text>
+ <text id="IDS_COM_BODY_DEC">Жел</text>
+ <text id="IDS_ALM_SK_CANCEL">Тоқтату</text>
+ <text id="IDS_ALM_BODY_REPEAT">Қайталау</text>
+ <text id="IDS_TMR_BODY_MIN1">мин</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Дабылдар жоқ</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Баптар жоқ</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Әр Дүйсенбіде</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Уақыт</text>
+ <text id="IDS_COM_SK_NEW">Жаңа</text>
+ <text id="IDS_ALM_SK3_SAVE">Сақтау</text>
+ <text id="IDS_COM_BODY_JUN">Мау</text>
+ <text id="IDS_ALM_BODY_TIME">Уақыт</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Тоқтатып қою</text>
+ <text id="IDS_COM_BODY_JUL">Шіл</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Қайта бастау</text>
+ <text id="IDS_ALM_BODY_TYPE">Түрі</text>
+ <text id="IDS_TMR_SK3_STOP">Тоқтату</text>
+ <text id="IDS_TMR_SK3_RESTART">Қайтадан бастау</text>
+ <text id="IDS_WCL_SK_DONE">Дайын</text>
+ <text id="IDS_COM_BODY_APR">Сәу</text>
+ <text id="IDS_COM_POP_PM">TK</text>
+ <text id="IDS_ALM_BODY_5MINS">5 мин</text>
+ <text id="IDS_COM_BODY_MAY">Maм.</text>
+ <text id="IDS_ALM_BODY_NAME">Аты</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Діріл</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">ЖУ параметрлері</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Snooze ұзақтығы</text>
+ <text id="IDS_COM_BODY_MAR">Нау</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 дабыл таңдалды</text>
+ <text id="IDS_ALM_BODY_MELODY">Әуен</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Әр Жұмада</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Қайта ретке келтіру</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Әр Сәрсенбіде</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Уақыт бітті</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Қаланы қосу мүмкін емес. Әлемдік сағат тізімі толы. Алдымен кейбір элементтерді жойыңыз</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Бойынша сұрыптау</text>
+ <text id="IDS_TMR_BODY_SEC">сек</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 рет</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Секунд өлшегіш</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Қоңырау шалуды тоқтату</text>
+ <text id="IDS_TMR_BODY_HOUR">Сағат</text>
+ <text id="IDS_COM_BODY_JAN">Қаң</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Әлемдік уақыт</text>
+ <text id="IDS_COM_BODY_SEP">Қыр</text>
+ <text id="IDS_COM_BODY_AUG">Там</text>
+ <text id="IDS_TMR_SK_START">Бастау</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Әр Сейсенбіде</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Дабыл</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Басқалар</text>
+ <text id="IDS_COM_BODY_TIMER">Таймер</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Уақыты біткен оятар</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Snooze қайталау</text>
+ <text id="IDS_COM_BODY_SEARCH">Іздеу</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Дабылдар таңдау</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Әр Сенбіде</text>
+ <text id="IDS_SWT_BUTTON_RESET">Жаңарту</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d қала таңдалды</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Күн сайын</text>
+ <text id="IDS_ALM_BODY_10MINS">10 мин</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DST бас тарту</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 мин</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Әр Бейсенбіде</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Уақыты бітті</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d дабыл таңдалды</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d уақыты</text>
+ <text id="IDS_COM_POP_DELETED">Жойылды</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 рет</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Іздеу нәтижелері жоқ</text>
+ <text id="IDS_SWT_BUTTON_LAP">Байланыс</text>
+ <text id="IDS_COM_SK_ADD">Қосу</text>
+ <text id="IDS_ALM_BODY_TONE">Дыбыс</text>
+ <text id="IDS_TMR_SK_RESET">Жариялау</text>
+ <text id="IDS_ALM_HEADER_TYPE">Түрі</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Әуен</text>
+ <text id="IDS_COM_BUTTON_RECENT">Соңғы</text>
+ <text id="IDS_TMR_BODY_MIN">мин</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 қала таңдалды</text>
+ <text id="IDS_COM_BODY_OCT">Қаз</text>
+ <text id="IDS_WCL_SK_BY_NAME">Аты б-ша</text>
+ <text id="IDS_ALM_SK_DELETE">Жою</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Әр Жексенбіде</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Баптар жоқ</text>
+ <text id="IDS_COM_BODY_FEB">Ақп</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">벨소리 및 진동</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">표준 시간대</text>
+ <text id="IDS_ALM_BODY_10TIMES">10회</text>
+ <text id="IDS_COM_BODY_NOV">11월</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d 개 선택</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">표준 시간대 선택</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">모두 선택</text>
+ <text id="IDS_NOTHING_SELECTED">선택된 것이 없습니다</text>
+ <text id="IDS_COM_BODY_DEC">12월</text>
+ <text id="IDS_ALM_SK_CANCEL">취소</text>
+ <text id="IDS_ALM_BODY_REPEAT">반복</text>
+ <text id="IDS_TMR_BODY_MIN1">분</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">알람이 없습니다</text>
+ <text id="IDS_COM_BODY_AM">오전</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">항목이 없습니다</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">월요일마다</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">시간</text>
+ <text id="IDS_COM_SK_NEW">추가</text>
+ <text id="IDS_ALM_SK3_SAVE">저장</text>
+ <text id="IDS_COM_BODY_JUN">6월</text>
+ <text id="IDS_ALM_BODY_TIME">시간</text>
+ <text id="IDS_ALM_BODY_SNOOZE">다시 알림</text>
+ <text id="IDS_COM_BODY_JUL">7월</text>
+ <text id="IDS_SWT_BUTTON_RESTART">재시작</text>
+ <text id="IDS_ALM_BODY_TYPE">종류</text>
+ <text id="IDS_TMR_SK3_STOP">중지</text>
+ <text id="IDS_TMR_SK3_RESTART">재시작</text>
+ <text id="IDS_WCL_SK_DONE">완료</text>
+ <text id="IDS_COM_BODY_APR">4월</text>
+ <text id="IDS_COM_POP_PM">오후</text>
+ <text id="IDS_ALM_BODY_5MINS">5분</text>
+ <text id="IDS_COM_BODY_MAY">5월</text>
+ <text id="IDS_ALM_BODY_NAME">이름</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">진동</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">서머타임 설정</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">다시 알림 간격</text>
+ <text id="IDS_COM_BODY_MAR">3월</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1개의 알람이 선택됨</text>
+ <text id="IDS_ALM_BODY_MELODY">벨소리</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">금요일마다</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">순서 변경</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">수요일마다</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">타이머 완료</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">도시를 추가할 수 없습니다. 세계시각 목록이 가득찼습니다. 필요 없는 항목을 삭제하세요</text>
+ <text id="IDS_ALM_OPT_SORT_BY">정렬</text>
+ <text id="IDS_TMR_BODY_SEC">초</text>
+ <text id="IDS_ALM_BODY_3TIMES">3회</text>
+ <text id="IDS_COM_BODY_STOPWATCH">스톱워치</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">벨소리를 중지합니다</text>
+ <text id="IDS_TMR_BODY_HOUR">시간</text>
+ <text id="IDS_COM_BODY_JAN">1월</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">세계시각</text>
+ <text id="IDS_COM_BODY_SEP">9월</text>
+ <text id="IDS_COM_BODY_AUG">8월</text>
+ <text id="IDS_TMR_SK_START">시작</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">화요일마다</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">알람</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">더보기</text>
+ <text id="IDS_COM_BODY_TIMER">타이머</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">타이머</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">다시 알림 반복</text>
+ <text id="IDS_COM_BODY_SEARCH">검색</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">알람 선택</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">토요일마다</text>
+ <text id="IDS_SWT_BUTTON_RESET">초기화</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">매일</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d개의 도시가 선택되었습니다</text>
+ <text id="IDS_ALM_BODY_10MINS">10분</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">서머타임 해제</text>
+ <text id="IDS_ALM_BODY_3MINS">3분</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">목요일마다</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">시간이 초과되었습니다</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d개의 알람이 선택되었습니다</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d회</text>
+ <text id="IDS_COM_POP_DELETED">삭제되었습니다</text>
+ <text id="IDS_ALM_BODY_5TIMES">5회</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">검색 결과가 없습니다</text>
+ <text id="IDS_COM_SK_ADD">추가</text>
+ <text id="IDS_SWT_BUTTON_LAP">기록</text>
+ <text id="IDS_ALM_BODY_TONE">소리</text>
+ <text id="IDS_TMR_SK_RESET">초기화</text>
+ <text id="IDS_ALM_HEADER_TYPE">종류</text>
+ <text id="IDS_COM_BUTTON_RECENT">최근 기록</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">벨소리</text>
+ <text id="IDS_TMR_BODY_MIN">분</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1개의 도시가 선택되었습니다</text>
+ <text id="IDS_WCL_SK_BY_NAME">이름순</text>
+ <text id="IDS_COM_BODY_OCT">10월</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_SK_DELETE">삭제</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">일요일마다</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">항목이 없습니다</text>
+ <text id="IDS_COM_BODY_FEB">2월</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodija un vibrozvans</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Laika josla</text>
+ <text id="IDS_ALM_BODY_10TIMES">desmitreiz</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Izvēlēts</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Izvēlēties laika joslu</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Izv. visu</text>
+ <text id="IDS_NOTHING_SELECTED">Nekas nav izvēlēts</text>
+ <text id="IDS_COM_BODY_DEC">Dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Atcelt</text>
+ <text id="IDS_ALM_BODY_REPEAT">Atkārtot</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nav brīdinājumu</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Nav vienumu</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Katru pirmdienu</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Laiks</text>
+ <text id="IDS_COM_SK_NEW">Jauns</text>
+ <text id="IDS_ALM_SK3_SAVE">Saglabāt</text>
+ <text id="IDS_COM_BODY_JUN">Jūn.</text>
+ <text id="IDS_ALM_BODY_TIME">Laiks</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Atlikt</text>
+ <text id="IDS_COM_BODY_JUL">Jūl.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Restartēt</text>
+ <text id="IDS_ALM_BODY_TYPE">Veids</text>
+ <text id="IDS_TMR_SK3_STOP">Beigt</text>
+ <text id="IDS_TMR_SK3_RESTART">Atsākt</text>
+ <text id="IDS_WCL_SK_DONE">Gatavs</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Maijs</text>
+ <text id="IDS_ALM_BODY_NAME">Nosaukums</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrācija</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Vasaras laika iestatījumi</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Miega režīma ilgums</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Izvēlēts viens 1 signāls</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodija</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Katru piektdienu</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Pārkārtot</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Katru trešdienu</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Laiks beidzies</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Nevar pievienot pilsētu. Pasaules pulksteņu saraksts ir pilns. Vispirms izdzēsiet dažus objektus</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Kārtot pēc</text>
+ <text id="IDS_TMR_BODY_SEC">sek.</text>
+ <text id="IDS_ALM_BODY_3TIMES">trīsreiz</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Hronometrs</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Pārtraukt zvanīšanu</text>
+ <text id="IDS_TMR_BODY_HOUR">Stunda</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Pasaules pulkstenis</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Sākt</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Katru otrdienu</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Signāls</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Citi</text>
+ <text id="IDS_COM_BODY_TIMER">Taimeris</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Taimauta signāls</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Atkārtota atlikšana</text>
+ <text id="IDS_COM_BODY_SEARCH">Meklēt</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Izvēlieties modinātājus</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Katru sestdienu</text>
+ <text id="IDS_SWT_BUTTON_RESET">Nodzēst</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Izvēlētas %d pilsētas</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Katru dienu</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Atcelt vasaras laiku</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Katru ceturtdienu</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Taimauts</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Izvēlēti %d signāli</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d reizes</text>
+ <text id="IDS_COM_POP_DELETED">Izdzēsts</text>
+ <text id="IDS_ALM_BODY_5TIMES">piecreiz</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nav meklēšanas rezultātu</text>
+ <text id="IDS_SWT_BUTTON_LAP">Aplis</text>
+ <text id="IDS_COM_SK_ADD">Pievienot</text>
+ <text id="IDS_ALM_BODY_TONE">Signāls</text>
+ <text id="IDS_TMR_SK_RESET">Atiestatīt</text>
+ <text id="IDS_ALM_HEADER_TYPE">Veids</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodija</text>
+ <text id="IDS_COM_BUTTON_RECENT">Pēdējais</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Izvēlēta 1 pilsēta</text>
+ <text id="IDS_COM_BODY_OCT">Okt.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Pēc nos.</text>
+ <text id="IDS_ALM_SK_DELETE">Dzēst</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Katru svētdienu</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Nav vienumu</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodija ir vibracija</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Laiko juosta</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 kartus</text>
+ <text id="IDS_COM_BODY_NOV">Lap.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Pasirinkta</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Pažymėti laiko juostą</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Pasirinkti viską</text>
+ <text id="IDS_NOTHING_SELECTED">Niekas nepasirinkta</text>
+ <text id="IDS_COM_BODY_DEC">Gru.</text>
+ <text id="IDS_ALM_SK_CANCEL">Atšaukti</text>
+ <text id="IDS_ALM_BODY_REPEAT">Kartoti</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Signalų nėra</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Elementų nėra</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Kiekvieną pirmadienį</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Laikas</text>
+ <text id="IDS_COM_SK_NEW">Naujas</text>
+ <text id="IDS_ALM_SK3_SAVE">Išsaugoti</text>
+ <text id="IDS_COM_BODY_JUN">Bir.</text>
+ <text id="IDS_ALM_BODY_TIME">Laikas</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Snausti</text>
+ <text id="IDS_COM_BODY_JUL">Lie.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Pal. iš naujo</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipas</text>
+ <text id="IDS_TMR_SK3_STOP">Stabdyti</text>
+ <text id="IDS_TMR_SK3_RESTART">Paleisti iš naujo</text>
+ <text id="IDS_WCL_SK_DONE">Atlikta</text>
+ <text id="IDS_COM_BODY_APR">Bal.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Geg.</text>
+ <text id="IDS_ALM_BODY_NAME">Pavadinimas</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibruoti</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST nustatymai</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Snaudimo trukmė</text>
+ <text id="IDS_COM_BODY_MAR">Kov.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Pasirinktas 1 signalas</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodija</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Kiekvieną penktadienį</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Pertvarkyti</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Kiekvieną trečiadienį</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Laikas baigėsi</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Neįmanoma pridėti miesto. Pasaulio laikrodžių sąrašas pilnas. Pirmiausia ištrinkite kelis elementus</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Rūšiuoti pagal</text>
+ <text id="IDS_TMR_BODY_SEC">sek.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 kartus</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Chronometras</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stabdyti skambėjimą</text>
+ <text id="IDS_TMR_BODY_HOUR">Valanda</text>
+ <text id="IDS_COM_BODY_JAN">Sau.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Pasaulio laikrodis</text>
+ <text id="IDS_COM_BODY_SEP">Rug.</text>
+ <text id="IDS_COM_BODY_AUG">Rgp.</text>
+ <text id="IDS_TMR_SK_START">Paleisti</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Kiekvieną antradienį</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Signalas</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Daugiau</text>
+ <text id="IDS_COM_BODY_TIMER">Laikmatis</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Signalo laikas baigėsi</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Snaudimo kartojimas</text>
+ <text id="IDS_COM_BODY_SEARCH">Ieškoti</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Pasirinkti signalus</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Kiekvieną šeštadienį</text>
+ <text id="IDS_SWT_BUTTON_RESET">Atstatyti</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Pasirinkta miestų: %d</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Kasdien</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Atšaukti DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Kiekvieną ketvirtadienį</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Laikas baigėsi</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Pasirinkta signalų: %d</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d kartų</text>
+ <text id="IDS_COM_POP_DELETED">Ištrinta</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 kartus</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nėra paieškos rezultatų</text>
+ <text id="IDS_SWT_BUTTON_LAP">Ratas</text>
+ <text id="IDS_COM_SK_ADD">Pridėti</text>
+ <text id="IDS_ALM_BODY_TONE">Tonas</text>
+ <text id="IDS_TMR_SK_RESET">Nustatyti iš naujo</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipas</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodija</text>
+ <text id="IDS_COM_BUTTON_RECENT">Naujausi</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Pasirinktas 1 miestas</text>
+ <text id="IDS_COM_BODY_OCT">Spal.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Pag.vardą</text>
+ <text id="IDS_ALM_SK_DELETE">Trinti</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Kiekvieną sekmadienį</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Elementų nėra</text>
+ <text id="IDS_COM_BODY_FEB">Vas.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Мелодија и вибрации</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Часовна зона</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 пати</text>
+ <text id="IDS_COM_BODY_NOV">Ное.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Избраните</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Изберете временска зона</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Избери ги сите</text>
+ <text id="IDS_NOTHING_SELECTED">Не е избрано ништо</text>
+ <text id="IDS_COM_BODY_DEC">Дек.</text>
+ <text id="IDS_ALM_SK_CANCEL">Откажи</text>
+ <text id="IDS_ALM_BODY_REPEAT">Повторување</text>
+ <text id="IDS_TMR_BODY_MIN1">мин</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Нема аларми</text>
+ <text id="IDS_COM_BODY_AM">АМ</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Нема записи</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Секој понеделник</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Време</text>
+ <text id="IDS_COM_SK_NEW">Нова</text>
+ <text id="IDS_ALM_SK3_SAVE">Сочувај</text>
+ <text id="IDS_COM_BODY_JUN">Јун</text>
+ <text id="IDS_ALM_BODY_TIME">Време</text>
+ <text id="IDS_ALM_BODY_SNOOZE">По 5 мин.</text>
+ <text id="IDS_COM_BODY_JUL">Јул</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Ресетирај</text>
+ <text id="IDS_ALM_BODY_TYPE">Вид</text>
+ <text id="IDS_TMR_SK3_STOP">Запри</text>
+ <text id="IDS_TMR_SK3_RESTART">Рестарт</text>
+ <text id="IDS_WCL_SK_DONE">Готово</text>
+ <text id="IDS_COM_BODY_APR">Апр</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 мин.</text>
+ <text id="IDS_COM_BODY_MAY">Мај</text>
+ <text id="IDS_ALM_BODY_NAME">Име</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Вибрации</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Опции за летно време</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Траење на паузата</text>
+ <text id="IDS_COM_BODY_MAR">Март</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Избран е 1 аларм</text>
+ <text id="IDS_ALM_BODY_MELODY">Мелодија</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Секој петок</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Пререди</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Секоја среда</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Времето истече</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Не може да се додаде град. Листата на Светски Часовници е полна. Првин избришете некој запис</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Подреди според</text>
+ <text id="IDS_TMR_BODY_SEC">сек.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 пати</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Стоперица</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Сопри ѕвонење</text>
+ <text id="IDS_TMR_BODY_HOUR">Час</text>
+ <text id="IDS_COM_BODY_JAN">Јан</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Светски Часовник</text>
+ <text id="IDS_COM_BODY_SEP">Сеп</text>
+ <text id="IDS_COM_BODY_AUG">Авг</text>
+ <text id="IDS_TMR_SK_START">Старт</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Секој вторник</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Аларм</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Повеќе</text>
+ <text id="IDS_COM_BODY_TIMER">Тајмер</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Аларм за истечено време</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Повторување на паузата</text>
+ <text id="IDS_COM_BODY_SEARCH">Побарај</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Изберете аларми</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Секоја сабота</text>
+ <text id="IDS_SWT_BUTTON_RESET">Ресетирај</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Избрани се %d градови</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Секој ден</text>
+ <text id="IDS_ALM_BODY_10MINS">10 мин.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Откажи летно време</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 мин</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Секој четврток</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Времето истече</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Избрани се %d аларми</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d пати</text>
+ <text id="IDS_COM_POP_DELETED">Избришано</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 пати</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Нема резултати од пребарувањето</text>
+ <text id="IDS_SWT_BUTTON_LAP">Круг</text>
+ <text id="IDS_COM_SK_ADD">Додај</text>
+ <text id="IDS_ALM_BODY_TONE">Тон</text>
+ <text id="IDS_TMR_SK_RESET">Ресетирај</text>
+ <text id="IDS_ALM_HEADER_TYPE">Вид</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Мелодија</text>
+ <text id="IDS_COM_BUTTON_RECENT">Последни</text>
+ <text id="IDS_TMR_BODY_MIN">мин</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Избран е 1 град</text>
+ <text id="IDS_COM_BODY_OCT">Окт.</text>
+ <text id="IDS_WCL_SK_BY_NAME">По име</text>
+ <text id="IDS_ALM_SK_DELETE">Избриши</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Секоја недела</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Нема записи</text>
+ <text id="IDS_COM_BODY_FEB">Фев</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodie en trillen</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Tijdzone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 keer</text>
+ <text id="IDS_COM_BODY_NOV">nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Geselecteerd</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Tijdzone selecteren</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Alles selecteren</text>
+ <text id="IDS_NOTHING_SELECTED">Niets geselecteerd</text>
+ <text id="IDS_COM_BODY_DEC">dec</text>
+ <text id="IDS_ALM_SK_CANCEL">Annuleren</text>
+ <text id="IDS_ALM_BODY_REPEAT">Herhalen</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Geen alarmen</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Geen items</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Elke maandag</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Tijd</text>
+ <text id="IDS_COM_SK_NEW">Nieuw</text>
+ <text id="IDS_ALM_SK3_SAVE">Opslaan</text>
+ <text id="IDS_COM_BODY_JUN">jun</text>
+ <text id="IDS_ALM_BODY_TIME">Tijd</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Sluimeren</text>
+ <text id="IDS_COM_BODY_JUL">jul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Opnieuw starten</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Opnieuw starten</text>
+ <text id="IDS_WCL_SK_DONE">Gereed</text>
+ <text id="IDS_COM_BODY_APR">apr</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Mei</text>
+ <text id="IDS_ALM_BODY_NAME">Naam</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Trillen</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Zomertijd instellen</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Sluimerperiode</text>
+ <text id="IDS_COM_BODY_MAR">mrt</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm geselecteerd</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodie</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Elke vrijdag</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Indeling wijzigen</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Elke woensdag</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tijd is om</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Kan plaats niet toevoegen. Lijst met Wereldklokken is vol. Verwijder eerst een aantal items</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sorteren op</text>
+ <text id="IDS_TMR_BODY_SEC">sec.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 keer</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopwatch</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stoppen met bellen</text>
+ <text id="IDS_TMR_BODY_HOUR">Uur</text>
+ <text id="IDS_COM_BODY_JAN">jan</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Wereldklok</text>
+ <text id="IDS_COM_BODY_SEP">sep</text>
+ <text id="IDS_COM_BODY_AUG">aug</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Elke dinsdag</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Meer</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Time-out alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Sluimeren herhalen</text>
+ <text id="IDS_COM_BODY_SEARCH">Zoeken</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Alarmen selecteren</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Elke zaterdag</text>
+ <text id="IDS_SWT_BUTTON_RESET">Resetten</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d plaatsen geselecteerd</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Dagelijks</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Zomertijd annuleren</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Elke donderdag</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Time-out</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmen geselecteerd</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d keer</text>
+ <text id="IDS_COM_POP_DELETED">Verwijderd</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 keer</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Geen zoekresultaten</text>
+ <text id="IDS_SWT_BUTTON_LAP">Ronde</text>
+ <text id="IDS_COM_SK_ADD">Toevoegen</text>
+ <text id="IDS_ALM_BODY_TONE">Toon</text>
+ <text id="IDS_TMR_SK_RESET">Resetten</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodie</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recent</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 plaats geselecteerd</text>
+ <text id="IDS_COM_BODY_OCT">okt</text>
+ <text id="IDS_WCL_SK_BY_NAME">Op naam</text>
+ <text id="IDS_ALM_SK_DELETE">Wissen</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Elke zondag</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Geen items</text>
+ <text id="IDS_COM_BODY_FEB">feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodi og vibrasjon</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Tidssone</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 ganger</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Valgt</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Velg tidssone</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Merk alt</text>
+ <text id="IDS_NOTHING_SELECTED">Ingenting valgt</text>
+ <text id="IDS_COM_BODY_DEC">Des.</text>
+ <text id="IDS_ALM_SK_CANCEL">Avbryt</text>
+ <text id="IDS_ALM_BODY_REPEAT">Gjenta</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ingen alarmer</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Ingen elementer</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Hver mandag</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Tid</text>
+ <text id="IDS_COM_SK_NEW">Ny</text>
+ <text id="IDS_ALM_SK3_SAVE">Lagre</text>
+ <text id="IDS_COM_BODY_JUN">Juni</text>
+ <text id="IDS_ALM_BODY_TIME">Tid</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Utsett</text>
+ <text id="IDS_COM_BODY_JUL">Juli</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Start igjen</text>
+ <text id="IDS_ALM_BODY_TYPE">Type</text>
+ <text id="IDS_TMR_SK3_STOP">Stopp</text>
+ <text id="IDS_TMR_SK3_RESTART">Omstart</text>
+ <text id="IDS_WCL_SK_DONE">Utført</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Mai</text>
+ <text id="IDS_ALM_BODY_NAME">Navn</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrasjon</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Sommertid-innstillinger</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Slumrevarighet</text>
+ <text id="IDS_COM_BODY_MAR">Mars</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm valgt</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodi</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Hver fredag</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Omordne</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Hver onsdag</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tiden er ute</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Kan ikke legge til by. Verdensklokkelisten er full. Slett noen elementer først</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sorter etter</text>
+ <text id="IDS_TMR_BODY_SEC">sek</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 ganger</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stoppeklokke</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stopp ringing</text>
+ <text id="IDS_TMR_BODY_HOUR">Time</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Verdensklokke</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Hver tirsdag</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mer</text>
+ <text id="IDS_COM_BODY_TIMER">Nedtelling</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Nedtellingsalarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Gjenta slumring</text>
+ <text id="IDS_COM_BODY_SEARCH">Søk</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Velg alarmer</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Hver lørdag</text>
+ <text id="IDS_SWT_BUTTON_RESET">Nullstill</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d byer valgt</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Daglig</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Avbryt sommertid</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Hver torsdag</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tidsgrense</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmer valgt</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d ganger</text>
+ <text id="IDS_COM_POP_DELETED">Slettet</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 ganger</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Ingen søkeresultater</text>
+ <text id="IDS_SWT_BUTTON_LAP">Runde</text>
+ <text id="IDS_COM_SK_ADD">Legg til</text>
+ <text id="IDS_ALM_BODY_TONE">Tone</text>
+ <text id="IDS_TMR_SK_RESET">Nullstill</text>
+ <text id="IDS_ALM_HEADER_TYPE">Type</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodi</text>
+ <text id="IDS_COM_BUTTON_RECENT">Nylige</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 by valgt</text>
+ <text id="IDS_COM_BODY_OCT">Okt.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Via navn</text>
+ <text id="IDS_ALM_SK_DELETE">Slett</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Hver søndag</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Ingen elementer</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodia i wibracja</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Strefa czasowa</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 razy</text>
+ <text id="IDS_COM_BODY_NOV">Lis.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Wybrany</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Wybierz strefę czasową</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Zaznacz wszystko</text>
+ <text id="IDS_NOTHING_SELECTED">Niczego nie zaznaczono</text>
+ <text id="IDS_COM_BODY_DEC">Gru.</text>
+ <text id="IDS_ALM_SK_CANCEL">Anuluj</text>
+ <text id="IDS_ALM_BODY_REPEAT">Powtarzanie</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Brak alarmów</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Brak elementów</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Co poniedziałek</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Godzina</text>
+ <text id="IDS_COM_SK_NEW">Nowy</text>
+ <text id="IDS_ALM_SK3_SAVE">Zapisz</text>
+ <text id="IDS_COM_BODY_JUN">Cze.</text>
+ <text id="IDS_ALM_BODY_TIME">Godzina</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Drzemka</text>
+ <text id="IDS_COM_BODY_JUL">Lip.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Wznów</text>
+ <text id="IDS_ALM_BODY_TYPE">Typ</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Wznów</text>
+ <text id="IDS_WCL_SK_DONE">Gotowe</text>
+ <text id="IDS_COM_BODY_APR">Kwi.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Maj</text>
+ <text id="IDS_ALM_BODY_NAME">Nazwa</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Wibracja</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Ustawienia czasu letniego</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Czas trwania drzemki</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Wybranych alarmów: 1</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Co piątek</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Zmień kolejność</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Co środę</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Upłynął czas</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Nie można dodać miasta. Lista Czas na świecie jest pełna. Usuń najpierw niektóre elementy</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortuj wg</text>
+ <text id="IDS_TMR_BODY_SEC">s</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 razy</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stoper</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Zakończ dzwonienie</text>
+ <text id="IDS_TMR_BODY_HOUR">Godzina</text>
+ <text id="IDS_COM_BODY_JAN">Sty.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Czas na świecie</text>
+ <text id="IDS_COM_BODY_SEP">Wrz.</text>
+ <text id="IDS_COM_BODY_AUG">Sie.</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Co wtorek</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Więcej</text>
+ <text id="IDS_COM_BODY_TIMER">Czasomierz</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Czasomierz</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Powtarzanie drzemki</text>
+ <text id="IDS_COM_BODY_SEARCH">Szukaj</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Wybierz alarmy</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Co sobotę</text>
+ <text id="IDS_SWT_BUTTON_RESET">Zeruj</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Wybranych miast: %d</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Codziennie</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Anuluj DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Co czwartek</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Limit czasu</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Wybranych alarmów: %d</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d razy</text>
+ <text id="IDS_COM_POP_DELETED">Usunięto</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 razy</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Brak wyników wyszukiwania</text>
+ <text id="IDS_SWT_BUTTON_LAP">Pomiar</text>
+ <text id="IDS_COM_SK_ADD">Dodaj</text>
+ <text id="IDS_ALM_BODY_TONE">Dźwięk</text>
+ <text id="IDS_TMR_SK_RESET">Zeruj</text>
+ <text id="IDS_ALM_HEADER_TYPE">Typ</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodia</text>
+ <text id="IDS_COM_BUTTON_RECENT">Ostatnie</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Wybranych miast: 1</text>
+ <text id="IDS_COM_BODY_OCT">Paź.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Wg nazwy</text>
+ <text id="IDS_ALM_SK_DELETE">Usuń</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Co niedzielę</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Brak elementów</text>
+ <text id="IDS_COM_BODY_FEB">Lut.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodia e vibração</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Fuso horário</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 vezes</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Selecionado</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Selecionar fuso horário</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Selecionar tudo</text>
+ <text id="IDS_NOTHING_SELECTED">Nada selecionado</text>
+ <text id="IDS_COM_BODY_DEC">Dez.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancelar</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetir</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nenhum alarme</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Sem itens</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Todas as Segundas-feiras</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Hora</text>
+ <text id="IDS_COM_SK_NEW">Novo</text>
+ <text id="IDS_ALM_SK3_SAVE">Salvar</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Hora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Soneca</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reiniciar</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipo</text>
+ <text id="IDS_TMR_SK3_STOP">Parar</text>
+ <text id="IDS_TMR_SK3_RESTART">Reiniciar</text>
+ <text id="IDS_WCL_SK_DONE">Concluído</text>
+ <text id="IDS_COM_BODY_APR">Abr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Maio</text>
+ <text id="IDS_ALM_BODY_NAME">Nome</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibração</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Configurações de Horário de Verão</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Duração da soneca</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarme selecionado</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Todas as Sextas-feiras</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reordenar</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Todas as quartas-feiras</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tempo esgotado</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Não é possível adicionar a cidade. Lista do Relógio mundial cheia. Exclua primeiro alguns itens</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordenar por</text>
+ <text id="IDS_TMR_BODY_SEC">seg</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 vezes</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronômetro</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Parar o toque</text>
+ <text id="IDS_TMR_BODY_HOUR">Hora</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Relógio mundial</text>
+ <text id="IDS_COM_BODY_SEP">Set.</text>
+ <text id="IDS_COM_BODY_AUG">Ago.</text>
+ <text id="IDS_TMR_SK_START">Iniciar</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Todas as Terças-feiras</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarme</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mais</text>
+ <text id="IDS_COM_BODY_TIMER">Contagem regressiva</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Intervalo do alarme</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Repetir o alarme</text>
+ <text id="IDS_COM_BODY_SEARCH">Pesquisar</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Selecionar alarmes</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Todos os Sábados</text>
+ <text id="IDS_SWT_BUTTON_RESET">Zerar</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cidades selecionadas</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Diariamente</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancelar DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Todas as Quintas-feiras</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tempo esgotado</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmes selecionados</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d vezes</text>
+ <text id="IDS_COM_POP_DELETED">Apagado</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 vezes</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nenhum resultado encontrado</text>
+ <text id="IDS_SWT_BUTTON_LAP">Volta</text>
+ <text id="IDS_COM_SK_ADD">Adicionar</text>
+ <text id="IDS_ALM_BODY_TONE">Tom</text>
+ <text id="IDS_TMR_SK_RESET">Zerar</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipo</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodia</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recente</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 cidade selecionada</text>
+ <text id="IDS_COM_BODY_OCT">Out.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Por nome</text>
+ <text id="IDS_ALM_SK_DELETE">Apagar</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Todos os Domingos</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Sem itens</text>
+ <text id="IDS_COM_BODY_FEB">Fev.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodia e vibração</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Fuso horário</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 vezes</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seleccionado</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Seleccionar fuso horário</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Selec. tudo</text>
+ <text id="IDS_NOTHING_SELECTED">Nada seleccionado</text>
+ <text id="IDS_COM_BODY_DEC">Dez.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancelar</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetir</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Sem alarmes</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Sem itens</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Todas as segundas-feiras</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Hora</text>
+ <text id="IDS_COM_SK_NEW">Nova</text>
+ <text id="IDS_ALM_SK3_SAVE">Guardar</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Hora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Adiar</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reiniciar</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipo</text>
+ <text id="IDS_TMR_SK3_STOP">Parar</text>
+ <text id="IDS_TMR_SK3_RESTART">Reiniciar</text>
+ <text id="IDS_WCL_SK_DONE">Concluído</text>
+ <text id="IDS_COM_BODY_APR">Abr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Maio</text>
+ <text id="IDS_ALM_BODY_NAME">Nome</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibração</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Hora de Verão</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Duração do adiamento</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarme seleccionado</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Todas as sextas-feiras</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reordenar</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Todas as quartas-feiras</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tempo esgotado</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Impossível adicionar cidade. Lista do Relógio Mundial cheia. Elimine primeiro alguns itens</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordenar por</text>
+ <text id="IDS_TMR_BODY_SEC">seg.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 vezes</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronómetro</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Parar toque</text>
+ <text id="IDS_TMR_BODY_HOUR">Hora</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Relógio Mundial</text>
+ <text id="IDS_COM_BODY_SEP">Set.</text>
+ <text id="IDS_COM_BODY_AUG">Ago.</text>
+ <text id="IDS_TMR_SK_START">Iniciar</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Todas as terças-feiras</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarme</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mais</text>
+ <text id="IDS_COM_BODY_TIMER">Temporizador</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarme por tempo esgotado</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Repetir o alarme</text>
+ <text id="IDS_COM_BODY_SEARCH">Procurar</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Seleccionar alarmes</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Todos os sábados</text>
+ <text id="IDS_SWT_BUTTON_RESET">Repor</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d cidades seleccionadas</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Todos os dias</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancelar DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Todas as quintas-feiras</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tempo expirado</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmes seleccionados</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d vezes</text>
+ <text id="IDS_COM_POP_DELETED">Eliminado</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 vezes</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nenhuns resultados de procura</text>
+ <text id="IDS_SWT_BUTTON_LAP">Volta</text>
+ <text id="IDS_COM_SK_ADD">Adicionar</text>
+ <text id="IDS_ALM_BODY_TONE">Tom</text>
+ <text id="IDS_TMR_SK_RESET">Repor</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipo</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodia</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recente</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 cidade seleccionada</text>
+ <text id="IDS_COM_BODY_OCT">Out.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Por nome</text>
+ <text id="IDS_ALM_SK_DELETE">Eliminar</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Todos os domingos</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Sem itens</text>
+ <text id="IDS_COM_BODY_FEB">Fev.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodie şi vibraţie</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Fus orar</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 ori</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Selectat</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Selectare fus orar</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Selectare toate</text>
+ <text id="IDS_NOTHING_SELECTED">Nimic selectat</text>
+ <text id="IDS_COM_BODY_DEC">Dec</text>
+ <text id="IDS_ALM_SK_CANCEL">Anulare</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetare</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nicio alarmă</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Niciun element</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">În fiecare luni</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Oră</text>
+ <text id="IDS_COM_SK_NEW">Nou</text>
+ <text id="IDS_ALM_SK3_SAVE">Salvare</text>
+ <text id="IDS_COM_BODY_JUN">Iun</text>
+ <text id="IDS_ALM_BODY_TIME">Oră</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Amânare</text>
+ <text id="IDS_COM_BODY_JUL">Iul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Repornire</text>
+ <text id="IDS_ALM_BODY_TYPE">Tip</text>
+ <text id="IDS_TMR_SK3_STOP">Oprire</text>
+ <text id="IDS_TMR_SK3_RESTART">Repornire</text>
+ <text id="IDS_WCL_SK_DONE">Gata</text>
+ <text id="IDS_COM_BODY_APR">Apr</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Mai</text>
+ <text id="IDS_ALM_BODY_NAME">Nume</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibraţie</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Setări Ora de Vară</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Durată amânare</text>
+ <text id="IDS_COM_BODY_MAR">Mar</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarmă selectată</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodie</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">În fiecare vineri</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reordonare</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">În fiecare miercuri</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Timp expirat</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Imposibil de adăugat oraşul. Lista Ora pe glob este plină. Mai întâi, ştergeţi câteva elemente</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortare după</text>
+ <text id="IDS_TMR_BODY_SEC">sec</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 ori</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronometru</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Oprire sonerie</text>
+ <text id="IDS_TMR_BODY_HOUR">Oră</text>
+ <text id="IDS_COM_BODY_JAN">Ian</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Ora pe glob</text>
+ <text id="IDS_COM_BODY_SEP">Sep</text>
+ <text id="IDS_COM_BODY_AUG">Aug</text>
+ <text id="IDS_TMR_SK_START">Pornire</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">În fiecare marţi</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarmă</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mai multe</text>
+ <text id="IDS_COM_BODY_TIMER">Temporizator</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarmă expirare perioadă</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Amânare cu repetare</text>
+ <text id="IDS_COM_BODY_SEARCH">Căutare</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Selectare alarme</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">În fiecare sâmbătă</text>
+ <text id="IDS_SWT_BUTTON_RESET">Resetare</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d oraşe selectate</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Zilnic</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Anulaţi ora de vară</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">În fiecare joi</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Timp expirat (sau) Oră depăşită</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarme selectate</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d ori</text>
+ <text id="IDS_COM_POP_DELETED">Şters</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 ori</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nu există rezultate ale căutării</text>
+ <text id="IDS_SWT_BUTTON_LAP">Tur</text>
+ <text id="IDS_COM_SK_ADD">Adaugă</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Reiniţ.</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tip</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodie</text>
+ <text id="IDS_COM_BUTTON_RECENT">Recent</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 oraş selectat</text>
+ <text id="IDS_COM_BODY_OCT">Oct</text>
+ <text id="IDS_WCL_SK_BY_NAME">După nume</text>
+ <text id="IDS_ALM_SK_DELETE">Ştergere</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">În fiecare duminică</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Niciun element</text>
+ <text id="IDS_COM_BODY_FEB">Feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Мелодия и вибрация</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Часовой пояс</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 раз</text>
+ <text id="IDS_COM_BODY_NOV">Ноя</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Выбрано</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Выберите часовой пояс</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Выбрать все</text>
+ <text id="IDS_NOTHING_SELECTED">Ничего не выбрано</text>
+ <text id="IDS_COM_BODY_DEC">Дек</text>
+ <text id="IDS_ALM_SK_CANCEL">Отмена</text>
+ <text id="IDS_ALM_BODY_REPEAT">Повтор</text>
+ <text id="IDS_TMR_BODY_MIN1">мин.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Нет будильников</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Нет элементов</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Каждый понедельник</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Время</text>
+ <text id="IDS_COM_SK_NEW">Создать</text>
+ <text id="IDS_ALM_SK3_SAVE">Сохранить</text>
+ <text id="IDS_COM_BODY_JUN">Июн</text>
+ <text id="IDS_ALM_BODY_TIME">Время</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Пауза</text>
+ <text id="IDS_COM_BODY_JUL">Июл</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Рестарт</text>
+ <text id="IDS_ALM_BODY_TYPE">Тип</text>
+ <text id="IDS_TMR_SK3_STOP">Стоп</text>
+ <text id="IDS_TMR_SK3_RESTART">Перезагрузка</text>
+ <text id="IDS_WCL_SK_DONE">Готово</text>
+ <text id="IDS_COM_BODY_APR">Апр</text>
+ <text id="IDS_COM_POP_PM">РМ</text>
+ <text id="IDS_ALM_BODY_5MINS">5 минут</text>
+ <text id="IDS_COM_BODY_MAY">Май</text>
+ <text id="IDS_ALM_BODY_NAME">Имя</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Вибрация</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Параметры летнего времени</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Продолжительность паузы</text>
+ <text id="IDS_COM_BODY_MAR">Мар</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Выбран 1 будильник</text>
+ <text id="IDS_ALM_BODY_MELODY">Мелодия</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Каждую пятницу</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Изменить порядок</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Каждую среду</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Время истекло</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Не удается добавить город. Список мирового времени заполнен. Сначала удалите несколько элементов</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Сортировка</text>
+ <text id="IDS_TMR_BODY_SEC">сек.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 раза</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Секундомер</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Отключить звук</text>
+ <text id="IDS_TMR_BODY_HOUR">Час</text>
+ <text id="IDS_COM_BODY_JAN">Янв</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Мировое время</text>
+ <text id="IDS_COM_BODY_SEP">Сен</text>
+ <text id="IDS_COM_BODY_AUG">Авг</text>
+ <text id="IDS_TMR_SK_START">Запуск</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Каждый вторник</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Будильник</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Опции</text>
+ <text id="IDS_COM_BODY_TIMER">Таймер</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Время ожидания сигнала</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Количество повторов</text>
+ <text id="IDS_COM_BODY_SEARCH">Поиск</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Выберите сигналы</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Каждую субботу</text>
+ <text id="IDS_SWT_BUTTON_RESET">Сброс</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Выбрано городов: %d</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Ежедневно</text>
+ <text id="IDS_ALM_BODY_10MINS">10 минут</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Отменить летнее время</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 минуты</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Каждый четверг</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Время истекло</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Выбрано сигналов: %d</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d раз.</text>
+ <text id="IDS_COM_POP_DELETED">Удалено</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 раз</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Нет результатов поиска</text>
+ <text id="IDS_SWT_BUTTON_LAP">Круг</text>
+ <text id="IDS_COM_SK_ADD">Добавить</text>
+ <text id="IDS_ALM_BODY_TONE">Сигнал</text>
+ <text id="IDS_TMR_SK_RESET">Сброс</text>
+ <text id="IDS_ALM_HEADER_TYPE">Тип</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Мелодия</text>
+ <text id="IDS_COM_BUTTON_RECENT">Последние</text>
+ <text id="IDS_TMR_BODY_MIN">мин.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Выбран 1 город</text>
+ <text id="IDS_COM_BODY_OCT">Окт</text>
+ <text id="IDS_WCL_SK_BY_NAME">По имени</text>
+ <text id="IDS_ALM_SK_DELETE">Удалить</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Каждое воскресенье</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Нет элементов</text>
+ <text id="IDS_COM_BODY_FEB">Фев</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201309242034" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_ALARM_EDITOR_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="201" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_ALM_SK3_SAVE"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <ScrollPanel id="IDC_SCROLLPANEL1" parent="IDL_ALARM_EDITOR_FORM">
+ <property autoResizingEnabled="true" backgroundColor="" backgroundColorOpacity="0" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="false" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/>
+ <panelLayout height="1347.0" mode="Portrait" width="720.0"/>
+ <panelLayout height="720.0" mode="Landscape" width="1280.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1124.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_ALARM_EDITOR_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="629.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_ALARM_EDITOR_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_EDITOR_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALARM_EDITOR_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ </ScrollPanel>
+ <Label id="IDC_LABEL_TITLE" parent="IDC_SCROLLPANEL1">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="35.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="46.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_SCROLLPANEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="46.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SCROLLPANEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ </Label>
+ <Button id="IDC_BUTTON_MORE" parent="IDC_SCROLLPANEL1">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="#FFFFFF" text="::IDS_COM_BODY_MORE" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="33.0" marginRight="0.0" marginTop="56.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="654.0" x="33.0" y="480.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="56.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="800.0" x="240.0" y="480.0"/>
+ </Button>
+ <Panel id="IDC_PANEL_DAYS" parent="IDC_SCROLLPANEL1">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="52.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="334.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="52.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="40.0" y="334.0"/>
+ </Panel>
+ <Button id="IDC_BUTTON_MON" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="127.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="6.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="363.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_SUN" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="33.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="6.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BUTTON_MON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="267.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_TUE" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="221.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="6.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="459.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_WED" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="315.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="555.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_THU" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="409.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_WED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="6.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="651.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_FRI" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="503.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_THU" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="6.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="747.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_SAT" parent="IDC_PANEL_DAYS">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="597.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_FRI" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="6.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="843.0" y="0.0"/>
+ </Button>
+ <Panel id="IDC_PANEL_LIST" parent="IDC_SCROLLPANEL1">
+ <property backgroundColor="#F1EEE9" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="832.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL_DAYS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="448.0"/>
+ <layout bottomRelation="IDC_SCROLLPANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="240.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="56.0" mode="Landscape" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL_DAYS" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="480.0"/>
+ </Panel>
+ <Slider id="IDC_SLIDER_VOLUME" parent="IDC_PANEL_LIST">
+ <property accessibilityHint="" backgroundColor="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" barBackgroundColor="" barColor="" color="#F1EEE9" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" groupStyle="GROUP_STYLE_NONE" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="00_slider_btn_volume01.png" max="15" min="0" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" rightIconBitmapPath="00_slider_btn_volume02.png" showTitleText="false" sliderStyleBubble="false" sliderStyleTitle="false" titleText="" value="15"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="280.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="240.0"/>
+ </Slider>
+ <ListView id="IDC_LISTVIEW1" parent="IDC_PANEL_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="252.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="412.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="215.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="372.0"/>
+ </ListView>
+ <Label id="IDC_LABEL1" parent="IDC_PANEL_LIST">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#F1EEE9" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="25" text="::IDS_ALM_BODY_NAME" textColor="#808080" textSize="33.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="35.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="679.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="35.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="597.0"/>
+ </Label>
+ <EditField id="IDC_EDITFIELD1" parent="IDC_PANEL_LIST">
+ <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="true" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="250" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="EditBackground.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="44.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="Name" titleTextColor="" verticalMargin="0.0" viewMode="false"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="118.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="714.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="118.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="602.0"/>
+ </EditField>
+ <GroupedListView id="IDC_GROUPEDLISTVIEW1" parent="IDC_PANEL_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="280.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="240.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ </GroupedListView>
+ <Panel id="IDC_PANEL_EDITTIME" parent="IDC_SCROLLPANEL1">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="236.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_LABEL_TITLE" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="46.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="236.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_LABEL_TITLE" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="40.0" y="46.0"/>
+ </Panel>
+ <Button id="IDC_BUTTON_HOUR" parent="IDC_PANEL_EDITTIME">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="P03_alarm_edit_time_bg_ef.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="#000000" text="" textSize="130.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="236.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="276.0" x="36.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="236.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="276.0" x="261.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_MIN" parent="IDC_PANEL_EDITTIME">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="P03_alarm_edit_time_bg_ef.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="#000000" text="" textSize="130.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="236.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="276.0" x="332.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="236.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_HOUR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="20.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="276.0" x="557.0" y="0.0"/>
+ </Button>
+ <Label id="IDC_LABEL_AM" parent="IDC_PANEL_EDITTIME">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="::IDS_COM_BODY_AM" textColor="#505050" textSize="32.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="38.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="94.0" x="611.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="38.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_MIN" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="15.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="848.0" y="0.0"/>
+ </Label>
+ <Button id="IDC_BUTTON_TOGGLE" parent="IDC_PANEL_EDITTIME">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="P03_alarm_edit_switch_am.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="152.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="623.0" y="38.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="152.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_AM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="7.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="855.0" y="38.0"/>
+ </Button>
+ <Label id="IDC_LABEL_PM" parent="IDC_PANEL_EDITTIME">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="::IDS_COM_POP_PM" textColor="#505050" textSize="32.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="38.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="613.0" y="190.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="38.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_AM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="848.0" y="190.0"/>
+ </Label>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307041803" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_ALARM_LIST">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="205" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_COM_SK_CREATE_ALARM"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <ListView id="IDC_LISTVIEW1" parent="IDL_ALARM_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList="::IDS_ALM_BODY_NO_ALARMS"/>
+ <layout bottomRelation="IDL_ALARM_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_ALARM_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="IDL_ALARM_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALARM_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </ListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307161751" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_ALARM_RINGING_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Panel id="IDC_PANEL" parent="IDL_ALARM_RINGING_FORM">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1220.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_ALARM_RINGING_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALARM_RINGING_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </Panel>
+ <Label id="IDC_LABEL" parent="IDL_ALARM_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_clock_bg.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1220.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_ALARM_RINGING_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALARM_RINGING_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </Label>
+ <Button id="IDC_BUTTON1" parent="IDL_ALARM_RINGING_FORM">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_ALM_BODY_SNOOZE" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="336.0" x="16.0" y="998.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="62.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="336.0" x="296.0" y="640.0"/>
+ </Button>
+ <Button id="IDC_BUTTON2" parent="IDL_ALARM_RINGING_FORM">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#FF0000" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_TMR_SK3_STOP" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="336.0" x="368.0" y="998.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="62.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="336.0" x="648.0" y="640.0"/>
+ </Button>
+ <Label id="IDC_LABEL1" parent="IDL_ALARM_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_clock_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="374.0" x="173.0" y="178.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="374.0" x="453.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_LABEL2" parent="IDL_ALARM_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="64.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="64.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="663.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="64.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="444.0"/>
+ </Label>
+ <Label id="IDC_LABEL3" parent="IDL_ALARM_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="52.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="765.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL2" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="508.0"/>
+ </Label>
+ <Label id="IDC_LABEL4" parent="IDL_ALARM_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="52.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="831.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL3" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="560.0"/>
+ </Label>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307161751" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_ALARM_RINGING_LOCK_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Label id="IDC_LABEL" parent="IDL_ALARM_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_clock_bg.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1220.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_ALARM_RINGING_LOCK_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALARM_RINGING_LOCK_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_LABEL1" parent="IDL_ALARM_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_clock_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="374.0" x="173.0" y="178.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="408.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280.0" x="500.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_LABEL2" parent="IDL_ALARM_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="64.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="64.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="663.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="64.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="335.0"/>
+ </Label>
+ <Label id="IDC_LABEL3" parent="IDL_ALARM_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="52.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="765.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="397.0"/>
+ </Label>
+ <Label id="IDC_LABEL4" parent="IDL_ALARM_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="52.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="831.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALARM_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALARM_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="449.0"/>
+ </Label>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+<ScenePanel Bversion="2.0.0.201305071547" Dversion="20120315">
+ <Panel id="IDL_ALARM_RINGING_LOCK_PANEL">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="200.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
+ <layout height="200.0" mode="Landscape" type="LAYOUT_RELATIVE" width="1280.0" x="0.0" y="0.0"/>
+ </Panel>
+ <Panel id="IDC_SNOOZE_PANEL" parent="IDL_ALARM_RINGING_LOCK_PANEL">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="360.0" x="2.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="360.0" x="282.0" y="0.0"/>
+ </Panel>
+ <Label id="IDC_LABEL1" parent="IDC_SNOOZE_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_snooze_circle_small.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="188.0" mode="Portrait" width="188.0" x="6.0" y="6.0"/>
+ <layout height="188.0" mode="Landscape" width="188.0" x="26.0" y="6.0"/>
+ </Label>
+ <Label id="IDC_SNOOZE_LABEL" parent="IDC_SNOOZE_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="188.0" mode="Portrait" width="188.0" x="6.0" y="6.0"/>
+ <layout height="188.0" mode="Landscape" width="188.0" x="26.0" y="6.0"/>
+ </Label>
+ <Label id="IDC_SNOOZE_ARROW_LABEL3" parent="IDC_SNOOZE_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="32.0" mode="Portrait" width="20.0" x="212.0" y="84.0"/>
+ <layout height="32.0" mode="Landscape" width="20.0" x="232.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_SNOOZE_ARROW_LABEL2" parent="IDC_SNOOZE_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="32.0" mode="Portrait" width="20.0" x="260.0" y="84.0"/>
+ <layout height="32.0" mode="Landscape" width="20.0" x="280.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_SNOOZE_ARROW_LABEL1" parent="IDC_SNOOZE_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_snooze_arrow_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="32.0" mode="Portrait" width="20.0" x="305.0" y="84.0"/>
+ <layout height="32.0" mode="Landscape" width="20.0" x="325.0" y="84.0"/>
+ </Label>
+ <Panel id="IDC_STOP_PANEL" parent="IDL_ALARM_RINGING_LOCK_PANEL">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="360.0" x="360.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="360.0" x="640.0" y="0.0"/>
+ </Panel>
+ <Label id="IDC_STOP_ARROW_LABEL1" parent="IDC_STOP_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_dismiss_arrow_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="32.0" mode="Portrait" width="20.0" x="6.0" y="84.0"/>
+ <layout height="32.0" mode="Landscape" width="20.0" x="24.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_ARROW_LABEL2" parent="IDC_STOP_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="32.0" mode="Portrait" width="20.0" x="51.0" y="84.0"/>
+ <layout height="32.0" mode="Landscape" width="20.0" x="69.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_ARROW_LABEL3" parent="IDC_STOP_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="32.0" mode="Portrait" width="20.0" x="96.0" y="84.0"/>
+ <layout height="32.0" mode="Landscape" width="20.0" x="114.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_LABEL9" parent="IDC_STOP_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_dismiss_circle_small.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="188.0" mode="Portrait" width="188.0" x="134.0" y="6.0"/>
+ <layout height="188.0" mode="Landscape" width="188.0" x="152.0" y="6.0"/>
+ </Label>
+ <Label id="IDC_STOP_LABEL" parent="IDC_STOP_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout height="188.0" mode="Portrait" width="188.0" x="134.0" y="6.0"/>
+ <layout height="188.0" mode="Landscape" width="188.0" x="152.0" y="6.0"/>
+ </Label>
+</ScenePanel>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+<ScenePanel Bversion="2.0.0.201304191935" Dversion="20120315">
+ <Panel id="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="200.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
+ <layout height="200.0" mode="Landscape" type="LAYOUT_RELATIVE" width="1280.0" x="0.0" y="0.0"/>
+ </Panel>
+ <Label id="IDC_LABEL1" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_dismiss_circle_small.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="260.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="540.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_STOP_ALARM_LABEL" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="260.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="101.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="116.0" x="582.0" y="49.0"/>
+ </Label>
+ <Label id="IDC_STOP_LEFT_LABEL2" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="174.0" y="84.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="454.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_LEFT_LABEL1" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_dismiss_arrow_02.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="126.0" y="84.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="406.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_RIGHT_LABEL3" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="478.0" y="84.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="758.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_RIGHT_LABEL2" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="526.0" y="84.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="806.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_RIGHT_LABEL1" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="P03_alarm_jog_dismiss_arrow_01.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="574.0" y="84.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="854.0" y="84.0"/>
+ </Label>
+ <Label id="IDC_STOP_LEFT_LABEL3" parent="IDL_ALARM_RINGING_SNOOZE_OFF_PANEL">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="222.0" y="84.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="32.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="20.0" x="502.0" y="84.0"/>
+ </Label>
+</ScenePanel>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310251600" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_CITY_LIST">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="101" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_ALM_BODY_NAME"/>
+ <footerItem accessibilityHint="" actionId="102" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_WCL_TAB_TIME"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_WCL_HEADER_SELECT_TIME_ZONE" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <SearchBar id="IDC_CITY_SEARCHBAR" parent="IDL_CITY_LIST">
+ <property accessibilityHint="" backgroundBitmapPath="" buttonActionId="103" buttonText="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonTextColor="" disabledSearchFieldColor="" disabledSearchFieldTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" guideText="::IDS_COM_BODY_SEARCH" guideTextColor="" highlightedButtonColor="" highlightedButtonTextColor="" highlightedSearchFieldColor="" highlightedSearchFieldTextColor="" keypadAction="KEYPAD_ACTION_SEARCH" limitLength="500" lowerCaseMode="false" normalButtonColor="" normalButtonTextColor="" normalSearchFieldColor="" normalSearchFieldTextColor="" pressedButtonColor="" pressedButtonTextColor="" searchFieldTextSize="33.0" showSearchBarButton="true" text="" textPredictionEnabled="false"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="86.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CITY_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_CITY_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CITY_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="86.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CITY_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_CITY_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CITY_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </SearchBar>
+ <ListView id="IDC_CITY_LISTVIEW" parent="IDL_CITY_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FAST_SCROLL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList="::IDS_COM_BODY_NO_SEARCH_RESULTS"/>
+ <layout bottomRelation="IDL_CITY_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1038.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CITY_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_CITY_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_CITY_SEARCHBAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="86.0"/>
+ <layout bottomRelation="IDL_CITY_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="543.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CITY_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_CITY_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_CITY_SEARCHBAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="86.0"/>
+ </ListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201309242034" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_DELETE_ALARM_LIST">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="206" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_ALM_SK_DELETE"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <CheckButton id="IDC_SELECT_ALL" parent="IDL_DELETE_ALARM_LIST">
+ <property accessibilityHint1="" accessibilityHint2="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_MIDDLE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="#DCDAD3" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="::IDS_COM_BODY_SELECT_ALL" titleText="" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CHECK_BUTTON_STYLE_MARK" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CHECK_BUTTON_STYLE_MARK" topRelation="IDL_DELETE_ALARM_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ </CheckButton>
+ <Label id="IDC_LABEL1" parent="IDL_DELETE_ALARM_LIST">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" leftMargin="20" text="::IDS_NOTHING_SELECTED" textColor="#FFFFFF" textSize="35.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_DELETE_ALARM_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="1076.0"/>
+ <layout bottomRelation="IDL_DELETE_ALARM_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="581.0"/>
+ </Label>
+ <ListView id="IDC_LISTVIEW_ALARM" parent="IDL_DELETE_ALARM_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="IDC_LABEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="964.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_ALARM_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_SELECT_ALL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="112.0"/>
+ <layout bottomRelation="IDC_LABEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="469.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_ALARM_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_DELETE_ALARM_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SELECT_ALL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="112.0"/>
+ </ListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201309242034" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_DELETE_WORLD_CLOCK_LIST">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="206" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_ALM_SK_DELETE"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="Delete" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <CheckButton id="IDC_SELECT_ALL" parent="IDL_DELETE_WORLD_CLOCK_LIST">
+ <property accessibilityHint1="" accessibilityHint2="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_MIDDLE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="#DCDAD3" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="::IDS_COM_BODY_SELECT_ALL" titleText="" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CHECK_BUTTON_STYLE_MARK" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CHECK_BUTTON_STYLE_MARK" topRelation="IDL_DELETE_WORLD_CLOCK_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="0.0"/>
+ </CheckButton>
+ <Label id="IDC_LABEL1" parent="IDL_DELETE_WORLD_CLOCK_LIST">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" leftMargin="16" text=" Selected(0)" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_DELETE_WORLD_CLOCK_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="1076.0"/>
+ <layout bottomRelation="IDL_DELETE_WORLD_CLOCK_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="581.0"/>
+ </Label>
+ <ListView id="IDC_LISTVIEW_ALARM" parent="IDL_DELETE_WORLD_CLOCK_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="827.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="112.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="339.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_WORLD_CLOCK_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_DELETE_WORLD_CLOCK_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="112.0"/>
+ </ListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
+<ScenePopup Bversion="2.0.0.201307161751" Dversion="20120315">
+ <Popup id="IDL_DST_POPUP">
+ <property accessibilityHint="" color="#FFFFFF" titleText="::IDS_WCL_OPT_DST_SETTINGS" titleTextColor=""/>
+ <layout height="585.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="666.0"/>
+ <layout height="594.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="666.0"/>
+ </Popup>
+ <ListView id="IDC_POPUP_LIST" parent="IDL_DST_POPUP">
+ <property backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="336.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="666.0" x="0" y="3.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="336.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="666.0" x="0" y="3.0"/>
+ </ListView>
+ <Button id="IDC_BUTTON" parent="IDL_DST_POPUP">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_ALM_SK_CANCEL" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="500.0" x="83.0" y="387.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="500.0" x="83.0" y="387.0"/>
+ </Button>
+</ScenePopup>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201306281023" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_EDIT_SNOOZE_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet/>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="Snooze duration & Repeat" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <GroupedListView id="IDC_SETTING_LIST" parent="IDL_EDIT_SNOOZE_FORM">
+ <property backgroundBitmapPath="" backgroundColor="#F9F9F9" backgroundColorOpacity="100" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="#8E9AA3" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="688.0" x="16.0" y="0"/>
+ <layout bottomRelation="IDL_EDIT_SNOOZE_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="IDL_EDIT_SNOOZE_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="1184.0" x="16.0" y="0"/>
+ </GroupedListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+<ScenePanel Bversion="2.0.0.201303111438" Dversion="20120315">
+ <Panel id="IDL_NOTIFICATION_PANEL">
+ <property backgroundColor="#444444" backgroundColorOpacity="100" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="52" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="4" y="113"/>
+ <layout height="52" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="30" y="538"/>
+ </Panel>
+ <Label id="IDC_NOTIFICATION_LABEL" parent="IDL_NOTIFICATION_PANEL">
+ <property backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_CENTER" text="" textColor="#FFFFFF" textSize="32" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_NOTIFICATION_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_NOTIFICATION_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="52" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_NOTIFICATION_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="1280" x="0" y="0"/>
+ </Label>
+</ScenePanel>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+<ScenePanel Bversion="2.0.0.201303111438" Dversion="20120315">
+ <Panel id="IDL_NUMBER_SELECTOR">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="124" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>
+ <layout height="124" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_ANCHOR" parent="IDL_NUMBER_SELECTOR">
+ <property backgroundBitmapPath="00_timepicker_tail.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="18" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="4" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_NUMBER_SELECTOR" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="30" x="24" y="4"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="18" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="30" x="24" y="4"/>
+ </Label>
+ <ScrollPanel id="IDC_SCROLLPANEL1" parent="IDL_NUMBER_SELECTOR">
+ <property autoResizingEnabled="true" backgroundColor="#FFFFFF" backgroundColorOpacity="0" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="true" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/>
+ <panelLayout height="102" mode="Portrait" width="720"/>
+ <panelLayout height="102" mode="Landscape" width="1280"/>
+ <layout bottomRelation="IDL_NUMBER_SELECTOR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_NUMBER_SELECTOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_NUMBER_SELECTOR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="22"/>
+ <layout bottomRelation="IDL_NUMBER_SELECTOR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_NUMBER_SELECTOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="22"/>
+ </ScrollPanel>
+ <Button id="IDC_BUTTON2" parent="IDC_SCROLLPANEL1">
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="00" textSize="48" verticalAlign="ALIGN_MIDDLE"/>
+ <layout height="102" mode="Portrait" width="102" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="102" x="0" y="0"/>
+ </Button>
+ <Button id="IDC_BUTTON3" parent="IDC_SCROLLPANEL1">
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="01" textSize="48" verticalAlign="ALIGN_MIDDLE"/>
+ <layout height="102" mode="Portrait" width="102" x="102" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="102" x="102" y="0"/>
+ </Button>
+ <Label id="IDC_BG" parent="IDL_NUMBER_SELECTOR">
+ <property backgroundBitmapPath="00_timepicker_number_bg.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="22"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="22"/>
+ </Label>
+</ScenePanel>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201306281023" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_REORDER_WORLD_CLOCK_LIST">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="204" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_WCL_SK_DONE"/>
+ <footerItem accessibilityHint="" actionId="205" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_ALM_SK_CANCEL"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <ListView id="IDC_LISTVIEW_WORLD_CLOCK" parent="IDL_REORDER_WORLD_CLOCK_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="IDL_REORDER_WORLD_CLOCK_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_REORDER_WORLD_CLOCK_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="IDL_REORDER_WORLD_CLOCK_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_REORDER_WORLD_CLOCK_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_REORDER_WORLD_CLOCK_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_REORDER_WORLD_CLOCK_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </ListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
+<ScenePopup Bversion="2.0.0.201307161751" Dversion="20120315">
+ <Popup id="IDL_SORT_BY">
+ <property accessibilityHint="" color="#FFFFFF" titleText="::IDS_ALM_OPT_SORT_BY" titleTextColor=""/>
+ <layout height="438.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="648.0"/>
+ <layout height="438.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="648.0"/>
+ </Popup>
+ <Button id="IDC_BUTTON1" parent="IDL_SORT_BY">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_ALM_SK_CANCEL" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_SORT_BY" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="30.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="300.0" x="174.0" y="258.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="300.0" x="174.0" y="258.0"/>
+ </Button>
+ <ListView id="IDC_LISTVIEW1" parent="IDL_SORT_BY">
+ <property backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="IDC_BUTTON1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="248.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_SORT_BY" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="648.0" x="0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="248.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SORT_BY" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SORT_BY" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648.0" x="0.0" y="2.0"/>
+ </ListView>
+</ScenePopup>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201304011930" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_STOP_WATCH">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/>
+ <itemSet/>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <Label id="IDC_LABEL11" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_bg.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="176.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="176.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="260.0" y="0.0"/>
+ </Label>
+ <Panel id="IDC_PANEL1" parent="IDL_STOP_WATCH">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="163.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="768.0"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_STOP_WATCH" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_STOP_WATCH" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="384.0"/>
+ </Panel>
+ <ListView id="IDC_LISTVIEW1" parent="IDL_STOP_WATCH">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" fastScroll="false" itemDivider="true" itemDividerColor="" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="IDC_PANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="592.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_LABEL11" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="176.0"/>
+ <layout bottomRelation="IDC_PANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="208.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_STOP_WATCH" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_STOP_WATCH" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL11" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="176.0"/>
+ </ListView>
+ <Button id="IDC_BUTTON_STOP" parent="IDL_STOP_WATCH">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="50.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="18.0" y="781.0"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="465.0" x="90.0" y="402.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_LAP" parent="IDL_STOP_WATCH">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="50.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="374.0" y="781.0"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="465.0" x="645.0" y="402.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_RESTART" parent="IDL_STOP_WATCH">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="50.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="18.0" y="781.0"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="465.0" x="90.0" y="402.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_RESET" parent="IDL_STOP_WATCH">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="50.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="374.0" y="781.0"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="465.0" x="645.0" y="402.0"/>
+ </Button>
+ <Label id="IDC_LABEL1" parent="IDL_STOP_WATCH">
+ <property backgroundBitmapPath="P03_stopwatch_time_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80" x="78" y="32"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80" x="336" y="32"/>
+ <Label id="IDC_LABEL2" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="158.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="416.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL3" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_colon.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="25.0" x="238.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="25.0" x="496.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL4" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="263.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="521.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL5" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="343.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="601.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL6" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_colon.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="25.0" x="423.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="25.0" x="681.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL7" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="448.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="706.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL8" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="528.0" y="32.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="80.0" x="786.0" y="32.0"/>
+ </Label>
+ <Label id="IDC_LABEL9" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_small_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="47.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="32.0" x="622.0" y="101.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="47.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="32.0" x="880.0" y="101.0"/>
+ </Label>
+ <Label id="IDC_LABEL10" parent="IDL_STOP_WATCH">
+ <property accessibilityHint="" backgroundBitmapPath="P03_stopwatch_time_small_00.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="47.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="32.0" x="654.0" y="101.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="47.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="32.0" x="912.0" y="101.0"/>
+ </Label>
+ <Button id="IDC_BUTTON_START" parent="IDL_STOP_WATCH">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="50.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="400.0" x="160.0" y="781.0"/>
+ <layout bottomRelation="IDL_STOP_WATCH" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="82.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="500.0" x="350.0" y="402.0"/>
+ </Button>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310110948" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_TIMER">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet/>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <Panel id="IDC_INPUT_PANEL" parent="IDL_TIMER">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="600.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="248.0"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="260.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="40.0" y="369.0"/>
+ </Panel>
+ <Button id="IDC_BUTTON1" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_01.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="0.0" y="25.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_INPUT_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="0.0" y="10.0"/>
+ </Button>
+ <Button id="IDC_BUTTON2" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_02.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="240.0" y="25.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="200.0" y="10.0"/>
+ </Button>
+ <Button id="IDC_BUTTON3" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_03.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="480.0" y="25.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON2" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="400.0" y="10.0"/>
+ </Button>
+ <Button id="IDC_BUTTON4" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_04.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_BUTTON1" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="0.0" y="155.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON3" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="600.0" y="10.0"/>
+ </Button>
+ <Button id="IDC_BUTTON5" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_05.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_BUTTON1" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="240.0" y="155.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON4" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="800.0" y="10.0"/>
+ </Button>
+ <Button id="IDC_BUTTON6" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_06.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BUTTON3" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="480.0" y="155.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON5" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="1000.0" y="10.0"/>
+ </Button>
+ <Button id="IDC_BUTTON7" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_07.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_BUTTON4" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="0.0" y="285.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_INPUT_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="0.0" y="130.0"/>
+ </Button>
+ <Button id="IDC_BUTTON8" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_08.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_BUTTON5" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="240.0" y="285.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON7" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="200.0" y="130.0"/>
+ </Button>
+ <Button id="IDC_BUTTON9" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_09.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BUTTON6" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="480.0" y="285.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON8" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="400.0" y="130.0"/>
+ </Button>
+ <Button id="IDC_BUTTON0" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_00.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_BUTTON8" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="240.0" y="415.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON9" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="600.0" y="130.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_CLR" parent="IDC_INPUT_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="P03_timer_keypad_number_clear.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BUTTON9" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="240.0" x="480.0" y="415.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON0" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="800.0" y="130.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_START" parent="IDL_TIMER">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="25.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="400.0" x="160.0" y="999.0"/>
+ <layout bottomRelation="IDC_INPUT_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="10.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_INPUT_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="200.0" x="1040.0" y="499.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_STOP" parent="IDL_TIMER">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="#323232" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="25.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="18.0" y="999.0"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="25.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="525.0" x="51.0" y="504.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_RESTART" parent="IDL_TIMER">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="25.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="18.0" y="999.0"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="25.0" marginLeft="50.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="525.0" x="50.0" y="504.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_RESET" parent="IDL_TIMER">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="Timer_Button.#.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="Timer_Button_Pressed.#.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="45.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="25.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="328.0" x="374.0" y="999.0"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="25.0" marginLeft="50.0" marginRight="50.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="525.0" x="705.0" y="504.0"/>
+ </Button>
+ <Panel id="IDC_TIMER_PANEL" parent="IDL_TIMER">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="62.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="66.0"/>
+ </Panel>
+ <Button id="IDC_BUTTON_MINUTES" parent="IDC_TIMER_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="110.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_TIMER_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="250.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="529.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_HOURS" parent="IDC_TIMER_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="110.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_TIMER_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="16.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="20.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BUTTON_MINUTES" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="287.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_SECONDS" parent="IDC_TIMER_PANEL">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="110.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_TIMER_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="484.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_MINUTES" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="20.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="771.0" y="0.0"/>
+ </Button>
+ <Label id="IDC_LABEL_TIMER" parent="IDL_TIMER">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="210.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="63.0"/>
+ <layout bottomRelation="IDC_INPUT_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="158.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="211.0"/>
+ </Label>
+ <Label id="IDC_LABEL2" parent="IDL_TIMER">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="min" textColor="#797977" textSize="24.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="250.0" y="22.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="40.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="529.0" y="22.0"/>
+ </Label>
+ <Label id="IDC_LABEL1" parent="IDL_TIMER">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="hr" textColor="#797977" textSize="24.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="16.0" y="22.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="20.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_LABEL2" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="287.0" y="22.0"/>
+ </Label>
+ <Label id="IDC_LABEL3" parent="IDL_TIMER">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="sec" textColor="#797977" textSize="24.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="484.0" y="22.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL2" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="20.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="771.0" y="22.0"/>
+ </Label>
+ <Panel id="IDC_PANEL_TIMER_STARTED" parent="IDL_TIMER">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="62.0"/>
+ <layout bottomRelation="IDC_TIMER_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_TIMER_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="66.0"/>
+ </Panel>
+ <Button id="IDC_BUTTON_MINUTE_DISPLAY" parent="IDC_PANEL_TIMER_STARTED">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="#323232" text="" textSize="110.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="250.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="529.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_HOUR_DISPLAY" parent="IDC_PANEL_TIMER_STARTED">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="#323232" text="" textSize="110.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="16.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="20.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BUTTON_MINUTE_DISPLAY" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="287.0" y="0.0"/>
+ </Button>
+ <Button id="IDC_BUTTON_SECOND_DISPLAY" parent="IDC_PANEL_TIMER_STARTED">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#323232" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="#323232" text="" textSize="130.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="186.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="484.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_BUTTON_MINUTE_DISPLAY" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="20.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="222.0" x="771.0" y="0.0"/>
+ </Button>
+ <Panel id="IDC_PANEL1" parent="IDL_TIMER">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="276.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_INPUT_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="848.0"/>
+ <layout bottomRelation="IDL_TIMER" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="495.0"/>
+ </Panel>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201308220944" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_TIMER_RINGING_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Panel id="IDC_PANEL" parent="IDL_TIMER_RINGING_FORM">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1140.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_TIMER_RINGING_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_TIMER_RINGING_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="0.0"/>
+ </Panel>
+ <Label id="IDC_LABEL" parent="IDL_TIMER_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_clock_bg.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1140.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_TIMER_RINGING_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_TIMER_RINGING_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="0.0"/>
+ </Label>
+ <Button id="IDC_BUTTON1" parent="IDL_TIMER_RINGING_FORM">
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#FF0000" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_TMR_SK3_STOP" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="500.0" x="110.0" y="998.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="480.0" x="360.0" y="606.0"/>
+ </Button>
+ <Label id="IDC_LABEL1" parent="IDL_TIMER_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_timer_glass.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="532.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="312.0" x="204.0" y="198.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="432.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="312.0" x="444.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_LABEL2" parent="IDL_TIMER_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="140.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="140.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="737.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="432.0"/>
+ </Label>
+ <Label id="IDC_LABEL3" parent="IDL_TIMER_RINGING_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="::IDS_TMR_POP_TIME_IS_UP" textColor="#181818" textSize="48.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="75.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="877.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL2" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="532.0"/>
+ </Label>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201309041510" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_TIMER_RINGING_LOCK_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Panel id="IDC_PANEL" parent="IDL_TIMER_RINGING_LOCK_FORM">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1220.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_TIMER_RINGING_LOCK_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_TIMER_RINGING_LOCK_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </Panel>
+ <Label id="IDC_LABEL" parent="IDL_TIMER_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_clock_bg.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1220.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_TIMER_RINGING_LOCK_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="720.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_TIMER_RINGING_LOCK_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_LABEL1" parent="IDL_TIMER_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="P03_timer_glass.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="532.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="312.0" x="204.0" y="198.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="360.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="312.0" x="484.0" y="0.0"/>
+ </Label>
+ <Label id="IDC_LABEL2" parent="IDL_TIMER_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="" textColor="#FFFFFF" textSize="140.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="140.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="737.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="360.0"/>
+ </Label>
+ <Label id="IDC_LABEL3" parent="IDL_TIMER_RINGING_LOCK_FORM">
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="::IDS_TMR_POP_TIME_IS_UP" textColor="#181818" textSize="42.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="877.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TIMER_RINGING_LOCK_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_TIMER_RINGING_LOCK_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL2" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="460.0"/>
+ </Label>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307041803" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_WORLD_CLOCK_LIST">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+ <itemSet>
+ <footerItem accessibilityHint="" actionId="101" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_COM_SK_ADD_CITY"/>
+ </itemSet>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <ListView id="IDC_LISTVIEW1" parent="IDL_WORLD_CLOCK_LIST">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+ <layout bottomRelation="IDL_WORLD_CLOCK_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_WORLD_CLOCK_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="IDL_WORLD_CLOCK_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_WORLD_CLOCK_LIST" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_WORLD_CLOCK_LIST" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_WORLD_CLOCK_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </ListView>
+</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201309242034" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melódia a vibrovanie</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Časové pásmo</text>
+ <text id="IDS_ALM_BODY_10TIMES">Desaťkrát</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Vybrané</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Vybrať časové pásmo</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Vybrať všetky</text>
+ <text id="IDS_NOTHING_SELECTED">Nič nie je vybrané</text>
+ <text id="IDS_COM_BODY_DEC">Dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Zrušiť</text>
+ <text id="IDS_ALM_BODY_REPEAT">Opakovať</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Žiadne budíky</text>
+ <text id="IDS_COM_BODY_AM">dp</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Žiadne položky</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Každý pondelok</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Čas</text>
+ <text id="IDS_COM_SK_NEW">Nové</text>
+ <text id="IDS_ALM_SK3_SAVE">Uložiť</text>
+ <text id="IDS_COM_BODY_JUN">Jún</text>
+ <text id="IDS_ALM_BODY_TIME">Čas</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Posunúť budík</text>
+ <text id="IDS_COM_BODY_JUL">Júl</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reštartovať</text>
+ <text id="IDS_ALM_BODY_TYPE">Typ</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Reštart</text>
+ <text id="IDS_WCL_SK_DONE">Hotovo</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">pp</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Máj</text>
+ <text id="IDS_ALM_BODY_NAME">Meno</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibrácia</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Nastavenia letného času</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Trvanie odloženia</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 vybratý budík</text>
+ <text id="IDS_ALM_BODY_MELODY">Melódia</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Každý piatok</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Zmeniť poradie</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Každú stredu</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Unable to add city. World Clock list full. Delete some items first</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Čas vypršal</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Usporiadať podľa</text>
+ <text id="IDS_TMR_BODY_SEC">s</text>
+ <text id="IDS_ALM_BODY_3TIMES">Trikrát</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stopky</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Vypnúť zvonenie</text>
+ <text id="IDS_TMR_BODY_HOUR">Hodina</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Svetový čas</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Aug.</text>
+ <text id="IDS_TMR_SK_START">Štart</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Každý utorok</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Upozornenie</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Ďalšie</text>
+ <text id="IDS_COM_BODY_TIMER">Časovač</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Upozornenie po časovom limite</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Opakovanie posunutia</text>
+ <text id="IDS_COM_BODY_SEARCH">Hľadať</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Vyberte budíky</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Každú sobotu</text>
+ <text id="IDS_SWT_BUTTON_RESET">Vynulovať</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Každý deň</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Vybraté mestá: %d</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Zrušiť letný čas</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Každý štvrtok</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Časový limit vypršal</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Vybraté budíky: %d</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d krát</text>
+ <text id="IDS_COM_POP_DELETED">Odstránené</text>
+ <text id="IDS_ALM_BODY_5TIMES">Päťkrát</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Žiadne výsledky vyhľadávania</text>
+ <text id="IDS_COM_SK_ADD">Pridať</text>
+ <text id="IDS_SWT_BUTTON_LAP">Okruh</text>
+ <text id="IDS_ALM_BODY_TONE">Tón</text>
+ <text id="IDS_TMR_SK_RESET">Vynulovať</text>
+ <text id="IDS_ALM_HEADER_TYPE">Typ</text>
+ <text id="IDS_COM_BUTTON_RECENT">Nedávne</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melódia</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 vybraté mesto</text>
+ <text id="IDS_WCL_SK_BY_NAME">P. názvu</text>
+ <text id="IDS_COM_BODY_OCT">Okt.</text>
+ <text id="IDS_ALM_SK_DELETE">Odstrániť</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Každú nedeľu</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Žiadne položky</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Vibriranje in melodija</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Časovni pas</text>
+ <text id="IDS_ALM_BODY_10TIMES">10-krat</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Izbrano</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Izberi časovni pas</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Izberi vse</text>
+ <text id="IDS_NOTHING_SELECTED">Nič ni izbrano</text>
+ <text id="IDS_COM_BODY_DEC">Dec</text>
+ <text id="IDS_ALM_SK_CANCEL">Prekliči</text>
+ <text id="IDS_ALM_BODY_REPEAT">Ponovi</text>
+ <text id="IDS_TMR_BODY_MIN1">minut</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ni opozoril</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Ni predmetov</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Vsak ponedeljek</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Ura</text>
+ <text id="IDS_COM_SK_NEW">Novo</text>
+ <text id="IDS_ALM_SK3_SAVE">Shrani</text>
+ <text id="IDS_COM_BODY_JUN">Jun</text>
+ <text id="IDS_ALM_BODY_TIME">Čas</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Dremež</text>
+ <text id="IDS_COM_BODY_JUL">Jul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Znova zaženi</text>
+ <text id="IDS_ALM_BODY_TYPE">Vrsta</text>
+ <text id="IDS_TMR_SK3_STOP">Ustavi</text>
+ <text id="IDS_TMR_SK3_RESTART">Znova zaženi</text>
+ <text id="IDS_WCL_SK_DONE">Končano</text>
+ <text id="IDS_COM_BODY_APR">Apr</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Maj</text>
+ <text id="IDS_ALM_BODY_NAME">Ime</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibriranje</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Nastavitve DST</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Trajanje dremeža</text>
+ <text id="IDS_COM_BODY_MAR">Mar</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 opozorilo izbrano</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodija</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Vsak petek</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Spremeni zaporedje</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Vsako sredo</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Časa je zmanjkalo</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Mesta ni mogoče dodati. Seznam Svetovne ure je poln. Najprej izbrišite nekaj elementov</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Uredi po</text>
+ <text id="IDS_TMR_BODY_SEC">sek</text>
+ <text id="IDS_ALM_BODY_3TIMES">3-krat</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Štoparica</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Ustavi zvonjenje</text>
+ <text id="IDS_TMR_BODY_HOUR">Ura</text>
+ <text id="IDS_COM_BODY_JAN">Jan</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Svetovna ura</text>
+ <text id="IDS_COM_BODY_SEP">Sep</text>
+ <text id="IDS_COM_BODY_AUG">Avg</text>
+ <text id="IDS_TMR_SK_START">Začni</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Vsak torek</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Budilka</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Več</text>
+ <text id="IDS_COM_BODY_TIMER">Časovnik</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Zakasnjeni alarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Ponovi dremež</text>
+ <text id="IDS_COM_BODY_SEARCH">Iskanje</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Izberi opozorila</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Vsako soboto</text>
+ <text id="IDS_SWT_BUTTON_RESET">Ponastavi</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d mest je izbranih</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Vsak dan</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Prekliči DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Vsak četrtek</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Čas je potekel</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d opozoril je izbranih</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d-krat</text>
+ <text id="IDS_COM_POP_DELETED">Izbrisano</text>
+ <text id="IDS_ALM_BODY_5TIMES">5-krat</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Ni rezultatov iskanja</text>
+ <text id="IDS_SWT_BUTTON_LAP">Krog</text>
+ <text id="IDS_COM_SK_ADD">Dodaj</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Ponastavi</text>
+ <text id="IDS_ALM_HEADER_TYPE">Vrsta</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodija</text>
+ <text id="IDS_COM_BUTTON_RECENT">Nedavno</text>
+ <text id="IDS_TMR_BODY_MIN">minut</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 mesto je izbrano</text>
+ <text id="IDS_COM_BODY_OCT">Okt</text>
+ <text id="IDS_WCL_SK_BY_NAME">Po imenu</text>
+ <text id="IDS_ALM_SK_DELETE">Izbriši</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Vsako nedeljo</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Ni predmetov</text>
+ <text id="IDS_COM_BODY_FEB">Feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodía y vibración</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Zona horaria</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 veces</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seleccionado</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Seleccionar zona horaria</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Seleccionar todo</text>
+ <text id="IDS_NOTHING_SELECTED">No se ha seleccionado nada</text>
+ <text id="IDS_COM_BODY_DEC">Dic.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancelar</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetir</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ninguna alarma</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Ningún elemento</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Cada lunes</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Hora</text>
+ <text id="IDS_COM_SK_NEW">Nuevo</text>
+ <text id="IDS_ALM_SK3_SAVE">Guardar</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Hora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Repetición de alarma</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reiniciar</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipo</text>
+ <text id="IDS_TMR_SK3_STOP">Parar</text>
+ <text id="IDS_TMR_SK3_RESTART">Reiniciar</text>
+ <text id="IDS_WCL_SK_DONE">Hecho</text>
+ <text id="IDS_COM_BODY_APR">Abr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Mayo</text>
+ <text id="IDS_ALM_BODY_NAME">Nombre</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibración</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Ajustes de horario de verano</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Duración de la repetición de alarma</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarma seleccionada</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodía</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Cada viernes</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reordenar</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Cada miércoles</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tiempo agotado</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">No se puede añadir ciudad. La lista Reloj mundial está llena. Elimine primero algunos elementos</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordenar por</text>
+ <text id="IDS_TMR_BODY_SEC">seg</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 veces</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronómetro</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Detener timbre</text>
+ <text id="IDS_TMR_BODY_HOUR">Hora</text>
+ <text id="IDS_COM_BODY_JAN">Ene.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Reloj mundial</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Ago.</text>
+ <text id="IDS_TMR_SK_START">Iniciar</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Cada martes</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarma</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Más</text>
+ <text id="IDS_COM_BODY_TIMER">Temporizador</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarma de tiempo agotado</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Prolongación de la repetición de alarma</text>
+ <text id="IDS_COM_BODY_SEARCH">Buscar</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Seleccionar alarmas</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Cada sábado</text>
+ <text id="IDS_SWT_BUTTON_RESET">Restab.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d ciudades seleccionadas</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Todos los días</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancelar DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Cada jueves</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tiempo agotado</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmas seleccionadas</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d veces</text>
+ <text id="IDS_COM_POP_DELETED">Eliminado</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 veces</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">No se han encontrado resultados</text>
+ <text id="IDS_SWT_BUTTON_LAP">Etapa</text>
+ <text id="IDS_COM_SK_ADD">Añadir</text>
+ <text id="IDS_ALM_BODY_TONE">Tono</text>
+ <text id="IDS_TMR_SK_RESET">Restablecer</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipo</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodía</text>
+ <text id="IDS_COM_BUTTON_RECENT">Reciente</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 ciudad seleccionada</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Por nombr</text>
+ <text id="IDS_ALM_SK_DELETE">Eliminar</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Cada domingo</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Ningún elemento</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodía y vibración</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Zona horaria</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 veces</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seleccionado</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Seleccionar zona horaria</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Seleccionar todo</text>
+ <text id="IDS_NOTHING_SELECTED">No se ha seleccionado nada</text>
+ <text id="IDS_COM_BODY_DEC">Dic.</text>
+ <text id="IDS_ALM_SK_CANCEL">Cancelar</text>
+ <text id="IDS_ALM_BODY_REPEAT">Repetir</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Ninguna alarma</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Ningún elemento</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Cada Lunes</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Hora</text>
+ <text id="IDS_COM_SK_NEW">Nuevo</text>
+ <text id="IDS_ALM_SK3_SAVE">Guardar</text>
+ <text id="IDS_COM_BODY_JUN">Jun.</text>
+ <text id="IDS_ALM_BODY_TIME">Hora</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Aplazar</text>
+ <text id="IDS_COM_BODY_JUL">Jul.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Reiniciar</text>
+ <text id="IDS_ALM_BODY_TYPE">Tipo</text>
+ <text id="IDS_TMR_SK3_STOP">Detener</text>
+ <text id="IDS_TMR_SK3_RESTART">Reiniciar</text>
+ <text id="IDS_WCL_SK_DONE">Realizado</text>
+ <text id="IDS_COM_BODY_APR">Abr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">Mayo</text>
+ <text id="IDS_ALM_BODY_NAME">Nombre</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibración</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Configuración de horario de verano</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Duración</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarma seleccionada</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodía</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Cada Viernes</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Reordenar</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Cada Miércoles</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tiempo agotado</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">No se puede añadir la ciudad. La lista de Reloj Mundial está llena. Elimine algunos elementos</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Ordenar por</text>
+ <text id="IDS_TMR_BODY_SEC">seg</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 veces</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Cronómetro</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Detener sonido</text>
+ <text id="IDS_TMR_BODY_HOUR">hora</text>
+ <text id="IDS_COM_BODY_JAN">Ene.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Reloj Mundial</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Ago.</text>
+ <text id="IDS_TMR_SK_START">Iniciar</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Cada Martes</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarma</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Más</text>
+ <text id="IDS_COM_BODY_TIMER">Temporizador</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarma después de</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Repetir</text>
+ <text id="IDS_COM_BODY_SEARCH">Buscar</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Seleccionar alarmas</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Cada Sábado</text>
+ <text id="IDS_SWT_BUTTON_RESET">Restabl.</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d ciudades seleccionadas</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Diariamente</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Cancelar Horario de verano</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Cada Jueves</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tiempo de espera</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarmas seleccionadas</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d veces</text>
+ <text id="IDS_COM_POP_DELETED">Eliminado</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 veces</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">No se han encontrado resultados</text>
+ <text id="IDS_SWT_BUTTON_LAP">Vuelta</text>
+ <text id="IDS_COM_SK_ADD">Añadir</text>
+ <text id="IDS_ALM_BODY_TONE">Tono</text>
+ <text id="IDS_TMR_SK_RESET">Restabl.</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tipo</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodía</text>
+ <text id="IDS_COM_BUTTON_RECENT">Reciente</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 ciudad seleccionada</text>
+ <text id="IDS_COM_BODY_OCT">Oct.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Por nomb.</text>
+ <text id="IDS_ALM_SK_DELETE">Eliminar</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Cada Domingo</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Ningún elemento</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodija i vibracija</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Vremenska zona</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 puta</text>
+ <text id="IDS_COM_BODY_NOV">Nov.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Označeno</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Izaberi vremensku zonu</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Izaberi sve</text>
+ <text id="IDS_NOTHING_SELECTED">Ništa nije izabrano</text>
+ <text id="IDS_COM_BODY_DEC">Dec.</text>
+ <text id="IDS_ALM_SK_CANCEL">Poništi</text>
+ <text id="IDS_ALM_BODY_REPEAT">Ponovi</text>
+ <text id="IDS_TMR_BODY_MIN1">min.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Nema alarma</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Nema stavki</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Svakog ponedeljka</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Vreme</text>
+ <text id="IDS_COM_SK_NEW">Nova</text>
+ <text id="IDS_ALM_SK3_SAVE">Sačuvaj</text>
+ <text id="IDS_COM_BODY_JUN">Jun</text>
+ <text id="IDS_ALM_BODY_TIME">Vreme</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Odremaj</text>
+ <text id="IDS_COM_BODY_JUL">Jul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Počni ponovo</text>
+ <text id="IDS_ALM_BODY_TYPE">Tip</text>
+ <text id="IDS_TMR_SK3_STOP">Stop</text>
+ <text id="IDS_TMR_SK3_RESTART">Restart</text>
+ <text id="IDS_WCL_SK_DONE">Gotovo</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min.</text>
+ <text id="IDS_COM_BODY_MAY">Maj</text>
+ <text id="IDS_ALM_BODY_NAME">Ime</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibracija</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Podešavanja letnjeg računanja vremena</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Trajanje odlaganja</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Izabran je jedan alarm</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodija</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Svakog petka</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Preuredi</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Svake srede</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Vreme je isteklo</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Nije moguće dodati grad. Lista Svetskog vremena je puna. Najpre izbriši neke stavke</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortiraj po</text>
+ <text id="IDS_TMR_BODY_SEC">s.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 puta</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Štoperica</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Prekini zvono</text>
+ <text id="IDS_TMR_BODY_HOUR">Sat</text>
+ <text id="IDS_COM_BODY_JAN">Jan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Svetsko vreme</text>
+ <text id="IDS_COM_BODY_SEP">Sep.</text>
+ <text id="IDS_COM_BODY_AUG">Avg.</text>
+ <text id="IDS_TMR_SK_START">Pokreni</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Svakog utorka</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Još</text>
+ <text id="IDS_COM_BODY_TIMER">Tajmer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Alarm isteka vremena</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Ponavljanje odlaganja</text>
+ <text id="IDS_COM_BODY_SEARCH">Pretraži</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Izaberi alarme</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Svake subote</text>
+ <text id="IDS_SWT_BUTTON_RESET">Resetuj</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d grad(ov)a izabrano</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Svaki dan</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Otkaži letnje vreme</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Svakog četvrtka</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Vreme isteklo</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Izabrano je %d alarma</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d puta</text>
+ <text id="IDS_COM_POP_DELETED">Obrisano</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 puta</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Nema rezultata pretrage</text>
+ <text id="IDS_SWT_BUTTON_LAP">Prolazno vreme</text>
+ <text id="IDS_COM_SK_ADD">Dodaj</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Resetuj</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tip</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodija</text>
+ <text id="IDS_COM_BUTTON_RECENT">Nedavno</text>
+ <text id="IDS_TMR_BODY_MIN">min.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 grad izabran</text>
+ <text id="IDS_COM_BODY_OCT">Okt.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Po imenu</text>
+ <text id="IDS_ALM_SK_DELETE">Obriši</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Svake nedelje</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Nema stavki</text>
+ <text id="IDS_COM_BODY_FEB">Feb.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodi och vibration</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Tidzon</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 gånger</text>
+ <text id="IDS_COM_BODY_NOV">Nov</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Markerade</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Välj tidszon</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Välj alla</text>
+ <text id="IDS_NOTHING_SELECTED">Inget markerat</text>
+ <text id="IDS_COM_BODY_DEC">Dec</text>
+ <text id="IDS_ALM_SK_CANCEL">Avbryt</text>
+ <text id="IDS_ALM_BODY_REPEAT">Upprepa</text>
+ <text id="IDS_TMR_BODY_MIN1">min</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Inga alarm</text>
+ <text id="IDS_COM_BODY_AM">FM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Inga objekt</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Varje måndag</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Tid</text>
+ <text id="IDS_COM_SK_NEW">Nytt</text>
+ <text id="IDS_ALM_SK3_SAVE">Spara</text>
+ <text id="IDS_COM_BODY_JUN">Jun</text>
+ <text id="IDS_ALM_BODY_TIME">Tid</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Snooze</text>
+ <text id="IDS_COM_BODY_JUL">Jul</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Omstart</text>
+ <text id="IDS_ALM_BODY_TYPE">Typ</text>
+ <text id="IDS_TMR_SK3_STOP">Stopp</text>
+ <text id="IDS_TMR_SK3_RESTART">Omstart</text>
+ <text id="IDS_WCL_SK_DONE">Klar</text>
+ <text id="IDS_COM_BODY_APR">Apr</text>
+ <text id="IDS_COM_POP_PM">EM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 min</text>
+ <text id="IDS_COM_BODY_MAY">maj</text>
+ <text id="IDS_ALM_BODY_NAME">Namn</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibration</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST-inställningar</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Tidsperiod för snooze</text>
+ <text id="IDS_COM_BODY_MAR">Mar</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 valt larm</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodi</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Varje fredag</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Ändra ordningsföljd</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Varje onsdag</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Tiden har gått ut</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Det går inte att lägga till en ort. Världsklockslistan är full. Radera några objekt först</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sortera efter</text>
+ <text id="IDS_TMR_BODY_SEC">s</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 gånger</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stoppur</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Stoppa uppringning</text>
+ <text id="IDS_TMR_BODY_HOUR">Timme</text>
+ <text id="IDS_COM_BODY_JAN">Jan</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Världsklocka</text>
+ <text id="IDS_COM_BODY_SEP">Sept</text>
+ <text id="IDS_COM_BODY_AUG">Aug</text>
+ <text id="IDS_TMR_SK_START">Start</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Varje tisdag</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Mer</text>
+ <text id="IDS_COM_BODY_TIMER">Timer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Timeoutlarm</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Upprepa snooze</text>
+ <text id="IDS_COM_BODY_SEARCH">Sök</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Välj larm</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Varje lördag</text>
+ <text id="IDS_SWT_BUTTON_RESET">Nollställ</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d valda orter</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Varje dag</text>
+ <text id="IDS_ALM_BODY_10MINS">10 min</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Avbryt SMT</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 min</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Varje torsdag</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Tidsgräns</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d valda larm</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d gånger</text>
+ <text id="IDS_COM_POP_DELETED">Raderad</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 gånger</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Inga sökresultat</text>
+ <text id="IDS_SWT_BUTTON_LAP">Varv</text>
+ <text id="IDS_COM_SK_ADD">Lägg till</text>
+ <text id="IDS_ALM_BODY_TONE">Signal</text>
+ <text id="IDS_TMR_SK_RESET">Nollställ</text>
+ <text id="IDS_ALM_HEADER_TYPE">Typ</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodi</text>
+ <text id="IDS_COM_BUTTON_RECENT">Senaste</text>
+ <text id="IDS_TMR_BODY_MIN">min</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 vald ort</text>
+ <text id="IDS_COM_BODY_OCT">Okt</text>
+ <text id="IDS_WCL_SK_BY_NAME">Eft. namn</text>
+ <text id="IDS_ALM_SK_DELETE">Radera</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Varje söndag</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Inga objekt</text>
+ <text id="IDS_COM_BODY_FEB">Feb</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Melodi ve titreşim</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Saat dilimi</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 kez</text>
+ <text id="IDS_COM_BODY_NOV">Kas.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Seçili</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Saat dilimini seçin</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Hepsini seç</text>
+ <text id="IDS_NOTHING_SELECTED">Bir şey seçilmedi</text>
+ <text id="IDS_COM_BODY_DEC">Ara.</text>
+ <text id="IDS_ALM_SK_CANCEL">İptal</text>
+ <text id="IDS_ALM_BODY_REPEAT">Tekrar</text>
+ <text id="IDS_TMR_BODY_MIN1">dk</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Alarm yok</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Öğe yok</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Her Pazartesi</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Saat</text>
+ <text id="IDS_COM_SK_NEW">Yeni</text>
+ <text id="IDS_ALM_SK3_SAVE">Kaydet</text>
+ <text id="IDS_COM_BODY_JUN">Haz.</text>
+ <text id="IDS_ALM_BODY_TIME">Saat</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Erteleme</text>
+ <text id="IDS_COM_BODY_JUL">Tem.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Yeniden Başlat</text>
+ <text id="IDS_ALM_BODY_TYPE">Tür</text>
+ <text id="IDS_TMR_SK3_STOP">Durdur</text>
+ <text id="IDS_TMR_SK3_RESTART">Yeniden başlat</text>
+ <text id="IDS_WCL_SK_DONE">Kaydet</text>
+ <text id="IDS_COM_BODY_APR">Nis.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 dk</text>
+ <text id="IDS_COM_BODY_MAY">Mayıs</text>
+ <text id="IDS_ALM_BODY_NAME">İsim</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Titreşim</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">DST ayarları</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Duraklatma süresi</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 alarm seçildi</text>
+ <text id="IDS_ALM_BODY_MELODY">Melodi</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Her Cuma</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Yeniden düzenle</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Her Çarşamba</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Süre doldu</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Şehir eklenemiyor. Dünya Saati listesi dolu. Önce bazı öğeleri silin</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Sırala</text>
+ <text id="IDS_TMR_BODY_SEC">sn</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 kez</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Kronometre</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Çalmayı durdur</text>
+ <text id="IDS_TMR_BODY_HOUR">Saat</text>
+ <text id="IDS_COM_BODY_JAN">Oca.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Dünya Saati</text>
+ <text id="IDS_COM_BODY_SEP">Eyl.</text>
+ <text id="IDS_COM_BODY_AUG">Ağu.</text>
+ <text id="IDS_TMR_SK_START">Başlat</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Her Salı</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Alarm</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Diğer</text>
+ <text id="IDS_COM_BODY_TIMER">Zamanlayıcı</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Zaman aşımı alarmı</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Duraklatma tekrarı</text>
+ <text id="IDS_COM_BODY_SEARCH">Buluyor</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Alarmları seç</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Her Cumartesi</text>
+ <text id="IDS_SWT_BUTTON_RESET">Sıfırla</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d şehir seçildi</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Her gün</text>
+ <text id="IDS_ALM_BODY_10MINS">10 dk</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DST iptal</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 dk</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Her Perşembe</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Süre sona erdi</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d alarm seçildi</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d kere</text>
+ <text id="IDS_COM_POP_DELETED">Silindi</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 kez</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Hiç arama sonucu bulunamadı</text>
+ <text id="IDS_SWT_BUTTON_LAP">Tur</text>
+ <text id="IDS_COM_SK_ADD">Ekle</text>
+ <text id="IDS_ALM_BODY_TONE">Ton</text>
+ <text id="IDS_TMR_SK_RESET">Sıfırla</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tür</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Melodi</text>
+ <text id="IDS_COM_BUTTON_RECENT">Yakın</text>
+ <text id="IDS_TMR_BODY_MIN">dk</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 şehir seçildi</text>
+ <text id="IDS_COM_BODY_OCT">Eki.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Ada göre</text>
+ <text id="IDS_ALM_SK_DELETE">Sil</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Her Pazar</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Öğe yok</text>
+ <text id="IDS_COM_BODY_FEB">Şub.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Мелодія та вібрація</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Часовий пояс</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 разів</text>
+ <text id="IDS_COM_BODY_NOV">Лис</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Вибране</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Вибрати часовий пояс</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Вибрати всі</text>
+ <text id="IDS_NOTHING_SELECTED">Нічого не вибрано</text>
+ <text id="IDS_COM_BODY_DEC">Гру</text>
+ <text id="IDS_ALM_SK_CANCEL">Скасувати</text>
+ <text id="IDS_ALM_BODY_REPEAT">Повторити</text>
+ <text id="IDS_TMR_BODY_MIN1">хв.</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Немає будильників</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Немає об’єктів</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Щопонеділка</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Час</text>
+ <text id="IDS_COM_SK_NEW">Нове</text>
+ <text id="IDS_ALM_SK3_SAVE">Зберегти</text>
+ <text id="IDS_COM_BODY_JUN">Чер</text>
+ <text id="IDS_ALM_BODY_TIME">Час</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Пауза</text>
+ <text id="IDS_COM_BODY_JUL">Лип</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Перезапустити</text>
+ <text id="IDS_ALM_BODY_TYPE">Тип</text>
+ <text id="IDS_TMR_SK3_STOP">Стоп</text>
+ <text id="IDS_TMR_SK3_RESTART">Відновити</text>
+ <text id="IDS_WCL_SK_DONE">Готово</text>
+ <text id="IDS_COM_BODY_APR">Кві</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 хв.</text>
+ <text id="IDS_COM_BODY_MAY">Трав.</text>
+ <text id="IDS_ALM_BODY_NAME">Назва</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Вібрація</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Установки переходу на літній час</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Повторний сигнал через</text>
+ <text id="IDS_COM_BODY_MAR">бер</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">Вибрано 1 будильник</text>
+ <text id="IDS_ALM_BODY_MELODY">Мелодія</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Щоп’ятниці</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Упорядкувати</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Щосереди</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Час вичерпано</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Неможливо додати місто. Список світового часу заповнено. Спочатку видаліть деякі об’єкти</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Сортувати за</text>
+ <text id="IDS_TMR_BODY_SEC">сек.</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 рази</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Секундомір</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Зупинити дзвінок</text>
+ <text id="IDS_TMR_BODY_HOUR">Година</text>
+ <text id="IDS_COM_BODY_JAN">Січ</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Світовий час</text>
+ <text id="IDS_COM_BODY_SEP">Вер</text>
+ <text id="IDS_COM_BODY_AUG">Сер</text>
+ <text id="IDS_TMR_SK_START">Почати</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Щовівторка</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Будильник</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Більше</text>
+ <text id="IDS_COM_BODY_TIMER">Таймер</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Сигнал будильника після очікування</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Кількість повторень</text>
+ <text id="IDS_COM_BODY_SEARCH">Пошук</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Вибір будильника</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Щосуботи</text>
+ <text id="IDS_SWT_BUTTON_RESET">Скинути</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">Вибрано міст: %d</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Щодня</text>
+ <text id="IDS_ALM_BODY_10MINS">10 хв.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">Скасувати літній час</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 хв.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Щочетверга</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Час вичерпаний</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">Вибрано будильників: %d</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d разів</text>
+ <text id="IDS_COM_POP_DELETED">Видалено</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 разів</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Пошук не дав результатів</text>
+ <text id="IDS_SWT_BUTTON_LAP">Коло</text>
+ <text id="IDS_COM_SK_ADD">Додати</text>
+ <text id="IDS_ALM_BODY_TONE">Звук</text>
+ <text id="IDS_TMR_SK_RESET">Скинути</text>
+ <text id="IDS_ALM_HEADER_TYPE">Тип</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Мелодія</text>
+ <text id="IDS_COM_BUTTON_RECENT">Останні</text>
+ <text id="IDS_TMR_BODY_MIN">хв.</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">Вибрано 1 місто</text>
+ <text id="IDS_COM_BODY_OCT">Жов</text>
+ <text id="IDS_WCL_SK_BY_NAME">За іменем</text>
+ <text id="IDS_ALM_SK_DELETE">Видалити</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Щонеділі</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Немає об’єктів</text>
+ <text id="IDS_COM_BODY_FEB">Лют</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">Musiqa va vibratsiya</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">Vaqt mintaqasi</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 marta</text>
+ <text id="IDS_COM_BODY_NOV">Noy.</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d Tanlangan</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">Vaqt mintaqasini tanlash</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">Barchasini tanlash</text>
+ <text id="IDS_NOTHING_SELECTED">Hech narsa tanlanmagan</text>
+ <text id="IDS_COM_BODY_DEC">Dek.</text>
+ <text id="IDS_ALM_SK_CANCEL">Bekor q.</text>
+ <text id="IDS_ALM_BODY_REPEAT">Takrorlash</text>
+ <text id="IDS_TMR_BODY_MIN1">daq</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">Budilniklar yo‘q</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">Elementlar yo‘q</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">Har dushanba</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">Vaqt</text>
+ <text id="IDS_COM_SK_NEW">Yangi</text>
+ <text id="IDS_ALM_SK3_SAVE">Saqlash</text>
+ <text id="IDS_COM_BODY_JUN">Iyn.</text>
+ <text id="IDS_ALM_BODY_TIME">Vaqt</text>
+ <text id="IDS_ALM_BODY_SNOOZE">Pauza</text>
+ <text id="IDS_COM_BODY_JUL">Iyl.</text>
+ <text id="IDS_SWT_BUTTON_RESTART">Qay/yuklash</text>
+ <text id="IDS_ALM_BODY_TYPE">Tur</text>
+ <text id="IDS_TMR_SK3_STOP">To‘xtatish</text>
+ <text id="IDS_TMR_SK3_RESTART">Qayta yuklash</text>
+ <text id="IDS_WCL_SK_DONE">Bajarildi</text>
+ <text id="IDS_COM_BODY_APR">Apr.</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 daq.</text>
+ <text id="IDS_COM_BODY_MAY">May</text>
+ <text id="IDS_ALM_BODY_NAME">Nom</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">Vibratsiya</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">Yozgi vaqt parametrlari</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">Pauza davomiyligi</text>
+ <text id="IDS_COM_BODY_MAR">Mar.</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">1 signal tanlandi</text>
+ <text id="IDS_ALM_BODY_MELODY">Musiqa</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">Har juma</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">Qayta saralash</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">Har chorshanba</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">Vaqt bo‘ldi</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">Shahar qo‘shib bo‘lmaydi. Xalqaro soatlar ro‘yxati to‘la. Avval ba’zi elementlarni o'chiring</text>
+ <text id="IDS_ALM_OPT_SORT_BY">Saralash</text>
+ <text id="IDS_TMR_BODY_SEC">soniya</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 marta</text>
+ <text id="IDS_COM_BODY_STOPWATCH">Stop-soat</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">Qo‘ng‘iroq chalinishini to‘xtatish</text>
+ <text id="IDS_TMR_BODY_HOUR">Soat</text>
+ <text id="IDS_COM_BODY_JAN">Yan.</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">Xalqaro soat</text>
+ <text id="IDS_COM_BODY_SEP">Sen.</text>
+ <text id="IDS_COM_BODY_AUG">Avg.</text>
+ <text id="IDS_TMR_SK_START">Boshlash</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">Har seshanba</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">Signal</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">Ko‘proq</text>
+ <text id="IDS_COM_BODY_TIMER">Taymer</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">Taym-aut signali</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">Keyinroq takrorlash</text>
+ <text id="IDS_COM_BODY_SEARCH">Qidirish</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">Budilniklarni tanlash</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">Har shanba</text>
+ <text id="IDS_SWT_BUTTON_RESET">Tashlash</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">%d shahar tanlangan</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">Har kun</text>
+ <text id="IDS_ALM_BODY_10MINS">10 daq.</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">DSTni bekor qilish</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 daq.</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">Har payshanba</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">Taym-aut</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">%d signal tanlangan</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d marta</text>
+ <text id="IDS_COM_POP_DELETED">O'chirildi</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 marta</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">Qidirish natijalari yo‘q</text>
+ <text id="IDS_SWT_BUTTON_LAP">Aylana</text>
+ <text id="IDS_COM_SK_ADD">Qo‘shish</text>
+ <text id="IDS_ALM_BODY_TONE">Ohang</text>
+ <text id="IDS_TMR_SK_RESET">Qay. o'r.</text>
+ <text id="IDS_ALM_HEADER_TYPE">Tur</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">Musiqa</text>
+ <text id="IDS_COM_BUTTON_RECENT">Oxirgi</text>
+ <text id="IDS_TMR_BODY_MIN">daq</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">1 shahar tanlangan</text>
+ <text id="IDS_COM_BODY_OCT">Okt.</text>
+ <text id="IDS_WCL_SK_BY_NAME">Nom bo‘y.</text>
+ <text id="IDS_ALM_SK_DELETE">O'chirish</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">Har yakshanba</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">Elementlar yo‘q</text>
+ <text id="IDS_COM_BODY_FEB">Fev.</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">乐曲并振动</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">时区</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 次</text>
+ <text id="IDS_COM_BODY_NOV">11 月</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d 已选择</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">选择时区</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">全选</text>
+ <text id="IDS_NOTHING_SELECTED">未选择</text>
+ <text id="IDS_COM_BODY_DEC">12 月</text>
+ <text id="IDS_ALM_SK_CANCEL">取消</text>
+ <text id="IDS_ALM_BODY_REPEAT">重复</text>
+ <text id="IDS_TMR_BODY_MIN1">分钟</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">无闹钟</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">无项目</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">每周一</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">时间</text>
+ <text id="IDS_COM_SK_NEW">新建</text>
+ <text id="IDS_ALM_SK3_SAVE">保存</text>
+ <text id="IDS_COM_BODY_JUN">6 月</text>
+ <text id="IDS_ALM_BODY_TIME">时间</text>
+ <text id="IDS_ALM_BODY_SNOOZE">多睡一会</text>
+ <text id="IDS_COM_BODY_JUL">7 月</text>
+ <text id="IDS_SWT_BUTTON_RESTART">重新启动</text>
+ <text id="IDS_ALM_BODY_TYPE">类型</text>
+ <text id="IDS_TMR_SK3_STOP">停止</text>
+ <text id="IDS_TMR_SK3_RESTART">重新启动</text>
+ <text id="IDS_WCL_SK_DONE">完成</text>
+ <text id="IDS_COM_BODY_APR">4 月</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5 分钟</text>
+ <text id="IDS_COM_BODY_MAY">5月</text>
+ <text id="IDS_ALM_BODY_NAME">名称</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">振动</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">夏时制设置</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">多睡一会儿持续时间</text>
+ <text id="IDS_COM_BODY_MAR">3 月</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">已选择1个闹钟</text>
+ <text id="IDS_ALM_BODY_MELODY">乐曲</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">每周五</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">重新排序</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">每周三</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">时间到</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">无法添加城市。世界时间列表已满。请先删除部分项目</text>
+ <text id="IDS_ALM_OPT_SORT_BY">排序方式</text>
+ <text id="IDS_TMR_BODY_SEC">秒</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 次</text>
+ <text id="IDS_COM_BODY_STOPWATCH">秒表</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">停止铃声</text>
+ <text id="IDS_TMR_BODY_HOUR">小时</text>
+ <text id="IDS_COM_BODY_JAN">1 月</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">世界时间</text>
+ <text id="IDS_COM_BODY_SEP">9月</text>
+ <text id="IDS_COM_BODY_AUG">8 月</text>
+ <text id="IDS_TMR_SK_START">开始</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">每周二</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">闹钟</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">更多</text>
+ <text id="IDS_COM_BODY_TIMER">计时器</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">倒计时</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">多睡一会次数</text>
+ <text id="IDS_COM_BODY_SEARCH">搜索</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">选择闹钟</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">每周六</text>
+ <text id="IDS_SWT_BUTTON_RESET">重置</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">已选择%d个城市</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">每日</text>
+ <text id="IDS_ALM_BODY_10MINS">10 分钟</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">取消夏时制</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 分钟</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">每周四</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">超时</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">已选择%d个闹钟</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d 次</text>
+ <text id="IDS_COM_POP_DELETED">已删除</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 次</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">无搜索结果</text>
+ <text id="IDS_SWT_BUTTON_LAP">圈</text>
+ <text id="IDS_COM_SK_ADD">添加</text>
+ <text id="IDS_ALM_BODY_TONE">提示音</text>
+ <text id="IDS_TMR_SK_RESET">重置</text>
+ <text id="IDS_ALM_HEADER_TYPE">类型</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">乐曲</text>
+ <text id="IDS_COM_BUTTON_RECENT">最近</text>
+ <text id="IDS_TMR_BODY_MIN">分钟</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">已选择1个城市</text>
+ <text id="IDS_COM_BODY_OCT">10 月</text>
+ <text id="IDS_WCL_SK_BY_NAME">按名称</text>
+ <text id="IDS_ALM_SK_DELETE">删除</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">每周日</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">无项目</text>
+ <text id="IDS_COM_BODY_FEB">2 月</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">響鈴和震動</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">時區</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 次</text>
+ <text id="IDS_COM_BODY_NOV">11 月</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d 已選擇</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">選擇時區</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">選擇全部</text>
+ <text id="IDS_NOTHING_SELECTED">無已選擇項目</text>
+ <text id="IDS_COM_BODY_DEC">12 月</text>
+ <text id="IDS_ALM_SK_CANCEL">取消</text>
+ <text id="IDS_ALM_BODY_REPEAT">重複</text>
+ <text id="IDS_TMR_BODY_MIN1">分鐘</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">無鬧鐘</text>
+ <text id="IDS_COM_BODY_AM">上午</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">無項目</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">逢星期一</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">時間</text>
+ <text id="IDS_COM_SK_NEW">新增</text>
+ <text id="IDS_ALM_SK3_SAVE">儲存</text>
+ <text id="IDS_COM_BODY_JUN">6 月</text>
+ <text id="IDS_ALM_BODY_TIME">時間</text>
+ <text id="IDS_ALM_BODY_SNOOZE">重響</text>
+ <text id="IDS_COM_BODY_JUL">7 月</text>
+ <text id="IDS_SWT_BUTTON_RESTART">重新啟動</text>
+ <text id="IDS_ALM_BODY_TYPE">類型</text>
+ <text id="IDS_TMR_SK3_STOP">停止</text>
+ <text id="IDS_TMR_SK3_RESTART">重新啟動</text>
+ <text id="IDS_WCL_SK_DONE">完成</text>
+ <text id="IDS_COM_BODY_APR">4 月</text>
+ <text id="IDS_COM_POP_PM">下午</text>
+ <text id="IDS_ALM_BODY_5MINS">5 分鐘</text>
+ <text id="IDS_COM_BODY_MAY">5 月</text>
+ <text id="IDS_ALM_BODY_NAME">名稱</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">震動</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">夏令時間設定</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">重響持續時間</text>
+ <text id="IDS_COM_BODY_MAR">3 月</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">已選擇 1 個提醒</text>
+ <text id="IDS_ALM_BODY_MELODY">鈴聲</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">逢星期五</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">重新排序</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">逢星期三</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">時間到了</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">無法加入城市。世界時間列表已滿。先刪除些項目</text>
+ <text id="IDS_ALM_OPT_SORT_BY">排序方式</text>
+ <text id="IDS_TMR_BODY_SEC">秒</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 次</text>
+ <text id="IDS_COM_BODY_STOPWATCH">計秒錶</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">停止鈴響</text>
+ <text id="IDS_TMR_BODY_HOUR">小時</text>
+ <text id="IDS_COM_BODY_JAN">1 月</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">世界時間</text>
+ <text id="IDS_COM_BODY_SEP">9 月</text>
+ <text id="IDS_COM_BODY_AUG">8 月</text>
+ <text id="IDS_TMR_SK_START">開始</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">逢星期二</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">鬧鐘</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">更多</text>
+ <text id="IDS_COM_BODY_TIMER">計時器</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">鬧鐘響鬧暫停</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">重覆</text>
+ <text id="IDS_COM_BODY_SEARCH">搜尋</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">選擇鬧鐘</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">逢星期六</text>
+ <text id="IDS_SWT_BUTTON_RESET">重設</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">已選擇 %d 城市</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">每日</text>
+ <text id="IDS_ALM_BODY_10MINS">10 分鐘</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">取消夏令時間</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 分鐘</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">逢星期四</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">逾時</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">已選擇 %d 個鬧鐘</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d 次</text>
+ <text id="IDS_COM_POP_DELETED">已刪除</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 次</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">無搜尋結果</text>
+ <text id="IDS_SWT_BUTTON_LAP">圈數</text>
+ <text id="IDS_COM_SK_ADD">加入</text>
+ <text id="IDS_ALM_BODY_TONE">提示音</text>
+ <text id="IDS_TMR_SK_RESET">重設</text>
+ <text id="IDS_ALM_HEADER_TYPE">類型</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">鈴聲</text>
+ <text id="IDS_COM_BUTTON_RECENT">最近</text>
+ <text id="IDS_TMR_BODY_MIN">分鐘</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">已選擇 1 城市</text>
+ <text id="IDS_COM_BODY_OCT">10 月</text>
+ <text id="IDS_WCL_SK_BY_NAME">按名稱</text>
+ <text id="IDS_ALM_SK_DELETE">刪除</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">逢星期日</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">無項目</text>
+ <text id="IDS_COM_BODY_FEB">2 月</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">乐曲并振动</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">时区</text>
+ <text id="IDS_ALM_BODY_10TIMES">10次</text>
+ <text id="IDS_COM_BODY_NOV">11月</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d 已选定</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">选择时区</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">全选</text>
+ <text id="IDS_NOTHING_SELECTED">未选择</text>
+ <text id="IDS_COM_BODY_DEC">12月</text>
+ <text id="IDS_ALM_SK_CANCEL">取消</text>
+ <text id="IDS_ALM_BODY_REPEAT">重复</text>
+ <text id="IDS_TMR_BODY_MIN1">分钟</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">无闹钟</text>
+ <text id="IDS_COM_BODY_AM">AM</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">无项目</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">每周一</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">时间</text>
+ <text id="IDS_COM_SK_NEW">新建</text>
+ <text id="IDS_ALM_SK3_SAVE">储存</text>
+ <text id="IDS_COM_BODY_JUN">6月</text>
+ <text id="IDS_ALM_BODY_TIME">时间</text>
+ <text id="IDS_ALM_BODY_SNOOZE">多睡一点</text>
+ <text id="IDS_COM_BODY_JUL">7月</text>
+ <text id="IDS_SWT_BUTTON_RESTART">重新启动</text>
+ <text id="IDS_ALM_BODY_TYPE">类型</text>
+ <text id="IDS_TMR_SK3_STOP">停止</text>
+ <text id="IDS_TMR_SK3_RESTART">重新启动</text>
+ <text id="IDS_WCL_SK_DONE">已完成</text>
+ <text id="IDS_COM_BODY_APR">4月</text>
+ <text id="IDS_COM_POP_PM">PM</text>
+ <text id="IDS_ALM_BODY_5MINS">5分钟</text>
+ <text id="IDS_COM_BODY_MAY">5月</text>
+ <text id="IDS_ALM_BODY_NAME">名称</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">振动</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">夏时制设置</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">重响时长</text>
+ <text id="IDS_COM_BODY_MAR">3月</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">已选择1个闹钟</text>
+ <text id="IDS_ALM_BODY_MELODY">旋律</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">每周五</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">重新排序</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">每周三</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">时间已到</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">无法添加城市。世界时钟列表已满。请先删除部分项目</text>
+ <text id="IDS_ALM_OPT_SORT_BY">排序通过</text>
+ <text id="IDS_TMR_BODY_SEC">秒</text>
+ <text id="IDS_ALM_BODY_3TIMES">3次</text>
+ <text id="IDS_COM_BODY_STOPWATCH">秒表</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">停止铃声</text>
+ <text id="IDS_TMR_BODY_HOUR">小时</text>
+ <text id="IDS_COM_BODY_JAN">1月</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">世界时钟</text>
+ <text id="IDS_COM_BODY_SEP">9月</text>
+ <text id="IDS_COM_BODY_AUG">8月</text>
+ <text id="IDS_TMR_SK_START">开始</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">每周二</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">闹钟</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">更多</text>
+ <text id="IDS_COM_BODY_TIMER">计时器</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">暂停闹钟</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">重响方式</text>
+ <text id="IDS_COM_BODY_SEARCH">搜寻</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">选择闹钟</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">每周六</text>
+ <text id="IDS_SWT_BUTTON_RESET">重置</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">已选择%d个城市</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">每日</text>
+ <text id="IDS_ALM_BODY_10MINS">10分钟</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">取消 DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3分钟</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">每周四</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">暂停</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">已选择%d个闹钟</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d 次</text>
+ <text id="IDS_COM_POP_DELETED">已删除</text>
+ <text id="IDS_ALM_BODY_5TIMES">5次</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">无搜索结果</text>
+ <text id="IDS_SWT_BUTTON_LAP">圈</text>
+ <text id="IDS_COM_SK_ADD">添加</text>
+ <text id="IDS_ALM_BODY_TONE">提示音</text>
+ <text id="IDS_TMR_SK_RESET">重置</text>
+ <text id="IDS_ALM_HEADER_TYPE">类型</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">旋律</text>
+ <text id="IDS_COM_BUTTON_RECENT">最近联系人</text>
+ <text id="IDS_TMR_BODY_MIN">分钟</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">已选择1个城市</text>
+ <text id="IDS_COM_BODY_OCT">10月</text>
+ <text id="IDS_WCL_SK_BY_NAME">按名称</text>
+ <text id="IDS_ALM_SK_DELETE">删除</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">每周日</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">无项目</text>
+ <text id="IDS_COM_BODY_FEB">2月</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201308220944" Dversion="20120315">
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION">旋律與震動</text>
+ <text id="IDS_WCL_BODY_TIME_ZONE">時區</text>
+ <text id="IDS_ALM_BODY_10TIMES">10 次</text>
+ <text id="IDS_COM_BODY_NOV">11 月</text>
+ <text id="IDS_COM_BODY_PD_SELECTED">%d 已選擇</text>
+ <text id="IDS_WCL_HEADER_SELECT_TIME_ZONE">選擇時區</text>
+ <text id="IDS_COM_BODY_SELECT_ALL">全選</text>
+ <text id="IDS_NOTHING_SELECTED">未選擇任何項目</text>
+ <text id="IDS_COM_BODY_DEC">12 月</text>
+ <text id="IDS_ALM_SK_CANCEL">取消</text>
+ <text id="IDS_ALM_BODY_REPEAT">重覆</text>
+ <text id="IDS_TMR_BODY_MIN1">分鐘</text>
+ <text id="IDS_ALM_BODY_NO_ALARMS">無鬧鐘</text>
+ <text id="IDS_COM_BODY_AM">上午</text>
+ <text id="IDS_COM_SK_CREATE_ALARM">Create alarm</text>
+ <text id="IDS_NO_ITEMS">無項目</text>
+ <text id="IDS_ALM_BODY_EVERY_MONDAY">每週一</text>
+ <text id="IDS_COM_BODY_JULY">July</text>
+ <text id="IDS_WCL_TAB_TIME">時間</text>
+ <text id="IDS_COM_SK_NEW">新增</text>
+ <text id="IDS_ALM_SK3_SAVE">儲存</text>
+ <text id="IDS_COM_BODY_JUN">6 月</text>
+ <text id="IDS_ALM_BODY_TIME">時間</text>
+ <text id="IDS_ALM_BODY_SNOOZE">貪睡</text>
+ <text id="IDS_COM_BODY_JUL">7 月</text>
+ <text id="IDS_SWT_BUTTON_RESTART">重新啟動</text>
+ <text id="IDS_ALM_BODY_TYPE">類型</text>
+ <text id="IDS_TMR_SK3_STOP">停止</text>
+ <text id="IDS_TMR_SK3_RESTART">重新啟動</text>
+ <text id="IDS_WCL_SK_DONE">完成</text>
+ <text id="IDS_COM_BODY_APR">4 月</text>
+ <text id="IDS_COM_POP_PM">下午</text>
+ <text id="IDS_ALM_BODY_5MINS">5 分鐘</text>
+ <text id="IDS_COM_BODY_MAY">5 月</text>
+ <text id="IDS_ALM_BODY_NAME">名稱</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_VIBRATION">震動</text>
+ <text id="IDS_WCL_OPT_DST_SETTINGS">日光節約設定</text>
+ <text id="IDS_ALM_BODY_SNOOZE_DURATION">貪睡持續時間</text>
+ <text id="IDS_COM_BODY_MAR">3 月</text>
+ <text id="IDS_ALM_BODY_1_ALARM_SELECTED">已選擇 1 則提醒</text>
+ <text id="IDS_ALM_BODY_MELODY">旋律</text>
+ <text id="IDS_ALM_BODY_EVERY_FRIDAY">每週五</text>
+ <text id="IDS_WCL_SK_EDIT">Edit</text>
+ <text id="IDS_WCL_OPT_REORDER">重新排序</text>
+ <text id="IDS_ALM_BODY_EVERY_WEDNESDAY">每週三</text>
+ <text id="IDS_TMR_POP_TIME_IS_UP">時間已到</text>
+ <text id="IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST">無法增加城市。世界時間名單已滿。先刪除一些項目</text>
+ <text id="IDS_ALM_OPT_SORT_BY">排序依據</text>
+ <text id="IDS_TMR_BODY_SEC">秒</text>
+ <text id="IDS_ALM_BODY_3TIMES">3 次</text>
+ <text id="IDS_COM_BODY_STOPWATCH">碼錶</text>
+ <text id="IDS_TMR_BODY_STOP_RINGING">停止鈴響</text>
+ <text id="IDS_TMR_BODY_HOUR">小時</text>
+ <text id="IDS_COM_BODY_JAN">1 月</text>
+ <text id="IDS_COM_BODY_WORLD_CLOCK">世界時間</text>
+ <text id="IDS_COM_BODY_SEP">9 月</text>
+ <text id="IDS_COM_BODY_AUG">8 月</text>
+ <text id="IDS_TMR_SK_START">開始</text>
+ <text id="IDS_ALM_BODY_EVERY_TUESDAY">每週二</text>
+ <text id="IDS_ALM_SK_REMOVE">Remove</text>
+ <text id="IDS_COM_BODY_ALARM">鬧鐘</text>
+ <text id="IDS_BODY_WORLD_CLOCK_EXIST">World clock already exists</text>
+ <text id="IDS_COM_BODY_MORE">更多</text>
+ <text id="IDS_COM_BODY_TIMER">計時器</text>
+ <text id="IDS_TMR_BODY_TIME_OUT_ALARM">超時鬧鈴</text>
+ <text id="IDS_ALM_BODY_SNOOZE_REPEAT">貪睡鬧鐘重響</text>
+ <text id="IDS_COM_BODY_SEARCH">搜尋</text>
+ <text id="IDS_ALM_HEADER_SELECT_ALARMS">選擇提醒</text>
+ <text id="IDS_ALM_BODY_EVERY_SATURDAY">每週六</text>
+ <text id="IDS_SWT_BUTTON_RESET">重設</text>
+ <text id="IDS_WCL_POP_PD_CITIES_SELECTED">已選擇 %d 城市</text>
+ <text id="IDS_ALM_BODY_EVERYDAY">每日</text>
+ <text id="IDS_ALM_BODY_10MINS">10 分鐘</text>
+ <text id="IDS_WCL_BODY_CANCEL_DST">取消 DST</text>
+ <text id="IDS_MAX_CHARACTER_LIMIT_MESSAGE">Maximum number of characters reached.</text>
+ <text id="IDS_ALM_BODY_3MINS">3 分鐘</text>
+ <text id="IDS_ALM_BODY_EVERY_THURSDAY">每週四</text>
+ <text id="IDS_TMR_BODY_TIME_OUT">逾時</text>
+ <text id="IDS_WCL_REORDER">Reorder World Clock</text>
+ <text id="IDS_ALM_BODY_PD_ALARMS_SELECTED">已選擇 %d 提醒</text>
+ <text id="IDS_CLOCK_BODY_PD_TIMES">%d 次</text>
+ <text id="IDS_COM_POP_DELETED">已刪除</text>
+ <text id="IDS_ALM_BODY_5TIMES">5 次</text>
+ <text id="IDS_COM_SK_ADD_CITY">Add city</text>
+ <text id="IDS_COM_BODY_NO_SEARCH_RESULTS">無搜尋結果</text>
+ <text id="IDS_SWT_BUTTON_LAP">圈</text>
+ <text id="IDS_COM_SK_ADD">新增</text>
+ <text id="IDS_ALM_BODY_TONE">提示音</text>
+ <text id="IDS_TMR_SK_RESET">重設</text>
+ <text id="IDS_ALM_HEADER_TYPE">類型</text>
+ <text id="IDS_ALM_BODY_ALERTTYEP_MELODY">旋律</text>
+ <text id="IDS_COM_BUTTON_RECENT">最近</text>
+ <text id="IDS_TMR_BODY_MIN">分鐘</text>
+ <text id="IDS_MEMORY_FULL">Memory Storage Full</text>
+ <text id="IDS_WCL_POP_1_CITY_SELECTED">已選擇 1 城市</text>
+ <text id="IDS_COM_BODY_OCT">10 月</text>
+ <text id="IDS_WCL_SK_BY_NAME">按名稱</text>
+ <text id="IDS_ALM_SK_DELETE">刪除</text>
+ <text id="IDS_COM_BODY_JUNE">June</text>
+ <text id="IDS_ALM_BODY_EVERY_SUNDAY">每週日</text>
+ <text id="IDS_COM_BODY_NO_ITEMS">無項目</text>
+ <text id="IDS_COM_BODY_FEB">2 月</text>
+</string_table>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>PhYwYqDa1I</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Author/>
+ <Descriptions>
+ <Description Locale="eng-GB"/>
+ </Descriptions>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.core.cpu.arch">x86</Feature>
+ <Feature Name="http://tizen.org/feature/platform.core.fpu.arch">vfpv3</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>3.0</ApiVersion>
+ <Privileges>
+ <Privilege>http://tizen.org/privilege/alarm</Privilege>
+ <Privilege>http://tizen.org/privilege/application.launch</Privilege>
+ <Privilege>http://tizen.org/privilege/power</Privilege>
+ <Privilege>http://tizen.org/privilege/appmanager.launch</Privilege>
+ <Privilege>http://tizen.org/privilege/vibrator</Privilege>
+ </Privileges>
+ <UiApp Main="True" MenuIconVisible="True" Name="Clock">
+ <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">Clock-Ref</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" Type="Xhigh">mainmenu.png</Icon>
+ </Icons>
+ <LaunchConditions/>
+ <Notifications/>
+ </UiApp>
+ </Apps>
+</Manifest>
--- /dev/null
+#include "AppResourceId.h"
+
+const wchar_t* IDC_BUTTON = L"IDC_BUTTON";
+const wchar_t* IDC_BUTTON0 = L"IDC_BUTTON0";
+const wchar_t* IDC_BUTTON1 = L"IDC_BUTTON1";
+const wchar_t* IDC_BUTTON2 = L"IDC_BUTTON2";
+const wchar_t* IDC_BUTTON3 = L"IDC_BUTTON3";
+const wchar_t* IDC_BUTTON4 = L"IDC_BUTTON4";
+const wchar_t* IDC_BUTTON5 = L"IDC_BUTTON5";
+const wchar_t* IDC_BUTTON6 = L"IDC_BUTTON6";
+const wchar_t* IDC_BUTTON7 = L"IDC_BUTTON7";
+const wchar_t* IDC_BUTTON8 = L"IDC_BUTTON8";
+const wchar_t* IDC_BUTTON9 = L"IDC_BUTTON9";
+const wchar_t* IDC_BUTTON_CLR = L"IDC_BUTTON_CLR";
+const wchar_t* IDC_BUTTON_FRI = L"IDC_BUTTON_FRI";
+const wchar_t* IDC_BUTTON_HOUR = L"IDC_BUTTON_HOUR";
+const wchar_t* IDC_BUTTON_HOURS = L"IDC_BUTTON_HOURS";
+const wchar_t* IDC_BUTTON_HOUR_DISPLAY = L"IDC_BUTTON_HOUR_DISPLAY";
+const wchar_t* IDC_BUTTON_MIN = L"IDC_BUTTON_MIN";
+const wchar_t* IDC_BUTTON_MINUTES = L"IDC_BUTTON_MINUTES";
+const wchar_t* IDC_BUTTON_MINUTE_DISPLAY = L"IDC_BUTTON_MINUTE_DISPLAY";
+const wchar_t* IDC_BUTTON_MON = L"IDC_BUTTON_MON";
+const wchar_t* IDC_BUTTON_MORE = L"IDC_BUTTON_MORE";
+const wchar_t* IDC_BUTTON_RESET = L"IDC_BUTTON_RESET";
+const wchar_t* IDC_BUTTON_RESTART = L"IDC_BUTTON_RESTART";
+const wchar_t* IDC_BUTTON_SAT = L"IDC_BUTTON_SAT";
+const wchar_t* IDC_BUTTON_SECONDS = L"IDC_BUTTON_SECONDS";
+const wchar_t* IDC_BUTTON_SECOND_DISPLAY = L"IDC_BUTTON_SECOND_DISPLAY";
+const wchar_t* IDC_BUTTON_START = L"IDC_BUTTON_START";
+const wchar_t* IDC_BUTTON_STOP = L"IDC_BUTTON_STOP";
+const wchar_t* IDC_BUTTON_SUN = L"IDC_BUTTON_SUN";
+const wchar_t* IDC_BUTTON_THU = L"IDC_BUTTON_THU";
+const wchar_t* IDC_BUTTON_TOGGLE = L"IDC_BUTTON_TOGGLE";
+const wchar_t* IDC_BUTTON_TUE = L"IDC_BUTTON_TUE";
+const wchar_t* IDC_BUTTON_WED = L"IDC_BUTTON_WED";
+const wchar_t* IDC_CITY_LISTVIEW = L"IDC_CITY_LISTVIEW";
+const wchar_t* IDC_CITY_SEARCHBAR = L"IDC_CITY_SEARCHBAR";
+const wchar_t* IDC_EDITFIELD1 = L"IDC_EDITFIELD1";
+const wchar_t* IDC_EDITFIELD2 = L"IDC_EDITFIELD2";
+const wchar_t* IDC_EDITFIELD3 = L"IDC_EDITFIELD3";
+const wchar_t* IDC_GROUPEDLISTVIEW1 = L"IDC_GROUPEDLISTVIEW1";
+const wchar_t* IDC_INPUT_PANEL = L"IDC_INPUT_PANEL";
+const wchar_t* IDC_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_LABEL1 = L"IDC_LABEL1";
+const wchar_t* IDC_LABEL2 = L"IDC_LABEL2";
+const wchar_t* IDC_LABEL3 = L"IDC_LABEL3";
+const wchar_t* IDC_LABEL4 = L"IDC_LABEL4";
+const wchar_t* IDC_LABEL9 = L"IDC_LABEL9";
+const wchar_t* IDC_LABEL_AM = L"IDC_LABEL_AM";
+const wchar_t* IDC_LABEL_PM = L"IDC_LABEL_PM";
+const wchar_t* IDC_LABEL_TIMER = L"IDC_LABEL_TIMER";
+const wchar_t* IDC_LABEL_TITLE = L"IDC_LABEL_TITLE";
+const wchar_t* IDC_LISTVIEW1 = L"IDC_LISTVIEW1";
+const wchar_t* IDC_LISTVIEW_ALARM = L"IDC_LISTVIEW_ALARM";
+const wchar_t* IDC_LISTVIEW_WORLD_CLOCK = L"IDC_LISTVIEW_WORLD_CLOCK";
+const wchar_t* IDC_PANEL = L"IDC_PANEL";
+const wchar_t* IDC_PANEL1 = L"IDC_PANEL1";
+const wchar_t* IDC_PANEL_DAYS = L"IDC_PANEL_DAYS";
+const wchar_t* IDC_PANEL_EDITTIME = L"IDC_PANEL_EDITTIME";
+const wchar_t* IDC_PANEL_LIST = L"IDC_PANEL_LIST";
+const wchar_t* IDC_PANEL_TIMER_STARTED = L"IDC_PANEL_TIMER_STARTED";
+const wchar_t* IDC_POPUP_LIST = L"IDC_POPUP_LIST";
+const wchar_t* IDC_SCROLLPANEL1 = L"IDC_SCROLLPANEL1";
+const wchar_t* IDC_SELECT_ALL = L"IDC_SELECT_ALL";
+const wchar_t* IDC_SETTING_LIST = L"IDC_SETTING_LIST";
+const wchar_t* IDC_SLIDER_VOLUME = L"IDC_SLIDER_VOLUME";
+const wchar_t* IDC_SNOOZE_ARROW_LABEL1 = L"IDC_SNOOZE_ARROW_LABEL1";
+const wchar_t* IDC_SNOOZE_ARROW_LABEL2 = L"IDC_SNOOZE_ARROW_LABEL2";
+const wchar_t* IDC_SNOOZE_ARROW_LABEL3 = L"IDC_SNOOZE_ARROW_LABEL3";
+const wchar_t* IDC_SNOOZE_LABEL = L"IDC_SNOOZE_LABEL";
+const wchar_t* IDC_SNOOZE_PANEL = L"IDC_SNOOZE_PANEL";
+const wchar_t* IDC_STOP_ARROW_LABEL1 = L"IDC_STOP_ARROW_LABEL1";
+const wchar_t* IDC_STOP_ARROW_LABEL2 = L"IDC_STOP_ARROW_LABEL2";
+const wchar_t* IDC_STOP_ARROW_LABEL3 = L"IDC_STOP_ARROW_LABEL3";
+const wchar_t* IDC_STOP_LABEL = L"IDC_STOP_LABEL";
+const wchar_t* IDC_STOP_PANEL = L"IDC_STOP_PANEL";
+const wchar_t* IDC_TIMER_PANEL = L"IDC_TIMER_PANEL";
+const wchar_t* IDL_ALARM_EDITOR_FORM = L"IDL_ALARM_EDITOR_FORM";
+const wchar_t* IDL_ALARM_LIST = L"IDL_ALARM_LIST";
+const wchar_t* IDL_ALARM_RINGING_FORM = L"IDL_ALARM_RINGING_FORM";
+const wchar_t* IDL_ALARM_RINGING_LOCK_FORM = L"IDL_ALARM_RINGING_LOCK_FORM";
+const wchar_t* IDL_ALARM_RINGING_LOCK_PANEL = L"IDL_ALARM_RINGING_LOCK_PANEL";
+const wchar_t* IDL_CITY_LIST = L"IDL_CITY_LIST";
+const wchar_t* IDL_DELETE_ALARM_LIST = L"IDL_DELETE_ALARM_LIST";
+const wchar_t* IDL_DELETE_WORLD_CLOCK_LIST = L"IDL_DELETE_WORLD_CLOCK_LIST";
+const wchar_t* IDL_DST_POPUP = L"IDL_DST_POPUP";
+const wchar_t* IDL_REORDER_WORLD_CLOCK_LIST = L"IDL_REORDER_WORLD_CLOCK_LIST";
+const wchar_t* IDL_SORT_BY = L"IDL_SORT_BY";
+const wchar_t* IDL_STOP_WATCH = L"IDL_STOP_WATCH";
+const wchar_t* IDL_TIMER = L"IDL_TIMER";
+const wchar_t* IDL_TIMER_RINGING_FORM = L"IDL_TIMER_RINGING_FORM";
+const wchar_t* IDL_TIMER_RINGING_LOCK_FORM = L"IDL_TIMER_RINGING_LOCK_FORM";
+const wchar_t* IDL_WORLD_CLOCK_LIST = L"IDL_WORLD_CLOCK_LIST";
+const wchar_t* IDS_ALM_BODY_10MINS = L"IDS_ALM_BODY_10MINS";
+const wchar_t* IDS_ALM_BODY_10TIMES = L"IDS_ALM_BODY_10TIMES";
+const wchar_t* IDS_ALM_BODY_1_ALARM_SELECTED = L"IDS_ALM_BODY_1_ALARM_SELECTED";
+const wchar_t* IDS_ALM_BODY_3MINS = L"IDS_ALM_BODY_3MINS";
+const wchar_t* IDS_ALM_BODY_3TIMES = L"IDS_ALM_BODY_3TIMES";
+const wchar_t* IDS_ALM_BODY_5MINS = L"IDS_ALM_BODY_5MINS";
+const wchar_t* IDS_ALM_BODY_5TIMES = L"IDS_ALM_BODY_5TIMES";
+const wchar_t* IDS_ALM_BODY_ALERTTYEP_MELODY = L"IDS_ALM_BODY_ALERTTYEP_MELODY";
+const wchar_t* IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION = L"IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION";
+const wchar_t* IDS_ALM_BODY_ALERTTYEP_VIBRATION = L"IDS_ALM_BODY_ALERTTYEP_VIBRATION";
+const wchar_t* IDS_ALM_BODY_EVERYDAY = L"IDS_ALM_BODY_EVERYDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_FRIDAY = L"IDS_ALM_BODY_EVERY_FRIDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_MONDAY = L"IDS_ALM_BODY_EVERY_MONDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_SATURDAY = L"IDS_ALM_BODY_EVERY_SATURDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_SUNDAY = L"IDS_ALM_BODY_EVERY_SUNDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_THURSDAY = L"IDS_ALM_BODY_EVERY_THURSDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_TUESDAY = L"IDS_ALM_BODY_EVERY_TUESDAY";
+const wchar_t* IDS_ALM_BODY_EVERY_WEDNESDAY = L"IDS_ALM_BODY_EVERY_WEDNESDAY";
+const wchar_t* IDS_ALM_BODY_MELODY = L"IDS_ALM_BODY_MELODY";
+const wchar_t* IDS_ALM_BODY_NAME = L"IDS_ALM_BODY_NAME";
+const wchar_t* IDS_ALM_BODY_NO_ALARMS = L"IDS_ALM_BODY_NO_ALARMS";
+const wchar_t* IDS_ALM_BODY_PD_ALARMS_SELECTED = L"IDS_ALM_BODY_PD_ALARMS_SELECTED";
+const wchar_t* IDS_ALM_BODY_REPEAT = L"IDS_ALM_BODY_REPEAT";
+const wchar_t* IDS_ALM_BODY_SNOOZE = L"IDS_ALM_BODY_SNOOZE";
+const wchar_t* IDS_ALM_BODY_SNOOZE_DURATION = L"IDS_ALM_BODY_SNOOZE_DURATION";
+const wchar_t* IDS_ALM_BODY_SNOOZE_REPEAT = L"IDS_ALM_BODY_SNOOZE_REPEAT";
+const wchar_t* IDS_ALM_BODY_TIME = L"IDS_ALM_BODY_TIME";
+const wchar_t* IDS_ALM_BODY_TONE = L"IDS_ALM_BODY_TONE";
+const wchar_t* IDS_ALM_BODY_TYPE = L"IDS_ALM_BODY_TYPE";
+const wchar_t* IDS_ALM_HEADER_SELECT_ALARMS = L"IDS_ALM_HEADER_SELECT_ALARMS";
+const wchar_t* IDS_ALM_HEADER_TYPE = L"IDS_ALM_HEADER_TYPE";
+const wchar_t* IDS_ALM_OPT_SORT_BY = L"IDS_ALM_OPT_SORT_BY";
+const wchar_t* IDS_ALM_SK3_SAVE = L"IDS_ALM_SK3_SAVE";
+const wchar_t* IDS_ALM_SK_CANCEL = L"IDS_ALM_SK_CANCEL";
+const wchar_t* IDS_ALM_SK_DELETE = L"IDS_ALM_SK_DELETE";
+const wchar_t* IDS_ALM_SK_REMOVE = L"IDS_ALM_SK_REMOVE";
+const wchar_t* IDS_BODY_WORLD_CLOCK_EXIST = L"IDS_BODY_WORLD_CLOCK_EXIST";
+const wchar_t* IDS_CLOCK_BODY_PD_TIMES = L"IDS_CLOCK_BODY_PD_TIMES";
+const wchar_t* IDS_COM_BODY_ALARM = L"IDS_COM_BODY_ALARM";
+const wchar_t* IDS_COM_BODY_AM = L"IDS_COM_BODY_AM";
+const wchar_t* IDS_COM_BODY_APR = L"IDS_COM_BODY_APR";
+const wchar_t* IDS_COM_BODY_AUG = L"IDS_COM_BODY_AUG";
+const wchar_t* IDS_COM_BODY_DEC = L"IDS_COM_BODY_DEC";
+const wchar_t* IDS_COM_BODY_FEB = L"IDS_COM_BODY_FEB";
+const wchar_t* IDS_COM_BODY_JAN = L"IDS_COM_BODY_JAN";
+const wchar_t* IDS_COM_BODY_JUL = L"IDS_COM_BODY_JUL";
+const wchar_t* IDS_COM_BODY_JULY = L"IDS_COM_BODY_JULY";
+const wchar_t* IDS_COM_BODY_JUN = L"IDS_COM_BODY_JUN";
+const wchar_t* IDS_COM_BODY_JUNE = L"IDS_COM_BODY_JUNE";
+const wchar_t* IDS_COM_BODY_MAR = L"IDS_COM_BODY_MAR";
+const wchar_t* IDS_COM_BODY_MAY = L"IDS_COM_BODY_MAY";
+const wchar_t* IDS_COM_BODY_MORE = L"IDS_COM_BODY_MORE";
+const wchar_t* IDS_COM_BODY_NOV = L"IDS_COM_BODY_NOV";
+const wchar_t* IDS_COM_BODY_NO_ITEMS = L"IDS_COM_BODY_NO_ITEMS";
+const wchar_t* IDS_COM_BODY_NO_SEARCH_RESULTS = L"IDS_COM_BODY_NO_SEARCH_RESULTS";
+const wchar_t* IDS_COM_BODY_OCT = L"IDS_COM_BODY_OCT";
+const wchar_t* IDS_COM_BODY_PD_SELECTED = L"IDS_COM_BODY_PD_SELECTED";
+const wchar_t* IDS_COM_BODY_SEARCH = L"IDS_COM_BODY_SEARCH";
+const wchar_t* IDS_COM_BODY_SELECT_ALL = L"IDS_COM_BODY_SELECT_ALL";
+const wchar_t* IDS_COM_BODY_SEP = L"IDS_COM_BODY_SEP";
+const wchar_t* IDS_COM_BODY_STOPWATCH = L"IDS_COM_BODY_STOPWATCH";
+const wchar_t* IDS_COM_BODY_TIMER = L"IDS_COM_BODY_TIMER";
+const wchar_t* IDS_COM_BODY_WORLD_CLOCK = L"IDS_COM_BODY_WORLD_CLOCK";
+const wchar_t* IDS_COM_BUTTON_RECENT = L"IDS_COM_BUTTON_RECENT";
+const wchar_t* IDS_COM_POP_DELETED = L"IDS_COM_POP_DELETED";
+const wchar_t* IDS_COM_POP_PM = L"IDS_COM_POP_PM";
+const wchar_t* IDS_COM_SK_ADD = L"IDS_COM_SK_ADD";
+const wchar_t* IDS_COM_SK_ADD_CITY = L"IDS_COM_SK_ADD_CITY";
+const wchar_t* IDS_COM_SK_CREATE_ALARM = L"IDS_COM_SK_CREATE_ALARM";
+const wchar_t* IDS_COM_SK_NEW = L"IDS_COM_SK_NEW";
+const wchar_t* IDS_MAX_CHARACTER_LIMIT_MESSAGE = L"IDS_MAX_CHARACTER_LIMIT_MESSAGE";
+const wchar_t* IDS_MEMORY_FULL = L"IDS_MEMORY_FULL";
+const wchar_t* IDS_MERMORY_FULL = L"IDS_MERMORY_FULL";
+const wchar_t* IDS_NOTHING_SELECTED = L"IDS_NOTHING_SELECTED";
+const wchar_t* IDS_NO_ITEMS = L"IDS_NO_ITEMS";
+const wchar_t* IDS_STRING1 = L"IDS_STRING1";
+const wchar_t* IDS_SWT_BUTTON_LAP = L"IDS_SWT_BUTTON_LAP";
+const wchar_t* IDS_SWT_BUTTON_RESET = L"IDS_SWT_BUTTON_RESET";
+const wchar_t* IDS_SWT_BUTTON_RESTART = L"IDS_SWT_BUTTON_RESTART";
+const wchar_t* IDS_TMR_BODY_HOUR = L"IDS_TMR_BODY_HOUR";
+const wchar_t* IDS_TMR_BODY_MIN = L"IDS_TMR_BODY_MIN";
+const wchar_t* IDS_TMR_BODY_MIN1 = L"IDS_TMR_BODY_MIN1";
+const wchar_t* IDS_TMR_BODY_SEC = L"IDS_TMR_BODY_SEC";
+const wchar_t* IDS_TMR_BODY_STOP_RINGING = L"IDS_TMR_BODY_STOP_RINGING";
+const wchar_t* IDS_TMR_BODY_TIME_OUT = L"IDS_TMR_BODY_TIME_OUT";
+const wchar_t* IDS_TMR_BODY_TIME_OUT_ALARM = L"IDS_TMR_BODY_TIME_OUT_ALARM";
+const wchar_t* IDS_TMR_POP_TIME_IS_UP = L"IDS_TMR_POP_TIME_IS_UP";
+const wchar_t* IDS_TMR_SK3_RESTART = L"IDS_TMR_SK3_RESTART";
+const wchar_t* IDS_TMR_SK3_STOP = L"IDS_TMR_SK3_STOP";
+const wchar_t* IDS_TMR_SK_RESET = L"IDS_TMR_SK_RESET";
+const wchar_t* IDS_TMR_SK_START = L"IDS_TMR_SK_START";
+const wchar_t* IDS_WCL_BODY_CANCEL_DST = L"IDS_WCL_BODY_CANCEL_DST";
+const wchar_t* IDS_WCL_BODY_TIME_ZONE = L"IDS_WCL_BODY_TIME_ZONE";
+const wchar_t* IDS_WCL_HEADER_SELECT_TIME_ZONE = L"IDS_WCL_HEADER_SELECT_TIME_ZONE";
+const wchar_t* IDS_WCL_OPT_DST_SETTINGS = L"IDS_WCL_OPT_DST_SETTINGS";
+const wchar_t* IDS_WCL_OPT_REORDER = L"IDS_WCL_OPT_REORDER";
+const wchar_t* IDS_WCL_POP_1_CITY_SELECTED = L"IDS_WCL_POP_1_CITY_SELECTED";
+const wchar_t* IDS_WCL_POP_PD_CITIES_SELECTED = L"IDS_WCL_POP_PD_CITIES_SELECTED";
+const wchar_t* IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST = L"IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST";
+const wchar_t* IDS_WCL_REORDER = L"IDS_WCL_REORDER";
+const wchar_t* IDS_WCL_SK_BY_NAME = L"IDS_WCL_SK_BY_NAME";
+const wchar_t* IDS_WCL_SK_DONE = L"IDS_WCL_SK_DONE";
+const wchar_t* IDS_WCL_SK_EDIT = L"IDS_WCL_SK_EDIT";
+const wchar_t* IDS_WCL_TAB_TIME = L"IDS_WCL_TAB_TIME";
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarm.cpp
+ * @brief Used to define %Alarm class.
+ */
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+
+#include "ClkAlarm.h"
+#include "ClkAlarmPresentationModel.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Locales;
+
+AlarmData::AlarmData(void)
+ : __alarmId(0)
+ , __alarmName("")
+ , __isOn(0)
+ , __repeatEveryFriday(false)
+ , __repeatEveryMonday(false)
+ , __repeatEverySaturday(false)
+ , __repeatEverySunday(false)
+ , __repeatEveryThursday(false)
+ , __repeatEveryTuesday(false)
+ , __repeatEveryWednesday(false)
+ , __repeatFlags("")
+ , __ringType(ALARM_TYPE_MELODY)
+ , __ringVolume(0)
+ , __snoozeDuration(5)
+ , __snoozeOn(true)
+ , __snoozeRepeat(3)
+ , __snoozeRepeatCount(0)
+
+{
+ __time.SetValue(00, 00, 00);
+ __lastRingingTime.SetValue(00, 00, 00);
+ __ringTone = Tizen::App::App::GetInstance()->GetAppRootPath() + L"data/Walk in the forest.mp3";
+
+}
+
+AlarmData::AlarmData(const AlarmData& alarm)
+{
+ __alarmId = alarm.__alarmId;
+ __isOn = alarm.__isOn;
+ __alarmName = alarm.__alarmName;
+ __repeatFlags = alarm.__repeatFlags;
+ __snoozeOn = alarm.__snoozeOn;
+ __snoozeDuration = alarm.__snoozeDuration;
+ __snoozeRepeat = alarm.__snoozeRepeat;
+ __ringVolume = alarm.__ringVolume;
+ __ringType = alarm.__ringType;
+ __ringTone = alarm.__ringTone;
+ __time = alarm.__time;
+ __lastRingingTime = alarm.__lastRingingTime;
+ __repeatEveryMonday = alarm.__repeatEveryMonday;
+ __repeatEveryTuesday= alarm.__repeatEveryTuesday;
+ __repeatEveryWednesday = alarm.__repeatEveryWednesday;
+ __repeatEveryThursday = alarm.__repeatEveryThursday;
+ __repeatEveryFriday = alarm.__repeatEveryFriday;
+ __repeatEverySaturday = alarm.__repeatEverySaturday;
+ __repeatEverySunday = alarm.__repeatEverySunday;
+ __snoozeRepeatCount = alarm.__snoozeRepeatCount;
+}
+
+AlarmData::~AlarmData(void)
+{
+
+}
+
+AlarmData&
+AlarmData::operator =(const AlarmData& rhs)
+{
+ if (this != &rhs)
+ {
+ __alarmId = rhs.__alarmId;
+ __isOn = rhs.__isOn;
+ __alarmName = rhs.__alarmName;
+ __repeatFlags = rhs.__repeatFlags;
+ __snoozeOn = rhs.__snoozeOn;
+ __snoozeDuration = rhs.__snoozeDuration;
+ __snoozeRepeat = rhs.__snoozeRepeat;
+ __ringVolume = rhs.__ringVolume;
+ __ringType = rhs.__ringType;
+ __ringTone = rhs.__ringTone;
+ __time = rhs.__time;
+ __lastRingingTime = rhs.__lastRingingTime;
+ __repeatEveryMonday = rhs.__repeatEveryMonday;
+ __repeatEveryTuesday= rhs.__repeatEveryTuesday;
+ __repeatEveryWednesday = rhs.__repeatEveryWednesday;
+ __repeatEveryThursday = rhs.__repeatEveryThursday;
+ __repeatEveryFriday = rhs.__repeatEveryFriday;
+ __repeatEverySaturday = rhs.__repeatEverySaturday;
+ __repeatEverySunday = rhs.__repeatEverySunday;
+ __snoozeRepeatCount = rhs.__snoozeRepeatCount;
+ }
+
+ return *this;
+}
+
+int
+AlarmData::GetAlarmId(void) const
+{
+ return __alarmId;
+}
+
+int
+AlarmData::GetAlarmOnState(void) const
+{
+ return __isOn;
+}
+
+String
+AlarmData::GetAlarmName(void) const
+{
+ return __alarmName;
+}
+
+DateTime
+AlarmData::GetAlarmTime(void) const
+{
+ return __time;
+}
+
+DateTime
+AlarmData::GetLastRingingTime(void) const
+{
+ return __lastRingingTime;
+}
+
+DateTime
+AlarmData::GetAlarmCreatedtime(void) const
+{
+ return __alarmCreatedTime;
+}
+
+DateTime
+AlarmData::GetNextRingingTime()
+{
+ result r = E_FAILURE;
+ DateTime currentTime;
+ DateTime nextRingingTime;
+ int status = 0;
+ int dayOfWeek = -1;
+ int nextRepeatFlag = 0;
+ int noOfDaysInWeek = 7;
+ Calendar* pGregorianCalendar = null;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ currentTime.AddSeconds(-2);
+ pGregorianCalendar = Calendar::CreateInstanceN(CALENDAR_GREGORIAN);
+ pGregorianCalendar->SetTimeField(TIME_FIELD_YEAR, currentTime.GetYear());
+ pGregorianCalendar->SetTimeField(TIME_FIELD_MONTH, currentTime.GetMonth());
+ pGregorianCalendar->SetTimeField(TIME_FIELD_DAY_OF_MONTH, currentTime.GetDay());
+ dayOfWeek = pGregorianCalendar->GetTimeField(TIME_FIELD_DAY_OF_WEEK);
+ __repeatFlags.IndexOf(L"1",0,nextRepeatFlag);
+ AppLog("dayOfWeek = %d nextRepeatFlag = %d", dayOfWeek, nextRepeatFlag);
+ if (__isOn == 1)
+ {
+ nextRingingTime.SetValue(currentTime.GetYear(), currentTime.GetMonth(), currentTime.GetDay(), __time.GetHour(), __time.GetMinute(), __time.GetSecond());
+
+ if (__snoozeOn == true && __snoozeRepeatCount >= 0)
+ {
+ wchar_t ch;
+
+ nextRingingTime.AddMinutes(__snoozeDuration * (__snoozeRepeat - __snoozeRepeatCount));
+ status = nextRingingTime.CompareTo(currentTime);
+ __repeatFlags.GetCharAt(dayOfWeek - 1, ch);
+
+ if (status >= 0 && (ch == '1' || nextRepeatFlag == -1))
+ {
+ return nextRingingTime;
+ }
+ }
+
+ __snoozeRepeatCount = __snoozeRepeat;
+ nextRingingTime.SetValue(currentTime.GetYear(),currentTime.GetMonth(),currentTime.GetDay(),__time.GetHour(),__time.GetMinute(),__time.GetSecond());
+
+ __repeatFlags.IndexOf(L"1",dayOfWeek - 1,nextRepeatFlag);
+ status = nextRingingTime.CompareTo(currentTime);
+
+ if (nextRepeatFlag == dayOfWeek - 1)
+ {
+ if (status >= 0)
+ {
+ return nextRingingTime;
+ }
+ }
+
+ r = __repeatFlags.IndexOf(L"1",dayOfWeek,nextRepeatFlag);
+
+ if (nextRepeatFlag == -1 || r != E_SUCCESS)
+ {
+ r = __repeatFlags.IndexOf(L"1",0,nextRepeatFlag);
+
+ if (nextRepeatFlag != -1 && r == E_SUCCESS)
+ {
+ nextRingingTime.AddDays(noOfDaysInWeek + (nextRepeatFlag - dayOfWeek + 1));
+ }
+ else
+ {
+ nextRingingTime.SetValue(currentTime.GetYear(),currentTime.GetMonth(),currentTime.GetDay(),__time.GetHour(),__time.GetMinute(),__time.GetSecond());
+ status = nextRingingTime.CompareTo(currentTime);
+
+ if (status >= 0)
+ {
+ return nextRingingTime;
+ }
+ else if (__repeatFlags.Contains(L"1") == false)
+ {
+ nextRingingTime.AddDays(1);
+ }
+
+ }
+ }
+ else
+ {
+ nextRingingTime.AddDays(nextRepeatFlag - dayOfWeek + 1);
+ }
+
+ }
+ status = nextRingingTime.CompareTo(currentTime);
+
+ if (status < 0)
+ {
+ nextRingingTime.SetValue(9999,1,1);
+ }
+
+ return nextRingingTime;
+}
+
+String
+AlarmData::GetRepeatFlags(void)
+{
+ __repeatFlags = L"0000000";
+
+ if (__repeatEverySunday == true)
+ {
+ __repeatFlags[0] = '1';
+ }
+ else
+ {
+ __repeatFlags[0] = '0';
+ }
+
+ if (__repeatEveryMonday == true)
+ {
+ __repeatFlags[1] = '1';
+ }
+ else
+ {
+ __repeatFlags[1] = '0';
+ }
+
+ if (__repeatEveryTuesday == true)
+ {
+ __repeatFlags[2] = '1';
+ }
+ else
+ {
+ __repeatFlags[2] = '0';
+ }
+
+ if (__repeatEveryWednesday == true)
+ {
+ __repeatFlags[3] = '1';
+ }
+ else
+ {
+ __repeatFlags[3] = '0';
+ }
+
+ if (__repeatEveryThursday == true)
+ {
+ __repeatFlags[4] = '1';
+ }
+ else
+ {
+ __repeatFlags[4] = '0';
+ }
+
+ if (__repeatEveryFriday == true)
+ {
+ __repeatFlags[5] = '1';
+ }
+ else
+ {
+ __repeatFlags[5] = '0';
+ }
+
+ if (__repeatEverySaturday == true)
+ {
+ __repeatFlags[6] = '1';
+ }
+ else
+ {
+ __repeatFlags[6] = '0';
+ }
+ return __repeatFlags;
+
+}
+
+bool
+AlarmData::GetRepeatEveryMondayFlag(void) const
+{
+ return __repeatEveryMonday;
+}
+
+bool
+AlarmData::GetRepeatEveryTuesdayFlag(void) const
+{
+ return __repeatEveryTuesday;
+}
+
+bool
+AlarmData::GetRepeatEveryWednesdayFlag(void) const
+{
+ return __repeatEveryWednesday;
+}
+
+bool
+AlarmData::GetRepeatEveryThursdayFlag(void) const
+{
+ return __repeatEveryThursday;
+}
+
+bool
+AlarmData::GetRepeatEveryFridayFlag(void) const
+{
+ return __repeatEveryFriday;
+}
+
+bool
+AlarmData::GetRepeatEverySaturdayFlag(void) const
+{
+ return __repeatEverySaturday;
+}
+
+bool
+AlarmData::GetRepeatEverySundayFlag(void) const
+{
+ return __repeatEverySunday;
+}
+
+bool
+AlarmData::GetSnoozeOn(void) const
+{
+ return __snoozeOn;
+}
+
+int
+AlarmData::GetSnoozeDuration(void) const
+{
+ return __snoozeDuration;
+}
+
+int
+AlarmData::GetSnoozeRepeat(void) const
+{
+ return __snoozeRepeat;
+}
+
+int
+AlarmData::GetSnoozeRepeatCount(void) const
+{
+ return __snoozeRepeatCount;
+}
+
+int
+AlarmData::GetRingVolume(void) const
+{
+ return __ringVolume;
+}
+
+type
+AlarmData::GetRingType(void) const
+{
+ return __ringType;
+}
+
+String
+AlarmData::GetRingTone(void) const
+{
+ return __ringTone;
+}
+
+void
+AlarmData::SetAlarmId(const int& alarmId)
+{
+ __alarmId = alarmId;
+}
+
+void
+AlarmData::SetAlarmOnState(const int& alarmOnState)
+{
+
+ __isOn = alarmOnState;
+}
+
+void
+AlarmData::SetAlarmName(const String& alarmName)
+{
+ __alarmName = alarmName;
+}
+
+void
+AlarmData::SetSnoozeOn(const bool snooze)
+{
+ __snoozeOn = snooze;
+}
+
+void
+AlarmData::SetSnoozeDuration(const int& duration)
+{
+ __snoozeDuration = duration;
+}
+
+void
+AlarmData::SetAlarmTime(const DateTime& time)
+{
+ __time = time;
+}
+
+void
+AlarmData::SetSnoozeRepeat(const int& repeat)
+{
+ __snoozeRepeat = repeat;
+ __snoozeRepeatCount = repeat;
+}
+
+void
+AlarmData::SetRingVolume(const int& volume)
+{
+ __ringVolume = volume;
+}
+
+void
+AlarmData::SetRingType(const type& type)
+{
+ __ringType = type;
+}
+
+void
+AlarmData::SetRingTone(const String& ringTone)
+{
+ __ringTone = ringTone;
+}
+
+void
+AlarmData::SetRepeatedFlags(const String& repeat)
+{
+ __repeatFlags = repeat;
+
+ for (int i =0; i < __repeatFlags.GetLength(); i++)
+ {
+ bool flag = false;
+ String strFlag;
+ __repeatFlags.SubString(i, 1, strFlag);
+
+ if (strFlag == "1")
+ {
+ flag = true;
+ }
+ else
+ {
+ flag = false;
+ }
+
+ AppLogDebug("the flag is %d and the strflag is %ls", flag, strFlag.GetPointer());
+
+ switch (i)
+ {
+ case 0:
+ SetRepeatedEverySunday(flag);
+ break;
+ case 1:
+ SetRepeatedEveryMonday(flag);
+ break;
+ case 2:
+ SetRepeatedEveryTuesday(flag);
+ break;
+ case 3:
+ SetRepeatedEveryWednesday(flag);
+ break;
+ case 4:
+ SetRepeatedEveryThursday(flag);
+ break;
+ case 5:
+ SetRepeatedEveryFriday(flag);
+ break;
+ case 6:
+ SetRepeatedEverySaturday(flag);
+ break;
+ default:
+ break;
+ }
+ }
+}
+void
+AlarmData::SetRepeatedEveryMonday(const bool repeat)
+{
+ __repeatEveryMonday = repeat;
+}
+
+void
+AlarmData::SetRepeatedEveryTuesday(const bool repeat)
+{
+ __repeatEveryTuesday = repeat;
+}
+
+void
+AlarmData::SetRepeatedEveryWednesday(const bool repeat)
+{
+ __repeatEveryWednesday = repeat;
+}
+
+void
+AlarmData::SetRepeatedEveryThursday(const bool repeat)
+{
+ __repeatEveryThursday = repeat;
+}
+
+void
+AlarmData::SetRepeatedEveryFriday(const bool repeat)
+{
+ __repeatEveryFriday = repeat;
+}
+
+void
+AlarmData::SetRepeatedEverySaturday(const bool repeat)
+{
+ __repeatEverySaturday = repeat;
+}
+
+void
+AlarmData::SetRepeatedEverySunday(const bool repeat)
+{
+ __repeatEverySunday = repeat;
+}
+
+void
+AlarmData::SetLastRingingTime(const DateTime& lastRingingTime)
+{
+ __lastRingingTime = lastRingingTime;
+}
+
+void
+AlarmData::SetSnoozeRepeatCount(const int& count)
+{
+ __snoozeRepeatCount = count;
+}
+
+void
+AlarmData::SetAlarmCreatedTime(const DateTime& alarmCreatedTime)
+{
+ __alarmCreatedTime = alarmCreatedTime;
+}
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file AlarmDeleteListForm.cpp
+ * @brief Used to define AlarmDeleteListForm
+ */
+
+#include <FApp.h>
+#include <FShell.h>
+#include <FSystem.h>
+
+#include "ClkAlarm.h"
+#include "ClkAlarmDeleteListForm.h"
+#include "ClkAlarmPresentationModel.h"
+#include "ClkAlarmRepeatCustomItem.h"
+#include "ClkCommonLib.h"
+#include "ClkNotification.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Shell;
+using namespace Tizen::System;
+
+
+static const int IDA_TABBAR_ITEM1_ALARM = 200;
+static const int IDA_TABBAR_ITEM1_WORLDCLOCK = 201;
+static const int IDA_TABBAR_ITEM2_STOPWATCH = 202;
+static const int IDA_TABBAR_ITEM3_TIMER = 203;
+static const int IDA_SELECT_ALL_CHECKED = 204;
+static const int IDA_SELECT_ALL_UNCHECKED = 205;
+static const int IDA_DELETE_ALARM = 206;
+
+const wchar_t* NO_ALARM = L"No ALarms";
+
+AlarmDeleteListForm::AlarmDeleteListForm(void)
+:__isNoAlarmPresent(true),
+ __pData (null),
+ __pListView (null),
+ __pSelectAllCheck(null),
+ __pSelectedLabel(null),
+ __selectedCount(0),
+ __selectedItemCount(0),
+ __pSortByValue(null)
+{
+
+}
+
+AlarmDeleteListForm::~AlarmDeleteListForm(void)
+{
+
+ if (__pData != null)
+ {
+ __pData->RemoveAll();
+ delete __pData;
+ __pData = null;
+ }
+
+}
+
+bool
+AlarmDeleteListForm::Initialize(void)
+{
+ result r = E_FAILURE;
+
+ r = Construct(L"IDL_DELETE_ALARM_LIST");
+ if (IsFailed(r))
+ {
+ return false;
+ }
+
+ return true;
+}
+
+result
+AlarmDeleteListForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ HeaderItem alarm;
+ HeaderItem worldClock;
+ HeaderItem stopWatch;
+ HeaderItem timer;
+ String strhistory = L"";
+ Bitmap* pIconBitmap = null;
+ Bitmap* pPressedIconBitmap = null;
+ Bitmap* pHighlightedIconBitmap = null;
+ Header* pHeader = GetHeader();
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ String labelText;
+
+ SettingInfo::GetValue(L"http://tizen.org/setting/locale.time.format.24hour", is24HourFormat);
+ SettingInfo::AddSettingEventListener(*this);
+
+ SetFormBackEventListener(this);
+ AddOrientationEventListener(*this);
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_ALARM_DELETE_LIST, *this);
+
+ if (pHeader != null)
+ {
+ alarm.Construct(IDA_TABBAR_ITEM1_ALARM);
+ //alarm.SetText(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+
+ if (pAppResource == null)
+ {
+ return E_FAILURE;
+ }
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED);
+
+
+ if (pHighlightedIconBitmap != null)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_NORMAL, pHighlightedIconBitmap);
+ alarm.SetIcon(HEADER_ITEM_STATUS_PRESSED, pHighlightedIconBitmap);
+ alarm.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(alarm);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ worldClock.Construct(IDA_TABBAR_ITEM1_WORLDCLOCK);
+ //worldClock.SetText(CommonUtil::GetString(L"IDS_COM_BODY_WORLD_CLOCK"));
+
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null && pHighlightedIconBitmap != null)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ worldClock.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ worldClock.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(worldClock);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ stopWatch.Construct(IDA_TABBAR_ITEM2_STOPWATCH);
+ //stopWatch.SetText(CommonUtil::GetString(L"IDS_COM_BODY_STOPWATCH"));
+
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null && pHighlightedIconBitmap != null)
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(stopWatch);
+ pHeader->SetItemSelected(0);
+ pHeader->SetTabEditModeEnabled(false);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ timer.Construct(IDA_TABBAR_ITEM3_TIMER);
+ //timer.SetText(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null && pHighlightedIconBitmap != null)
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ timer.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ timer.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(timer);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ }
+ GetHeader()->SetItemEnabled(1, false);
+ GetHeader()->SetItemEnabled(2, false);
+ GetHeader()->SetItemEnabled(3, false);
+ GetHeader()->Invalidate(true);
+ GetHeader()->AddActionEventListener(*this);
+ GetFooter()->AddActionEventListener(*this);
+
+ __pSelectedLabel = static_cast< Label* >(GetControl(L"IDC_LABEL1"));
+
+ if (__pSelectedLabel == null)
+ {
+ return E_FAILURE;
+ }
+
+ labelText.Append(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+ labelText.Append("(0)");
+ __pSelectedLabel->SetText(labelText);
+
+ __pSelectAllCheck = static_cast< CheckButton* >(GetControl(L"IDC_SELECT_ALL",false));
+
+ if (__pSelectAllCheck != null)
+ {
+ __pSelectAllCheck->SetActionId(IDA_SELECT_ALL_CHECKED, IDA_SELECT_ALL_UNCHECKED);
+ __pSelectAllCheck->AddActionEventListener(*this);
+ }
+
+ __pListView = static_cast< ListView* >(GetControl(L"IDC_LISTVIEW_ALARM"));
+ if (__pListView != null)
+ {
+ __pListView->SetItemProvider(*this);
+ __pListView->AddListViewItemEventListener(*this);
+ }
+
+ __selectedItemList.Construct();
+
+ return r;
+}
+
+result
+AlarmDeleteListForm::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+ SettingInfo::RemoveSettingEventListener(*this);
+ return r;
+}
+
+void
+AlarmDeleteListForm::OnActionPerformed(const Control& source, int actionId)
+{
+ result r = E_SUCCESS;
+ String labelString = L"";
+ ArrayList* pArrayList = null;
+ AlarmData* pAlarm = null;
+ String notification ;
+ String lowerStr;
+ Tizen::Shell::NotificationManager notifyMgr;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ int gap = 120 ;
+
+ if (__pListView == null)
+ {
+ return;
+ }
+
+ switch (actionId)
+ {
+ case IDA_DELETE_ALARM:
+ {
+ int listCount = __pListView->GetItemCount() ;
+ pArrayList = new (std::nothrow) ArrayList();
+
+ __selectedItemList.RemoveAll(true);
+
+ if (pArrayList != null)
+ {
+ pArrayList->Construct();
+ }
+
+ for (int count = 0; count < listCount; count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ pAlarm = static_cast< AlarmData* >(__pData->GetAt(count));
+
+ if (pAlarm != null)
+ {
+ if (pArrayList != null)
+ {
+ pArrayList->Add(*pAlarm);
+ }
+ }
+ }
+ }
+ String lower = CommonUtil::GetString(L"IDS_COM_POP_DELETED");
+ notification.Append(lower);
+
+ if (pArrayList != null)
+ {
+ pAlarmPresentationModel->DeleteAlarm(*pArrayList);
+ }
+
+ if (pArrayList != null)
+ {
+ pArrayList->RemoveAll();
+ delete pArrayList;
+ pArrayList = null;
+ }
+
+ if ( __pListView->GetItemCount() == 0)
+ {
+ __pSelectAllCheck->SetShowState(false);
+ __pSelectAllCheck->Invalidate(false);
+
+ r = __pListView->SetBounds(__pListView->GetX(), __pListView->GetY() - gap, __pListView->GetWidth(), GetClientAreaBounds().height);
+
+ if (IsFailed(r))
+ {
+ return;
+ }
+ __pSelectedLabel->SetShowState(false);
+
+ }
+
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(false);
+
+ notifyMgr.Construct();
+ notifyMgr.NotifyTextMessage(notification);
+
+ int count = __pListView->GetItemCount();
+ for (int listCount = 0; listCount < count; listCount++)
+ {
+ if (__pListView->IsItemChecked(listCount))
+ {
+ pAlarm = static_cast< AlarmData* >(__pData->GetAt(listCount));
+
+ if (pAlarm != null)
+ {
+ __pListView->SetItemChecked(listCount, false);
+ }
+ }
+ }
+
+ __pListView->UpdateList();
+
+ if( __pListView->GetItemCount() == 0)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_ALARM_LIST));
+ }
+
+ }
+ break;
+ case IDA_SELECT_ALL_CHECKED:
+ {
+ int listCount = __pListView->GetItemCount() ;
+
+ __selectedItemList.RemoveAll(true);
+ for (int count = 0; count < listCount; count++)
+ {
+ __pListView->SetItemChecked(count, true);
+ __selectedItemList.Add(new Integer(count));
+ }
+
+ GetFooter()->SetItemEnabled(0, true);
+ GetFooter()->Invalidate(true);
+
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+ labelString.Format(25, lowerStr.GetPointer(), __pListView->GetItemCount());
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(false);
+ __pListView->Invalidate(true);
+
+ }
+ break;
+ case IDA_SELECT_ALL_UNCHECKED:
+ {
+ int listCount = __pListView->GetItemCount() ;
+
+ __selectedItemList.RemoveAll(true);
+ for (int count = 0; count < listCount; count++)
+ {
+ __pListView->SetItemChecked(count, false);
+ }
+
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(false);
+ __pListView->Invalidate(true);
+
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+
+ }
+ break;
+
+ case IDA_TABBAR_ITEM1_WORLDCLOCK:
+ {
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_WORLD_CLOCK_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_LIST));
+ }
+ }
+ }
+ break;
+ case IDA_TABBAR_ITEM2_STOPWATCH:
+ {
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ break;
+ case IDA_TABBAR_ITEM3_TIMER:
+ {
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW));
+ }
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
+AlarmDeleteListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ String labelString = L"";
+ String lowerStr;
+
+ if (pArgs != null)
+ {
+ __pSortByValue = dynamic_cast<Integer*>(pArgs->GetAt(0));
+ }
+
+ if (__pListView != null)
+ {
+ __pListView->UpdateList();
+
+ for (int i = 0; i < __selectedItemList.GetCount(); i++)
+ {
+ Integer* pObj = dynamic_cast<Integer*>(__selectedItemList.GetAt(i));
+
+ if (pObj != null)
+ {
+ __pListView->SetItemChecked(pObj->ToInt(), true);
+ }
+ }
+ }
+
+ GetHeader()->SetItemSelected(0);
+ GetHeader()->Invalidate(true);
+ GetFooter()->SetItemEnabled(0, false);
+
+ if (__selectedItemList.GetCount() == 0)
+ {
+ GetFooter()->SetItemEnabled(0,false);
+ __pSelectedLabel->SetText(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0,true);
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+
+ if (__pListView != null)
+ {
+ labelString.Format(25, lowerStr.GetPointer(), __pListView->GetItemCount());
+ }
+
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(false);
+ }
+ if (__pListView != null)
+ {
+ if (__selectedItemList.GetCount() != 0 && __selectedItemList.GetCount() == __pListView->GetItemCount())
+ {
+ __pSelectAllCheck->SetSelected(true);
+ }
+ }
+
+}
+
+void
+AlarmDeleteListForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+ AlarmData* pAlarm = null;
+ int listCount = __pListView->GetItemCount();
+
+ for (int count = 0; count < listCount; count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ pAlarm = static_cast< AlarmData* >(__pData->GetAt(count));
+
+ if (pAlarm != null)
+ {
+ __pListView->SetItemChecked(count, false);
+ }
+ }
+ }
+ __pSelectAllCheck->SetSelected(false);
+
+}
+
+void
+AlarmDeleteListForm::OnFormBackRequested(Form& source)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ }
+}
+
+void
+AlarmDeleteListForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ int count = 0;
+ String labelString;
+ String lowerStr;
+ __selectedItemCount = 0;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ int listCount = __pListView->GetItemCount() ;
+
+ if (__pListView->IsItemChecked(index) == true)
+ {
+ __selectedItemList.Add(new Integer(index));
+ }
+ else
+ {
+ __selectedItemList.Remove(* new Integer(index));
+ }
+
+ for (int count = 0; count < listCount; count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ __selectedItemCount++;
+ }
+ }
+
+ if (__selectedItemCount == 0)
+ {
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ }
+ else
+ {
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+ labelString.Format(25, lowerStr.GetPointer(), __selectedItemCount);
+ }
+
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(false);
+
+ pAlarmPresentationModel->GetAlarmCount(count);
+
+ if (__selectedItemCount == count)
+ {
+ __pSelectAllCheck->SetSelected(true);
+ }
+ else
+ {
+ __pSelectAllCheck->SetSelected(false);
+ }
+
+ GetFooter()->SetItemEnabled(0,false);
+
+ for (int count = 0; count < listCount; count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ break;
+ }
+ }
+
+ GetFooter()->Invalidate(true);
+}
+
+ListItemBase *
+AlarmDeleteListForm::CreateItem(int index, int itemWidth)
+{
+ result r = E_FAILURE;
+ String time = L"";
+ String itemContent = L"";
+ int hour = 0;
+ int min = 0;
+ int sec = 0;
+ int listItemHeight = LIST_ITEM_HEIGHT;
+ String alarmName;
+ String alarmNameSubstring;
+ String flags;
+ AlarmRepeatCustomItem* pItem = null;
+ String temp;
+
+ pItem = new (std::nothrow) AlarmRepeatCustomItem();
+ AlarmData* pAlarm = dynamic_cast< AlarmData* >(__pData->GetAt(index));
+
+ if ( pAlarm == null )
+ {
+ if ( pItem != null)
+ {
+ delete pItem;
+ pItem = null;
+ }
+ return null;
+ }
+
+ hour = pAlarm->GetAlarmTime().GetHour();
+ min = pAlarm->GetAlarmTime().GetMinute();
+ sec = pAlarm->GetAlarmTime().GetSecond();
+ AppLogDebug("CreateItem : %d, %d, %d", hour, min, sec);
+
+ if (hour > 12)
+ {
+ hour = hour - 12;
+ temp = CommonUtil::GetString("IDS_COM_POP_PM");
+ }
+ else
+ {
+ temp = CommonUtil::GetString("IDS_COM_BODY_AM");
+ }
+
+ if (hour < 10)
+ {
+ time.Append(0);
+ }
+
+ time.Append(hour);
+ time.Append(L":");
+
+ if (min < 10)
+ {
+ time.Append(0);
+ }
+
+ time.Append(min);
+ time.Append(" ");
+ time.Append(temp);
+
+ alarmName = pAlarm->GetAlarmName();
+
+ if (alarmName.GetLength() > 10)
+ {
+ alarmName.SubString(0, 10, alarmNameSubstring);
+ alarmNameSubstring.Append(L"...");
+ }
+ else
+ {
+ alarmNameSubstring = pAlarm->GetAlarmName();
+ }
+
+ itemContent = alarmNameSubstring + L" " + time;
+ flags = pAlarm->GetRepeatFlags();
+
+ r = pItem->Construct(itemWidth, listItemHeight, true, is24HourFormat);
+
+ pItem->SetAlarm(*pAlarm);
+ pItem->MakeAlarmRepeatCustomItem();
+
+ return pItem;
+}
+
+bool
+AlarmDeleteListForm::DeleteItem(int index, ListItemBase *pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+int
+AlarmDeleteListForm::GetItemCount(void)
+{
+ int count = 0;
+ result r = E_SUCCESS;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ pAlarmPresentationModel->GetAlarmCount(count);
+
+ if ( count == 0)
+ {
+ __pSelectAllCheck->SetSelected(false);
+ __pSelectAllCheck->SetShowState(false);
+ __pSelectAllCheck->Invalidate(true);
+ }
+ else
+ {
+ __pSelectAllCheck->SetShowState(true);
+ }
+
+ __pSelectAllCheck->Invalidate(false);
+
+ if (__pData != NULL)
+ {
+ __pData->RemoveAll(true);
+ delete __pData;
+ __pData = NULL ;
+ }
+
+ __pData = new (std::nothrow) ArrayList();
+
+ if (__pData == null)
+ {
+ return 0;
+ }
+
+ r = __pData->Construct();
+
+ pAlarmPresentationModel->GetAlarm(0, count, *__pData);
+
+ if (__pSortByValue != null)
+ {
+ if (__pSortByValue->ToInt() == 0)
+ {
+ pAlarmPresentationModel->CreatedTimeSort(*__pData);
+ }
+ else if (__pSortByValue->ToInt() == 1)
+ {
+ pAlarmPresentationModel->DateTimeSort(*__pData);
+ }
+ }
+
+ AppLogDebug("the count is %d",count);
+
+ return count;
+
+}
+
+void
+AlarmDeleteListForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ if ( key == L"http://tizen.org/setting/locale.time.format.24hour")
+ {
+ SettingInfo::GetValue(key, is24HourFormat);
+ }
+
+ __pListView->UpdateList();
+
+}
+
+void
+AlarmDeleteListForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ __pListView->UpdateList();
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file AlarmEditorForm.cpp
+ * @brief Used to define AlarmEditorForm
+ */
+
+#include <FApp.h>
+#include <FAppAppControl.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FSysDeviceManager.h>
+#include <FSystem.h>
+#include <FText.h>
+#include <FUi.h>
+#include <FUiInputConnection.h>
+#include <FUiIInputConnectionEventListener.h>
+
+#include "ClkAlarm.h"
+#include "ClkAlarmEditorForm.h"
+#include "ClkAlarmPresentationModel.h"
+#include "ClkAlarmRepeatCustomItem.h"
+#include "ClkCheckBoxCustomItem.h"
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkDefaultCustomItem.h"
+#include "ClkDropDownCustomItem.h"
+#include "ClkDropdownAndRepeatCustomItem.h"
+#include "ClkEditSnoozeForm.h"
+#include "ClkRadioCustomItem.h"
+#include "ClkSceneRegister.h"
+#include "ClkToggleCustomItem.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Media;
+using namespace Tizen::Text;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::System;
+
+static const int IDA_CREATE_ALARM_SAVE = 201;
+static const int IDA_CREATE_ALARM_CANCEL = 202;
+static const int IDA_HEADER_ITEM_SAVE = 203;
+static const int IDA_HEADER_ITEM_CANCEL = 204;
+static const int IDA_BUTTON_HOURS = 205;
+static const int IDA_BUTTON_MINS = 206;
+static const int IDA_BUTTON_TOGGLE = 207;
+static const int IDA_BUTTON_MORE = 208;
+static const int IDA_BUTTON_SUN = 209;
+static const int IDA_BUTTON_MON = 210;
+static const int IDA_BUTTON_TUE = 211;
+static const int IDA_BUTTON_WED = 212;
+static const int IDA_BUTTON_THU = 213;
+static const int IDA_BUTTON_FRI = 214;
+static const int IDA_BUTTON_SAT = 215;
+const RequestId REQUEST_ID_TERMINATE = 20000;
+
+AlarmEditorForm::AlarmEditorForm(void)
+: __alarmName("")
+, __audioFilePath(AlarmPresentationModel::GetInstance()->defaultAudioPath)
+, __defaultEditFieldValue("")
+, __defaultToggleValue(CommonUtil::GetString(L"IDS_COM_BODY_AM"))
+, __pDuration(null)
+, __fontValue(0)
+, __hourText("")
+, __isAppControlCompleted(false)
+, __isPlaying(false)
+, __isSnoozeOn(true)
+, __modalMsgBoxResult(0)
+, __pAlarm(null)
+, __pBtnDayFri(null)
+, __pBtnDayMon(null)
+, __pBtnDaySat(null)
+, __pBtnDaySun(null)
+, __pBtnDayThu(null)
+, __pBtnDayTue(null)
+, __pBtnDayWed(null)
+, __pBtnHourDisplay(null)
+, __pBtnMinDisplay(null)
+, __pBtnMore(null)
+, __pBtnToggle(null)
+, __pEditField(null)
+, __pGroupedListView(null)
+, __pHourImf(null)
+, __pLabelAm(null)
+, __pLabelEditfieldTitle(null)
+, __pLabelPm(null)
+, __pLabelTitle(null)
+, __player(null)
+, __pListView(null)
+, __pMinImf(null)
+, __pOldAlarm(null)
+, __pPanelDays(null)
+, __pPanelEditTime(null)
+, __pPanelList(null)
+, __pResetPopup(null)
+, __pScrollPanel(null)
+, __pSlider(null)
+, __pRepeat(null)
+, __repeatName(L"")
+, __selectedIndex(1)
+, __showMessageBox(true)
+, __showRepeat(false)
+, __showType(false)
+, __sliderDefaultValue(13)
+, __sliderValue(0)
+, __snoozeDurationValue("")
+, __snoozeStatus(false)
+, __snoozeValue(0)
+, __textLength(0)
+, __typeName(0)
+, __typeNameValue("")
+, is24HourFormat(false)
+
+{
+
+}
+
+AlarmEditorForm::~AlarmEditorForm(void)
+{
+ if (__pDuration != null)
+ {
+ delete __pDuration;
+ __pDuration = null;
+ }
+
+ if (__pRepeat != null)
+ {
+ delete __pRepeat;
+ __pRepeat = null;
+ }
+ if (__player == null)
+ {
+ return;
+ }
+
+ PlayerState estate = __player->GetState();
+ if ((estate == PLAYER_STATE_OPENED) || (estate == PLAYER_STATE_PAUSED)
+ || (estate == PLAYER_STATE_PLAYING)
+ || (estate == PLAYER_STATE_ENDOFCLIP) || (estate == PLAYER_STATE_STOPPED))
+ {
+ __player->Close();
+ }
+
+ if (__player)
+ {
+ delete __player;
+ __player = null;
+ }
+
+ SettingInfo::RemoveSettingEventListener(*this);
+ DeviceManager::RemoveDeviceEventListener(DEVICE_TYPE_STORAGE_CARD, *this);
+}
+
+bool
+AlarmEditorForm::Initialize(void)
+{
+ result r = E_FAILURE;
+
+ r = Construct(L"IDL_ALARM_EDITOR_FORM");
+
+ if (IsFailed(r))
+ {
+ return false;
+ }
+
+ return true;
+}
+
+result
+AlarmEditorForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ Bitmap* pBgNormalBitmap = null;
+ Bitmap* pDayNormalBitmap = null;
+ Bitmap* pDayFocusBitmap = null;
+ Bitmap* pFinalBitmap = null;
+ Bitmap* pbgFocusBitmap = null;
+ Bitmap* pbgBitmap = null;
+ Bitmap* pFinalBitmapFocused = null;
+ Canvas* pCanvas = null;
+ Canvas* pCanvasFocused = null;
+ int canvasWidth = 276;
+ int canvasHeight = 236;
+ String newAlarm;
+ String labelText;
+ String durationValue;
+
+ SettingInfo::GetValue(L"http://tizen.org/setting/locale.time.format.24hour", is24HourFormat);
+ SettingInfo::AddSettingEventListener(*this);
+
+ AddTouchEventListener(*this);
+ AddOrientationEventListener(*this);
+ DeviceManager::AddDeviceEventListener(DEVICE_TYPE_STORAGE_CARD,*this);
+
+ __snoozeDurationValue.Clear();
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_5MINS"));
+ __snoozeDurationValue.Append(L", ");
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_3TIMES"));
+
+ __defaultEditFieldValue = CommonUtil::GetString(L"IDS_COM_BODY_ALARM");
+ __defaultEditFieldValue.Append("1");
+
+ SetFormBackEventListener(this);
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_CREATE_ALARM, *this);
+
+ __pScrollPanel = static_cast<ScrollPanel*>(GetControl("IDC_SCROLLPANEL1", false));
+
+ if (__pScrollPanel != null)
+ {
+ __pScrollPanel->AddTouchEventListener(*this);
+ __pScrollPanel->SetScrollBarVisible(false);
+ }
+ AddFocusEventListener(*this);
+ __pLabelEditfieldTitle = static_cast<Label*>(GetControl("IDC_LABEL1", true));
+
+ GetFooter()->AddActionEventListener(*this);
+
+ __pLabelTitle = static_cast<Label*>(GetControl("IDC_LABEL_TITLE", true));
+
+ if (__pLabelTitle != null)
+ {
+ newAlarm = CommonUtil::GetString("IDS_COM_SK_NEW");
+ newAlarm.Append(" ");
+ newAlarm.Append(CommonUtil::GetString("IDS_COM_BODY_ALARM"));
+ newAlarm.ToUpper(labelText);
+ __pLabelTitle->SetText(labelText);
+ }
+
+ __pPanelList = static_cast<Panel*>(GetControl("IDC_PANEL_LIST", true));
+
+ __pSlider = static_cast<Slider *>(GetControl("IDC_SLIDER_VOLUME", true));
+ __pSlider->SetValue(__sliderDefaultValue);
+ __pSlider->AddSliderEventListener(*this);
+// __pSlider->AddTouchEventListener(*this);
+ __pSlider->AddFocusEventListener(*this);
+ __pSlider->AddAdjustmentEventListener(*this);
+ __pEditField = static_cast<EditField*>(GetControl("IDC_EDITFIELD1", true));
+
+ if (__pEditField == null)
+ {
+ return E_FAILURE;
+ }
+
+ __pEditField->SetText(__defaultEditFieldValue);
+ __pEditField->AddTextEventListener(*this);
+ __pEditField->AddKeypadEventListener(*this);
+ __pEditField->AddFocusEventListener(*this);
+ __pEditField->SetOverlayKeypadCommandButtonVisible(false);
+ __pEditField->SetEditTextFilter(this);
+ __pPanelEditTime = static_cast<Panel*>(GetControl("IDC_PANEL_EDITTIME", true));
+
+ if (__pPanelEditTime == null)
+ {
+ return E_FAILURE;
+ }
+
+ __pPanelEditTime->AddTouchEventListener(*this);
+
+ pBgNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_NORMAL_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pBgNormalBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_FOCUS_BG);
+
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != null)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+
+ __pBtnHourDisplay = dynamic_cast<Button*>(GetControl("IDC_BUTTON_HOUR", true));
+
+ if (__pBtnHourDisplay == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnHourDisplay->SetActionId(IDA_BUTTON_HOURS);
+ __pBtnHourDisplay->AddActionEventListener(*this);
+ __pBtnHourDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnHourDisplay->SetPressedBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnHourDisplay->SetFocusable(true);
+ __pBtnHourDisplay->AddFocusEventListener(*this);
+ __pBtnHourDisplay->AddTouchEventListener(*this);
+ __pBtnHourDisplay->SetPropagatedKeyEventListener(this);
+
+ __pHourImf = new (std::nothrow) InputConnection();
+ __pHourImf->Construct(__pBtnHourDisplay, *this, *this);
+ __pHourImf->SetInputPanelStyle(INPUT_PANEL_STYLE_NUMBER_ONLY);
+ //__pHourImf->SetInputPanelActionEnabled(false);
+
+ __pBtnMinDisplay = dynamic_cast<Button*>(GetControl("IDC_BUTTON_MIN", true));
+
+ if (__pBtnMinDisplay == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnMinDisplay->SetActionId(IDA_BUTTON_MINS);
+ __pBtnMinDisplay->AddActionEventListener(*this);
+ __pBtnMinDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnMinDisplay->SetPressedBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnMinDisplay->SetFocusable(true);
+ __pBtnMinDisplay->AddFocusEventListener(*this);
+ __pBtnMinDisplay->AddTouchEventListener(*this);
+ __pBtnMinDisplay->SetPropagatedKeyEventListener(this);
+
+
+ __pMinImf = new (std::nothrow) InputConnection();
+ __pMinImf->Construct(__pBtnMinDisplay, *this, *this);
+ __pMinImf->SetInputPanelStyle(INPUT_PANEL_STYLE_NUMBER_ONLY);
+ //__pMinImf->SetInputPanelActionEnabled(false);
+
+ __pBtnToggle = dynamic_cast<Button*>(GetControl("IDC_BUTTON_TOGGLE", true));
+
+ if (__pBtnToggle == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnToggle->SetActionId(IDA_BUTTON_TOGGLE);
+ __pBtnToggle->AddActionEventListener(*this);
+ __pBtnToggle->AddTouchEventListener(*this);
+
+ __pLabelAm = dynamic_cast<Label*>(GetControl("IDC_LABEL_AM", true));
+ __pLabelPm = dynamic_cast<Label*>(GetControl("IDC_LABEL_PM", true));
+
+
+
+ __pPanelDays = static_cast<Panel*>(GetControl("IDC_PANEL_DAYS", true));
+
+ if (__pPanelDays == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+ AppLog("Coming here");
+ return E_FAILURE;
+ }
+
+ __pPanelDays->AddTouchEventListener(*this);
+ __pBtnMore = dynamic_cast<Button*>(GetControl("IDC_BUTTON_MORE", true));
+
+ if (__pBtnMore == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnMore->SetActionId(IDA_BUTTON_MORE);
+ __pBtnMore->AddActionEventListener(*this);
+ __pPanelList = static_cast<Panel*>(GetControl("IDC_PANEL_LIST", true));
+
+ if (__pPanelList == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pPanelList->SetShowState(false);
+ __pPanelList->SetFocusable(false);
+
+ __pBtnDaySun = dynamic_cast<Button*>(GetControl("IDC_BUTTON_SUN", true));
+
+ if (__pBtnDaySun == null)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ pBgNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+
+ AppLog("the width:%d height: %d",pBgNormalBitmap->GetWidth(),pBgNormalBitmap->GetHeight() );
+ __pBtnDaySun->SetActionId(IDA_BUTTON_SUN);
+ __pBtnDaySun->AddActionEventListener(*this);
+ __pBtnDaySun->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDaySun->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDaySun->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SUN_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SUN_FOCUS_BG);
+
+ __pBtnDaySun->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDaySun->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ __pBtnDayMon = dynamic_cast<Button*>(GetControl("IDC_BUTTON_MON", true));
+
+ if (__pBtnDayMon == NULL)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnDayMon->SetActionId(IDA_BUTTON_MON);
+ __pBtnDayMon->AddActionEventListener(*this);
+ __pBtnDayMon->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDayMon->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDayMon->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_MON_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_MON_FOCUS_BG);
+
+ __pBtnDayMon->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDayMon->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ __pBtnDayTue = dynamic_cast<Button*>(GetControl("IDC_BUTTON_TUE", true));
+
+ if (__pBtnDayTue == NULL)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnDayTue->SetActionId(IDA_BUTTON_TUE);
+ __pBtnDayTue->AddActionEventListener(*this);
+ __pBtnDayTue->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDayTue->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDayTue->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_TUE_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_TUE_FOCUS_BG);
+
+ __pBtnDayTue->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDayTue->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ __pBtnDayWed = dynamic_cast<Button*>(GetControl("IDC_BUTTON_WED", true));
+
+ if (__pBtnDayWed == NULL)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnDayWed->SetActionId(IDA_BUTTON_WED);
+ __pBtnDayWed->AddActionEventListener(*this);
+ __pBtnDayWed->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDayWed->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDayWed->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_WED_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_WED_FOCUS_BG);
+
+ __pBtnDayWed->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDayWed->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ __pBtnDayThu = dynamic_cast<Button*>(GetControl("IDC_BUTTON_THU", true));
+
+ if (__pBtnDayThu == NULL)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnDayThu->SetActionId(IDA_BUTTON_THU);
+ __pBtnDayThu->AddActionEventListener(*this);
+ __pBtnDayThu->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDayThu->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDayThu->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_THU_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_THU_FOCUS_BG);
+
+ __pBtnDayThu->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDayThu->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ __pBtnDayFri = dynamic_cast<Button*>(GetControl("IDC_BUTTON_FRI", true));
+
+ if (__pBtnDayFri == NULL)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnDayFri->SetActionId(IDA_BUTTON_FRI);
+ __pBtnDayFri->AddActionEventListener(*this);
+ __pBtnDayFri->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDayFri->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDayFri->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FRI_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FRI_FOCUS_BG);
+
+ __pBtnDayFri->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDayFri->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ __pBtnDaySat = dynamic_cast<Button*>(GetControl("IDC_BUTTON_SAT", true));
+
+ if (__pBtnDaySat == NULL)
+ {
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnDaySat->SetActionId(IDA_BUTTON_SAT);
+ __pBtnDaySat->AddActionEventListener(*this);
+ __pBtnDaySat->AddFocusEventListener(*this);
+ __pBtnDaySat->SetNormalBackgroundBitmap(*pBgNormalBitmap);
+ __pBtnDaySat->SetPressedBackgroundBitmap(*pbgBitmap);
+ __pBtnDaySat->AddTouchEventListener(*this);
+
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SAT_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SAT_FOCUS_BG);
+
+ __pBtnDaySat->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+ __pBtnDaySat->SetPressedBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ __pGroupedListView = static_cast<GroupedListView*>(GetControl("IDC_GROUPEDLISTVIEW1", true));
+
+ if (__pGroupedListView != null)
+ {
+ __pGroupedListView->AddGroupedListViewItemEventListener(*this);
+ __pGroupedListView->AddTouchEventListener(*this);
+ __pGroupedListView->SetItemProvider(*this);
+ __pGroupedListView->SetFocusable(true);
+ }
+
+ __pListView = dynamic_cast<ListView*>(GetControl("IDC_LISTVIEW1", true));
+
+ if (__pListView != null)
+ {
+ __pListView->AddListViewItemEventListener(*this);
+ __pListView->AddTouchEventListener(*this);
+ __pListView->SetItemProvider(*this);
+ }
+
+ __selectedIndexValues.Construct();
+
+ __player = new (std::nothrow) Player();
+ if ( __player == null)
+ {
+ AppLogException("pPlyaer = new (std::nothrow) Player() has failed");
+ return E_FAILURE;
+ }
+ __player->Construct(*this);
+
+ GetHeader()->SetTitleText(__pEditField->GetText());
+ GetHeader()->SetShowState(false);
+ GetHeader()->AddActionEventListener(*this);
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ __pBtnMinDisplay->SetNextFocus(__pBtnToggle);
+ __pBtnToggle->SetPreviousFocus(__pBtnMinDisplay);
+
+ return r;
+}
+
+result
+AlarmEditorForm::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ if (__pHourImf)
+ {
+ delete __pHourImf;
+ __pHourImf = null;
+ }
+ if (__pMinImf)
+ {
+ delete __pMinImf;
+ __pMinImf = null;
+ }
+
+ return r;
+}
+
+void
+AlarmEditorForm::OnActionPerformed(const Control& source, int actionId)
+{
+ AppLog("Action id: %d", actionId);
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ DateTime currentTime;
+ DateTime alarmTime;
+ int duration = 0;
+ int repeat = 0;
+ ArrayList* pArgList = null;
+ String alarmName = L"";
+ Bitmap* pDayNormalBitmap = null;
+ Bitmap* pDayFocusBitmap = null;
+ result r = E_FAILURE;
+
+ /* if (__pEditField != null)
+ {
+ __pEditField->HideKeypad();
+ __pEditField->Invalidate(false);
+ }*/
+
+ switch (actionId)
+ {
+ case IDA_CREATE_ALARM_CANCEL:
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ }
+ break;
+
+ case IDA_HEADER_ITEM_SAVE:
+ case IDA_CREATE_ALARM_SAVE:
+ {
+ int hour, minute;
+ String hourVal, minVal;
+ String alarmTone;
+ int alarmVol;
+ DateTime time;
+
+ minVal = __pBtnMinDisplay->GetText();
+ Integer::Parse(minVal, minute);
+
+ pArgList = new (std::nothrow) ArrayList();
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+
+ if (__pEditField != null)
+ {
+ alarmName = __pEditField->GetText();
+ }
+
+ hourVal = __pBtnHourDisplay->GetText();
+ Integer::Parse(hourVal, hour);
+
+ if (is24HourFormat == false)
+ {
+ if (__defaultToggleValue == CommonUtil::GetString(L"IDS_COM_BODY_AM"))
+ {
+
+ if(hour == 12)
+ {
+ hour = 0;
+ }
+
+ }
+ else if (__defaultToggleValue == CommonUtil::GetString(L"IDS_COM_POP_PM"))
+ {
+
+ if(hour != 12)
+ {
+ hour = hour + 12;
+ }
+
+ }
+ }
+
+ alarmTime.SetValue(1900, 1, 1, hour, minute, 0);
+
+ if (__pDuration != null && __pRepeat != null)
+ {
+ duration = __pDuration->ToInt();
+ repeat = __pRepeat->ToInt();
+ }
+
+ __pAlarm->SetAlarmOnState(1);
+ __pAlarm->SetAlarmName(alarmName);
+ __pAlarm->SetAlarmTime(alarmTime);
+
+
+ if (__pSlider != null)
+ {
+ alarmVol = __pSlider->GetValue();
+ __pAlarm->SetRingVolume(alarmVol);
+ }
+
+ if (__typeName == 0)
+ {
+ __pAlarm->SetRingType(ALARM_TYPE_MELODY);
+ }
+ else if (__typeName == 1)
+ {
+ __pAlarm->SetRingType(ALARM_TYPE_VIBRATION);
+ }
+ else if (__typeName == 2)
+ {
+ __pAlarm->SetRingType(ALARM_TYPE_MELODY_AND_VIBRATION);
+ }
+
+
+ __pAlarm->SetSnoozeDuration(duration);
+ __pAlarm->SetSnoozeRepeat(repeat);
+ __pAlarm->SetLastRingingTime(time);
+ __pAlarm->SetSnoozeRepeatCount(__pAlarm->GetSnoozeRepeat());
+
+ if (__pAlarm->GetAlarmId() != 0)
+ {
+ r = pAlarmPresentationModel->UpdateAlarm(*__pOldAlarm, *__pAlarm);
+ }
+ else
+ {
+ r = pAlarmPresentationModel->SaveAlarm(*__pAlarm);
+ }
+
+ AppLog("result: %s", GetErrorMessage(r));
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(__modalMsgBoxResult);
+ }
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(*new (std::nothrow) AlarmData(*__pAlarm));
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(), pArgList);
+ }
+ }
+
+ if (pArgList != null)
+ {
+ delete pArgList;
+ pArgList = null;
+ }
+ /*if (pOldAlarm != null)
+ {
+ delete pOldAlarm;
+ pOldAlarm = null;
+ }*/
+ }
+ break;
+
+ case IDA_HEADER_ITEM_CANCEL:
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ }
+ break;
+
+ case IDA_BUTTON_MORE:
+ {
+
+ if (__pBtnHourDisplay->HasFocus())
+ {
+ HideHourKeypad();
+ SetFocus();
+ }
+ else if (__pBtnMinDisplay->HasFocus())
+ {
+ HideMinKeypad();
+ SetFocus();
+ }
+
+ __pPanelList->SetShowState(true);
+ __pScrollPanel->SetScrollBarVisible(true);
+ __pBtnMore->SetShowState(false);
+ //Invalidate(true);
+ RearrangeControls();
+ GetFooter()->SetFocusable(false);
+
+ }
+ break;
+
+ case IDA_BUTTON_TOGGLE:
+ {
+ Bitmap* pToggleBtnPMBG = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_TOGGLE_PM_BG);
+ Bitmap* pToggleBtnAMBG = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_TOGGLE_AM_BG);
+
+ if (__defaultToggleValue == CommonUtil::GetString(L"IDS_COM_BODY_AM"))
+ {
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnPMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnPMBG);
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_POP_PM");
+ }
+ else if (__defaultToggleValue == CommonUtil::GetString(L"IDS_COM_POP_PM"))
+ {
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnAMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnAMBG);
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_BODY_AM");
+ }
+
+ if (pToggleBtnPMBG != null)
+ {
+ delete pToggleBtnPMBG;
+ pToggleBtnPMBG = null;
+ }
+
+ if (pToggleBtnAMBG != null)
+ {
+ delete pToggleBtnAMBG;
+ pToggleBtnAMBG = null;
+ }
+
+ __pBtnToggle->Invalidate(true);
+
+ }
+ break;
+
+ case IDA_BUTTON_SUN:
+ {
+
+ if (!(__pAlarm->GetRepeatEverySundayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SUN_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEverySunday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SUN_BG);
+
+ __pAlarm->SetRepeatedEverySunday(false);
+ }
+
+ __pBtnDaySun->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDaySun->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ }
+ break;
+
+ case IDA_BUTTON_MON:
+ {
+
+ if (!(__pAlarm->GetRepeatEveryMondayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_MON_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEveryMonday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_MON_BG);
+
+ __pAlarm->SetRepeatedEveryMonday(false);
+ }
+
+ __pBtnDayMon->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDayMon->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+ }
+ break;
+
+ case IDA_BUTTON_TUE:
+ {
+
+ if (!(__pAlarm->GetRepeatEveryTuesdayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_TUE_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEveryTuesday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_TUE_BG);
+
+ __pAlarm->SetRepeatedEveryTuesday(false);
+ }
+
+ __pBtnDayTue->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDayTue->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ }
+ break;
+
+ case IDA_BUTTON_WED:
+ {
+
+ if (!(__pAlarm->GetRepeatEveryWednesdayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_WED_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEveryWednesday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_WED_BG);
+
+ __pAlarm->SetRepeatedEveryWednesday(false);
+ }
+
+ __pBtnDayWed->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDayWed->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ }
+ break;
+
+ case IDA_BUTTON_THU:
+ {
+
+ if (!(__pAlarm->GetRepeatEveryThursdayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_THU_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEveryThursday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_THU_BG);
+
+ __pAlarm->SetRepeatedEveryThursday(false);
+ }
+
+ __pBtnDayThu->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDayThu->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ }
+ break;
+
+ case IDA_BUTTON_FRI:
+ {
+
+ if (!(__pAlarm->GetRepeatEveryFridayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FRI_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEveryFriday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FRI_BG);
+
+ __pAlarm->SetRepeatedEveryFriday(false);
+ }
+
+ __pBtnDayFri->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDayFri->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ }
+ break;
+
+ case IDA_BUTTON_SAT:
+ {
+
+ if (!(__pAlarm->GetRepeatEverySaturdayFlag()))
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SAT_FOCUS_BG);
+
+ __pAlarm->SetRepeatedEverySaturday(true);
+ }
+ else
+ {
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pDayFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SAT_BG);
+
+ __pAlarm->SetRepeatedEverySaturday(false);
+ }
+
+ __pBtnDaySat->SetNormalBackgroundBitmap(*pDayNormalBitmap);
+ __pBtnDaySat->SetNormalBitmap(Point(0,0), *pDayFocusBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pDayFocusBitmap != null)
+ {
+ delete pDayFocusBitmap;
+ pDayFocusBitmap = null;
+ }
+
+ }
+ break;
+
+ case IDA_BUTTON_HOURS:
+ {
+
+ Canvas* pCanvas = null;
+ Bitmap* pbgBitmap = null;
+ Bitmap* pFinalBitmap = null;
+ Bitmap* pBgNormalBitmap = null;
+ Bitmap* pbgFocusBitmap = null;
+ Bitmap* pFinalBitmapFocused = null;
+ Canvas* pCanvasFocused = null;
+ int canvasWidth = 276;
+ int canvasHeight = 236;
+
+ if (__pBtnHourDisplay == null || __pBtnMinDisplay == null)
+ {
+ return;
+ }
+
+ pBgNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_NORMAL_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pBgNormalBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+ pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_FOCUS_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != null)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ __pBtnMinDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnMinDisplay->SetPressedBackgroundBitmap(*pFinalBitmap);
+ __pBtnHourDisplay->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnHourDisplay->SetPressedBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnHourDisplay->Invalidate(true);
+ __pBtnMinDisplay->Invalidate(true);
+
+ if (&source == __pBtnHourDisplay)
+ {
+ ShowHourKeypad();
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if(isHourClicked == true)
+ {
+ return;
+ }
+
+ __hourText.Clear();
+ if (__pBtnHourDisplay->GetText().GetLength() == 1)
+ {
+ __hourText.Append("0");
+ __hourText.Append(__pBtnHourDisplay->GetText());
+ }
+
+ isHourClicked = true;
+
+
+ }
+ break;
+
+ case IDA_BUTTON_MINS:
+ {
+ Canvas* pCanvas = null;
+ Bitmap* pbgBitmap = null;
+ Bitmap* pFinalBitmap = null;
+ Bitmap* pBgNormalBitmap = null;
+ Bitmap* pbgFocusBitmap = null;
+ Bitmap* pFinalBitmapFocused = null;
+ Canvas* pCanvasFocused = null;
+ int canvasWidth = 276;
+ int canvasHeight = 236;
+
+ if (__pBtnHourDisplay == null || __pBtnMinDisplay == null)
+ {
+ return;
+ }
+
+ pBgNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_NORMAL_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pBgNormalBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_FOCUS_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != null)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ if (is24HourFormat == false && __pBtnHourDisplay->GetText().CompareTo(L"0") == 0 && isHourClicked == true)
+ {
+ __pBtnHourDisplay->SetText(L"12");
+ }
+
+ __pBtnHourDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnHourDisplay->SetPressedBackgroundBitmap(*pFinalBitmap);
+ __pBtnMinDisplay->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnMinDisplay->SetPressedBackgroundBitmap(*pFinalBitmapFocused);
+
+ __pBtnHourDisplay->Invalidate(true);
+ __pBtnMinDisplay->Invalidate(true);
+
+ if (__pBtnMinDisplay != null && &source == __pBtnMinDisplay)
+ {
+ ShowMinKeypad();
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+
+ if(isHourClicked == false)
+ {
+ return;
+ }
+
+ __hourText.Clear();
+ if (__pBtnMinDisplay->GetText().GetLength() == 1)
+ {
+ __hourText.Append("0");
+ __hourText.Append(__pBtnMinDisplay->GetText());
+ }
+ isHourClicked = false;
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+AlarmEditorForm::OnAdjustmentValueChanged(const Control& source, int adjustment)
+{
+ AppLogDebug("ENTER %d",adjustment);
+ result r = E_SUCCESS;
+ __sliderValues.RemoveAll();
+ __sliderValues.Push(adjustment);
+
+ SettingInfo::RemoveSettingEventListener(*this);
+ r = SettingInfo::SetValue(L"http://tizen.org/setting/sound.media.volume", adjustment);
+ SettingInfo::AddSettingEventListener(*this);
+
+ if(__pSlider)
+ {
+ __pSlider->SetFocus();
+ __pSlider->Invalidate(false);
+ }
+
+ if(__sliderValues.GetCount() == 1)
+ {
+ SendUserEvent(10000, null);
+ }
+
+ __sliderValue = adjustment;
+ AppLogDebug("EXIT");
+}
+
+void
+AlarmEditorForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ AppLog("AlarmEditorForm::OnSceneActivatedN");
+ result r = E_SUCCESS;
+ bool flag = false;
+ int counter = 0;
+ int count = 0;
+ int alarmCount = 0;
+ int volume = 0;
+ int timeFormat = 12;
+ ArrayList alarmList;
+ String title ;
+ String alarmTitle ;
+ DateTime currentTime;
+ String durationValue;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ Bitmap* pToggleBtnPMBG = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_TOGGLE_PM_BG);
+ Bitmap* pToggleBtnAMBG = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_TOGGLE_AM_BG);
+ Bitmap* pDayNormalBitmap = null;
+ Bitmap* pNormalBitmap = null;
+ Bitmap* pFocusBitmap = null;
+
+ if (previousSceneId != IDSCN_EDIT_SNOOZE && previousSceneId != IDSCN_ALARM_RINGING && previousSceneId != IDSCN_ALARM_RINGING_LOCK && previousSceneId != IDSCN_TIMER_RINGING && previousSceneId != IDSCN_TIMER_RINGING_LOCK)
+ {
+ String alarmTone;
+ String alarmPath;
+ __pAlarm = new (std::nothrow) AlarmData();
+ //alarmTone = UiApp::GetInstance()->GetAppRootPath() + L"/data/04-Kyun.mp3";
+ __pAlarm->SetRingTone(__audioFilePath);
+ }
+
+ if (previousSceneId == IDSCN_ALARM_LIST && pArgs != null)
+ {
+ AppLog("Coming from AlarmList");
+ String hour, min;
+ int alarmTimeHour, alarmTimeMin;
+
+ if (__pAlarm != null)
+ {
+ delete __pAlarm;
+ __pAlarm = null;
+ }
+
+ __pAlarm = dynamic_cast<AlarmData*>(pArgs->GetAt(0));
+
+ if (__pAlarm == null)
+ {
+ return;
+ }
+
+ __pOldAlarm = new AlarmData(*__pAlarm);
+
+ volume = __pAlarm->GetRingVolume();
+ AppLog("volume: %d",volume);
+
+ alarmTimeHour = __pAlarm->GetAlarmTime().GetHour();
+ alarmTimeMin = __pAlarm->GetAlarmTime().GetMinute();
+
+ if(is24HourFormat == false)
+ {
+ if (alarmTimeHour < timeFormat)
+ {
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_BODY_AM");
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnAMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnAMBG);
+ }
+ else
+ {
+ alarmTimeHour = alarmTimeHour - timeFormat;
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_POP_PM");
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnPMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnPMBG);
+ }
+ }
+ else
+ {
+ __pBtnToggle->SetShowState(false);
+ __pLabelAm->SetShowState(false);
+ __pLabelPm->SetShowState(false);
+ }
+
+ if(alarmTimeHour == 0 && is24HourFormat == false)
+ {
+ alarmTimeHour = 12;
+ }
+
+ if ( alarmTimeHour < 10)
+ {
+ hour.Append(0);
+ }
+
+ if (alarmTimeMin < 10)
+ {
+ min.Append(0);
+ }
+
+ hour.Append(alarmTimeHour);
+ min.Append(alarmTimeMin);
+
+ __pBtnHourDisplay->SetText(hour);
+ __pBtnMinDisplay->SetText(min);
+ __pBtnHourDisplay->Invalidate(false);
+ __pBtnMinDisplay->Invalidate(false);
+
+ __pEditField->SetText(__pAlarm->GetAlarmName());
+ __pSlider->SetValue(volume);
+
+ __pLabelTitle->SetText(__pAlarm->GetAlarmName());
+ __pLabelTitle->Invalidate(false);
+
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_BG);
+ pFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FOCUS_BG);
+
+ if (__pAlarm->GetRepeatEverySundayFlag())
+ {
+ __pBtnDaySun->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SUN_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDaySun->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SUN_BG);
+ }
+
+ __pBtnDaySun->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRepeatEveryMondayFlag())
+ {
+ __pBtnDayMon->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_MON_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDayMon->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_MON_BG);
+ }
+
+ __pBtnDayMon->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRepeatEveryTuesdayFlag())
+ {
+ __pBtnDayTue->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_TUE_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDayTue->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_TUE_BG);
+ }
+
+ __pBtnDayTue->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRepeatEveryWednesdayFlag())
+ {
+ __pBtnDayWed->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_WED_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDayWed->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_WED_BG);
+ }
+
+ __pBtnDayWed->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRepeatEveryThursdayFlag())
+ {
+ __pBtnDayThu->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_THU_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDayThu->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_THU_BG);
+ }
+
+ __pBtnDayThu->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRepeatEveryFridayFlag())
+ {
+ __pBtnDayFri->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FRI_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDayFri->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_FRI_BG);
+ }
+
+ __pBtnDayFri->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRepeatEverySaturdayFlag())
+ {
+ __pBtnDaySat->SetNormalBackgroundBitmap(*pFocusBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SAT_FOCUS_BG);
+ }
+ else
+ {
+ __pBtnDaySat->SetNormalBackgroundBitmap(*pNormalBitmap);
+ pDayNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_DAYS_SAT_BG);
+ }
+
+ __pBtnDaySat->SetNormalBitmap(Point(0,0), *pDayNormalBitmap);
+
+ if (pDayNormalBitmap != null)
+ {
+ delete pDayNormalBitmap;
+ pDayNormalBitmap = null;
+ }
+
+ if (pFocusBitmap != null)
+ {
+ delete pFocusBitmap;
+ pFocusBitmap = null;
+ }
+
+ if (pNormalBitmap != null)
+ {
+ delete pNormalBitmap;
+ pNormalBitmap = null;
+ }
+
+ if (__pAlarm->GetRingType() == 0)
+ {
+ __selectedIndex = 1;
+ }
+
+ if (__pAlarm->GetRingType() == 1)
+ {
+ __selectedIndex = 2;
+ }
+
+ if (__pAlarm->GetRingType() == 2)
+ {
+ __selectedIndex = 3;
+ }
+
+ __typeName = __pAlarm->GetRingType();
+
+ if (__pDuration != null)
+ {
+ delete __pDuration;
+ __pDuration = null;
+ }
+
+ if (__pRepeat != null)
+ {
+ delete __pRepeat;
+ __pRepeat = null;
+ }
+
+
+ __pDuration = new (std::nothrow) Integer(__pAlarm->GetSnoozeDuration());
+ __pRepeat = new (std::nothrow) Integer(__pAlarm->GetSnoozeRepeat());
+
+ __snoozeDurationValue.Clear();
+
+ if (__pDuration->ToInt() == 3)
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_3MINS"));
+ }
+ else if (__pDuration->ToInt() == 5)
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_5MINS"));
+ }
+ else
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_10MINS"));
+ }
+
+ __snoozeDurationValue.Append(L", ");
+ durationValue.Format(25, CommonUtil::GetString(L"IDS_CLOCK_BODY_PD_TIMES").GetPointer(), __pRepeat->ToInt());
+ __snoozeDurationValue.Append(durationValue);
+
+ }
+ else if (previousSceneId == IDSCN_ALARM_LIST && pArgs == null)
+ {
+ String hourValue= L"";
+ String minValue ;
+ int hour = 0;
+ int numberSelectorHour, numberSelectorMin;
+
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+
+ if (is24HourFormat == false)
+ {
+ if (currentTime.GetHour() > timeFormat)
+ {
+ hour = currentTime.GetHour() - timeFormat;
+ }
+
+ else
+ {
+ hour = currentTime.GetHour();
+ }
+ }
+ else
+ {
+ hour = currentTime.GetHour();
+ __pBtnToggle->SetShowState(false);
+ __pLabelAm->SetShowState(false);
+ __pLabelPm->SetShowState(false);
+ }
+
+ if(hour == 0 && is24HourFormat == false)
+ {
+ hour = 12;
+ }
+
+ if (hour < 10)
+ {
+ hourValue.Append(0);
+ }
+
+ if (currentTime.GetMinute() < 10)
+ {
+ minValue.Append(0);
+ }
+
+ hourValue.Append(hour);
+ minValue.Append(currentTime.GetMinute());
+
+ if (__pDuration != null)
+ {
+ delete __pDuration;
+ __pDuration = null;
+ }
+
+ if (__pRepeat != null)
+ {
+ delete __pRepeat;
+ __pRepeat = null;
+ }
+
+ __pDuration = new (std::nothrow) Integer(5);
+ __pRepeat = new (std::nothrow) Integer(3);
+
+ if (is24HourFormat == false)
+ {
+ if (currentTime.GetHour() < timeFormat)
+ {
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_BODY_AM");
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnAMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnAMBG);
+ }
+ else if (currentTime.GetHour() >= timeFormat)
+ {
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_POP_PM");
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnPMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnPMBG);
+ }
+ }
+
+ __snoozeDurationValue.Clear();
+
+ if (__pDuration->ToInt() == 3)
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_3MINS"));
+ }
+ else if (__pDuration->ToInt() == 5)
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_5MINS"));
+ }
+ else
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_10MINS"));
+ }
+
+ __snoozeDurationValue.Append(L", ");
+ durationValue.Format(25, CommonUtil::GetString(L"IDS_CLOCK_BODY_PD_TIMES").GetPointer(), __pRepeat->ToInt());
+ __snoozeDurationValue.Append(durationValue);
+
+
+ Integer::Parse(hourValue, numberSelectorHour);
+ Integer::Parse(minValue, numberSelectorMin);
+ __pBtnHourDisplay->SetText(hourValue);
+ __pBtnMinDisplay->SetText(minValue);
+ __pBtnHourDisplay->Invalidate(false);
+ __pBtnMinDisplay->Invalidate(false);
+ __pAlarm->SetSnoozeOn(__isSnoozeOn);
+
+ }
+ else
+ {
+ AppLog("the control frm myfiles comes here");
+ if (pArgs != null)
+ {
+
+ if (__pDuration != null)
+ {
+ delete __pDuration;
+ __pDuration = null;
+ }
+
+ if (__pRepeat != null)
+ {
+ delete __pRepeat;
+ __pRepeat = null;
+ }
+
+ __pDuration = dynamic_cast<Integer*>(pArgs->GetAt(0));
+
+ if (__pDuration == null)
+ {
+ return;
+ }
+
+ __pRepeat = dynamic_cast<Integer*>(pArgs->GetAt(1));
+
+ if (__pRepeat == null)
+ {
+ return;
+ }
+ __snoozeDurationValue.Clear();
+
+ if (__pDuration->ToInt() == 3)
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_3MINS"));
+ }
+ else if (__pDuration->ToInt() == 5)
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_5MINS"));
+ }
+ else
+ {
+ __snoozeDurationValue.Append(CommonUtil::GetString(L"IDS_ALM_BODY_10MINS"));
+ }
+
+ __snoozeDurationValue.Append(L", ");
+ durationValue.Format(25, CommonUtil::GetString(L"IDS_CLOCK_BODY_PD_TIMES").GetPointer(), __pRepeat->ToInt());
+ __snoozeDurationValue.Append(durationValue);
+ __pAlarm->SetSnoozeDuration(__pDuration->ToInt());
+ __pAlarm->SetSnoozeRepeat(__pRepeat->ToInt());
+
+ }
+ __pGroupedListView->UpdateList();
+ }
+
+ r = pAlarmPresentationModel->GetAlarmCount(alarmCount); // to get count of existing folders
+
+ r = pAlarmPresentationModel->GetAlarm(0, alarmCount, alarmList); // to get list of existing folders
+
+ if (previousSceneId != IDSCN_TIMER_RINGING && previousSceneId != IDSCN_ALARM_RINGING)
+ {
+ if (pArgs == null)
+ {
+ while (true) // to provide user with unique alarm title when he creates a new (std::nothrow) alarm
+ { // to generate alarm with default name of type alarmN
+ flag = false ;
+ title = L"";
+ count = 0;
+ counter++;
+ title.Append(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+ title.Append(counter);
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ AlarmData* pAlarm = dynamic_cast<AlarmData*>(alarmList.GetAt(count));
+ alarmTitle = L"";
+ alarmTitle = pAlarm->GetAlarmName();
+
+ if (title.Equals(alarmTitle,false))
+ {
+ flag = true; // if flag is true alarm title already exists
+ break; // break from for loop
+ }
+
+ } // end of for loop
+
+ if (!flag)
+ {
+ __pEditField->SetText(title); // if flag is false alarm title is unique
+ __pLabelTitle->SetText(title);
+ break; // break from while loop
+ }
+
+ } // end of while loop
+ }
+ }
+
+ if (__pListView != null)
+ {
+ if (previousSceneId == IDSCN_EDIT_SNOOZE)
+ {
+ __pListView->RefreshList(0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ __pListView->RefreshList(1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ else
+ {
+ __pListView->UpdateList();
+ }
+ }
+
+
+ if (__pGroupedListView != null)
+ {
+ __pGroupedListView->UpdateList();
+ __pGroupedListView->SetItemEnabled(0,-1,false);
+ }
+
+ RearrangeControls();
+
+ if (__pListView != null)
+ {
+ __pListView->SetItemChecked(0,__pAlarm->GetSnoozeOn());
+ }
+
+ if (pToggleBtnPMBG != null)
+ {
+ delete pToggleBtnPMBG;
+ pToggleBtnPMBG = null;
+ }
+
+ if (pToggleBtnAMBG != null)
+ {
+ delete pToggleBtnAMBG;
+ pToggleBtnAMBG = null;
+ }
+
+ Invalidate(true);
+ StartAudio();
+}
+
+void
+AlarmEditorForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+
+ if (__pEditField != null)
+ {
+ //if (nextSceneId != IDSCN_TIMER_RINGING && nextSceneId != IDSCN_ALARM_RINGING)
+ {
+ __pEditField->HideKeypad();
+ }
+ }
+
+ //if (nextSceneId != IDSCN_TIMER_RINGING && nextSceneId != IDSCN_ALARM_RINGING)
+ {
+ if (__pBtnHourDisplay->HasFocus())
+ {
+ HideHourKeypad();
+ }
+ else if (__pBtnMinDisplay->HasFocus())
+ {
+ HideMinKeypad();
+ }
+ }
+
+ if (__player)
+ {
+ __player->Stop();
+ __player->Close();
+ }
+
+ GetHeader()->SetShowState(false);
+ Invalidate(true);
+
+}
+
+void
+AlarmEditorForm::OnFormBackRequested(Controls::Form& source)
+{
+ if(!__isAppControlCompleted)
+ {
+ SendUserEvent(REQUEST_ID_TERMINATE, null);
+ }
+}
+
+void
+AlarmEditorForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ AppLog("AlarmEditorForm::OnListViewItemStateChanged");
+ String repeatFlag = L"";
+ ArrayList *pArgList = null;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (__pEditField != null)
+ {
+ //__pEditField->HideKeypad();
+ }
+
+ if (index == 0)
+ {
+ if (status == LIST_ITEM_STATUS_UNCHECKED && __snoozeStatus == true)
+ {
+ __snoozeStatus = false;
+ __pAlarm->SetSnoozeOn(false);
+ __pListView->RefreshList(1,LIST_REFRESH_TYPE_ITEM_REMOVE);
+ __pListView->RefreshList(1,LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ else if(status == LIST_ITEM_STATUS_CHECKED && __snoozeStatus == false)
+ {
+ __snoozeStatus = true;
+ __pAlarm->SetSnoozeOn(true);
+ __pListView->RefreshList(1,LIST_REFRESH_TYPE_ITEM_ADD);
+ __pListView->RefreshList(1,LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ RearrangeControls();
+ }
+
+ else if (index == 1)
+ {
+ pArgList = new (std::nothrow) ArrayList();
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(*__pAlarm);
+ AppLog("the duration is %d", __pAlarm->GetSnoozeDuration());
+ }
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_EDIT_SNOOZE), pArgList);
+ }
+
+ __pListView->RefreshList(1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+ }
+
+
+ //__pListView->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ //__pListView->RefreshList(0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+}
+
+GroupItem*
+AlarmEditorForm::CreateGroupItem(int groupIndex, int itemWidth)
+{
+ result r = E_FAILURE;
+ String text;
+ GroupItem* pItem = null;
+ Bitmap* pbgActive = null;
+ AppResource* pAppResource = null;
+ const Color ITEM_TEXT_COLOR = Color(92, 151, 187);
+
+ pItem = new (std::nothrow) GroupItem();
+
+ if (pItem == null)
+ {
+ return null;
+ }
+
+ r = pItem->Construct(Dimension(itemWidth, 0));
+
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ switch (groupIndex)
+ {
+ case 0:
+ {
+ text = L"";
+ }
+ break;
+
+ case 1:
+ {
+ text = L"";
+ }
+ break;
+
+ case 2:
+ {
+ text = L"";
+ }
+ break;
+
+ }
+
+ pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ if (pAppResource != null)
+ {
+ pbgActive = pAppResource->GetBitmapN(IDB_EDIT_BACKGROUND, BITMAP_PIXEL_FORMAT_ARGB8888);
+
+ if (pbgActive == null)
+ {
+
+ if (pItem != null)
+ {
+ delete pItem;
+ pItem = null;
+ }
+
+ return null;
+ }
+ }
+ pItem->SetElement(text, null);
+ r = pItem->SetBackgroundBitmap(pbgActive);
+
+ if (pbgActive != null)
+ {
+ delete pbgActive;
+ pbgActive = null;
+ }
+
+ pItem->SetTextColor(ITEM_TEXT_COLOR);
+ return pItem;
+}
+
+ListItemBase*
+AlarmEditorForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
+{
+ result r = E_SUCCESS;
+
+ String titleText = L"";
+ String mainText = CommonUtil::GetString("IDS_ALM_BODY_TYPE");
+ String defaultTitleText = L"default";
+
+ int fontSize = 0;
+ ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ fontSize = pClock->GetFontSize();
+ AppLog("fontsize:%d",fontSize);
+
+ if (itemIndex == 0)
+ {
+ DropDownCustomItem* pItem = new (std::nothrow) DropDownCustomItem();
+ r = pItem->Construct(itemWidth, fontSize);
+
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+ pItem->SetMainText(mainText);
+
+ if (__typeName == 0)
+ {
+ __typeNameValue = CommonUtil::GetString(L"IDS_ALM_BODY_MELODY");
+ }
+
+ if (__typeName == 1)
+ {
+ __typeNameValue = CommonUtil::GetString(L"IDS_ALM_BODY_ALERTTYEP_VIBRATION");
+ }
+
+ if (__typeName == 2)
+ {
+ __typeNameValue = CommonUtil::GetString(L"IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION");
+ }
+
+ pItem->SetSubText(__typeNameValue);
+
+ if (!__showType)
+ {
+ pItem->SetCurState(DROP_DOWN_ITEM_STATE_CLOSED);
+ }
+ else
+ {
+ pItem->SetCurState(DROP_DOWN_ITEM_STATE_OPENED);
+ }
+
+ r = pItem->MakeElements(fontSize);
+
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ return pItem;
+ }
+
+ if (__showType && (itemIndex > 0 && itemIndex < 4))
+ {
+ AppLog("the selected index is %d", __selectedIndex);
+ switch (itemIndex)
+ {
+ case 1:
+ {
+ titleText = CommonUtil::GetString(L"IDS_ALM_BODY_MELODY");
+ }
+ break;
+
+ case 2:
+ {
+ titleText = CommonUtil::GetString(L"IDS_ALM_BODY_ALERTTYEP_VIBRATION");
+ }
+ break;
+
+ case 3:
+ {
+ titleText = CommonUtil::GetString(L"IDS_ALM_BODY_ALERTTYEP_MELODY_AND_VIBRATION");
+ }
+ break;
+ }
+
+ RadioCustomItem* pItem = new (std::nothrow) RadioCustomItem();
+
+ r = pItem->Construct(itemWidth, fontSize);
+
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_HIGHLIGHTED, Color(86, 135, 193));
+
+ pItem->SetText(titleText);
+
+ if (__selectedIndex == itemIndex)
+ {
+ pItem->SetSelected(true);
+ }
+ else
+ {
+ pItem->SetSelected(false);
+ }
+
+ if (pItem->GetSelected())
+ {
+ __typeNameValue = pItem->GetText();
+ }
+
+ pItem->Make(fontSize);
+ return pItem;
+ }
+
+ if ((itemIndex == 1 && !__showType) || (itemIndex == 4 && __showType))
+ {
+
+ DefaultCustomItem* pItem = new (std::nothrow) DefaultCustomItem();
+ String ringTone = __pAlarm->GetRingTone();
+ __audioFilePath = ringTone;
+ if(File::IsFileExist(__audioFilePath) == false)
+ {
+ __audioFilePath = AlarmPresentationModel::GetInstance()->defaultAudioPath;
+ __pAlarm->SetRingTone(__audioFilePath);
+ ringTone = __audioFilePath;
+ }
+ String titleText = CommonUtil::GetString(L"IDS_ALM_BODY_TONE");
+ if(__typeName == 1)
+ {
+ r = pItem->Construct(itemWidth, fontSize);
+ }
+ else
+ {
+ r = pItem->Construct(itemWidth, fontSize);
+ }
+
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_HIGHLIGHTED, Color(86, 135, 193));
+
+ pItem->SetText(titleText);
+ int index = 0;
+ while(ringTone.Contains(L"/"))
+ {
+ ringTone.IndexOf('/', 0, index);
+ ringTone.Remove(0, index + 1);
+ }
+ pItem->SetSubText(ringTone);
+
+ pItem->Make(fontSize);
+
+ return pItem;
+ }
+ return null;
+}
+
+ListItemBase*
+AlarmEditorForm::CreateItem(int itemIndex, int itemWidth)
+{
+ result r = E_SUCCESS;
+ String repeatFlag;
+ String flag;
+ String titleText;
+ int itemHeight = 112;
+
+ int fontSize = 0;
+ ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ fontSize = pClock->GetFontSize();
+
+ if (itemIndex == 0)
+ {
+ ToggleCustomItem* pItem = new (std::nothrow) ToggleCustomItem();
+ titleText = CommonUtil::GetString(L"IDS_ALM_BODY_SNOOZE");
+ r = pItem->Construct(itemWidth, itemHeight);
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_HIGHLIGHTED, Color(86, 135, 193));
+ pItem->SetText(titleText);
+
+ pItem->Make();
+
+ return pItem;
+ }
+
+ else
+ {
+ DefaultCustomItem* pItem = new (std::nothrow) DefaultCustomItem();
+ titleText = CommonUtil::GetString(L"IDS_ALM_BODY_SNOOZE_DURATION");
+ titleText.Append(" & ");
+ titleText.Append(CommonUtil::GetString(L"IDS_ALM_BODY_REPEAT"));
+ r = pItem->Construct(itemWidth, fontSize);
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_HIGHLIGHTED, Color(86, 135, 193));
+
+ pItem->SetText(titleText);
+ pItem->SetSubText(__snoozeDurationValue);
+
+ r = pItem->Make(fontSize);
+
+ if (IsFailed(r))
+ {
+ delete pItem;
+ return null;
+ }
+
+ return pItem;
+ }
+ return null;
+}
+
+bool
+AlarmEditorForm::DeleteGroupItem(int groupIndex, GroupItem* pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+bool
+AlarmEditorForm::DeleteItem(int groupIndex, int itemIndex, ListItemBase* pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+bool
+AlarmEditorForm::DeleteItem(int itemIndex, ListItemBase* pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+int
+AlarmEditorForm::GetGroupCount(void)
+{
+ return 1;
+}
+
+int
+AlarmEditorForm::GetItemCount(void)
+{
+ if (__pAlarm != null && __pAlarm->GetSnoozeOn() == false)
+ {
+ __snoozeStatus = false;
+ return 1;
+ }
+ else
+ {
+ __snoozeStatus = true;
+ return 2;
+ }
+}
+
+int
+AlarmEditorForm::GetItemCount(int groupIndex)
+{
+ if (__showType == true)
+ {
+ if (__typeName == 1)
+ {
+ return 4;
+ }
+ return 5;
+ }
+ else
+ {
+ if (__typeName == 1)
+ {
+ return 1;
+ }
+ return 2;
+ }
+}
+
+void
+AlarmEditorForm::OnGroupedListViewItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListItemStatus status)
+{
+ result r = E_SUCCESS;
+ AppControl* pAc = null;
+
+ Frame* pFrame = dynamic_cast<Frame*>(GetParent());
+ if(pFrame)
+ {
+ Form *pForm = pFrame->GetCurrentForm();
+ if(pForm->GetHashCode() != this->GetHashCode())
+ {
+ return;
+ }
+ }
+
+ if (itemIndex == 0)
+ {
+ if(__showType == true)
+ {
+ __showType = !__showType;
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ }
+ else if(__showType == false)
+ {
+ __showType = !__showType;
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_ADD);
+ r = __pGroupedListView->RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_ADD);
+ r = __pGroupedListView->RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_ADD);
+ }
+
+ r = __pGroupedListView->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+ RearrangeControls();
+ }
+ else
+ {
+ if(__showType && itemIndex == 1)
+ {
+ __selectedIndex = itemIndex;
+
+ if (__typeName != 0 && __typeName != 2)
+ {
+ r = __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_ADD);
+ }
+
+ __typeName = __selectedIndex - 1;
+ r = __pGroupedListView->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ if(__showType && itemIndex == 2)
+ {
+ __selectedIndex = itemIndex;
+ __typeName = __selectedIndex - 1;
+ r = __pGroupedListView->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ }
+ if(__showType && itemIndex == 3)
+ {
+ __selectedIndex = itemIndex;
+
+ if (__typeName != 0 && __typeName != 2)
+ {
+ r = __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_ADD);
+ }
+
+ __typeName = __selectedIndex - 1;
+ r = __pGroupedListView->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+ }
+
+ if ((itemIndex == 1 && !__showType )||(itemIndex == 4 && __showType))
+ {
+ __pBtnHourDisplay->RemoveActionEventListener(*this);
+ __pBtnMinDisplay->RemoveActionEventListener(*this);
+ __pEditField->SetEnabled(false);
+
+
+ if(__isAppControlCompleted == true)
+ {
+ return;
+ }
+
+
+ pAc = AppManager::FindAppControlN(L"tizen.filemanager", L"http://tizen.org/appcontrol/operation/pick");
+
+ if (pAc != null)
+ {
+ HashMap *pHashMap = new HashMap();
+
+ if(pHashMap != null)
+ {
+ pHashMap->Construct();
+ pHashMap->Add(*new String("http://tizen.org/appcontrol/data/selection/mode"), * new String("single"));
+ String* mimeType = new String("audio/*");
+ SetFormBackEventListener(null);
+ __isAppControlCompleted = true;
+ r = pAc->Start(null, mimeType, pHashMap, this);
+ AppLogDebug("the result is %s", GetErrorMessage(r));
+
+ delete pAc;
+ pAc = null;
+
+ if (mimeType != null)
+ {
+ delete mimeType;
+ mimeType = null;
+ }
+
+ pHashMap->RemoveAll();
+ delete pHashMap;
+ pHashMap = null;
+
+ }
+
+ }
+
+ r = __pGroupedListView->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = __pGroupedListView->RefreshList(0, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+ }
+ RearrangeControls();
+ }
+
+}
+
+void
+AlarmEditorForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ AppLog("AlarmEditorForm::OnOrientationChanged");
+
+ if (__pGroupedListView != null)
+ {
+ __pGroupedListView->UpdateList();
+ }
+
+ if (__pScrollPanel != null)
+ {
+ AppLog("the height of client is %d", GetClientAreaBounds().height);
+ __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+ //__pScrollPanel->SetScrollBarVisible(true);
+ }
+
+ RearrangeControls();
+
+ if (__pEditField->HasFocus() == true && __pScrollPanel != null)
+ {
+ AppLog("coming here");
+ //__pScrollPanel->SetScrollPosition(10000,false);
+ //__pScrollPanel->Invalidate(false);
+ __pScrollPanel->ScrollToBottom();
+
+ }
+
+ if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE && (__pBtnHourDisplay->HasFocus() == true || __pBtnMinDisplay->HasFocus() == true) && __pScrollPanel != null)
+ {
+ __pScrollPanel->SetScrollPosition(0);
+ }
+
+ if (!__pEditField->HasFocus())
+ {
+ if (__pHourImf->GetInputPanelBounds().height > 0 )
+ {
+ __inputConnectionHeight = __pHourImf->GetInputPanelBounds().height;
+ SetBounds(Rectangle(0, 0, GetBounds().width, GetBounds().height - __inputConnectionHeight));
+ }
+ else if (__pMinImf->GetInputPanelBounds().height > 0)
+ {
+ __inputConnectionHeight = __pMinImf->GetInputPanelBounds().height;
+ SetBounds(Rectangle(0, 0, GetBounds().width, GetBounds().height - __inputConnectionHeight));
+ }
+ }
+
+ Invalidate(true);
+}
+
+void
+AlarmEditorForm::RearrangeControls(void)
+{
+
+ int panelHeight = __pSlider->GetHeight();
+ int list1HeightOff = 256 ;
+ int list1HeightOn = 592 ;
+ int list2HeightOff = 256 ;
+ int list2HeightOn = 256 ;
+
+ int editFieldHeight = 0;
+ int heightOffset = 0;
+
+ ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ heightOffset = pClock->GetHeightOffset();
+ AppLog("the offset: %d",heightOffset);
+
+ //if (pClock->GetFontSize() != 44)
+ {
+ editFieldHeight = pClock->GetFontSize()+40;
+ }
+ if (__pGroupedListView == NULL || __pListView == NULL || __pEditField == NULL)
+ {
+ return;
+ }
+
+ if(__typeName == 1)
+ {
+ list1HeightOn -= (128 + heightOffset);
+ list1HeightOff -= (128 + heightOffset);
+ }
+
+ list1HeightOn += 5 * heightOffset;
+ list1HeightOff += 2 * heightOffset;
+ list2HeightOn += heightOffset;
+ list2HeightOff += heightOffset;
+
+ if (__showType == false)
+ {
+
+ __pGroupedListView->SetBounds(Rectangle(__pGroupedListView->GetBounds().x,__pGroupedListView->GetBounds().y, __pGroupedListView->GetWidth(), list1HeightOff));
+ if(__typeName != 1)
+ {
+ __pSlider->SetShowState(true);
+ __pSlider->SetBounds(Rectangle(__pSlider->GetX(),__pGroupedListView->GetY()+__pGroupedListView->GetHeight(), __pSlider->GetWidth(), __pSlider->GetHeight()));
+ __pListView->SetBounds(Rectangle(__pListView->GetBounds().x,__pSlider->GetY()+__pSlider->GetHeight(), __pListView->GetWidth(), list2HeightOff));
+ }
+ else
+ {
+ __pSlider->SetShowState(false);
+ __pListView->SetBounds(Rectangle(__pListView->GetBounds().x,__pGroupedListView->GetY()+__pGroupedListView->GetHeight(), __pListView->GetWidth(), list2HeightOff));
+ }
+
+ __pLabelEditfieldTitle->SetBounds(Rectangle(__pLabelEditfieldTitle->GetX(),__pListView->GetY()+__pListView->GetHeight()+15, __pLabelEditfieldTitle->GetWidth(), __pLabelEditfieldTitle->GetHeight()));
+ __pEditField->SetBounds(Rectangle(__pEditField->GetX(), __pLabelEditfieldTitle->GetY()+__pLabelEditfieldTitle->GetHeight(), __pEditField->GetWidth(),editFieldHeight /*__pEditField->GetHeight()+editFieldOffset*/));
+ if(__typeName == 1)
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pLabelEditfieldTitle->GetHeight()+35;
+ }
+ else
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pSlider->GetHeight()+__pLabelEditfieldTitle->GetHeight()+35;
+ }
+ __pPanelList->SetBounds(Rectangle(__pPanelList->GetX(), __pPanelList->GetY(), __pPanelList->GetWidth(), panelHeight));
+ }
+ else
+ {
+ __pGroupedListView->SetBounds(Rectangle(__pGroupedListView->GetBounds().x,__pGroupedListView->GetBounds().y, __pGroupedListView->GetWidth(), list1HeightOn));
+ if(__typeName != 1)
+ {
+ __pSlider->SetShowState(true);
+ __pSlider->SetBounds(Rectangle(__pSlider->GetX(),__pGroupedListView->GetY()+__pGroupedListView->GetHeight(), __pSlider->GetWidth(), __pSlider->GetHeight()));
+ __pListView->SetBounds(Rectangle(__pListView->GetBounds().x,__pSlider->GetY()+__pSlider->GetHeight(), __pListView->GetWidth(), list2HeightOn));
+ }
+ else
+ {
+ __pSlider->SetShowState(false);
+ __pListView->SetBounds(Rectangle(__pListView->GetBounds().x,__pGroupedListView->GetY()+__pGroupedListView->GetHeight(), __pListView->GetWidth(), list2HeightOn));
+ }
+ __pLabelEditfieldTitle->SetBounds(Rectangle(__pLabelEditfieldTitle->GetX(),__pListView->GetY()+__pListView->GetHeight()+15, __pLabelEditfieldTitle->GetWidth(),__pLabelEditfieldTitle->GetHeight()));
+ __pEditField->SetBounds(Rectangle(__pEditField->GetX(), __pLabelEditfieldTitle->GetY()+__pLabelEditfieldTitle->GetHeight(), __pEditField->GetWidth(), editFieldHeight/*__pEditField->GetHeight()*/));
+ if(__typeName == 1)
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pLabelEditfieldTitle->GetHeight()+35;
+ }
+ else
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pSlider->GetHeight()+__pLabelEditfieldTitle->GetHeight()+35;
+ }
+ __pPanelList->SetBounds(Rectangle(__pPanelList->GetX(), __pPanelList->GetY(), __pPanelList->GetWidth(), panelHeight));
+ }
+
+ if (__pAlarm->GetSnoozeOn() == false)
+ {
+ __pListView->SetBounds(Rectangle(__pListView->GetBounds().x,__pListView->GetBounds().y, __pListView->GetWidth(), 112));
+ __pLabelEditfieldTitle->SetBounds(Rectangle(__pLabelEditfieldTitle->GetX(),__pListView->GetY() + __pListView->GetHeight(), __pLabelEditfieldTitle->GetWidth(), __pLabelEditfieldTitle->GetHeight()));
+ __pEditField->SetBounds(Rectangle(__pEditField->GetX(), __pLabelEditfieldTitle->GetY()+__pLabelEditfieldTitle->GetHeight(), __pEditField->GetWidth(),editFieldHeight /*__pEditField->GetHeight()*/));
+ if(__typeName == 1)
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pLabelEditfieldTitle->GetHeight()+35;
+ }
+ else
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pSlider->GetHeight()+__pLabelEditfieldTitle->GetHeight()+35;
+ }
+ __pPanelList->SetBounds(Rectangle(__pPanelList->GetX(),__pPanelList->GetY(), __pPanelList->GetWidth(), panelHeight));
+ }
+ else
+ {
+ __pListView->SetBounds(Rectangle(__pListView->GetBounds().x,__pListView->GetBounds().y, __pListView->GetWidth(), 240 + heightOffset));
+ __pLabelEditfieldTitle->SetBounds(Rectangle(__pLabelEditfieldTitle->GetX(), __pListView->GetY() + __pListView->GetHeight(), __pLabelEditfieldTitle->GetWidth(), __pLabelEditfieldTitle->GetHeight()));
+ __pEditField->SetBounds(Rectangle(__pEditField->GetX(), __pLabelEditfieldTitle->GetY()+__pLabelEditfieldTitle->GetHeight(), __pEditField->GetWidth(),editFieldHeight /*__pEditField->GetHeight()*/));
+ if(__typeName == 1)
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pLabelEditfieldTitle->GetHeight()+35;
+ }
+ else
+ {
+ panelHeight = __pEditField->GetHeight()+ __pListView->GetHeight() + __pGroupedListView->GetHeight() + __pSlider->GetHeight()+__pLabelEditfieldTitle->GetHeight()+35;
+ }
+ __pPanelList->SetBounds(Rectangle(__pGroupedListView->GetX(),__pPanelList->GetY(), __pPanelList->GetWidth(), panelHeight));
+ }
+
+ if (__pPanelList->GetShowState() == false)
+ {
+ AppLog("coming here");
+ AppLog("the client height is %d", GetClientAreaBounds().height);
+ panelHeight = GetClientAreaBounds().height - __pBtnMore->GetY();
+
+ if (panelHeight < 0)
+ {
+ panelHeight = 0;
+ }
+ __pPanelList->SetBounds(Rectangle(__pPanelList->GetX(), __pPanelList->GetY(), __pPanelList->GetWidth(), panelHeight));
+
+ if (__pScrollPanel != null)
+ {
+ __pScrollPanel->SetScrollBarVisible(false);
+ AppLog("Scroll Panel: y: %d h:%d", __pScrollPanel->GetY(), __pScrollPanel->GetHeight());
+ }
+ }
+ AppLog("PanelList: y: %d h:%d", __pPanelList->GetY(), __pPanelList->GetHeight());
+ Invalidate(true);
+ AppLog("PanelList: y: %d h:%d", __pPanelList->GetY(), __pPanelList->GetHeight());
+
+}
+
+void
+AlarmEditorForm::OnKeypadClosed(Control& source)
+{
+ AppLog("OnKeypadClosed");
+
+ if (Clipboard::GetInstance()->IsPopupVisible() == false)
+ {
+ GetHeader()->RemoveAllButtons();
+ SetActionBarsVisible(FORM_ACTION_BAR_HEADER, false);
+ SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true);
+ __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+ }
+ else
+ {
+ Clipboard::GetInstance()->ShowPopup(CLIPBOARD_DATA_TYPE_TEXT, *this);
+ AppLog("the client height is %d", GetClientAreaBounds().height);
+ }
+
+ RearrangeControls();
+
+ Invalidate(true);
+
+ return;
+}
+
+void
+AlarmEditorForm::OnKeypadOpened(Control& source)
+{
+ ButtonItem save;
+ ButtonItem cancel;
+ Header* pHeader = GetHeader();
+ String textEntered = L"";
+
+ if (__pEditField != null)
+ {
+ textEntered = __pEditField->GetText();
+ }
+ textEntered.Trim();
+
+ if (pHeader == null)
+ {
+ return;
+ }
+
+ if (__player)
+ {
+ __player->Stop();
+ }
+
+ if (&source == (static_cast<Control*>(__pEditField)))
+ {
+ GetFooter()->SetShowState(true);
+ GetFooter()->Invalidate(true);
+
+ if ( __pEditField != null)
+ {
+ String alarmName = __pEditField->GetText();
+ alarmName.Trim();
+ if(alarmName.GetLength() == 0)
+ {
+ GetFooter()->SetItemEnabled(0,false);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0,true);
+ }
+
+ if (__pScrollPanel != null)
+ {
+ __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+ __pScrollPanel->ScrollToBottom();
+ }
+ }
+ }
+
+ if ( (__pEditField != null && textEntered.GetLength() == 0) || (__pBtnHourDisplay->GetText().GetLength() == 0 || __pBtnMinDisplay->GetText().GetLength() == 0) )
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ }
+
+ Invalidate(true);
+ return;
+}
+
+void
+AlarmEditorForm::OnKeypadWillOpen(Control& source)
+{
+
+}
+
+void
+AlarmEditorForm::OnKeypadBoundsChanged(Tizen::Ui::Control& source)
+{
+ AppLog("AlarmEditorForm::OnKeypadBoundsChanged");
+}
+
+
+void
+AlarmEditorForm::OnTextValueChanged(const Control& source)
+{
+ AppLog("AlarmEditorForm::OnTextValueChanged");
+ String textEntered = L"";
+ Header* pHeader = GetHeader();
+ String hourValue;
+ String minValue;
+ result r = E_FAILURE;
+ MessageBox __pMsgBox;
+
+ if (__pEditField == null)
+ {
+ return;
+ }
+
+ if (__pEditField != null)
+ {
+ textEntered = __pEditField->GetText();
+ }
+ textEntered.Trim();
+
+ if ( __pEditField && textEntered.GetLength() == 0 )
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ }
+
+ pHeader->SetTitleText(textEntered);
+
+ __pLabelTitle->SetText(textEntered);
+
+ if ( (__pEditField != null && textEntered.GetLength() == 0) || (__pBtnHourDisplay->GetText().GetLength() == 0 || __pBtnMinDisplay->GetText().GetLength() == 0) )
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ }
+
+ Invalidate(true);
+
+ if ( __pEditField->GetTextLength() >= 250 && &source == __pEditField && __showMessageBox)
+ {
+
+ __pEditField->RemoveTextEventListener(*this);
+ String msg = CommonUtil::GetString("IDS_MAX_CHARACTER_LIMIT_MESSAGE");
+ r = __pMsgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ __pMsgBox.ShowAndWait(__modalMsgBoxResult);
+ __pEditField->AddTextEventListener(*this);
+ __pEditField->ShowKeypad();
+ }
+ __showMessageBox = true;
+ return;
+}
+
+void
+AlarmEditorForm::OnTextValueChangeCanceled(const Control& source)
+{
+
+ GetHeader()->SetTitleText(__defaultEditFieldValue);
+
+
+ if (__pEditField != null)
+ {
+ __pEditField->SetText(__defaultEditFieldValue);
+
+ if (__pEditField->GetText() == 0 )
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ }
+ }
+
+ Invalidate(true);
+ return;
+}
+
+void
+AlarmEditorForm::OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo)
+{
+ if (__pEditField)
+ {
+ __pEditField->HideKeypad();
+ }
+}
+
+void
+AlarmEditorForm::OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo)
+{
+
+ if(__pSlider != null && &source != __pSlider)
+ {
+ __isPlaying = false;
+ if (__player)
+ {
+ __player->Stop();
+ }
+ }
+
+ if (&source == __pBtnHourDisplay)
+ {
+ __pBtnHourDisplay->SetFocus();
+ }
+ else if (&source == __pBtnMinDisplay)
+ {
+ __pBtnMinDisplay->SetFocus();
+ }
+ else
+ {
+ if (__pBtnHourDisplay->HasFocus())
+ {
+ HideHourKeypad();
+ }
+ else if (__pBtnMinDisplay->HasFocus())
+ {
+ HideMinKeypad();
+ }
+ SetFocus();
+ }
+ //Invalidate(true);
+}
+
+void
+AlarmEditorForm::OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData)
+{
+ ArrayList* pMediaResult = null;
+ SetFormBackEventListener(this);
+ __pBtnHourDisplay->AddActionEventListener(*this);
+ __pBtnMinDisplay->AddActionEventListener(*this);
+ __pEditField->SetEnabled(true);
+ __pEditField->Invalidate(false);
+
+ AppLog("providerId: %ls, operationId: %ls, media res:%d ", appId.GetPointer(), operationId.GetPointer(), appControlResult);
+ ///if (providerId.CompareTo(L"tizen.filemanager") == 0 && operationId.CompareTo(L"http://tizen.org/appcontrol/operation/pick") == 0)
+ {
+ if (pExtraData != null)
+ {
+ pMediaResult = (ArrayList*)pExtraData->GetValue(* new String("http://tizen.org/appcontrol/data/selected"));
+ if(pMediaResult != null)
+ {
+ String *pPath = dynamic_cast<String*>(pMediaResult->GetAt(0));
+ if (pPath == null)
+ {
+ return;
+ }
+
+ __pAlarm->SetRingTone(*pPath);
+ __audioFilePath = __pAlarm->GetRingTone();
+ __pGroupedListView->RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ __pGroupedListView->RefreshList(0, 4, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ AppLog("File set : %ls", pPath->GetPointer());
+
+ }
+ else
+ {
+ AppLog("Media not found");
+ }
+ }
+ else
+ {
+ AppLog("pResultList is null");
+ }
+
+ __isAppControlCompleted = false;
+ __pGroupedListView->Invalidate(true);
+
+ StartAudio();
+ }
+}
+
+void
+AlarmEditorForm::OnSliderBarMoved(Tizen::Ui::Controls::Slider& source, int value)
+{
+ AppLog("AlarmEditorForm::OnSliderBarMoved value = %d", value);
+ if (__sliderValue == value)
+ {
+ return;
+ }
+ __sliderValues.Push(value);
+
+ SettingInfo::RemoveSettingEventListener(*this);
+ SettingInfo::SetValue(L"http://tizen.org/setting/sound.media.volume", value);
+ SettingInfo::AddSettingEventListener(*this);
+
+ if(__pSlider)
+ {
+ __pSlider->SetFocus();
+ __pSlider->Invalidate(false);
+ }
+
+ if(__sliderValues.GetCount() == 1)
+ {
+ SendUserEvent(10000, null);
+ }
+
+ __sliderValue = value;
+}
+
+void
+AlarmEditorForm::OnClipboardPopupClosed(const Tizen::Ui::ClipboardItem* pClipboardItem)
+{
+ AppLog("OnClipboardPopupClosed");
+
+ if ( __pEditField != null && __pEditField->GetText() == 0 )
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ }
+
+ GetFooter()->Invalidate(true);
+}
+
+void
+AlarmEditorForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ if ( key == L"http://tizen.org/setting/locale.time.format.24hour")
+ {
+ int hour = 0;
+ int minute = 0;
+ String hourVal, minVal;
+ int timeFormat = 12;
+
+ minVal = __pBtnMinDisplay->GetText();
+ Integer::Parse(minVal, minute);
+ hourVal = __pBtnHourDisplay->GetText();
+ Integer::Parse(hourVal, hour);
+
+
+ int alarmTimeHour, alarmTimeMin;
+ Bitmap* pToggleBtnPMBG = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_TOGGLE_PM_BG);
+ Bitmap* pToggleBtnAMBG = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_TOGGLE_AM_BG);
+
+
+ SettingInfo::GetValue(key, is24HourFormat);
+
+ if (is24HourFormat == true)
+ {
+ if (__defaultToggleValue == CommonUtil::GetString(L"IDS_COM_BODY_AM"))
+ {
+ if(hour == 12)
+ {
+ hour = 0;
+ }
+
+ }
+ else if (__defaultToggleValue == CommonUtil::GetString(L"IDS_COM_POP_PM"))
+ {
+
+ if(hour != 12)
+ {
+ hour = hour + 12;
+ }
+
+ }
+ }
+
+ alarmTimeHour = hour;
+ alarmTimeMin = minute;
+
+ if(is24HourFormat == false)
+ {
+ if (alarmTimeHour < timeFormat)
+ {
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_BODY_AM");
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnAMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnAMBG);
+ }
+ else
+ {
+ alarmTimeHour = alarmTimeHour - timeFormat;
+ __defaultToggleValue = CommonUtil::GetString(L"IDS_COM_POP_PM");
+ __pBtnToggle->SetNormalBackgroundBitmap(*pToggleBtnPMBG);
+ __pBtnToggle->SetPressedBackgroundBitmap(*pToggleBtnPMBG);
+ }
+
+ __pBtnToggle->SetShowState(true);
+ __pLabelAm->SetShowState(true);
+ __pLabelPm->SetShowState(true);
+ }
+ else
+ {
+ __pBtnToggle->SetShowState(false);
+ __pLabelAm->SetShowState(false);
+ __pLabelPm->SetShowState(false);
+ }
+
+ if(alarmTimeHour == 0 && is24HourFormat == false)
+ {
+ alarmTimeHour = 12;
+ }
+
+ hourVal.Clear();
+ minVal.Clear();
+
+
+ if ( alarmTimeHour < 10)
+ {
+ hourVal.Append(0);
+ }
+
+ if (alarmTimeMin < 10)
+ {
+ minVal.Append(0);
+ }
+
+ hourVal.Append(alarmTimeHour);
+ minVal.Append(alarmTimeMin);
+
+ __pBtnHourDisplay->SetText(hourVal);
+ __pBtnMinDisplay->SetText(minVal);
+ __pBtnHourDisplay->Invalidate(false);
+ __pBtnMinDisplay->Invalidate(false);
+
+ }
+
+ if (key == L"http://tizen.org/setting/sound.media.volume" )
+ {
+ SettingInfo::GetValue(key, systemVolume);
+ if(__pSlider != NULL)
+ {
+ __pSlider->RemoveSliderEventListener(*this);
+ __pSlider->SetValue(systemVolume);
+ __pSlider->AddSliderEventListener(*this);
+ __pSlider->Invalidate(true);
+ }
+
+ if (__player != null && __player->GetState() != PLAYER_STATE_PLAYING)
+ {
+ __player->SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ __isPlaying = true;
+ __player->Play();
+ }
+
+ if(__player != null)
+ {
+ __player->SetVolume((100 * systemVolume)/15);
+ }
+ }
+}
+
+void
+AlarmEditorForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ if (requestId == REQUEST_ID_TERMINATE)
+ {
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_ALARM_LIST));
+ }
+
+ }
+ else
+ {
+ if (__sliderValues.GetCount())
+ {
+ int sliderValue = -1;
+ __sliderValues.Pop(sliderValue);
+ __sliderValues.RemoveAll();
+
+ if(__player != null && __player->GetState() != PLAYER_STATE_PLAYING)
+ {
+ __player->SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ __isPlaying = true;
+ __player->Play();
+ }
+
+ if(__player != null)
+ {
+ __player->SetVolume((100 * sliderValue)/15);
+ }
+ }
+ }
+}
+
+void
+AlarmEditorForm::StartAudio(void)
+{
+ result r = E_SUCCESS;
+ if (__audioFilePath != L"")
+ {
+ __player->Close();
+ r = __player->OpenFile(__audioFilePath, false);
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of openfile is %s", GetErrorMessage(r));
+ return;
+ }
+
+ r = __player->SetLooping(true);
+ __player->SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ r = __player->Play();
+ __player->SetVolume(100);
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of play is %s", GetErrorMessage(r));
+ return;
+ }
+ __player->Pause();
+ __isPlaying = false;
+ }
+}
+
+void
+AlarmEditorForm::OnDeviceStateChanged(Tizen::System::DeviceType deviceType, const Tizen::Base::String& state)
+{
+ if(deviceType == DEVICE_TYPE_STORAGE_CARD)
+ {
+ if(File::IsFileExist(__audioFilePath) == false)
+ {
+ __audioFilePath = AlarmPresentationModel::GetInstance()->defaultAudioPath;
+ if(__pListView != null)
+ {
+ __pListView->UpdateList();
+ }
+ }
+ }
+}
+
+bool
+AlarmEditorForm::ValidatePastedText(const Tizen::Base::String &pastedText, Tizen::Base::String &replacedText)
+{
+ AppLog("AlarmEditorForm::ValidatePastedText");
+ MessageBox msgBox;
+ int textLength = __pEditField->GetText().GetLength() - replacedText.GetLength() + pastedText.GetLength();
+ if (textLength >= 250)
+ {
+ __showMessageBox = false;
+ __pEditField->RemoveTextEventListener(*this);
+ String msg = CommonUtil::GetString("IDS_MAX_CHARACTER_LIMIT_MESSAGE");
+ msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ msgBox.ShowAndWait(__modalMsgBoxResult);
+ __pEditField->AddTextEventListener(*this);
+ __pEditField->ShowKeypad();
+ }
+ return false;
+}
+
+void
+AlarmEditorForm::OnFocusGained (const Tizen::Ui::Control &source)
+{
+ AppLog("AlarmEditorForm::OnFocusGained");
+ if (&source == (static_cast<Control*>(__pEditField)))
+ {
+ Header* pHeader = GetHeader();
+
+ if (__pEditField != null)
+ {
+ pHeader->SetTitleText(__pEditField->GetText());
+ }
+
+ if (__pScrollPanel != null)
+ {
+ __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+ //__pScrollPanel->ScrollToBottom();
+ }
+ GetFooter()->SetFocusable(true);
+ }
+
+ if ((__pBtnHourDisplay != null && &source != __pBtnHourDisplay) && (__pBtnMinDisplay != null && &source != __pBtnMinDisplay))
+ {
+ if (__pBtnHourDisplay->HasFocus())
+ {
+ HideHourKeypad();
+ SetFocus();
+ }
+ else if (__pBtnMinDisplay->HasFocus())
+ {
+ HideMinKeypad();
+ SetFocus();
+ }
+ }
+
+ return;
+}
+
+
+void
+AlarmEditorForm::OnFocusLost (const Tizen::Ui::Control &source)
+{
+ AppLog("AlarmEditorForm::OnFocusLost ");
+ if(__pSlider != null && &source == __pSlider)
+ {
+ __isPlaying = false;
+ if (__player)
+ {
+ AppLog("AlarmEditorForm::OnFocusLost 1");
+ result r = __player->Stop();
+ AppLog("AlarmEditorForm::OnFocusLost result = %s", GetErrorMessage(r));
+ }
+ }
+
+}
+
+void
+AlarmEditorForm::OnInputConnectionTextCommitted(InputConnection& source, const Tizen::Base::String& committedText)
+{
+ AppLog("AlarmEditorForm::OnInputConnectionTextCommitted commited text =%shi", committedText.GetPointer());
+
+ String val = L"00";
+ String hourValue;
+ String minValue;
+ int hour = 0;
+ int min = 0;
+ String fullString;
+
+ if (__pHourImf != null && &source == __pHourImf)
+ {
+ if (__hourText.GetLength() == 2)
+ {
+ fullString = __hourText;
+ __hourText.Clear();
+ }
+ else
+ {
+ fullString = __pBtnHourDisplay->GetText();
+ }
+
+ fullString.Append(committedText);
+ __pBtnHourDisplay->SetText(fullString);
+
+ hourValue = fullString;
+ if(hourValue.GetLength() > 2)
+ {
+ hourValue.SubString(hourValue.GetLength() - 1, val);
+ }
+ else
+ {
+ val = hourValue;
+ }
+
+ Integer::Parse(val, hour);
+ if(IsFailed(GetLastResult()))
+ {
+ hour = 0;
+ }
+
+ __pBtnHourDisplay->SetText(val);
+
+ if (val.GetLength() == 2)
+ {
+ isHourClicked = false;
+
+ Canvas* pCanvas = null;
+ Bitmap* pbgBitmap = null;
+ Bitmap* pFinalBitmap = null;
+ Bitmap* pbgFocusBitmap = null;
+ Bitmap* pFinalBitmapFocused = null;
+ Bitmap* pBgNormalBitmap = null;
+ Canvas* pCanvasFocused = null;
+ int canvasWidth = 276;
+ int canvasHeight = 236;
+
+ pBgNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_NORMAL_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pBgNormalBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_FOCUS_BG);
+ pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_TIME_BG);
+
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != null)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ __pBtnMinDisplay->SetFocus();
+ ShowMinKeypad();
+
+ __pBtnMinDisplay->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnMinDisplay->SetPressedBackgroundBitmap(*pFinalBitmapFocused);
+ __pBtnHourDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ }
+ if (is24HourFormat == false)
+ {
+ if (hour > 12 || fullString == "00")
+ {
+ __pBtnHourDisplay->SetText(L"12");
+ __pBtnMinDisplay->SetFocus();
+ ShowMinKeypad();
+ }
+
+ /*if (isHourClicked == false)
+ {
+ __pBtnMinDisplay->SetFocus();
+ ShowMinKeypad();
+ }*/
+ }
+ else
+ {
+ if (hour >= 24)
+ {
+ __pBtnHourDisplay->SetText(L"23");
+ __pBtnMinDisplay->SetFocus();
+ ShowMinKeypad();
+ }
+ }
+
+ __pBtnHourDisplay->Invalidate(true);
+ __pBtnMinDisplay->Invalidate(true);
+ }
+ else if (__pMinImf != null && &source == __pMinImf)
+ {
+ if (__hourText.GetLength() == 2)
+ {
+ fullString = __hourText;
+ __hourText.Clear();
+ }
+ else
+ {
+ fullString = __pBtnMinDisplay->GetText();
+ }
+
+ fullString.Append(committedText);
+ __pBtnMinDisplay->SetText(fullString);
+
+ minValue = fullString;
+ if(minValue.GetLength() > 2)
+ {
+ minValue.SubString(minValue.GetLength() - 1, val);
+ }
+ else
+ {
+ val = minValue;
+ }
+
+
+ Integer::Parse(val, min);
+
+ __pBtnMinDisplay->SetText(val);
+ //__pEditFieldHour->SetText(val);
+ //__hourText = val;
+
+ if (val.GetLength() > 0 && min > 59)
+ {
+ __pBtnMinDisplay->SetText(L"59");
+ //__pEditFieldHour->SetText(L"0");
+ //__hourText = "0";
+ }
+ __pBtnMinDisplay->Invalidate(true);
+ }
+
+ if (__pBtnHourDisplay->GetText() == "" || __pBtnMinDisplay->GetText() == "")
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ GetFooter()->Invalidate(true);
+ }
+
+}
+
+result
+AlarmEditorForm::ShowHourKeypad()
+{
+ result r = E_SUCCESS;
+
+ if(__pHourImf != null)
+ {
+ __pHourImf->BindInputMethod();
+ r = __pHourImf->ShowInputPanel();
+ }
+
+ return r;
+}
+
+result
+AlarmEditorForm::HideHourKeypad()
+{
+ result r = E_SUCCESS;
+
+ if (__pHourImf != null)
+ {
+ r = __pHourImf->HideInputPanel();
+ __pHourImf->UnbindInputMethod();
+ }
+
+ return r;
+}
+
+result
+AlarmEditorForm::ShowMinKeypad()
+{
+ result r = E_SUCCESS;
+
+ if(__pMinImf != null)
+ {
+ __pMinImf->BindInputMethod();
+ r = __pMinImf->ShowInputPanel();
+ }
+
+ return r;
+}
+
+result
+AlarmEditorForm::HideMinKeypad()
+{
+ result r = E_SUCCESS;
+
+ if (__pMinImf != null)
+ {
+ r = __pMinImf->HideInputPanel();
+ __pMinImf->UnbindInputMethod();
+ }
+
+ return r;
+}
+
+void
+AlarmEditorForm::OnInputConnectionPanelShowStateChanged(InputConnection& source, InputPanelShowState showState)
+{
+ AppLog("AlarmEditorForm::OnInputConnectionPanelShowStateChanged");
+
+ if ((__pHourImf != null && &source == __pHourImf) || (__pMinImf != null && &source == __pMinImf) )
+ {
+ AppLog("source height = %d", source.GetInputPanelBounds().height);
+
+
+ if (showState == INPUT_PANEL_SHOW_STATE_SHOW)
+ {
+ __inputConnectionHeight = source.GetInputPanelBounds().height;
+ SetBounds(Rectangle(0, 0, GetBounds().width, GetBounds().height - __inputConnectionHeight));
+ }
+ else
+ {
+ SetBounds(Rectangle(0, 0, GetBounds().width, GetBounds().height + __inputConnectionHeight));
+ __inputConnectionHeight = 0;
+ }
+
+ if (__pScrollPanel != null)
+ {
+ __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+ __pScrollPanel->SetScrollBarVisible(true);
+ }
+
+ GetFooter()->SetShowState(true);
+ GetFooter()->Invalidate(true);
+ }
+ Invalidate(true);
+}
+
+void
+AlarmEditorForm::OnInputConnectionPanelBoundsChanged(InputConnection& source, const Rectangle& bounds)
+{
+ AppLog("AlarmEditorForm::OnInputConnectionPanelBoundsChanged");
+
+ if (__pScrollPanel != null && (&source == __pHourImf || &source == __pMinImf))
+ {
+ __pScrollPanel->ScrollToTop();
+ }
+}
+
+void
+AlarmEditorForm::OnTouchMoved(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+ AppLog("AlarmEditorForm::OnTouchMoved");
+
+ HideHourKeypad();
+ HideMinKeypad();
+
+}
+
+bool
+AlarmEditorForm::OnKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+ AppLog("AlarmEditorForm::OnKeyPressed");
+ String strHour = L"";
+ String strMin = L"";
+
+ if(keyEventInfo.GetKeyCode() == KEY_ENTER)
+ {
+ return true;
+ }
+
+ if(keyEventInfo.GetKeyCode() == KEY_BACKSPACE )
+ {
+ AppLog("AlarmEditorForm::OnKeyPressed:the back is clicked");
+ if(&source == __pBtnHourDisplay)
+ {
+ strHour = __pBtnHourDisplay->GetText();
+ strHour.Remove(strHour.GetLength()-1, 1);
+ __pBtnHourDisplay->SetText(strHour);
+ __pBtnHourDisplay->Invalidate(true);
+
+ if(__pBtnHourDisplay->GetText() == L"")
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+ }
+ }
+ if(&source == __pBtnMinDisplay)
+ {
+ strMin = __pBtnMinDisplay->GetText();
+ strMin.Remove(strMin.GetLength()-1, 1);
+ __pBtnMinDisplay->SetText(strMin);
+ __pBtnMinDisplay->Invalidate(true);
+
+ if(__pBtnMinDisplay->GetText() == L"")
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+ }
+ }
+ return true;
+ }
+ return false;
+}
+
+bool
+AlarmEditorForm::OnKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo)
+{
+ AppLog("AlarmEditorForm::OnKeyReleased");
+ if(keyEventInfo.GetKeyCode() == KEY_ENTER)
+ {
+ __pMinImf->HideInputPanel();
+ __pHourImf->HideInputPanel();
+ return true;
+ }
+ if(keyEventInfo.GetKeyCode() == KEY_BACKSPACE)
+ {
+ AppLog("the back is clicked");
+ return true;
+ }
+ return false;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file AlarmListForm.cpp
+ * @brief Used to define AlarmListForm
+ */
+
+#include <FApp.h>
+#include <FShell.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkAlarmListForm.h"
+#include "ClkAlarmPresentationModel.h"
+#include "ClkAlarmRepeatCustomItem.h"
+#include "ClkCommonLib.h"
+#include "ClkSceneRegister.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Shell;
+using namespace Tizen::System;
+
+static const int IDA_TABBAR_ITEM1_ALARM = 200;
+static const int IDA_TABBAR_ITEM1_WORLDCLOCK = 201;
+static const int IDA_TABBAR_ITEM2_STOPWATCH = 202;
+static const int IDA_TABBAR_ITEM3_TIMER = 203;
+static const int IDA_FOOTER_ITEM1_MORE = 204;
+static const int IDA_FOOTER_ITEM3_ADD = 205;
+static const int IDA_CONTEXT_ITEM_DELETE = 206;
+static const int IDA_SORTBY_CLICKED = 207;
+static const int IDA_DELETE_CLICKED = 208 ;
+static const int IDA_FORMAT_BITMAP = 503;
+static const int WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE = 800;
+static const int HEIGHT_CONTEXT_MENU_BUTTON = 72;
+const RequestId REQUEST_ID_TERMINATE = 20000;
+
+AlarmListForm::AlarmListForm()
+ :__alarmSortbyType(SORTBY_RECENT)
+ ,__pAlarm(null)
+ ,__pAppRegistry(null)
+ ,__pData(null)
+ ,__pItemContext(null)
+ ,__noAlarms(true)
+ ,__pListview(null)
+ ,__pMenu(null)
+ ,__pOptionMenu(null)
+ ,__pPopUp(null)
+ ,__sortByOption(L"SortByOption")
+ ,__timerResetFlag(0)
+ ,__timerResetKey("timerReset")
+{
+
+}
+
+AlarmListForm::~AlarmListForm(void)
+{
+ AppLog("AlarmListForm::~AlarmListForm start");
+ if (__pAlarm != null)
+ {
+ delete __pAlarm;
+ __pAlarm = null;
+ }
+ AppLog("AlarmListForm::~AlarmListForm end");
+}
+
+bool
+AlarmListForm::Initialize(void)
+{
+ result r = E_SUCCESS;
+ r = Construct(L"IDL_ALARM_LIST");
+
+ AppLog("result:%s",GetErrorMessage(r));
+ if(r != E_SUCCESS)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+}
+
+result
+AlarmListForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ HeaderItem alarm;
+ HeaderItem worldClock;
+ HeaderItem stopWatch;
+ HeaderItem timer;
+ Bitmap* pIconBitmap = null;
+ Bitmap* pPressedIconBitmap = null;
+ Bitmap* pHighlightedIconBitmap = null;
+ Bitmap* pBitmapNormal = null;
+ Bitmap* pBitmapPressed = null;
+ Point contextMenuPoint;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ Header* pHeader = GetHeader();
+ int bitmapWidth = 326;
+ int bitmapHeight = 102;
+ int sortByValue;
+
+
+ SetFormBackEventListener(this);
+
+ SettingInfo::GetValue(L"http://tizen.org/setting/locale.time.format.24hour", is24HourFormat);
+ SettingInfo::AddSettingEventListener(*this);
+
+ GetFooter()->AddActionEventListener(*this);
+
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_ALARM_LIST, *this);
+ // Setup back event listener
+ AddOrientationEventListener(*this);
+
+ __pPopUp = new (std::nothrow) SortByPopUp();
+
+ if (__pPopUp != null)
+ {
+ __pPopUp->Initialize();
+ __pPopUp->SetEventListner(this);
+ }
+
+ AlarmPresentationModel::GetInstance()->SetCurrentForm(this);
+
+ __pListview = static_cast< ListView* >(GetControl("IDC_LISTVIEW1"));
+
+ if (__pListview != null)
+ {
+ __pListview->SetItemProvider(*this);
+ __pListview->AddListViewItemEventListener(*this);
+ }
+
+
+ if (pHeader != null)
+ {
+ pHeader->AddActionEventListener(*this);
+ pHeader->SetStyle(HEADER_STYLE_TAB);
+ alarm.Construct(IDA_TABBAR_ITEM1_ALARM);
+ //alarm.SetText(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+
+ if (pAppResource == null)
+ {
+ return E_FAILURE;
+ }
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_NORMAL, pHighlightedIconBitmap);
+ alarm.SetIcon(HEADER_ITEM_STATUS_PRESSED, pHighlightedIconBitmap);
+ alarm.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(alarm);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ worldClock.Construct(IDA_TABBAR_ITEM1_WORLDCLOCK);
+ //worldClock.SetText(CommonUtil::GetString(L"IDS_COM_BODY_WORLD_CLOCK"));
+
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ worldClock.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ worldClock.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(worldClock);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ stopWatch.Construct(IDA_TABBAR_ITEM2_STOPWATCH);
+ //stopWatch.SetText(CommonUtil::GetString(L"IDS_COM_BODY_STOPWATCH"));
+
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null)
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(stopWatch);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ timer.Construct(IDA_TABBAR_ITEM3_TIMER);
+ //timer.SetText(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED);
+
+
+ if (pIconBitmap != null && pPressedIconBitmap != null)
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ timer.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ timer.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(timer);
+ pHeader->SetItemSelected(0);
+ pHeader->SetTabEditModeEnabled(false);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ pIconBitmap = null;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ pPressedIconBitmap = null;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ pHighlightedIconBitmap = null;
+ }
+
+ }
+
+ __pItemContext = new (std::nothrow) ListContextItem();
+ __pItemContext->Construct();
+ pBitmapNormal = CommonUtil::GetNinepatchedBitmap(IDB_BUTTON_SWEEP_DELETE, bitmapWidth, bitmapHeight);
+ pBitmapPressed = CommonUtil::GetNinepatchedBitmap(IDB_BUTTON_SWEEP_DELETE_PRESS, bitmapWidth, bitmapHeight);
+ unsigned int CONTEXT_ITEM_DELETE_COLOR = Color32<208, 82, 82>::Value;
+ if (pBitmapNormal != null && pBitmapPressed != null)
+ {
+ __pItemContext->AddElement(IDA_CONTEXT_ITEM_DELETE, CommonUtil::GetString(L"IDS_ALM_SK_DELETE"));
+ __pItemContext->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color::GetColor(COLOR_ID_BLACK));
+ __pItemContext->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
+
+ __pItemContext->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContext->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContext->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, CONTEXT_ITEM_DELETE_COLOR);
+ }
+
+ if (pBitmapNormal != null)
+ {
+ delete pBitmapNormal;
+ pBitmapNormal = null;
+ }
+
+ if (pBitmapPressed != null)
+ {
+ delete pBitmapPressed;
+ pBitmapPressed = null;
+ }
+
+ __pItemContextLandscape= new(std::nothrow) ListContextItem();
+ __pItemContextLandscape->Construct();
+ pBitmapNormal = CommonUtil::GetNinepatchedBitmap(L"00_button_sweep_delete.9.png", WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE,HEIGHT_CONTEXT_MENU_BUTTON);
+ pBitmapPressed = CommonUtil::GetNinepatchedBitmap(L"00_button_sweep_delete_press.9.png", WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE, HEIGHT_CONTEXT_MENU_BUTTON);
+
+ if (pBitmapNormal != null && pBitmapPressed != null)
+ {
+ __pItemContextLandscape->AddElement(IDA_CONTEXT_ITEM_DELETE, CommonUtil::GetString(L"IDS_ALM_SK_DELETE"));
+ __pItemContextLandscape->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color::GetColor(COLOR_ID_BLACK));
+ __pItemContextLandscape->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
+
+ __pItemContextLandscape->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContextLandscape->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContextLandscape->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, CONTEXT_ITEM_DELETE_COLOR);
+
+ }
+
+ if (pBitmapNormal != null)
+ {
+ delete pBitmapNormal;
+ pBitmapNormal = null;
+ }
+
+ if (pBitmapPressed != null)
+ {
+ delete pBitmapPressed;
+ pBitmapPressed = null;
+ }
+
+ __pOptionMenu = new OptionMenu();
+
+ if (__pOptionMenu != null)
+ {
+ __pOptionMenu->Construct();
+ __pOptionMenu->AddItem(CommonUtil::GetString(L"IDS_ALM_SK_DELETE"),IDA_DELETE_CLICKED);
+ __pOptionMenu->AddItem(CommonUtil::GetString(L"IDS_ALM_OPT_SORT_BY"),IDA_SORTBY_CLICKED);
+ __pOptionMenu->AddActionEventListener(*this);
+ __pOptionMenu->SetShowState(false);
+ }
+
+ UiApp::GetInstance()->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ UiApp::GetInstance()->GetAppRegistry()->Save();
+
+ UiApp::GetInstance()->GetAppRegistry()->Get(__sortByOption, sortByValue);
+ if (sortByValue == 0)
+ {
+ __alarmSortbyType = SORTBY_RECENT;
+ }
+ else
+ {
+ __alarmSortbyType = SORTBY_TIME;
+ }
+
+ return r;
+}
+
+result
+AlarmListForm::OnTerminating(void)
+{
+ AppLog("AlarmListForm::OnTerminating start");
+ SettingInfo::RemoveSettingEventListener(*this);
+
+ SceneManager::GetInstance()->RemoveSceneEventListener(IDSCN_ALARM_LIST, *this);
+
+ if (__pListview)
+ {
+ __pListview->RemoveListViewItemEventListener(*this);
+ }
+
+ if (__pPopUp)
+ {
+ delete __pPopUp;
+ }
+
+ if (__pOptionMenu)
+ {
+ delete __pOptionMenu;
+ __pOptionMenu = null;
+ }
+
+ AppLog("AlarmListForm::OnTerminating end");
+
+
+ return E_SUCCESS;
+}
+
+void
+AlarmListForm::OnActionPerformed(const Control& source, int actionId)
+{
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ pSceneManager = SceneManager::GetInstance();
+ MessageBox __pMsgBox;
+ int __modalMsgBoxResult = 0;
+
+ if(pSceneManager == null)
+ {
+ return;
+ }
+
+ int sortByOptionValue = 0;
+
+ switch (actionId)
+ {
+ case IDA_FOOTER_ITEM1_MORE:
+ {
+/* __pMenu->SetShowState(true);
+ __pMenu->Show();
+ __pMenu->Invalidate(true);*/
+ }
+ break;
+
+ case IDA_FOOTER_ITEM3_ADD:
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_ALARM));
+ }
+ break;
+
+ case IDA_TABBAR_ITEM1_WORLDCLOCK:
+ {
+ AppLog("world clock is clicked");
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_WORLD_CLOCK_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_LIST));
+ }
+ }
+ }
+ break;
+
+ case IDA_TABBAR_ITEM2_STOPWATCH:
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ break;
+
+ case IDA_TABBAR_ITEM3_TIMER:
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW));
+ }
+ break;
+
+ case IDA_DELETE_CLICKED:
+ {
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+ Integer* sortByValue = new (std::nothrow) Integer(__alarmSortbyType);
+
+/* __pMenu->SetShowState(false);
+ __pMenu->Invalidate(true);*/
+
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(sortByValue);
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_DELETE_LIST), pArgList);
+ }
+
+ }
+
+
+ }
+ break;
+
+ case IDA_SORTBY_CLICKED:
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+/* __pMenu->SetShowState(false);
+ __pMenu->Invalidate(true);*/
+
+ if (__pPopUp != null)
+ {
+ __pPopUp->SetShowState(true);
+
+ if (__pAppRegistry != null)
+ {
+ sortByOptionValue = 0;
+ r = __pAppRegistry->Get(__sortByOption, sortByOptionValue);
+ AppLog("the result: %s",GetErrorMessage(r));
+
+ if(r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = __pMsgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ __pMsgBox.ShowAndWait(__modalMsgBoxResult);
+
+ }
+ }
+
+ if (sortByOptionValue == 0)
+ {
+ __pPopUp->SetDstIndex(0);
+ }
+ else if (sortByOptionValue == 1)
+ {
+ __pPopUp->SetDstIndex(1);
+ }
+ __pPopUp->Show();
+ }
+
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
+AlarmListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ AppLog("OnSceneActivatedN ");
+
+ Point contextMenuPoint = Point( 25, GetFooter()->GetPosition().y + 25);
+ InitContextMenu(contextMenuPoint);
+ if (__pListview != null)
+ {
+ __pListview->UpdateList();
+ }
+ SetFormMenuEventListener(this);
+ GetHeader()->SetItemSelected(0);
+ GetHeader()->Invalidate(true);
+ Invalidate(true);
+ GetFooter()->SetFocus();
+ AppLog("OnSceneActivatedN end");
+
+
+}
+
+void
+AlarmListForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ AppLog("OnSceneDeactivated ");
+
+ SetFormMenuEventListener(null);
+}
+
+void
+AlarmListForm::OnFormBackRequested(Form& source)
+{
+ SendUserEvent(REQUEST_ID_TERMINATE, null);
+}
+
+ListItemBase *
+AlarmListForm::CreateItem(int index, int itemWidth)
+{
+ AppLog("CreateItem");
+ result r = E_FAILURE;
+ String time;
+ int hour = 0;
+ int min = 0;
+ int sec = 0;
+ String itemContent;
+ String flags ;
+ AlarmRepeatCustomItem* pItem = null;
+ int listItemHeight = 204;
+
+ __pAlarm = static_cast< AlarmData* >(__pData->GetAt(index));
+ pItem = new (std::nothrow) AlarmRepeatCustomItem();
+
+ hour = __pAlarm->GetAlarmTime().GetHour();
+ min = __pAlarm->GetAlarmTime().GetMinute();
+ sec = __pAlarm->GetAlarmTime().GetSecond();
+
+ AppLog("Hour : %d", hour);
+
+ if (hour > 12)
+ {
+ time.Format(20, L"%2d:%2d", hour-12, min);
+ time.Append(CommonUtil::GetString(L"IDS_COM_POP_PM"));
+ }
+ else
+ {
+ if(hour == 0)
+ {
+ time.Format(20,L"%2d:%2d", 12, min);
+ }
+ else
+ {
+ time.Format(20, L"%2d:%2d", hour, min);
+ }
+ if(hour >= 12)
+ {
+ time.Append(CommonUtil::GetString(L"IDS_COM_POP_PM"));
+ }
+ else
+ {
+ time.Append(CommonUtil::GetString(L"IDS_COM_BODY_AM"));
+ }
+ }
+
+
+ itemContent = __pAlarm->GetAlarmName() + L" " + time;
+ flags = __pAlarm->GetRepeatFlags();
+
+ if (pItem != null)
+ {
+ r = pItem->Construct(GetClientAreaBounds().width, listItemHeight,false, is24HourFormat);
+
+ pItem->SetAlarm(*__pAlarm);
+ pItem->MakeAlarmRepeatCustomItem();
+
+ if(GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+ {
+ if ( __pItemContext!= NULL)
+ {
+ pItem->SetContextItem(__pItemContext);
+ }
+ }
+ else
+ {
+ if ( __pItemContextLandscape!= NULL)
+ {
+ pItem->SetContextItem(__pItemContextLandscape);
+ }
+ }
+ }
+
+ AppLog("CreateItem end");
+ return pItem;
+
+}
+
+bool
+AlarmListForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth)
+{
+ if( pItem != NULL)
+ {
+ delete pItem;
+ pItem = null;
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+}
+
+int
+AlarmListForm::GetItemCount(void)
+{
+ int count = 0;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+
+ if (__pData != NULL )
+ {
+ __pData->RemoveAll(false);
+ delete __pData;
+ __pData = null;
+ }
+
+ __pData = new (std::nothrow) Collection::ArrayList();
+ __pData->Construct();
+
+ pAlarmPresentationModel->GetAlarmCount(count);
+ pAlarmPresentationModel->GetAlarm(0, count, *__pData);
+
+ if (__alarmSortbyType == SORTBY_TIME)
+ {
+ pAlarmPresentationModel->DateTimeSort(*__pData);
+ }
+ else if (__alarmSortbyType == SORTBY_RECENT)
+ {
+ pAlarmPresentationModel->CreatedTimeSort(*__pData);
+ }
+
+ return count;
+}
+
+void
+AlarmListForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus status)
+{
+ ArrayList alarmList;
+ int alarmId = 0;
+ AlarmData* pAlarm = null;
+ String notification ;
+ String lowerStr;
+ Tizen::Shell::NotificationManager notifyMgr;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+
+ pAlarmPresentationModel->GetAlarm(0, __pListview->GetItemCount(), alarmList);
+
+ if (__alarmSortbyType == SORTBY_TIME)
+ {
+ pAlarmPresentationModel->DateTimeSort(alarmList);
+ }
+
+ pAlarm = dynamic_cast< AlarmData* >(alarmList.GetAt(index));
+
+ switch (elementId)
+ {
+ case IDA_CONTEXT_ITEM_DELETE:
+ {
+ if (pAlarm != NULL)
+ {
+ alarmId = pAlarm->GetAlarmId();
+ pAlarmPresentationModel->DeleteAlarm(alarmId);
+ __pListview->UpdateList();
+ lowerStr = CommonUtil::GetString(L"IDS_COM_POP_DELETED");
+ notification.Append(lowerStr);
+ notifyMgr.Construct();
+ notifyMgr.NotifyTextMessage(notification);
+ }
+ }
+ break;
+ }
+}
+
+void
+AlarmListForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ result r = E_FAILURE;
+ ArrayList* pArgList = null;
+ AlarmData* pAlarm = null;
+ AlarmData* pOldAlarm = null;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ DateTime time;
+
+ if (__pData != null)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(__pData->GetAt(index));
+
+ if (pAlarm == null)
+ {
+ return;
+ }
+
+ pOldAlarm = new(std::nothrow) AlarmData(*pAlarm);
+
+ if (elementId == IDA_FORMAT_BITMAP)
+ {
+ if (pAlarm->GetAlarmOnState() == 1)
+ {
+ if (pAlarm->GetSnoozeOn())
+ {
+ pAlarm->SetLastRingingTime(time);
+ pAlarm->SetSnoozeRepeatCount(pAlarm->GetSnoozeRepeat());
+ }
+
+ pAlarm->SetAlarmOnState(0);
+ }
+ else
+ {
+ pAlarm->SetAlarmOnState(1);
+ }
+
+ pAlarmPresentationModel->UpdateAlarm(*pOldAlarm, *pAlarm);
+ __pListview->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ else
+ {
+ pArgList = new (std::nothrow) ArrayList();
+
+ if (pArgList != null && pAlarm != null)
+ {
+ r = pArgList->Construct();
+ pArgList->Add(*pAlarm);
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_ALARM), pArgList);
+ }
+ }
+ }
+
+ delete pOldAlarm;
+ }
+
+}
+
+result
+AlarmListForm::InitContextMenu(const Point& point)
+{
+ result r = E_SUCCESS;
+
+ if (__pMenu != null)
+ {
+ __pMenu->RemoveAllItems();
+ delete __pMenu;
+ __pMenu = null ;
+ }
+
+ __pMenu = new(std::nothrow) ContextMenu();
+ r = __pMenu->Construct(point, CONTEXT_MENU_STYLE_LIST,CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+ r = __pMenu->AddItem(CommonUtil::GetString(L"IDS_ALM_SK_DELETE"), IDA_DELETE_CLICKED);
+ r = __pMenu->AddItem(CommonUtil::GetString(L"IDS_ALM_OPT_SORT_BY"), IDA_SORTBY_CLICKED);
+
+ __pMenu->SetShowState(false);
+ __pMenu->AddActionEventListener(*this);
+ SetControlAlwaysOnTop(*__pMenu, true);
+
+ return r;
+
+}
+
+void
+AlarmListForm::OnSortByPopUpItemSelected(SortBy sortby)
+{
+
+ if (sortby == SORTBY_RECENT)
+ {
+ __pAppRegistry->Remove(__sortByOption);
+ __pAppRegistry->Add(__sortByOption, 0);
+ __pAppRegistry->Save();
+ __pPopUp->SetShowState(false);
+ __alarmSortbyType = SORTBY_RECENT;
+
+ if (__pListview)
+ {
+ __pListview->UpdateList();
+ }
+
+ }
+ else if (sortby == SORTBY_TIME)
+ {
+ __pAppRegistry->Remove(__sortByOption);
+ __pAppRegistry->Add(__sortByOption, 1);
+ __pAppRegistry->Save();
+ __pPopUp->SetShowState(false);
+ __alarmSortbyType = SORTBY_TIME;
+
+ if (__pListview)
+ {
+ __pListview->UpdateList();
+ }
+ }
+}
+
+void
+AlarmListForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ if ( key == L"http://tizen.org/setting/locale.time.format.24hour")
+ {
+ SettingInfo::GetValue(key, is24HourFormat);
+ }
+
+ if (__pListview != null)
+ {
+ __pListview->UpdateList();
+ }
+}
+
+void
+AlarmListForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ AppLog("aaaaOnOrientationChanged %d", GetOrientationStatus());
+ if (__pListview != null)
+ {
+ // __pListview->UpdateList();
+ }
+}
+
+void
+AlarmListForm::OnFormMenuRequested(Controls::Form& source)
+{
+ AppLog("AlarmListForm::OnFormMenuRequested");
+ int count = 0;
+ AlarmPresentationModel::GetInstance()->GetAlarmCount(count);
+ if (count > 0)
+ {
+ if (__pOptionMenu)
+ {
+ __pOptionMenu->SetShowState(true);
+ __pOptionMenu->Show();
+ }
+ }
+}
+
+void
+AlarmListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ __timerResetFlag = 1;
+ UiApp* pApp = UiApp::GetInstance();
+ if(pApp != null)
+ {
+ pApp->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ pApp->GetAppRegistry()->Save();
+ AppAssert(pApp);
+ pApp->Terminate();
+ }
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmPresentationModel.cpp
+ * @brief Used to define AlarmPresentationModel
+ */
+
+#include <cstdlib>
+#include <FApp.h>
+#include <FShell.h>
+#include <FUiScenes.h>
+
+#include "ClkAlarmPresentationModel.h"
+#include "ClkNotification.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+using namespace Tizen::Shell;
+using namespace Tizen::System;
+using namespace Tizen::Ui::Scenes;
+
+extern const wchar_t* ALARM_TABLE;
+
+AlarmPresentationModel* AlarmPresentationModel::__pInstance = null;
+
+AlarmPresentationModel::AlarmPresentationModel(void)
+ : __pAlarm(null)
+ , __pForm(null)
+ , __pListener(null)
+ , __pSystemAlarm(null)
+ , defaultAudioPath(Tizen::App::App::GetInstance()->GetAppRootPath() + L"data/Walk in the forest.mp3")
+{
+
+}
+
+AlarmPresentationModel::AlarmPresentationModel(const AlarmPresentationModel& alarmPresentationModel)
+{
+ __pAlarm = alarmPresentationModel.__pAlarm;
+ __pForm = alarmPresentationModel.__pForm;
+ __pListener = alarmPresentationModel.__pListener;
+ __pSystemAlarm = alarmPresentationModel.__pSystemAlarm;
+}
+
+AlarmPresentationModel::~AlarmPresentationModel(void)
+{
+
+}
+
+result
+AlarmPresentationModel::Initialize(void)
+{
+ result r = E_SUCCESS;
+
+ __pAlarm = new (std::nothrow) AlarmData();
+ __pSystemAlarm = new Tizen::System::Alarm();
+ r = __pSystemAlarm->Construct(*__pListener);
+ AppLog("Result : %s", GetErrorMessage(r));
+ return r;
+}
+
+result
+AlarmPresentationModel::DeleteAlarm(int alarmId)
+{
+ result r = E_SUCCESS;
+ String query;
+ String alarmTable(ALARM_TABLE);
+ int resultCount = -1;
+ DateTime recentAlarmTime;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ int alarmCount = 0;
+ int count = 0;
+ ArrayList* alarmList = null;
+ AlarmData* pAlarm = null;
+ AppManager* pAppManager = AppManager::GetInstance();
+ App* pApp = App::GetInstance();
+ String* str2 = null;
+
+ if (alarmId < 1)
+ {
+ return E_INVALID_ARG;
+ }
+
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return E_FAILURE;
+ }
+
+ GetAlarmCount(count);
+ GetAlarm(0,count,*alarmList);
+ alarmCount = alarmList->GetCount();
+
+ for (int count = 0; count < alarmCount; count++)
+ {
+ pAlarm = static_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if (pAlarm != null && pAlarm->GetAlarmId() == alarmId)
+ {
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return false;
+ }
+
+ str2->Append("'");
+ str2->Append(pAlarm->GetNextRingingTime().ToString());
+ str2->Append("'");
+
+ pAppManager->UnregisterAppLaunch(pApp->GetAppId(), str2);
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+ }
+
+ }
+
+ query.Append(L"DELETE FROM ");
+ query.Append(alarmTable);
+ query.Append(" WHERE ID = ");
+ query.Append(alarmId);
+
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+
+ if (IsFailed(r))
+ {
+ return r;
+ }
+
+ GetRecentAlarm(recentAlarmTime, *__pAlarm);
+ AppLogDebug("recentAlarmTime = %ls",__pAlarm->GetAlarmTime().ToString().GetPointer());
+
+ if(__pSystemAlarm != null)
+ {
+ delete __pSystemAlarm;
+ __pSystemAlarm = new Tizen::System::Alarm();
+ __pSystemAlarm->Construct(*__pListener);
+ r = __pSystemAlarm->Set(recentAlarmTime);
+ }
+ //__pSystemAlarm->Set(__pAlarm->GetAlarmTime());
+
+ return r;
+}
+
+result
+AlarmPresentationModel::DeleteAlarm(ArrayList& alarmList)
+{
+ result r = E_SUCCESS;
+ String query;
+ DateTime recentAlarmTime;
+ String alarmTable(ALARM_TABLE);
+ int resultCount = -1;
+ AlarmData* pAlarm = null;
+ int alarmCount = alarmList.GetCount();
+ AppManager* pAppManager = AppManager::GetInstance();
+ App* pApp = App::GetInstance();
+ String* str2 = null;
+ DateTime currentTime;
+
+ query.Append(L"DELETE FROM ");
+ query.Append(alarmTable);
+ query.Append(" WHERE ID IN ( ");
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ for (int count = 0; count < alarmCount; count++)
+ {
+ pAlarm = static_cast< AlarmData* >(alarmList.GetAt(count));
+
+ if (pAlarm != null)
+ {
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return E_FAILURE;
+ }
+
+ str2->Append("'");
+ str2->Append(pAlarm->GetNextRingingTime().ToString());
+ str2->Append("'");
+ pAppManager->UnregisterAppLaunch(pApp->GetAppId(), str2);
+ AppLog("str2 = %ls", str2->GetPointer());
+ query.Append(pAlarm->GetAlarmId());
+ query.Append(",");
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+
+ }
+
+ }
+ query.Remove(query.GetLength() - 1, 1);
+ query.Append(")");
+
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ return E_FAILURE;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+
+ if (IsFailed(r))
+ {
+ return E_FAILURE;
+ }
+
+ GetRecentAlarm(recentAlarmTime, *__pAlarm);
+ AppLogDebug("recentAlarmTime = %ls __pAlarm = %ls",recentAlarmTime.ToString().GetPointer(), __pAlarm->GetAlarmTime().ToString().GetPointer());
+
+ if(__pSystemAlarm != null)
+ {
+ delete __pSystemAlarm;
+ __pSystemAlarm = new Tizen::System::Alarm();
+ __pSystemAlarm->Construct(*__pListener);
+ r = __pSystemAlarm->Set(recentAlarmTime);
+ }
+ //r = __pSystemAlarm->Set(__pAlarm->GetAlarmTime());
+//AppLog("__pSystemAlarm result = %s", GetErrorMessage(r));
+ return r;
+}
+
+result
+AlarmPresentationModel::GetAlarm(const int startIndex, const int limit, ArrayList& alarmList)
+{
+ result r = E_FAILURE;
+ int count = -1;
+ String query;
+ String alarmTable(ALARM_TABLE);
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ query.Append(L"SELECT * FROM ");
+ query.Append(alarmTable);
+ query.Append(L" ORDER BY CREATED_TIME DESC");
+
+ //Append LIMIT
+ if (limit > 0)
+ {
+ query.Append(" LIMIT ");
+ query.Append(limit);
+
+ //Append OFFESET
+
+ if (startIndex >= 0)
+ {
+ query.Append(" OFFSET ");
+ query.Append(startIndex);
+ }
+ }
+
+ r = pDataServiceProvider->ExecuteQuery(query, count);
+ r = CreateAlarmListN(count, alarmList);
+
+
+ return r;
+
+}
+
+result
+AlarmPresentationModel::CreateAlarmListN(int alarmCount, ArrayList& alarmList)
+{
+ AlarmData* pAlarm = null;
+ int intVal = -1;
+ String value;
+ DateTime dateValue;
+ result r = E_FAILURE;
+ String alarmId;
+ bool nextRowPresent = false;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ for (int count = 0; count < alarmCount; count++)
+ {
+ r = pDataServiceProvider->DbIsNextRowPresent(nextRowPresent);
+
+ if (IsFailed(r))
+ {
+ return r;
+ }
+
+ if (nextRowPresent)
+ {
+ pAlarm = new (std::nothrow) AlarmData();
+
+ if (pAlarm != null)
+ {
+ for (int columnCount = 0; columnCount < MAX_ALARM_TABLE_COLUMN; columnCount++)
+ {
+ switch (columnCount)
+ {
+ case 0:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (!IsFailed(r))
+ {
+ if (intVal > 0)
+ {
+ pAlarm->SetAlarmId(intVal);
+ }
+ }
+
+ break;
+
+ case 1:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (!IsFailed(r))
+ {
+ if (intVal > 0)
+ {
+ pAlarm->SetAlarmOnState(intVal);
+ }
+ }
+
+ break;
+
+ case 2:
+ r = pDataServiceProvider->GetColumn(columnCount, value);
+
+ if (!IsFailed(r))
+ {
+ pAlarm->SetAlarmName(value);
+ }
+
+ break;
+
+ case 3:
+ r = pDataServiceProvider->GetColumn(columnCount, dateValue);
+
+ if (!IsFailed(r))
+ {
+ pAlarm->SetAlarmTime(dateValue);
+ }
+
+ break;
+
+ case 4:
+ r = pDataServiceProvider->GetColumn(columnCount, value);
+
+ if (!IsFailed(r))
+ {
+ AppLogDebug("the flag value is %ls", value.GetPointer());
+ pAlarm->SetRepeatedFlags(value);
+ }
+
+ break;
+
+ case 5:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (intVal == 0)
+ {
+ pAlarm->SetSnoozeOn(false);
+ }
+ else
+ {
+ pAlarm->SetSnoozeOn(true);
+ }
+
+ break;
+
+ case 6:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (intVal > 0)
+ {
+ pAlarm->SetSnoozeDuration(intVal);
+ }
+
+ break;
+
+ case 7:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (intVal > 0)
+ {
+ pAlarm->SetSnoozeRepeat(intVal);
+ }
+
+ break;
+
+ case 8:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (intVal > 0)
+ {
+ pAlarm->SetRingVolume(intVal);
+ }
+
+ break;
+
+ case 9:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (!IsFailed(r))
+ {
+ if (intVal == 0)
+ {
+ pAlarm->SetRingType(ALARM_TYPE_MELODY);
+ }
+ else if (intVal == 1)
+ {
+ pAlarm->SetRingType(ALARM_TYPE_VIBRATION);
+ }
+ else if (intVal == 2)
+ {
+ pAlarm->SetRingType(ALARM_TYPE_MELODY_AND_VIBRATION);
+ }
+ }
+
+ break;
+
+ case 10:
+ r = pDataServiceProvider->GetColumn(columnCount, value);
+
+ if (!IsFailed(r))
+ {
+ pAlarm->SetRingTone(value);
+ }
+
+ break;
+
+ case 11:
+ r = pDataServiceProvider->GetColumn(columnCount, dateValue);
+
+ if (!IsFailed(r))
+ {
+ pAlarm->SetLastRingingTime(dateValue);
+ }
+
+ break;
+
+ case 12:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+
+ if (!IsFailed(r))
+ {
+ pAlarm->SetSnoozeRepeatCount(intVal);
+ }
+
+ break;
+
+ case 13:
+ r = pDataServiceProvider->GetColumn(columnCount, dateValue);
+
+ if (!IsFailed(r))
+ {
+ pAlarm->SetAlarmCreatedTime(dateValue);
+ }
+
+ break;
+
+ default:
+ break;
+ }
+ }
+ AppLog("pAlarm id = %d", pAlarm->GetAlarmId());
+ r = alarmList.Add(*pAlarm);
+
+ if (IsFailed(r))
+ {
+ return r;
+ }
+ }
+ }
+ }
+ return r;
+}
+
+result
+AlarmPresentationModel::SaveAlarm(AlarmData& alarm)
+{
+ AppLog("alarm id = %d",alarm.GetAlarmId());
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ result r = E_FAILURE;
+ String alarmTable(ALARM_TABLE);
+ String query;
+ String columnNames;
+ int resultCount = -1;
+ int rowId = -1;
+ DateTime dt;
+ DateTime recentAlarmTime;
+ String alarmId;
+ String alarmName = alarm.GetAlarmName();
+ DateTime currentTime;
+ String messageString;
+ int cmp = 0;
+ Tizen::Shell::NotificationManager notifyMgr;
+
+ alarmName.Replace(L"'", L"''");
+ pDataServiceProvider->GetCurrentDateTime(dt);
+
+// AppLog("alarm time= %ls ringing time = %ls", alarm.GetAlarmTime().ToString().GetPointer(), alarm.GetNextRingingTime().ToString().GetPointer());
+
+ if (alarm.GetAlarmId() == 0 )
+ {
+ AppLog("alarm id = %d",alarm.GetAlarmId());
+ columnNames.Append(L"IS_ON, ");
+ columnNames.Append(L"NAME, ");
+ columnNames.Append(L"TIME, ");
+ columnNames.Append(L"REPEAT, ");
+ columnNames.Append(L"SNOOZE_ON, ");
+ columnNames.Append(L"SNOOZE_DURATION, ");
+ columnNames.Append(L"SNOOZE_REPEAT, ");
+ columnNames.Append(L"RING_VOLUME, ");
+ columnNames.Append(L"RING_TYPE, ");
+ columnNames.Append(L"RING_TONE, ");
+ columnNames.Append(L"LAST_RINGING_TIME, ");
+ columnNames.Append(L"SNOOZE_REPEAT_COUNT, ");
+ columnNames.Append(L"CREATED_TIME");
+
+
+ query.Append(L"INSERT INTO ");
+ query.Append(alarmTable);
+ query.Append("(");
+ query.Append(columnNames);
+ query.Append(") ");
+ query.Append("VALUES(");
+ query.Append(alarm.GetAlarmOnState());
+ query.Append(", ");
+ query.Append("'");
+ query.Append(alarmName);
+ query.Append("', ");
+ query.Append("'");
+ query.Append(alarm.GetAlarmTime().ToString());
+ query.Append("', ");
+ query.Append("'");
+ query.Append(alarm.GetRepeatFlags());
+ query.Append("'");
+ query.Append(", ");
+ query.Append(alarm.GetSnoozeOn());
+ query.Append(", ");
+ query.Append(alarm.GetSnoozeDuration());
+ query.Append(", ");
+ query.Append(alarm.GetSnoozeRepeat());
+ query.Append(", ");
+ query.Append(alarm.GetRingVolume());
+ query.Append(", ");
+ query.Append(alarm.GetRingType());
+ query.Append(", ");
+ query.Append("'");
+ query.Append(alarm.GetRingTone());
+ query.Append("',");
+ query.Append("'");
+ query.Append(alarm.GetLastRingingTime().ToString());
+ query.Append("',");
+ query.Append(alarm.GetSnoozeRepeatCount());
+ query.Append(",'");
+ query.Append(dt.ToString());
+ query.Append("'");
+ query.Append(")");
+
+
+ AppLogDebug("the flag value is %ls", alarm.GetRepeatFlags().GetPointer());
+ AppLogDebug("AlarmPresentationModel result query = %ls", query.GetPointer());
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("AlarmPresentationModel::SaveAlarm query failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+ r = pDataServiceProvider->GetLastInsertedId(alarmTable, rowId);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("AlarmPresentationModel::SaveAlarm GetLastInsertedId failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ if (rowId < 0)
+ {
+ return E_FAILURE;
+ }
+
+ AppLog("rowId = %d", rowId);
+ //Set the generated ID to Alarm
+ alarm.SetAlarmId(rowId);
+ }
+ else
+ {
+ AppLog("alarm id = %d",alarm.GetAlarmId());
+ query.Append(L"UPDATE ");
+ query.Append(alarmTable);
+ query.Append(" SET IS_ON = ");
+ query.Append(alarm.GetAlarmOnState());
+ query.Append(", NAME = ");
+ query.Append("'");
+ query.Append(alarmName);
+ query.Append("'");
+ query.Append(", TIME = ");
+ query.Append("'");
+ query.Append(alarm.GetAlarmTime().ToString());
+ query.Append("'");
+ query.Append(", REPEAT = ");
+ query.Append("'");
+ query.Append(alarm.GetRepeatFlags());
+ query.Append("'");
+ query.Append(", SNOOZE_ON = ");
+ query.Append(alarm.GetSnoozeOn());
+ query.Append(", SNOOZE_DURATION = ");
+ query.Append(alarm.GetSnoozeDuration());
+ query.Append(", SNOOZE_REPEAT = ");
+ query.Append(alarm.GetSnoozeRepeat());
+ query.Append(", RING_VOLUME = ");
+ query.Append(alarm.GetRingVolume());
+ query.Append(", RING_TYPE = ");
+ query.Append(alarm.GetRingType());
+ query.Append(", RING_TONE = ");
+ query.Append("'");
+ query.Append(alarm.GetRingTone());
+ query.Append("'");
+ query.Append(", LAST_RINGING_TIME = ");
+ query.Append("'");
+ query.Append(alarm.GetLastRingingTime().ToString());
+ query.Append("'");
+ query.Append(", SNOOZE_REPEAT_COUNT = ");
+ query.Append(alarm.GetSnoozeRepeatCount());
+ query.Append(", CREATED_TIME = ");
+ query.Append("'");
+ query.Append(dt.ToString());
+ query.Append("'");
+ query.Append(" WHERE ID = ");
+ query.Append(alarm.GetAlarmId());
+
+ AppLogDebug("the flag value is %ls", alarm.GetRepeatFlags().GetPointer());
+ AppLogDebug("AlarmPresentationModel result query = %ls", query.GetPointer());
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("AlarmPresentationModel::SaveAlarm query failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+ }
+
+ if (alarm.GetAlarmOnState() == 1)
+ {
+ DateTime nextRingingTime = alarm.GetNextRingingTime();
+ int days = 0;
+ int hours = 0;
+ int minutes = 0;
+ String alarmName = L"";
+ String alarmNameOut = L"";
+ String backupString = L"";
+ DataServiceProvider::GetInstance()->GetCurrentDateTime(currentTime);
+ cmp = DateTime::Compare(currentTime, nextRingingTime);
+ AppLog("current= %ls", currentTime.ToString().GetPointer());
+ AppLog("current= alarm.GetNextRingingTime() = %ls", nextRingingTime.ToString().GetPointer());
+
+ if (cmp < 0)
+ {
+ days = nextRingingTime.GetDay() - currentTime.GetDay();
+
+ if (days < 0)
+ {
+ int noOfDaysInPreviousMonth = 0;
+ nextRingingTime.GetDaysInMonth(nextRingingTime.GetYear(), nextRingingTime.GetMonth() - 1, noOfDaysInPreviousMonth);
+ days = days + noOfDaysInPreviousMonth;
+ }
+
+ hours = nextRingingTime.GetHour() - currentTime.GetHour();
+ minutes = nextRingingTime.GetMinute() - currentTime.GetMinute();
+
+ AppLog("days = %d hours = %d minutes = %d", days, hours, minutes);
+
+ if (minutes < 0)
+ {
+ hours -= 1;
+ minutes += 60;
+ }
+
+ if (hours < 0)
+ {
+ days -= 1;
+ hours += 24;
+ }
+
+ if (days < 0)
+ {
+
+ }
+ if (hours == 0 && minutes == 0)
+ {
+ days -= 1;
+ hours = 23;
+ minutes = 59;
+ }
+ else if (minutes == 0)
+ {
+ hours -= 1;
+ minutes = 59;
+ }
+
+ messageString = "Alarm ";
+ messageString.Append("set for ");
+ backupString = messageString;
+ if (days > 0)
+ {
+ messageString.Append(days);
+ if (days == 1)
+ {
+ messageString.Append(" day, ");
+ }
+ else
+ {
+ messageString.Append(" days, ");
+ }
+ }
+
+ if (hours > 0)
+ {
+ messageString.Append(hours);
+ if(hours == 1)
+ {
+ messageString.Append(" hour and ");
+ }
+ else
+ {
+ messageString.Append(" hours and ");
+ }
+ }
+ else if (hours == 0 && days > 0)
+ {
+ messageString.Clear();
+ messageString.Append(backupString);
+ messageString.Append(days);
+ if (days == 1)
+ {
+ messageString.Append(" day and ");
+ }
+ else
+ {
+ messageString.Append(" days and ");
+ }
+ }
+
+ if (minutes > 0)
+ {
+ if (hours == 0 && days == 0 && minutes == 1)
+ {
+ messageString.Append("less than 1 minute from now");
+ }
+ else
+ {
+ messageString.Append(minutes);
+ if (minutes == 1)
+ {
+ messageString.Append(" minute from now");
+ }
+ else
+ {
+ messageString.Append(" minutes from now");
+ }
+ }
+ }
+
+ notifyMgr.Construct();
+ notifyMgr.NotifyTextMessage(messageString);
+ }
+
+ GetRecentAlarm(recentAlarmTime, *__pAlarm);
+ AppLogDebug("recentAlarmTime = %ls __pAlarm = %ls",recentAlarmTime.ToString().GetPointer(), __pAlarm->GetAlarmTime().ToString().GetPointer());
+
+ if(__pSystemAlarm != null)
+ {
+ //__pSystemAlarm->Cancel();
+ delete __pSystemAlarm;
+ __pSystemAlarm = new Tizen::System::Alarm();
+ __pSystemAlarm->Construct(*__pListener);
+ r = __pSystemAlarm->Set(recentAlarmTime);
+ AppLog("__pSystemAlarm result = %s", GetErrorMessage(r));
+ }
+ }
+
+ return r;
+}
+
+result
+AlarmPresentationModel::GetAlarmCount(int& AlarmCount) const
+{
+ int count = -1;
+ int intVal = -1;
+ String query;
+ String AlarmTable(ALARM_TABLE);
+ result r = E_FAILURE;
+ bool nextRowPresent = false;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ query.Append(L"SELECT COUNT(ID) FROM ");
+ query.Append(AlarmTable);
+
+ r = pDataServiceProvider->ExecuteQuery(query, count);
+ TryCatch( r == E_SUCCESS, , "AlarmPresentationModel::GetAlarmCount query failed %s", GetErrorMessage(r));
+ r = pDataServiceProvider->DbIsNextRowPresent(nextRowPresent);
+ TryCatch( r == E_SUCCESS, , "AlarmPresentationModel::DbIsNextRowPresent query failed %s", GetErrorMessage(r));
+
+ if (nextRowPresent)
+ {
+ r = pDataServiceProvider->GetColumn(0, intVal);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Error:AlarmPresentationModel::GetColumn:%s", GetErrorMessage(r));
+ return r;
+ }
+ }
+
+ AlarmCount = intVal;
+ AppLogDebug("Count:%d", AlarmCount);
+
+ CATCH: return r;
+}
+
+result
+AlarmPresentationModel::GetRecentAlarm(DateTime& recentAlarmTime, AlarmData& recentAlarm)
+{
+ AlarmData* pAlarm = null;
+ AlarmData* pNextAlarm = null;
+ int count = 0;
+ int cmp = 0;
+ String *str1 = null;
+ String *str2 = null;
+ DateTime currentTime;
+ DateTime nextAlarmTime;
+ AppManager* pAppManager = AppManager::GetInstance();
+ App* pApp = App::GetInstance();
+ result r = E_FAILURE;
+
+ ArrayList* alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return E_FAILURE;
+ }
+
+ ArrayList* nextAlarmTimeList = new (std::nothrow) ArrayList();
+
+ if (nextAlarmTimeList == null)
+ {
+ return E_FAILURE;
+ }
+
+ alarmList->Construct();
+ nextAlarmTimeList->Construct();
+
+ GetAlarmCount(count);
+ GetAlarm(0,count,*alarmList);
+ int alarmCount = alarmList->GetCount();
+
+ for (int count = 0; count < alarmCount; count++)
+ {
+ pAlarm = static_cast< AlarmData* >(alarmList->GetAt(count));
+ nextAlarmTime.SetValue(pAlarm->GetNextRingingTime());
+ //AppLog("nextAlarmTime = %ls", nextAlarmTime.ToString().GetPointer());
+ pNextAlarm = new (std::nothrow) AlarmData();
+
+ if (pNextAlarm != null)
+ {
+ *pNextAlarm = *pAlarm;
+ pNextAlarm->SetAlarmTime(nextAlarmTime);
+ //AppLog("nextAlarmTime = %ls", nextAlarmTime.ToString().GetPointer());
+ str1 = new (std::nothrow) String(pApp->GetAppId());
+
+ if (str1 == null)
+ {
+ return false;
+ }
+
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ delete str1;
+ str1 = null;
+
+ return false;
+ }
+
+ str2->Append("'");
+ str2->Append(nextAlarmTime.ToString());
+ str2->Append("'");
+
+ DataServiceProvider::GetCurrentDateTime(currentTime);
+ cmp = DateTime::Compare(currentTime, nextAlarmTime);
+ AppLog("AlarmPresentationModel::GetRecentAlarm nextAlarmTime = %ls currentTime = %ls", nextAlarmTime.ToString().GetPointer(), currentTime.ToString().GetPointer());
+
+ if(cmp <= 0 && nextAlarmTime.GetYear() < 9000)
+ {
+ String *str = new String("Alarm : ");
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+ str->Append(pNextAlarm->GetAlarmId());
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(str);
+ }
+ if(pNextAlarm->GetAlarmOnState() == 1)
+ {
+ r = pAppManager->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("AlarmPresentationModel::GetRecentAlarm %s name: %ls", GetErrorMessage(r), pNextAlarm->GetAlarmName().GetPointer());
+ }
+ }
+
+ nextAlarmTimeList->Add(*pNextAlarm);
+
+ if ( str1 != null)
+ {
+ delete str1;
+ str1 = null;
+ }
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+ }
+ //AppLog("nextAlarmTime = %ls", nextAlarmTime.ToString().GetPointer());
+ }
+ DateTimeSort(*nextAlarmTimeList);
+ pAlarm = static_cast<AlarmData* > (nextAlarmTimeList->GetAt(0));
+
+ if (pAlarm != null)
+ {
+ recentAlarmTime.SetValue(pAlarm->GetAlarmTime());
+ recentAlarm = *pAlarm;
+ }
+
+ //AppLogDebug("recentAlarmTime = %ls alarmTime = %ls",recentAlarmTime.ToString().GetPointer(),recentAlarm.GetAlarmTime().ToString().GetPointer());
+
+ if (nextAlarmTimeList != null)
+ {
+ nextAlarmTimeList->RemoveAll(true);
+ delete nextAlarmTimeList;
+ nextAlarmTimeList = null;
+ }
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll(true);
+ delete alarmList;
+ alarmList = null;
+ }
+
+ return E_SUCCESS;
+}
+
+void
+AlarmPresentationModel::DateTimeSort(ArrayList& alarmTimeList)
+{
+ AlarmData* pAlarm1 = null;
+ AlarmData* pAlarm2 = null;
+ AlarmData alarm3;
+ int cmp;
+ int i,j;
+ int counter = alarmTimeList.GetCount()-2 ;
+
+ for (i = counter; i>=0; i--)
+ {
+ for (j=0;j<=i;j++)
+ {
+ pAlarm1 = static_cast<AlarmData* > (alarmTimeList.GetAt(j));
+ pAlarm2 = static_cast<AlarmData* > (alarmTimeList.GetAt(j + 1));
+ cmp = DateTime::Compare(pAlarm1->GetAlarmTime(),pAlarm2->GetAlarmTime());
+
+ if (cmp > 0)
+ {
+ alarm3 = *pAlarm1;
+ *pAlarm1 = *pAlarm2;
+ *pAlarm2 = alarm3;
+ }
+ }
+ }
+}
+
+void
+AlarmPresentationModel::CreatedTimeSort(ArrayList& alarmTimeList)
+{
+ AlarmData* pAlarm1 = null;
+ AlarmData* pAlarm2 = null;
+ AlarmData alarm3;
+ int cmp;
+ int i,j;
+
+ for (i=alarmTimeList.GetCount()-2; i>=0; i--)
+ {
+ for (j=0; j<=i; j++)
+ {
+ pAlarm1 = static_cast<AlarmData* > (alarmTimeList.GetAt(j));
+ pAlarm2 = static_cast<AlarmData* > (alarmTimeList.GetAt(j + 1));
+ cmp = DateTime::Compare(pAlarm1->GetAlarmCreatedtime(),pAlarm2->GetAlarmCreatedtime());
+
+ if (cmp < 0)
+ {
+ alarm3 = *pAlarm1;
+ *pAlarm1 = *pAlarm2;
+ *pAlarm2 = alarm3;
+ }
+ }
+ }
+}
+
+void
+AlarmPresentationModel::AddEventListener(Tizen::System::IAlarmEventListener* pListener)
+{
+ __pListener = pListener;
+}
+
+void
+AlarmPresentationModel::SetCurrentForm(Tizen::Ui::Controls::Form* pForm)
+{
+ __pForm = pForm;
+}
+
+AlarmPresentationModel*
+AlarmPresentationModel::GetInstance(void)
+{
+ if (__pInstance == null)
+ {
+ CreateInstance();
+ }
+
+ return __pInstance;
+}
+
+result
+AlarmPresentationModel::Construct(void)
+{
+ return E_SUCCESS;
+}
+
+void
+AlarmPresentationModel::CreateInstance(void)
+{
+ __pInstance = new (std::nothrow) AlarmPresentationModel();
+ result r = __pInstance->Construct();
+
+ if (IsFailed(r))
+ {
+ delete __pInstance;
+ __pInstance = null;
+ return;
+ }
+
+ std::atexit(DestroyInstance);
+}
+
+void
+AlarmPresentationModel::DestroyInstance(void)
+{
+ delete __pInstance;
+}
+
+void
+AlarmPresentationModel::SetAlarm(const AlarmData& alarm)
+{
+ *__pAlarm = alarm;
+}
+
+AlarmData*
+AlarmPresentationModel::GetAlarm(void) const
+{
+ return __pAlarm;
+}
+
+result
+AlarmPresentationModel::UpdateAlarm(AlarmData& oldAlarm, AlarmData& newAlarm)
+{
+ AppLog("AlarmPresentationModel::UpdateAlarm");
+ result r = E_FAILURE;
+ String* str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return r;
+ }
+
+ str2->Append("'");
+ str2->Append(oldAlarm.GetNextRingingTime().ToString());
+ str2->Append("'");
+
+ AppManager::GetInstance()->UnregisterAppLaunch(App::GetInstance()->GetAppId(), str2);
+
+ r = SaveAlarm(newAlarm);
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+
+ return r;
+}
+
+void
+AlarmPresentationModel::ReRegisterAlarm()
+{
+ AppLog("AlarmPresentationModel::ReRegisterAlarm");
+ DateTime recentAlarmTime;
+ AlarmData alarmData;
+
+ AlarmPresentationModel::GetInstance()->GetRecentAlarm(recentAlarmTime, alarmData);
+
+ if(__pSystemAlarm != null)
+ {
+ delete __pSystemAlarm;
+ __pSystemAlarm = new Tizen::System::Alarm();
+ __pSystemAlarm->Construct(*__pListener);
+ __pSystemAlarm->Set(recentAlarmTime);
+ }
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file RadioCustomItem.cpp
+ * @brief The RadioCustomItem
+ */
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUiControls.h>
+
+#include "ClkAlarmRepeatCustomItem.h"
+#include "ClkAlarmPresentationModel.h"
+#include "ClkCommonLib.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 500;
+static const int IDA_FORMAT_STATUS_STRING = 501;
+static const int IDA_FORMAT_NAME_STRING = 502;
+static const int IDA_FORMAT_BITMAP = 503;
+static const int MARGIN_Y = 134;
+static const int HEIGHT = 48;
+
+AlarmRepeatCustomItem::AlarmRepeatCustomItem(void)
+: __height(0)
+, __isItemChecked(false)
+, __is24HourFormat(false)
+, __pAlarm(null)
+, __repeatFlags("")
+, __text("")
+, __width(0)
+{
+
+}
+
+AlarmRepeatCustomItem::~AlarmRepeatCustomItem(void)
+{
+
+ if (__pAlarm != null)
+ {
+ delete __pAlarm;
+ __pAlarm = null;
+ }
+
+}
+
+result
+AlarmRepeatCustomItem::Construct(int width, int height, bool itemChecked, bool is24Format)
+{
+ result r = E_FAILURE;
+ __isItemChecked = itemChecked;
+ __width = width;
+ __height = height;
+ const Dimension dim(width, height);
+ __is24HourFormat = is24Format;
+
+ if (__pAlarm != null)
+ {
+ delete __pAlarm;
+ __pAlarm = null;
+ }
+
+ __pAlarm = new AlarmData();
+
+ if (itemChecked)
+ {
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_MARK);
+ }
+ else
+ {
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+ }
+
+ return r;
+}
+
+void
+AlarmRepeatCustomItem::SetText(const String& text)
+{
+ __text = text;
+}
+
+String
+AlarmRepeatCustomItem::GetText(void) const
+{
+ return __text;
+}
+
+void
+AlarmRepeatCustomItem::SetRepeatFlags(const String& flag)
+{
+ __repeatFlags = flag;
+}
+
+String
+AlarmRepeatCustomItem::GetRepeatFlag(void) const
+{
+ return __repeatFlags;
+}
+
+void
+AlarmRepeatCustomItem::SetAlarm(const AlarmData& alarm)
+{
+ *__pAlarm = alarm;
+}
+
+result
+AlarmRepeatCustomItem::MakeAlarmRepeatCustomItem(void)
+{
+ result r = E_FAILURE;
+ Color textColor;
+ EnrichedText repeatEnrichedText;
+ EnrichedText alarmNameText;
+ TextElement* repeatTextElement = null;
+ TextElement* alarmNameTextElement = null;
+ String repeatFlags = L"";
+ String alarmTime = L"";
+ String alarmTimeStatus = L"";
+ String alarmName = L"";
+ int hours = 0;
+ int cmp = 0;
+ int fontSize = 20;
+ int characterGap = 35;
+ int flagHeight = 32;
+ int alarmTimeY = 42;
+ int alarmTimeWidth = 200;
+ int alarmTimeHeight = 72;
+ int alarmTimeStatusY = 72;
+ int alarmTimeStatusWidth = 100;
+ int alarmTimeStatusHeight = 52;
+ int alarmTimeStatusFont = 42;
+ int alarmNameTextFont = 32;
+ int dimensionWidth = 320;
+ int dimensionHeight = 40;
+ int alarmNameTextX = 0;
+ int alarmNameTextY = 134;
+ int alarmNameTextWidth = 0;
+ int alarmNameTextHeight = 40;
+ int bitmapX = __width - 136;
+ int bitmapY = 42;
+ int bitmapWidth = 120;
+ int bitmapHeight = 120;
+ int xMargin = 0;
+ Bitmap* pBitmap = null;
+ DateTime invalidAlarmTime;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ Font font;
+
+ AppLog("__width = %d", __width);
+
+ if (__width > 720)
+ {
+ alarmNameTextX = __width - (__width / 2 + 70);
+ alarmNameTextWidth = __width - alarmNameTextX - bitmapWidth - 32;
+ xMargin = 46;
+ }
+ else
+ {
+ alarmNameTextX = 320;
+ alarmNameTextWidth = 248;
+ xMargin = 26;
+ }
+
+ repeatEnrichedText.Construct(Dimension(__width, HEIGHT));
+ repeatFlags = __pAlarm->GetRepeatFlags();
+
+ for (int i = 0; i < 7; i++)
+ {
+ wchar_t ch;
+ Font font;
+ String flag = L"";
+ characterGap = 35;
+
+ repeatTextElement = new (std::nothrow) TextElement();
+ repeatTextElement->Construct();
+
+ font.Construct(FONT_STYLE_BOLD, fontSize);
+ repeatTextElement->SetFont(font);
+
+ repeatFlags.GetCharAt(i, ch);
+ AppLogDebug("the flag is %ls",GetRepeatFlag().GetPointer());
+
+ if (ch == '1')
+ {
+ textColor = Color::GetColor(COLOR_ID_BLUE);
+ AppLogDebug("color is blue");
+ }
+ else
+ {
+ textColor = Color(124,124,124);
+ }
+
+ switch (i)
+ {
+ case 0:
+ {
+ repeatTextElement->SetText(L"S");
+ flag.Append(L"S");
+ }
+ break;
+
+ case 1:
+ {
+ repeatTextElement->SetText(L"M");
+ flag.Append(L"M");
+ }
+ break;
+
+ case 2:
+ {
+ characterGap = 36;
+ repeatTextElement->SetText(L"T");
+ flag.Append(L"T");
+ }
+ break;
+
+ case 3:
+ {
+ repeatTextElement->SetText(L"W");
+ flag.Append(L"W");
+ }
+ break;
+
+ case 4:
+ {
+ characterGap = 36;
+ repeatTextElement->SetText(L"T");
+ flag.Append(L"T");
+ }
+ break;
+
+ case 5:
+ {
+ repeatTextElement->SetText(L"F");
+ flag.Append(L"F");
+ }
+ break;
+
+ case 6:
+ {
+ repeatTextElement->SetText(L"S");
+ flag.Append(L"S");
+ }
+ break;
+
+ }
+
+ r = repeatEnrichedText.Add(*repeatTextElement);
+ AppLogDebug("the string is %ls", flag.GetPointer());
+ r = AddElement(Rectangle(xMargin + i*characterGap, MARGIN_Y, flagHeight, HEIGHT), i, flag, flagHeight, textColor, textColor, textColor, true);
+ AppLogDebug("the last result %s", GetErrorMessage(r));
+
+ delete repeatTextElement;
+
+ }
+
+ textColor = Color::GetColor(COLOR_ID_BLACK);
+
+ hours = __pAlarm->GetAlarmTime().GetHour();
+
+ if (__is24HourFormat == false)
+ {
+ if(__pAlarm->GetAlarmTime().GetHour() > 12)
+ {
+ hours -= 12;
+ }
+ }
+
+ if(hours == 0 && __is24HourFormat == false)
+ {
+ hours = 12;
+ }
+
+ if(hours < 10)
+ {
+ alarmTime.Append("0");
+ }
+
+ alarmTime.Append(hours);
+ alarmTime.Append(":");
+
+ if(__pAlarm->GetAlarmTime().GetMinute() < 10)
+ {
+ alarmTime.Append("0");
+ }
+
+ alarmTime.Append(__pAlarm->GetAlarmTime().GetMinute());
+ AddElement(Rectangle(xMargin, alarmTimeY, alarmTimeWidth, alarmTimeHeight), IDA_FORMAT_STRING, alarmTime, alarmTimeHeight, textColor, textColor, textColor, true);
+
+ textColor = Color(24, 24, 24);
+
+ if (__pAlarm->GetAlarmTime().GetHour() < 12)
+ {
+ String resourceStr;
+ pAppResource->GetString(L"IDS_COM_BODY_AM", resourceStr);
+ alarmTimeStatus.Append(resourceStr);
+ }
+ else
+ {
+ String resourceStr;
+ pAppResource->GetString(L"IDS_COM_POP_PM", resourceStr);
+ alarmTimeStatus.Append(resourceStr);
+ }
+
+ if (__is24HourFormat == false)
+ {
+ r = AddElement(Rectangle(xMargin + alarmTimeWidth, alarmTimeStatusY, alarmTimeStatusWidth, alarmTimeStatusHeight), IDA_FORMAT_STATUS_STRING, alarmTimeStatus, alarmTimeStatusFont, textColor, textColor, textColor, true);
+ }
+
+ textColor = Color(153, 153, 153);
+ alarmName.Append(__pAlarm->GetAlarmName());
+
+ alarmNameTextElement = new (std::nothrow) TextElement();
+ alarmNameTextElement->Construct();
+ alarmNameTextElement->SetText(alarmName);
+ alarmNameTextElement->SetTextColor(textColor);
+
+ font.Construct(FONT_STYLE_PLAIN, alarmNameTextFont);
+ alarmNameTextElement->SetFont(font);
+ alarmNameText.Construct(Dimension(dimensionWidth, dimensionHeight));
+ alarmNameText.Add(*alarmNameTextElement);
+ alarmNameText.SetHorizontalAlignment(TEXT_ALIGNMENT_RIGHT);
+ AddElement(Rectangle(alarmNameTextX, alarmNameTextY, alarmNameTextWidth, alarmNameTextHeight), IDA_FORMAT_NAME_STRING, alarmNameText);
+
+ delete alarmNameTextElement;
+
+ invalidAlarmTime.SetValue(9999,1,1);
+ cmp = DateTime::Compare(invalidAlarmTime, __pAlarm->GetNextRingingTime());
+
+ if((__pAlarm->GetRepeatFlags().Contains("1") == false && cmp == 0) || __pAlarm->GetAlarmOnState() == 0)
+ {
+ AppLogDebug("AlarmRepeatCustomItem::Make");
+ pBitmap = pAppResource->GetBitmapN(IDB_ALARM_ICON_OFF);
+ }
+ else
+ {
+ AppLogDebug("__pAlarm->GetSnoozeRepeatCount() = %d __pAlarm->GetSnoozeRepeat() = %d", __pAlarm->GetSnoozeRepeatCount(), __pAlarm->GetSnoozeRepeat());
+
+ if(__pAlarm->GetSnoozeOn() && __pAlarm->GetSnoozeRepeatCount() < __pAlarm->GetSnoozeRepeat() && __pAlarm->GetSnoozeRepeatCount() >= 0)
+ {
+ AppLog("the snooze is snooze is off");
+ pBitmap = pAppResource->GetBitmapN(IDB_ALARM_ICON_SNOOZE);
+ }
+ else
+ {
+ pBitmap = pAppResource->GetBitmapN(IDB_ALARM_ICON_ON);
+ }
+
+ }
+
+ if (!__isItemChecked)
+ {
+
+ AddElement(Rectangle(bitmapX, bitmapY, bitmapWidth, bitmapHeight), IDA_FORMAT_BITMAP, *pBitmap);
+ SetElementSelectionEnabled(IDA_FORMAT_BITMAP, true);
+ }
+
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null;
+ }
+
+ return r;
+}
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRingingForm.cpp
+ * @brief Used to define AlarmRingingForm
+ */
+
+#include <FApp.h>
+#include <FAppUiApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FMedia.h>
+#include <FSystem.h>
+#include <FTelCallInfo.h>
+#include <FUi.h>
+
+#include "ClkAlarmPresentationModel.h"
+#include "ClkAlarmRingingForm.h"
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Media;
+using namespace Tizen::Shell;
+using namespace Tizen::System;
+using namespace Tizen::Telephony;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int IDA_TABBAR_ITEM1_SNOOZE = 100;
+static const int IDA_TABBAR_ITEM1_STOP = 101;
+const RequestId REQUEST_ID_SETZORDER = 10000;
+const RequestId REQUEST_ID_NEXTSCENEEXIST = 10001;
+
+AlarmRingingForm::AlarmRingingForm()
+: __hours(0),
+ __minutes(0),
+ __nextSceneExist(false),
+ __pAlarm(null),
+ __pAlarmTimeLabel(null),
+ __pAlarmTitleLabel(null),
+ __pClockLabel(null),
+ __pCurrentTimeLabel(null),
+ __pPlayer(null),
+ __pSnoozeButton(null),
+ __pStopButton(null),
+ __pTimer(null),
+ __pVibrator(null),
+ __timerExpired(false)
+{
+
+}
+
+AlarmRingingForm::~AlarmRingingForm()
+{
+
+ if ( __pTimer != null)
+ {
+ delete __pTimer ;
+ __pTimer = null;
+ }
+ if (__pPlayer != null)
+ {
+ delete __pPlayer;
+ __pPlayer = null;
+ }
+ if (__pVibrator != null)
+ {
+ delete __pVibrator;
+ __pVibrator = null;
+ }
+}
+
+bool
+AlarmRingingForm::Initialize()
+{
+ Form::Construct(L"IDL_ALARM_RINGING_FORM");
+ return true;
+}
+
+result
+AlarmRingingForm::OnInitializing(void)
+{
+ result r = E_FAILURE;
+
+ SettingInfo::GetValue(L"http://tizen.org/setting/locale.time.format.24hour", is24HourFormat);
+
+ PowerManager::AddScreenEventListener(*this);
+ AddOrientationEventListener(*this);
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->AddSceneEventListener(IDSCN_ALARM_RINGING, *this);
+
+ if (IsFailed(r))
+ {
+ AppLogException("OnInitialized failed with %s", GetErrorMessage(r));
+ return r;
+ }
+ }
+
+ __pSnoozeButton = static_cast< Button* >(GetControl("IDC_BUTTON1"));
+
+ if (__pSnoozeButton != null)
+ {
+ __pSnoozeButton->SetActionId(IDA_TABBAR_ITEM1_SNOOZE);
+ __pSnoozeButton->AddActionEventListener(*this);
+ }
+
+ __pStopButton = static_cast< Button* >(GetControl("IDC_BUTTON2"));
+
+ if (__pStopButton != null)
+ {
+ __pStopButton->SetActionId(IDA_TABBAR_ITEM1_STOP);
+ __pStopButton->AddActionEventListener(*this);
+ }
+
+ __pClockLabel = static_cast< Label* >(GetControl("IDC_LABEL1"));
+ __pCurrentTimeLabel = static_cast< Label* >(GetControl("IDC_LABEL2"));
+ __pAlarmTimeLabel = static_cast< Label* >(GetControl("IDC_LABEL3"));
+ __pAlarmTitleLabel = static_cast< Label* >(GetControl("IDC_LABEL4"));
+
+ // Create Timer
+ __pTimer = new (std::nothrow) Timer();
+
+ if (__pTimer == null)
+ {
+ return E_FAILURE;
+ }
+
+ __callManager.Construct(*this);
+
+ r = __pTimer->Construct(*this);
+
+ return r;
+}
+
+result
+AlarmRingingForm::OnTerminating(void)
+{
+ PowerManager::RemoveScreenEventListener(*this);
+ return E_SUCCESS;
+}
+void
+AlarmRingingForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ int hours = 0;
+ String alarmTimeString = L"";
+ String alarmTonePath;
+ DateTime alarmTime;
+ int alarmVolume;
+ int buttonGap = 0;
+ bool snoozeOn = false;
+
+ //PowerManager::AddScreenEventListener(*this);
+ if (__nextSceneExist && __timerExpired)
+ {
+ SendUserEvent(REQUEST_ID_NEXTSCENEEXIST, null);
+ return;
+ }
+
+ if (__nextSceneExist && !__timerExpired)
+ {
+ __pPlayer->Play();
+ }
+ __nextSceneExist = false;
+
+ if (pArgs != null)
+ {
+ __pAlarm = dynamic_cast<AlarmData*>(pArgs->GetAt(0));
+
+ if ( __pAlarm == null )
+ {
+ return;
+ }
+
+ snoozeOn = __pAlarm->GetSnoozeOn();
+
+ if (snoozeOn && __pAlarm->GetSnoozeRepeatCount() != 0)
+ {
+ alarmTime = __pAlarm->GetAlarmTime();
+ AppLog("alarmTime = %ls", alarmTime.ToString().GetPointer());
+ if (is24HourFormat)
+ {
+ hours = alarmTime.GetHour();
+
+ if ( hours < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(hours);
+ }
+ else
+ {
+ hours = alarmTime.GetHour() % 12;
+
+ if (hours == 0)
+ {
+ alarmTimeString.Append("12");
+ }
+ else
+ {
+ if ( hours < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(hours%12);
+ }
+ }
+
+ alarmTimeString.Append(":");
+
+ if (alarmTime.GetMinute() < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(alarmTime.GetMinute());
+ alarmTimeString.Append(" ");
+
+ if (is24HourFormat == false)
+ {
+ if (alarmTime.GetHour() >= 12)
+ {
+ alarmTimeString.Append("PM");
+ }
+ else
+ {
+ alarmTimeString.Append("AM");
+ }
+ }
+
+
+ __pAlarmTimeLabel->SetText(alarmTimeString);
+ }
+ else
+ {
+ __pAlarmTimeLabel->SetShowState(false);
+ __pSnoozeButton->SetShowState(false);
+ __pAlarmTitleLabel->SetBounds(Rectangle(__pAlarmTimeLabel->GetX(),__pAlarmTimeLabel->GetY(),__pAlarmTitleLabel->GetWidth(),__pAlarmTitleLabel->GetHeight()));
+
+ if (GetOrientation() == ORIENTATION_LANDSCAPE || GetOrientation() == ORIENTATION_LANDSCAPE_REVERSE)
+ {
+ buttonGap = 390;
+ }
+ else
+ {
+ buttonGap = 110;
+ }
+
+ __pStopButton->SetBounds(Rectangle(buttonGap,__pStopButton->GetY(),GetClientAreaBounds().width - 2 * buttonGap, __pStopButton->GetHeight()));
+
+ }
+ __pAlarmTitleLabel->SetText(__pAlarm->GetAlarmName());
+
+ alarmVolume = __pAlarm->GetRingVolume();
+ alarmTonePath = __pAlarm->GetRingTone();
+
+ if (__pAlarm->GetRingType() == ALARM_TYPE_MELODY)
+ {
+ StartAudio(alarmTonePath,alarmVolume);
+ }
+ else if(__pAlarm->GetRingType() == ALARM_TYPE_VIBRATION)
+ {
+ StartVibrator();
+ }
+ else if (__pAlarm->GetRingType() == ALARM_TYPE_MELODY_AND_VIBRATION)
+ {
+ StartAudio(alarmTonePath,alarmVolume);
+ StartVibrator();
+ }
+ }
+
+ if(__pTimer != null)
+ {
+ __pTimer->Start(1);
+ }
+
+ SendUserEvent(REQUEST_ID_SETZORDER, null);
+
+}
+
+void
+AlarmRingingForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ result r = E_FAILURE;
+
+ if (requestId == REQUEST_ID_SETZORDER)
+ {
+ AppLog("the z-order is set");
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ if (LockManager::GetInstance()->IsLocked())
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ }
+ //pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ Show();
+ //pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ //Show();
+ }
+ }
+ else if (requestId == REQUEST_ID_NEXTSCENEEXIST)
+ {
+ r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+
+}
+
+void
+AlarmRingingForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+ if (nextSceneId == IDSCN_TIMER_RINGING || nextSceneId == IDSCN_TIMER_RINGING_LOCK)
+ {
+ __nextSceneExist = true;
+ }
+
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+
+ if(__pPlayer != null)
+ {
+ if (__nextSceneExist == true)
+ {
+ __pPlayer->Pause();
+ }
+ else
+ {
+ __pPlayer->Stop();
+ __pPlayer->Close();
+ }
+ }
+ if(__pVibrator != null)
+ {
+ __pVibrator->Stop();
+ }
+
+ /* if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }*/
+}
+
+void
+AlarmRingingForm::OnActionPerformed(const Control& source, int actionId)
+{
+ result r = E_SUCCESS;
+ SceneManager* pSceneManager = null;
+ int count = 0;
+ int snoozeRepeatCount = 0;
+ AlarmData* pAlarm = null;
+ ArrayList* alarmList = null;
+ DateTime currentTime;
+ int alarmCount = 0;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }
+
+ switch (actionId)
+ {
+ case IDA_TABBAR_ITEM1_STOP:
+ {
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && __pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetSnoozeRepeatCount(-1);
+
+ if(!pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+
+/* ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ if (pClock->activeAppId.GetLength() > 0 && pClock->activeAppId != ClockApp::GetInstance()->GetAppId())
+ {
+ AppManager::GetInstance()->LaunchApplication(pClock->activeAppId);
+ return;
+ }*/
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll();
+ delete alarmList;
+ alarmList = null;
+ }
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+ }
+ break;
+
+ case IDA_TABBAR_ITEM1_SNOOZE:
+ {
+ DateTime nextAlarmTime;
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ nextAlarmTime.SetValue(__pAlarm->GetAlarmTime());
+ pAlarm->SetLastRingingTime(nextAlarmTime);
+ snoozeRepeatCount = pAlarm->GetSnoozeRepeatCount();
+ pAlarm->SetSnoozeRepeatCount(snoozeRepeatCount - 1);
+
+ if (snoozeRepeatCount <= 0 && !pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll();
+ delete alarmList;
+ alarmList = null;
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+AlarmRingingForm::ShowClock()
+{
+ result r = E_FAILURE;
+ int seconds = 0;
+ int hours = 0;
+ Bitmap* pHourBitmap = null ;
+ Bitmap* pMinuteBitmap = null ;
+ Bitmap* pSecondBitmap = null ;
+ Bitmap* pClockBitmap = null;
+ Bitmap* pFinalBitmap = null;
+ Canvas* pCanvas = null;
+ DateTime currentTime;
+ String currentTimeString = L"";
+ int canvasWidth = 374;
+ int canvasHeight = 544;
+ String hourImagePath;
+ String minuteImagePath;
+ String secondImagePath;
+ Point centerPoint(51,94);
+
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+
+ hourImagePath.Append(IDS_HOUR_IMAGE_PATH);
+ minuteImagePath.Append(IDS_MIN_IMAGE_PATH);
+ secondImagePath.Append(IDS_SEC_IMAGE_PATH);
+
+ if (__minutes != currentTime.GetMinute() || __hours != currentTime.GetHour())
+ {
+ if (is24HourFormat)
+ {
+ hours = currentTime.GetHour();
+
+ if ( hours < 10)
+ {
+ currentTimeString.Append(L"0");
+ }
+
+ currentTimeString.Append(hours);
+ }
+ else
+ {
+ hours = currentTime.GetHour() % 12;
+
+ if (hours == 0)
+ {
+ currentTimeString.Append("12");
+ }
+ else
+ {
+ if ( hours < 10)
+ {
+ currentTimeString.Append(L"0");
+ }
+
+ currentTimeString.Append(hours%12);
+ }
+ }
+
+ currentTimeString.Append(":");
+
+ if (currentTime.GetMinute() < 10)
+ {
+ currentTimeString.Append(L"0");
+ }
+
+ currentTimeString.Append(currentTime.GetMinute());
+ currentTimeString.Append(" ");
+
+ if (!is24HourFormat)
+ {
+ if (currentTime.GetHour() >= 12)
+ {
+ currentTimeString.Append("PM");
+ }
+ else
+ {
+ currentTimeString.Append("AM");
+ }
+ }
+
+ __pCurrentTimeLabel->SetText(currentTimeString);
+ }
+
+ __hours = currentTime.GetHour();
+ __minutes = currentTime.GetMinute();
+ seconds = currentTime.GetSecond();
+
+ pClockBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_CLOCK);
+
+ if ((__hours % 12) < 10)
+ {
+ hourImagePath.Append(L"0");
+ }
+
+ hourImagePath.Append(__hours % 12);
+
+ if (__minutes < 12)
+ {
+ hourImagePath.Append(L"_1.png");
+ }
+ else if (__minutes >= 12 && __minutes < 24)
+ {
+ hourImagePath.Append(L"_2.png");
+ }
+ else if (__minutes >= 24 && __minutes < 36)
+ {
+ hourImagePath.Append(L"_3.png");
+ }
+ else if (__minutes >= 36 && __minutes < 48)
+ {
+ hourImagePath.Append(L"_4.png");
+ }
+ else if (__minutes >= 48 && __minutes < 60)
+ {
+ hourImagePath.Append(L"_5.png");
+ }
+
+ if (__minutes < 10)
+ {
+ minuteImagePath.Append(L"0");
+ }
+
+ minuteImagePath.Append(__minutes);
+ minuteImagePath.Append(L".png");
+
+ if (seconds < 10)
+ {
+ secondImagePath.Append(L"0");
+ }
+
+ secondImagePath.Append(seconds);
+ secondImagePath.Append(L".png");
+
+ AppLog("hourImagePath = %ls minuteImagePath = %ls secondImagePath = %ls", hourImagePath.GetPointer(), minuteImagePath.GetPointer(), secondImagePath.GetPointer());
+ pMinuteBitmap = AppResource::GetInstance()->GetBitmapN(minuteImagePath);
+ pHourBitmap = AppResource::GetInstance()->GetBitmapN(hourImagePath);
+ pSecondBitmap = AppResource::GetInstance()->GetBitmapN(secondImagePath);
+
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ r = pCanvas->DrawBitmap(Point(0,0),*pClockBitmap);
+ pCanvas->DrawBitmap(centerPoint,*pHourBitmap);
+ pCanvas->DrawBitmap(centerPoint,*pMinuteBitmap);
+ pCanvas->DrawBitmap(centerPoint,*pSecondBitmap);
+
+ pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if (pFinalBitmap != null)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ __pClockLabel->SetBackgroundBitmap(*pFinalBitmap);
+
+ if (pClockBitmap != null)
+ {
+ delete pClockBitmap;
+ pClockBitmap = null;
+ }
+
+ if (pHourBitmap != null)
+ {
+ delete pHourBitmap;
+ pHourBitmap = null;
+ }
+
+ if (pMinuteBitmap != null)
+ {
+ delete pMinuteBitmap;
+ pMinuteBitmap = null;
+ }
+
+ if (pSecondBitmap != null)
+ {
+ delete pSecondBitmap;
+ pSecondBitmap = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+}
+
+void
+AlarmRingingForm::OnTimerExpired(Timer& timer)
+{
+ DateTime currentTime, alarmTime;
+ int seconds = 0;
+ int minutes = 0;
+
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ if (__pAlarm != null)
+ {
+ alarmTime = __pAlarm->GetAlarmTime();
+ alarmTime.AddMinutes(__pAlarm->GetSnoozeDuration() * (__pAlarm->GetSnoozeRepeat() - __pAlarm->GetSnoozeRepeatCount()));
+ }
+ seconds = currentTime.GetSecond() - alarmTime.GetSecond();
+ minutes = currentTime.GetMinute() - alarmTime.GetMinute();
+ if (seconds < 0)
+ {
+ seconds = seconds + 60;
+ }
+
+ if ( seconds == 0 && minutes == 1 )
+ {
+ int alarmCount = 0;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ SceneManager* pSceneManager = null;
+ int count = 0;
+ int snoozeRepeatCount = 0;
+ AlarmData* pAlarm = null;
+ ArrayList* alarmList = null;
+ result r = E_FAILURE;
+
+ __timerExpired = true;
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && __pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetLastRingingTime(__pAlarm->GetAlarmTime());
+ snoozeRepeatCount = pAlarm->GetSnoozeRepeatCount();
+ pAlarm->SetSnoozeRepeatCount(snoozeRepeatCount - 1);
+ AppLog("AlarmRingingForm::OnTimerExpired 1");
+ if ((snoozeRepeatCount <= 0 || !pAlarm->GetSnoozeOn()) && !pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ AppLog("AlarmRingingForm::OnTimerExpired 2");
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll();
+ delete alarmList;
+ alarmList = null;
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ if (!__nextSceneExist)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+ }
+ }
+ else
+ {
+ __timerExpired = false;
+ if(__pTimer != null)
+ {
+ __pTimer->Start(1000); // to refresh list after 1 second ( 1000 milliseconds)
+ }
+ PowerManager::KeepScreenOnState(true,false);
+ ShowClock();
+ Invalidate(true);
+ }
+
+}
+
+result
+AlarmRingingForm::StartAudio(String& path, int volume)
+{
+ AppLog("AlarmRingingLockForm::StartAudio");
+ result r = E_SUCCESS;
+ Tizen::Media::Player player;
+ __pPlayer = new(std::nothrow) Player();
+ r = __pPlayer->Construct(*this);
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of construct is %s", GetErrorMessage(r));
+ return r;
+ }
+ __pPlayer->Close();
+
+ if(File::IsFileExist(path) == false)
+ {
+ path = AlarmPresentationModel::GetInstance()->defaultAudioPath;
+ }
+ r = __pPlayer->OpenFile(path, false);
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of openfile is %s", GetErrorMessage(r));
+ return r;
+ }
+
+ __pPlayer->SetVolume(volume*100/15);
+
+ r = __pPlayer->SetLooping(true);
+ AppLog("the result is %s", GetErrorMessage(r));
+
+ __pPlayer->SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ r = __pPlayer->Play();
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of play is %s", GetErrorMessage(r));
+ return r;
+ }
+
+ return E_SUCCESS;
+}
+
+result
+AlarmRingingForm::StartVibrator(void)
+{
+ AppLog("AlarmRingingForm::StartVibrator");
+ result r = E_SUCCESS;
+ __pVibrator = new(std::nothrow) Vibrator();
+ r = __pVibrator->Construct();
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of vibrator is %s", GetErrorMessage(r));
+ }
+
+ IntensityDurationVibrationPattern *pPattern = new IntensityDurationVibrationPattern();
+ pPattern->duration = 60000;
+ pPattern->intensity = 100;
+
+ r = __pVibrator->Start(pPattern,10);
+
+ AppLog("the value is %s", GetErrorMessage(r));
+ delete pPattern;
+ pPattern = null;
+
+ return r;
+}
+
+void
+AlarmRingingForm::OnTelephonyCallStatusChangedN (CallStatus callStatus, CallInfo *pCallInfo)
+{
+ AppLog("callStatus %d", callStatus);
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if(callStatus == CALL_STATUS_RINGING)
+ {
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+ }
+}
+
+void
+AlarmRingingForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ int systemVolume = 0;
+ if ( key == L"http://tizen.org/setting/locale.time.format.24hour")
+ {
+ SettingInfo::GetValue(key, is24HourFormat);
+ }
+
+ if (key == L"http://tizen.org/setting/sound.media.volume" )
+ {
+ SettingInfo::GetValue(key, systemVolume);
+ }
+
+}
+
+void
+AlarmRingingForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ AppLog("OnOrientationChanged");
+ int hours = 0;
+ bool snoozeOn = false;
+ String alarmTimeString = L"";
+ DateTime alarmTime;
+ int buttonGap = 110;
+
+ snoozeOn = __pAlarm->GetSnoozeOn();
+
+ if (snoozeOn && __pAlarm->GetSnoozeRepeatCount() != 0)
+ {
+ alarmTime = __pAlarm->GetAlarmTime();
+
+ if (is24HourFormat)
+ {
+ hours = alarmTime.GetHour();
+
+ if ( hours < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(hours);
+ }
+ else
+ {
+ hours = alarmTime.GetHour() % 12;
+
+ if (hours == 0)
+ {
+ alarmTimeString.Append("12");
+ }
+ else
+ {
+ if ( hours < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(hours%12);
+ }
+ }
+
+ alarmTimeString.Append(":");
+
+ if (alarmTime.GetMinute() < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(alarmTime.GetMinute());
+ alarmTimeString.Append(" ");
+
+ if (is24HourFormat == false)
+ {
+ if (alarmTime.GetHour() >= 12)
+ {
+ alarmTimeString.Append("PM");
+ }
+ else
+ {
+ alarmTimeString.Append("AM");
+ }
+ }
+
+
+ __pAlarmTimeLabel->SetText(alarmTimeString);
+ }
+ else
+ {
+ __pAlarmTimeLabel->SetShowState(false);
+ __pSnoozeButton->SetShowState(false);
+ __pAlarmTitleLabel->SetBounds(Rectangle(__pAlarmTimeLabel->GetX(),__pAlarmTimeLabel->GetY(),__pAlarmTitleLabel->GetWidth(),__pAlarmTitleLabel->GetHeight()));
+
+ if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+ {
+ buttonGap = 390;
+ }
+ else
+ {
+ buttonGap = 110;
+ }
+ __pStopButton->SetBounds(Rectangle(buttonGap,__pStopButton->GetY(),GetClientAreaBounds().width - 2 * buttonGap, __pStopButton->GetHeight()));
+ }
+
+
+}
+
+void
+AlarmRingingForm::OnScreenOff(void)
+{
+ AppLog("AlarmRingingForm::OnScreenOff");
+ result r = E_SUCCESS;
+ SceneManager* pSceneManager = null;
+ ArrayList* alarmList = null;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ int count = 0;
+ int alarmCount = 0;
+ AlarmData* pAlarm = null;
+
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && __pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetSnoozeRepeatCount(-1);
+
+ if(!pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+
+/* ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ if (pClock->activeAppId.GetLength() > 0 && pClock->activeAppId != ClockApp::GetInstance()->GetAppId())
+ {
+ AppManager::GetInstance()->LaunchApplication(pClock->activeAppId);
+ return;
+ }*/
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+}
+
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRingingLockForm.cpp
+ * @brief Used to define AlarmRingingLockForm
+ */
+
+
+#include <FApp.h>
+#include <FAppUiApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FMedia.h>
+#include <FSystem.h>
+#include <FTelCallInfo.h>
+#include <FUi.h>
+
+#include "ClkAlarmPresentationModel.h"
+#include "ClkAlarmRingingLockForm.h"
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkSceneRegister.h"
+
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Media;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Telephony;
+
+
+static const int IDA_TABBAR_ITEM1_SNOOZE = 100;
+static const int IDA_TABBAR_ITEM1_STOP = 101;
+const RequestId REQUEST_ID_SETZORDER = 10000;
+
+AlarmRingingLockForm::AlarmRingingLockForm()
+: __hours(0)
+, __minutes(0)
+, __pAlarm(null)
+, __pAlarmRingPanel(null)
+, __pAlarmRingingSnoozeOffPanel(null)
+, __pAlarmTimeLabel(null)
+, __pAlarmTitleLabel(null)
+, __pClockLabel(null)
+, __pCurrentTimeLabel(null)
+, __pPlayer(null)
+, __pTimer(null)
+, __pVibrator(null)
+{
+
+}
+
+AlarmRingingLockForm::~AlarmRingingLockForm()
+{
+
+ if (__pTimer != null)
+ {
+ delete __pTimer;
+ __pTimer = null;
+ }
+ delete __pPlayer;
+ delete __pVibrator;
+}
+
+bool
+AlarmRingingLockForm::Initialize()
+{
+ Form::Construct(L"IDL_ALARM_RINGING_LOCK_FORM");
+
+ return true;
+}
+
+result
+AlarmRingingLockForm::OnInitializing(void)
+{
+ result r = E_FAILURE;
+ Rectangle snoozeRect;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ PowerManager::AddScreenEventListener(*this);
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->AddSceneEventListener(IDSCN_ALARM_RINGING_LOCK, *this);
+
+ if (IsFailed(r))
+ {
+ AppLogException("OnInitialized failed with %s", GetErrorMessage(r));
+ return r;
+ }
+ }
+
+ AddOrientationEventListener(*this);
+
+ __pClockLabel = static_cast<Label*>(GetControl("IDC_LABEL1"));
+ __pCurrentTimeLabel = static_cast<Label*>(GetControl("IDC_LABEL2"));
+ __pAlarmTimeLabel = static_cast<Label*>(GetControl("IDC_LABEL3"));
+ __pAlarmTitleLabel = static_cast<Label*>(GetControl("IDC_LABEL4"));
+ snoozeRect = __pAlarmTitleLabel->GetBounds();
+ snoozeRect.x = 0;
+ snoozeRect.y = GetClientAreaBounds().height - (H_RINGER_LOCK_PANEL + Y_RINGER_LOCK_PANEL_RELATIVE_OFFSET); //snoozeRect.height + Y_RINGER_LOCK_PANEL_RELATIVE_OFFSET;
+ snoozeRect.width = GetWidth();
+ snoozeRect.height = H_RINGER_LOCK_PANEL;
+
+ __pAlarmRingPanel = new (std::nothrow) AlarmRingingLockPanel();
+ __pAlarmRingPanel->Construct(snoozeRect);
+ __pAlarmRingPanel->SetAlarmRinignigCommandListener(this);
+ AddControl(__pAlarmRingPanel);
+ __pAlarmRingPanel->SetBounds(snoozeRect);
+
+ __pAlarmRingingSnoozeOffPanel = new (std::nothrow) AlarmRingingSnoozeOffPanel();
+ __pAlarmRingingSnoozeOffPanel->Construct(snoozeRect);
+ __pAlarmRingingSnoozeOffPanel->SetAlarmRinignigCommandListener(this);
+ AddControl(__pAlarmRingingSnoozeOffPanel);
+ __pAlarmRingingSnoozeOffPanel->SetBounds(snoozeRect);
+ // Create Timer
+ __pTimer = new (std::nothrow) Timer();
+
+ if (__pTimer == null)
+ {
+ return E_FAILURE;
+ }
+
+ __callManager.Construct(*this);
+
+ r = __pTimer->Construct(*this);
+
+ return r;
+}
+
+result
+AlarmRingingLockForm::OnTerminating(void)
+{
+ PowerManager::RemoveScreenEventListener(*this);
+ return E_SUCCESS;
+}
+
+void
+AlarmRingingLockForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ int hours = 0;
+ String alarmTimeString;
+ String alarmTonePath;
+ DateTime alarmTime;
+ int alarmVolume;
+ bool snoozeOn = false;
+
+ if (pArgs != null)
+ {
+ __pAlarm = dynamic_cast<AlarmData*>(pArgs->GetAt(0));
+
+ if( __pAlarm == null)
+ {
+ return;
+ }
+
+ snoozeOn = __pAlarm->GetSnoozeOn();
+
+ if (snoozeOn)
+ {
+ alarmTime = __pAlarm->GetAlarmTime();
+ hours = alarmTime.GetHour() % 12;
+
+ if (hours < 10 || hours > 11)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(hours % 12);
+ alarmTimeString.Append(":");
+
+ if (alarmTime.GetMinute() < 10)
+ {
+ alarmTimeString.Append(L"0");
+ }
+
+ alarmTimeString.Append(alarmTime.GetMinute());
+ alarmTimeString.Append(" ");
+
+ if (alarmTime.GetHour() >= 12)
+ {
+ alarmTimeString.Append("PM");
+ }
+ else
+ {
+ alarmTimeString.Append("AM");
+ }
+
+ __pAlarmTimeLabel->SetText(alarmTimeString);
+
+ if (__pAlarmRingingSnoozeOffPanel != null)
+ {
+ __pAlarmRingingSnoozeOffPanel->SetShowState(false);
+ }
+
+ if (__pAlarmRingPanel != null)
+ {
+ __pAlarmRingPanel->SetShowState(true);
+ }
+ }
+ else
+ {
+ __pAlarmTimeLabel->SetShowState(false);
+ __pAlarmTitleLabel->SetBounds(Rectangle(__pAlarmTimeLabel->GetX(), __pAlarmTimeLabel->GetY(), __pAlarmTitleLabel->GetWidth(), __pAlarmTitleLabel->GetHeight()));
+ __pAlarmRingingSnoozeOffPanel->SetShowState(true);
+ __pAlarmRingPanel->SetShowState(false);
+ }
+
+ __pAlarmTitleLabel->SetText(__pAlarm->GetAlarmName());
+
+
+ alarmVolume = __pAlarm->GetRingVolume();
+ alarmTonePath = __pAlarm->GetRingTone();
+
+ if (__pAlarm->GetRingType() == ALARM_TYPE_MELODY)
+ {
+ StartAudio(alarmTonePath,alarmVolume);
+ }
+ else if(__pAlarm->GetRingType() == ALARM_TYPE_VIBRATION)
+ {
+ StartVibrator();
+ }
+ else if (__pAlarm->GetRingType() == ALARM_TYPE_MELODY_AND_VIBRATION)
+ {
+ StartAudio(alarmTonePath,alarmVolume);
+ StartVibrator();
+ }
+
+ }
+
+ __pTimer->Start(1);
+ Invalidate(true);
+ Show();
+
+ SendUserEvent(REQUEST_ID_SETZORDER, null);
+
+}
+
+void
+AlarmRingingLockForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ if (requestId == REQUEST_ID_SETZORDER)
+ {
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ }
+ }
+}
+
+void
+AlarmRingingLockForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+
+ if(__pPlayer != null)
+ {
+ __pPlayer->Stop();
+ __pPlayer->Close();
+ }
+ if(__pVibrator != null)
+ {
+ __pVibrator->Stop();
+ }
+
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }
+}
+
+void
+AlarmRingingLockForm::OnActionPerformed(const Control& source, int actionId)
+{
+ result r = E_SUCCESS;
+ SceneManager* pSceneManager = null;
+ int count = 0;
+ int alarmCount = 0;
+ int snoozeRepeatCount = 0;
+ AlarmData* pAlarm = null;
+ ArrayList* alarmList = null;
+ DateTime currentTime;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ switch (actionId)
+ {
+ case IDA_TABBAR_ITEM1_STOP:
+ {
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0, count, *alarmList);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast<AlarmData*>(alarmList->GetAt(count));
+
+ if ( pAlarm != null && __pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetSnoozeRepeatCount(-1);
+
+ if(!pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll();
+ delete alarmList;
+ alarmList = null;
+ }
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+
+ }
+ break;
+
+ case IDA_TABBAR_ITEM1_SNOOZE:
+ {
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0, count, *alarmList);
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast<AlarmData*>(alarmList->GetAt(count));
+
+ if ( pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetLastRingingTime(__pAlarm->GetAlarmTime());
+ snoozeRepeatCount = pAlarm->GetSnoozeRepeatCount();
+ pAlarm->SetSnoozeRepeatCount(snoozeRepeatCount - 1);
+
+ if (snoozeRepeatCount <= 0 && !pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll();
+ delete alarmList;
+ alarmList = null;
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+AlarmRingingLockForm::ShowClock()
+{
+ int seconds = 0;
+ int hours = 0;
+ Bitmap* pHourBitmap = null;
+ Bitmap* pMinuteBitmap = null;
+ Bitmap* pSecondBitmap = null;
+ Bitmap* pClockBitmap = null;
+ Bitmap* pFinalBitmap = null;
+ Canvas* pCanvas = null;
+ DateTime currentTime;
+ String currentTimeString = L"";
+ String hourImagePath;
+ String minuteImagePath;
+ String secondImagePath;
+ int canvasWidth = 374;
+ int canvasHeight = 544;
+
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+
+ hourImagePath.Append(IDS_HOUR_IMAGE_PATH);
+ minuteImagePath.Append(IDS_MIN_IMAGE_PATH);
+ secondImagePath.Append(IDS_SEC_IMAGE_PATH);
+
+ if (__minutes != currentTime.GetMinute() || __hours != currentTime.GetHour())
+ {
+ hours = currentTime.GetHour() % 12;
+
+ if (hours < 10)
+ {
+ currentTimeString.Append(L"0");
+ }
+
+ currentTimeString.Append(hours);
+ currentTimeString.Append(":");
+
+ if (currentTime.GetMinute() < 10)
+ {
+ currentTimeString.Append(L"0");
+ }
+
+ currentTimeString.Append(currentTime.GetMinute());
+ currentTimeString.Append(" ");
+
+ if (currentTime.GetHour() >= 12)
+ {
+ currentTimeString.Append("PM");
+ }
+ else
+ {
+ currentTimeString.Append("AM");
+ }
+
+ __pCurrentTimeLabel->SetText(currentTimeString);
+ }
+
+ __hours = currentTime.GetHour();
+ __minutes = currentTime.GetMinute();
+ seconds = currentTime.GetSecond();
+
+ pClockBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ALARM_CLOCK);
+
+ if ((__hours % 12) < 10)
+ {
+ hourImagePath.Append(L"0");
+ }
+
+ hourImagePath.Append(__hours % 12);
+
+ if (__minutes < 12)
+ {
+ hourImagePath.Append(L"_1.png");
+ }
+ else if (__minutes >= 12 && __minutes < 24)
+ {
+ hourImagePath.Append(L"_2.png");
+ }
+ else if (__minutes >= 24 && __minutes < 36)
+ {
+ hourImagePath.Append(L"_3.png");
+ }
+ else if (__minutes >= 36 && __minutes < 48)
+ {
+ hourImagePath.Append(L"_4.png");
+ }
+ else if (__minutes >= 48 && __minutes < 60)
+ {
+ hourImagePath.Append(L"_5.png");
+ }
+
+ if (__minutes < 10)
+ {
+ minuteImagePath.Append(L"0");
+ }
+
+ minuteImagePath.Append(__minutes);
+ minuteImagePath.Append(L".png");
+
+ if (seconds < 10)
+ {
+ secondImagePath.Append(L"0");
+ }
+
+ secondImagePath.Append(seconds);
+ secondImagePath.Append(L".png");
+
+ pMinuteBitmap = AppResource::GetInstance()->GetBitmapN(minuteImagePath);
+ pHourBitmap = AppResource::GetInstance()->GetBitmapN(hourImagePath);
+ pSecondBitmap = AppResource::GetInstance()->GetBitmapN(secondImagePath);
+
+ Point centerPoint(51,94);
+
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pClockBitmap);
+ pCanvas->DrawBitmap(centerPoint,*pHourBitmap);
+ pCanvas->DrawBitmap(centerPoint,*pMinuteBitmap);
+ pCanvas->DrawBitmap(centerPoint,*pSecondBitmap);
+
+ pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if (pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas, Rectangle(0, 0, 374, 544));
+ delete pCanvas;
+ }
+
+ __pClockLabel->SetBackgroundBitmap(*pFinalBitmap);
+
+ if (pClockBitmap != null)
+ {
+ delete pClockBitmap;
+ pClockBitmap = null;
+ }
+
+ if (pHourBitmap != null)
+ {
+ delete pHourBitmap;
+ pHourBitmap = null;
+ }
+
+ if (pMinuteBitmap != null)
+ {
+ delete pMinuteBitmap;
+ pMinuteBitmap = null;
+ }
+
+ if (pSecondBitmap != null)
+ {
+ delete pSecondBitmap;
+ pSecondBitmap = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+}
+
+void
+AlarmRingingLockForm::OnTimerExpired(Timer& timer)
+{
+ DateTime currentTime, alarmTime;
+ int seconds = 0;
+ int minutes = 0;
+
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+
+if (__pAlarm != null)
+ {
+ alarmTime = __pAlarm->GetAlarmTime();
+ alarmTime.AddMinutes(__pAlarm->GetSnoozeDuration() * (__pAlarm->GetSnoozeRepeat() - __pAlarm->GetSnoozeRepeatCount()));
+ }
+
+ seconds = currentTime.GetSecond() - alarmTime.GetSecond();
+ minutes = currentTime.GetMinute() - alarmTime.GetMinute();
+ if (seconds < 0)
+ {
+ seconds = seconds + 60;
+ }
+
+ if (seconds == 0 && minutes == 1)
+ {
+ int alarmCount = 0;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ SceneManager* pSceneManager = null;
+ int count = 0;
+ int snoozeRepeatCount = 0;
+ AlarmData* pAlarm = null;
+ ArrayList* alarmList = null;
+ result r = E_FAILURE;
+
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && __pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetLastRingingTime(__pAlarm->GetAlarmTime());
+ snoozeRepeatCount = pAlarm->GetSnoozeRepeatCount();
+ pAlarm->SetSnoozeRepeatCount(snoozeRepeatCount - 1);
+
+ if ((snoozeRepeatCount <= 0 || !pAlarm->GetSnoozeOn()) && !pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+ if (alarmList != null)
+ {
+ alarmList->RemoveAll();
+ delete alarmList;
+ alarmList = null;
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+ }
+ else
+ {
+ __pTimer->Start(1000); // to refresh list after 1 second ( 1000 milliseconds)
+ PowerManager::KeepScreenOnState(true,false);
+ ShowClock();
+ Invalidate(true);
+ }
+
+}
+
+void
+AlarmRingingLockForm::OnAlarmRingingLockEvent(AlarmRingingCommandId commandId)
+{
+ result r = E_SUCCESS;
+ SceneManager* pSceneManager = null;
+ int count = 0;
+ int snoozeRepeatCount = 0;
+ AlarmData* pAlarm = null;
+ ArrayList* alarmList = null;
+ DateTime currentTime;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ int alarmCount = 0;
+
+ switch (commandId)
+ {
+ case ALARM_RINGING_PANEL_STOP:
+ {
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0, count, *alarmList);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast<AlarmData*>(alarmList->GetAt(count));
+
+
+ if ( pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetSnoozeRepeatCount(-1);
+
+ if(!pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+
+ }
+ break;
+
+ case ALARM_RINGING_PANEL_SNOOZE:
+ {
+
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetLastRingingTime(__pAlarm->GetAlarmTime());
+ snoozeRepeatCount = pAlarm->GetSnoozeRepeatCount();
+ pAlarm->SetSnoozeRepeatCount(snoozeRepeatCount - 1);
+
+ if (snoozeRepeatCount <= 0 && !pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+
+ }
+ break;
+
+ default:
+ break;
+ }
+
+}
+
+result
+AlarmRingingLockForm::StartAudio(String& path, int volume)
+{
+ AppLog("AlarmRingingLockForm::StartAudio");
+ result r = E_SUCCESS;
+ Tizen::Media::Player player;
+ __pPlayer = new(std::nothrow) Player();
+ r = __pPlayer->Construct(*this);
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of construct is %s", GetErrorMessage(r));
+ return r;
+ }
+ __pPlayer->Close();
+ if(File::IsFileExist(path) == false)
+ {
+ path = AlarmPresentationModel::GetInstance()->defaultAudioPath;
+ }
+ r = __pPlayer->OpenFile(path, false);
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of openfile is %s", GetErrorMessage(r));
+ return r;
+ }
+
+ __pPlayer->SetVolume(volume*100/15);
+ r = __pPlayer->SetLooping(true);
+
+ __pPlayer->SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ r = __pPlayer->Play();
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of play is %s", GetErrorMessage(r));
+ return r;
+ }
+
+ return E_SUCCESS;
+}
+
+result
+AlarmRingingLockForm::StartVibrator(void)
+{
+ result r = E_SUCCESS;
+ __pVibrator = new(std::nothrow) Vibrator();
+ r = __pVibrator->Construct();
+
+ if (IsFailed(r))
+ {
+ AppLog("the result of vibrator is %s", GetErrorMessage(r));
+ }
+
+ r = __pVibrator->Start(60000,__pAlarm->GetRingVolume());
+
+ return r;
+}
+
+void
+AlarmRingingLockForm::OnTelephonyCallStatusChangedN (CallStatus callStatus, CallInfo *pCallInfo)
+{
+ AppLog("callStatus %d", callStatus);
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if(callStatus != CALL_STATUS_IDLE)
+ {
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+ }
+ else
+ {
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ }
+ }
+}
+
+void
+AlarmRingingLockForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ Rectangle lockRect;
+
+ lockRect.y = GetClientAreaBounds().height - (H_RINGER_LOCK_PANEL + Y_RINGER_LOCK_PANEL_RELATIVE_OFFSET); //snoozeRect.height + Y_RINGER_LOCK_PANEL_RELATIVE_OFFSET;
+ lockRect.x = 0;
+ lockRect.width = GetWidth();
+ lockRect.height = H_RINGER_LOCK_PANEL;
+
+ __pAlarmRingPanel->SetBounds(lockRect);
+ __pAlarmRingingSnoozeOffPanel->SetBounds(lockRect);
+}
+
+void
+AlarmRingingLockForm::OnScreenOff(void)
+{
+ AppLog("AlarmRingingForm::OnScreenOff");
+ result r = E_SUCCESS;
+ SceneManager* pSceneManager = null;
+ ArrayList* alarmList = null;
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ int count = 0;
+ int alarmCount = 0;
+ AlarmData* pAlarm = null;
+
+ pAlarmPresentationModel->GetAlarmCount(count);
+ alarmList = new (std::nothrow) ArrayList();
+
+ if (alarmList == null)
+ {
+ return;
+ }
+
+ alarmList->Construct();
+ pAlarmPresentationModel->GetAlarm(0,count,*alarmList);
+ alarmCount = alarmList->GetCount();
+
+ for (count = 0; count < alarmCount; count++)
+ {
+ pAlarm = dynamic_cast< AlarmData* >(alarmList->GetAt(count));
+
+ if ( pAlarm != null && __pAlarm != null && pAlarm->GetAlarmId() == __pAlarm->GetAlarmId())
+ {
+ pAlarm->SetSnoozeRepeatCount(-1);
+
+ if(!pAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pAlarm->SetAlarmOnState(0);
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+
+ break;
+ }
+ }
+
+
+/* ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ if (pClock->activeAppId.GetLength() > 0 && pClock->activeAppId != ClockApp::GetInstance()->GetAppId())
+ {
+ AppManager::GetInstance()->LaunchApplication(pClock->activeAppId);
+ return;
+ }*/
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkAlarmRingingLockPanel.cpp
+ * @brief This header file contains the definitions of the AlarmRingingLockPanel class.
+ *
+ */
+
+#include <FApp.h>
+#include <FGraphics.h>
+#include <FUiAnimations.h>
+#include "ClkAlarmRingingLockPanel.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Animations;
+using namespace Tizen::Ui::Controls;
+
+AlarmRingingLockPanel::AlarmRingingLockPanel()
+ : __commandId(ALARM_RINGING_PANEL_COUNT)
+ , __controlRestPosition(0, 0)
+ , __isDragging(false)
+ , __pEventListener(null)
+ , __pSnoozeArrowBitmap(null)
+ , __pSnoozeArrowPressedBitmap(null)
+ , __pSnoozeLabel(null)
+ , __pSnoozePanel(null)
+ , __pStopArrowBitmap(null)
+ , __pStopArrowPressedBitmap(null)
+ , __pStopLabel(null)
+ , __pStopPanel(null)
+ , __pUpdateTimer(null)
+{
+
+}
+
+AlarmRingingLockPanel::~AlarmRingingLockPanel()
+{
+ if (__pUpdateTimer != null)
+ {
+ __pUpdateTimer->Cancel();
+ delete __pUpdateTimer;
+ __pUpdateTimer = null;
+ }
+
+ if (__pSnoozeArrowBitmap != null)
+ {
+ delete __pSnoozeArrowBitmap;
+ }
+
+ if (__pSnoozeArrowPressedBitmap != null)
+ {
+ delete __pSnoozeArrowPressedBitmap;
+ }
+
+ if (__pStopArrowBitmap != null)
+ {
+ delete __pStopArrowBitmap;
+ }
+
+ if (__pStopArrowPressedBitmap != null)
+ {
+ delete __pStopArrowPressedBitmap;
+ }
+
+
+}
+
+result
+AlarmRingingLockPanel::Construct(Rectangle controlRect)
+{
+ result r = E_SUCCESS;
+ Label* pSnoozeArrowLabel3 = null;
+ Label* pSnoozeArrowLabel2 = null;
+ Label* pStopArrowLabel3 = null;
+ Label* pStopArrowLabel2 = null;
+ Bitmap* pArrowBitmap = null;
+ int arrowBitmapWidth = 255;
+ int arrowBitmapHeight1 = 60;
+ int arrowBitmapHeight2 = 80;
+ int alphaConstant = 100;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ r = Panel::Construct(L"IDL_ALARM_RINGING_LOCK_PANEL");
+ TryCatch(r == E_SUCCESS, , "Panel::Construct failed with error %s", GetErrorMessage(r));
+
+ __pSnoozePanel = static_cast<Panel*>(GetControl(L"IDC_SNOOZE_PANEL", true));
+ __pSnoozePanel->AddTouchEventListener(*this);
+
+ __pStopPanel = static_cast<Panel*>(GetControl(L"IDC_STOP_PANEL", true));
+ __pStopPanel->AddTouchEventListener(*this);
+
+ __pSnoozeLabel = static_cast<Label*>(__pSnoozePanel->GetControl(L"IDC_SNOOZE_LABEL", true));
+ __pSnoozeLabel->AddTouchEventListener(*this);
+
+ __pStopLabel = static_cast<Label*>(__pStopPanel->GetControl(L"IDC_STOP_LABEL", true));
+ __pStopLabel->AddTouchEventListener(*this);
+
+ pArrowBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_SNOOZE_RIGHT_ARROW);
+ __pSnoozeArrowBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_SNOOZE);
+ __pSnoozeLabel->SetBackgroundBitmap(*__pSnoozeArrowBitmap);
+ __pStopArrowBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_STOP);
+ __pStopLabel->SetBackgroundBitmap(*__pStopArrowBitmap);
+
+ if (pArrowBitmap != null)
+ {
+ pSnoozeArrowLabel3 = static_cast<Label*>(__pSnoozePanel->GetControl(L"IDC_SNOOZE_ARROW_LABEL3", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight1) / alphaConstant);
+ pSnoozeArrowLabel3->SetBackgroundBitmap(*pArrowBitmap);
+ pSnoozeArrowLabel2 = static_cast<Label*>(__pSnoozePanel->GetControl(L"IDC_SNOOZE_ARROW_LABEL2", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight2) / alphaConstant);
+ pSnoozeArrowLabel2->SetBackgroundBitmap(*pArrowBitmap);
+ delete pArrowBitmap;
+ }
+
+ pArrowBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_STOP_LEFT_ARROW);
+
+ if (pArrowBitmap != null)
+ {
+ pStopArrowLabel3 = static_cast<Label*>(__pStopPanel->GetControl(L"IDC_STOP_ARROW_LABEL3", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight1) / alphaConstant);
+ pStopArrowLabel3->SetBackgroundBitmap(*pArrowBitmap);
+ pStopArrowLabel2 = static_cast<Label*>(__pStopPanel->GetControl(L"IDC_STOP_ARROW_LABEL2", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight2) / alphaConstant);
+ pStopArrowLabel2->SetBackgroundBitmap(*pArrowBitmap);
+ delete pArrowBitmap;
+ }
+
+ __pUpdateTimer = new (std::nothrow) Timer();
+ __pUpdateTimer->Construct(*this);
+CATCH:
+ return r;
+}
+
+void
+AlarmRingingLockPanel::SetAlarmRinignigCommandListener(IAlarmRingingLockPanelEvent* pEventListener)
+{
+ __pEventListener = pEventListener;
+}
+
+void
+AlarmRingingLockPanel::OnTouchPressed(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+
+ if (source.Equals(*__pSnoozeLabel))
+ {
+ __commandId = ALARM_RINGING_PANEL_SNOOZE;
+ }
+ else if (source.Equals(*__pStopLabel))
+ {
+ __commandId = ALARM_RINGING_PANEL_STOP;
+ }
+ else
+ {
+ __commandId = ALARM_RINGING_PANEL_COUNT;
+ }
+
+}
+
+void
+AlarmRingingLockPanel::OnTouchReleased(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+ int subValue = 0;
+
+ if (GetBounds().width > 720)
+ {
+ subValue = 320;
+ }
+ else
+ {
+ subValue = 100;
+ }
+
+ if (__isDragging && __commandId != ALARM_RINGING_PANEL_COUNT)
+ {
+ bool isUnlocked = false;
+
+ if (source.Equals(*__pSnoozeLabel))
+ {
+ Rectangle snoozeRect = __pSnoozePanel->GetBounds();
+
+ if (currentPosition.x > ((snoozeRect.x + snoozeRect.width) - subValue))
+ {
+
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION && currentPosition.y < MAX_Y_TOUCH_POSITION)
+ {
+ isUnlocked = true;
+ }
+
+ }
+ }
+ else if (source.Equals(*__pStopLabel))
+ {
+ Rectangle stopRect = __pStopLabel->GetBounds();
+ AppLogDebug("AJAY::CurrentPosition = %d and %d",currentPosition.x,GetWidth() - stopRect.width);
+ if (currentPosition.x > -(GetWidth() - stopRect.width) && currentPosition.x <= -(stopRect.x))
+ {
+
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION && currentPosition.y < MAX_Y_TOUCH_POSITION)
+ {
+ isUnlocked = true;
+ }
+ }
+ }
+
+ if (__pEventListener != null && isUnlocked)
+ {
+ __pEventListener->OnAlarmRingingLockEvent(__commandId);
+ }
+ else
+ {
+ __pUpdateTimer->Start(DURATION_RINGING_UI_UPDATION);
+ }
+
+ __isDragging = false;
+ __commandId = ALARM_RINGING_PANEL_COUNT;
+ }
+}
+
+void
+AlarmRingingLockPanel::OnTouchMoved(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+ if (__commandId != ALARM_RINGING_PANEL_COUNT)
+ {
+ if (__commandId == ALARM_RINGING_PANEL_SNOOZE)
+ {
+ if (source.Equals(*__pSnoozeLabel))
+ {
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION && currentPosition.y < MAX_Y_TOUCH_POSITION &&
+ currentPosition.x > (__pSnoozeLabel->GetPosition().x + CONTROL_WIDTH_OFFSET))
+ {
+ __isDragging = true;
+ __pUpdateTimer->Start(DURATION_RINGING_UI_UPDATION);
+ }
+ }
+ }
+
+ if (__commandId == ALARM_RINGING_PANEL_STOP)
+ {
+ if (source.Equals(*__pStopLabel))
+ {
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION && currentPosition.y < MAX_Y_TOUCH_POSITION &&
+ currentPosition.x < -(__pStopLabel->GetPosition().x - CONTROL_WIDTH_OFFSET))
+ {
+ __isDragging = true;
+ __pUpdateTimer->Start(DURATION_RINGING_UI_UPDATION);
+ }
+ }
+ }
+ }
+}
+
+void
+AlarmRingingLockPanel::OnTimerExpired(Timer& timer)
+{
+ if (timer.Equals(*__pUpdateTimer))
+ {
+ if (__isDragging)
+ {
+ if (__pSnoozeArrowPressedBitmap == null)
+ {
+ __pSnoozeArrowPressedBitmap = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_RINGER_LOCK_SNOOZE_PRESSED);
+ }
+
+ if (__pSnoozeArrowPressedBitmap != null && __commandId == ALARM_RINGING_PANEL_SNOOZE)
+ {
+ __pSnoozeLabel->SetBackgroundBitmap(*__pSnoozeArrowPressedBitmap);
+ __pSnoozeLabel->Invalidate(false);
+ }
+
+ if (__pStopArrowPressedBitmap == null)
+ {
+ __pStopArrowPressedBitmap = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_RINGER_LOCK_STOP_PRESSED);
+ }
+
+ if (__pStopArrowPressedBitmap != null && __commandId == ALARM_RINGING_PANEL_STOP)
+ {
+ __pStopLabel->SetBackgroundBitmap(*__pStopArrowPressedBitmap);
+ __pStopLabel->Invalidate(true);
+ }
+
+ }
+ else
+ {
+ if (__pSnoozeArrowBitmap != null)
+ {
+ __pSnoozeLabel->SetBackgroundBitmap(*__pSnoozeArrowBitmap);
+ __pSnoozeLabel->Invalidate(false);
+ }
+
+ if (__pStopArrowBitmap != null)
+ {
+ __pStopLabel->SetBackgroundBitmap(*__pStopArrowBitmap);
+ __pStopLabel->Invalidate(false);
+ }
+ }
+ }
+}
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file AlarmRingingSnoozeOffPanel.cpp
+ * @brief This file contains the definitions of the AlarmRingingSnoozeOffPanel class.
+ *
+ */
+
+
+#include <FApp.h>
+#include <FGraphics.h>
+#include <FUiAnimations.h>
+#include "ClkAlarmRingingSnoozeOffPanel.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Animations;
+using namespace Tizen::Ui::Controls;
+
+AlarmRingingSnoozeOffPanel::AlarmRingingSnoozeOffPanel(void)
+: __commandId(ALARM_RINGING_PANEL_COUNT)
+, __isDragging(false)
+, __pStopBitmap(null)
+, __pStopLabel(null)
+, __pStopPressedBitmap(null)
+, __pUpdateTimer(null)
+{
+
+}
+
+AlarmRingingSnoozeOffPanel::~AlarmRingingSnoozeOffPanel(void)
+{
+ if (__pUpdateTimer != null)
+ {
+ __pUpdateTimer->Cancel();
+ delete __pUpdateTimer;
+ __pUpdateTimer = null;
+ }
+
+ if (__pStopBitmap != null)
+ {
+ delete __pStopBitmap;
+ }
+
+ if (__pStopPressedBitmap != null)
+ {
+ delete __pStopPressedBitmap;
+ }
+
+}
+
+result
+AlarmRingingSnoozeOffPanel::Construct(Rectangle controlRect)
+{
+ result r = E_SUCCESS;
+ Label* pLeftArrowLabel3 = null;
+ Label* pLeftArrowLabel2 = null;
+ Label* pRightArrowLabel3 = null;
+ Label* pRightArrowLabel2 = null;
+ Bitmap* pArrowBitmap = null;
+ int arrowBitmapWidth = 255;
+ int arrowBitmapHeight1 = 60;
+ int arrowBitmapHeight2 = 80;
+ int alphaConstantValue = 100;
+
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ r = Panel::Construct(L"IDL_ALARM_RINGING_SNOOZE_OFF_PANEL");
+ TryCatch(r == E_SUCCESS, , "Panel::Construct failed with error %s", GetErrorMessage(r));
+ SetBounds(controlRect);
+
+ __pStopLabel = static_cast<Label*>(GetControl(L"IDC_STOP_ALARM_LABEL", true));
+ __pStopLabel->AddTouchEventListener(*this);
+
+ pArrowBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_STOP_LEFT_ARROW);
+ __pStopBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_STOP);
+ __pStopLabel->SetBackgroundBitmap(*__pStopBitmap);
+
+ if (pArrowBitmap != null)
+ {
+ pLeftArrowLabel3 = static_cast<Label*>(GetControl(L"IDC_STOP_LEFT_LABEL3", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight1) / alphaConstantValue);
+ pLeftArrowLabel3->SetBackgroundBitmap(*pArrowBitmap);
+ pLeftArrowLabel2 = static_cast<Label*>(GetControl(L"IDC_STOP_LEFT_LABEL2", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight2) / alphaConstantValue);
+ pLeftArrowLabel2->SetBackgroundBitmap(*pArrowBitmap);
+ delete pArrowBitmap;
+ }
+
+ pArrowBitmap = pAppResource->GetBitmapN(IDB_RINGER_LOCK_STOP_RIGHT_ARROW);
+
+ if (pArrowBitmap != null)
+ {
+ pRightArrowLabel3 = static_cast<Label*>(GetControl(L"IDC_STOP_RIGHT_LABEL3", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight1) / alphaConstantValue);
+ pRightArrowLabel3->SetBackgroundBitmap(*pArrowBitmap);
+ pRightArrowLabel2 = static_cast<Label*>(GetControl(L"IDC_STOP_RIGHT_LABEL2", true));
+ pArrowBitmap->SetAlphaConstant((arrowBitmapWidth * arrowBitmapHeight2) / alphaConstantValue);
+ pRightArrowLabel2->SetBackgroundBitmap(*pArrowBitmap);
+ delete pArrowBitmap;
+ }
+
+ __pUpdateTimer = new (std::nothrow) Timer();
+ __pUpdateTimer->Construct(*this);
+
+CATCH:
+ return r;
+}
+
+void
+AlarmRingingSnoozeOffPanel::SetAlarmRinignigCommandListener(IAlarmRingingLockPanelEvent* pEventListener)
+{
+ __pEventListener = pEventListener;
+}
+
+void
+AlarmRingingSnoozeOffPanel::OnTouchPressed(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+
+ if (source.Equals(*__pStopLabel))
+ {
+ __commandId = ALARM_RINGING_PANEL_STOP;
+ }
+ else
+ {
+ __commandId = ALARM_RINGING_PANEL_COUNT;
+ }
+
+}
+
+void
+AlarmRingingSnoozeOffPanel::OnTouchReleased(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+ if (__isDragging && __commandId != ALARM_RINGING_PANEL_COUNT)
+ {
+ bool isUnlocked = false;
+
+ if (source.Equals(*__pStopLabel))
+ {
+ Rectangle stopRect = __pStopLabel->GetBounds();
+
+ if (currentPosition.x < __pStopLabel->GetX() -(__pStopLabel->GetWidth()/2))
+ {
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION_SNOOZEOFF && currentPosition.y < MAX_Y_TOUCH_POSITION_SNOOZEOFF)
+ {
+ isUnlocked = true;
+ }
+ }
+ else if (currentPosition.x > stopRect.width/* && currentPosition.x <= GetWidth() / 2*/)
+ {
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION_SNOOZEOFF && currentPosition.y < MAX_Y_TOUCH_POSITION_SNOOZEOFF)
+ {
+ isUnlocked = true;
+ }
+ }
+ }
+
+ if (__pEventListener != null && isUnlocked)
+ {
+ __pEventListener->OnAlarmRingingLockEvent(__commandId);
+ }
+ else
+ {
+ __pUpdateTimer->Start(DURATION_RINGING_UI_UPDATION);
+ }
+
+ __isDragging = false;
+ __commandId = ALARM_RINGING_PANEL_COUNT;
+ }
+}
+
+void
+AlarmRingingSnoozeOffPanel::OnTouchMoved(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+ if (__commandId != ALARM_RINGING_PANEL_COUNT)
+ {
+ if (__commandId == ALARM_RINGING_PANEL_STOP)
+ {
+ if (source.Equals(*__pStopLabel))
+ {
+ if (currentPosition.y > MIN_Y_TOUCH_POSITION_SNOOZEOFF && currentPosition.y < MAX_Y_TOUCH_POSITION_SNOOZEOFF &&
+ currentPosition.x < __pStopLabel->GetX()-(__pStopLabel->GetWidth()/2))
+ {
+ __isDragging = true;
+ __pUpdateTimer->Start(DURATION_RINGING_UI_UPDATION);
+ }
+ else if (currentPosition.y > MIN_Y_TOUCH_POSITION_SNOOZEOFF && currentPosition.y < MAX_Y_TOUCH_POSITION_SNOOZEOFF &&
+ currentPosition.x > (__pStopLabel->GetSize().width)
+ && currentPosition.x < GetWidth() / 2)
+ {
+ __isDragging = true;
+ __pUpdateTimer->Start(DURATION_RINGING_UI_UPDATION);
+ }
+ }
+ }
+ }
+}
+
+void
+AlarmRingingSnoozeOffPanel::OnTimerExpired(Timer& timer)
+{
+ if (timer.Equals(*__pUpdateTimer))
+ {
+ if (__isDragging)
+ {
+ if (__pStopPressedBitmap == null)
+ {
+ __pStopPressedBitmap = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_RINGER_LOCK_STOP_PRESSED);
+ }
+
+ if (__pStopPressedBitmap != null && __commandId == ALARM_RINGING_PANEL_STOP)
+ {
+ __pStopLabel->SetBackgroundBitmap(*__pStopPressedBitmap);
+ __pStopLabel->Invalidate(true);
+ }
+
+ }
+ else
+ {
+ if (__pStopBitmap != null)
+ {
+ __pStopLabel->SetBackgroundBitmap(*__pStopBitmap);
+ __pStopLabel->Invalidate(false);
+ }
+ }
+ }
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file CheckBoxCustomItem.cpp
+ * @brief The CheckBoxCustomItem
+ */
+#include <FApp.h>
+#include <FUiControls.h>
+
+#include "ClkCheckBoxCustomItem.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 500;
+static const int IDA_FORMAT_RADIO_BUTTON = 501;
+static const int IDA_FORMAT_CHECK_BUTTON = 502;
+
+CheckBoxCustomItem::CheckBoxCustomItem(void)
+:__isSelected(false),
+ __text("")
+{
+
+}
+
+CheckBoxCustomItem::~CheckBoxCustomItem(void)
+{
+
+}
+
+result
+CheckBoxCustomItem::Construct(int width, int height)
+{
+ result r = E_FAILURE;
+
+ __width = width;
+ __height = height;
+ const Dimension dim(width, height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+
+ return r;
+}
+
+void
+CheckBoxCustomItem::SetText(String& text)
+{
+ __text = text;
+}
+
+String
+CheckBoxCustomItem::GetText(void)
+{
+ return __text;
+}
+
+result
+CheckBoxCustomItem::Make(void)
+{
+ result r = E_FAILURE;
+ Color textColor = Color(70, 70, 70);
+ Color pressedTextColor = Color(249, 249, 249);
+ Bitmap* pBitmap = null;
+ int textX = 0;
+ int itemX = 26;
+ int itemY = 5;
+ int textFont = 40;
+ pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_CHECK_BG);
+ AddElement(Rectangle(itemX, (__height-pBitmap->GetHeight())/2, pBitmap->GetWidth(), pBitmap->GetHeight()), IDA_FORMAT_RADIO_BUTTON, *pBitmap, null);
+ textX = pBitmap->GetWidth() + 36;
+
+ if (__isSelected == true)
+ {
+ pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_CHECK_CHECKING);
+ AddElement(Rectangle(itemX, (__height-pBitmap->GetHeight())/2, pBitmap->GetWidth(), pBitmap->GetHeight()), IDA_FORMAT_CHECK_BUTTON, *pBitmap, null);
+ }
+
+ AppLogDebug("RadioCustomItem::the text is %ls",__text.GetPointer());
+
+ AddElement(Rectangle(textX, itemY, __width - itemX, __height), IDA_FORMAT_STRING,__text, textFont, textColor, pressedTextColor, pressedTextColor, false);
+
+ SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
+
+ return r;
+}
+
+void
+CheckBoxCustomItem::SetSelected(bool selectedValue)
+{
+ __isSelected = selectedValue;
+}
+
+bool
+CheckBoxCustomItem::GetSelected(void)
+{
+ return __isSelected;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkCityListCustomItem
+ * @brief This header file contains the declarations of the CityListCustomItem
+ *
+ */
+
+#include <FUiControls.h>
+#include "ClkCityListCustomItem.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 101;
+static const int IDA_FORMAT_SUB_STRING = 102;
+static const int IDA_FORMAT_RIGHT_SUB_STRING = 103;
+
+CityListCustomItem::CityListCustomItem(void)
+:__rightSubText(""),
+ __subText(""),
+ __text("")
+
+{
+
+}
+
+CityListCustomItem::~CityListCustomItem(void)
+{
+
+}
+
+result
+CityListCustomItem::Construct(int width, int height, bool searchBarModeOn)
+{
+ result r = E_FAILURE;
+ __width = width;
+ __height = height;
+ searchBarModeInput = searchBarModeOn;
+ const Dimension dim(width, height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+ return r;
+
+}
+
+void
+CityListCustomItem::SetText(String& text)
+{
+ __text = text;
+}
+
+String
+CityListCustomItem::GetText(void)
+{
+ return __text;
+}
+
+void
+CityListCustomItem::SetSubText(String& text)
+{
+ __subText.Clear();
+ __subText.Append(text);
+}
+
+String
+CityListCustomItem::GetSubText(void)
+{
+ return __subText;
+}
+
+void
+CityListCustomItem::SetRightSubText(String& text)
+{
+ __rightSubText.Clear();
+ __rightSubText.Append(text);
+}
+
+String
+CityListCustomItem::GetRightSubText(void)
+{
+ return __rightSubText;
+}
+
+result
+CityListCustomItem::Make(String& searchText, int mainTextFont)
+{
+ result r = E_SUCCESS;
+ Color pressedTextColor = Color(255, 255, 255);
+ int textSize = mainTextFont;
+ int xMargin = 26;
+ int yMargin = 22;
+ int width_Element = __width - 60;
+ int width_text = width_Element - 200;
+ int width_rightSubText = 200;
+ int stringHeight = mainTextFont + 18;
+ int subStringHeight = 42;
+ int subStringFont = 32;
+ EnrichedText text;
+ EnrichedText subText;
+ EnrichedText rightSubText;
+ TextElement* textElement = null;
+ TextElement* subTextElement = null;
+ TextElement* rightSubTextElement = null;
+ int compareValue = -1;
+ Font textFont;
+ Font subTextFont;
+ String* token = NULL;
+ int index = 0;
+ int count = 0;
+ ArrayList tokens;
+ int length;
+ String* pStr = null;
+ Color textColor = Color(0, 0, 0);
+ Color redColor = Color(59, 115, 182);
+ String strSearchText = L"";
+ String str = L"";
+
+ text.Construct(Dimension(width_text, stringHeight));
+ subText.Construct(Dimension(width_Element, subStringHeight));
+ rightSubText.Construct(Dimension(width_Element,subStringHeight));
+
+ tokens.Construct();
+
+ if (searchText == L"")
+ {
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ *token = __text;
+ tokens.Add(token);
+ }
+ else
+ {
+ length = __text.GetLength();
+
+ strSearchText = searchText;
+ strSearchText.ToLowerCase();
+
+ while (length > 0)
+ {
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ str = __text;
+ str.ToLowerCase();
+
+ r = str.IndexOf(strSearchText, 0, index);
+
+ if(r == E_OBJ_NOT_FOUND)
+ {
+ *token = __text;
+ tokens.Add(token);
+ __text.Remove(0, __text.GetLength());
+ }
+ else
+ {
+
+ if(index == 0)
+ {
+ __text.SubString(0, searchText.GetLength(), *token);
+ __text.Remove(0,searchText.GetLength());
+ tokens.Add(token);
+
+ }
+ else
+ {
+ __text.SubString(0, index, *token);
+ tokens.Add(token);
+ __text.Remove(0, index);
+ }
+
+ }
+ length = __text.GetLength();
+ }
+ }
+
+ textFont.Construct(FONT_STYLE_BOLD, textSize);
+
+ length = tokens.GetCount();
+ while (count < length)
+ {
+ pStr = static_cast< String* > (tokens.GetAt(count));
+
+ textElement = new (std::nothrow) TextElement();
+ textElement->Construct();
+
+ textElement->SetFont(textFont);
+ textElement->SetText(*pStr);
+
+
+ //compareValue = String::Compare(searchText, *pStr);
+ compareValue = pStr->Equals(searchText, false);
+
+ if (compareValue == 1)
+ {
+ textElement->SetTextColor(redColor);
+ }
+ else
+ {
+ textElement->SetTextColor(textColor);
+ }
+
+ text.Add(*textElement);
+ count++;
+ }
+
+ AddElement(Rectangle(xMargin, yMargin, width_text, stringHeight), IDA_FORMAT_STRING, text);
+
+ text.RemoveAll(true);
+ tokens.RemoveAll(true);
+
+ if (searchText == L"")
+ {
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ *token = __subText;
+ tokens.Add(token);
+ }
+ else
+ {
+ length = __subText.GetLength();
+
+ strSearchText = searchText;
+ strSearchText.ToLowerCase();
+
+ while (length > 0)
+ {
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ str = __subText;
+ str.ToLowerCase();
+
+ r = str.IndexOf(strSearchText, 0, index);
+
+ if(r == E_OBJ_NOT_FOUND)
+ {
+ *token = __subText;
+ tokens.Add(token);
+ __subText.Remove(0, __subText.GetLength());
+ }
+ else
+ {
+
+ if(index == 0)
+ {
+ __subText.SubString(0, searchText.GetLength(), *token);
+ __subText.Remove(0,searchText.GetLength());
+ tokens.Add(token);
+
+ }
+ else
+ {
+ __subText.SubString(0, index, *token);
+ tokens.Add(token);
+ __subText.Remove(0, index);
+ }
+
+ }
+ length = __subText.GetLength();
+ }
+ }
+
+ subTextFont.Construct(FONT_STYLE_BOLD, subStringFont);
+ count = 0;
+
+ if (searchBarModeInput == true)
+ textColor = Color(0,0,0);
+ else
+ textColor = Color(128,128,128);
+
+ length = tokens.GetCount();
+
+ rightSubText.SetHorizontalAlignment(TEXT_ALIGNMENT_RIGHT);
+
+ while (count < length)
+ {
+ pStr = static_cast< String* > (tokens.GetAt(count));
+
+ subTextElement = new (std::nothrow) TextElement();
+ subTextElement->Construct();
+
+ subTextElement->SetFont(subTextFont);
+ subTextElement->SetText(*pStr);
+
+ //compareValue = String::Compare(searchText, *pStr);
+
+ compareValue = pStr->Equals(searchText, false);
+
+ if (compareValue == 1)
+ {
+ subTextElement->SetTextColor(redColor);
+ }
+ else
+ {
+ subTextElement->SetTextColor(textColor);
+ }
+
+ subText.Add(*subTextElement);
+
+ count++;
+ }
+
+ AddElement(Rectangle(xMargin, yMargin + stringHeight, width_Element, subStringHeight), IDA_FORMAT_SUB_STRING, subText);
+
+ subText.RemoveAll(true);
+ tokens.RemoveAll(true);
+
+ if(searchText == L"")
+ {
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ *token = __rightSubText;
+ tokens.Add(token);
+ }
+ else
+ {
+ tokens.Add(new String("GMT"));
+ __rightSubText.Remove(0, 3);
+ length = __rightSubText.GetLength();
+
+ while (length > 0)
+ {
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ r = __rightSubText.IndexOf(searchText, 0, index);
+
+ if (r == E_OBJ_NOT_FOUND)
+ {
+ *token = __rightSubText;
+ tokens.Add(token);
+ __rightSubText.Remove(0, __rightSubText.GetLength());
+ }
+ else
+ {
+
+ if (index == 0)
+ {
+ delete token;
+ token = null;
+ }
+ else
+ {
+ __rightSubText.SubString(0, index, *token);
+ tokens.Add(token);
+ __rightSubText.Remove(0, index);
+ }
+
+ __rightSubText.Remove(0,searchText.GetLength());
+ token = new String();
+
+ if (token == null)
+ {
+ return E_FAILURE;
+ }
+
+ *token = searchText;
+ tokens.Add(token);
+ }
+ length = __rightSubText.GetLength();
+
+ }
+ }
+
+ count = 0;
+
+ if (searchBarModeInput == true)
+ textColor = Color(0,0,0);
+ else
+ textColor = Color(128,128,128);
+
+ length = tokens.GetCount();
+
+ rightSubText.SetHorizontalAlignment(TEXT_ALIGNMENT_RIGHT);
+
+ while (count < length)
+ {
+ pStr = static_cast< String* > (tokens.GetAt(count));
+
+ rightSubTextElement = new (std::nothrow) TextElement();
+ rightSubTextElement->Construct();
+
+ rightSubTextElement->SetFont(subTextFont);
+ rightSubTextElement->SetText(*pStr);
+
+ compareValue = String::Compare(searchText, *pStr);
+
+ if (compareValue == 0 && count > 0)
+ {
+ rightSubTextElement->SetTextColor(redColor);
+ }
+ else
+ {
+ rightSubTextElement->SetTextColor(textColor);
+ }
+
+ rightSubText.Add(*rightSubTextElement);
+
+ count++;
+ }
+
+ AddElement(Rectangle(xMargin + width_text - 18 /*+ 16*/, yMargin, width_rightSubText, subStringHeight), IDA_FORMAT_RIGHT_SUB_STRING, rightSubText);
+
+ rightSubText.RemoveAll(true);
+ tokens.RemoveAll(true);
+
+ return r;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file CityListForm.cpp
+ * @brief Used to define CityListForm
+ */
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+#include <FSystem.h>
+
+#include "ClkAlarm.h"
+#include "ClkAlarmPresentationModel.h"
+#include "ClkAlarmRepeatCustomItem.h"
+#include "ClkCityListForm.h"
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkCityListCustomItem.h"
+#include "ClkSceneRegister.h"
+#include "ClkWorldClockPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::System;
+
+const RequestId REQUEST_ID_PROCESSING = 10000;
+const wchar_t* NO_CITYS = L"No Alarms";
+
+static const int IDA_FOOTER_NAME_CLICKED = 101;
+static const int IDA_FOOTER_TIME_CLICKED = 102;
+static const int IDA_SEARCH_CANCEL_CLICKED = 103;
+
+NameComparer::NameComparer(void)
+{
+
+}
+
+NameComparer::~NameComparer(void)
+{
+
+}
+
+result
+NameComparer::Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp)const
+{
+ result r = E_SUCCESS;
+ TimeZone *pTz1 = dynamic_cast<TimeZone*>(const_cast<Object*>(&obj1));
+ TimeZone *pTz2 = dynamic_cast<TimeZone*>(const_cast<Object*>(&obj2));
+ String cityNameTz1;
+ String areaNameTz1;
+ String cityNameTz2;
+ String areaNameTz2;
+ int separatorIndex = 0;
+
+
+ if(pTz1 == null || pTz2 == null)
+ {
+ return E_FAILURE;
+ }
+
+ pTz1->GetId().IndexOf(L"/", 0, separatorIndex);
+ pTz1->GetId().SubString(separatorIndex + 1, cityNameTz1);
+ pTz1->GetId().SubString(0, separatorIndex, areaNameTz1);
+
+ pTz2->GetId().IndexOf(L"/", 0, separatorIndex);
+ pTz2->GetId().SubString(separatorIndex + 1, cityNameTz2);
+ pTz2->GetId().SubString(0, separatorIndex, areaNameTz2);
+
+ cmp = cityNameTz1.CompareTo(cityNameTz2);
+ return r;
+}
+
+TimeComparer::TimeComparer(void)
+{
+
+}
+TimeComparer::~TimeComparer(void)
+{
+
+}
+
+result
+TimeComparer::Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp)const
+{
+ result r = E_SUCCESS;
+ TimeZone *pTz1 = dynamic_cast<TimeZone*>(const_cast<Object*>(&obj1));
+ TimeZone *pTz2 = dynamic_cast<TimeZone*>(const_cast<Object*>(&obj2));
+
+ if(pTz1 == null || pTz2 == null)
+ {
+ return E_FAILURE;
+ }
+
+ cmp = pTz1->GetRawOffset() - pTz2->GetRawOffset();
+ return r;
+}
+
+CityListForm::CityListForm()
+: __isOperationCompleted(true)
+, __isProcessing(false)
+, __modalMsgBoxResult(0)
+, __pDataList(null)
+, __pMsgBox(null)
+, __pNameListview(null)
+, __pSearchBar(null)
+, __pTimeListview(null)
+, __pTimer(null)
+, __searchText("")
+
+{
+
+}
+
+CityListForm::~CityListForm(void)
+{
+ if ( __pTimer != null)
+ {
+ delete __pTimer ;
+ __pTimer = null;
+ }
+
+ if (__pMsgBox != null)
+ {
+ delete __pMsgBox;
+ __pMsgBox = null;
+ }
+}
+
+bool
+CityListForm::Initialize(void)
+{
+ Construct(L"IDL_CITY_LIST");
+
+ return true;
+}
+
+result
+CityListForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ String fastScrollIndex = L"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ String fastTimeScrollIndex = L"13121110987654321";
+ GetFooter()->SetItemSelected(0);
+ GetFooter()->AddActionEventListener(*this);
+ GetHeader()->SetTitleText(CommonUtil::GetString("IDS_WCL_HEADER_SELECT_TIME_ZONE"));
+
+ SetFormBackEventListener(this);
+ AddOrientationEventListener(*this);
+
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_CITY_LIST, *this);
+
+ ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ int heightOffset = pClock->GetHeightOffset();
+
+ __pSearchBar = dynamic_cast<SearchBar*>(GetControl(L"IDC_CITY_SEARCHBAR"));
+
+ if(__pSearchBar != null)
+ {
+ __pSearchBar->AddActionEventListener(*this);
+ __pSearchBar->AddSearchBarEventListener(*this);
+ __pSearchBar->AddKeypadEventListener(*this);
+ __pSearchBar->AddTextEventListener(*this);
+ __pSearchBar->AddFocusEventListener(*this);
+ }
+
+ __pNameListview = dynamic_cast<ListView*>(GetControl(L"IDC_CITY_LISTVIEW"));
+
+ if(__pNameListview == null)
+ {
+ return E_FAILURE;
+ }
+ __pNameListview->SetItemProvider(*this);
+ __pNameListview->AddListViewItemEventListener(*this);
+ __pNameListview->SetFastScrollIndex(fastScrollIndex, false);
+ __pNameListview->AddFastScrollListener(*this);
+
+
+ __pTimeListview = new ListView();
+
+ if(__pTimeListview == null)
+ {
+ return E_FAILURE;
+ }
+
+ __pTimeListview->Construct(Rectangle(__pNameListview->GetX(), __pSearchBar->GetY() + __pSearchBar->GetHeight() + heightOffset, __pNameListview->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight()- heightOffset), true, SCROLL_STYLE_FADE_OUT);
+ __pTimeListview->SetItemProvider(*this);
+ __pTimeListview->AddListViewItemEventListener(*this);
+ __pTimeListview->SetShowState(false);
+ __pTimeListview->SetTextOfEmptyList(CommonUtil::GetString(L"IDS_COM_BODY_NO_SEARCH_RESULTS"));
+ AddControl(__pTimeListview);
+
+ __pTimer = new (std::nothrow) Timer();
+
+ if (__pTimer == null)
+ {
+ return E_FAILURE;
+ }
+
+ r = __pTimer->Construct(*this);
+
+ return r;
+}
+
+result
+CityListForm::OnTerminating(void)
+{
+ __isOperationCompleted = true;
+ return E_SUCCESS;
+}
+
+void
+CityListForm::OnActionPerformed(const Control& source, int actionId)
+{
+ AppLogDebug("CityListForm::OnActionPerformed actionId = %d",actionId);
+ String fastScrollIndexName = L"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+
+ switch (actionId)
+ {
+ case IDA_SEARCH_CANCEL_CLICKED:
+ {
+ AppLog("came here");
+ __searchText = L"";
+ __pSearchBar->HideKeypad();
+ __pSearchBar->Clear();
+
+ if(__pNameListview->GetShowState())
+ {
+ __pNameListview->SetEnabled(true);
+ __pNameListview->UpdateList();
+ }
+ else
+ {
+ __pTimeListview->SetEnabled(true);
+ __pTimeListview->UpdateList();
+ }
+
+ }
+ break;
+
+ case IDA_FOOTER_NAME_CLICKED:
+ {
+ __pTimeListview->SetShowState(false);
+ __pNameListview->SetShowState(true);
+
+ if(__pDataList)
+ {
+ __pNameListview->UpdateList();
+ }
+
+ if(__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
+ {
+ if (__searchText != "")
+ {
+ __pNameListview->SetEnabled(true);
+ }
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_INPUT);
+ }
+ else
+ {
+ __pNameListview->SetEnabled(true);
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_NORMAL);
+ }
+ __pNameListview->SetFastScrollIndex(fastScrollIndexName, false);
+
+ }
+ break;
+
+ case IDA_FOOTER_TIME_CLICKED:
+ {
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pSearchBar->GetY() + __pSearchBar->GetHeight(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+
+ __pNameListview->SetShowState(false);
+ __pTimeListview->SetShowState(true);
+
+ if(__pDataList)
+ {
+ __pTimeListview->UpdateList();
+ }
+
+ if(__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
+ {
+ if (__searchText != "")
+ {
+ __pTimeListview->SetEnabled(true);
+ }
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_INPUT);
+ }
+ else
+ {
+ __pTimeListview->SetEnabled(true);
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_NORMAL);
+ }
+ //__pTimeListview->SetFastScrollIndex(fastScrollIndexTime, false);
+
+ }
+ break;
+
+ default:
+ break;
+ };
+
+ Invalidate(true);
+
+}
+
+void
+CityListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ String fontSizeStr = "";
+ int fontSize = 0;
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+
+ if(fontSizeStr == "medium")
+ {
+ fontSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ fontSize = 81;
+
+ }
+ else if(fontSizeStr == "giant")
+ {
+ fontSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ fontSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ fontSize = 64;
+ }
+ else
+ {
+ fontSize = 44;
+ }
+
+
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pSearchBar->GetY() + __pSearchBar->GetHeight(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+
+ Invalidate(true);
+}
+
+void
+CityListForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+
+}
+
+void
+CityListForm::OnFormBackRequested(Form& source)
+{
+ AppLog("CityListForm::OnFormBackRequested");
+
+ if (__pSearchBar->GetMode() == SEARCH_BAR_MODE_NORMAL)
+ {
+ SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+ }
+ else
+ {
+ __pSearchBar->SetMode(SEARCH_BAR_MODE_NORMAL);
+ }
+
+}
+
+ListItemBase *
+CityListForm::CreateItem(int index, int itemWidth)
+{
+ AppLog("CityListForm::CreateItem");
+ int itemHeight = 124;
+ int separatorIndex;
+ CityListCustomItem *pItem = new CityListCustomItem();
+ String cityName;
+ String areaName;
+ String gmtValue = L"GMT ";
+ AppLog("before cast index is %d", index);
+ TimeZone *pTimeZone = dynamic_cast<TimeZone*>(__pDataList->GetAt(index));
+ bool searchBarModeOn = false;
+
+ String fontSizeStr = "";
+ int fontSize = 0;
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+
+ if(fontSizeStr == "medium")
+ {
+ fontSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ fontSize = 81;
+
+ }
+ else if(fontSizeStr == "giant")
+ {
+ fontSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ fontSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ fontSize = 64;
+ }
+ else
+ {
+ fontSize = 44;
+ }
+
+ itemHeight += fontSize-44;
+
+ if ( pTimeZone == NULL)
+ {
+ if( pItem != NULL)
+ {
+ delete pItem;
+ pItem = NULL;
+ }
+ return null;
+ }
+
+ AppLog("after cast");
+ int offset = pTimeZone->GetRawOffset();
+
+ if(__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
+ searchBarModeOn = true;
+ else
+ searchBarModeOn = false;
+
+
+ result r = pItem->Construct(GetClientAreaBounds().width, itemHeight, searchBarModeOn);
+ AppLog("the result: %s",GetErrorMessage(r));
+ AppLog("Timezoneid: %ls", pTimeZone->GetId().GetPointer());
+ pTimeZone->GetId().IndexOf(L"/", 0, separatorIndex);
+ pTimeZone->GetId().SubString(separatorIndex + 1, cityName);
+ pTimeZone->GetId().SubString(0, separatorIndex, areaName);
+
+ cityName.Replace("_"," ");
+ areaName.Replace("_"," ");
+ if(offset >= 0)
+ {
+ gmtValue.Append("+");
+ }
+ else
+ {
+ gmtValue.Append("-");
+ offset = 0 - offset;
+ }
+
+ gmtValue.Append(offset/60);
+
+ if (offset%60 != 0)
+ {
+ gmtValue.Append(':');
+ gmtValue.Append(offset%60);
+ }
+
+ pItem->SetText(cityName);
+ pItem->SetSubText(areaName);
+ pItem->SetRightSubText(gmtValue);
+ pItem->Make(__searchText,fontSize);
+
+ AppLog("CityListForm::CreateItem ending ");
+ return pItem;
+}
+
+bool
+CityListForm::DeleteItem(int index, ListItemBase *pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+int
+CityListForm::GetItemCount(void)
+{
+ AppLog("CityListForm::GetItemCount");
+ if(__pDataList)
+ {
+ __pDataList->RemoveAll(true);
+ }
+
+ __pDataList = WorldClockPresentationModel::GetInstance()->GetCityList(__searchText);
+
+ if(GetFooter()->GetSelectedItemIndex() == 0)
+ {
+ __pDataList->Sort(nameComparer);
+ }
+ else
+ {
+ __pDataList->Sort(timeComparer);
+ }
+
+ AppLog("SearchText : %ls, Count : %d",__searchText.GetPointer(), __pDataList->GetCount());
+ return __pDataList->GetCount();
+}
+
+void
+CityListForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus status)
+{
+
+}
+
+void
+CityListForm::OnListViewItemLongPressed(ListView& listView, int index, int elementId, bool& invokeListViewItemCallback)
+{
+
+}
+
+void
+CityListForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ result r = E_FAILURE;
+ int count ;
+ ArrayList worldClockList;
+ WorldClock* pWorldClock = null ;
+ String city;
+ String cityName;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+
+ // Only 20 cities allowed
+ if ( count > 20)
+ {
+ String msg = CommonUtil::GetString(L"IDS_WCL_POP_UNABLE_TO_ADD_CITY_WORLD_CLOCK_LIST_FULL_DELETE_SOME_ITEMS_FIRST");
+ if(__isOperationCompleted == true)
+ {
+ CreateMessage(msg);
+ }
+ return ;
+ }
+
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,worldClockList);
+
+
+
+ TimeZone *pTimeZone = dynamic_cast<TimeZone*>(__pDataList->GetAt(index));
+
+ if ( pTimeZone != null )
+ {
+ AppLog("CityListForm::OnListViewItemStateChanged 1");
+ int separatorIndex;
+ pTimeZone->GetId().IndexOf(L"/", 0, separatorIndex);
+ pTimeZone->GetId().SubString(separatorIndex + 1, cityName);
+ String areaName;
+ pTimeZone->GetId().SubString(0, separatorIndex, areaName);
+ int offset = pTimeZone->GetRawOffset();
+
+ for(int index = 0 ; index < count ; index ++)
+ {
+ pWorldClock = dynamic_cast< WorldClock* >(worldClockList.GetAt(index));
+
+ if( pWorldClock == NULL)
+ {
+ return ;
+ }
+
+ AppLog("CityListForm::OnListViewItemStateChanged 2");
+ city = pWorldClock->GetWorldClockCity();
+ city.Trim();
+ cityName.Trim();
+
+ if( city.Equals(cityName,false))
+ {
+ String msg = CommonUtil::GetString(L"IDS_BODY_WORLD_CLOCK_EXIST");
+ if(__isOperationCompleted == true)
+ {
+ CreateMessage(msg);
+ }
+ return ;
+ }
+ }
+ AppLog("CityListForm::OnListViewItemStateChanged 3 offset = %d", offset);
+ WorldClock wc;
+ wc.SetWorldClockCity(cityName);
+ wc.SetWorldClockCountry(areaName);
+ wc.SetTimeZone(offset);
+ wc.SetDstTime(0);
+
+ AppLog("cityName = %ls areaName = %ls offset = %d", cityName.GetPointer(), areaName.GetPointer(), offset);
+ //save to DB
+ r = pWorldClockPresentationModel->AddWorldClock(wc);
+ AppLog("the result is %s", GetErrorMessage(r));
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(__modalMsgBoxResult);
+ }
+
+ __isOperationCompleted = false;
+ SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+ }
+ worldClockList.RemoveAll(true);
+}
+
+void
+CityListForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction)
+{
+
+}
+
+void
+CityListForm::OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source, SearchBarMode mode)
+{
+ if(mode == SEARCH_BAR_MODE_NORMAL)
+ {
+ __searchText = L"";
+
+ __pNameListview->SetEnabled(true);
+ __pTimeListview->SetEnabled(true);
+ if(__pNameListview->GetShowState())
+ {
+ __pNameListview->UpdateList();
+ }
+ else
+ {
+ __pTimeListview->UpdateList();
+ }
+ }
+ else
+ {
+ __pNameListview->SetEnabled(false);
+ __pTimeListview->SetEnabled(false);
+ if(__pNameListview->GetShowState())
+ {
+ __pNameListview->UpdateList();
+ }
+ else
+ {
+ __pTimeListview->UpdateList();
+ }
+ }
+}
+
+void
+CityListForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
+{
+
+ if (GetFooter() != null)
+ {
+ GetFooter()->SetShowState(true);
+ GetFooter()->Invalidate(true);
+ }
+
+ if(__pTimeListview->GetShowState())
+ {
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pTimeListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+ }
+
+ if(__pNameListview->GetShowState())
+ {
+ __pNameListview->SetBounds(__pNameListview->GetX(), __pNameListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+ }
+
+ Invalidate(true);
+}
+void
+CityListForm::OnKeypadOpened(Tizen::Ui::Control& source)
+{
+
+ GetFooter()->SetShowState(true);
+ GetFooter()->Invalidate(true);
+
+ __pNameListview->SetBounds(__pNameListview->GetX(), __pNameListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pTimeListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+
+ Invalidate(true);
+}
+void
+CityListForm::OnKeypadClosed(Tizen::Ui::Control& source)
+{
+ __pNameListview->SetBounds(__pNameListview->GetX(), __pNameListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pTimeListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+
+ Invalidate(true);
+}
+
+void
+CityListForm::OnKeypadBoundsChanged(Tizen::Ui::Control& source)
+{
+ __pNameListview->SetBounds(__pNameListview->GetX(), __pNameListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pTimeListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+
+ Invalidate(true);
+}
+
+void
+CityListForm::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction)
+{
+ if(keypadAction == KEYPAD_ACTION_SEARCH)
+ {
+ __searchText = __pSearchBar->GetText();
+
+ if(__pNameListview->GetShowState() == true)
+ {
+ __pNameListview->UpdateList();
+ }
+ else
+ {
+ __pTimeListview->UpdateList();
+ }
+
+ __pSearchBar->HideKeypad();
+
+ if(__searchText == L"")
+ {
+ AppLog("coming");
+ __pNameListview->SetEnabled(false);
+ __pTimeListview->SetEnabled(false);
+ }
+
+ }
+
+ Invalidate(true);
+}
+
+void
+CityListForm::OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index)
+{
+ AppLog("OnFastScrollIndexSelected : %ls", index.GetPointer());
+ int orderby = GetFooter()->GetSelectedItemIndex();
+ int maxCount = 0;
+
+ if(__pDataList == null)
+ {
+ return;
+ }
+ maxCount = __pDataList->GetCount();
+
+ for(int count = 0; count < maxCount; count++)
+ {
+ TimeZone *pTimeZone = dynamic_cast<TimeZone*>(__pDataList->GetAt(count));
+
+ if ( pTimeZone == NULL)
+ {
+ return;
+ }
+
+ if(orderby == 0)
+ {
+ int separatorIndex;
+ pTimeZone->GetId().IndexOf(L"/", 0, separatorIndex);
+ String cityName;
+ pTimeZone->GetId().SubString(separatorIndex + 1, cityName);
+
+ if( cityName.StartsWith(index, 0) == true)
+ {
+ __pNameListview->ScrollToItem(count);
+ __pNameListview->Invalidate(false);
+ break;
+ }
+ }
+ }
+}
+
+void
+CityListForm::CreateMessage(String& str)
+{
+ int modalMsgBoxResult = 0;
+
+ if (__pMsgBox != null)
+ {
+ delete __pMsgBox;
+ __pMsgBox = null;
+ }
+
+ __pMsgBox = new(std::nothrow) MessageBox;
+
+ if (__pMsgBox != null)
+ {
+ __pMsgBox->Construct(L"", str, MSGBOX_STYLE_OK, 3000);
+ }
+
+ if (__pMsgBox != null)
+ {
+ __pMsgBox->ShowAndWait(modalMsgBoxResult);
+
+ if (__pMsgBox != null)
+ {
+ delete __pMsgBox;
+ __pMsgBox = null;
+ }
+ }
+
+
+ return;
+}
+
+void
+CityListForm::OnTextValueChanged(const Control& source)
+{
+ AppLog("CityListForm::OnTextValueChanged");
+
+ __searchText = __pSearchBar->GetText();
+
+ if (__searchText == "")
+ {
+ __pNameListview->SetEnabled(false);
+ __pNameListview->UpdateList();
+
+ __pTimeListview->SetEnabled(false);
+ __pTimeListview->UpdateList();
+ }
+ else
+ {
+ if (__isProcessing == false)
+ {
+ if(__pTimer != null)
+ {
+ __pTimer->Start(1);
+ }
+ }
+ }
+
+ AppLog("CityListForm::OnTextValueChanged end");
+}
+
+void
+CityListForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ if (GetFooter() != null)
+ {
+ GetFooter()->SetShowState(true);
+ GetFooter()->Invalidate(true);
+ }
+
+ if(__pNameListview->GetShowState())
+ {
+ __pNameListview->UpdateList();
+ }
+ else
+ {
+ __pTimeListview->UpdateList();
+ }
+
+ String fontSizeStr = "";
+ int fontSize = 0;
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+
+ if(fontSizeStr == "medium")
+ {
+ fontSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ fontSize = 81;
+
+ }
+ else if(fontSizeStr == "giant")
+ {
+ fontSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ fontSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ fontSize = 64;
+ }
+ else
+ {
+ fontSize = 44;
+ }
+
+ __pTimeListview->SetBounds(__pTimeListview->GetX(), __pSearchBar->GetY() + __pSearchBar->GetHeight(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
+
+}
+
+void
+CityListForm::OnFocusGained(const Tizen::Ui::Control& source)
+{
+ if (__searchText == "")
+ {
+ __pTimeListview->SetEnabled(false);
+ __pNameListview->SetEnabled(false);
+ }
+}
+
+void
+CityListForm::OnFocusLost(const Tizen::Ui::Control& source)
+{
+ __pTimeListview->SetEnabled(true);
+ __pNameListview->SetEnabled(true);
+}
+
+void
+CityListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ __isProcessing = true;
+ AppLog("CityListForm::OnUserEventReceivedN");
+
+ if (requestId == REQUEST_ID_PROCESSING)
+ {
+ if (GetFooter()->GetShowState() == false)
+ {
+ GetFooter()->SetShowState(true);
+ GetFooter()->Invalidate(true);
+ }
+
+ __searchText = __pSearchBar->GetText();
+
+ if (__searchText == "")
+ {
+ __pNameListview->SetEnabled(false);
+ __pNameListview->UpdateList();
+
+ __pTimeListview->SetEnabled(false);
+ __pTimeListview->UpdateList();
+ }
+ else
+ {
+ __pNameListview->SetEnabled(true);
+ __pNameListview->UpdateList();
+
+ __pTimeListview->SetEnabled(true);
+ __pTimeListview->UpdateList();
+ }
+ }
+
+ AppLog("CityListForm::OnUserEventReceivedN end");
+ __isProcessing = false;
+}
+
+void
+CityListForm::OnTimerExpired(Timer& timer)
+{
+ SendUserEvent(REQUEST_ID_PROCESSING, null);
+}
--- /dev/null
+//
+// Tizen C++ SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//l
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkClockApp.cpp
+ * @brief Used to define ClockApp
+ */
+
+#include "ClkAlarmPresentationModel.h"
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkMainFrame.h"
+#include "ClkSceneRegister.h"
+#include "ClkStopWatchPresentationModel.h"
+#include "ClkTimerPresentationModel.h"
+#include "ClkWorldClockPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::System;
+using namespace Tizen::Shell;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int TIMER_START = 117;
+static const int TIMER_RESTART = 119;
+
+
+ClockApp::ClockApp(void)
+:__currentTimeKey("currentTime"),
+ __isAlarmLaunchedAutomatically(false),
+ __isrebooted(false),
+ __isTimerLaunchedAutomatically(false),
+ __langValue(""),
+ __nameKey("SceneId"),
+ __pAlarm(null),
+ __pAppRegistry(null),
+ __pTimer(null),
+ __ringingAlarmId(-1),
+ __timerResetKey("timerReset"),
+ __timerTimeKey("timerTime"),
+ __userSetValueKey("serTimerSetValue")
+{
+
+}
+
+ClockApp::~ClockApp(void)
+{
+ if (__pAlarm != null)
+ {
+ delete __pAlarm;
+ __pAlarm = null;
+ }
+
+}
+
+UiApp*
+ClockApp::CreateInstance(void)
+{
+ return new (std::nothrow) ClockApp();
+}
+
+bool
+ClockApp::OnAppInitializing(AppRegistry& appRegistry)
+{
+ AppLog("ClockApp::OnAppInitializing");
+
+ result r = E_FAILURE;
+
+ DateTime timerTime;
+ DateTime currentTime;
+ String timerTimeString;
+ String userSetValue;
+
+ TimerPresentationModel::GetInstance();
+ StopWatchPresentationModel::GetInstance();
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ AppManager::GetInstance()->SetAppLaunchConditionEventListener(this);
+
+ SettingInfo::AddSettingEventListener(*this);
+ int timerResetValue = 0;
+
+ pAlarmPresentationModel->AddEventListener(this);
+ __pAppRegistry = GetAppRegistry();
+ __sceneId = IDSCN_ALARM_LIST;
+ r = __pAppRegistry->Get(__nameKey, __sceneId);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__nameKey, IDSCN_ALARM_LIST);
+ }
+
+ r = __pAppRegistry->Get(__timerResetKey, timerResetValue);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__timerResetKey, timerResetValue);
+ }
+
+ r = __pAppRegistry->Get(__timerTimeKey, timerTimeString);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__timerTimeKey, timerTimeString);
+ __timerTimeReached.SetValue(9999,1,1);
+ }
+ else
+ {
+ DateTime::Parse(timerTimeString, __timerTimeReached);
+ }
+
+ r = __pAppRegistry->Get(__userSetValueKey, TimerPresentationModel::GetInstance()->userValue);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__userSetValueKey, TimerPresentationModel::GetInstance()->userValue);
+ }
+
+ pDataServiceProvider->Initialize();
+ pAlarmPresentationModel->Initialize();
+ pWorldClockPresentationModel->Initialize();
+
+ //RegisterAppForTimer();// after change in settings
+
+ __pTimer = new (std::nothrow) Timer();
+ __pTimer->Construct(*this);
+
+ return true;
+}
+
+bool
+ClockApp::OnAppInitialized(void)
+{
+ AppLog("ClockApp::OnAppInitialized");
+
+ MainFrame* pClockFrame = null;
+
+ if (__pAlarm != null)
+ {
+ delete __pAlarm;
+ __pAlarm = null;
+ }
+ __pAlarm = new (std::nothrow) AlarmData();
+
+ pClockFrame = new (std::nothrow) MainFrame();
+ pClockFrame->Construct();
+ pClockFrame->SetName(L"Clock");
+ AddFrame(*pClockFrame);
+
+ ResetValues();
+
+ if(__isTimerLaunchedAutomatically == true)
+ {
+ if (__isrebooted)
+ {
+ Terminate();
+ }
+
+ ShowTimerRingingForm();
+ }
+ else if (__isAlarmLaunchedAutomatically == true)
+ {
+ ShowAlarmRingingForm();
+ }
+ else if(__sceneId.GetLength() == 0 || __sceneId == IDSCN_ALARM_DELETE_LIST || __sceneId == IDSCN_CREATE_ALARM || __sceneId == IDSCN_EDIT_SNOOZE || __sceneId == IDSCN_ALARM_LIST || __sceneId == IDSCN_ALARM_RINGING || __sceneId == IDSCN_ALARM_RINGING_LOCK)
+ {
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ALARM_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ else if(__sceneId == IDSCN_CITY_LIST || __sceneId == IDSCN_WORLD_CLOCK_DELETE_LIST || __sceneId == IDSCN_WORLD_CLOCK_REORDER || __sceneId == IDSCN_WORLD_CLOCK_LIST)
+ {
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ else if(__sceneId == IDSCN_STOP_WATCH)
+ {
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ else if(__sceneId == IDSCN_TIMER_VIEW || __sceneId == IDSCN_TIMER_RINGING || __sceneId == IDSCN_TIMER_RINGING_LOCK )
+ {
+ if (__sceneId == IDSCN_TIMER_RINGING || __sceneId == IDSCN_TIMER_RINGING_LOCK)
+ {
+ int status = 0;
+ TimerPresentationModel::GetInstance()->SetStatus(status);
+ }
+
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ else
+ {
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(__sceneId, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+
+ String key1 = L"http://tizen.org/setting/locale.language";
+ SettingInfo::GetValue(key1 , __langValue);
+
+ return true;
+}
+
+bool
+ClockApp::OnAppWillTerminate(void)
+{
+ AppLog("OnAppWillTerminate");
+ SettingInfo::RemoveSettingEventListener(*this);
+
+ return true;
+}
+
+
+bool
+ClockApp::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ AppLog("ClockApp::OnAppTerminating %d", forcedTermination);
+ result r = E_FAILURE;
+ DateTime recentAlarmTime;
+ DateTime timerTime;
+ int status = 0;
+ DateTime currentTime;
+ String registeredTime;
+ DateTime alarmTime;
+ String remainingTime;
+ String tempTick;
+ String startTick;
+ String restartTick;
+ String stopTick;
+ int cmp = 0;
+ String userSetValue;
+
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ //if(pSceneManager->GetCurrentSceneId() != IDSCN_TIMER_RINGING)
+ {
+ r = __pAppRegistry->Set(__nameKey, pSceneManager->GetCurrentSceneId());
+
+ if (IsFailed(r))
+ {
+ r = __pAppRegistry->Add(__nameKey, pSceneManager->GetCurrentSceneId());
+
+ if (IsFailed(r))
+ {
+ return false;
+ }
+ }
+ }
+ }
+
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ pAlarmPresentationModel->GetRecentAlarm(recentAlarmTime, *__pAlarm);
+ pAlarmPresentationModel->SetAlarm(*__pAlarm);
+ timerTime = currentTime;
+ pTimerPresentationModel->GetTimerValue(timerTime, remainingTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+ AppLog("timer time = %ls currentTime = %ls status = %d __pAlarm time = %ls", timerTime.ToString().GetPointer(), currentTime.ToString().GetPointer(), status, __pAlarm->GetAlarmTime().ToString().GetPointer());
+
+ cmp = DateTime::Compare(currentTime, timerTime);
+
+ if((status == TIMER_START || status == TIMER_RESTART) && cmp <= 0)
+ {
+ r = __pAppRegistry->Set(__timerTimeKey, timerTime.ToString());
+
+ if (IsFailed(r))
+ {
+ r = __pAppRegistry->Add(__timerTimeKey, timerTime.ToString());
+
+ if (IsFailed(r))
+ {
+ return false;
+ }
+ }
+ }
+ else
+ {
+ timerTime.SetValue(9999,1,1);
+ r = __pAppRegistry->Set(__timerTimeKey, timerTime.ToString());
+
+ if (IsFailed(r))
+ {
+ r = __pAppRegistry->Add(__timerTimeKey, timerTime.ToString());
+
+ if (IsFailed(r))
+ {
+ return false;
+ }
+ }
+ }
+
+ r = __pAppRegistry->Set(__userSetValueKey, TimerPresentationModel::GetInstance()->userValue);
+ if(r != E_SUCCESS)
+ {
+ __pAppRegistry->Add(__userSetValueKey, TimerPresentationModel::GetInstance()->userValue);
+ }
+
+ r = __pAppRegistry->Set(__currentTimeKey, currentTime.ToString());
+ if (r != E_SUCCESS)
+ {
+ r = __pAppRegistry->Add(__currentTimeKey, currentTime.ToString());
+ if (r != E_SUCCESS)
+ {
+ return false;
+ }
+ }
+
+ __pAppRegistry->Save();
+
+ if (__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }
+ AppLog("End");
+
+ return true;
+}
+
+void
+ClockApp::OnForeground(void)
+{
+
+
+}
+
+void
+ClockApp::OnBackground(void)
+{
+/* SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ if(pSceneManager->GetCurrentSceneId() == IDSCN_TIMER_RINGING)
+ {
+
+ result r = E_FAILURE;
+ UiApp* pApp = null;
+ int status = 0;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel == null )
+ {
+ return;
+ }
+ pTimerPresentationModel->SetStatus(status);
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+ }
+ }*/
+}
+
+void
+ClockApp::OnLowMemory(void)
+{
+
+}
+
+void
+ClockApp::OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel)
+{
+
+}
+
+void
+ClockApp::OnAlarmExpired(Tizen::System::Alarm& alarm)
+{
+ AppLog("ClockApp::OnAlarmExpired");
+}
+
+void
+ClockApp::ShowAlarmRingingForm(void)
+{
+ AppLog("ClockApp::ShowAlarmRingingForm");
+ DateTime currentTime;
+ AlarmData* pAlarm = null;
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AlarmPresentationModel* pAlarmPresentationModel = AlarmPresentationModel::GetInstance();
+ result r = E_FAILURE;
+ ArrayList alarmsList;
+ alarmsList.Construct();
+ int alarmCount = 0;
+ pAlarmPresentationModel->GetAlarmCount(alarmCount);
+ pAlarmPresentationModel->GetAlarm(0, alarmCount, alarmsList);
+
+ for(int count = 0; count < alarmCount; count++)
+ {
+ AlarmData *pCurAlarm = dynamic_cast<AlarmData*>(alarmsList.GetAt(count));
+ if(pCurAlarm != null && __ringingAlarmId != -1 && pCurAlarm->GetAlarmId() == __ringingAlarmId)
+ {
+ pAlarm = pCurAlarm;
+ __pAlarm = pCurAlarm;
+ break;
+ }
+ }
+
+ for(int count = 0; count < alarmCount; count++)
+ {
+ AlarmData *pCurAlarm = dynamic_cast<AlarmData*>(alarmsList.GetAt(count));
+
+ if (pCurAlarm != null && pAlarm != null)
+ {
+ int cmp = DateTime::Compare(pCurAlarm->GetNextRingingTime(), pAlarm->GetNextRingingTime());
+
+ if(pCurAlarm != null && cmp == 0 && pCurAlarm->GetAlarmId() != pAlarm->GetAlarmId())
+ {
+ if (pCurAlarm->GetSnoozeOn())
+ {
+ //snooze alarm
+ DateTime nextAlarmTime;
+ int snoozeRepeatCount;
+ nextAlarmTime.SetValue(pCurAlarm->GetAlarmTime());
+ pCurAlarm->SetLastRingingTime(nextAlarmTime);
+ snoozeRepeatCount = pCurAlarm->GetSnoozeRepeatCount();
+ pCurAlarm->SetSnoozeRepeatCount(snoozeRepeatCount - 1);
+
+ if (snoozeRepeatCount <= 0 && !pCurAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pCurAlarm->SetAlarmOnState(0);
+ }
+
+ }
+ else
+ {
+ pCurAlarm->SetSnoozeRepeatCount(-1);
+
+ if(!pCurAlarm->GetRepeatFlags().Contains(L"1"))
+ {
+ pCurAlarm->SetAlarmOnState(0);
+ }
+
+ }
+
+ r = pAlarmPresentationModel->SaveAlarm(*pCurAlarm);
+
+ if (r == E_STORAGE_FULL || r == E_INIT_FAILED || r == E_OUT_OF_MEMORY)
+ {
+ MessageBox msgBox;
+ int modalMsgBoxResult;
+ String msg = CommonUtil::GetString("IDS_MEMORY_FULL");
+ r = msgBox.Construct(L"", msg, MSGBOX_STYLE_NONE, 3000);
+ AppLog("the result is %s", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalMsgBoxResult);
+ }
+ }
+ }
+ }
+
+ if (pArgList != null && pAlarm != null)
+ {
+ bool isScreenOn = PowerManager::IsScreenOn();
+ bool isLocked = LockManager::GetInstance()->IsLocked();
+ pArgList->Construct();
+ // DataServiceProvider::GetCurrentDateTime(currentTime);
+ // pAlarm = new(std::nothrow) AlarmData();
+ // pAlarmPresentationModel->GetRecentAlarm(currentTime, *pAlarm);
+ pAlarmPresentationModel->SetAlarm(*pAlarm);
+ pArgList->Add(*pAlarm);
+
+ if (pSceneManager != null)
+ {
+ if (isScreenOn && !isLocked)
+ {
+ r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_RINGING), pArgList);
+ if (IsFailed(r))
+ {
+ __pTimer->Start(1000);
+ }
+ AppLog("ShowAlarmRingingForm result = %s", GetErrorMessage(r));
+ }
+ else
+ {
+ //bring application in foreground
+
+ AppManager* pAppMgr = AppManager::GetInstance();
+ pAppMgr->LaunchApplication(L"PhYwYqDa1I",null);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_RINGING_LOCK), pArgList);
+ PowerManager::TurnScreenOn();
+ PowerManager::KeepScreenOnState(true,false);
+ }
+
+ }
+ }
+
+ if (pArgList != null)
+ {
+ pArgList->RemoveAll();
+ delete pArgList;
+ pArgList = null;
+ }
+}
+
+void
+ClockApp::ShowTimerRingingForm(void)
+{
+ result r = E_FAILURE;
+ bool isScreenOn = PowerManager::IsScreenOn();
+ bool isLocked = LockManager::GetInstance()->IsLocked();
+ ArrayList* pArgList = null;
+ String timerTimeStr;
+ DateTime timerTime;
+ timerTime.SetValue(9999,1,1);
+ r = __pAppRegistry->Get(__timerTimeKey, timerTimeStr);
+ AppLog("Timer: %ls", timerTimeStr.GetPointer());
+ DateTime::Parse(timerTimeStr, timerTime);
+
+ pArgList = new (std::nothrow) ArrayList();
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(TimerPresentationModel::GetInstance()->userValue);
+ }
+
+ Form *pTimerForm = dynamic_cast<Form*>(GetFrameAt(0)->GetControl("TimerForm"));
+ if(pTimerForm != NULL)
+ {
+ pTimerForm->SendUserEvent(10000, null);
+ }
+
+ if (isScreenOn && !isLocked)
+ {
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_TIMER_RINGING, SCENE_TRANSITION_ANIMATION_TYPE_NONE), pArgList);
+ }
+ else
+ {
+ //bring application in foreground
+ PowerManager::TurnScreenOn();
+ AppManager* pAppMgr = AppManager::GetInstance();
+ pAppMgr->LaunchApplication(L"PhYwYqDa1I",null);
+ PowerManager::KeepScreenOnState(true,false);
+ SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_TIMER_RINGING_LOCK, SCENE_TRANSITION_ANIMATION_TYPE_NONE), pArgList);
+ }
+}
+
+void
+ClockApp::OnSettingChanged(Tizen::Base::String& key)
+{
+ String value;
+ SettingInfo::GetValue(key, value);
+
+ if ((key == L"http://tizen.org/setting/locale.language" && __langValue != value)|| key == L"http://tizen.org/setting/font.size")
+ {
+ Terminate();
+ }
+ if(key == L"http://tizen.org/setting/locale.date_time")
+ {
+ /*AppLog("ClockApp::OnSettingChanged");
+ DateTime currTime;
+ AlarmData alarmData;
+ DataServiceProvider::GetCurrentDateTime(currTime);
+ AlarmPresentationModel::GetInstance()->GetRecentAlarm(currTime, alarmData);
+ AppLog("currTime : %S alarmData : %S", currTime.ToString().GetPointer(), alarmData.GetAlarmTime().ToString().GetPointer());
+ */
+ AlarmPresentationModel::GetInstance()->ReRegisterAlarm();
+ RegisterAppForTimer();
+ }
+}
+
+void
+ClockApp::OnAppLaunchConditionMetN (const Tizen::Base::String &condition, Tizen::Base::Object *pExtraData, Tizen::Base::Collection::IList *pArguments)
+{
+ AppLog("ClockApp::OnAppLaunchConditionMetN");
+ /* AppManager::GetInstance()->GetActiveApp(activeAppId);
+ AppLog("appid: %ls, the error: %s",activeAppId.GetPointer(),GetErrorMessage(GetLastResult()));*/
+
+ if (pArguments != null)
+ {
+ String* str = dynamic_cast<String*>(pArguments->GetAt(0));
+ if(str == null)
+ {
+ return;
+ }
+
+ if (str != null && *str == "Timer")
+ {
+ if(GetAppState() == RUNNING)
+ {
+ ShowTimerRingingForm();
+ }
+ else
+ {
+ __isTimerLaunchedAutomatically = true;
+ }
+ }
+ else
+ {
+ str->Remove(0, 8);
+ if(str->GetLength() > 0)
+ {
+ int alarmId = -1;
+ Integer::Parse(*str, alarmId);
+ if(GetLastResult() == E_SUCCESS)
+ {
+ AppLog("AlarmId: %d", alarmId);
+ __ringingAlarmId = alarmId;
+ }
+ }
+ if(GetAppState() == RUNNING)
+ {
+ ShowAlarmRingingForm();
+ }
+ else
+ {
+ __isAlarmLaunchedAutomatically = true;
+ }
+ }
+ }
+}
+
+void
+ClockApp::ResetValues()
+{
+ result r = E_FAILURE;
+ String previousCurrentTime;
+ String upTimeValue;
+ DateTime previousTime;
+ DateTime currentTime;
+
+ previousTime.SetValue(9999,1,1);
+ r = __pAppRegistry->Get(__currentTimeKey, previousCurrentTime);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__currentTimeKey, previousTime.ToString());
+ }
+ else
+ {
+ DateTime::Parse(previousCurrentTime, previousTime);
+ }
+
+ AppLog("previousTime = %S", previousTime.ToString().GetPointer());
+
+ TimeSpan uptime(0);
+ SystemTime::GetUptime(uptime);
+ r = previousTime.AddTicks(uptime.GetTicks());
+
+ if (IsFailed(r))
+ {
+ return;
+ }
+
+ DataServiceProvider::GetInstance()->GetCurrentDateTime(currentTime);
+ int cmp = DateTime::Compare(previousTime, currentTime);
+ AppLog("previousTime = %S currentTime = %S", previousTime.ToString().GetPointer(), currentTime.ToString().GetPointer());
+ if (cmp < 0)
+ {
+ AppLog("coming here");
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick;
+ DateTime dateTime;
+ String userSetValue;
+ String registeredTime;
+ int status = 0;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+ pTimerPresentationModel->SetTimerValue(dateTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+
+ StopWatchPresentationModel::GetInstance()->SetStatus(status);
+ __isrebooted = true;
+ }
+}
+
+void
+ClockApp::RegisterAppForTimer(void)
+{
+ AppLog("ClockApp::RegisterAppForTimer");
+ DateTime timerTime;
+ DateTime currentTime;
+ String remainingTime;
+ String userSetValue;
+ result r = E_FAILURE;
+ String tempTick;
+ String startTick;
+ String restartTick;
+ String stopTick;
+ int status = 0;
+ String registeredTime;
+ int cmp = 0;
+ int spanHours = 0;
+ int spanMinutes = 0;
+ int spanSeconds = 0;
+ long long tick ;
+ String* str1;
+ String* str2;
+ TimeSpan uptime(0);
+
+ TimerPresentationModel::GetInstance()->GetTimerValue(timerTime, remainingTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+
+ if (status == TIMER_START || status == TIMER_RESTART)
+ {
+ DateTime::Parse(registeredTime, timerTime);
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return;
+ }
+
+ str2->Append("'");
+ str2->Append(timerTime.ToString());
+ str2->Append("'");
+ AppManager::GetInstance()->UnregisterAppLaunch(App::GetInstance()->GetAppId(), str2);
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+
+ long long start, temp;
+ LongLong::Parse(startTick, start);
+ LongLong::Parse(tempTick, temp);
+
+ SystemTime::GetUptime(uptime);
+ tick = uptime.GetTicks();
+ startTick.Append(start);
+
+ if (status == TIMER_START)
+ {
+ tick = start - tick;
+ }
+ else if (status == TIMER_RESTART)
+ {
+ tick = temp + start - tick;
+ }
+
+ TimeSpan span = static_cast<long>(tick);
+ spanHours = span.GetHours() + span.GetDays()*24;
+ spanMinutes = span.GetMinutes();
+ spanSeconds = span.GetSeconds();
+
+ DataServiceProvider::GetInstance()->GetCurrentDateTime(currentTime);
+ timerTime = currentTime;
+ timerTime.AddHours(spanHours);
+ timerTime.AddMinutes(spanMinutes);
+ timerTime.AddSeconds(spanSeconds);
+
+ cmp = DateTime::Compare(currentTime, timerTime);
+
+ if(cmp <=0 )
+ {
+ AppLog("ClockApp::RegisterAppForTimer 3");
+ str1 = new (std::nothrow) String(App::GetInstance()->GetAppId());
+
+ if (str1 == null)
+ {
+ return;
+ }
+
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ delete str1;
+ str1 = null;
+
+ return;
+ }
+
+ str2->Append("'");
+ str2->Append(timerTime.ToString());
+ str2->Append("'");
+
+ String *timerType = new String("Timer");
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(timerType);
+ }
+
+ r = AppManager::GetInstance()->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("__registeredTime result = %s", GetErrorMessage(r));
+
+ if (IsFailed(r))
+ {
+ timerTime.AddSeconds(1);
+
+ str2->Clear();
+ str2->Append("'");
+ str2->Append(timerTime.ToString());
+ str2->Append("'");
+ r = AppManager::GetInstance()->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("__registeredTime result = %s", GetErrorMessage(r));
+ }
+
+ TimerPresentationModel::GetInstance()->SetRegisteredTime(timerTime);
+
+ if (str1 != null)
+ {
+ delete str1;
+ str1 = null;
+ }
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+ }
+ }
+
+ AppLog("ClockApp::RegisterAppForTimer end");
+}
+
+void
+ClockApp::OnTimerExpired(Timer& timer)
+{
+ DateTime currentTime;
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ result r = E_FAILURE;
+
+ if (pArgList != null && __pAlarm != null)
+ {
+ bool isScreenOn = PowerManager::IsScreenOn();
+ bool isLocked = LockManager::GetInstance()->IsLocked();
+ pArgList->Construct();
+ pArgList->Add(*__pAlarm);
+
+ if (pSceneManager != null)
+ {
+ if (isScreenOn && !isLocked)
+ {
+ r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_RINGING), pArgList);
+ AppLog("ShowAlarmRingingForm result = %s", GetErrorMessage(r));
+ }
+ }
+ }
+
+ if (pArgList != null)
+ {
+ pArgList->RemoveAll();
+ delete pArgList;
+ pArgList = null;
+ }
+}
+
+int
+ClockApp::GetFontSize()
+{
+ int fontSize = 0;
+ fontSizeStr = L"";
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+ AppLog("the font: %ls",fontSizeStr.GetPointer());
+
+ if(fontSizeStr == "medium")
+ {
+ fontSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ fontSize = 81;
+ }
+ else if(fontSizeStr == "giant")
+ {
+ fontSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ fontSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ fontSize = 64;
+ }
+ else
+ {
+ fontSize = 44;
+ }
+
+ return fontSize;
+
+}
+
+int
+ClockApp::GetHeightOffset()
+{
+ int fontSize = GetFontSize();
+ return fontSize - 44;
+}
+void
+ClockApp::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+
+ if (requestId == REQUEST_ID_SHOW_TIMERFORM)
+ {
+ ShowTimerRingingForm();
+ }
+
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkClockEntry.cpp
+ * @brief This file contains the Tizen application entry point.
+ */
+
+#include "ClkClockApp.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+_EXPORT_ int OspMain(int argc, char *pArgv[]);
+
+/**
+ * The entry function of Tizen application called by the operating system.
+ */
+int
+OspMain(int argc, char *pArgv[])
+{
+ result r = E_SUCCESS;
+
+ ArrayList* pArgs = new (std::nothrow) ArrayList();
+ pArgs->Construct();
+
+ for (int i = 0; i < argc; i++)
+ {
+ pArgs->Add(*(new (std::nothrow) String(pArgv[i])));
+ }
+
+ r = UiApp::Execute(ClockApp::CreateInstance, pArgs);
+
+ if (IsFailed(r))
+ {
+ AppLogException("Application execution failed-[%s].", GetErrorMessage(r));
+ r &= 0x0000FFFF;
+ }
+
+ pArgs->RemoveAll(true);
+ delete pArgs;
+
+ return static_cast<int>(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkCommonUtil.cpp
+ * @brief To define the common method of Clock application
+ */
+
+#include <FMedia.h>
+#include <FApp.h>
+
+#include "ClkCommonLib.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Media;
+
+CommonBitmapTable CommonUtil::__commonBitmapTable[] = {
+
+ // -------- End of table -----------------------------------------------------
+ {
+ L"", -1, NULL, 0, -1
+ } // DO NOT REPLACE THIS LINE
+};
+
+String
+CommonUtil::GetString(String resourceId)
+{
+ result r = E_SUCCESS;
+ String tmpString;
+ AppResource* pAppResource = Application::GetInstance()->GetAppResource();
+
+ if (pAppResource == null)
+ {
+ tmpString = "(Error)";
+ return tmpString;
+ }
+
+ r = pAppResource->GetString(resourceId, tmpString);
+
+ if(IsFailed(r))
+ {
+ tmpString = "(Error)";
+ return tmpString;
+ }
+
+ return tmpString;
+}
+
+Bitmap*
+CommonUtil::GetBitmapN(const String& path, const int width, const int height)
+{
+ Bitmap* pBitmap = null;
+ AppResource* pAppResource = Application::GetInstance()->GetAppResource();
+
+ if (pAppResource == null)
+ {
+ return null;
+ }
+
+ if (path == null)
+ {
+ return null;
+ }
+
+ if (width <= 0 || height <= 0)
+ {
+ return null;
+ }
+
+ AppLogDebug("Calling Decode method for image %ls", path.GetPointer());
+ pBitmap = pAppResource->GetBitmapN(path, BITMAP_PIXEL_FORMAT_ARGB8888);
+ AppLogDebug("Image Decoded successfully");
+
+ if (pBitmap == null)
+ {
+ return null;
+ }
+
+ if (width > 0 && height > 0)
+ {
+ pBitmap->Scale(Dimension(width, height));
+ }
+
+ return pBitmap;
+}
+
+
+Bitmap*
+CommonUtil::GetBitmap(CommonBitmapId id)
+{
+ AppLogDebug("CommonUtil::GetBitmap entered");
+
+ Bitmap* pBitmap = null;
+
+ if (__commonBitmapTable[id].ptr)
+ {
+ pBitmap = __commonBitmapTable[id].ptr;
+ AppLogDebug("found already used bitmap pointer");
+ }
+ else
+ {
+ AppLogDebug("Not found #%d bitmap data in cache. Start loading...\n", (int) id);
+ pBitmap = GetBitmapN(__commonBitmapTable[id].filename,
+ __commonBitmapTable[id].width,
+ __commonBitmapTable[id].height);
+
+ if (pBitmap == NULL)
+ {
+ AppLogDebug("Error: Failed to load #%d bitmap.\n", (int) id);
+ return null;
+ }
+
+ __commonBitmapTable[id].ptr = pBitmap;
+ }
+
+ __commonBitmapTable[id].refcount++;
+ AppLogDebug("CommonUtil::GetBitmap exit");
+ return pBitmap;
+}
+
+void
+CommonUtil::ReleaseBitmap(CommonBitmapId id)
+{
+ AppLogDebug("CommonUtil::ReleaseBitmap:%d", (int) id);
+
+ if (id < 0 || id >= sizeof(__commonBitmapTable)/ sizeof(CommonBitmapTable))
+ {
+ return;
+ }
+
+ if (__commonBitmapTable[id].ptr == null)
+ {
+ return;
+ }
+
+ delete __commonBitmapTable[id].ptr;
+ __commonBitmapTable[id].ptr = null;
+ __commonBitmapTable[id].refcount = 0;
+ return;
+}
+
+void
+CommonUtil::ReleaseBitmap(Bitmap* ptr)
+{
+ int count = 0;
+
+ while (__commonBitmapTable[count].width >= 0 &&
+ __commonBitmapTable[count].height >= 0)
+ {
+
+ if (ptr == __commonBitmapTable[count].ptr)
+ {
+ ReleaseBitmap((CommonBitmapId) count);
+ return;
+ }
+
+ count++;
+ }
+
+ return;
+}
+
+void
+CommonUtil::ReleaseAllBitmap(void)
+{
+ AppLogDebug("CommonUtil::ReleaseAllBitmap()");
+ int count = 0;
+
+ while (__commonBitmapTable[count].width >= 0 &&
+ __commonBitmapTable[count].height >= 0)
+ {
+
+ if (__commonBitmapTable[count].ptr)
+ {
+ ReleaseBitmap((CommonBitmapId) count);
+ }
+
+ count++;
+ }
+
+ return;
+}
+
+Bitmap*
+CommonUtil::GetNinepatchedBitmap(const String& strPath, const int width, const int height)
+{
+ Bitmap* pBitmap = null;
+ result r = E_SUCCESS;
+ Canvas* pCanvas = null;
+ Bitmap* pBmp = AppResource::GetInstance()->GetBitmapN(strPath);
+
+ if (pBmp == NULL)
+ {
+ return null;
+ }
+
+ pCanvas = new (std::nothrow) Canvas();
+ TryCatch(pCanvas != null, , "Canvas new (std::nothrow) Fail.");
+ r = pCanvas->Construct(Rectangle(0,0,width, height));
+ TryCatch(r == E_SUCCESS, , "Canvas Construct Fail.");
+
+ r = pCanvas->DrawNinePatchedBitmap(Rectangle(0,0,width, height), *pBmp);
+
+ if (r != E_SUCCESS)
+ {
+ AppLogDebug("DrawNinePatchedBitmap Error %ls", GetErrorMessage(r));
+ pCanvas->DrawBitmap(Rectangle(0,0,width, height), *pBmp);
+ }
+
+ pBitmap = new (std::nothrow) Bitmap();
+ TryCatch(pBitmap != null, , "Bitmap new (std::nothrow) Fail.");
+
+ r = pBitmap->Construct(*pCanvas, Rectangle(0,0,width, height));
+ TryCatch(r == E_SUCCESS, , "Bitmap Construct Fail.");
+
+ if ( pBmp != NULL)
+ {
+ delete pBmp;
+ pBmp = null;
+ }
+
+ if (pCanvas != NULL)
+ {
+ delete pCanvas;
+ pCanvas = null;
+ }
+
+ return pBitmap;
+
+ CATCH:
+
+ if (pBmp != NULL)
+ {
+ delete pBmp;
+ pBmp = null;
+ }
+
+ if (pCanvas != NULL)
+ {
+ delete pCanvas;
+ pCanvas = null;
+ }
+
+ if (pBitmap != NULL)
+ {
+ delete pBitmap;
+ pBitmap =null;
+ }
+
+ return null;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkDataServiceProvider.cpp
+ * @brief Defines the database/storage functions.
+ */
+
+#include <cstdlib>
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+
+#include "ClkDataServiceProvider.h"
+
+const wchar_t* WORLD_CLOCK_TABLE = L"WorldClock";
+const wchar_t* ALARM_TABLE = L"AlarmData";
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+
+Database* DataServiceProvider::__pDataBase = null;
+DbEnumerator* DataServiceProvider::__pDbEnum = null;
+DbStatement* DataServiceProvider::__pDbStatement = null;
+bool DataServiceProvider::__isBeginTransaction = false;
+String DataServiceProvider::DB_FILE_PATH = L"/data/clock.db" ;
+
+DataServiceProvider* DataServiceProvider::__pInstance = NULL;
+
+static const int MAX_DB_QUERY_SIZE = 21474836;
+static const int QUERY_TYPE_LENGTH = 6;
+
+DataServiceProvider::DataServiceProvider(void)
+{
+
+}
+
+DataServiceProvider::~DataServiceProvider(void)
+{
+
+}
+
+result
+DataServiceProvider::Initialize(void)
+{
+ result r = E_FAILURE;
+
+ r = DataServiceProvider::OpenDb();
+
+ return r;
+}
+
+result
+DataServiceProvider::UnInitialize(void)
+{
+ result r = E_FAILURE;
+
+ //r = PresentationModelBase::CloseDb();
+
+ return r;
+}
+
+result
+DataServiceProvider::OpenDb(void)
+{
+ result r = E_FAILURE;
+ String dbName = L"";
+
+ if (__pDataBase != null)
+ {
+
+ if (__pDbEnum != null)
+ {
+ delete __pDbEnum;
+ __pDbEnum = null;
+ }
+
+ if (__pDbStatement != null)
+ {
+ delete __pDbStatement;
+ __pDbStatement = null;
+ }
+
+ return r;
+ }
+
+ __pDataBase = new (std::nothrow) Database();
+
+ if (__pDataBase == null)
+ {
+ return E_OUT_OF_MEMORY;
+ }
+
+ dbName = App::GetInstance()->GetAppRootPath() + DB_FILE_PATH;
+
+ r = __pDataBase->Construct(dbName, true);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("DB construction failed:%s", GetErrorMessage(r));
+ delete __pDataBase;
+ __pDataBase = null;
+ return r;
+ }
+
+ __isBeginTransaction = false;
+
+ if (File::IsFileExist(dbName))
+ {
+ r = InitializeDBTables();
+ if (IsFailed(r))
+ {
+ delete __pDataBase;
+ __pDataBase = null;
+ return r;
+ }
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::CloseDb(void)
+{
+
+ if (__pDbEnum != null)
+ {
+ delete __pDbEnum;
+ __pDbEnum = null;
+ }
+
+ if (__pDbStatement != null)
+ {
+ delete __pDbStatement;
+ __pDbStatement = null;
+ }
+
+ if (__pDataBase != null)
+ {
+ delete __pDataBase;
+ __pDataBase = null;
+ }
+
+ __isBeginTransaction = false;
+
+ return E_SUCCESS;
+}
+
+result
+DataServiceProvider::CreateDBTables(ClockDbTableTypes tableType)
+{
+ result r = E_FAILURE;
+ String query;
+ int resultCount = -1;
+
+ switch (tableType)
+ {
+ case DB_TYPE_WORLDCLOCK:
+ {
+ query.Append(L"CREATE TABLE IF NOT EXISTS ");
+ query.Append(WORLD_CLOCK_TABLE);
+ query.Append(L"(ID INTEGER PRIMARY KEY AUTOINCREMENT,CITY TEXT,COUNTRY TEXT , TIMEZONE INTEGER, ORDERNO INTEGER, DSTTIME INTEGER)");
+ break;
+ }
+
+ case DB_TYPE_ALARMDATA:
+ {
+ query.Append(L"CREATE TABLE IF NOT EXISTS ");
+ query.Append(ALARM_TABLE);
+ query.Append(L" ( ID INTEGER PRIMARY KEY AUTOINCREMENT DEFAULT -1, IS_ON INTEGER, NAME TEXT, TIME DATETIME, REPEAT TEXT, SNOOZE_ON INTEGER, SNOOZE_DURATION INTEGER, SNOOZE_REPEAT INTEGER, RING_VOLUME INTEGER, RING_TYPE INTEGER, RING_TONE TEXT, LAST_RINGING_TIME DATETIME, SNOOZE_REPEAT_COUNT INTEGER, CREATED_TIME DATETIME)");
+ break;
+ }
+
+ default:
+ {
+ AppLogDebug("PresentationModelBase::CreateDBTables: Table Type:%d is invalid", tableType);
+ break;
+ }
+ }
+
+ r = DataServiceProvider::ExecuteQuery(query, resultCount);
+
+ return r;
+}
+
+result
+DataServiceProvider::InitializeDBTables(void)
+{
+ result r = E_FAILURE;
+
+ for (register int nDbTblIndex = DB_TYPE_INVALID + 1; nDbTblIndex < DB_TYPE_MAX; nDbTblIndex++)
+ {
+ r = CreateDBTables((ClockDbTableTypes) nDbTblIndex);
+
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::DropDBTables(void)
+{
+ result r = E_FAILURE;
+ String query;
+ int resultCount = -1;
+
+ for (register int tableIndex = DB_TYPE_INVALID + 1; tableIndex < DB_TYPE_MAX; tableIndex++)
+ {
+ switch (tableIndex)
+ {
+ case DB_TYPE_WORLDCLOCK:
+ {
+ query.Clear();
+ query.Format(MAX_DB_QUERY_SIZE, L"DROP TABLE IF EXISTS WorldClock");
+ break;
+ }
+ case DB_TYPE_ALARMDATA:
+ {
+ query.Clear();
+ query.Format(MAX_DB_QUERY_SIZE, L"DROP TABLE IF EXISTS Alarm");
+ break;
+ }
+ }
+
+ r = DataServiceProvider::ExecuteQuery(query, resultCount);
+
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::ExecuteQuery(const String formatQuery, int& count)
+{
+ AppLogDebug("Query: %ls", formatQuery.GetPointer());
+
+ result r = E_FAILURE;
+ String queryType;
+
+ if (__pDataBase == null)
+ {
+ return E_INIT_FAILED;
+ }
+
+ if (__pDbEnum != null)
+ {
+ delete __pDbEnum;
+ __pDbEnum = null;
+ }
+
+ if (__pDbStatement != null)
+ {
+ delete __pDbStatement;
+ __pDbStatement = null;
+ }
+
+
+#if defined(FBK_DB_QUERY_LOG)
+ {
+ File file;
+ file.Construct(L"/Home/Query.txt", "a+", true);
+ file.Write(formatQuery);
+ file.Write(String("\r\n"));
+ }
+#endif
+
+ r = formatQuery.SubString(0, QUERY_TYPE_LENGTH, queryType);
+
+ if (r == E_SUCCESS)
+ {
+
+ if (queryType == "SELECT")
+ {
+ __pDbEnum = __pDataBase->QueryN(formatQuery);
+ r = GetLastResult();
+
+ if (IsFailed(r))
+ {
+ AppLogException("Failed Database::QueryN(). (error: %s, query: %ls)", GetErrorMessage(r), formatQuery.GetPointer());
+ return r;
+ }
+
+ count = 0;
+
+ if (__pDbEnum != null)
+ {
+
+ while (__pDbEnum->MoveNext() == E_SUCCESS)
+ {
+ count++;
+ }
+
+ __pDbEnum->Reset();
+ }
+
+ }
+ else
+ {
+
+ if (__isBeginTransaction == false &&
+ (queryType == L"INSERT" || queryType == L"UPDATE" || queryType == L"DELETE"))
+ {
+ r = __pDataBase->BeginTransaction();
+
+ if (IsFailed(r))
+ {
+ AppLogException("Failed Database::BeginTransaction() . (error: %s)", GetErrorMessage(r));
+ return r;
+ }
+
+ __isBeginTransaction = true;
+ }
+
+ r = __pDataBase->ExecuteSql(formatQuery, false);
+
+ if (IsFailed(r))
+ {
+ AppLogException("Failed Database::ExecuteSql(). (error: %s, query: %ls)", GetErrorMessage(r), formatQuery.GetPointer());
+ return r;
+ }
+
+ count = 0;
+ }
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::DbIsNextRowPresent(bool& nextRowpresent)
+{
+ result r = E_FAILURE;
+
+ if (null == __pDataBase || null == __pDbEnum)
+ {
+
+ if (__pDbEnum == null)
+ {
+ AppLogException("PresentationModelBase : pdbenum is null");
+ }
+
+ if (__pDataBase == null)
+ {
+ AppLogException("PresentationModelBase : __pDataBase is null");
+ }
+
+ return E_OUT_OF_MEMORY;
+ }
+
+ r = __pDbEnum->MoveNext();
+
+ if (IsFailed(r))
+ {
+ nextRowpresent = false;
+ return r;
+ }
+
+ nextRowpresent = true;
+ return r;
+}
+
+result
+DataServiceProvider::IsNullColumn(int index, bool& isColumNull)
+{
+
+ if (null == __pDataBase || null == __pDbEnum)
+ {
+ return E_DATABASE;
+ }
+
+ isColumNull = (__pDbEnum->GetColumnType(index) == DB_COLUMNTYPE_NULL ? true : false);
+
+ return E_SUCCESS;
+}
+
+result
+DataServiceProvider::GetColumn(int index, String& stringValue)
+{
+ result r = E_FAILURE;
+ DbColumnType columnType;
+
+ if (null == __pDataBase || null == __pDbEnum)
+ {
+ return E_OUT_OF_MEMORY;
+ }
+
+ // Find column type
+ columnType = __pDbEnum->GetColumnType(index);
+
+ //if column type is null then assign empty string and return
+ if (columnType == DB_COLUMNTYPE_NULL)
+ {
+ stringValue = "";
+ return E_SUCCESS;
+ }
+
+ //Get String value
+ r = __pDbEnum->GetStringAt(index, stringValue);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("GetStringAt: Failed");
+ return r;
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::GetColumn(int index, int& intValue)
+{
+ result r = E_FAILURE;
+ DbColumnType columnType;
+
+ if (null == __pDataBase || null == __pDbEnum)
+ {
+ return E_OUT_OF_MEMORY;
+ }
+
+ // Find column type
+ columnType = __pDbEnum->GetColumnType(index);
+
+ //if column type is null then assign empty string and return
+ if (columnType == DB_COLUMNTYPE_NULL)
+ {
+ intValue = 0;
+ return E_SUCCESS;
+ }
+
+ //Get String value
+ r = __pDbEnum->GetIntAt(index, intValue);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("GetIntAt:failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::GetColumn(int index, DateTime& dateValue)
+{
+ result r = E_FAILURE;
+ DbColumnType nType;
+
+ if (null == __pDataBase || null == __pDbEnum)
+ {
+ AppLogDebug("__pDataBase or __pDbEnum is null");
+ return E_OUT_OF_MEMORY;
+ }
+
+ // Find column type
+ nType = __pDbEnum->GetColumnType(index);
+
+ //if column type is null then assign empty string and return
+ if (nType == DB_COLUMNTYPE_NULL)
+ {
+ return E_SUCCESS;
+ }
+ //Get String value
+ r = __pDbEnum->GetDateTimeAt(index, dateValue);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("GetDateTimeAt: Failed");
+ return r;
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::GetColumn(int index, double& doubleValue)
+{
+ result r = E_FAILURE;
+ DbColumnType columnType;
+
+ if (null == __pDataBase || null == __pDbEnum)
+ {
+ return E_OUT_OF_MEMORY;
+ }
+
+ // Find column type
+ columnType = __pDbEnum->GetColumnType(index);
+
+ //if column type is null then assign empty string and return
+ if (columnType == DB_COLUMNTYPE_NULL)
+ {
+ doubleValue = 0.0;
+ return E_SUCCESS;
+ }
+
+ //Get String value
+ r = __pDbEnum->GetDoubleAt(index, doubleValue);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("GetDateTimeAt: Failed");
+ return r;
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::RollbackDb()
+{
+ result r = E_FAILURE;
+
+ if (__pDataBase != null && __isBeginTransaction == true)
+ {
+ r = __pDataBase->RollbackTransaction();
+
+ if (IsFailed(r))
+ {
+ return r;
+ }
+
+ __isBeginTransaction = false;
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::CommitDb()
+{
+ result r = E_FAILURE;
+
+ if (__pDataBase != null && __isBeginTransaction == true)
+ {
+ r = __pDataBase->CommitTransaction();
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("PresentationModelBase::Commit Transaction:failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ __isBeginTransaction = false;
+ }
+
+ return r;
+}
+
+result
+DataServiceProvider::GetLastInsertedId(String& tableName, int& rowId)
+{
+ String query;
+ result r = E_FAILURE;
+ int count = -1;
+ bool nextRowpresent = false;
+
+ query.Append(L"SELECT last_insert_rowid() FROM ");
+ query.Append(tableName);
+
+ r = DataServiceProvider::ExecuteQuery(query, count);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("PresentationModelBase::GetLastInsertedId query failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ r = DataServiceProvider::DbIsNextRowPresent(nextRowpresent);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("PresentationModelBase::GetLastInsertedId DbIsNextRowPresent failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ if (nextRowpresent == true)
+ {
+
+ r = DataServiceProvider::GetColumn(0, rowId);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("PresentationModelBase::GetLstInsertedId -(%s)\n", GetErrorMessage(r));
+ }
+
+ }
+
+ return r;
+}
+
+bool
+DataServiceProvider::GetCurrentDateTime(DateTime& dt)
+{
+ DateTime dtNow;
+ LocaleManager localManager;
+ result r = E_FAILURE;
+ TimeZone tz;
+
+ r = SystemTime::GetCurrentTime(UTC_TIME, dtNow);
+
+ if (IsFailed(r))
+ {
+ return false;
+ }
+
+ localManager.Construct();
+ tz = localManager.GetSystemTimeZone();
+ dt = tz.UtcTimeToWallTime(dtNow);
+
+ return true;
+}
+
+DataServiceProvider*
+DataServiceProvider::GetInstance(void)
+{
+
+ if (__pInstance == null)
+ {
+ CreateInstance();
+ }
+
+ return __pInstance;
+}
+
+result
+DataServiceProvider::Construct(void)
+{
+ return E_SUCCESS;
+}
+
+void
+DataServiceProvider::CreateInstance(void)
+{
+ result r = E_FAILURE;
+ __pInstance = new (std::nothrow) DataServiceProvider();
+ r = __pInstance->Construct();
+
+ if (IsFailed(r))
+ {
+ delete __pInstance;
+ __pInstance = null;
+ return;
+ }
+
+ std::atexit(DestroyInstance);
+}
+
+void
+DataServiceProvider::DestroyInstance(void)
+{
+ delete __pInstance;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file DaylightSavingPopUp.cpp
+ * @brief This file contains the definitions of the DayLightSavingPopup class.
+ */
+
+#include <FAppUiApp.h>
+#include <FUiScenes.h>
+
+#include "ClkCommonLib.h"
+#include "ClkDaylightSavingPopUp.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+
+static const int ID_FORMAT_OFF = 501;
+static const int ID_FORMAT_1_HOUR = 502 ;
+static const int ID_FORMAT_2_HOURS = 503 ;
+static const int ID_CANCEL_BUTTON = 504;
+
+const RequestId REQUEST_CANCEL_CLICKED = 10001;
+
+IDstTimeEventListener::IDstTimeEventListener(void)
+{
+
+}
+
+IDstTimeEventListener::~IDstTimeEventListener(void)
+{
+
+}
+
+DaylightSavingPopUp::DaylightSavingPopUp(void)
+:__pList(null)
+{
+
+}
+
+DaylightSavingPopUp::~DaylightSavingPopUp(void)
+{
+
+}
+
+bool
+DaylightSavingPopUp::Initialize(void)
+{
+ Button* pCancelButton = null;
+ Popup::Construct(L"IDL_DST_POPUP");
+
+ __pList = static_cast<ListView*>(GetControl(L"IDC_POPUP_LIST"));
+
+ if (__pList == null)
+ {
+ return false;
+ }
+
+ __pList->SetItemProvider(*this);
+ __pList->AddListViewItemEventListener(*this);
+
+ pCancelButton = static_cast< Button* >(GetControl(L"IDC_BUTTON", true));
+
+ if (pCancelButton != null)
+ {
+ pCancelButton->AddActionEventListener(*this);
+ pCancelButton->SetActionId(ID_CANCEL_BUTTON);
+ }
+
+ SetPropagatedKeyEventListener(this);
+ return true;
+
+}
+
+result
+DaylightSavingPopUp::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+ return r;
+}
+
+void
+DaylightSavingPopUp::OnActionPerformed(const Control& source, int actionId)
+{
+ switch (actionId)
+ {
+ case ID_CANCEL_BUTTON:
+ {
+ Popup::SetShowState(false);
+ Popup::Show();
+ Form *pWorldClockForm = dynamic_cast<Form*>(UiApp::GetInstance()->GetFrameAt(0)->GetCurrentForm());
+ if(pWorldClockForm != NULL)
+ {
+ pWorldClockForm->SendUserEvent(REQUEST_CANCEL_CLICKED, null);
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ return;
+}
+
+void
+DaylightSavingPopUp::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ switch(index)
+ {
+ case 0:
+ {
+ __pList->SetItemChecked(0,true);
+ __pList->SetItemChecked(1,false);
+ __pList->SetItemChecked(2,false);
+
+ if (__pListener != null)
+ {
+ __pListener->OnDaylightSavingPopUpItemSelected(0);
+ }
+
+ }
+ break;
+ case 1:
+ {
+ __pList->SetItemChecked(0,false);
+ __pList->SetItemChecked(1,true);
+ __pList->SetItemChecked(2,false);
+
+ if (__pListener != null)
+ {
+ __pListener->OnDaylightSavingPopUpItemSelected(1);
+ }
+
+ }
+ break;
+
+ case 2:
+ {
+ __pList->SetItemChecked(0,false);
+ __pList->SetItemChecked(1,false);
+ __pList->SetItemChecked(2,true);
+
+ if (__pListener != null)
+ {
+ __pListener->OnDaylightSavingPopUpItemSelected(2);
+ }
+
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ __pList->Invalidate(true);
+}
+
+ListItemBase*
+DaylightSavingPopUp::CreateItem(int index, int itemWidth)
+{
+ result r = E_FAILURE;
+ ListAnnexStyle style = LIST_ANNEX_STYLE_RADIO;
+ int listItemWidth = 112;
+
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+ r = pItem->Construct(Dimension(GetClientAreaBounds().width, listItemWidth), style);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
+
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ return null;
+ }
+
+ switch (index)
+ {
+
+ case 0:
+ {
+ pItem->AddElement(Rectangle(0, 0, GetClientAreaBounds().width, listItemWidth), ID_FORMAT_OFF, L"Off", true);
+ }
+ break;
+
+ case 1:
+ {
+ pItem->AddElement(Rectangle(0, 0, GetClientAreaBounds().width, listItemWidth), ID_FORMAT_1_HOUR, L"1 hour", true);
+ }
+ break;
+
+ case 2:
+ {
+ pItem->AddElement(Rectangle(0, 0, GetClientAreaBounds().width, listItemWidth), ID_FORMAT_2_HOURS, L"2 hours", true);
+ }
+ break;
+ default:
+ break;
+ }
+
+ return pItem;
+}
+
+bool
+DaylightSavingPopUp::DeleteItem(int index, ListItemBase* pItem, int itemWidth)
+{
+ return true;
+}
+
+int
+DaylightSavingPopUp::GetItemCount(void)
+{
+ return 3;
+}
+
+void
+DaylightSavingPopUp::SetEventListner(IDstTimeEventListener* listner)
+{
+ __pListener = listner;
+}
+
+void
+DaylightSavingPopUp::SetDstIndex(int index)
+{
+ __pList->SetItemChecked(index,true);
+
+ if ( index == 0)
+ {
+ __pList->SetItemChecked(1,false);
+ __pList->SetItemChecked(2,false);
+ }
+ else if (index == 1)
+ {
+ __pList->SetItemChecked(0,false);
+ __pList->SetItemChecked(2,false);
+ }
+ else if (index == 2)
+ {
+ __pList->SetItemChecked(0,false);
+ __pList->SetItemChecked(1,false);
+ }
+
+ __pList->Invalidate(true);
+}
+
+bool
+DaylightSavingPopUp::OnKeyReleased (Control &source, const KeyEventInfo &keyEventInfo)
+{
+ if (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
+ {
+ Popup::SetShowState(false);
+ Popup::Show();
+ Form *pWorldClockForm = dynamic_cast<Form*>(UiApp::GetInstance()->GetFrameAt(0)->GetCurrentForm());
+ if(pWorldClockForm != NULL)
+ {
+ pWorldClockForm->SendUserEvent(REQUEST_CANCEL_CLICKED, null);
+ }
+ }
+
+ return false;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkDefaultCustomItem
+ * @brief This header file contains the declarations of the DefaultCustomItem
+ *
+ */
+
+#include <FUiControls.h>
+#include "ClkDefaultCustomItem.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 101;
+static const int IDA_FORMAT_SUB_STRING = 102;
+static const int IDA_FORMAT_RIGHT_SUB_STRING = 103;
+
+DefaultCustomItem::DefaultCustomItem(void)
+:__rightSubText(""),
+ __subText(""),
+ __text("")
+
+{
+
+}
+
+DefaultCustomItem::~DefaultCustomItem(void)
+{
+
+}
+
+result
+DefaultCustomItem::Construct(int width, int fontsize)
+{
+ result r = E_FAILURE;
+ __width = width;
+ __height = 128 + fontsize - 44;
+ const Dimension dim(width, __height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+ return r;
+
+}
+
+void
+DefaultCustomItem::SetText(String& text)
+{
+ __text = text;
+}
+
+String
+DefaultCustomItem::GetText(void)
+{
+ return __text;
+}
+
+void
+DefaultCustomItem::SetSubText(String& text)
+{
+ __subText.Clear();
+ __subText.Append(text);
+}
+
+String
+DefaultCustomItem::GetSubText(void)
+{
+ return __subText;
+}
+
+void
+DefaultCustomItem::SetRightSubText(String& text)
+{
+ __rightSubText.Clear();
+ __rightSubText.Append(text);
+}
+
+String
+DefaultCustomItem::GetRightSubText(void)
+{
+ return __rightSubText;
+}
+
+
+result
+DefaultCustomItem::Make(int fontSize)
+{
+ result r = E_SUCCESS;
+
+ EnrichedText* pMainEnText = null;
+ EnrichedText* pSubEnText = null;
+ TextElement* pMainTextElement = null;
+ TextElement* pSubTextElement = null;
+ Font* pMainTextFont = null;
+ Font* pSubTextFont = null;
+ int mainTextFont = 32;
+ int subTextFont = fontSize;
+ int textX = 80;
+ int textY = 40;
+ int xMargin = 26;
+ int yMargin = 25;
+ int width_Element = __width - 60;
+ int width_text = width_Element;
+ int width_rightSubText = 0;
+ int stringHeight = 60;
+ int subStringHeight = 62 + fontSize - 44;
+ int subStringFont = 44;
+ Color textColor = Color(128, 128, 128);
+ Color pressedTextColor = Color(255, 255, 255);
+
+ pMainEnText = new (std::nothrow) EnrichedText();
+
+ if (pMainEnText == null)
+ {
+ return E_FAILURE;
+ }
+
+ pMainEnText->Construct(Dimension(__width - textX, textY));
+
+ pMainTextElement = new (std::nothrow) TextElement();
+ pMainTextElement->Construct(__text);
+
+ pMainTextFont = new (std::nothrow) Font();
+
+ if (pMainTextFont == null)
+ {
+ return E_FAILURE;
+ }
+
+ pMainTextFont->Construct(FONT_STYLE_BOLD, mainTextFont);
+
+ pMainTextElement->SetFont(*pMainTextFont);
+ pMainTextElement->SetTextColor(textColor);
+ pMainEnText->Add(*pMainTextElement);
+
+
+ if (__rightSubText != L"")
+ {
+ width_rightSubText = 200;
+ width_text = width_Element - width_rightSubText - 16;
+ }
+
+ r = AddElement(Rectangle(xMargin, yMargin, width_text, stringHeight), IDA_FORMAT_STRING, *pMainEnText);
+ //r = AddElement(Rectangle(xMargin, yMargin, width_text, stringHeight), IDA_FORMAT_STRING, __text, textSize, textColor, pressedTextColor, pressedTextColor, true);
+ //TryCatch( !IsFailed(r),L"DefaultCustomItem::Make %s",GetErrorMessage(r));
+
+ if (__subText != L"")
+ {
+ pSubEnText = new (std::nothrow) EnrichedText();
+
+ if (pSubEnText == null)
+ {
+ return E_FAILURE;
+ }
+
+ pSubEnText->Construct(Dimension(__width - textX, textY));
+
+ pSubTextElement = new (std::nothrow) TextElement();
+ pSubTextElement->Construct(__subText);
+
+ pSubTextFont = new (std::nothrow) Font();
+
+ if (pSubTextFont == null)
+ {
+ return E_FAILURE;
+ }
+
+ pSubTextFont->Construct(FONT_STYLE_PLAIN, subTextFont);
+
+ pSubTextElement->SetFont(*pSubTextFont);
+ pSubTextElement->SetTextColor(Color(0, 0, 0));
+ pSubEnText->Add(*pSubTextElement);
+
+ r = AddElement(Rectangle(xMargin, yMargin + stringHeight -20, width_Element, subStringHeight), IDA_FORMAT_SUB_STRING, *pSubEnText);
+ }
+
+ if (__rightSubText != L"")
+ {
+ r = AddElement(Rectangle(xMargin + width_text + 16, yMargin, width_rightSubText, subStringHeight), IDA_FORMAT_RIGHT_SUB_STRING, __rightSubText, subStringFont, Color(128,128,128), pressedTextColor, pressedTextColor, true);
+ }
+
+// SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
+// SetElementSelectionEnabled(IDA_FORMAT_SUB_STRING, true);
+
+ if (pMainTextFont != null)
+ {
+ delete pMainTextFont;
+ pMainTextFont = null;
+ }
+
+ if (pSubTextFont != null)
+ {
+ delete pSubTextFont;
+ pSubTextFont = null;
+ }
+
+ if (pSubEnText != null)
+ {
+ pSubEnText->RemoveAllTextElements(true);
+ delete pSubEnText;
+ pSubEnText = null;
+ }
+
+ if (pMainEnText != null)
+ {
+ pMainEnText->RemoveAllTextElements(true);
+ delete pMainEnText;
+ pMainEnText = null;
+ }
+
+ return r;
+
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkDropDownCustomItem
+ * @brief To create Drop Down custom item
+ *
+ */
+
+#include <FApp.h>
+#include <FUiControls.h>
+
+#include "ClkDropDownCustomItem.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_MAIN_STRING = 102;
+static const int IDA_FORMAT_DROPPER = 104;
+
+DropDownCustomItem::DropDownCustomItem(void)
+ : currentState(DROP_DOWN_ITEM_STATE_CLOSED)
+ , __mainText("")
+ , __subText("")
+{
+
+}
+
+DropDownCustomItem::~DropDownCustomItem(void)
+{
+
+}
+
+result
+DropDownCustomItem::Construct(int width, int fontSize)
+{
+ result r = E_SUCCESS;
+ __width = width;
+ __height = 128 + fontSize - 44;
+ Dimension dim(__width, __height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+ return r;
+}
+
+void
+DropDownCustomItem::SetMainText(const String& text)
+{
+ __mainText = text;
+}
+
+String
+DropDownCustomItem::GetMainText(void) const
+{
+ return __mainText;
+}
+
+void
+DropDownCustomItem::SetSubText(const String& text)
+{
+ __subText = text;
+}
+
+String
+DropDownCustomItem::GetSubText(void) const
+{
+ return __subText;
+}
+
+result
+DropDownCustomItem::MakeElements(int fontSize)
+{
+ AppLogDebug("DropDownCustomItem::Make entered");
+ result r = E_FAILURE;
+ EnrichedText* pMainEnText = null;
+ EnrichedText* pSubEnText = null;
+ TextElement* pMainTextElement = null;
+ TextElement* pSubTextElement = null;
+ Font* pMainTextFont = null;
+ Font* pSubTextFont = null;
+ AppResource* pAppResource = null;
+ Bitmap* pDropperBitmapNormal = null;
+ Bitmap* pDropperBitmapPressed = null;
+ Color textColor = Color(128, 128, 128);
+ Color pressedTextColor = Color(255, 255, 255);
+ int textX = 80;
+ int textY = 40;
+ int subTextFont = fontSize;
+ int mainTextFont = 32;
+ int mainStringX = 26;
+ int mainStringY = 25;
+ int mainStringWidth = 80;
+ int mainStringHeight = 128 + fontSize - 44;
+ int dropperX = 87;
+ int dropperY = 64;
+ int dropperWidth = 64;
+ int dropperHeight = 64;
+ pMainEnText = new (std::nothrow) EnrichedText();
+
+ if (pMainEnText == null)
+ {
+ return E_FAILURE;
+ }
+
+ r = pMainEnText->Construct(Dimension(__width - textX, textY));
+
+ if(IsFailed(r))
+ {
+ if (pMainEnText != null)
+ {
+ pMainEnText->RemoveAllTextElements(true);
+ delete pMainEnText;
+ }
+ return E_FAILURE;
+ }
+
+ pMainTextElement = new (std::nothrow) TextElement();
+ __mainText.Append('\n');
+ pMainTextElement->Construct(__mainText);
+
+ pMainTextFont = new (std::nothrow) Font();
+
+ if (pMainTextFont == null)
+ {
+ return E_FAILURE;
+ }
+
+ pMainTextFont->Construct(FONT_STYLE_BOLD, mainTextFont);
+
+ pMainTextElement->SetFont(*pMainTextFont);
+ pMainTextElement->SetTextColor(textColor);
+ pMainEnText->Add(*pMainTextElement);
+
+ pSubEnText = new (std::nothrow) EnrichedText();
+
+ if (pSubEnText == null)
+ {
+ return E_FAILURE;
+ }
+
+ r = pSubEnText->Construct(Dimension(__width - textX, textY));
+
+ if(IsFailed(r))
+ {
+ if (pMainTextFont != null)
+ {
+ delete pMainTextFont;
+ pMainTextFont = null;
+ }
+
+ if (pMainEnText != null)
+ {
+ pMainEnText->RemoveAllTextElements(true);
+ delete pMainEnText;
+ }
+
+ if (pSubEnText != null)
+ {
+ pSubEnText->RemoveAllTextElements(true);
+ delete pSubEnText;
+ }
+ return E_FAILURE;
+ }
+
+ pSubTextElement = new (std::nothrow) TextElement();
+ pSubTextElement->Construct(__subText);
+
+ pSubTextFont = new (std::nothrow) Font();
+
+ if (pSubTextFont == null)
+ {
+ return E_FAILURE;
+ }
+
+ pSubTextFont->Construct(FONT_STYLE_PLAIN, subTextFont);
+
+ pSubTextElement->SetFont(*pSubTextFont);
+ pSubTextElement->SetTextColor(Color(0, 0, 0));
+ pMainEnText->Add(*pSubTextElement);
+
+ r = AddElement(Rectangle(mainStringX, mainStringY, __width - mainStringWidth, mainStringHeight), IDA_FORMAT_MAIN_STRING, *pMainEnText);
+
+ pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ if (pAppResource != null)
+ {
+
+ if (GetCurState() == DROP_DOWN_ITEM_STATE_CLOSED)
+ {
+ pDropperBitmapNormal = pAppResource->GetBitmapN(IDB_LIST_EXPAND_CLOSED, BITMAP_PIXEL_FORMAT_ARGB8888);
+ pDropperBitmapPressed = pAppResource->GetBitmapN(IDB_LIST_EXPAND_CLOSED_PRESS, BITMAP_PIXEL_FORMAT_ARGB8888);
+ }
+ else
+ {
+ pDropperBitmapNormal = pAppResource->GetBitmapN(IDB_LIST_EXPAND_OPENED, BITMAP_PIXEL_FORMAT_ARGB8888);
+ pDropperBitmapPressed = pAppResource->GetBitmapN(IDB_LIST_EXPAND_OPENED_PRESS, BITMAP_PIXEL_FORMAT_ARGB8888);
+ }
+
+ AddElement(Rectangle(__width - dropperX, (__height - dropperY) / 2, dropperWidth, dropperHeight), IDA_FORMAT_DROPPER, *pDropperBitmapNormal, pDropperBitmapPressed, pDropperBitmapNormal);
+ delete pDropperBitmapNormal;
+ delete pDropperBitmapPressed;
+ }
+
+ //SetElementSelectionEnabled(IDA_FORMAT_MAIN_STRING, true);
+ //SetElementSelectionEnabled(IDA_FORMAT_SUB_STRING, true);
+ //SetElementSelectionEnabled(IDA_FORMAT_DROPPER, true);
+
+ if (pMainTextFont != null)
+ {
+ delete pMainTextFont;
+ pMainTextFont = null;
+ }
+
+ if (pSubTextFont != null)
+ {
+ delete pSubTextFont;
+ pSubTextFont = null;
+ }
+
+ if (pSubEnText != null)
+ {
+ pSubEnText->RemoveAllTextElements(true);
+ delete pSubEnText;
+ pSubEnText = null;
+ }
+
+ if (pMainEnText != null)
+ {
+ pMainEnText->RemoveAllTextElements(true);
+ delete pMainEnText;
+ pMainEnText = null;
+ }
+
+ return E_SUCCESS;
+}
+
+DropDownItemState
+DropDownCustomItem::GetCurState(void) const
+{
+ return currentState;
+}
+
+void
+DropDownCustomItem::SetCurState(const DropDownItemState state)
+{
+ currentState = state;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/*
+ *@file ClkDropDownCustomItem
+ *@brief To create Drop Down custom item
+ *
+ */
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUiControls.h>
+
+#include "ClkDropdownAndRepeatCustomItem.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_MAIN_STRING = 101;
+static const int IDA_FORMAT_SUB_STRING = 102;
+static const int IDA_FORMAT_DROPPER = 103;
+
+DropdownAndRepeatCustomItem::DropdownAndRepeatCustomItem(void)
+ : currentState(DROP_DOWN_AND_REPEAT_ITEM_STATE_CLOSED)
+ , __height(0)
+ , __mainText("")
+ , __repeatFlags("")
+ , __subText("")
+ , __width(0)
+{
+
+}
+
+DropdownAndRepeatCustomItem::~DropdownAndRepeatCustomItem(void)
+{
+
+}
+
+result
+DropdownAndRepeatCustomItem::Construct(int width)
+{
+ result r = E_SUCCESS;
+ __width = width;
+ __height = 128;
+ Dimension dim(__width, __height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+ return r;
+}
+
+void
+DropdownAndRepeatCustomItem::SetMainText(const String& text)
+{
+ __mainText = text;
+}
+
+String
+DropdownAndRepeatCustomItem::GetMainText(void) const
+{
+ return __mainText;
+}
+
+void
+DropdownAndRepeatCustomItem::SetSubText(const String& text)
+{
+ __subText = text;
+}
+
+String
+DropdownAndRepeatCustomItem::GetSubText(void) const
+{
+ return __subText;
+}
+
+void
+DropdownAndRepeatCustomItem::SetRepeatFlags(const String& flag)
+{
+ __repeatFlags = flag;
+}
+
+String
+DropdownAndRepeatCustomItem::GetRepeatFlag(void) const
+{
+ return __repeatFlags;
+}
+
+result
+DropdownAndRepeatCustomItem::MakeElements()
+{
+ AppLogDebug("DropDownCustomItem::Make entered");
+ result r = E_FAILURE;
+ EnrichedText* pMainEnText = null;
+ EnrichedText* pSubEnText = null;
+ TextElement* pMainTextElement = null;
+ TextElement* pSubTextElement = null;
+ Font* pMainTextFont = null;
+ Font* pSubTextFont = null;
+ AppResource* pAppResource = null;
+ Bitmap* pDropperBitmapNormal = null;
+ Bitmap* pDropperBitmapPressed = null;
+ Color textColor = Color(0, 0, 0);
+ Color pressedTextColor = Color(249, 249, 249);
+ int xText = 80;
+ int yText = 40;
+ int subTextFont = 32;
+ int repeatFlagX = 26;
+ int characterGap = 37;
+ int repeatFlagY = 75;
+ int repeatFlagWidth = 32;
+ int repeatFlagHeight = 48;
+ int repeatFlagFont = 32;
+ int mainStringX = 26;
+ int mainStringY = 25;
+ int mainStringWidth = 80;
+ int mainStringHeight = 60;
+ int dropperX = 87;
+ int dropperY = 64;
+ int dropperWidth = 64;
+ int dropperHeight = 64;
+ pMainEnText = new (std::nothrow) EnrichedText();
+
+ if (pMainEnText == null)
+ {
+ return E_FAILURE;
+ }
+
+ pMainEnText->Construct(Dimension(__width - xText, yText));
+
+ pMainTextElement = new (std::nothrow) TextElement();
+
+ if (pMainTextElement == null)
+ {
+ return E_FAILURE;
+ }
+
+ pMainTextElement->Construct(__mainText);
+
+ pMainTextFont = new (std::nothrow) Font();
+
+ if (pMainTextFont == null)
+ {
+ return E_FAILURE;
+ }
+
+ pMainTextFont->Construct(FONT_STYLE_PLAIN, yText);
+
+ pMainTextElement->SetFont(*pMainTextFont);
+ pMainTextElement->SetTextColor(textColor);
+ pMainEnText->Add(*pMainTextElement);
+
+ pSubEnText = new (std::nothrow) EnrichedText();
+
+ if (pSubEnText == null)
+ {
+ return E_FAILURE;
+ }
+
+ pSubEnText->Construct(Dimension(__width - xText, yText));
+
+ pSubTextElement = new (std::nothrow) TextElement();
+
+ if (pSubTextElement == null)
+ {
+ return E_FAILURE;
+ }
+
+ __subText.Insert('\n',0);
+ pSubTextElement->Construct(__subText);
+
+ pSubTextFont = new (std::nothrow) Font();
+
+ if (pSubTextFont == null)
+ {
+ return E_FAILURE;
+ }
+
+ pSubTextFont->Construct(FONT_STYLE_PLAIN, subTextFont);
+
+ pSubTextElement->SetFont(*pSubTextFont);
+ pSubTextElement->SetTextColor(Color(128, 128, 128));
+ pMainEnText->Add(*pSubTextElement);
+
+ for (int i = 0; i < 7 ; i++)
+ {
+ AppLogDebug("inside for loop");
+ String flag = L"";
+ wchar_t ch;
+
+ GetRepeatFlag().GetCharAt(i, ch);
+ AppLogDebug("the flag is %ls",GetRepeatFlag().GetPointer());
+
+ if (ch == '1')
+ {
+ textColor = Color::GetColor(COLOR_ID_BLUE);
+ AppLogDebug("color is blue");
+ }
+ else
+ {
+ textColor = Color(124,124,124);
+ }
+
+ switch (i)
+ {
+ case 0:
+ flag.Append(L"S");
+ break;
+ case 1:
+ flag.Append(L"M");
+ break;
+ case 2:
+ flag.Append(L"T");
+ break;
+ case 3:
+ flag.Append(L"W");
+ break;
+ case 4:
+ flag.Append(L"T");
+ break;
+ case 5:
+ flag.Append(L"F");
+ break;
+ case 6:
+ flag.Append(L"S");
+ break;
+ }
+
+ AppLogDebug("the string is %ls", flag.GetPointer());
+ r = AddElement(Rectangle(repeatFlagX + i*characterGap, repeatFlagY, repeatFlagWidth, repeatFlagHeight), i, flag, repeatFlagFont, textColor, textColor, textColor, true);
+ AppLogDebug("the last result %s", GetErrorMessage(r));
+ }
+ r = AddElement(Rectangle(mainStringX, mainStringY, __width - mainStringWidth, mainStringHeight), IDA_FORMAT_MAIN_STRING, __mainText);
+
+ pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ if (pAppResource != null)
+ {
+
+ if (GetCurState() == DROP_DOWN_AND_REPEAT_ITEM_STATE_CLOSED)
+ {
+ pDropperBitmapNormal = pAppResource->GetBitmapN(IDB_LIST_EXPAND_CLOSED, BITMAP_PIXEL_FORMAT_ARGB8888);
+ pDropperBitmapPressed = pAppResource->GetBitmapN(IDB_LIST_EXPAND_CLOSED_PRESS, BITMAP_PIXEL_FORMAT_ARGB8888);
+ }
+ else
+ {
+ pDropperBitmapNormal = pAppResource->GetBitmapN(IDB_LIST_EXPAND_OPENED, BITMAP_PIXEL_FORMAT_ARGB8888);
+ pDropperBitmapPressed = pAppResource->GetBitmapN(IDB_LIST_EXPAND_OPENED_PRESS, BITMAP_PIXEL_FORMAT_ARGB8888);
+ }
+
+ AddElement(Rectangle(__width - dropperX, (__height - dropperY) / 2, dropperWidth, dropperHeight), IDA_FORMAT_DROPPER, *pDropperBitmapNormal, pDropperBitmapPressed, pDropperBitmapNormal);
+ delete pDropperBitmapNormal;
+ delete pDropperBitmapPressed;
+ }
+
+ SetElementSelectionEnabled(IDA_FORMAT_MAIN_STRING, true);
+ SetElementSelectionEnabled(IDA_FORMAT_SUB_STRING, true);
+ SetElementSelectionEnabled(IDA_FORMAT_DROPPER, true);
+
+ if (pMainTextFont != null)
+ {
+ delete pMainTextFont;
+ pMainTextFont = null;
+ }
+
+ if (pSubTextFont != null)
+ {
+ delete pSubTextFont;
+ pSubTextFont = null;
+ }
+
+ if (pSubEnText != null)
+ {
+ pSubEnText->RemoveAllTextElements(true);
+ delete pSubEnText;
+ pSubEnText = null;
+ }
+
+ if (pMainEnText != null)
+ {
+ pMainEnText->RemoveAllTextElements(true);
+ delete pMainEnText;
+ pMainEnText = null;
+ }
+
+ return E_SUCCESS;
+}
+
+DropDownAndRepeatItemState
+DropdownAndRepeatCustomItem::GetCurState(void) const
+{
+ return currentState;
+}
+
+void
+DropdownAndRepeatCustomItem::SetCurState(const DropDownAndRepeatItemState state)
+{
+ currentState = state;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkEditSnoozeForm.cpp
+ * @brief The definitions of EditSnoozeForm
+ */
+
+#include <FApp.h>
+#include <FGraphics.h>
+#include <FSystem.h>
+#include <FUiScenes.h>
+
+#include "ClkAlarm.h"
+#include "ClkCommonLib.h"
+#include "ClkCustomColors.h"
+#include "ClkDropDownCustomItem.h"
+#include "ClkEditSnoozeForm.h"
+#include "ClkRadioCustomItem.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+EditSnoozeForm::EditSnoozeForm(void)
+ : __durationName(5)
+ , __durationSelectedIndex(2)
+ , __pListView(null)
+ , __repeatName(3)
+ , __repeatSelectedIndex(1)
+ , __showSnoozeDuration(true)
+ , __showSnoozeRepeat(true)
+{
+
+}
+
+EditSnoozeForm::~EditSnoozeForm(void)
+{
+
+}
+
+bool
+EditSnoozeForm::Initialize(void)
+{
+ result r = E_FAILURE;
+ r = Construct(L"IDL_EDIT_SNOOZE_FORM");
+
+ if(IsFailed(r))
+ {
+ return false;
+ }
+
+ return true;
+}
+
+result
+EditSnoozeForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ Footer* pFooter;
+ String titleText;
+
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_EDIT_SNOOZE, *this);
+
+ __pListView = static_cast< GroupedListView* >(GetControl(L"IDC_SETTING_LIST"));
+ r = __pListView->SetItemProvider(*this);
+
+ __pListView->AddGroupedListViewItemEventListener(*this);
+
+ pFooter = GetFooter();
+
+ if (pFooter != null)
+ {
+ SetFormBackEventListener(this);
+ pFooter->SetShowState(false);
+ }
+
+ titleText = CommonUtil::GetString(L"IDS_ALM_BODY_SNOOZE_DURATION");
+ titleText.Append(" & ");
+ titleText.Append(CommonUtil::GetString(L"IDS_ALM_BODY_REPEAT"));
+ GetHeader()->SetTitleText(titleText);
+
+
+ AddOrientationEventListener(*this);
+ return r;
+}
+
+void
+EditSnoozeForm::OnGroupedListViewItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListItemStatus status)
+{
+ result r = E_FAILURE;
+ if (groupIndex == 0 )
+ {
+
+ if ( itemIndex == 0 )
+ {
+ if(__showSnoozeDuration == true)
+ {
+ __showSnoozeDuration = !__showSnoozeDuration;
+ r = listView.RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ r = listView.RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ r = listView.RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ }
+ else if(__showSnoozeDuration == false)
+ {
+ __showSnoozeDuration = !__showSnoozeDuration;
+ r = listView.RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_ADD);
+ r = listView.RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_ADD);
+ r = listView.RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_ADD);
+ }
+ r = listView.RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+ }
+ else
+ {
+ __durationSelectedIndex = itemIndex ;
+
+ if (itemIndex == 1)
+ {
+ __durationName = 3;
+ }
+ else if (itemIndex == 2)
+ {
+ __durationName = 5;
+ }
+ else if (itemIndex == 3)
+ {
+ __durationName = 10;
+ }
+
+ r = listView.RefreshList(0, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(0, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(0, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ }
+
+ else if (groupIndex == 1)
+ {
+
+ if ( itemIndex == 0 )
+ {
+ if(__showSnoozeRepeat == true)
+ {
+ __showSnoozeRepeat = !__showSnoozeRepeat;
+ r = listView.RefreshList(1, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ r = listView.RefreshList(1, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ r = listView.RefreshList(1, 1, LIST_REFRESH_TYPE_ITEM_REMOVE);
+ }
+ else if(__showSnoozeRepeat == false)
+ {
+ __showSnoozeRepeat = !__showSnoozeRepeat;
+ r = listView.RefreshList(1, 1, LIST_REFRESH_TYPE_ITEM_ADD);
+ r = listView.RefreshList(1, 2, LIST_REFRESH_TYPE_ITEM_ADD);
+ r = listView.RefreshList(1, 3, LIST_REFRESH_TYPE_ITEM_ADD);
+ }
+
+ r = listView.RefreshList(1, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(1, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(1, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(1, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ else
+ {
+ __repeatSelectedIndex = itemIndex ;
+
+ if (itemIndex == 1)
+ {
+ __repeatName = 3;
+ }
+ else if (itemIndex == 2)
+ {
+ __repeatName = 5;
+ }
+ else if (itemIndex == 3)
+ {
+ __repeatName = 10;
+ }
+
+ r = listView.RefreshList(1, 1, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(1, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(1, 2, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ r = listView.RefreshList(1, 3, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+ }
+}
+
+GroupItem*
+EditSnoozeForm::CreateGroupItem(int groupIndex, int itemWidth)
+{
+ result r = E_FAILURE;
+ GroupItem* pItem = null;
+ Bitmap* __pbgActive = null;
+ AppResource* pAppResource = null;
+ int itemHeight = 25 ;
+
+ pItem = new (std::nothrow) GroupItem();
+
+ if (pItem == null)
+ {
+ return null;
+ }
+
+ r = pItem->Construct(Dimension(itemWidth, itemHeight));
+ TryCatch( !IsFailed(r),,"EditSnoozeForm::CreateItem Construct failed %s",GetErrorMessage(r));
+
+ pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ if (pAppResource != null)
+ {
+ __pbgActive = pAppResource->GetBitmapN(IDB_EDIT_BACKGROUND, BITMAP_PIXEL_FORMAT_ARGB8888);
+
+ if (__pbgActive == null)
+ {
+ delete pItem;
+ pItem = null;
+
+ return null;
+ }
+
+ }
+
+ r = pItem->SetBackgroundBitmap(__pbgActive);
+
+ delete __pbgActive;
+ __pbgActive = null ;
+
+ return pItem;
+
+ CATCH:
+ delete pItem;
+ pItem = null;
+ return null;
+}
+
+ListItemBase*
+EditSnoozeForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
+{
+ AppLog("start: %d",itemIndex);
+ RadioCustomItem* radioItem = null;
+ DropDownCustomItem* pItem = null;
+ Bitmap* pBitmap = null;
+ result r = E_FAILURE;
+ String snoozeDuration1 = CommonUtil::GetString(L"IDS_ALM_BODY_3MINS");
+ String snoozeDuration2 =CommonUtil::GetString(L"IDS_ALM_BODY_5MINS");
+ String snoozeDuration3 = CommonUtil::GetString(L"IDS_ALM_BODY_10MINS");
+ String mainTextDuration = CommonUtil::GetString(L"IDS_ALM_BODY_SNOOZE_DURATION");
+ String mainTextRepeat = CommonUtil::GetString(L"IDS_ALM_BODY_SNOOZE_REPEAT");
+ String snoozeRepeat1 = L"";
+ String snoozeRepeat2 = L"";
+ String snoozeRepeat3 = L"";
+ String snoozeTime;
+ String snooze;
+ int radioItemHeight = 112;
+
+ snoozeRepeat1.Format(25, CommonUtil::GetString(L"IDS_CLOCK_BODY_PD_TIMES").GetPointer(), 3);
+ snoozeRepeat2.Format(25, CommonUtil::GetString(L"IDS_CLOCK_BODY_PD_TIMES").GetPointer(), 5);
+ snoozeRepeat3.Format(25, CommonUtil::GetString(L"IDS_CLOCK_BODY_PD_TIMES").GetPointer(), 10);
+
+ pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_LIST_LEFTSIDE);
+ if (__durationSelectedIndex == 1)
+ {
+ snoozeTime = snoozeDuration1 ;
+ }
+ else if (__durationSelectedIndex == 2)
+ {
+ snoozeTime = snoozeDuration2 ;
+ }
+ else if (__durationSelectedIndex == 3)
+ {
+ snoozeTime = snoozeDuration3 ;
+ }
+
+ if (__repeatSelectedIndex == 1)
+ {
+ snooze = snoozeRepeat1;
+ }
+ else if (__repeatSelectedIndex == 2)
+ {
+ snooze = snoozeRepeat2;
+ }
+ else if (__repeatSelectedIndex == 3)
+ {
+ snooze = snoozeRepeat3;
+ }
+
+ String fontSizeStr = "";
+ int fontSize = 0;
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+
+ if(fontSizeStr == "medium")
+ {
+ fontSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ fontSize = 81;
+
+ }
+ else if(fontSizeStr == "giant")
+ {
+ fontSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ fontSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ fontSize = 64;
+ }
+ else
+ {
+ fontSize = 44;
+ }
+
+ radioItemHeight += fontSize - 44;
+
+ if (groupIndex == 0)
+ {
+ switch (itemIndex)
+ {
+ case 0:
+ {
+ pItem = new (std::nothrow) DropDownCustomItem();
+ r = pItem->Construct(itemWidth, fontSize);
+
+ if (IsFailed(r))
+ {
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+
+ if ( __showSnoozeDuration == true )
+ {
+ pItem->SetCurState(DROP_DOWN_ITEM_STATE_OPENED);
+ }
+ else
+ {
+ pItem->SetCurState(DROP_DOWN_ITEM_STATE_CLOSED);
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ pItem->SetMainText(mainTextDuration);
+ pItem->SetSubText(snoozeTime);
+ pItem->MakeElements(fontSize);
+ AppLog("end: %d",itemIndex);
+ return pItem;
+ break;
+ }
+ case 1:
+ {
+ radioItem = new (std::nothrow) RadioCustomItem();
+ r = radioItem->Construct(GetClientAreaBounds().width, fontSize);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+
+
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ radioItem->SetText(snoozeDuration1);
+
+
+ if (__durationSelectedIndex == 1)
+ {
+ radioItem->SetSelected(true);
+ }
+ else
+ {
+ radioItem->SetSelected(false);
+ }
+
+
+ radioItem->Make(fontSize);
+ AppLog("end: %d",itemIndex);
+ return radioItem;
+ break;
+ }
+ case 2:
+ {
+ radioItem = new (std::nothrow) RadioCustomItem();
+ r = radioItem->Construct(GetClientAreaBounds().width, fontSize);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+
+ radioItem->SetText(snoozeDuration2);
+
+ if (__durationSelectedIndex == 2)
+ {
+ radioItem->SetSelected(true);
+ }
+ else
+ {
+ radioItem->SetSelected(false);
+ }
+
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ radioItem->Make(fontSize);
+ AppLog("end: %d",itemIndex);
+ return radioItem;
+ break;
+ }
+ case 3:
+ {
+ radioItem = new (std::nothrow) RadioCustomItem();
+ r = radioItem->Construct(GetClientAreaBounds().width, fontSize);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ radioItem->SetText(snoozeDuration3);
+
+ if (__durationSelectedIndex == 3)
+ {
+ radioItem->SetSelected(true);
+ }
+ else
+ {
+ radioItem->SetSelected(false);
+ }
+
+
+ radioItem->Make(fontSize);
+ AppLog("end: %d",itemIndex);
+ return radioItem;
+ break;
+ }
+ }
+ }
+
+ if (groupIndex == 1)
+ {
+ switch (itemIndex)
+ {
+ case 0:
+ {
+ pItem = new (std::nothrow) DropDownCustomItem();
+
+ r = pItem->Construct(itemWidth, fontSize);
+
+ if (IsFailed(r))
+ {
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+
+ if (__showSnoozeRepeat)
+ {
+ pItem->SetCurState(DROP_DOWN_ITEM_STATE_OPENED);
+ }
+ else
+ {
+ pItem->SetCurState(DROP_DOWN_ITEM_STATE_CLOSED);
+ }
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ pItem->SetMainText(mainTextRepeat);
+ pItem->SetSubText(snooze);
+ pItem->MakeElements(fontSize);
+
+ AppLog("end: %d",itemIndex);
+ return pItem;
+ break;
+ }
+
+ case 1:
+ {
+ radioItem = new (std::nothrow) RadioCustomItem();
+
+ r = radioItem->Construct(GetClientAreaBounds().width, fontSize);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ delete pBitmap;
+ return null;
+ }
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ radioItem->SetText(snoozeRepeat1);
+
+
+ if (__repeatSelectedIndex== 1)
+ {
+ radioItem->SetSelected(true);
+ }
+ else
+ {
+ radioItem->SetSelected(false);
+ }
+
+ radioItem->Make(fontSize);
+ return radioItem;
+ break;
+ }
+ case 2:
+ {
+ radioItem = new (std::nothrow) RadioCustomItem();
+ r = radioItem->Construct(GetClientAreaBounds().width, fontSize);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ radioItem->SetText(snoozeRepeat2);
+
+ if (__repeatSelectedIndex == 2)
+ {
+ radioItem->SetSelected(true);
+ }
+ else
+ {
+ radioItem->SetSelected(false);
+ }
+
+
+ radioItem->Make(fontSize);
+ return radioItem;
+ break;
+ }
+ case 3:
+ {
+ radioItem = new (std::nothrow) RadioCustomItem();
+ r = radioItem->Construct(GetClientAreaBounds().width, fontSize);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+ }
+
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(241, 238, 233));
+ radioItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+
+ radioItem->SetText(snoozeRepeat3);
+
+ if (__repeatSelectedIndex== 3)
+ {
+ radioItem->SetSelected(true);
+ }
+ else
+ {
+ radioItem->SetSelected(false);
+ }
+
+ radioItem->Make(fontSize);
+ return radioItem;
+ break;
+ }
+ }
+ }
+
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ pBitmap = null ;
+ }
+
+ return null;
+
+}
+
+bool
+EditSnoozeForm::DeleteGroupItem(int groupIndex, GroupItem* pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+bool
+EditSnoozeForm::DeleteItem(int groupIndex, int itemIndex, ListItemBase* pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+int
+EditSnoozeForm::GetGroupCount(void)
+{
+ return 2;
+}
+
+int
+EditSnoozeForm::GetItemCount(int groupIndex)
+{
+
+ if (groupIndex == 0 && __showSnoozeDuration == false)
+ {
+ return 1 ;
+ }
+ else if (groupIndex == 1 && __showSnoozeRepeat == false)
+ {
+ return 1 ;
+ }
+ else
+ {
+ return 4;
+ }
+
+}
+
+void
+EditSnoozeForm::OnFormBackRequested(Form& source)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+ Integer* durationInt = new (std::nothrow) Integer(__durationName);
+ Integer* repeatInt = new (std::nothrow) Integer(__repeatName);
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(*durationInt);
+ pArgList->Add(*repeatInt);
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(),pArgList );
+ }
+
+ }
+
+}
+
+void
+EditSnoozeForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ AlarmData* pAlarm = null;
+
+ if (pArgs != null)
+ {
+
+ pAlarm = dynamic_cast<AlarmData*>(pArgs->GetAt(0));
+
+ if ( pAlarm == null )
+ {
+ return;
+ }
+
+ __durationName = pAlarm->GetSnoozeDuration();
+
+ if (__durationName == 3)
+ {
+ __durationSelectedIndex = 1;
+ }
+ else if (__durationName == 5)
+ {
+ __durationSelectedIndex = 2;
+ }
+ else if (__durationName == 10)
+ {
+ __durationSelectedIndex = 3;
+ }
+
+ __repeatName = pAlarm->GetSnoozeRepeat();
+
+ if (__repeatName == 3)
+ {
+ __repeatSelectedIndex = 1;
+ }
+ else if (__repeatName == 5)
+ {
+ __repeatSelectedIndex = 2;
+ }
+ else if (__repeatName == 10)
+ {
+ __repeatSelectedIndex = 3;
+ }
+
+ }
+
+ __showSnoozeDuration = true ;
+ __showSnoozeRepeat = true ;
+ __pListView->UpdateList();
+ __pListView->SetItemEnabled(0,-1,false);
+ __pListView->SetItemEnabled(1,-1,false);
+ __pListView->Invalidate(true);
+}
+void
+EditSnoozeForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ __pListView->SetBounds(Rectangle(16,0,GetClientAreaBounds().width - 32, GetClientAreaBounds().height));
+
+ if(__pListView->GetShowState())
+ {
+ __pListView->UpdateList();
+ }
+
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//l
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/**
+ * @file ClkMainFrame.cpp
+ * @brief Used to define MainFrame
+ */
+
+#include <FBase.h>
+#include <FUi.h>
+
+#include "ClkAlarmListForm.h"
+#include "ClkMainFrame.h"
+#include "ClkSceneRegister.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+MainFrame::MainFrame(void)
+{
+}
+
+MainFrame::~MainFrame(void)
+{
+}
+
+result
+MainFrame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ SceneRegister::RegisterAllScenes();
+ SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ return r;
+}
+
+result
+MainFrame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+ return r;
+}
+
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkNotification.cpp
+ * @brief This defines the behaviour of the Notification Class
+ *
+ */
+
+#include <FAppUiApp.h>
+#include <FUiScenes.h>
+
+#include "ClkNotification.h"
+#include "ClkSceneRegister.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+
+Notification::Notification(Form& aForm)
+ : __form(aForm)
+ , __pLabel(null)
+ , __pTimer(null)
+
+{
+ Construct("IDL_NOTIFICATION_PANEL");
+}
+
+Notification::~Notification()
+{
+
+ if (__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ }
+
+}
+
+void
+Notification::SetText(String& message)
+{
+ __pLabel = static_cast<Label*>(GetControl(L"IDC_NOTIFICATION_LABEL"));
+
+ if (__pLabel == null)
+ {
+ return;
+ }
+
+ __pLabel->SetText(message);
+}
+
+void
+Notification::OnTimerExpired(Timer& timer)
+{
+ SetShowState(false);
+ Invalidate(true);
+}
+
+void
+Notification::ShowNotification(void)
+{
+ SceneManager* pSceneManager = null;
+ SceneId sceneId;
+
+ sceneId = pSceneManager->GetInstance()->GetCurrentSceneId();
+
+ if (sceneId == IDSCN_CREATE_ALARM || sceneId == IDSCN_ALARM_LIST)
+ {
+ __pLabel->SetTextConfig(24, LABEL_TEXT_STYLE_NORMAL);
+ }
+
+ if ( __pLabel != null)
+ {
+ AddControl(__pLabel);
+ }
+
+ __form.AddControl(this);
+
+
+
+ SetPosition(0,__form.GetClientAreaBounds().height - GetHeight());
+
+ __pTimer = new (std::nothrow) Timer();
+
+ if (__pTimer != null)
+ {
+ __pTimer->Construct(*this);
+ __pTimer->Start(2000);
+ }
+
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/**
+ * @file ClkNumberSelectorControl.cpp
+ * @brief This defines the behaviour of the NumberSelectorControl Class
+ *
+ */
+
+#include <FAppUiApp.h>
+#include <FApp.h>
+#include <FBase.h>
+#include <FUi.h>
+
+#include "ClkNumberSelectorControl.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+
+INumberSelectorEventListener::INumberSelectorEventListener(void)
+{
+
+}
+
+INumberSelectorEventListener::~INumberSelectorEventListener(void)
+{
+
+}
+
+NumberSelectorControl::NumberSelectorControl(ScrollPanel& form)
+ : __anchorPosition(0, 0)
+ , __noLimit(0)
+ , __pAnchorLabel(null)
+ , __parentForm(form)
+ , __pListener(null)
+ , __pNewScroll(null)
+ , __selectedValue(0)
+{
+ __actionIdOffset = Tizen::Base::Utility::Math::Rand()%10000;
+}
+
+NumberSelectorControl::~NumberSelectorControl(void)
+{
+
+}
+
+result NumberSelectorControl::Initialize(int limit, int startIndex)
+{
+ result r = E_SUCCESS;
+ ScrollPanel *pScroll = null;
+ Button *pSampleButton = null;
+ Button *pNewButton = null;
+ Bitmap *pBgBitmap = null;
+ Font selectedFont;
+ Font normalFont;
+ Color normalColor(255,255,255, 170);
+ Color pressedColor(255,255,255, 255);
+ Color selectedColor(255,255,255, 255);
+ int fontSize = 48;
+
+ __noLimit = limit;
+
+ r = Construct(L"IDL_NUMBER_SELECTOR");
+
+ __parentForm.AddControl(this);
+ __pAnchorLabel = dynamic_cast<Label*>(GetControl(L"IDC_ANCHOR"));
+
+ if (__pAnchorLabel == null)
+ {
+ return E_FAILURE;
+ }
+
+ __anchorPosition = __pAnchorLabel->GetPosition();
+ pScroll = dynamic_cast<ScrollPanel*>(GetControl(L"IDC_SCROLLPANEL1"));
+
+ if (pScroll == null)
+ {
+ return E_FAILURE;
+ }
+
+ __pNewScroll = new ScrollPanel();
+ __pNewScroll->Construct(pScroll->GetBounds(), SCROLL_PANEL_SCROLL_DIRECTION_HORIZONTAL, false);
+ __pNewScroll->SetScrollBarVisible(false);
+ AddControl(__pNewScroll);
+
+ pSampleButton = dynamic_cast<Button*>(pScroll->GetControl(L"IDC_BUTTON2"));
+
+ if (pSampleButton == null)
+ {
+ return E_FAILURE;
+ }
+
+ pBgBitmap = AppResource::GetInstance()->GetBitmapN(L"EditBackground.png");
+ __pNewScroll->SetClientAreaWidth(__noLimit * pSampleButton->GetWidth());
+
+
+ selectedFont.Construct(FONT_STYLE_BOLD, fontSize);
+ normalFont.Construct(FONT_STYLE_PLAIN, fontSize);
+
+ int x_Position = 0;
+ for (int count = startIndex; count <= __noLimit; count++)
+ {
+ String text;
+
+
+ if (count < 10)
+ {
+ text.Append(0);
+ }
+
+ text.Append(count);
+ AppLogDebug("Text : %ls", text.GetPointer());
+ pNewButton = new Button();
+ pNewButton->Construct(Rectangle(x_Position * pSampleButton->GetWidth(), pSampleButton->GetY(), pSampleButton->GetWidth(), pSampleButton->GetHeight()), text);
+ x_Position++;
+ pNewButton->SetNormalBackgroundBitmap(*pBgBitmap);
+ pNewButton->SetPressedBackgroundBitmap(*pBgBitmap);
+ pNewButton->SetActionId(__actionIdOffset + count);
+ pNewButton->AddActionEventListener(*this);
+ String buttonName = L"Button";
+ buttonName.Append(__actionIdOffset);
+ buttonName.Append(count);
+ pNewButton->SetName(buttonName);
+
+ if (count == __selectedValue)
+ {
+ pNewButton->SetTextColor(selectedColor);
+ }
+ else
+ {
+ pNewButton->SetTextColor(normalColor);
+ }
+
+ pNewButton->SetPressedTextColor(pressedColor);
+
+ __pNewScroll->AddControl(pNewButton);
+ }
+
+ pScroll->SetShowState(false);
+ return r;
+}
+
+void NumberSelectorControl::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ int index = actionId - __actionIdOffset;
+ __SetNumber(index);
+
+ if (__pListener != null)
+ {
+ __pListener->OnNumberSelected(*this, index);
+ }
+
+}
+
+INumberSelectorEventListener*
+NumberSelectorControl::GetEventListner(void)
+{
+ return __pListener;
+}
+
+void
+NumberSelectorControl::SetEventListner(INumberSelectorEventListener* listner)
+{
+ __pListener = listner;
+}
+
+int
+NumberSelectorControl::GetNumber(void)
+{
+ return __selectedValue;
+}
+
+void
+NumberSelectorControl::__SetNumber(int value)
+{
+ Color normalColor(255,255,255, 170);
+ Color pressedColor(255,255,255, 255);
+ Color selectedColor(255,255,255, 255);
+ Button* pOldSelected = null;
+ Button* pNewSelected = null;
+ Font selectedFont;
+ Font normalFont;
+ String buttonName = L"Button";
+ int fontSize = 48;
+
+ selectedFont.Construct(FONT_STYLE_BOLD, fontSize);
+ normalFont.Construct(FONT_STYLE_PLAIN, fontSize);
+
+ buttonName.Append(__actionIdOffset);
+ buttonName.Append(__selectedValue);
+ AppLogDebug("OldName: %ls", buttonName.GetPointer());
+ pOldSelected = dynamic_cast<Button*>(GetControl(buttonName, true));
+
+ if (pOldSelected != null)
+ {
+ pOldSelected->SetTextColor(normalColor);
+ pOldSelected->Invalidate(false);
+ }
+
+ __selectedValue = value;
+ buttonName = L"Button";
+ buttonName.Append(__actionIdOffset);
+ buttonName.Append(__selectedValue);
+ AppLogDebug("NewName: %ls", buttonName.GetPointer());
+ pNewSelected = dynamic_cast<Button*>(GetControl(buttonName, true));
+
+ if (pNewSelected != null)
+ {
+ pNewSelected->SetTextColor(selectedColor);
+ pNewSelected->Invalidate(false);
+ }
+
+}
+
+
+void
+NumberSelectorControl::SetNumber(int value)
+{
+ __SetNumber(value);
+
+ if (__pNewScroll != null)
+ {
+ __pNewScroll->SetScrollPosition(__pNewScroll->GetHeight() * __selectedValue, true);
+ Invalidate(true);
+ }
+
+}
+
+Point
+NumberSelectorControl::GetAnchorPosition(void)
+{
+ return __anchorPosition;
+}
+
+void
+NumberSelectorControl::SetAnchorPosition(Tizen::Graphics::Point pos)
+{
+ __anchorPosition = pos;
+
+ if (__pAnchorLabel != null)
+ {
+ __pAnchorLabel->SetPosition(__anchorPosition);
+ }
+
+ SetBounds(GetX(), __anchorPosition.y, GetWidth(), GetHeight());
+}
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file RadioCustomItem.cpp
+ * @brief The RadioCustomItem
+ */
+
+#include <FApp.h>
+#include <FUiControls.h>
+
+#include "ClkRadioCustomItem.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 500;
+static const int IDA_FORMAT_RADIO_BUTTON = 501;
+
+RadioCustomItem::RadioCustomItem(void)
+: __isSelected(false),
+ __text("")
+
+{
+
+}
+
+RadioCustomItem::~RadioCustomItem(void)
+{
+
+}
+
+result
+RadioCustomItem::Construct(int width, int fontsize)
+{
+ result r = E_FAILURE;
+
+ __width = width;
+ __height = 112 + fontsize - 44;
+ const Dimension dim(width, __height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+
+ return r;
+}
+
+void
+RadioCustomItem::SetText(const String& text)
+{
+ __text = text;
+}
+
+const String
+RadioCustomItem::GetText(void)
+{
+ return __text;
+}
+
+result
+RadioCustomItem::Make(int fontSize)
+{
+ result r = E_FAILURE;
+ Color textColor = Color(70, 70, 70);
+ Color pressedTextColor = Color(249, 249, 249);
+ Bitmap* pBitmap = null;
+ int xMargin = 26 ;
+ int yMargin = 5;
+ int textSize = fontSize ;
+ int gap = 10 ;
+
+
+ if (__isSelected == true)
+ {
+ pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_RADIO_PRESS2);
+ }
+ else
+ {
+ pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_RADIO_PRESS1);
+ }
+
+ AddElement(Rectangle(xMargin, (__height-pBitmap->GetHeight())/2, pBitmap->GetWidth(), pBitmap->GetHeight()), IDA_FORMAT_RADIO_BUTTON, *pBitmap, null);
+ AppLogDebug("RadioCustomItem::the text is %ls",__text.GetPointer());
+
+ AddElement(Rectangle(xMargin + pBitmap->GetWidth() + gap, yMargin , __width - xMargin - gap - pBitmap->GetWidth(), __height), IDA_FORMAT_STRING, __text, textSize , textColor, pressedTextColor, pressedTextColor, true);
+ //SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
+
+ delete pBitmap;
+
+ return r;
+}
+
+void
+RadioCustomItem::SetSelected(bool selectedValue)
+{
+ __isSelected = selectedValue;
+}
+
+const bool
+RadioCustomItem::GetSelected(void)
+{
+ return __isSelected;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkFormFactory.cpp
+ * @brief FormFactory class helps in creating appropriate forms with a specified form ID.
+ *
+ */
+
+#include <FBase.h>
+#include <FSystem.h>
+
+
+#include "ClkAlarmListForm.h"
+#include "ClkAlarmDeleteListForm.h"
+#include "ClkAlarmEditorForm.h"
+#include "ClkAlarmRingingForm.h"
+#include "ClkCityListForm.h"
+#include "ClkClockApp.h"
+#include "ClkAlarmRingingLockForm.h"
+#include "ClkEditSnoozeForm.h"
+#include "ClkSceneFactory.h"
+#include "ClkStopWatchForm.h"
+#include "ClkTimerForm.h"
+#include "ClkTimerRingingForm.h"
+#include "ClkWorldClockDeleteListForm.h"
+#include "ClkWorldClockListForm.h"
+#include "ClkTimerRingingLockForm.h"
+#include "ClkSceneRegister.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::System;
+
+const wchar_t* IDL_FORM_ALARM_LIST = L"FormAlarmList";
+const wchar_t* IDL_FORM_ALARM_DELETE_LIST = L"FormAlarmDeleteList";
+const wchar_t* IDL_FORM_CREATE_ALARM = L"FormCreateAlarm";
+const wchar_t* IDL_FORM_CITY_LIST = L"FormCityList";
+const wchar_t* IDL_FORM_EDIT_SNOOZE = L"FormEditSnooze";
+const wchar_t* IDL_FORM_ALARM_RINGING = L"FormAlarmRinging";
+const wchar_t* IDL_FORM_ALARM_RINGING_LOCK = L"FormAlarmRingingLock";
+const wchar_t* IDL_FORM_WORLD_CLOCK_LIST = L"FormWorldClockList";
+const wchar_t* IDL_FORM_WORLD_CLOCK_DELETE_LIST = L"FormWorldClockdeleteList";
+const wchar_t* IDL_FORM_ADD_WORLD_CLOCK = L"FormAddWorldClock";
+const wchar_t* IDL_FORM_STOP_WATCH = L"FormStopWatch";
+const wchar_t* IDL_FORM_TIMER_VIEW = L"FormTimerView";
+const wchar_t* IDL_FORM_TIMER_RINGING = L"FormTimerRinging";
+const wchar_t* IDL_FORM_WORLD_CLOCK_REORDER = L"FormWorlClockListReorder";
+const wchar_t* IDL_FORM_TIMER_RINGING_LOCK = L"FormTimerRingingLock";
+
+
+SceneFactory::SceneFactory(void)
+{
+
+}
+
+SceneFactory::~SceneFactory(void)
+{
+
+}
+
+Form*
+SceneFactory::CreateFormN(const String& formId, const SceneId& sceneId)
+{
+ Form* pNewForm = null;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (formId == IDL_FORM_ALARM_LIST)
+ {
+ AlarmListForm* pForm = new (std::nothrow) AlarmListForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pSceneManager->AddSceneEventListener(sceneId, *pForm);
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_ALARM_DELETE_LIST)
+ {
+ AlarmDeleteListForm* pForm = new (std::nothrow) AlarmDeleteListForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_STOP_WATCH)
+ {
+ StopWatchForm* pForm = new (std::nothrow) StopWatchForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_CITY_LIST)
+ {
+ CityListForm* pForm = new (std::nothrow) CityListForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_EDIT_SNOOZE)
+ {
+ EditSnoozeForm* pForm = new (std::nothrow) EditSnoozeForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_WORLD_CLOCK_LIST)
+ {
+ WorldClockListForm* pForm = new (std::nothrow) WorldClockListForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_WORLD_CLOCK_DELETE_LIST)
+ {
+ WorldClockDeleteListForm* pForm = new (std::nothrow) WorldClockDeleteListForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_ALARM_RINGING)
+ {
+ AlarmRingingForm* pForm = new (std::nothrow) AlarmRingingForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_ALARM_RINGING_LOCK)
+ {
+ AlarmRingingLockForm* pForm = new (std::nothrow) AlarmRingingLockForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_CREATE_ALARM)
+ {
+ AlarmEditorForm* pForm = new (std::nothrow) AlarmEditorForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_TIMER_RINGING)
+ {
+ TimerRingingForm* pForm = new (std::nothrow) TimerRingingForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_TIMER_VIEW)
+ {
+ TimerForm* pForm = new (std::nothrow) TimerForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ else if (formId == IDL_FORM_TIMER_RINGING_LOCK)
+ {
+ TimerRingingLockForm* pForm = new (std::nothrow) TimerRingingLockForm();
+
+ if (pForm == null)
+ {
+ return null;
+ }
+
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+
+ pSceneManager->AddSceneEventListener(sceneId, *this);
+ return pNewForm;
+}
+
+void
+SceneFactory::SetFontSize(Container& container, int font)
+{
+
+ IList* pControls = container.GetControls();
+ if(pControls == null)
+ {
+ return;
+ }
+ for(int count = 0; count < pControls->GetCount(); count++)
+ {
+ //Check if the control is again an container
+ Container *pContainer = dynamic_cast<Container*>(pControls->GetAt(count));
+ if(pContainer != null)
+ {
+ SetFontSize(*pContainer, font);
+ }
+ /* else //Check if it is a button
+ {
+ Button *pButton = dynamic_cast<Button*>(pControls->GetAt(count));
+ if(pButton != null)
+ {
+ pButton->SetTextSize(font);
+ }
+ else //Check if a label
+ {
+ Label *pLabel = dynamic_cast<Label*>(pControls->GetAt(count));
+ if(pLabel != null)
+ {
+ pLabel->SetTextConfig(font, pLabel->GetTextStyle());
+ }*/
+ else //Check if a EditField
+ {
+ EditField *pEditField = dynamic_cast<EditField*>(pControls->GetAt(count));
+ if(pEditField != null)
+ {
+ pEditField->SetTextSize(font);
+ }
+ else //Check if a EditArea
+ {
+ EditArea *pEditArea = dynamic_cast<EditArea*>(pControls->GetAt(count));
+ if(pEditArea != null)
+ {
+ pEditArea->SetTextSize(font);
+ }
+ else //Check if a ExpandableEditArea
+ {
+ ExpandableEditArea *pExpandableEditArea = dynamic_cast<ExpandableEditArea*>(pControls->GetAt(count));
+ if(pExpandableEditArea != null)
+ {
+ pExpandableEditArea->SetTextSize(font);
+ }
+ else //Check if a TextBox
+ {
+ TextBox *pTextBox = dynamic_cast<TextBox*>(pControls->GetAt(count));
+ if(pTextBox != null)
+ {
+ pTextBox->SetTextSize(font);
+ }
+/* else //Check if a SearchBar
+ {
+ SearchBar *pSearchBar = dynamic_cast<SearchBar*>(pControls->GetAt(count));
+ if(pSearchBar != null)
+ {
+ pSearchBar->SetSearchFieldTextSize(font);
+ }
+ else //Check if a List
+ {
+
+ }
+ }*/
+ }
+ }
+ }
+ }
+ }
+}
+
+void
+SceneFactory::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+ AppLog("FormFactory::OnSceneActivatedN");
+ Form *pForm = ClockApp::GetInstance()->GetFrameAt(0)->GetCurrentForm();
+ if(pForm != null)
+ {
+ String fontSizeStr = "";
+ int fontSize = 0;
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+ AppLog("the font value is %S",fontSizeStr.GetPointer());
+
+ if(fontSizeStr == "medium")
+ {
+ fontSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ fontSize = 81;
+ }
+ else if(fontSizeStr == "giant")
+ {
+ fontSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ fontSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ fontSize = 64;
+ }
+ else
+ {
+ fontSize = 44;
+ }
+ AppLog("Font sizeStr: %ls, fontsize:%d", fontSizeStr.GetPointer(), fontSize);
+
+ SetFontSize(*pForm, fontSize);
+ pForm->Invalidate(true);
+ }
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkSceneRegister.cpp
+ * @brief This header file contains the declarations of the %SceneRegister class.
+ *
+ */
+
+#include <FUiScenes.h>
+
+#include "ClkSceneRegister.h"
+#include "ClkSceneFactory.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Ui::Scenes;
+
+const wchar_t* IDSCN_ALARM_LIST = L"ScnAlarmList";
+const wchar_t* IDSCN_ALARM_DELETE_LIST = L"ScnAlarmDeleteList";
+const wchar_t* IDSCN_CREATE_ALARM = L"ScnCreateAlarm";
+const wchar_t* IDSCN_CITY_LIST = L"ScnCityList";
+const wchar_t* IDSCN_EDIT_SNOOZE = L"ScnEditSnooze";
+const wchar_t* IDSCN_ALARM_RINGING = L"ScnAlarmRinging";
+const wchar_t* IDSCN_ALARM_RINGING_LOCK = L"ScnAlarmRingingLock";
+const wchar_t* IDSCN_WORLD_CLOCK_LIST = L"ScnWorldClockList";
+const wchar_t* IDSCN_WORLD_CLOCK_DELETE_LIST = L"ScnWorldClockDeleteList";
+const wchar_t* IDSCN_STOP_WATCH = L"ScnStopWatch";
+const wchar_t* IDSCN_TIMER_VIEW = L"TimerView";
+const wchar_t* IDSCN_TIMER_RINGING = L"ScnTimerRinging";
+const wchar_t* IDSCN_WORLD_CLOCK_REORDER = L"WorldClockListReorder";
+const wchar_t* IDSCN_TIMER_RINGING_LOCK = L"ScnTimerRingingLock";
+
+SceneRegister::SceneRegister(void)
+{
+
+}
+
+SceneRegister::~SceneRegister(void)
+{
+
+}
+
+void
+SceneRegister::RegisterAllScenes(void)
+{
+ static const wchar_t* PANEL_BLANK = L"";
+ static SceneFactory sceneFactory;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager == null)
+ {
+ return;
+ }
+
+ pSceneManager->RegisterFormFactory(sceneFactory);
+
+ pSceneManager->RegisterScene(IDSCN_ALARM_LIST, IDL_FORM_ALARM_LIST, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_ALARM_DELETE_LIST, IDL_FORM_ALARM_DELETE_LIST, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_CREATE_ALARM, IDL_FORM_CREATE_ALARM, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_CITY_LIST, IDL_FORM_CITY_LIST, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_EDIT_SNOOZE, IDL_FORM_EDIT_SNOOZE, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_ALARM_RINGING, IDL_FORM_ALARM_RINGING, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_ALARM_RINGING_LOCK, IDL_FORM_ALARM_RINGING_LOCK, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_WORLD_CLOCK_LIST, IDL_FORM_WORLD_CLOCK_LIST, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_WORLD_CLOCK_DELETE_LIST, IDL_FORM_WORLD_CLOCK_DELETE_LIST, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_STOP_WATCH, IDL_FORM_STOP_WATCH, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_TIMER_VIEW, IDL_FORM_TIMER_VIEW, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_TIMER_RINGING, IDL_FORM_TIMER_RINGING, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_WORLD_CLOCK_REORDER,IDL_FORM_WORLD_CLOCK_REORDER, PANEL_BLANK);
+ pSceneManager->RegisterScene(IDSCN_TIMER_RINGING_LOCK, IDL_FORM_TIMER_RINGING_LOCK, PANEL_BLANK);
+}
+
+result
+SceneRegister::RegisterNewMainView(const String& sceneID, const String& FormID)
+{
+ result r = E_SUCCESS;
+ static const wchar_t* PANEL_BLANK = L"";
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager == null)
+ {
+ return E_FAILURE;
+ }
+
+ r = pSceneManager->RegisterScene(sceneID, FormID, PANEL_BLANK);
+
+ if (GetLastResult() != E_SUCCESS)
+ {
+ AppLogDebug("fail Not registered");
+ }
+ else
+ {
+ AppLogDebug("success registered");
+ }
+
+ return r;
+}
+
+result
+SceneRegister::DestroyAndUnRegisterScene(const String& sceneID)
+{
+ result r = E_SUCCESS;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager == null)
+ {
+ return E_FAILURE;
+ }
+
+ pSceneManager->UnregisterScene(sceneID);
+ pSceneManager->DestroyScene(sceneID);
+ return r;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file: ClkSortByPopUp.cpp
+ * @brief This CPP file contains the declarations of the SortByPopUp
+ */
+
+#include <FAppUiApp.h>
+#include <FUiScenes.h>
+
+#include "ClkCommonLib.h"
+#include "ClkSortByPopUp.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int ID_FORMAT_RECENT = 501;
+static const int ID_FORMAT_TIME = 502 ;
+static const int ID_CANCEL_BUTTON = 504;
+
+
+ISortByEventListener::ISortByEventListener(void)
+{
+
+}
+
+ISortByEventListener::~ISortByEventListener(void)
+{
+
+}
+
+SortByPopUp::SortByPopUp(void)
+:__pList(null),
+ __pShareList(null)
+{
+
+}
+
+SortByPopUp::~SortByPopUp(void)
+{
+ AppLog("SortByPopUp::~SortByPopUp");
+}
+
+bool
+SortByPopUp::Initialize(void)
+{
+ Button* pCancelButton = null;
+ Popup::Construct(L"IDL_SORT_BY");
+
+ __pList = static_cast<ListView*>(GetControl(L"IDC_LISTVIEW1"));
+
+ if (__pList == null)
+ {
+ return false;
+ }
+
+ __pList->SetItemProvider(*this);
+ __pList->AddListViewItemEventListener(*this);
+ __pList->SetItemChecked(0, true);
+
+ pCancelButton = static_cast< Button* >(GetControl(L"IDC_BUTTON1", true));
+ if (pCancelButton != null)
+ {
+ pCancelButton->AddActionEventListener(*this);
+ pCancelButton->SetActionId(ID_CANCEL_BUTTON);
+ }
+
+ SetPropagatedKeyEventListener(this);
+ return true;
+}
+
+result
+SortByPopUp::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+ return r;
+}
+
+void
+SortByPopUp::OnActionPerformed(const Control& source, int actionId)
+{
+ switch (actionId)
+ {
+ case ID_CANCEL_BUTTON:
+ {
+ Popup::SetShowState(false);
+ Popup::Show();
+ }
+ break;
+ default:
+ break;
+ }
+ return;
+}
+
+void
+SortByPopUp::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ switch (index)
+ {
+ case 0:
+ {
+ if (__pList != NULL )
+ {
+ __pList->SetItemChecked(0,true);
+ __pList->SetItemChecked(1,false);
+ }
+
+ if(__pListener != NULL)
+ {
+ __pListener->OnSortByPopUpItemSelected(SORTBY_RECENT);
+ }
+ }
+ break;
+ case 1:
+ {
+ if (__pList != NULL )
+ {
+ __pList->SetItemChecked(0,false);
+ __pList->SetItemChecked(1,true);
+ }
+
+ if( __pListener != NULL)
+ {
+ __pListener->OnSortByPopUpItemSelected(SORTBY_TIME);
+ }
+
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ if (__pList != NULL )
+ {
+ __pList->Invalidate(true);
+ }
+}
+
+ListItemBase*
+SortByPopUp::CreateItem(int index, int itemWidth)
+{
+ result r = E_FAILURE;
+ ListAnnexStyle style = LIST_ANNEX_STYLE_RADIO;
+ int listItemWidth = 112;
+
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+ r = pItem->Construct(Dimension(GetClientAreaBounds().width, listItemWidth), style);
+ //pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
+
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color(255, 255, 255));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, Color(86, 135, 193));
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_HIGHLIGHTED, Color(86, 135, 193));
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Create Item Failed with error %s", GetErrorMessage(r));
+ delete pItem;
+ pItem = null ;
+ return null;
+ }
+
+ switch (index)
+ {
+ case 0:
+ {
+ pItem->AddElement(Rectangle(0, 0, GetClientAreaBounds().width, listItemWidth), ID_FORMAT_RECENT,CommonUtil::GetString(L"IDS_COM_BUTTON_RECENT"), true);
+ }
+ break;
+
+ case 1:
+ {
+ pItem->AddElement(Rectangle(0, 0, GetClientAreaBounds().width, listItemWidth), ID_FORMAT_TIME,CommonUtil::GetString(L"IDS_WCL_TAB_TIME"), true);
+ }
+ break;
+
+ default:
+ break;
+ }
+ return pItem;
+}
+
+bool
+SortByPopUp::DeleteItem(int index, ListItemBase* pItem, int itemWidth)
+{
+ return true;
+}
+
+int
+SortByPopUp::GetItemCount(void)
+{
+ return 2;
+}
+
+ISortByEventListener*
+SortByPopUp::GetEventListner(void)
+{
+ return __pListener;
+}
+
+void
+SortByPopUp::SetEventListner(ISortByEventListener* listner)
+{
+ __pListener = listner;
+}
+
+void
+SortByPopUp::SetDstIndex(int index)
+{
+ __pList->SetItemChecked(index,true);
+
+ if ( index == 0)
+ {
+ __pList->SetItemChecked(1,false);
+ }
+ else if (index == 1)
+ {
+ __pList->SetItemChecked(0,false);
+ }
+ __pList->Invalidate(true);
+}
+
+bool
+SortByPopUp::OnKeyReleased (Control &source, const KeyEventInfo &keyEventInfo)
+{
+ if (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
+ {
+ Popup::SetShowState(false);
+ Popup::Show();
+ }
+
+ return false;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkStopWatchForm.cpp
+ * @brief Describes how the StopWatch works.
+ */
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkCommonLib.h"
+#include "ClkCustomColors.h"
+#include "ClkDataServiceProvider.h"
+#include "ClkSceneRegister.h"
+#include "ClkStopWatchForm.h"
+#include "ClkStopWatchPresentationModel.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Media;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int IDA_BTN_START = 100;
+static const int IDA_BTN_LAP = 101;
+static const int IDA_BTN_STOP = 102;
+static const int IDA_BTN_RESET = 103;
+static const int IDA_BTN_RESTART = 104;
+static const int STOPWATCH_START = 105;
+static const int STOPWATCH_STOP = 106;
+static const int STOPWATCH_RESTART = 107;
+static const int STOPWATCH_RESET = 108;
+static const int IDA_TABBAR_ALARM = 200;
+static const int IDA_TABBAR_WORLDCLOCK= 201;
+static const int IDA_TABBAR_STOPWATCH = 202;
+static const int IDA_TABBAR_TIMER = 203;
+static const int ID_FORMAT_RECORD = 204;
+static const int ID_FORMAT_LAPNO = 205;
+static const int ID_FORMAT_LAPTIME = 206;
+static const int ID_FORMAT_LAPTIME_MILLISECONDS = 207;
+static const int INTERVAL = 10;
+
+StopWatchForm::StopWatchForm(void)
+: __checkFlag(false)
+, __lapTimeText("")
+, __milliSecondsField("00")
+, __pBtnLap(null)
+, __pBtnReset(null)
+, __pBtnRestart(null)
+, __pBtnStart(null)
+, __pBtnStop(null)
+, __pDisplayLabel(null)
+, __pEighthDigit(null)
+, __pFifthDigit(null)
+, __pFirstDigit(null)
+, __pFourthDigit(null)
+, __pLapTimeTextList(null)
+, __pList(null)
+, __pMillisecondLabel(null)
+, __pPanel(null)
+, __pSecondDigit(null)
+, __pSeventhDigit(null)
+, __pSixthDigit(null)
+, __pThirdDigit(null)
+, __pTimer(null)
+, __pWatchTextList(null)
+, __restartTick(0)
+, __startTick(0)
+, __status(0)
+, __stopTick(0)
+, __temp(0)
+, __timerResetFlag(0)
+, __timerResetKey("timerReset")
+, __tmpTick(0)
+, __tmpTicker(0)
+, __watchText("00:00:00.")
+{
+
+}
+
+StopWatchForm::~StopWatchForm(void)
+{
+ delete __pWatchTextList;
+ __pWatchTextList = null;
+
+ delete __pLapTimeTextList;
+ __pLapTimeTextList = null;
+
+}
+
+bool
+StopWatchForm::Initialize(void)
+{
+ Construct(L"IDL_STOP_WATCH");
+
+ HeaderItem alarm;
+ HeaderItem worldClock;
+ HeaderItem stopWatch;
+ HeaderItem timer;
+ Header* pHeader = GetHeader();
+ Bitmap* pIconBitmap = null;
+ Bitmap* pPressedIconBitmap = null;
+ Bitmap* pHighlightedIconBitmap = null;
+ String timeSet;
+ String startTick ;
+ String tempTick;
+ String restartTick ;
+ String stopTick ;
+ String tempTicker;
+ int checkFlag = 0;
+ StopWatchPresentationModel* pStopWatchPresentationModel = null;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ //Panel* pPanel = null;
+
+ // Setup back event listener
+ SetFormBackEventListener(this);
+ AddOrientationEventListener(*this);
+
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_STOP_WATCH, *this);
+
+ if (pHeader != null)
+ {
+ pHeader->SetStyle(HEADER_STYLE_TAB);
+ alarm.Construct(IDA_TABBAR_ALARM);
+ //alarm.SetText(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL )
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+
+ pHeader->AddItem(alarm);
+
+ if ( pIconBitmap != NULL )
+ {
+ delete pIconBitmap;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ worldClock.Construct(IDA_TABBAR_WORLDCLOCK);
+ //worldClock.SetText(CommonUtil::GetString(L"IDS_COM_BODY_WORLD_CLOCK"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+ pHeader->AddItem(worldClock);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ stopWatch.Construct(IDA_TABBAR_STOPWATCH);
+ //stopWatch.SetText(CommonUtil::GetString(L"IDS_COM_BODY_STOPWATCH"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL )
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_NORMAL, pHighlightedIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_PRESSED, pHighlightedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(stopWatch);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ timer.Construct(IDA_TABBAR_TIMER);
+ //timer.SetText(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL )
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(timer);
+
+ if ( pIconBitmap != NULL )
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ pHeader->AddActionEventListener(*this);
+ pHeader->SetTabEditModeEnabled(false);
+ }
+
+ GetFooter()->SetShowState(false);
+ __pPanel = static_cast< Panel* >(GetControl("IDC_PANEL1"));
+ if (__pPanel != NULL)
+ {
+ SetControlAlwaysAtBottom(*__pPanel, true);
+ }
+
+ __pList = static_cast< ListView* >(GetControl("IDC_LISTVIEW1"));
+ if (__pList != NULL)
+ {
+ __pList->SetItemProvider(*this);
+ }
+
+ __pWatchTextList = new (std::nothrow) ArrayList();
+ __pWatchTextList->Construct();
+
+ __pLapTimeTextList= new (std::nothrow) ArrayList();
+ __pLapTimeTextList->Construct();
+
+ // Create Timer
+ __pTimer = new (std::nothrow) Timer();
+ __pTimer->Construct(*this);
+
+
+ __pFirstDigit = static_cast< Label* >(GetControl("IDC_LABEL1"));
+ __pSecondDigit = static_cast< Label* >(GetControl("IDC_LABEL2"));
+ __pThirdDigit = static_cast< Label* >(GetControl("IDC_LABEL4"));
+ __pFourthDigit = static_cast< Label* >(GetControl("IDC_LABEL5"));
+ __pFifthDigit = static_cast< Label* >(GetControl("IDC_LABEL7"));
+ __pSixthDigit = static_cast< Label* >(GetControl("IDC_LABEL8"));
+ __pSeventhDigit = static_cast< Label* >(GetControl("IDC_LABEL9"));
+ __pEighthDigit = static_cast< Label* >(GetControl("IDC_LABEL10"));
+
+
+ // Create Buttons
+ CreateButtons();
+
+ pStopWatchPresentationModel = StopWatchPresentationModel::GetInstance();
+ pStopWatchPresentationModel->GetStopWatchValue(__status, startTick, tempTick, restartTick, stopTick, __milliSecondsField, __watchText);
+
+ if (__status != 0)
+ {
+ LongLong::Parse(startTick, __startTick);
+ LongLong::Parse(tempTick, __tmpTick);
+ LongLong::Parse(restartTick, __restartTick);
+ LongLong::Parse(stopTick, __stopTick);
+
+ pStopWatchPresentationModel->GetStopWatchLaps(*__pWatchTextList, *__pLapTimeTextList, tempTicker, checkFlag);
+ LongLong::Parse(tempTicker, __tmpTicker);
+
+ if(checkFlag == 0)
+ {
+ __checkFlag = false;
+ }
+ else
+ {
+ __checkFlag = true;
+ }
+
+ SetButtonState();
+
+ __pTimer->Start(INTERVAL);
+
+ if(__pList != null)
+ {
+ __pList->UpdateList();
+ }
+
+ if (__status == STOPWATCH_START || __status == STOPWATCH_RESTART)
+ {
+ PowerManager::KeepScreenOnState(true, false);
+ }
+ else
+ {
+ PowerManager::KeepScreenOnState(false, true);
+ }
+
+ if (__status == STOPWATCH_STOP)
+ {
+ DisplayTimer();
+ }
+ }
+
+ UiApp::GetInstance()->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ UiApp::GetInstance()->GetAppRegistry()->Save();
+
+ return true;
+}
+
+result
+StopWatchForm::OnInitializing(void)
+{
+ return E_SUCCESS;
+}
+
+result
+StopWatchForm::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+ String timeSet;
+ String startTick;
+ String tempTick;
+ String restartTick ;
+ String stopTick;
+ String tempTicker;
+ int checkFlag = 0;
+ StopWatchPresentationModel* pStopWatchPresentationModel = null;
+
+ UiApp::GetInstance()->GetAppRegistry()->Get(__timerResetKey, __timerResetFlag);
+
+ if (__timerResetFlag != 1)
+ {
+ AppLog("__timerResetFlag reset");
+ __status = STOPWATCH_RESET;
+ __startTick = 0;
+ __tmpTick = 0;
+ __restartTick = 0;
+ __stopTick = 0;
+ __checkFlag = false;
+ __tmpTicker = 0;
+
+ __milliSecondsField.Replace(__milliSecondsField,"00");
+ __watchText.Replace(__watchText, "00:00:00.");
+
+ if (__pWatchTextList != null && __pLapTimeTextList != null)
+ {
+ __pWatchTextList->RemoveAll(true);
+ __pLapTimeTextList->RemoveAll(true);
+ }
+ }
+
+ startTick.Append(__startTick);
+ tempTick.Append(__tmpTick);
+ restartTick.Append(__restartTick);
+ stopTick.Append(__stopTick);
+ tempTicker.Append(__tmpTicker);
+
+
+ if(__checkFlag == true)
+ {
+ checkFlag = 1;
+ }
+ else
+ {
+ checkFlag = 0;
+ }
+
+ pStopWatchPresentationModel = StopWatchPresentationModel::GetInstance();
+ pStopWatchPresentationModel->SetStopWatchValue(__status, startTick, tempTick, restartTick, stopTick, __milliSecondsField, __watchText);
+
+ if (__pWatchTextList != null && __pLapTimeTextList != null)
+ {
+ pStopWatchPresentationModel->SetStopWatchLaps(*__pWatchTextList, *__pLapTimeTextList, tempTicker, checkFlag);
+ }
+
+ if (__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }
+
+ return r;
+}
+
+void
+StopWatchForm::CreateButtons(void)
+{
+ String upperStr;
+
+ // Create Start Button
+
+ __pBtnStart = static_cast< Button* >(GetControl("IDC_BUTTON_START"));
+
+ if (__pBtnStart == NULL)
+ {
+ return;
+ }
+
+ __pBtnStart->SetActionId(IDA_BTN_START);
+ __pBtnStart->AddActionEventListener(*this);
+
+ CommonUtil::GetString("IDS_TMR_SK_START").ToUpper(upperStr);
+ __pBtnStart->SetText(upperStr);
+
+ // Create Record Button
+ __pBtnLap = static_cast< Button* >(GetControl("IDC_BUTTON_LAP"));
+
+ if (__pBtnLap == NULL)
+ {
+ return;
+ }
+
+ __pBtnLap->SetActionId(IDA_BTN_LAP);
+ __pBtnLap->AddActionEventListener(*this);
+
+ CommonUtil::GetString("IDS_SWT_BUTTON_LAP").ToUpper(upperStr);
+ __pBtnLap->SetText(upperStr);
+
+ // Create Stop Button
+ __pBtnStop = static_cast< Button* >(GetControl("IDC_BUTTON_STOP"));
+
+ if (__pBtnStop == NULL)
+ {
+ return;
+ }
+
+ __pBtnStop->SetActionId(IDA_BTN_STOP);
+ __pBtnStop->AddActionEventListener(*this);
+
+ CommonUtil::GetString("IDS_TMR_SK3_STOP").ToUpper(upperStr);
+ __pBtnStop->SetText(upperStr);
+
+ // Create Restart Button
+ __pBtnRestart = static_cast< Button* >(GetControl("IDC_BUTTON_RESTART"));
+
+ if (__pBtnRestart == NULL)
+ {
+ return;
+ }
+
+ __pBtnRestart->SetActionId(IDA_BTN_RESTART);
+ __pBtnRestart->AddActionEventListener(*this);
+
+ CommonUtil::GetString("IDS_SWT_BUTTON_RESTART").ToUpper(upperStr);
+ __pBtnRestart->SetText(upperStr);
+
+ // Create Reset Button
+ __pBtnReset = static_cast< Button* >(GetControl("IDC_BUTTON_RESET"));
+
+ if (__pBtnReset == NULL)
+ {
+ return;
+ }
+
+ __pBtnReset->SetActionId(IDA_BTN_RESET);
+ __pBtnReset->AddActionEventListener(*this);
+
+ CommonUtil::GetString("IDS_TMR_SK_RESET").ToUpper(upperStr);
+ __pBtnReset->SetText(upperStr);
+
+ // Set Show State
+ __pBtnStart->SetShowState(true);
+ __pBtnReset->SetShowState(false);
+ __pBtnRestart->SetShowState(false);
+ __pBtnStop->SetShowState(false);
+ __pBtnLap->SetShowState(false);
+
+ __pBtnRestart->SetNextFocus(__pBtnReset);
+ __pBtnReset->SetPreviousFocus(__pBtnRestart);
+}
+
+void
+StopWatchForm::OnActionPerformed(const Control& source, int actionId)
+{
+ long long tick ;
+ long long lapTime ;
+ SceneManager* pSceneManager = null;
+ Bitmap* pDisplayBitmap = null;
+ Bitmap* pMilliSecondBitmap = null;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ TimeSpan uptime(0);
+
+ //SystemTime::GetUptime(uptime);
+ //tick = uptime.GetTicks();
+ //lapTime = uptime.GetTicks();
+ SystemTime::GetTicks(tick);
+ SystemTime::GetTicks(lapTime);
+ TimeSpan span = static_cast<long>(tick);
+
+ //SystemTime::GetTicks(lapTime);
+ TimeSpan lapSpan = static_cast<long>(lapTime);
+
+ AppLogDebug("StopWatchForm::OnActionPerformed actionId = %d",actionId);
+
+ switch (actionId)
+ {
+ case IDA_BTN_START:
+ {
+ PowerManager::KeepScreenOnState(true, false);
+
+ //__startTick = uptime.GetTicks();
+ SystemTime::GetTicks(__startTick);
+ __status = STOPWATCH_START;
+ SetButtonState();
+ __pTimer->Start(INTERVAL);
+ __pBtnStop->SetFocus();
+ break;
+ }
+
+ case IDA_BTN_STOP:
+ {
+ PowerManager::KeepScreenOnState(false, true);
+
+ //__stopTick = uptime.GetTicks();
+ SystemTime::GetTicks(__stopTick);
+ __status = STOPWATCH_STOP;
+ SetButtonState();
+ __pBtnRestart->SetFocus();
+ break;
+ }
+
+ case IDA_BTN_RESTART:
+ {
+ PowerManager::KeepScreenOnState(true, false);
+
+ //__restartTick = uptime.GetTicks();
+ SystemTime::GetTicks(__restartTick);
+
+ if (__status == STOPWATCH_STOP)
+ {
+ __tmpTick += __restartTick - __stopTick;
+ }
+
+ __status = STOPWATCH_RESTART;
+ SetButtonState();
+ __pTimer->Start(INTERVAL);
+ __pBtnStop->SetFocus();
+ break;
+ }
+
+ case IDA_BTN_LAP:
+ {
+ __temp = __tmpTicker;
+
+ if (__status == STOPWATCH_START)
+ {
+ tick -= __startTick;
+ __tmpTicker = tick;
+ }
+ else if (__status == STOPWATCH_RESTART)
+ {
+ tick = tick - __tmpTick - __startTick;
+ __tmpTicker = tick;
+ }
+ else
+ {
+ return;
+ }
+
+ if ( __checkFlag == false )
+ {
+ lapTime = tick;
+ }
+ else
+ {
+ lapTime = tick - __temp;
+ }
+
+ __checkFlag = true;
+
+ span = static_cast<long>(tick);
+ lapSpan = static_cast<long>(lapTime);
+
+ __watchText.Clear();
+ __lapTimeText.Clear();
+
+ // set Split time
+ if (span.GetHours()< 10)
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetHours());
+ __watchText.Append(":");
+
+ if (span.GetMinutes() < 10)
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetMinutes());
+ __watchText.Append(":");
+
+ if (span.GetSeconds() < 10)
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetSeconds());
+ __watchText.Append(".");
+
+ if (span.GetMilliseconds() / 10 < 10)
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetMilliseconds() / 10);
+
+ // Set Lap time
+ if (lapSpan.GetHours()< 10)
+ {
+ __lapTimeText.Append("0");
+ }
+ __lapTimeText.Append(lapSpan.GetHours());
+ __lapTimeText.Append(":");
+
+ if (lapSpan.GetMinutes() < 10)
+ {
+ __lapTimeText.Append("0");
+ }
+ __lapTimeText.Append(lapSpan.GetMinutes());
+ __lapTimeText.Append(":");
+
+ if (lapSpan.GetSeconds() < 10)
+ {
+ __lapTimeText.Append("0");
+ }
+
+ __lapTimeText.Append(lapSpan.GetSeconds());
+ __lapTimeText.Append(".");
+
+ if (lapSpan.GetMilliseconds() / 10 < 10)
+ {
+ __lapTimeText.Append("0");
+ }
+ __lapTimeText.Append(lapSpan.GetMilliseconds() / 10);
+
+ InsertItem();
+ __pList->ScrollToItem(0);
+ break;
+ }
+
+ case IDA_BTN_RESET:
+ {
+ PowerManager::KeepScreenOnState(false, true);
+
+ __status = STOPWATCH_RESET;
+ SetButtonState();
+
+ __startTick = 0;
+ __stopTick = 0;
+ __restartTick = 0;
+ __tmpTick = 0;
+ __checkFlag = false;
+ __tmpTicker = 0;
+
+ __milliSecondsField.Replace(__milliSecondsField,"00");
+ __watchText.Replace(__watchText, "00:00:00.");
+
+ if (__pWatchTextList && __pLapTimeTextList)
+ {
+ __pWatchTextList->RemoveAll(true);
+ __pLapTimeTextList->RemoveAll(true);
+ __pList->UpdateList();
+ }
+
+ pDisplayBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_ZERO);
+ __pFirstDigit->SetBackgroundBitmap(*pDisplayBitmap);
+ __pSecondDigit->SetBackgroundBitmap(*pDisplayBitmap);
+ __pThirdDigit->SetBackgroundBitmap(*pDisplayBitmap);
+ __pFourthDigit->SetBackgroundBitmap(*pDisplayBitmap);
+ __pFifthDigit->SetBackgroundBitmap(*pDisplayBitmap);
+ __pSixthDigit->SetBackgroundBitmap(*pDisplayBitmap);
+
+ pMilliSecondBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_ZERO);
+ __pSeventhDigit->SetBackgroundBitmap(*pMilliSecondBitmap);
+ __pEighthDigit->SetBackgroundBitmap(*pMilliSecondBitmap);
+
+ delete pDisplayBitmap;
+ pDisplayBitmap = null;
+
+ delete pMilliSecondBitmap;
+ pMilliSecondBitmap = null;
+ Invalidate(true);
+ __pBtnStart->SetFocus();
+ break;
+ }
+
+ case IDA_TABBAR_ALARM:
+ {
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_ALARM_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ }
+ break;
+
+ case IDA_TABBAR_WORLDCLOCK:
+ {
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_WORLD_CLOCK_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_LIST));
+ }
+ }
+ }
+ break;
+
+ case IDA_TABBAR_TIMER:
+ {
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != NULL)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW));
+ }
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+StopWatchForm::SetButtonState(void)
+{
+ if ( __status == STOPWATCH_START)
+ {
+ __pBtnRestart->SetShowState(false);
+ __pBtnReset->SetShowState(false);
+ __pBtnStart->SetShowState(false);
+ __pBtnStop->SetShowState(true);
+ __pBtnLap->SetShowState(true);
+ }
+ else if ( __status == STOPWATCH_RESTART)
+ {
+ __pBtnStart->SetShowState(false);
+ __pBtnReset->SetShowState(false);
+ __pBtnRestart->SetShowState(false);
+ __pBtnStop->SetShowState(true);
+ __pBtnLap->SetShowState(true);
+ }
+ else if ( __status == STOPWATCH_STOP)
+ {
+ __pBtnStart->SetShowState(false);
+ __pBtnStop->SetShowState(false);
+ __pBtnLap->SetShowState(false);
+ __pBtnReset->SetShowState(true);
+ __pBtnRestart->SetShowState(true);
+ }
+ else if ( __status == STOPWATCH_RESET)
+ {
+ __pBtnReset->SetShowState(false);
+ __pBtnRestart->SetShowState(false);
+ __pBtnStart->SetShowState(true);
+ __pBtnStop->SetShowState(false);
+ __pBtnLap->SetShowState(false);
+ }
+}
+
+void
+StopWatchForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ if (__status == 0 || __status == STOPWATCH_RESET)
+ {
+ __pBtnStart->SetFocus();
+ }
+ else if (__status == STOPWATCH_STOP)
+ {
+ __pBtnRestart->SetFocus();
+ }
+ else if (__status == STOPWATCH_RESTART || __status == STOPWATCH_START)
+ {
+ __pBtnStop->SetFocus();
+ }
+
+ GetHeader()->SetItemSelected(2);
+ __pList->Invalidate(true);
+}
+
+void
+StopWatchForm::OnFormBackRequested(Form& source)
+{
+ __timerResetFlag = 1;
+ UiApp* pApp = UiApp::GetInstance();
+ pApp->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ pApp->GetAppRegistry()->Save();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
+int
+StopWatchForm::GetItemCount(void)
+{
+ int count = 0 ;
+
+ if (__pWatchTextList != NULL)
+ {
+ count = __pWatchTextList->GetCount() ;
+
+ }
+
+ return count;
+}
+
+ListItemBase *
+StopWatchForm::CreateItem(int index, int itemWidth)
+{
+ String* pItemText = null;
+ String* plapTimeText = null;
+ String lapNumber;
+ String milliSeconds;
+ String lapTimeRecord;
+ int itemHeight = 112;
+ int lapNoX = 0;
+ int lapNoY = 24;
+ int lapNoWidth = 95;
+ int lapNoHeight = 64;
+ int lapNoFont = 38;
+ int recordX = 0;
+ int recordY = 24;
+ int recordWidth = 168;
+ int recordHeight = 64;
+ int recordFont = 30;
+ int lapTimeX = 0;
+ int lapTimeY = 22;
+ int lapTimeWidth = 276;
+ int lapTimeHeight = 64;
+ int lapTimeFont = 64;
+ int lapTimeMillisY = 43;
+ int lapTimeMillisWidth = 40;
+ int lapTimeMillisHeight = 45;
+ int lapTimeMillisFont = 35;
+
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+ {
+ lapNoX = 34;
+ recordX = 154;
+ lapTimeX = 362;
+ }
+ else
+ {
+ lapNoX = 60;
+ recordX = 274;
+ lapTimeX = 644;
+ }
+
+ pItemText = static_cast<String *>(__pWatchTextList->GetAt(index));
+
+ plapTimeText = static_cast<String *>(__pLapTimeTextList->GetAt(index));
+ plapTimeText->SubString(plapTimeText->GetLength() - 2, 2, milliSeconds);
+ plapTimeText->SubString(0, plapTimeText->GetLength() - 2, lapTimeRecord);
+
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+ pItem->Construct(Dimension(itemWidth,itemHeight), LIST_ANNEX_STYLE_NORMAL);
+
+ int count = GetItemCount();
+
+ if ( count == 1 )
+ {
+ lapNumber.Append(0);
+ lapNumber.Append(1);
+ }
+ else
+ {
+ if ((count-index)/10 == 0)
+ {
+ lapNumber.Append(0);
+ }
+ lapNumber.Append(count-index);
+ }
+
+ pItem->AddElement(Rectangle(lapNoX, lapNoY, lapNoWidth, lapNoHeight), ID_FORMAT_LAPNO, lapNumber, lapNoFont, Color(0,0,0), Color(0,0,0), Color(0,0,0), true);
+ pItem->AddElement(Rectangle(recordX, recordY, recordWidth, recordHeight), ID_FORMAT_RECORD, *pItemText, recordFont, Color(0,0,0), Color(0,0,0), Color(0,0,0), true);
+ pItem->AddElement(Rectangle(lapTimeX, lapTimeY, lapTimeWidth, lapTimeHeight), ID_FORMAT_LAPTIME, lapTimeRecord, lapTimeFont, Color(0,0,0), Color(0,0,0), Color(0,0,0), true);
+ pItem->AddElement(Rectangle(lapTimeX + lapTimeWidth, lapTimeMillisY, lapTimeMillisWidth, lapTimeMillisHeight), ID_FORMAT_LAPTIME_MILLISECONDS, milliSeconds, lapTimeMillisFont, Color(0,0,0), Color(0,0,0), Color(0,0,0), true);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED , CUSTOM_COLOR_LIST_VIEW_NORMAL);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL , CUSTOM_COLOR_LIST_VIEW_NORMAL);
+ return pItem;
+
+}
+
+bool
+StopWatchForm::DeleteItem(int index, ListItemBase *pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+
+}
+
+void
+StopWatchForm::OnTimerExpired(Timer& timer)
+{
+ SetTimer();
+
+ if (__status == STOPWATCH_STOP || __status == STOPWATCH_RESET)
+ {
+ return;
+ }
+
+ __pTimer->Start(INTERVAL);
+
+}
+
+void
+StopWatchForm::SetTimer(void)
+{
+ long long tick ;
+ TimeSpan uptime(0);
+
+ //SystemTime::GetUptime(uptime);
+ //tick = uptime.GetTicks();
+ SystemTime::GetTicks(tick);
+
+ if (__status == STOPWATCH_START)
+ {
+ tick -= __startTick;
+ }
+ else if (__status == STOPWATCH_RESTART)
+ {
+ tick = tick - __tmpTick - __startTick;
+ }
+ else
+ {
+ return;
+ }
+
+ TimeSpan span = static_cast<long>(tick);
+
+ // Set StopWatch String
+ __watchText.Clear();
+ __milliSecondsField.Clear();
+
+ if ( span.GetHours() < 10 )
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetHours());
+ __watchText.Append(":");
+
+ if ( span.GetMinutes() < 10 )
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetMinutes());
+ __watchText.Append(":");
+
+ if ( span.GetSeconds() < 10 )
+ {
+ __watchText.Append("0");
+ }
+ __watchText.Append(span.GetSeconds());
+ __watchText.Append(".");
+
+
+ if ( span.GetMilliseconds() / 10 < 10 )
+ {
+ __milliSecondsField.Append("0");
+ }
+
+ __milliSecondsField.Append(span.GetMilliseconds() / 10);
+
+ DisplayTimer();
+
+ return;
+}
+
+
+void
+StopWatchForm::InsertItem(void)
+{
+
+ if ( __pWatchTextList != NULL )
+ {
+ __pWatchTextList->InsertAt(*(new (std::nothrow) String(__watchText)), 0);
+ }
+
+ if (__pLapTimeTextList != NULL)
+ {
+ __pLapTimeTextList->InsertAt(*(new (std::nothrow) String(__lapTimeText)), 0);
+ }
+
+ __pList->UpdateList();
+}
+
+void
+StopWatchForm::DisplayTimer(void)
+{
+ int watchtextLength = 0;
+ int millisecondTextLength = 0;
+ Bitmap *pBitmap = null;
+ wchar_t ch;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ watchtextLength = __watchText.GetLength();
+
+ for(int index = 0; index < watchtextLength; index++)
+ {
+ __watchText.GetCharAt(index,ch);
+ switch(ch)
+ {
+ case '0':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_ZERO);
+ break;
+ case '1':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_ONE);
+ break;
+ case '2':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_TWO);
+ break;
+ case '3':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_THREE);
+ break;
+ case '4':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_FOUR);
+ break;
+ case '5':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_FIVE);
+ break;
+ case '6':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SIX);
+ break;
+ case '7':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SEVEN);
+ break;
+ case '8':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_EIGHT);
+ break;
+ case '9':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_NINE);
+ break;
+ default:
+ break;
+ }
+
+ switch(index)
+ {
+ case 0:
+ __pFirstDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 1:
+ __pSecondDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 3:
+ __pThirdDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 4:
+ __pFourthDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 6:
+ __pFifthDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 7:
+ __pSixthDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 8:
+ __pSeventhDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ case 9:
+ __pEighthDigit->SetBackgroundBitmap(*pBitmap);
+ break;
+ default:
+ break;
+ }
+
+ if( pBitmap != NULL)
+ {
+ delete pBitmap;
+ pBitmap = null;
+ }
+ }
+
+ millisecondTextLength = __milliSecondsField.GetLength();
+
+ for(int index = 0; index < millisecondTextLength; index++)
+ {
+ __milliSecondsField.GetCharAt(index,ch);
+ switch(ch)
+ {
+ case '0':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_ZERO);
+ break;
+ case '1':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_ONE);
+ break;
+ case '2':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_TWO);
+ break;
+ case '3':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_THREE);
+ break;
+ case '4':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_FOUR);
+ break;
+ case '5':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_FIVE);
+ break;
+ case '6':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_SIX);
+ break;
+ case '7':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_SEVEN);
+ break;
+ case '8':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_EIGHT);
+ break;
+ case '9':
+ pBitmap = pAppResource->GetBitmapN(IDB_STOPWATCH_SMALL_NINE);
+ break;
+ default:
+ break;
+ }
+
+ if(index == 0)
+ {
+ __pSeventhDigit->SetBackgroundBitmap(*pBitmap);
+ }
+ else if(index == 1)
+ {
+ __pEighthDigit->SetBackgroundBitmap(*pBitmap);
+ }
+
+ if( pBitmap != NULL)
+ {
+ delete pBitmap;
+ pBitmap = null;
+ }
+ }
+
+ Invalidate(true);
+}
+
+void
+StopWatchForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ __pList->UpdateList();
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkStopWatchPresentationModel.cpp
+ * @brief Describes how the StopWatch works.
+ */
+
+#include <cstdlib>
+#include <FApp.h>
+#include <FBase.h>
+
+#include "ClkAlarmPresentationModel.h"
+#include "ClkStopWatchPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+StopWatchPresentationModel* StopWatchPresentationModel::__pInstance = NULL;
+
+StopWatchPresentationModel::StopWatchPresentationModel()
+:__checkFlagKey("lapCheckFlag")
+,__LapCountKey("stopWatchLapCount")
+,__millisecondTextKey("stopWatchMilliSecond")
+,__pAppRegistry(null)
+,__restartTick("stopWatchRestartTick")
+,__startTick("stopWatchStartTick")
+,__statusKey("stopWatchStatus")
+,__stopTick("stopWatchStopTick")
+,__tempTick("stopWatchTempTick")
+,__tmpTicker("stopWatchTmpTicker")
+,__watchTextKey("stopWatchText")
+{
+
+}
+
+StopWatchPresentationModel::~StopWatchPresentationModel()
+{
+
+}
+
+void
+StopWatchPresentationModel::SetStopWatchValue(int& status, String& startTick, String& tempTick, String& restartTick, String& stopTick, String& milliSecondText, String& watchText)
+{
+ result r = E_FAILURE;
+ DateTime currentTime;
+ String currentStopWatchValue;
+ String currentTimeValue;
+ DataServiceProvider* pDataServiceProvider= DataServiceProvider::GetInstance();
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__statusKey, status);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__statusKey, status);
+ }
+
+ r = __pAppRegistry->Set(__startTick, startTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__startTick, startTick);
+ }
+
+ r = __pAppRegistry->Set(__tempTick, tempTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__tempTick, tempTick);
+ }
+
+ r = __pAppRegistry->Set(__restartTick, restartTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__restartTick, restartTick);
+ }
+
+ r = __pAppRegistry->Set(__stopTick, stopTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__stopTick, stopTick);
+ }
+
+ r = __pAppRegistry->Set(__millisecondTextKey, milliSecondText);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__millisecondTextKey, milliSecondText);
+ }
+
+ r = __pAppRegistry->Set(__watchTextKey, watchText);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__watchTextKey, watchText);
+ }
+
+ __pAppRegistry->Save();
+}
+
+void
+StopWatchPresentationModel::GetStopWatchValue(int& status, String& startTick, String& tempTick, String& restartTick, String& stopTick, String& milliSecondText, String& watchText)
+{
+ AppLog("StopWatchPresentationModel::GetStopWatchValue");
+ result r = E_FAILURE;
+ String oldTime;
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Get(__statusKey, status);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__startTick, startTick);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__tempTick, tempTick);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__restartTick, restartTick);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__stopTick, stopTick);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__millisecondTextKey, milliSecondText);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__watchTextKey, watchText);
+
+ if (IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+}
+
+void
+StopWatchPresentationModel::SetStopWatchLaps(ArrayList& watchTextList, ArrayList& lapTimeTextList, String& tempTicker, int& checkFlag)
+{
+ result r = E_FAILURE;
+ int watchTextCount = watchTextList.GetCount();
+ String* watchText = null;
+ String watchTextKey ;
+ String* lapTimeText = null;
+ String lapTimeTextKey;
+
+ for (int count = 0; count < watchTextCount; count++)
+ {
+ watchTextKey.Clear();
+ lapTimeTextKey.Clear();
+
+ watchText = static_cast<String *>(watchTextList.GetAt(count));
+ watchTextKey.Append("watchText");
+ watchTextKey.Append(count);
+
+ lapTimeText = static_cast<String *>(lapTimeTextList.GetAt(count));
+ lapTimeTextKey.Append("lapTimeText");
+ lapTimeTextKey.Append(count);
+
+ r = __pAppRegistry->Set(watchTextKey, *watchText);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(watchTextKey, *watchText);
+ }
+
+ r = __pAppRegistry->Set(lapTimeTextKey, *lapTimeText);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(lapTimeTextKey, *lapTimeText);
+ }
+ }
+
+ r = __pAppRegistry->Set(__LapCountKey, watchTextCount);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__LapCountKey, watchTextCount);
+ }
+
+ r = __pAppRegistry->Set(__tmpTicker, tempTicker);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__tmpTicker, tempTicker);
+ }
+
+ r = __pAppRegistry->Set(__checkFlagKey, checkFlag);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__checkFlagKey, checkFlag);
+ }
+ __pAppRegistry->Save();
+}
+
+void
+StopWatchPresentationModel::GetStopWatchLaps(ArrayList& lapsList, ArrayList& lapTimeTextList, String& tempTicker, int& checkFlag)
+{
+ result r = E_FAILURE;
+ int lapCount = 0;
+ String watchTextKey ;
+ String lapTimeTextKey;
+ String *watchText = new String();
+ String *lapTimeText = new String();
+ r = __pAppRegistry->Get(__LapCountKey, lapCount);
+
+ if(IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchLaps result = %s", GetErrorMessage(r));
+ }
+
+ for(int count = 0; count < lapCount; count++)
+ {
+ watchTextKey.Clear();
+ lapTimeTextKey.Clear();
+
+ watchTextKey.Append("watchText");
+ watchTextKey.Append(count);
+
+ lapTimeTextKey.Append("lapTimeText");
+ lapTimeTextKey.Append(count);
+
+ r = __pAppRegistry->Get(watchTextKey, *watchText);
+
+ if(r == E_SUCCESS)
+ {
+ lapsList.InsertAt((new (std::nothrow) String(*watchText)), count);
+ }
+
+ r = __pAppRegistry->Get(lapTimeTextKey, *lapTimeText);
+
+ if(r == E_SUCCESS)
+ {
+ lapTimeTextList.InsertAt((new (std::nothrow) String(*lapTimeText)), count);
+ }
+ }
+ r = __pAppRegistry->Get(__tmpTicker, tempTicker);
+
+ if(IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__checkFlagKey, checkFlag);
+
+ if(IsFailed(r))
+ {
+ AppLog("StopWatchPresentationModel::GetStopWatchValue result = %s", GetErrorMessage(r));
+ }
+
+ delete watchText;
+ watchText = null;
+
+ delete lapTimeText;
+ lapTimeText = null;
+}
+
+StopWatchPresentationModel*
+StopWatchPresentationModel::GetInstance(void)
+{
+ if (__pInstance == null)
+ {
+ CreateInstance();
+ }
+
+ return __pInstance;
+}
+
+void
+StopWatchPresentationModel::SetStatus(int& status)
+{
+ result r = E_FAILURE;
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__statusKey, status);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__statusKey, status);
+ }
+}
+
+result
+StopWatchPresentationModel::Construct(void)
+{
+ return E_SUCCESS;
+}
+
+void
+StopWatchPresentationModel::CreateInstance(void)
+{
+ __pInstance = new (std::nothrow) StopWatchPresentationModel();
+ result r = __pInstance->Construct();
+
+ if (IsFailed(r))
+ {
+ delete __pInstance;
+ __pInstance = null;
+ return;
+ }
+
+ std::atexit(DestroyInstance);
+}
+
+void
+StopWatchPresentationModel::DestroyInstance(void)
+{
+ delete __pInstance;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTimerForm.cpp
+ * @brief Describes how the Timer works.
+ */
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkSceneRegister.h"
+#include "ClkCommonLib.h"
+#include "ClkDataServiceProvider.h"
+#include "ClkTimerForm.h"
+#include "ClkTimerPresentationModel.h"
+#include "ClkTypes.h"
+#include "ClkClockApp.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Media;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int IDA_BTN_START = 100;
+static const int IDA_BTN_STOP = 101;
+static const int IDA_BTN_RESET = 102;
+static const int IDA_BUTTON_HOURS = 103;
+static const int IDA_BUTTON_MINUTES = 104;
+static const int IDA_BUTTON_SECONDS = 105;
+static const int IDA_BUTTON_0 = 106;
+static const int IDA_BUTTON_1 = 107;
+static const int IDA_BUTTON_2 = 108;
+static const int IDA_BUTTON_3 = 109;
+static const int IDA_BUTTON_4 = 110;
+static const int IDA_BUTTON_5 = 111;
+static const int IDA_BUTTON_6 = 112;
+static const int IDA_BUTTON_7 = 113;
+static const int IDA_BUTTON_8 = 114;
+static const int IDA_BUTTON_9 = 115;
+static const int IDA_BUTTON_CLR = 116;
+static const int TIMER_START = 117;
+static const int TIMER_STOP = 118;
+static const int TIMER_RESTART = 119;
+static const int TIMER_RESET = 120;
+static const int IDA_TABBAR_ALARM = 200;
+static const int IDA_TABBAR_WORLDCLOCK= 201;
+static const int IDA_TABBAR_STOPWATCH = 202;
+static const int IDA_TABBAR_TIMER = 203;
+static const int IDA_BTN_RESTART = 204 ;
+
+TimerForm::TimerForm(void)
+: __focusKey("timerFocus")
+, __isHourSelected(false)
+, __isMinuteSelected(true)
+, __isSecondSelected(false)
+, __isTimerUp(true)
+, __pAppRegistry(null)
+, __pBtnHourDisplay(null)
+, __pBtnMinuteDisplay(null)
+, __pBtnReset(null)
+, __pBtnRestart(null)
+, __pBtnSecondDisplay(null)
+, __pBtnSetHours(null)
+, __pBtnSetMinutes(null)
+, __pBtnSetSeconds (null)
+, __pBtnStart(null)
+, __pBtnStop(null)
+, __pButton0(null)
+, __pButton1(null)
+, __pButton2(null)
+, __pButton3(null)
+, __pButton4(null)
+, __pButton5(null)
+, __pButton6(null)
+, __pButton7(null)
+, __pButton8(null)
+, __pButton9(null)
+, __pButtonClr(null)
+, __pDisplayLabel(null)
+, __pInputPanel(null)
+, __pTimer(null)
+, __pTimerPanel(null)
+, __pTimerStartedPanel(null)
+, __restartTick(0)
+, __spanHours(0)
+, __spanMilliSeconds(0)
+, __spanMinutes(0)
+, __spanSeconds(0)
+, __startTick(0)
+, __status(0)
+, __stopTick(0)
+, __timerResetFlag(0)
+, __timerResetKey("timerReset")
+, __tmpTick(0)
+, __userSetValue("")
+, __zeroClicked(false)
+, __count(0)
+{
+
+}
+
+TimerForm::~TimerForm(void)
+{
+
+}
+
+bool
+TimerForm::Initialize(void)
+{
+ result r = Construct(L"IDL_TIMER");
+ AppLog("the result is %S", GetErrorMessage(r));
+ SetName(L"TimerForm");
+
+ return true;
+}
+
+result
+TimerForm::OnInitializing(void)
+{
+ AppLog("TimerForm::OnInitializing");
+ result r = E_SUCCESS;
+
+ HeaderItem alarm;
+ HeaderItem worldClock;
+ HeaderItem stopWatch;
+ HeaderItem timer;
+ Header* pHeader = GetHeader();
+ Bitmap* pIconBitmap = null;
+ Bitmap* pPressedIconBitmap = null;
+ Bitmap* pHighlightedIconBitmap = null;
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick ;
+ String userSetValue;
+ String tempStr;
+ String time;
+ String upperStr;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ TimerPresentationModel *pTimerPresentationModel = TimerPresentationModel::GetInstance();
+ DateTime remainingTime;
+ DateTime ringingTime;
+ int status = 0;
+ int canvasHeight = 186;
+ int canvasWidth = 222;
+
+ // Setup back event listener
+ SetFormBackEventListener(this);
+ AddOrientationEventListener(*this);
+ SettingInfo::AddSettingEventListener(*this);
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_TIMER_VIEW, *this);
+
+ if (pHeader != null)
+ {
+ pHeader->SetStyle(HEADER_STYLE_TAB);
+ alarm.Construct(IDA_TABBAR_ALARM);
+ //alarm.SetText(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL )
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(alarm);
+
+ if ( pIconBitmap != NULL )
+ {
+ delete pIconBitmap;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ worldClock.Construct(IDA_TABBAR_WORLDCLOCK);
+ //worldClock.SetText(CommonUtil::GetString(L"IDS_COM_BODY_WORLD_CLOCK"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(worldClock);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if (pPressedIconBitmap != NULL)
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ stopWatch.Construct(IDA_TABBAR_STOPWATCH);
+ //stopWatch.SetText(CommonUtil::GetString(L"IDS_COM_BODY_STOPWATCH"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL )
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(stopWatch);
+ pHeader->SetItemSelected(3);
+
+ if ( pIconBitmap != NULL )
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ timer.Construct(IDA_TABBAR_TIMER);
+ //timer.SetText(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL )
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_NORMAL, pHighlightedIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_PRESSED, pHighlightedIconBitmap);
+ }
+
+ if (pHighlightedIconBitmap != NULL)
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(timer);
+ pHeader->SetItemSelected(3);
+
+ if ( pIconBitmap != NULL )
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+ }
+
+ pHeader->AddActionEventListener(*this);
+ pHeader->SetTabEditModeEnabled(false);
+
+ GetFooter()->SetShowState(false);
+ Panel* pPanel = static_cast< Panel* >(GetControl("IDC_PANEL1"));
+ if (pPanel != NULL)
+ {
+ SetControlAlwaysAtBottom(*pPanel, true);
+ }
+
+ __pBtnStart = static_cast< Button* >(GetControl("IDC_BUTTON_START"));
+
+ if (__pBtnStart == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pBtnStart->SetActionId(IDA_BTN_START);
+ __pBtnStart->AddActionEventListener(*this);
+ SetControlAlwaysOnTop(*__pBtnStart, true);
+
+ CommonUtil::GetString("IDS_TMR_SK_START").ToUpper(upperStr);
+ __pBtnStart->SetText(upperStr);
+
+ __pBtnStop = static_cast< Button* >(GetControl("IDC_BUTTON_STOP"));
+
+ if (__pBtnStop == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pBtnStop->SetActionId(IDA_BTN_STOP);
+ __pBtnStop->AddActionEventListener(*this);
+ __pBtnStop->SetShowState(false);
+
+ CommonUtil::GetString("IDS_TMR_SK3_STOP").ToUpper(upperStr);
+ __pBtnStop->SetText(upperStr);
+
+ __pBtnReset = static_cast< Button* >(GetControl("IDC_BUTTON_RESET"));
+
+ if (__pBtnReset == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pBtnReset->SetActionId(IDA_BTN_RESET);
+ __pBtnReset->AddActionEventListener(*this);
+ __pBtnReset->SetShowState(false);
+
+ CommonUtil::GetString("IDS_TMR_SK_RESET").ToUpper(upperStr);
+ __pBtnReset->SetText(upperStr);
+
+ __pBtnRestart = static_cast< Button* >(GetControl("IDC_BUTTON_RESTART"));
+
+ if (__pBtnRestart == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pBtnRestart->SetActionId(IDA_BTN_RESTART);
+ __pBtnRestart->AddActionEventListener(*this);
+ __pBtnRestart->SetShowState(false);
+
+ CommonUtil::GetString("IDS_SWT_BUTTON_RESTART").ToUpper(upperStr);
+ __pBtnRestart->SetText(upperStr);
+
+ __pInputPanel = static_cast< Panel* >(GetControl("IDC_INPUT_PANEL"));
+
+ if (__pInputPanel == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pTimerPanel = static_cast< Panel* >(GetControl("IDC_TIMER_PANEL"));
+
+
+ if (__pTimerPanel == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pTimerStartedPanel = static_cast< Panel* >(GetControl("IDC_PANEL_TIMER_STARTED"));
+
+
+ if (__pTimerStartedPanel == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ __pTimerStartedPanel->SetShowState(false);
+ SetControlAlwaysAtBottom(*__pTimerStartedPanel,true);
+ SetControlAlwaysOnTop(*__pTimerPanel,true);
+
+ Bitmap* pBgNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_NORMAL_BG);
+ Bitmap* pbgEditBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_BG);
+
+ Canvas* pCanvas = null;
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pBgNormalBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ if (pBgNormalBitmap != null)
+ {
+ delete pBgNormalBitmap;
+ pBgNormalBitmap = null;
+ }
+
+ if (pbgEditBitmap != null)
+ {
+ delete pbgEditBitmap;
+ pbgEditBitmap = null;
+ }
+
+ Bitmap* pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if (pFinalBitmap == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+
+ // TIMER STARTED PANEL CONTROLS
+
+ __pBtnHourDisplay = static_cast<Button*>(__pTimerStartedPanel->GetControl("IDC_BUTTON_HOUR_DISPLAY"));
+
+ if (__pBtnHourDisplay == NULL)
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+ __pBtnHourDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnHourDisplay->SetPressedBackgroundBitmap(*pFinalBitmap);
+ // __pBtnHourDisplay->SetColor(BUTTON_ITEM_STATUS_PRESSED,);
+
+
+ __pBtnMinuteDisplay = static_cast<Button*>(__pTimerStartedPanel->GetControl("IDC_BUTTON_MINUTE_DISPLAY"));
+
+ if (__pBtnMinuteDisplay == NULL)
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnMinuteDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnMinuteDisplay->SetPressedBackgroundBitmap(*pFinalBitmap);
+
+
+
+ __pBtnSecondDisplay = static_cast<Button*>(__pTimerStartedPanel->GetControl("IDC_BUTTON_SECOND_DISPLAY"));
+
+ if (__pBtnSecondDisplay == NULL)
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+ __pBtnSecondDisplay->SetNormalBackgroundBitmap(*pFinalBitmap);
+ __pBtnSecondDisplay->SetPressedBackgroundBitmap(*pFinalBitmap);
+
+ // TIMER PANEL CONTROLS
+
+ __pBtnSetHours = static_cast<Button*>(__pTimerPanel->GetControl("IDC_BUTTON_HOURS"));
+
+ if (__pBtnSetHours == NULL)
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnSetHours->SetActionId(IDA_BUTTON_HOURS);
+ __pBtnSetHours->AddActionEventListener(*this);
+ __pBtnSetHours->SetText(L"00");
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+
+ Bitmap* pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_FOCUS_BG);
+ Bitmap* pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_BG);
+
+ Canvas* pCanvasFocused = null;
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgBitmap);
+
+ Bitmap* pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != NULL)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ __pBtnSetMinutes = static_cast<Button*>(__pTimerPanel->GetControl("IDC_BUTTON_MINUTES"));
+
+ if (__pBtnSetMinutes == NULL)
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnSetMinutes->SetText(L"01");
+ __pBtnSetMinutes->SetActionId(IDA_BUTTON_MINUTES);
+ __pBtnSetMinutes->AddActionEventListener(*this);
+
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+
+ __pBtnSetSeconds = static_cast<Button*>(__pTimerPanel->GetControl("IDC_BUTTON_SECONDS"));
+
+ if (__pBtnSetSeconds == NULL)
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pBtnSetSeconds->SetText(L"00");
+ __pBtnSetSeconds->SetActionId(IDA_BUTTON_SECONDS);
+ __pBtnSetSeconds->AddActionEventListener(*this);
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmap);
+
+ __pButton0 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON0"));
+
+ if ( __pButton0 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton0->SetActionId(IDA_BUTTON_0);
+ __pButton0->AddActionEventListener(*this);
+
+ __pButton1 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON1"));
+
+ if ( __pButton1 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+ return E_FAILURE;
+ }
+
+ __pButton1->SetActionId(IDA_BUTTON_1);
+ __pButton1->AddActionEventListener(*this);
+
+
+ __pButton2 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON2"));
+
+ if ( __pButton2 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton2->SetActionId(IDA_BUTTON_2);
+ __pButton2->AddActionEventListener(*this);
+
+
+ __pButton3 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON3"));
+
+ if ( __pButton3 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton3->SetActionId(IDA_BUTTON_3);
+ __pButton3->AddActionEventListener(*this);
+
+
+ __pButton4 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON4"));
+
+ if ( __pButton4 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton4->SetActionId(IDA_BUTTON_4);
+ __pButton4->AddActionEventListener(*this);
+
+ __pButton5 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON5"));
+
+ if ( __pButton5 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+ return E_FAILURE;
+ }
+
+ __pButton5->SetActionId(IDA_BUTTON_5);
+ __pButton5->AddActionEventListener(*this);
+
+
+ __pButton6 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON6"));
+
+ if ( __pButton6 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton6->SetActionId(IDA_BUTTON_6);
+ __pButton6->AddActionEventListener(*this);
+
+ __pButton7 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON7"));
+
+ if ( __pButton7 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton7->SetActionId(IDA_BUTTON_7);
+ __pButton7->AddActionEventListener(*this);
+
+ __pButton8 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON8"));
+
+ if ( __pButton8 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+ return E_FAILURE;
+ }
+
+ __pButton8->SetActionId(IDA_BUTTON_8);
+ __pButton8->AddActionEventListener(*this);
+
+ __pButton9 = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON9"));
+
+ if ( __pButton9 == NULL )
+ {
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButton9->SetActionId(IDA_BUTTON_9);
+ __pButton9->AddActionEventListener(*this);
+
+ __pButtonClr = static_cast< Button* >(__pInputPanel->GetControl("IDC_BUTTON_CLR"));
+
+ if ( __pButtonClr == NULL )
+ {
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return E_FAILURE;
+ }
+
+ __pButtonClr->SetActionId(IDA_BUTTON_CLR);
+ __pButtonClr->AddActionEventListener(*this);
+
+ // Create Timer
+ __pTimer = new (std::nothrow) Timer();
+ __pTimer->Construct(*this);
+
+ String registeredTime;
+ pTimerPresentationModel->GetTimerValue(ringingTime, time, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+ LongLong::Parse(startTick, __startTick);
+ LongLong::Parse(tempTick, __tmpTick);
+ LongLong::Parse(restartTick, __restartTick);
+ LongLong::Parse(stopTick, __stopTick);
+ __status = status;
+
+ int focusValue = 1;
+ UiApp::GetInstance()->GetAppRegistry()->Get(__focusKey, focusValue);
+
+ if (userSetValue == "")
+ {
+ userSetValue.Append("00:01:00");
+ focusValue = 1;
+ }
+ __userSetValue.Clear();
+ __userSetValue.Append(userSetValue);
+ TimerPresentationModel::GetInstance()->userValue = __userSetValue;
+ DateTime::Parse(time, remainingTime);
+ DateTime::Parse(registeredTime, __registeredTime);
+
+ if(__status == TIMER_STOP || __status == 0 || __status == TIMER_RESET)
+ {
+ AppLog("remainingTime = %ls", remainingTime.ToString().GetPointer());
+ __spanHours = remainingTime.GetHour();
+ __spanMinutes = remainingTime.GetMinute();
+ __spanSeconds = remainingTime.GetSecond();
+ }
+ else
+ {
+ __spanHours = ringingTime.GetHour();
+ __spanMinutes = ringingTime.GetMinute();
+ __spanSeconds = ringingTime.GetSecond();
+
+ }
+
+ AppLog("stopTick = %lld __status = %d remainingTime = %ls ringingTime = %ls", __stopTick, __status, remainingTime.ToString().GetPointer(), ringingTime.ToString().GetPointer());
+ if ( __status == TIMER_START || __status == TIMER_RESTART || __status == TIMER_STOP)
+ {
+
+ if (__pBtnHourDisplay != null)
+ {
+
+ if (__spanHours < 10)
+ {
+ tempStr.Append("0");
+ }
+
+ tempStr.Append(__spanHours);
+ __pBtnHourDisplay->SetText(tempStr);
+ }
+
+ if (__pBtnMinuteDisplay != null)
+ {
+ tempStr.Clear();
+
+ if (__spanMinutes < 10)
+ {
+ tempStr.Append("0");
+ }
+
+ tempStr.Append(__spanMinutes);
+ __pBtnMinuteDisplay->SetText(tempStr);
+ }
+
+ if (__pBtnSecondDisplay != null)
+ {
+ tempStr.Clear();
+
+ if (__spanSeconds < 10)
+ {
+ tempStr.Append("0");
+ }
+
+ tempStr.Append(__spanSeconds);
+ __pBtnSecondDisplay->SetText(tempStr);
+ }
+
+ }
+ else
+ {
+
+ if (__pBtnSetHours != null)
+ {
+ tempStr.Clear();
+ if (__spanHours < 10)
+ {
+ tempStr.Append("0");
+ }
+ tempStr.Append(__spanHours);
+ __pBtnSetHours->SetText(tempStr);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ tempStr.Clear();
+ if (__spanMinutes < 10)
+ {
+ tempStr.Append("0");
+ }
+ tempStr.Append(__spanMinutes);
+ __pBtnSetMinutes->SetText(tempStr);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ tempStr.Clear();
+ if (__spanSeconds < 10)
+ {
+ tempStr.Append("0");
+ }
+ tempStr.Append(__spanSeconds);
+ __pBtnSetSeconds->SetText(tempStr);
+ }
+
+ }
+
+ if(status == TIMER_START)
+ {
+ SetButtonState();
+ DisplayTimer();
+ __pTimer->Start(1);
+ __pTimerStartedPanel->SetShowState(true);
+ __isTimerUp = false;
+ }
+ else if(status == TIMER_RESTART)
+ {
+ SetButtonState();
+ DisplayTimer();
+ __pTimer->Start(1);
+ __pTimerStartedPanel->SetShowState(true);
+ __isTimerUp = false;
+ }
+ else if(status == TIMER_RESET)
+ {
+ SetButtonState();
+ DisplayTimer();
+ __pTimerStartedPanel->SetShowState(false);
+ __startTick = 0;
+ __stopTick = 0;
+ __restartTick = 0;
+ __tmpTick = 0;
+ }
+ else if(status == TIMER_STOP || status == 0)
+ {
+ __isTimerUp = false;
+ SetButtonState();
+ DisplayTimer();
+ }
+
+ if (__status == TIMER_START || __status == TIMER_RESTART)
+ {
+ String *str2 = null;
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return E_FAILURE;
+ }
+
+ str2->Append("'");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+ AppManager::GetInstance()->UnregisterAppLaunch(App::GetInstance()->GetAppId(), str2);
+
+ AppLog("UnReg __registeredTime = %ls", __registeredTime.ToString().GetPointer());
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+ }
+
+ SetNumberBitmaps();
+
+ UiApp::GetInstance()->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ UiApp::GetInstance()->GetAppRegistry()->Save();
+
+ AppLog("focusValue = %d", focusValue);
+ if (focusValue == 0)
+ {
+ __isHourSelected = true;
+ __isMinuteSelected = false;
+ __isSecondSelected = false;
+ }
+ else if(focusValue == 1)
+ {
+ __isHourSelected = false;
+ __isMinuteSelected = true;
+ __isSecondSelected = false;
+ }
+ else
+ {
+ __isHourSelected = false;
+ __isMinuteSelected = false;
+ __isSecondSelected = true;
+ }
+
+ __pBtnStart->SetFocus();
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ return r;
+}
+
+
+result
+TimerForm::OnTerminating(void)
+{
+ AppLog("TimerForm::OnAppTerminating");
+ result r = E_SUCCESS;
+ DateTime remainingTime;
+ String timeSet = L"";
+ String startTick = L"";
+ String tempTick = L"";
+ String restartTick = L"";
+ String stopTick = L"";
+ String registeredTime;
+ String* str2;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ UiApp::GetInstance()->GetAppRegistry()->Get(__timerResetKey, __timerResetFlag);
+
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return E_FAILURE;
+ }
+
+ str2->Append("'");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+
+ if (__timerResetFlag != 1)
+ {
+ __status = TIMER_RESET;
+ __startTick = 0;
+ __tmpTick = 0;
+ __restartTick = 0;
+ __stopTick = 0;
+ remainingTime.SetValue(9999,1,1);
+ AppLog("the string value is %ls",str2->GetPointer());
+ AppManager::GetInstance()->UnregisterAppLaunch(ClockApp::GetInstance()->GetAppId(), str2);
+ }
+ else
+ {
+ String strHours;
+ String strMinutes;
+ String strSeconds;
+
+ AppLog("__status = %d", __status);
+ if (__status == 0 || __status == TIMER_RESET)
+ {
+ int hours, min, sec;
+ Integer::Parse(__pBtnSetHours->GetText(), hours);
+ Integer::Parse(__pBtnSetMinutes->GetText(), min);
+ Integer::Parse(__pBtnSetSeconds->GetText(), sec);
+
+ remainingTime.AddHours(hours);
+ remainingTime.AddMinutes(min);
+ remainingTime.AddSeconds(sec);
+
+ AppLog("remainingTime = %ls", remainingTime.ToString().GetPointer());
+ }
+ else
+ {
+ remainingTime.AddHours(__spanHours);
+ remainingTime.AddMinutes(__spanMinutes);
+ remainingTime.AddSeconds(__spanSeconds);
+ }
+
+ if (__pBtnSetHours != null)
+ {
+ strHours = __pBtnSetHours->GetText();
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ strMinutes = __pBtnSetMinutes->GetText();
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ strSeconds = __pBtnSetSeconds->GetText();
+ }
+
+ __userSetValue.Clear();
+ __userSetValue.Append(strHours);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strMinutes);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strSeconds);
+
+ if (__status == TIMER_RESTART || __status == TIMER_START)
+ {
+ DateTime currentTime;
+ String *str1 = null;
+ String *str2 = null;
+ int cmp = 0;
+ AppManager* pAppManager = AppManager::GetInstance();
+ App* pApp = App::GetInstance();
+
+ DataServiceProvider::GetInstance()->GetCurrentDateTime(currentTime);
+ __registeredTime = currentTime;
+
+ //AppLog("hours = %d minutes = %d seconds = %d", hours, minutes, seconds);
+ __registeredTime.AddHours(__spanHours);
+ __registeredTime.AddMinutes(__spanMinutes);
+ __registeredTime.AddSeconds(__spanSeconds);
+ cmp = DateTime::Compare(currentTime, __registeredTime);
+ AppLog("currentTime = %ls timerTime = %ls", currentTime.ToString().GetPointer(), __registeredTime.ToString().GetPointer());
+
+ if(cmp <=0)
+ {
+ AppLog("came here");
+ str1 = new (std::nothrow) String(pApp->GetAppId());
+
+ if (str1 == null)
+ {
+ return E_FAILURE;
+ }
+
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ delete str1;
+ str1 = null;
+
+ return E_FAILURE;
+ }
+
+ str2->Append("'");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+
+ String *timerType = new String("Timer");
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(timerType);
+ }
+
+ r = pAppManager->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("__registeredTime result = %s", GetErrorMessage(r));
+ if (IsFailed(r))
+ {
+ AppLog("coming here");
+ __registeredTime.AddSeconds(1);
+
+ str2->Clear();
+ str2->Append("DateTime='");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+ r = pAppManager->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("__registeredTime result = %s", GetErrorMessage(r));
+ }
+
+ AppLog("Reg __registeredTime = %ls", __registeredTime.ToString().GetPointer());
+
+ if (str1 != null)
+ {
+ delete str1;
+ str1 = null;
+ }
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+ }
+ }
+ }
+
+ delete str2;
+
+ startTick.Append(__startTick);
+ tempTick.Append(__tmpTick);
+ restartTick.Append(__restartTick);
+ stopTick.Append(__stopTick);
+ registeredTime.Append(__registeredTime.ToString());
+ pTimerPresentationModel->SetTimerValue(remainingTime, __status, startTick, tempTick, restartTick, stopTick, __userSetValue, registeredTime);
+ AppLog("remainingTime = %ls __status = %d", remainingTime.ToString().GetPointer(), __status);
+
+ if (__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }
+
+ int focusValue;
+ if (__isHourSelected)
+ {
+ focusValue = 0;
+ }
+ else if (__isMinuteSelected)
+ {
+ focusValue = 1;
+ }
+ else
+ {
+ focusValue = 2;
+ }
+
+ r = UiApp::GetInstance()->GetAppRegistry()->Set(__focusKey, focusValue);
+ if (r == E_KEY_NOT_FOUND)
+ {
+ UiApp::GetInstance()->GetAppRegistry()->Add(__focusKey, focusValue);
+ }
+ UiApp::GetInstance()->GetAppRegistry()->Save();
+
+ SettingInfo::RemoveSettingEventListener(*this);
+ return r;
+}
+
+void
+TimerForm::OnActionPerformed(const Control& source, int actionId)
+{
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ long long tick ;
+ int canvasWidth = 222;
+ int canvasHeight = 186;
+
+ TimeSpan uptime(0);
+ //SystemTime::GetUptime(uptime);
+
+ SystemTime::GetTicks(tick);
+ TimeSpan span = static_cast<long>(tick);
+
+
+ Bitmap* pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_NORMAL_BG);
+ Bitmap* pbgEditBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_BG);
+ Bitmap* pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_FOCUS_BG);
+
+ Canvas* pCanvas = null;
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ Bitmap* pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ Canvas* pCanvasFocused = null;
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ Bitmap* pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != NULL)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ switch (actionId)
+ {
+ case IDA_TABBAR_ALARM:
+ {
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_ALARM_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ }
+ break;
+
+ case IDA_TABBAR_WORLDCLOCK:
+ {
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_WORLD_CLOCK_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_LIST));
+ }
+ }
+
+ }
+ break;
+
+ case IDA_TABBAR_STOPWATCH:
+ {
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != NULL)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH));
+ }
+ }
+ break;
+
+ case IDA_BTN_START:
+ {
+ __status = TIMER_START;
+
+ int hours = 0;
+ int minutes = 0;
+ int seconds = 0;
+ String strHours;
+ String strMinutes;
+ String strSeconds;
+ DateTime date;
+ DateTime currentTime;
+
+ AppLog("result = %s", GetErrorMessage(r));
+
+ if (__pBtnSetHours != null)
+ {
+ strHours = __pBtnSetHours->GetText();
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ strMinutes = __pBtnSetMinutes->GetText();
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ strSeconds = __pBtnSetSeconds->GetText();
+ }
+
+ __pTimer->Start(1);
+
+ __userSetValue.Clear();
+ __userSetValue.Append(strHours);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strMinutes);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strSeconds);
+
+ TimerPresentationModel::GetInstance()->userValue = __userSetValue;
+ TimerPresentationModel::GetInstance()->SetStatus(__status);
+
+ Integer::Parse(strHours,hours);
+ Integer::Parse(strMinutes,minutes);
+ Integer::Parse(strSeconds,seconds);
+
+ __spanHours = hours;
+ __spanMinutes = minutes;
+ __spanSeconds = seconds;
+ //SystemTime::GetUptime(uptime);
+ SystemTime::GetTicks(tick);
+ __startTick = tick + hours*60*60*1000 + minutes*60*1000 + seconds*1000 ;
+ SetButtonState();
+ DisplayTimer();
+ __pTimerStartedPanel->SetShowState(true);
+ __pBtnStop->SetFocus();
+ }
+ break;
+
+ case IDA_BTN_RESET:
+ {
+ __status = TIMER_RESET;
+ TimerPresentationModel::GetInstance()->SetStatus(__status);
+ SetButtonState();
+ __pTimerStartedPanel->SetShowState(false);
+ __startTick = 0;
+ __stopTick = 0;
+ __restartTick = 0;
+ __tmpTick = 0;
+
+ __isHourSelected = false;
+ __isMinuteSelected = true;
+ __isSecondSelected = false;
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if ( __pBtnSetHours != null && __pBtnSetHours->GetText().IsEmpty())
+ {
+ __pBtnSetHours->SetText(L"00");
+
+
+ if ( __pBtnSetMinutes != null )
+ {
+ __pBtnSetMinutes->SetText(L"01");
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetText(L"00");
+ }
+
+ }
+ __pBtnStart->SetFocus();
+ Invalidate(true);
+ }
+ break;
+
+ case IDA_BTN_RESTART:
+ {
+ DateTime date;
+ DateTime currentTime;
+ DateTime __timerTime;
+ int hours = 0;
+ int minutes = 0;
+ int seconds = 0;
+
+ Integer::Parse(__pBtnHourDisplay->GetText(),hours);
+ Integer::Parse(__pBtnMinuteDisplay->GetText(),minutes);
+ Integer::Parse(__pBtnSecondDisplay->GetText(),seconds);
+
+ if (hours != 0 || minutes != 0 || seconds != 0)
+ {
+ __pTimer->Start(1);
+ }
+
+ //SystemTime::GetUptime(uptime);
+ SystemTime::GetTicks(__restartTick);
+ //__restartTick = uptime.GetTicks();
+
+ if (__status == TIMER_STOP)
+ {
+ __tmpTick += __restartTick - __stopTick;
+ }
+ __status = TIMER_RESTART;
+ TimerPresentationModel::GetInstance()->SetStatus(__status);
+
+ SetButtonState();
+ __pBtnStop->SetFocus();
+ }
+ break;
+
+ case IDA_BTN_STOP:
+ {
+ //SystemTime::GetUptime(uptime);
+ //__stopTick = uptime.GetTicks();
+ SystemTime::GetTicks(__stopTick);
+ __status = TIMER_STOP;
+ TimerPresentationModel::GetInstance()->SetStatus(__status);
+ __pTimer->Cancel();
+ SetButtonState();
+ __pBtnRestart->SetFocus();
+ }
+ break;
+
+ case IDA_BUTTON_HOURS:
+ {
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ __isHourSelected = true ;
+ __isMinuteSelected = false;
+ __isSecondSelected = false ;
+ __inputText.Clear();
+ Invalidate(true);
+ }
+ break;
+
+ case IDA_BUTTON_MINUTES:
+ {
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ __isHourSelected = false;
+ __isMinuteSelected = true;
+ __isSecondSelected = false;
+ __inputText.Clear();
+ Invalidate(true);
+ }
+ break;
+
+ case IDA_BUTTON_SECONDS:
+ {
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ __isHourSelected = false ;
+ __isMinuteSelected = false;
+ __isSecondSelected = true ;
+ __inputText.Clear();
+ Invalidate(true);
+ }
+ break;
+
+ case IDA_BUTTON_0:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+
+ __inputText.Append(0);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+
+ case IDA_BUTTON_1:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(1);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+
+ case IDA_BUTTON_2:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(2);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+
+ case IDA_BUTTON_3:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(3);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+ case IDA_BUTTON_4:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(4);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+ case IDA_BUTTON_5:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(5);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+ case IDA_BUTTON_6:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(6);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+ case IDA_BUTTON_7:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(7);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+
+ case IDA_BUTTON_8:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(8);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+ case IDA_BUTTON_9:
+ {
+ if(__inputText.GetLength() == 2)
+ {
+ __inputText.Clear();
+ }
+ else
+ {
+ if (__inputText == "0" && __isSecondSelected)
+ {
+ __inputText.Clear();
+ }
+ }
+ __inputText.Append(9);
+ SetTimer(__inputText);
+ SetButtonFocus();
+ }
+ break;
+ case IDA_BUTTON_CLR:
+ {
+ String check = L"00";
+
+ if ( __isHourSelected == true && __pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetText(L"00");
+ }
+ else if ( __isMinuteSelected == true && __pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetText(L"00");
+ }
+ else if (__isSecondSelected == true && __pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetText(L"00");
+ }
+
+ if (__pBtnSetHours != null && __pBtnSetMinutes != null && __pBtnSetSeconds != null)
+ {
+ if ( __pBtnSetHours->GetText() == check && __pBtnSetMinutes->GetText() == check && __pBtnSetSeconds->GetText() == check)
+ {
+ __pBtnStart->SetEnabled(false);
+ }
+ else
+ {
+ __pBtnStart->SetEnabled(true);
+ }
+ }
+ __inputText.Clear();
+ Invalidate(true);
+ __zeroClicked = false;
+ }
+ break;
+ default:
+ break;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+}
+
+
+void
+TimerForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ __userSetValue = TimerPresentationModel::GetInstance()->userValue;
+
+ String textHour, textMinute, textSecond;
+ __userSetValue.SubString(0,2,textHour);
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetText(textHour);
+ }
+
+ __userSetValue.SubString(3,2,textMinute);
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetText(textMinute);
+ }
+
+ __userSetValue.SubString(6,2,textSecond);
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetText(textSecond);
+ }
+
+ if(__isTimerUp == true)
+ {
+ __status = TIMER_RESET;
+ __tmpTick = 0;
+ SetButtonState();
+ }
+
+
+ int canvasWidth = 222;
+ int canvasHeight = 186;
+
+ Bitmap* pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_NORMAL_BG);
+ Bitmap* pbgEditBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_BG);
+ Bitmap* pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_FOCUS_BG);
+
+ Canvas* pCanvas = null;
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ Bitmap* pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ Canvas* pCanvasFocused = null;
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ Bitmap* pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != NULL)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ if (__pBtnSetHours != null)
+ {
+ if(__isHourSelected == false)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+ else
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ if(__isMinuteSelected == false)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+ else
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ if(__isSecondSelected == false)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+ else
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+ }
+
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+ {
+ __pBtnHourDisplay->SetTextSize(130);
+ __pBtnMinuteDisplay->SetTextSize(130);
+ __pBtnSecondDisplay->SetTextSize(130);
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetTextSize(130);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetTextSize(130);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetTextSize(130);
+ }
+
+ }
+ else
+ {
+ __pBtnHourDisplay->SetTextSize(110);
+ __pBtnMinuteDisplay->SetTextSize(110);
+ __pBtnSecondDisplay->SetTextSize(110);
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetTextSize(110);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetTextSize(110);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetTextSize(110);
+ }
+ }
+
+ AppLog("__userSetValue = %S", __userSetValue.GetPointer());
+ if (__userSetValue == "00:00:00")
+ {
+ __pBtnStart->SetEnabled(false);
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ if (pbgEditBitmap != null)
+ {
+ delete pbgEditBitmap;
+ pbgEditBitmap = null;
+ }
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (__status == 0 || __status == TIMER_RESET)
+ {
+ __pBtnStart->SetFocus();
+ }
+ else if (__status == TIMER_STOP)
+ {
+ __pBtnRestart->SetFocus();
+ }
+ else if (__status == TIMER_RESTART || __status == TIMER_START)
+ {
+ __pBtnStop->SetFocus();
+ }
+
+ GetHeader()->SetItemSelected(3);
+ Invalidate(true);
+}
+
+void
+TimerForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ String strHours;
+ String strMinutes;
+ String strSeconds;
+
+ if (__pBtnSetHours != null)
+ {
+ strHours = __pBtnSetHours->GetText();
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ strMinutes = __pBtnSetMinutes->GetText();
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ strSeconds = __pBtnSetSeconds->GetText();
+ }
+
+ __userSetValue.Clear();
+ __userSetValue.Append(strHours);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strMinutes);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strSeconds);
+
+ TimerPresentationModel::GetInstance()->userValue = __userSetValue;
+
+}
+
+void
+TimerForm::OnFormBackRequested(Form& source)
+{
+ __timerResetFlag = 1;
+ UiApp* pApp = UiApp::GetInstance();
+ pApp->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ pApp->GetAppRegistry()->Save();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
+void
+TimerForm::OnTimerExpired(Timer& timer)
+{
+ if (__status == TIMER_STOP || __status == TIMER_RESET)
+ {
+ DisplayTimer();
+ return;
+ }
+
+ if ( __isTimerUp == false )
+ {
+ __pTimer->Start(100);
+ DisplayTimer();
+ }
+ else
+ {
+ AppLog("OnTimerExired : Time is up!");
+ __pInputPanel->SetShowState(true);
+ __pTimerPanel->SetShowState(true);
+ __pTimerStartedPanel->SetShowState(false);
+ __pBtnStop->SetShowState(false);
+ __pBtnReset->SetShowState(false);
+ __pBtnStart->SetShowState(true);
+ __status = 0;
+ __pTimer->Cancel();
+ __count = 0;
+
+ ClockApp* pClock = static_cast<ClockApp*>(ClockApp::GetInstance());
+ pClock->ShowTimerRingingForm();
+ }
+}
+
+void
+TimerForm::SetTimer(const String &inputval)
+{
+ wchar_t ch1, ch2;
+ String buttonText;
+ String check = L"00";
+
+ if (__inputText.GetLength() == 1)
+ {
+ buttonText.Append("0");
+ buttonText.Append(__inputText);
+ }
+ else
+ {
+ if (__inputText.GetLength() == 0)
+ {
+ buttonText.Append("00");
+ }
+ else
+ {
+ buttonText.Append(__inputText);
+ }
+ }
+
+ buttonText.GetCharAt(0, ch1);
+ buttonText.GetCharAt(1, ch2);
+
+ if ((ch1 == '6' || ch1 == '7' || ch1 == '8' || ch1 == '9') && (__isHourSelected == false))
+ {
+ __inputText.Clear();
+ __inputText.Append("59");
+
+ if ( __isHourSelected == true )
+ {
+ __pBtnSetHours->SetText(__inputText);
+ }
+ else if ( __isMinuteSelected == true)
+ {
+ __pBtnSetMinutes->SetText(__inputText);
+ }
+ else if ( __isSecondSelected == true)
+ {
+ __pBtnSetSeconds->SetText(__inputText);
+ }
+ }
+ else
+ {
+ if ( __isHourSelected == true )
+ {
+ __pBtnSetHours->SetText(buttonText);
+ }
+ else if ( __isMinuteSelected == true)
+ {
+ __pBtnSetMinutes->SetText(buttonText);
+ }
+ else if ( __isSecondSelected == true)
+ {
+ __pBtnSetSeconds->SetText(buttonText);
+ }
+ }
+
+ if ( __pBtnSetHours->GetText() == check && __pBtnSetMinutes->GetText() == check && __pBtnSetSeconds->GetText() == check)
+ {
+ __pBtnStart->SetEnabled(false);
+ }
+ else
+ {
+ __pBtnStart->SetEnabled(true);
+ }
+
+ DisplayTimer();
+ Invalidate(true);
+}
+
+
+void
+TimerForm::SetButtonState(void)
+{
+ if ( __status == TIMER_START)
+ {
+ __pBtnStart->SetShowState(false);
+ __pBtnStop->SetShowState(true);
+ __pBtnReset->SetShowState(true);
+ __pBtnRestart->SetShowState(false);
+ __pInputPanel->SetShowState(false);
+ __pTimerPanel->SetShowState(false);
+ __pTimerStartedPanel->SetShowState(true);
+ }
+ else if ( __status == TIMER_RESTART)
+ {
+ __pBtnStart->SetShowState(false);
+ __pBtnStop->SetShowState(true);
+ __pBtnRestart->SetShowState(false);
+ __pBtnReset->SetShowState(true);
+ __pInputPanel->SetShowState(false);
+ __pTimerPanel->SetShowState(false);
+ __pTimerStartedPanel->SetShowState(true);
+
+ }
+ else if ( __status == TIMER_STOP)
+ {
+ __pBtnStart->SetShowState(false);
+ __pBtnStop->SetShowState(false);
+ __pBtnRestart->SetShowState(true);
+ __pBtnReset->SetShowState(true);
+ __pInputPanel->SetShowState(false);
+ __pTimerPanel->SetShowState(false);
+ __pTimerStartedPanel->SetShowState(true);
+ }
+ else if ( __status == TIMER_RESET)
+ {
+ __pBtnStart->SetShowState(true);
+ __pBtnStop->SetShowState(false);
+ __pBtnReset->SetShowState(false);
+ __pBtnRestart->SetShowState(false);
+ __pInputPanel->SetShowState(true);
+ __pTimerPanel->SetShowState(true);
+ __pTimerStartedPanel->SetShowState(false);
+ }
+}
+
+void
+TimerForm::DisplayTimer(void)
+{
+ AppLog("TimerForm::DisplayTimer");
+ long long tick ;
+
+ String hoursText;
+ String minutesText;
+ String secondsText ;
+ String stringTick;
+ String startTick;
+
+ // Get current tick value
+ TimeSpan uptime(0);
+ DateTime date;
+ //SystemTime::GetCurrentTime(date);
+
+ //SystemTime::GetUptime(uptime);
+ //uptime = date.GetTime();
+ //tick = uptime.GetTicks();
+ SystemTime::GetTicks(tick);
+ stringTick.Append(tick);
+ startTick.Append(__startTick);
+ AppLog("stringTick = %ls __startTick = %ls", stringTick.GetPointer(), startTick.GetPointer());
+
+ if (__status == TIMER_START)
+ {
+ tick = __startTick - tick;
+ }
+ else if (__status == TIMER_RESTART)
+ {
+ tick =__tmpTick + __startTick - tick;
+ }
+ else
+ {
+ return;
+ }
+
+ TimeSpan span = static_cast<long>(tick);
+
+ __spanMilliSeconds = span.GetMilliseconds();
+ AppLog("__count = %d", __count);
+ if (__count == 0 || __spanMilliSeconds <= 100)
+ {
+ __spanHours = span.GetHours() + span.GetDays()*24;
+ __spanMinutes = span.GetMinutes();
+ __spanSeconds = span.GetSeconds();
+
+ if (__count == 0 && __spanMilliSeconds > 900)
+ {
+ __spanSeconds++;
+ __spanMilliSeconds = 0;
+
+ if (__spanSeconds == 60)
+ {
+ __spanMinutes++;
+ __spanSeconds = 0;
+
+ if (__spanMinutes == 60)
+ {
+ __spanHours++;
+ __spanMinutes = 0;
+ }
+ }
+ }
+ __count++;
+ }
+ AppLog("__spanSeconds = %d __spanMilliSeconds= %d", __spanSeconds,__spanMilliSeconds);
+ if ( (__spanHours <= 0 && __spanMinutes <= 0 && __spanSeconds <= 0) /*|| (__spanHours <= 0 && __spanMinutes <= 0 && __spanSeconds == 1 &&__spanMilliSeconds <= 0)*/)
+ {
+ __spanSeconds = 0;
+ __spanMinutes = 0;
+ __spanHours = 0;
+ __isTimerUp = true;
+ __pBtnStop->SetEnabled(false);
+ }
+ else
+ {
+ __pBtnStop->SetEnabled(true);
+ __isTimerUp = false;
+ }
+ //ClockApp::__timerTime.SetValue(1,1,1,__spanHours,__spanMinutes,__spanSeconds);
+
+ // Set StopWatch String
+ hoursText.Clear();
+
+ if ( __spanHours < 10 )
+ {
+ hoursText.Append("0");
+ }
+
+ hoursText.Append(__spanHours);
+ __pBtnHourDisplay->SetText(hoursText);
+
+ if ( __spanMinutes < 10 )
+ {
+ minutesText.Append("0");
+ }
+
+ minutesText.Append(__spanMinutes);
+ __pBtnMinuteDisplay->SetText(minutesText);
+
+ if ( __spanSeconds < 10 )
+ {
+ secondsText.Append("0");
+ }
+
+ secondsText.Append(__spanSeconds);
+ __pBtnSecondDisplay->SetText(secondsText);
+ __pBtnSecondDisplay->Invalidate(true);
+ __pTimerPanel->Invalidate(true);
+ //AppLog("TimerForm::DisplayTimer");
+ __pTimerStartedPanel->Invalidate(true);
+
+
+
+ Invalidate(true);
+ return;
+}
+
+void
+TimerForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ if (orientationStatus == ORIENTATION_STATUS_PORTRAIT)
+ {
+ __pBtnHourDisplay->SetTextSize(130);
+ __pBtnMinuteDisplay->SetTextSize(130);
+ __pBtnSecondDisplay->SetTextSize(130);
+ __pBtnSetHours->SetTextSize(130);
+ __pBtnSetMinutes->SetTextSize(130);
+ __pBtnSetSeconds->SetTextSize(130);
+ }
+ else
+ {
+ __pBtnHourDisplay->SetTextSize(110);
+ __pBtnMinuteDisplay->SetTextSize(110);
+ __pBtnSecondDisplay->SetTextSize(110);
+ __pBtnSetHours->SetTextSize(110);
+ __pBtnSetMinutes->SetTextSize(110);
+ __pBtnSetSeconds->SetTextSize(110);
+ }
+ SetNumberBitmaps();
+}
+
+void
+TimerForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ if(requestId == 10000)
+ {
+ __status = 0;
+ __isTimerUp = true;
+ __pTimer->Cancel();
+ }
+}
+
+void
+TimerForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ if ( key == L"http://tizen.org/setting/locale.date_time")
+ {
+ DateTime remainingTime;
+ String strHours, strMinutes, strSeconds;
+ String startTick, tempTick, restartTick, stopTick, registeredTime;
+ remainingTime.AddHours(__spanHours);
+ remainingTime.AddMinutes(__spanMinutes);
+ remainingTime.AddSeconds(__spanSeconds);
+
+ startTick.Append(__startTick);
+ tempTick.Append(__tmpTick);
+ restartTick.Append(__restartTick);
+ stopTick.Append(__stopTick);
+ registeredTime.Append(__registeredTime.ToString());
+ TimerPresentationModel::GetInstance()->SetTimerValue(remainingTime, __status, startTick, tempTick, restartTick, stopTick, __userSetValue, registeredTime);
+ }
+}
+
+void
+TimerForm::SetNumberBitmaps(void)
+{
+ Bitmap* pNormalBackground = AppResource::GetInstance()->GetBitmapN("Timer_Button.#.png");
+ Bitmap* pPressedBackground = AppResource::GetInstance()->GetBitmapN("Timer_Button_Pressed.#.png");
+ Bitmap* pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_00.png");
+ Point startPos(0, 0);
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton0->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton0->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton0->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton0->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton0->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton0->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_01.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton1->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton1->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton1->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton1->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton1->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton1->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_02.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton2->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton2->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton2->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton2->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton2->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton2->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_03.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton3->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton3->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton3->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton3->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton3->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton3->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_04.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton4->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton4->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton4->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton4->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton4->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton4->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_05.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton5->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton5->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton5->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton5->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton5->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton5->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_06.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton6->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton6->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton6->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton6->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton6->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton6->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_07.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton7->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton7->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton7->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton7->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton7->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton7->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_08.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton8->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton8->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton8->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton8->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton8->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton8->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_09.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButton9->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButton9->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButton9->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButton9->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButton9->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButton9->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ pNormalBitmap = AppResource::GetInstance()->GetBitmapN(L"P03_timer_keypad_number_clear.png");
+ if(pNormalBitmap != null)
+ {
+ startPos.x = (__pButtonClr->GetWidth() - pNormalBitmap->GetWidth())/2;
+ startPos.y = (__pButtonClr->GetHeight() - pNormalBitmap->GetHeight())/2;
+ __pButtonClr->SetNormalBitmap(startPos, *pNormalBitmap);
+ __pButtonClr->SetPressedBitmap(startPos, *pNormalBitmap);
+ __pButtonClr->SetNormalBackgroundBitmap(*pNormalBackground);
+ __pButtonClr->SetPressedBackgroundBitmap(*pPressedBackground);
+ delete pNormalBitmap;
+ }
+ delete pNormalBackground;
+ delete pPressedBackground;
+}
+
+void
+TimerForm::SetButtonFocus(void)
+{
+ int canvasWidth = 222;
+ int canvasHeight = 186;
+
+ Bitmap* pbgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_NORMAL_BG);
+ Bitmap* pbgEditBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_BG);
+ Bitmap* pbgFocusBitmap = AppResource::GetInstance()->GetBitmapN(IDB_TIMER_FOCUS_BG);
+
+ Canvas* pCanvas = null;
+ pCanvas = new (std::nothrow) Canvas();
+ pCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvas->DrawBitmap(Point(0,0),*pbgBitmap);
+ pCanvas->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ Bitmap* pFinalBitmap = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmap != NULL)
+ {
+ pFinalBitmap->Construct(*pCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvas;
+ }
+
+ Canvas* pCanvasFocused = null;
+ pCanvasFocused = new (std::nothrow) Canvas();
+ pCanvasFocused->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgFocusBitmap);
+ pCanvasFocused->DrawBitmap(Point(0,0),*pbgEditBitmap);
+
+ Bitmap* pFinalBitmapFocused = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapFocused != NULL)
+ {
+ pFinalBitmapFocused->Construct(*pCanvasFocused,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasFocused;
+ }
+
+ if (__inputText.GetLength() == 2)
+ {
+ if ( __isHourSelected == true )
+ {
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ __isHourSelected = false;
+ __isMinuteSelected = true;
+ __isSecondSelected = false;
+ }
+ else if ( __isMinuteSelected == true)
+ {
+
+ if (__pBtnSetHours != null)
+ {
+ __pBtnSetHours->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ __pBtnSetMinutes->SetNormalBackgroundBitmap(*pFinalBitmap);
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ __pBtnSetSeconds->SetNormalBackgroundBitmap(*pFinalBitmapFocused);
+ }
+
+ __isHourSelected = false;
+ __isMinuteSelected = false;
+ __isSecondSelected = true;
+ }
+ }
+
+ if (pFinalBitmapFocused != null)
+ {
+ delete pFinalBitmapFocused;
+ pFinalBitmapFocused = null;
+ }
+
+ if (pFinalBitmap != null)
+ {
+ delete pFinalBitmap;
+ pFinalBitmap = null;
+ }
+
+ if (pbgBitmap != null)
+ {
+ delete pbgBitmap;
+ pbgBitmap = null;
+ }
+
+ if (pbgEditBitmap != null)
+ {
+ delete pbgEditBitmap;
+ pbgEditBitmap = null;
+ }
+
+ if (pbgFocusBitmap != null)
+ {
+ delete pbgFocusBitmap;
+ pbgFocusBitmap = null;
+ }
+}
+
+void TimerForm::OnScreenOff(void)
+{
+ result r = E_SUCCESS;
+ DateTime remainingTime;
+ String timeSet = L"";
+ String startTick = L"";
+ String tempTick = L"";
+ String restartTick = L"";
+ String stopTick = L"";
+ String registeredTime;
+ String* str2;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ UiApp::GetInstance()->GetAppRegistry()->Get(__timerResetKey, __timerResetFlag);
+
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ return;
+ }
+
+ str2->Append("'");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+
+ if (__timerResetFlag != 1)
+ {
+ __status = TIMER_RESET;
+ __startTick = 0;
+ __tmpTick = 0;
+ __restartTick = 0;
+ __stopTick = 0;
+ remainingTime.SetValue(9999,1,1);
+ AppLog("the string value is %ls",str2->GetPointer());
+ AppManager::GetInstance()->UnregisterAppLaunch(ClockApp::GetInstance()->GetAppId(), str2);
+ }
+ else
+ {
+ String strHours;
+ String strMinutes;
+ String strSeconds;
+
+ AppLog("__status = %d", __status);
+ if (__status == 0 || __status == TIMER_RESET)
+ {
+ int hours, min, sec;
+ Integer::Parse(__pBtnSetHours->GetText(), hours);
+ Integer::Parse(__pBtnSetMinutes->GetText(), min);
+ Integer::Parse(__pBtnSetSeconds->GetText(), sec);
+
+ remainingTime.AddHours(hours);
+ remainingTime.AddMinutes(min);
+ remainingTime.AddSeconds(sec);
+
+ AppLog("remainingTime = %ls", remainingTime.ToString().GetPointer());
+ }
+ else
+ {
+ remainingTime.AddHours(__spanHours);
+ remainingTime.AddMinutes(__spanMinutes);
+ remainingTime.AddSeconds(__spanSeconds);
+ }
+
+ if (__pBtnSetHours != null)
+ {
+ strHours = __pBtnSetHours->GetText();
+ }
+
+ if (__pBtnSetMinutes != null)
+ {
+ strMinutes = __pBtnSetMinutes->GetText();
+ }
+
+ if (__pBtnSetSeconds != null)
+ {
+ strSeconds = __pBtnSetSeconds->GetText();
+ }
+
+ __userSetValue.Clear();
+ __userSetValue.Append(strHours);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strMinutes);
+ __userSetValue.Append(":");
+ __userSetValue.Append(strSeconds);
+
+ if (__status == TIMER_RESTART || __status == TIMER_START)
+ {
+ DateTime currentTime;
+ String *str1 = null;
+ String *str2 = null;
+ int cmp = 0;
+ AppManager* pAppManager = AppManager::GetInstance();
+ App* pApp = App::GetInstance();
+
+ DataServiceProvider::GetInstance()->GetCurrentDateTime(currentTime);
+ __registeredTime = currentTime;
+
+ //AppLog("hours = %d minutes = %d seconds = %d", hours, minutes, seconds);
+ __registeredTime.AddHours(__spanHours);
+ __registeredTime.AddMinutes(__spanMinutes);
+ __registeredTime.AddSeconds(__spanSeconds);
+ cmp = DateTime::Compare(currentTime, __registeredTime);
+ AppLog("currentTime = %ls timerTime = %ls", currentTime.ToString().GetPointer(), __registeredTime.ToString().GetPointer());
+
+ if(cmp <=0)
+ {
+ AppLog("came here");
+ str1 = new (std::nothrow) String(pApp->GetAppId());
+
+ if (str1 == null)
+ {
+ return;
+ }
+
+ str2 = new (std::nothrow) String("DateTime=");
+
+ if (str2 == null)
+ {
+ delete str1;
+ str1 = null;
+
+ return;
+ }
+
+ str2->Append("'");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+
+ String *timerType = new String("Timer");
+ ArrayList* pArgList = new (std::nothrow) ArrayList();
+
+ if (pArgList != null)
+ {
+ pArgList->Construct();
+ pArgList->Add(timerType);
+ }
+
+ r = pAppManager->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("__registeredTime result = %s", GetErrorMessage(r));
+ if (IsFailed(r))
+ {
+ AppLog("coming here");
+ __registeredTime.AddSeconds(1);
+
+ str2->Clear();
+ str2->Append("DateTime='");
+ str2->Append(__registeredTime.ToString());
+ str2->Append("'");
+ r = pAppManager->RegisterAppLaunch(*str1,*str2, pArgList, AppManager::LAUNCH_OPTION_DEFAULT);
+ AppLog("__registeredTime result = %s", GetErrorMessage(r));
+ }
+
+ AppLog("Reg __registeredTime = %ls", __registeredTime.ToString().GetPointer());
+
+ if (str1 != null)
+ {
+ delete str1;
+ str1 = null;
+ }
+
+ if (str2 != null)
+ {
+ delete str2;
+ str2 = null;
+ }
+ }
+ }
+ }
+
+ delete str2;
+
+ startTick.Append(__startTick);
+ tempTick.Append(__tmpTick);
+ restartTick.Append(__restartTick);
+ stopTick.Append(__stopTick);
+ registeredTime.Append(__registeredTime.ToString());
+ pTimerPresentationModel->SetTimerValue(remainingTime, __status, startTick, tempTick, restartTick, stopTick, __userSetValue, registeredTime);
+ AppLog("remainingTime = %ls __status = %d", remainingTime.ToString().GetPointer(), __status);
+
+ if (__pTimer != null)
+ {
+ __pTimer->Cancel();
+ }
+
+ int focusValue;
+ if (__isHourSelected)
+ {
+ focusValue = 0;
+ }
+ else if (__isMinuteSelected)
+ {
+ focusValue = 1;
+ }
+ else
+ {
+ focusValue = 2;
+ }
+
+ r = UiApp::GetInstance()->GetAppRegistry()->Set(__focusKey, focusValue);
+ if (r == E_KEY_NOT_FOUND)
+ {
+ UiApp::GetInstance()->GetAppRegistry()->Add(__focusKey, focusValue);
+ }
+ UiApp::GetInstance()->GetAppRegistry()->Save();
+
+ //SettingInfo::RemoveSettingEventListener(*this);
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTimerPresentationModel.cpp
+ * @brief This file contains the definitions of the TimerPresentationModel Class.
+ */
+
+#include <cstdlib>
+#include <FApp.h>
+#include <FBase.h>
+
+#include "ClkAlarmPresentationModel.h"
+#include "ClkTimerPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+
+TimerPresentationModel* TimerPresentationModel::__pInstance = NULL;
+
+TimerPresentationModel::TimerPresentationModel()
+:__focusKey("focusValue")
+ ,__nameKey("timerTime")
+ ,__pAppRegistry(null)
+ ,__remainingTimeKey("remainingTime")
+ ,__restartTickKey("restartTick")
+ ,__statusKey("timerStatus")
+ ,__startTickKey("startTick")
+ ,__stopTickKey("stopTick")
+ ,__tempTickKey("tempTick")
+ ,__userSetValueKey("userSetValue")
+,__registeredValueKey("registeredValue")
+,userValue("00:01:00")
+{
+
+}
+
+TimerPresentationModel::~TimerPresentationModel()
+{
+
+}
+
+void
+TimerPresentationModel::SetTimerValue(const DateTime& remainingTime, int& status, String& startTick, String& tempTick, String& restartTick, String& stopTick, String& userSetValue, String& registeredValue)
+{
+ result r = E_FAILURE;
+ DateTime ringingTime;
+ String time;
+ DataServiceProvider* pDataServiceProvider= DataServiceProvider::GetInstance();
+
+ if ( pDataServiceProvider == NULL )
+ {
+ return;
+ }
+
+ pDataServiceProvider->GetCurrentDateTime(ringingTime);
+ ringingTime.AddHours(remainingTime.GetHour());
+ ringingTime.AddMinutes(remainingTime.GetMinute());
+ ringingTime.AddSeconds(remainingTime.GetSecond());
+ AppLog("remainingTime = %ls ringing time = %ls", remainingTime.ToString().GetPointer(), ringingTime.ToString().GetPointer());
+
+ if(__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__remainingTimeKey, remainingTime.ToString());
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__remainingTimeKey, remainingTime.ToString());
+ }
+
+ time = ringingTime.ToString();
+ r = __pAppRegistry->Set(__nameKey, time);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__nameKey, time);
+ }
+
+ r = __pAppRegistry->Set(__statusKey, status);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__statusKey, status);
+ }
+
+ r = __pAppRegistry->Set(__startTickKey, startTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__startTickKey, startTick);
+ }
+
+ r = __pAppRegistry->Set(__tempTickKey, tempTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__tempTickKey, tempTick);
+ }
+
+ r = __pAppRegistry->Set(__restartTickKey, restartTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__restartTickKey, restartTick);
+ }
+
+ r = __pAppRegistry->Set(__stopTickKey, stopTick);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__stopTickKey, stopTick);
+ }
+
+ r = __pAppRegistry->Set(__userSetValueKey, userSetValue);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__userSetValueKey, userSetValue);
+ }
+
+ r = __pAppRegistry->Set(__registeredValueKey, registeredValue);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__registeredValueKey, registeredValue);
+ }
+
+ __pAppRegistry->Save();
+}
+
+void
+TimerPresentationModel::GetTimerValue(DateTime& timerValue, String& remainingTime, int& status, String& startTick, String& tempTick, String& restartTick, String& stopTick, String& userSetValue, String& registeredValue)
+{
+ AppLog("TimerPresentationModel::GetTimerValue");
+ result r = E_FAILURE;
+ DateTime currentTime;
+ DateTime time;
+ String ringingTime;
+ DataServiceProvider* pDataServiceProvider= DataServiceProvider::GetInstance();
+
+ if(__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ pDataServiceProvider->GetCurrentDateTime(currentTime);
+ r = __pAppRegistry->Get(__nameKey, ringingTime);
+
+ if(IsFailed(r))
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ DateTime::Parse(ringingTime, time);
+ AppLog("ringing time = %ls remainningTime = %ls currentTime = %ls",ringingTime.GetPointer(), time.ToString().GetPointer(), currentTime.ToString().GetPointer());
+
+ timerValue.AddHours(time.GetHour() - currentTime.GetHour());
+ timerValue.AddMinutes(time.GetMinute() - currentTime.GetMinute());
+ timerValue.AddSeconds(time.GetSecond() - currentTime.GetSecond());
+ r = __pAppRegistry->Get(__statusKey, status);
+
+ if( IsFailed(r))
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ AppLog("TimerPresentationModel::GetTimerValue end timerValue = %ls status = %d", timerValue.ToString().GetPointer(), status);
+
+ r = __pAppRegistry->Get(__userSetValueKey, userSetValue);
+
+ if ( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__remainingTimeKey, remainingTime);
+
+ if ( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ if (status != 0)
+ {
+ r = __pAppRegistry->Get(__startTickKey, startTick);
+
+ if ( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__tempTickKey, tempTick);
+
+ if( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__restartTickKey, restartTick);
+
+ if ( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__stopTickKey, stopTick);
+
+ if ( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ r = __pAppRegistry->Get(__registeredValueKey, registeredValue);
+
+ if ( IsFailed(r) )
+ {
+ AppLog("TimerPresentationModel::GetTimerValue result = %s", GetErrorMessage(r));
+ }
+
+ }
+ AppLog("TimerPresentationModel::GetTimerValue end");
+}
+
+void
+TimerPresentationModel::SetStatus(int& status)
+{
+ result r = E_FAILURE;
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__statusKey, status);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__statusKey, status);
+ }
+}
+
+void
+TimerPresentationModel::SetTimerTime(const DateTime& dateTime)
+{
+ result r = E_FAILURE;
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__remainingTimeKey, dateTime.ToString());
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__remainingTimeKey, dateTime.ToString());
+ }
+}
+
+void
+TimerPresentationModel::SetFocus(const int& value)
+{
+ result r = E_FAILURE;
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__focusKey, value);
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__focusKey, value);
+ }
+}
+void
+TimerPresentationModel::SetRegisteredTime(DateTime& dateTime)
+{
+ result r = E_FAILURE;
+ String time;
+
+ if (__pAppRegistry == null)
+ {
+ __pAppRegistry = UiApp::GetInstance()->GetAppRegistry();
+ }
+
+ r = __pAppRegistry->Set(__registeredValueKey, dateTime.ToString());
+
+ if (r == E_KEY_NOT_FOUND)
+ {
+ __pAppRegistry->Add(__registeredValueKey, dateTime.ToString());
+ }
+
+ __pAppRegistry->Save();
+}
+
+TimerPresentationModel*
+TimerPresentationModel::GetInstance(void)
+{
+ if (__pInstance == null)
+ {
+ CreateInstance();
+ }
+
+ return __pInstance;
+}
+
+result
+TimerPresentationModel::Construct(void)
+{
+ return E_SUCCESS;
+}
+
+void
+TimerPresentationModel::CreateInstance(void)
+{
+ __pInstance = new (std::nothrow) TimerPresentationModel();
+ result r = __pInstance->Construct();
+ if (IsFailed(r))
+ {
+ delete __pInstance;
+ __pInstance = null;
+ return;
+ }
+
+ std::atexit(DestroyInstance);
+}
+
+void
+TimerPresentationModel::DestroyInstance(void)
+{
+ delete __pInstance;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTimerRingingForm.cpp
+ * @brief Used to define TimerRingingForm
+ */
+
+#include <FApp.h>
+#include <FAppUiApp.h>
+#include <FBase.h>
+#include <FMedia.h>
+#include <FUi.h>
+
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkSceneRegister.h"
+#include "ClkTimerPresentationModel.h"
+#include "ClkTimerRingingForm.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Media;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::System;
+using namespace Tizen::Telephony;
+
+static const int IDA_TABBAR_ITEM1_STOP = 101;
+const RequestId REQUEST_ID_SETZORDER = 10000;
+const RequestId REQUEST_ID_NEXTSCENEEXIST = 10001;
+
+TimerRingingForm::TimerRingingForm()
+:__nextSceneExist(false)
+,__pPlayer(null)
+,__pStopButton(null)
+,__pTimer(null)
+,__pTimerTimeLabel(null)
+,__timerCalledCount(0)
+,__timerExpired(false)
+{
+ // TODO Auto-generated constructor stub
+
+}
+
+TimerRingingForm::~TimerRingingForm() {
+ // TODO Auto-generated destructor stub
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ __pTimer = null;
+ }
+}
+
+bool
+TimerRingingForm::Initialize()
+{
+ Form::Construct(L"IDL_TIMER_RINGING_FORM");
+
+ return true;
+}
+
+result
+TimerRingingForm::OnInitializing(void)
+{
+ result r = E_FAILURE;
+
+
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->AddSceneEventListener(IDSCN_TIMER_RINGING, *this);
+
+ if (IsFailed(r))
+ {
+ AppLogException("OnInitialized failed with %s", GetErrorMessage(r));
+ return r;
+ }
+ }
+
+ AddOrientationEventListener(*this);
+ SettingInfo::AddSettingEventListener(*this);
+ PowerManager::AddScreenEventListener(*this);
+
+ __pStopButton = static_cast< Button* >(GetControl("IDC_BUTTON1"));
+
+ if (__pStopButton != null)
+ {
+ __pStopButton->SetActionId(IDA_TABBAR_ITEM1_STOP);
+ __pStopButton->AddActionEventListener(*this);
+ }
+
+ __pTimerTimeLabel = static_cast< Label* >(GetControl("IDC_LABEL2"));
+
+ __callManager.Construct(*this);
+
+ return r;
+}
+
+result
+TimerRingingForm::OnTerminating(void)
+{
+ SettingInfo::RemoveSettingEventListener(*this);
+ PowerManager::RemoveScreenEventListener(*this);
+ return E_SUCCESS;
+}
+void
+TimerRingingForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ int timerExpired = 1000;
+ String* str = null;
+ DateTime timerValue;
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick;
+ int status;
+ String userSetValue;
+ String remainingTime;
+ String registeredTime;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+ pTimerPresentationModel->GetTimerValue(timerValue, remainingTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+ String filePath;
+
+ if (__nextSceneExist && __timerExpired)
+ {
+ SendUserEvent(REQUEST_ID_NEXTSCENEEXIST, null);
+ return;
+ }
+
+ if (__nextSceneExist && !__timerExpired)
+ {
+ __pPlayer->Play();
+ }
+ __nextSceneExist = false;
+
+ if(__pTimerTimeLabel != null)
+ {
+ if (pArgs != null)
+ {
+ str = dynamic_cast<String*>(pArgs->GetAt(0));
+
+ if ( str != NULL)
+ {
+ AppLog("str = %ls", str->GetPointer());
+
+ if(str->Contains("::") == true)
+ {
+ __pTimerTimeLabel->SetText(userSetValue);
+ }
+ else
+ {
+ __pTimerTimeLabel->SetText(*str);
+ }
+ }
+
+ filePath = Tizen::App::App::GetInstance()->GetAppRootPath() + L"data/Walk in the forest.mp3";
+ if(__pPlayer != null)
+ {
+ delete __pPlayer;
+ }
+
+ __pPlayer = new (std::nothrow) Player();
+ __pPlayer->Construct(*this);
+ __pPlayer->OpenFile(filePath, false);
+
+ __pPlayer->SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ __pPlayer->SetLooping(true);
+ __pPlayer->Play();
+
+
+ __pTimer = new (std::nothrow) Timer();
+ __pTimer->Construct(*this);
+ __pTimer->Start(timerExpired); // to call OnTimerExpired after 1 minute
+ }
+ }
+
+ SendUserEvent(REQUEST_ID_SETZORDER, null);
+
+}
+
+void
+TimerRingingForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ result r = E_FAILURE;
+
+ if (requestId == REQUEST_ID_SETZORDER)
+ {
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ Show();
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ Show();
+ }
+ }
+ else if (requestId == REQUEST_ID_NEXTSCENEEXIST)
+ {
+ r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+ if( r == E_UNDERFLOW)
+ {
+ UiApp::GetInstance()->Terminate();
+ }
+ }
+}
+
+void
+TimerRingingForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+
+ if (nextSceneId == IDSCN_ALARM_RINGING || nextSceneId == IDSCN_ALARM_RINGING_LOCK)
+ {
+ __nextSceneExist = true;
+ }
+
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+ {
+ __pTimerTimeLabel->SetTextConfig(140, LABEL_TEXT_STYLE_NORMAL);
+ }
+ else
+ {
+ __pTimerTimeLabel->SetTextConfig(100, LABEL_TEXT_STYLE_NORMAL);
+ }
+
+/* if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ __pTimer = null;
+ }*/
+ if(__pPlayer != null)
+ {
+ if (__nextSceneExist)
+ {
+ __pPlayer->Pause();
+ }
+ else
+ {
+ __pPlayer->Stop();
+ __pPlayer->Close();
+ delete __pPlayer;
+ __pPlayer = null;
+ }
+ }
+}
+
+void
+TimerRingingForm::OnActionPerformed(const Control& source, int actionId)
+{
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ UiApp* pApp = null;
+/* DateTime dateTime;
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick;
+ DateTime dateTime;
+ String userSetValue;
+ String registeredTime;*/
+ int status = 0;
+
+ //startTick.Append(0);
+ //tempTick.Append(0);
+ //userSetValue = TimerPresentationModel::GetInstance()->userValue;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel == null )
+ {
+ return;
+ }
+
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ __pTimer = null;
+ }
+
+ switch (actionId)
+ {
+ case IDA_TABBAR_ITEM1_STOP:
+ //dateTime.SetValue(9999,1,1);
+ //pTimerPresentationModel->SetTimerValue(dateTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+
+ pTimerPresentationModel->SetStatus(status);
+ //pTimerPresentationModel->SetTimerTime(dateTime);
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
+TimerRingingForm::OnTimerExpired(Timer& timer)
+{
+ if (__timerCalledCount >= 60)
+ {
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ UiApp* pApp = null;
+ int status = 0;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+ pTimerPresentationModel->SetStatus(status);
+ pSceneManager = SceneManager::GetInstance();
+ __timerExpired = true;
+ PowerManager::KeepScreenOnState(false);
+
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ __pTimer = null;
+ }
+
+ if (pSceneManager != null)
+ {
+ if (!__nextSceneExist)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+ }
+ }
+ else
+ {
+ __pTimer->Start(1000);
+ __timerCalledCount++;
+ PowerManager::KeepScreenOnState(true,false);
+ }
+}
+
+void
+TimerRingingForm::OnTelephonyCallStatusChangedN (CallStatus callStatus, CallInfo *pCallInfo)
+{
+ AppLog("callStatus %d", callStatus);
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if(callStatus == CALL_STATUS_RINGING)
+ {
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+ }
+
+}
+
+void
+TimerRingingForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ if (orientationStatus == ORIENTATION_STATUS_PORTRAIT)
+ {
+ __pTimerTimeLabel->SetTextConfig(140, LABEL_TEXT_STYLE_NORMAL);
+ }
+ else
+ {
+ __pTimerTimeLabel->SetTextConfig(100, LABEL_TEXT_STYLE_NORMAL);
+ }
+}
+
+void
+TimerRingingForm::OnPlayerAudioFocusChanged (void)
+{
+ __pPlayer->Play();
+}
+
+void
+TimerRingingForm::OnPlayerReleased(void)
+{
+ if (__pPlayer->GetState() == PLAYER_STATE_PAUSED)
+ {
+ __pPlayer->Play();
+ }
+}
+void
+TimerRingingForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ /*if (__pPlayer)
+ {
+ __pPlayer->SetVolume(15);
+ }*/
+}
+
+void
+TimerRingingForm::OnScreenOff(void)
+{
+ AppLog("AlarmRingingForm::OnScreenOff");
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ UiApp* pApp = null;
+ int status = 0;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel == null )
+ {
+ return;
+ }
+ pTimerPresentationModel->SetStatus(status);
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+}
+
+
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTimerRingingLockForm.cpp
+ * @brief Used to define TimerRingingLockForm
+ */
+
+#include <FApp.h>
+#include <FAppUiApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FMedia.h>
+#include <FUi.h>
+
+#include "ClkAlarmRingingLockPanel.h"
+#include "ClkClockApp.h"
+#include "ClkCommonLib.h"
+#include "ClkSceneRegister.h"
+#include "ClkTimerPresentationModel.h"
+#include "ClkTimerRingingLockForm.h"
+#include "ClkTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Media;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Telephony;
+
+static const int IDA_TABBAR_ITEM1_STOP = 101;
+const RequestId REQUEST_ID_SETZORDER = 10000;
+
+TimerRingingLockForm::TimerRingingLockForm()
+: __pAlarmRingingSnoozeOffPanel(null)
+, __pTimer(null)
+, __pTimerTimeLabel(null)
+,__timerCalledCount(0)
+{
+ // TODO Auto-generated constructor stub
+
+}
+
+TimerRingingLockForm::~TimerRingingLockForm()
+{
+ // TODO Auto-generated destructor stub
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ __pTimer = null;
+ }
+}
+
+bool
+TimerRingingLockForm::Initialize()
+{
+ Form::Construct(L"IDL_TIMER_RINGING_LOCK_FORM");
+
+ return true;
+}
+
+result
+TimerRingingLockForm::OnInitializing(void)
+{
+ result r = E_FAILURE;
+ Rectangle snoozeRect;
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->AddSceneEventListener(IDSCN_TIMER_RINGING_LOCK, *this);
+
+ if (IsFailed(r))
+ {
+ AppLogException("OnInitialized failed with %s", GetErrorMessage(r));
+ return r;
+ }
+ }
+
+ AddOrientationEventListener(*this);
+ PowerManager::AddScreenEventListener(*this);
+ __pTimerTimeLabel = static_cast<Label*>(GetControl("IDC_LABEL2"));
+
+ snoozeRect.x = 0;
+ snoozeRect.y = GetHeight() - Y_RINGER_LOCK_PANEL_OFFSET;
+ snoozeRect.width = GetWidth();
+ snoozeRect.height = H_RINGER_LOCK_PANEL;
+
+ __pAlarmRingingSnoozeOffPanel = new (std::nothrow) AlarmRingingSnoozeOffPanel();
+ __pAlarmRingingSnoozeOffPanel->Construct(snoozeRect);
+ __pAlarmRingingSnoozeOffPanel->SetAlarmRinignigCommandListener(this);
+ AddControl(__pAlarmRingingSnoozeOffPanel);
+ __pAlarmRingingSnoozeOffPanel->SetBounds(snoozeRect);
+
+ __callManager.Construct(*this);
+
+ return r;
+}
+
+result
+TimerRingingLockForm::OnTerminating(void)
+{
+ PowerManager::RemoveScreenEventListener(*this);
+ return E_SUCCESS;
+}
+
+void
+TimerRingingLockForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ int timerExpired = 1000;
+ String* str = null;
+ DateTime timerValue;
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick;
+ int status;
+ String userSetValue;
+ String remainingTime;
+ String registeredTime;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel != NULL)
+ {
+ pTimerPresentationModel->GetTimerValue(timerValue,remainingTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+ }
+
+ if (pArgs != null)
+ {
+ str = dynamic_cast<String*>(pArgs->GetAt(0));
+
+ if ( str != NULL )
+ {
+ AppLog("str = %ls", str->GetPointer());
+ if(str->Contains("::") == true)
+ {
+ __pTimerTimeLabel->SetText(userSetValue);
+ }
+ else
+ {
+ __pTimerTimeLabel->SetText(*str);
+ }
+ }
+
+ __pTimer = new (std::nothrow) Timer();
+ __pTimer->Construct(*this);
+ __pTimer->Start(timerExpired);// to call OnTimerExpired after 1 minute
+
+ String filePath = Tizen::App::App::GetInstance()->GetAppRootPath() + L"data/Walk in the forest.mp3";
+ __player.Construct(*this);
+ __player.OpenFile(filePath, false);
+ __player.SetAudioStreamType(AUDIO_STREAM_TYPE_MEDIA);
+ __player.SetLooping(true);
+ __player.Play();
+ }
+
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
+ {
+ __pTimerTimeLabel->SetTextConfig(140, LABEL_TEXT_STYLE_NORMAL);
+ }
+ else
+ {
+ __pTimerTimeLabel->SetTextConfig(100, LABEL_TEXT_STYLE_NORMAL);
+ }
+
+ Invalidate(true);
+ Show();
+
+ SendUserEvent(REQUEST_ID_SETZORDER, null);
+
+}
+
+void
+TimerRingingLockForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ if (requestId == REQUEST_ID_SETZORDER)
+ {
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ }
+ }
+}
+
+void
+TimerRingingLockForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+
+ if(__pTimer != null)
+ {
+ __pTimer->Cancel();
+ delete __pTimer;
+ __pTimer = null;
+ }
+}
+
+void
+TimerRingingLockForm::OnAlarmRingingLockEvent(AlarmRingingCommandId commandId)
+{
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ UiApp* pApp = null;
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick;
+ DateTime dateTime;
+ String userSetValue;
+ String registeredTime;
+ int status = 0;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel != NULL)
+ {
+ pTimerPresentationModel->SetTimerValue(dateTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+}
+
+void
+TimerRingingLockForm::OnTimerExpired(Timer& timer)
+{
+ AppLog("TimerRingingLockForm::OnTimerExpired");
+ if (__timerCalledCount >= 60)
+ {
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ UiApp* pApp = null;
+ String startTick;
+ String tempTick;
+ String restartTick;
+ String stopTick;
+ DateTime dateTime;
+ String userSetValue;
+ int status = 0;
+ String registeredTime;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel != NULL)
+ {
+ pTimerPresentationModel->SetTimerValue(dateTime, status, startTick, tempTick, restartTick, stopTick, userSetValue, registeredTime);
+ }
+
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+ }
+ else
+ {
+ __pTimer->Start(1000);
+ __timerCalledCount++;
+ PowerManager::KeepScreenOnState(true,false);
+ }
+}
+
+void
+TimerRingingLockForm::OnTelephonyCallStatusChangedN (CallStatus callStatus, CallInfo *pCallInfo)
+{
+ AppLog("callStatus %d", callStatus);
+ Frame* pFrame = UiApp::GetInstance()->GetFrame(L"Clock");
+
+ if(callStatus != CALL_STATUS_IDLE)
+ {
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
+ }
+ }
+ else
+ {
+ if (pFrame != null)
+ {
+ pFrame->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
+ }
+ }
+}
+
+void
+TimerRingingLockForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ Rectangle snoozeRect;
+
+ if (orientationStatus == ORIENTATION_STATUS_PORTRAIT)
+ {
+ snoozeRect.y = GetHeight() - Y_RINGER_LOCK_PANEL_OFFSET;
+ __pTimerTimeLabel->SetTextConfig(140, LABEL_TEXT_STYLE_NORMAL);
+ }
+ else
+ {
+ snoozeRect.y = GetHeight() - 210;
+ __pTimerTimeLabel->SetTextConfig(100, LABEL_TEXT_STYLE_NORMAL);
+ }
+
+ snoozeRect.x = 0;
+ snoozeRect.width = GetWidth();
+ snoozeRect.height = H_RINGER_LOCK_PANEL;
+ __pAlarmRingingSnoozeOffPanel->SetBounds(snoozeRect);
+}
+
+void
+TimerRingingLockForm::OnScreenOff(void)
+{
+ AppLog("TimerRingingLockForm::OnScreenOff");
+ result r = E_FAILURE;
+ SceneManager* pSceneManager = null;
+ UiApp* pApp = null;
+ int status = 0;
+ TimerPresentationModel* pTimerPresentationModel = TimerPresentationModel::GetInstance();
+
+ if ( pTimerPresentationModel == null )
+ {
+ return;
+ }
+ pTimerPresentationModel->SetStatus(status);
+ pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ r = pSceneManager->GoBackward(BackwardSceneTransition());
+
+ if(IsFailed(r))
+ {
+ pApp = UiApp::GetInstance();
+ pApp->Terminate();
+ }
+ }
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ToggleCustomItem.cpp
+ * @brief The ToggleCustomItem
+ *
+ */
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUiControls.h>
+
+#include "ClkToggleCustomItem.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+
+static const int IDA_FORMAT_STRING = 101;
+
+ToggleCustomItem::ToggleCustomItem(void)
+:__height(0),
+ __text(""),
+ __width(0)
+{
+
+}
+
+ToggleCustomItem::~ToggleCustomItem(void)
+{
+
+}
+
+result
+ToggleCustomItem::Construct(int width, int height)
+{
+ result r = E_FAILURE;
+
+ __width = width;
+ __height = height;
+ const Dimension dim(width, height);
+ r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_ONOFF_SLIDING);
+
+ return r;
+}
+
+void
+ToggleCustomItem::SetText(String& text)
+{
+ __text = text;
+}
+
+String
+ToggleCustomItem::GetText(void)
+{
+ return __text;
+}
+
+result
+ToggleCustomItem::Make(void)
+{
+ EnrichedText* pMainEnText = null;
+ TextElement* pMainTextElement = null;
+ Font* pMainTextFont = null;
+ int mainTextFont = 32;
+ int textX = 80;
+ int textY = 40;
+ Color textColor = Color(128, 128, 128);
+ Color pressedTextColor = Color(249, 249, 249);
+ int X_Margin = 26;
+ int Y_Margin = 40;
+ int itemWidth = __width - 60 ;
+
+ pMainEnText = new (std::nothrow) EnrichedText();
+ pMainEnText->Construct(Dimension(__width - textX, textY));
+
+ pMainTextElement = new (std::nothrow) TextElement();
+ pMainTextElement->Construct(__text);
+
+ pMainTextFont = new (std::nothrow) Font();
+ pMainTextFont->Construct(FONT_STYLE_BOLD, mainTextFont);
+
+ pMainTextElement->SetFont(*pMainTextFont);
+ pMainTextElement->SetTextColor(textColor);
+ pMainEnText->Add(*pMainTextElement);
+
+
+ AddElement(Rectangle(X_Margin, Y_Margin, itemWidth , __height), IDA_FORMAT_STRING, *pMainEnText);
+ //SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
+
+ delete pMainTextFont;
+ pMainEnText->RemoveAllTextElements(true);
+ delete pMainEnText;
+
+
+ return E_SUCCESS;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkTypes.h
+ * @brief This is the header file for TableType
+ */
+
+#include "ClkTypes.h"
+
+const int DURATION_RINGING_UI_UPDATION = 20;
+const int MIN_Y_TOUCH_POSITION = 06;
+const int MAX_Y_TOUCH_POSITION = 150;
+const int MIN_Y_TOUCH_POSITION_SNOOZEOFF = 00;
+const int MAX_Y_TOUCH_POSITION_SNOOZEOFF = 200;
+const int Y_RINGER_LOCK_PANEL_OFFSET = 255;
+const int CONTROL_WIDTH_OFFSET = 188;
+const int H_RINGER_LOCK_PANEL = 200;
+const int Y_RINGER_LOCK_PANEL_RELATIVE_OFFSET = 10;
+const int REQUEST_ID_SHOW_TIMERFORM = 1000;
+
+const wchar_t* IDB_CONTROLBAR_ICON_ALARM = L"P03_tab_icon_alarm_dim_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_ALARM_NORMAL = L"P03_tab_icon_alarm_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED = L"P03_tab_icon_alarm_press_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_WORLDCLOCK = L"P03_tab_icon_world_clock_dim_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL = L"P03_tab_icon_world_clock_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED = L"P03_tab_icon_world_clock_press_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_STOPWATCH = L"P03_tab_icon_stopwatch_dim_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL = L"P03_tab_icon_stopwatch_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED = L"P03_tab_icon_stopwatch_press_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_TIMER = L"P03_tab_icon_timer_dim_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_TIMER_NORMAL = L"P03_tab_icon_timer_web.png";
+const wchar_t* IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED = L"P03_tab_icon_timer_press_web.png";
+const wchar_t* IDB_EDIT_BACKGROUND = L"EditBackground.png";
+const wchar_t* IDB_LIST_LEFTSIDE = L"ListLeftSide.png";
+const wchar_t* IDB_BUTTON_SWEEP_DELETE = L"00_button_sweep_delete.9.png";
+const wchar_t* IDB_BUTTON_SWEEP_DELETE_PRESS = L"00_button_sweep_delete_press.9.png";
+const wchar_t* IDB_ALARM_CLOCK = L"P03_alarm_clock_02.png";
+const wchar_t* IDB_CHECK_BG = L"00_check_bg.png";
+const wchar_t* IDB_CHECK_CHECKING = L"00_check_checking.png";
+const wchar_t* IDB_LIST_EXPAND_CLOSED = L"00_list_expand_closed.png";
+const wchar_t* IDB_LIST_EXPAND_CLOSED_PRESS = L"00_list_expand_closed_press.png";
+const wchar_t* IDB_LIST_EXPAND_OPENED = L"00_list_expand_opened.png";
+const wchar_t* IDB_LIST_EXPAND_OPENED_PRESS = L"00_list_expand_opened_press.png";
+const wchar_t* IDB_LIST_GROUP_BG = L"00_list_group_bg.9.png";
+const wchar_t* IDB_LIST_GROUP_BG_PRESS = L"00_list_group_bg_press.9.png";
+const wchar_t* IDB_BUTTON_RADIO_PRESS1 = L"00_button_radio_press1.png";
+const wchar_t* IDB_BUTTON_RADIO_PRESS2 = L"00_button_radio_press2.png";
+const wchar_t* IDB_WORLD_CLOCK_BG1 = L"P03_worldclock_bg_01.png";
+const wchar_t* IDB_WORLD_CLOCK_BG2 = L"P03_worldclock_bg_02.png";
+const wchar_t* IDB_TIMER_FOCUS_BG = L"P03_timer_edit_time_bg_focus.png";
+const wchar_t* IDB_TIMER_BG = L"P03_timer_edit_time_bg_ef.png";
+const wchar_t* IDB_TIMER_NORMAL_BG = L"P03_timer_edit_time_bg.png" ;
+const wchar_t* IDB_STOPWATCH_ZERO = L"P03_stopwatch_time_00.png";
+const wchar_t* IDB_STOPWATCH_ONE = L"P03_stopwatch_time_01.png";
+const wchar_t* IDB_STOPWATCH_TWO = L"P03_stopwatch_time_02.png";
+const wchar_t* IDB_STOPWATCH_THREE = L"P03_stopwatch_time_03.png";
+const wchar_t* IDB_STOPWATCH_FOUR = L"P03_stopwatch_time_04.png";
+const wchar_t* IDB_STOPWATCH_FIVE = L"P03_stopwatch_time_05.png";
+const wchar_t* IDB_STOPWATCH_SIX = L"P03_stopwatch_time_06.png";
+const wchar_t* IDB_STOPWATCH_SEVEN = L"P03_stopwatch_time_07.png";
+const wchar_t* IDB_STOPWATCH_EIGHT = L"P03_stopwatch_time_08.png";
+const wchar_t* IDB_STOPWATCH_NINE = L"P03_stopwatch_time_09.png";
+const wchar_t* IDB_STOPWATCH_SMALL_ZERO = L"P03_stopwatch_time_small_00.png";
+const wchar_t* IDB_STOPWATCH_SMALL_ONE = L"P03_stopwatch_time_small_01.png";
+const wchar_t* IDB_STOPWATCH_SMALL_TWO = L"P03_stopwatch_time_small_02.png";
+const wchar_t* IDB_STOPWATCH_SMALL_THREE = L"P03_stopwatch_time_small_03.png";
+const wchar_t* IDB_STOPWATCH_SMALL_FOUR = L"P03_stopwatch_time_small_04.png";
+const wchar_t* IDB_STOPWATCH_SMALL_FIVE = L"P03_stopwatch_time_small_05.png";
+const wchar_t* IDB_STOPWATCH_SMALL_SIX = L"P03_stopwatch_time_small_06.png";
+const wchar_t* IDB_STOPWATCH_SMALL_SEVEN = L"P03_stopwatch_time_small_07.png";
+const wchar_t* IDB_STOPWATCH_SMALL_EIGHT = L"P03_stopwatch_time_small_08.png";
+const wchar_t* IDB_STOPWATCH_SMALL_NINE = L"P03_stopwatch_time_small_09.png";
+const wchar_t* IDB_ALARM_ICON_OFF = L"P03_alarm_icon_off.png";
+const wchar_t* IDB_ALARM_ICON_ON = L"P03_alarm_icon_on.png";
+const wchar_t* IDB_ALARM_ICON_SNOOZE = L"P03_alarm_icon_snooze.png";
+const wchar_t* IDB_RINGER_LOCK_SNOOZE_RIGHT_ARROW = L"P03_alarm_jog_snooze_arrow_02.png";
+const wchar_t* IDB_RINGER_LOCK_SNOOZE = L"P03_alarm_jog_snooze.png";
+const wchar_t* IDB_RINGER_LOCK_SNOOZE_PRESSED = L"P03_alarm_jog_snooze_dim.png";
+const wchar_t* IDB_RINGER_LOCK_STOP = L"P03_alarm_jog_dismiss.png";
+const wchar_t* IDB_RINGER_LOCK_STOP_PRESSED = L"P03_alarm_jog_dismiss_dim.png";
+const wchar_t* IDB_RINGER_LOCK_STOP_LEFT_ARROW = L"P03_alarm_jog_dismiss_arrow_02.png";
+const wchar_t* IDB_RINGER_LOCK_STOP_RIGHT_ARROW = L"P03_alarm_jog_dismiss_arrow_01.png";
+const wchar_t* IDB_WORLD_CLOCK_WHITE_BG = L"P03_Worldclock_flip_white_bg.png";
+const wchar_t* IDB_WORLD_CLOCK_BLACK_BG = L"P03_Worldclock_flip_black_bg.png";
+const wchar_t* IDB_WORLD_CLOCK_WHITE_FG = L"P03_Worldclock_flip_white_bg_ef.png";
+const wchar_t* IDB_WORLD_CLOCK_BLACK_FG = L"P03_Worldclock_flip_black_bg_ef.png" ;
+const wchar_t* IDB_ALARM_TIME_BG = L"P03_alarm_edit_time_bg_ef.png";
+const wchar_t* IDB_ALARM_TIME_NORMAL_BG = L"P03_alarm_edit_time_bg.png" ;
+const wchar_t* IDB_ALARM_TIME_FOCUS_BG = L"P03_alarm_edit_time_bg_focus.png";
+const wchar_t* IDB_ALARM_TIME_TOGGLE_AM_BG = L"P03_alarm_edit_switch_am.png";
+const wchar_t* IDB_ALARM_TIME_TOGGLE_PM_BG = L"P03_alarm_edit_switch_pm.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_BG = L"P03_alarm_repeat_circle_bg_off.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_FOCUS_BG = L"P03_alarm_repeat_circle_bg_on.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_SUN_BG = L"P03_alarm_repeat_txt_off_SUN.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_SUN_FOCUS_BG = L"P03_alarm_repeat_txt_on_SUN.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_MON_BG = L"P03_alarm_repeat_txt_off_MON.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_MON_FOCUS_BG = L"P03_alarm_repeat_txt_on_MON.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_TUE_BG = L"P03_alarm_repeat_txt_off_TUE.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_TUE_FOCUS_BG = L"P03_alarm_repeat_txt_on_TUE.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_WED_BG = L"P03_alarm_repeat_txt_off_WED.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_WED_FOCUS_BG = L"P03_alarm_repeat_txt_on_WED.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_THU_BG = L"P03_alarm_repeat_txt_off_THU.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_THU_FOCUS_BG = L"P03_alarm_repeat_txt_on_THU.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_FRI_BG = L"P03_alarm_repeat_txt_off_FRI.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_FRI_FOCUS_BG = L"P03_alarm_repeat_txt_on_FRI.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_SAT_BG = L"P03_alarm_repeat_txt_off_SAT.png";
+const wchar_t* IDB_ALARM_TIME_DAYS_SAT_FOCUS_BG = L"P03_alarm_repeat_txt_on_SAT.png";
+const wchar_t* IDS_HOUR_IMAGE_PATH = L"P03_alarm_hour_";
+const wchar_t* IDS_MIN_IMAGE_PATH = L"P03_alarm_min_";
+const wchar_t* IDS_SEC_IMAGE_PATH = L"P03_alarm_sec_";
+const wchar_t* IDS_CLOCK_TAB4_ALARM_TONE = L"/data/04 - Kyon.mp3";
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkWorldClock.cpp
+ * @brief Used to define WorldClock
+ */
+
+#include <FBase.h>
+
+#include "ClkWorldClock.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Content;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::System;
+using namespace Tizen::Locales;
+using namespace Tizen::Media;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+WorldClock::WorldClock(void)
+: __dstTime(0),
+ __order(0),
+ __timeZone(0),
+ __worldClockCity(""),
+ __worldClockCountry(""),
+ __worldClockId("")
+{
+
+}
+
+WorldClock::WorldClock(const WorldClock& rhs)
+{
+ __worldClockId = rhs.__worldClockId;
+ __worldClockCity = rhs.__worldClockCity;
+ __worldClockCountry = rhs.__worldClockCountry;
+ __timeZone = rhs.__timeZone;
+ __order = rhs.__order;
+ __dstTime = rhs.__dstTime;
+}
+
+WorldClock::~WorldClock(void)
+{
+
+}
+
+WorldClock&
+WorldClock::operator =(const WorldClock& rhs)
+{
+
+ if (this != &rhs)
+ {
+ __worldClockId = rhs.__worldClockId;
+ __worldClockCity = rhs.__worldClockCity;
+ __worldClockCountry = rhs.__worldClockCountry;
+ __timeZone = rhs.__timeZone;
+ __order = rhs.__order;
+ __dstTime = rhs.__dstTime;
+ }
+ return *this;
+}
+
+const String
+WorldClock::GetWorldClockId(void)
+{
+ return __worldClockId;
+}
+
+const String
+WorldClock::GetWorldClockCity(void)
+{
+ return __worldClockCity;
+}
+
+const String
+WorldClock::GetWorldClockCountry(void)
+{
+ return __worldClockCountry;
+}
+
+const int
+WorldClock::GetOrder(void)
+{
+ return __order;
+}
+
+const int
+WorldClock::GetTimeZone(void)
+{
+ return __timeZone;
+}
+
+const int
+WorldClock::GetDstTime(void)
+{
+ return __dstTime;
+}
+
+void
+WorldClock::SetWorldClockId(const String& worldClockID)
+{
+ __worldClockId = worldClockID;
+}
+
+void
+WorldClock::SetWorldClockCity(const String& worldClockCity)
+{
+ __worldClockCity = worldClockCity;
+}
+
+void
+WorldClock::SetWorldClockCountry(const String& worldClockCountry)
+{
+ __worldClockCountry = worldClockCountry;
+}
+
+void
+WorldClock::SetTimeZone(const int timeZone)
+{
+ __timeZone = timeZone;
+}
+
+void
+WorldClock::SetOrder(const int order)
+{
+ __order = order;
+}
+
+void
+WorldClock::SetDstTime(const int dstTime)
+{
+ __dstTime = dstTime;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+
+/**
+ * @file WorldClockDeleteListForm.cpp
+ * @brief Used to define WorldClockDeleteList
+ */
+
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+#include <FShell.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkCommonLib.h"
+#include "ClkCustomColors.h"
+#include "ClkNotification.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+#include "ClkWorldClock.h"
+#include "ClkWorldClockDeleteListForm.h"
+#include "ClkWorldClockPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::Shell;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int IDA_TABBAR_ITEM1_ALARM = 200;
+static const int IDA_TABBAR_ITEM1_WORLDCLOCK = 201;
+static const int IDA_TABBAR_ITEM2_STOPWATCH = 202;
+static const int IDA_TABBAR_ITEM3_TIMER = 203;
+static const int IDA_SELECT_ALL_CHECKED = 204;
+static const int IDA_SELECT_ALL_UNCHECKED = 205;
+static const int IDA_DELETE_WORLD_CLOCK = 206;
+static const int IDA_FORMAT_COUNTRY = 207;
+static const int IDA_FORMAT_TIME = 208;
+static const int IDA_DONE_WORLD_CLOCK = 209;
+
+WorldClockDeleteListForm::WorldClockDeleteListForm(void)
+:__pData(null),
+ __pListView(null),
+ __pSelectAllCheck(null),
+ __pSelectedLabel(null),
+ __sameOrder(false),
+ __selectedCount(0),
+ __selectedItemCount(0)
+{
+
+}
+
+WorldClockDeleteListForm::~WorldClockDeleteListForm(void)
+{
+ if ( __pData != null )
+ {
+ __pData->RemoveAll(true);
+ delete __pData;
+ __pData = NULL;
+ }
+}
+
+bool
+WorldClockDeleteListForm::Initialize(void)
+{
+ Construct(L"IDL_DELETE_WORLD_CLOCK_LIST");
+
+ return true;
+}
+
+result
+WorldClockDeleteListForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ HeaderItem alarm;
+ HeaderItem worldClock;
+ HeaderItem stopWatch;
+ HeaderItem timer;
+ Header* pHeader = GetHeader();
+ Bitmap* pIconBitmap = null;
+ Bitmap* pPressedIconBitmap = null;
+ Bitmap* pHighlightedIconBitmap = null;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+
+
+ SetFormBackEventListener(this);
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_WORLD_CLOCK_DELETE_LIST, *this);
+
+ SetFormBackEventListener(this);
+ //SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+
+ AddOrientationEventListener(*this);
+ __selectedItemList.Construct();
+ __worldClockList.Construct();
+ __previousWorldClockList.Construct();
+
+ if ( pHeader != null)
+ {
+ pHeader->SetStyle(HEADER_STYLE_TAB);
+ alarm.Construct(IDA_TABBAR_ITEM1_ALARM);
+ //alarm.SetText(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED);
+
+ if ( pIconBitmap != NULL)
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ alarm.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(alarm);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ worldClock.Construct(IDA_TABBAR_ITEM1_WORLDCLOCK);
+ //worldClock.SetText(CommonUtil::GetString(L"IDS_COM_BODY_WORLD_CLOCK"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED);
+
+
+ if (pIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_NORMAL, pHighlightedIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_PRESSED, pHighlightedIconBitmap);
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(worldClock);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ stopWatch.Construct(IDA_TABBAR_ITEM2_STOPWATCH);
+ //stopWatch.SetText(CommonUtil::GetString(L"IDS_COM_BODY_STOPWATCH"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED);
+
+ if (pIconBitmap != NULL)
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(stopWatch);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ timer.Construct(IDA_TABBAR_ITEM3_TIMER);
+ //timer.SetText(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED);
+
+ if (pIconBitmap != NULL)
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ timer.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+
+ pHeader->AddItem(timer);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ pHeader->SetItemSelected(1);
+ pHeader->AddActionEventListener(*this);
+ pHeader->SetTabEditModeEnabled(false);
+ }
+
+ GetHeader()->SetItemEnabled(0, false);
+ GetHeader()->SetItemEnabled(2, false);
+ GetHeader()->SetItemEnabled(3, false);
+ GetHeader()->Invalidate(true);
+
+ GetFooter()->AddActionEventListener(*this);
+
+ __pSelectedLabel = static_cast< Label* >(GetControl(L"IDC_LABEL1"));
+
+ if (__pSelectedLabel == null)
+ {
+ return E_FAILURE;
+ }
+
+ __pSelectAllCheck = static_cast< CheckButton* >(GetControl(L"IDC_SELECT_ALL",true));
+
+ if (__pSelectAllCheck != null)
+ {
+ __pSelectAllCheck->SetActionId(IDA_SELECT_ALL_CHECKED, IDA_SELECT_ALL_UNCHECKED);
+ __pSelectAllCheck->AddActionEventListener(*this);
+ }
+
+
+ __pListView = static_cast< ListView* >(GetControl(L"IDC_LISTVIEW_ALARM"));
+
+ if ( __pListView != NULL)
+ {
+ __pListView->SetItemProvider(*this);
+ __pListView->AddListViewItemEventListener(*this);
+ }
+
+ return r;
+}
+
+result
+WorldClockDeleteListForm::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ return r;
+}
+
+void
+WorldClockDeleteListForm::OnActionPerformed(const Control& source, int actionId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+ String labelString ;
+ String lowerStr;
+ ArrayList* pArrayList = null;
+ WorldClock* pWorldClock = null;
+ String notification ;
+ Tizen::Shell::NotificationManager notifyMgr;
+
+ if ( __pListView == NULL)
+ {
+ return;
+ }
+
+ switch (actionId)
+ {
+ case IDA_DELETE_WORLD_CLOCK:
+ {
+ pArrayList = new (std::nothrow) ArrayList();
+ pArrayList->Construct();
+ int count = 0;
+ int listCount = __pListView->GetItemCount();
+
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+
+ __selectedItemList.RemoveAll(true);
+
+
+
+ for (int count = 0;count < listCount;count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ pWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(count));
+ if ( pWorldClock != null && pArrayList != NULL)
+ {
+ pArrayList->Add(*pWorldClock);
+ }
+
+ }
+ }
+
+
+ if ( pArrayList != null )
+ {
+ pWorldClockPresentationModel->DeleteWorldClock(*pArrayList);
+ pArrayList->RemoveAll();
+ delete pArrayList;
+ }
+ __worldClockList.RemoveAll(true);
+ pWorldClockPresentationModel->GetAddedWorldClock(0, count, __worldClockList);
+
+ if ( __pListView->GetItemCount() == 0)
+ {
+ __pSelectAllCheck->SetShowState(false);
+ __pSelectAllCheck->Invalidate(true);
+ __pListView->SetBounds(__pListView->GetX(), __pListView->GetY() - 120, __pListView->GetWidth(), GetClientAreaBounds().height);
+
+ __pSelectedLabel->SetShowState(false);
+ // pSceneManager->GoBackward(BackwardSceneTransition());
+
+ }
+
+ GetFooter()->SetItemEnabled(0,false);
+ GetFooter()->Invalidate(true);
+
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(true);
+
+ notification = CommonUtil::GetString(L"IDS_COM_POP_DELETED");
+ notifyMgr.Construct();
+ notifyMgr.NotifyTextMessage(notification);
+
+ listCount = __pListView->GetItemCount();
+ for (int count = 0;count < listCount;count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ __pListView->SetItemChecked(count, false);
+ }
+ }
+
+ __pListView->UpdateList();
+
+ if( __pListView->GetItemCount() == 0)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_WORLD_CLOCK_LIST));
+ }
+
+ }
+ break;
+ case IDA_DONE_WORLD_CLOCK:
+ {
+ int count = 0;
+ String labelString;
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ WorldClock* pWorldClock = null ;
+
+ for(int counter = 0 ; counter < count ; counter++ )
+ {
+ pWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(counter));
+
+ if ( pWorldClock != NULL)
+ {
+ pWorldClock->SetOrder(counter);
+ pWorldClockPresentationModel->UpdateWorldClockOrder(*pWorldClock);
+ }
+ }
+
+ __previousWorldClockList.RemoveAll(true);
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,__previousWorldClockList);
+
+ String deleteText = CommonUtil::GetString("IDS_ALM_SK_DELETE");
+ GetFooter()->RemoveItemAt(0);
+ FooterItem footerItem;
+ footerItem.Construct(IDA_DELETE_WORLD_CLOCK);
+ footerItem.SetText(deleteText);
+ GetFooter()->AddItem(footerItem);
+ GetFooter()->SetItemEnabled(0,false);
+ GetFooter()->Invalidate(true);
+
+ __pSelectAllCheck->SetShowState(true);
+ __pSelectAllCheck->SetEnabled(true);
+ __pSelectAllCheck->Invalidate(true);
+ __pSelectedLabel->SetShowState(true);
+
+ if (__pListView != null && __pData != null)
+ {
+ if (__selectedItemList.GetCount() != 0 && __selectedItemList.GetCount() == __pData->GetCount())
+ {
+ __pSelectAllCheck->SetSelected(true);
+ }
+ else
+ {
+ __pSelectAllCheck->SetSelected(false);
+ }
+ }
+
+ if (__selectedItemCount == 0)
+ {
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ }
+ else
+ {
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+ labelString.Format(25, lowerStr.GetPointer(), __selectedItemCount);
+ }
+
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(true);
+
+ __pListView->EndReorderingMode();
+ __pListView->UpdateList();
+ __pListView->SetBounds(__pListView->GetX(), __pSelectAllCheck->GetY() + __pSelectAllCheck->GetHeight(), __pListView->GetWidth(), GetClientAreaBounds().height - __pSelectAllCheck->GetHeight() - __pSelectedLabel->GetHeight());
+ Invalidate(true);
+ }
+ break;
+ case IDA_SELECT_ALL_CHECKED:
+ {
+ int listCount = __pListView->GetItemCount();
+ String lowerStr;
+
+ __selectedItemList.RemoveAll(true);
+ for (int count = 0;count < listCount ; count++)
+ {
+ __pListView->SetItemChecked(count,true);
+ __selectedItemList.Add(new Integer(count));
+ }
+
+ GetFooter()->SetItemEnabled(0,true);
+ GetFooter()->Invalidate(true);
+
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+ labelString.Format(25, lowerStr.GetPointer(), __pListView->GetItemCount());
+
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(true);
+
+ __pListView->Invalidate(true);
+
+ }
+ break;
+ case IDA_SELECT_ALL_UNCHECKED:
+ {
+ int listCount = __pListView->GetItemCount();
+
+ __selectedItemList.RemoveAll(true);
+ for (int count = 0;count < listCount;count++)
+ {
+ __pListView->SetItemChecked(count,false);
+ }
+
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(true);
+
+ __pListView->Invalidate(true);
+
+ GetFooter()->SetItemEnabled(0,false);
+ GetFooter()->Invalidate(true);
+ }
+ break;
+
+ case IDA_TABBAR_ITEM1_ALARM:
+ {
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_ALARM_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ }
+ break;
+ case IDA_TABBAR_ITEM2_STOPWATCH:
+ {
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ break;
+ case IDA_TABBAR_ITEM3_TIMER:
+ {
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW));
+ }
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
+WorldClockDeleteListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ int count = 0;
+ String labelString;
+ String lowerStr;
+
+ if (__pListView != null)
+ {
+ if (count == 0)
+ {
+ __pSelectAllCheck->SetShowState(false);
+ __pListView->SetBounds(__pListView->GetX(), __pListView->GetY() - 120, __pListView->GetWidth(), GetClientAreaBounds().height);
+
+ }
+ else
+ {
+ if (__pListView->IsInReorderingMode())
+ {
+ __pSelectAllCheck->SetShowState(false);
+ __pListView->SetBounds(__pListView->GetX(), __pSelectAllCheck->GetY(), __pListView->GetWidth(), GetClientAreaBounds().height);
+ }
+ else
+ {
+ __pSelectAllCheck->SetShowState(true);
+ __pListView->SetBounds(__pListView->GetX(), __pListView->GetY(), __pListView->GetWidth(), GetClientAreaBounds().height - 112 - __pSelectedLabel->GetHeight());
+ }
+ }
+ __pSelectAllCheck->Invalidate(true);
+ __pListView->UpdateList();
+
+ __selectedItemCount = __selectedItemList.GetCount();
+ for (int i = 0; i < __selectedItemCount; i++)
+ {
+ Integer* pObj = dynamic_cast<Integer*>(__selectedItemList.GetAt(i));
+
+ if (pObj != null)
+ {
+ __pListView->SetItemChecked(pObj->ToInt(), true);
+ }
+ }
+
+ }
+
+ if (__selectedItemCount == 0)
+ {
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ }
+ else
+ {
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+ labelString.Format(25, lowerStr.GetPointer(), __selectedItemCount);
+ }
+
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(true);
+
+
+ GetHeader()->SetItemSelected(1);
+ GetHeader()->Invalidate(true);
+
+ if (__selectedItemList.GetCount() == 0)
+ {
+ GetFooter()->SetItemEnabled(0,false);
+ }
+
+ if (__pListView != null)
+ {
+ if (__selectedItemList.GetCount() != 0 && __selectedItemList.GetCount() == __pListView->GetItemCount())
+ {
+ __pSelectAllCheck->SetSelected(true);
+ }
+ }
+}
+
+void
+WorldClockDeleteListForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+
+ int listCount = __pListView->GetItemCount() ;
+
+ for (int count = 0; count < listCount; count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ __pListView->SetItemChecked(count, false);
+ }
+ }
+ __pSelectAllCheck->SetSelected(false);
+
+}
+
+void
+WorldClockDeleteListForm::OnFormBackRequested(Form& source)
+{
+ AppLog("WorldClockDeleteListForm::OnFormBackRequested");
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ AppLog("WorldClockDeleteListForm::OnFormBackRequested +++");
+ pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_WORLD_CLOCK_LIST));
+ }
+}
+
+void
+WorldClockDeleteListForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
+{
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+ int count = 0;
+ bool flag = false;
+ String labelString;
+ String lowerStr;
+ __selectedItemCount = 0;
+
+ int listCount = __pListView->GetItemCount();
+
+ if (__pListView->IsInReorderingMode() == true)
+ {
+ return;
+ }
+
+ if (__pListView->IsItemChecked(index) == true)
+ {
+ __selectedItemList.Add(new Integer(index));
+ }
+ else
+ {
+ __selectedItemList.Remove(* new Integer(index));
+ }
+
+ for (int count = 0;count < listCount;count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ __selectedItemCount++;
+ }
+ }
+
+ if (__selectedItemCount == 0)
+ {
+ labelString.Append(CommonUtil::GetString(L"IDS_NOTHING_SELECTED"));
+ }
+ else
+ {
+ CommonUtil::GetString(L"IDS_COM_BODY_PD_SELECTED").ToLower(lowerStr);
+ labelString.Format(25, lowerStr.GetPointer(), __selectedItemCount);
+ }
+
+ __pSelectedLabel->SetText(labelString);
+ __pSelectedLabel->Invalidate(true);
+
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+
+ if (__selectedItemCount == count)
+ {
+ __pSelectAllCheck->SetSelected(true);
+ }
+ else
+ {
+ __pSelectAllCheck->SetSelected(false);
+ }
+
+ for (int count = 0 ; count < listCount ; count++)
+ {
+ if (__pListView->IsItemChecked(count))
+ {
+ flag = true;
+ break;
+ }
+ }
+
+ if (flag == true)
+ {
+ GetFooter()->SetItemEnabled(0,true);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0,false);
+ }
+
+ GetFooter()->Invalidate(true);
+}
+
+ListItemBase *
+WorldClockDeleteListForm::CreateItem(int index, int itemWidth)
+{
+ int hours = 0;
+ int minutes = 0;
+ int itemHeight = 140 ;
+ int xMargin = 26;
+ int yMainText = 22;
+ int rightMargin = 26 ;
+ int mainTextHeight = 62 ;
+ int subTextHeight = 42;
+ int subTextSize = 32;
+ int timediff = 0;
+ String time;
+ String city ;
+ String country;
+ DateTime dtNow;
+ DateTime dt;
+ int dst = 0;
+ int cityTextSize = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel == NULL)
+ {
+ return null;
+ }
+
+ SystemTime::GetCurrentTime(UTC_TIME,dtNow);
+
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+
+
+ String fontSizeStr = "";
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+
+ if(fontSizeStr == "medium")
+ {
+ cityTextSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ cityTextSize = 81;
+ }
+ else if(fontSizeStr == "giant")
+ {
+ cityTextSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ cityTextSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ cityTextSize = 64;
+ }
+ else
+ {
+ cityTextSize = 44;
+ }
+
+ itemHeight = itemHeight + cityTextSize - 44;
+ mainTextHeight = mainTextHeight + cityTextSize - 44;
+
+ WorldClock* pWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(index));
+
+ if ( pWorldClock == null )
+ {
+ if( pItem != NULL)
+ {
+ delete pItem;
+ pItem = null;
+ }
+
+ return null;
+ }
+
+ country = pWorldClock->GetWorldClockCountry();
+ city = pWorldClock->GetWorldClockCity();
+ city.Replace("_"," ");
+ city.Append(L" / ");
+ city.Append(country);
+ dst = pWorldClock->GetDstTime();
+ timediff = pWorldClock->GetTimeZone() + (60 * dst);
+
+ TimeZone tz(timediff,pWorldClock->GetWorldClockId());
+
+ dt = tz.UtcTimeToWallTime(dtNow);
+ hours = dt.GetHour();
+ minutes = dt.GetMinute();
+
+ if (hours < 10)
+ {
+ time.Append("0");
+ }
+
+ time.Append(hours);
+ time.Append(L":");
+
+ if (minutes < 10)
+ {
+ time.Append("0");
+ }
+
+ time.Append(minutes);
+ /*time.Append(" ");
+
+ if (hours >= 12)
+ {
+ time.Append(CommonUtil::GetString(L"IDS_COM_POP_PM"));
+ }
+ else
+ {
+ time.Append(CommonUtil::GetString(L"IDS_COM_BODY_AM"));
+ }*/
+
+ if(__pListView->IsInReorderingMode() == true)
+ {
+ pItem->Construct(Dimension(GetClientAreaBounds().width, itemHeight), LIST_ANNEX_STYLE_NORMAL);
+ }
+ else
+ {
+ pItem->Construct(Dimension(GetClientAreaBounds().width, itemHeight), LIST_ANNEX_STYLE_MARK);
+ }
+ pItem->AddElement(Rectangle(xMargin, yMainText, GetClientAreaBounds().width - xMargin - rightMargin - 100, mainTextHeight), IDA_FORMAT_COUNTRY,city, cityTextSize, CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT ,true);
+ pItem->AddElement(Rectangle(xMargin, yMainText + mainTextHeight, GetClientAreaBounds().width - xMargin - rightMargin - 100, subTextHeight), IDA_FORMAT_TIME,time, subTextSize, CUSTOM_COLOR_GREY , CUSTOM_COLOR_GREY, CUSTOM_COLOR_GREY ,true);
+
+ return pItem;
+}
+
+bool
+WorldClockDeleteListForm::DeleteItem(int index, ListItemBase *pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+int
+WorldClockDeleteListForm::GetItemCount(void)
+{
+ int count = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel != NULL)
+ {
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,__worldClockList);
+ }
+
+
+ if ( count == 0)
+ {
+ __pSelectAllCheck->SetSelected(false);
+ __pSelectAllCheck->SetShowState(false);
+ __pSelectAllCheck->Invalidate(false);
+ }
+ else
+ {
+ if(__pListView->IsInReorderingMode() == true)
+ {
+ __pSelectAllCheck->SetShowState(false);
+ }
+ else
+ {
+ __pSelectAllCheck->SetShowState(true);
+ }
+ __pSelectAllCheck->Invalidate(false);
+ }
+
+
+ return count;
+}
+
+void
+WorldClockDeleteListForm::OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback)
+{
+ if(__pListView->IsInReorderingMode() == true)
+ {
+ return;
+ }
+ int listCount = __pListView->GetItemCount();
+ int count = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,__previousWorldClockList);
+
+ if (listCount > 1)
+ {
+ for(int count = 0; count < __pListView->GetItemCount(); count++)
+ {
+ __pListView->SetItemChecked(count, false);
+ }
+ __pListView->BeginReorderingMode();
+ __selectedItemList.RemoveAll(true);
+ String reorderText = CommonUtil::GetString("IDS_WCL_SK_DONE");
+ if (GetFooter()->GetItemCount() == 1)
+ {
+ FooterItem footerItem;
+ footerItem.Construct(IDA_DONE_WORLD_CLOCK);
+ footerItem.SetText(reorderText);
+ GetFooter()->AddItem(footerItem);
+ //GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->RemoveItemAt(0);
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+ }
+
+ __selectedItemCount = 0;
+
+
+ __pListView->UpdateList();
+
+ __pSelectAllCheck->SetEnabled(false);
+ __pSelectAllCheck->SetShowState(false);
+ __pSelectAllCheck->SetSelected(false);
+ __pSelectAllCheck->Invalidate(true);
+
+ __pSelectedLabel->SetShowState(false);
+
+ __pListView->Invalidate(true);
+ __pListView->SetBounds(__pListView->GetX(), __pSelectAllCheck->GetY(), __pListView->GetWidth(), GetClientAreaBounds().height );
+
+ Invalidate(true);
+ }
+}
+
+void
+WorldClockDeleteListForm::OnListViewItemReordered(Tizen::Ui::Controls::ListView & listView, int indexFrom,int indexTo)
+{
+ WorldClock* ptempWorldClock = null ;
+ WorldClock* pPrevWorldClock = null ;
+
+
+ ptempWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(indexFrom));
+
+ if ( ptempWorldClock != NULL )
+ {
+ __worldClockList.RemoveAt(indexFrom,false);
+ __worldClockList.InsertAt(*ptempWorldClock,indexTo);
+ }
+
+ for (int i = 0 ; i < __worldClockList.GetCount(); i++)
+ {
+ ptempWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(i));
+ pPrevWorldClock = dynamic_cast< WorldClock* >(__previousWorldClockList.GetAt(i));
+
+ if (ptempWorldClock != null && pPrevWorldClock != null && ptempWorldClock->GetWorldClockId() == pPrevWorldClock->GetWorldClockId())
+ {
+ __sameOrder = true;
+ }
+ else
+ {
+ __sameOrder = false;
+ break;
+ }
+ }
+
+ if (__sameOrder == false)
+ {
+ GetFooter()->SetItemEnabled(0, true);
+ GetFooter()->Invalidate(true);
+ }
+ else
+ {
+ GetFooter()->SetItemEnabled(0, false);
+ GetFooter()->Invalidate(true);
+ }
+}
+
+
+void
+WorldClockDeleteListForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+ if (__pListView != null)
+ {
+ if(__pListView->IsInReorderingMode())
+ {
+ __pListView->SetBounds(0,0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+ }
+ else
+ {
+ __pListView->SetBounds(0,__pSelectAllCheck->GetY() + __pSelectAllCheck->GetHeight(), GetClientAreaBounds().width, GetClientAreaBounds().height - (__pSelectAllCheck->GetY() + __pSelectAllCheck->GetHeight() + __pSelectedLabel->GetHeight()));
+ }
+ }
+
+ Invalidate(true);
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file WorldClockListForm.cpp
+ * @brief Used to define WorldClockListForm
+ */
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+#include <FShell.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "ClkCommonLib.h"
+#include "ClkCustomColors.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+#include "ClkWorldClock.h"
+#include "ClkWorldClockListForm.h"
+#include "ClkWorldClockPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::Shell;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int IDA_TABBAR_ITEM1_ALARM = 200;
+static const int IDA_TABBAR_ITEM1_WORLDCLOCK = 201;
+static const int IDA_TABBAR_ITEM2_STOPWATCH = 202;
+static const int IDA_TABBAR_ITEM3_TIMER = 203;
+static const int IDA_FOOTER_EDIT = 100;
+static const int IDA_FOOTER_ADD = 101;
+static const int IDA_FORMAT_COUNTRY = 103;
+static const int IDA_FORMAT_DAY = 106;
+static const int IDA_FORMAT_CLOCK_HOURS = 107 ;
+static const int IDA_FORMAT_CLOCK_MINUTES = 108 ;
+static const int IDA_CONTEXT_ITEM_DST_SETTING = 109;
+static const int IDA_CONTEXT_ITEM_DELETE = 110;
+static const int WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE = 800;
+static const int HEIGHT_CONTEXT_MENU_BUTTON = 72;
+static const int IDA_FORMAT_CITY = 111;
+static const int IDA_REORDER_BTN_CLICKED = 112;
+static const int IDA_DELETE_BTN_CLICKED = 113 ;
+const RequestId REQUEST_ID_TERMINATE = 20000;
+
+WorldClockListForm::WorldClockListForm(void)
+: __dstTime(0)
+, __index(0)
+, __showPopup(false)
+, __pItemContext(null)
+, __pItemContextLandscape(null)
+, __pListview (null)
+, __pMenu(null)
+, __pPopUp(null)
+, __pTimer (null)
+, __timerResetFlag(0)
+, __timerResetKey("timerReset")
+{
+
+}
+
+WorldClockListForm::~WorldClockListForm(void)
+{
+ if ( __pTimer != NULL)
+ {
+ delete __pTimer ;
+ }
+}
+
+bool
+WorldClockListForm::Initialize(void)
+{
+ result r = Construct(L"IDL_WORLD_CLOCK_LIST");
+ AppLog("result:%s",GetErrorMessage(r));
+
+ return true;
+}
+
+result
+WorldClockListForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ HeaderItem alarm;
+ HeaderItem worldClock;
+ HeaderItem stopWatch;
+ HeaderItem timer;
+ Header* pHeader = GetHeader();
+ Bitmap* pIconBitmap = null;
+ Bitmap* pPressedIconBitmap = null;
+ Bitmap* pHighlightedIconBitmap = null;
+ Bitmap *pBitmapNormal = null;
+ Bitmap *pBitmapPressed = null;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+ int bitmapWidth = 326;
+ int bitmapHeight = 102;
+
+ if ( pAppResource == NULL )
+ {
+ return E_FAILURE;
+ }
+
+ GetHeader()->AddActionEventListener(*this);
+ GetFooter()->AddActionEventListener(*this);
+
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_WORLD_CLOCK_LIST, *this);
+ // Setup back event listener
+ SetFormBackEventListener(this);
+ AddOrientationEventListener(*this);
+
+ SettingInfo::AddSettingEventListener(*this);
+
+ __pPopUp = new (std::nothrow) DaylightSavingPopUp();
+
+ if (__pPopUp != null)
+ {
+ __pPopUp->Initialize();
+ __pPopUp->SetEventListner(this);
+ AddControl(__pPopUp);
+ }
+
+ if (pHeader != null)
+ {
+ pHeader->SetStyle(HEADER_STYLE_TAB);
+ alarm.Construct(IDA_TABBAR_ITEM1_ALARM);
+ //alarm.SetText(CommonUtil::GetString(L"IDS_COM_BODY_ALARM"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_ALARM_HIGHLIGHTED);
+ alarm.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ alarm.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ alarm.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ pHeader->AddItem(alarm);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ worldClock.Construct(IDA_TABBAR_ITEM1_WORLDCLOCK);
+ //worldClock.SetText(CommonUtil::GetString(L"IDS_COM_BODY_WORLD_CLOCK"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_WORLDCLOCK_HIGHLIGHTED);
+
+ if (pIconBitmap != NULL)
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_NORMAL, pHighlightedIconBitmap);
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_PRESSED, pHighlightedIconBitmap);
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ worldClock.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ }
+
+ pHeader->AddItem(worldClock);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ stopWatch.Construct(IDA_TABBAR_ITEM2_STOPWATCH);
+ //stopWatch.SetText(CommonUtil::GetString(L"IDS_COM_BODY_STOPWATCH"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_STOPWATCH_HIGHLIGHTED);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ stopWatch.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ pHeader->AddItem(stopWatch);
+ pHeader->SetItemSelected(0);
+ pHeader->SetTabEditModeEnabled(false);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ timer.Construct(IDA_TABBAR_ITEM3_TIMER);
+ //timer.SetText(CommonUtil::GetString(L"IDS_COM_BODY_TIMER"));
+ pIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pPressedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_NORMAL);
+ pHighlightedIconBitmap = pAppResource->GetBitmapN(IDB_CONTROLBAR_ICON_TIMER_HIGHLIGHTED);
+ timer.SetIcon(HEADER_ITEM_STATUS_NORMAL, pIconBitmap);
+ timer.SetIcon(HEADER_ITEM_STATUS_PRESSED, pPressedIconBitmap);
+ timer.SetIcon(HEADER_ITEM_STATUS_HIGHLIGHTED, pHighlightedIconBitmap);
+ pHeader->AddItem(timer);
+ pHeader->SetItemSelected(0);
+
+ if (pIconBitmap != NULL)
+ {
+ delete pIconBitmap;
+ }
+
+ if ( pPressedIconBitmap != NULL )
+ {
+ delete pPressedIconBitmap;
+ }
+
+ if ( pHighlightedIconBitmap != NULL )
+ {
+ delete pHighlightedIconBitmap;
+ }
+
+ }
+
+ __pItemContext = new (std::nothrow) ListContextItem();
+ __pItemContext->Construct();
+ __pItemContext->AddElement(IDA_CONTEXT_ITEM_DST_SETTING, CommonUtil::GetString(L"IDS_WCL_OPT_DST_SETTINGS"));
+
+
+ pBitmapNormal = CommonUtil::GetNinepatchedBitmap(IDB_BUTTON_SWEEP_DELETE, bitmapWidth, bitmapHeight);
+ pBitmapPressed = CommonUtil::GetNinepatchedBitmap(IDB_BUTTON_SWEEP_DELETE_PRESS, bitmapWidth, bitmapHeight);
+ unsigned int CONTEXT_ITEM_DELETE_COLOR = Color32<208, 82, 82>::Value;
+ if (pBitmapNormal != null && pBitmapPressed != null)
+ {
+ __pItemContext->AddElement(IDA_CONTEXT_ITEM_DELETE, CommonUtil::GetString(L"IDS_ALM_SK_REMOVE"));
+ __pItemContext->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color::GetColor(COLOR_ID_BLACK));
+ __pItemContext->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
+
+ __pItemContext->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContext->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContext->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, CONTEXT_ITEM_DELETE_COLOR);
+ }
+
+ if ( pBitmapNormal!= NULL)
+ {
+ delete pBitmapNormal;
+ }
+
+ if ( pBitmapPressed!= NULL)
+ {
+ delete pBitmapPressed;
+ }
+
+ __pItemContextLandscape= new(std::nothrow) ListContextItem();
+ __pItemContextLandscape->Construct();
+ __pItemContextLandscape->AddElement(IDA_CONTEXT_ITEM_DST_SETTING, CommonUtil::GetString(L"IDS_WCL_OPT_DST_SETTINGS"));
+
+ pBitmapNormal = CommonUtil::GetNinepatchedBitmap(L"00_button_sweep_delete.9.png", WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE,HEIGHT_CONTEXT_MENU_BUTTON);
+ pBitmapPressed = CommonUtil::GetNinepatchedBitmap(L"00_button_sweep_delete_press.9.png", WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE, HEIGHT_CONTEXT_MENU_BUTTON);
+
+ if (pBitmapNormal != null && pBitmapPressed != null)
+ {
+ __pItemContextLandscape->AddElement(IDA_CONTEXT_ITEM_DELETE, CommonUtil::GetString(L"IDS_ALM_SK_REMOVE"));
+ __pItemContextLandscape->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color::GetColor(COLOR_ID_BLACK));
+ __pItemContextLandscape->SetElementTextColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
+
+ __pItemContextLandscape->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContextLandscape->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, CONTEXT_ITEM_DELETE_COLOR);
+ __pItemContextLandscape->SetElementBackgroundColor(IDA_CONTEXT_ITEM_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, CONTEXT_ITEM_DELETE_COLOR);
+
+ }
+
+ if ( pBitmapNormal!= NULL)
+ {
+ delete pBitmapNormal;
+ }
+
+ if ( pBitmapPressed!= NULL)
+ {
+ delete pBitmapPressed;
+ }
+
+ __pListview = static_cast< ListView* >(GetControl("IDC_LISTVIEW1"));
+
+ if (__pListview != null)
+ {
+ __pListview->SetItemProvider(*this);
+ __pListview->AddListViewItemEventListener(*this);
+ __pListview->SetTextOfEmptyList(CommonUtil::GetString("IDS_NO_ITEMS"));
+ }
+ // Create Timer
+ __pTimer = new (std::nothrow) Timer();
+ __pTimer->Construct(*this);
+
+ //SetFormMenuEventListener(this);
+
+ __pOptionMenu = new OptionMenu();
+
+ if (__pOptionMenu != null)
+ {
+ __pOptionMenu->Construct();
+ __pOptionMenu->AddItem(CommonUtil::GetString(L"IDS_WCL_SK_EDIT"),IDA_DELETE_BTN_CLICKED);
+ __pOptionMenu->AddActionEventListener(*this);
+ __pOptionMenu->SetShowState(false);
+ }
+
+ UiApp::GetInstance()->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ UiApp::GetInstance()->GetAppRegistry()->Save();
+
+ return r;
+}
+
+result
+WorldClockListForm::OnTerminating(void)
+{
+ SettingInfo::RemoveSettingEventListener(*this);
+ return E_SUCCESS;
+}
+
+void
+WorldClockListForm::OnActionPerformed(const Control& source, int actionId)
+{
+ AppLogDebug("WorldClockListForm::OnActionPerformed actionId = %d",actionId);
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ switch (actionId)
+ {
+ case IDA_TABBAR_ITEM1_ALARM:
+ {
+ if (pSceneManager != NULL)
+ {
+ if (pSceneManager->IsSceneAlive(IDSCN_ALARM_DELETE_LIST))
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_DELETE_LIST));
+ }
+ else
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_LIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ }
+ break;
+
+ case IDA_TABBAR_ITEM2_STOPWATCH:
+ {
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ }
+ break;
+
+ case IDA_TABBAR_ITEM3_TIMER:
+ {
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW));
+ }
+ }
+ break;
+
+ case IDA_FOOTER_EDIT:
+ {
+ if ( __pMenu != NULL)
+ {
+ __pMenu->SetShowState(true);
+ __pMenu->Show();
+ __pMenu->Invalidate(true);
+ }
+ }
+ break;
+
+ case IDA_FOOTER_ADD:
+ {
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CITY_LIST));
+ }
+ }
+ break;
+
+ case IDA_DELETE_BTN_CLICKED:
+ {
+ if ( __pMenu != NULL)
+ {
+ __pMenu->SetShowState(false);
+ __pMenu->Invalidate(true);
+ }
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_DELETE_LIST));
+ }
+ }
+ break;
+ case IDA_REORDER_BTN_CLICKED:
+ {
+ if ( __pMenu != NULL)
+ {
+ __pMenu->SetShowState(false);
+ __pMenu->Invalidate(true);
+ }
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WORLD_CLOCK_REORDER));
+ }
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+WorldClockListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ //Point p = Point( 25, GetFooter()->GetPosition().y + 25);
+ //InitContextMenu(p);
+
+ SetFormMenuEventListener(this);
+
+ __pListview->UpdateList();
+ Invalidate(true);
+
+ DateTime dtNow;
+ SystemTime::GetCurrentTime(UTC_TIME, dtNow);
+ __pTimer->Start((60 - dtNow.GetSecond()) * 1000);
+ GetHeader()->SetItemSelected(1);
+ GetHeader()->Invalidate(true);
+ GetFooter()->SetFocus();
+ GetFooter()->Invalidate(true);
+
+ if (__showPopup && (previousSceneId == IDSCN_TIMER_RINGING || previousSceneId == IDSCN_ALARM_RINGING))
+ {
+ __pPopUp->SetShowState(true);
+ __pPopUp->Show();
+ }
+}
+
+void
+WorldClockListForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+ SetFormMenuEventListener(null);
+ __pTimer->Cancel();
+}
+
+void
+WorldClockListForm::OnFormBackRequested(Form& source)
+{
+ SendUserEvent(REQUEST_ID_TERMINATE, null);
+}
+
+ListItemBase *
+WorldClockListForm::CreateItem(int index, int itemWidth)
+{
+ ArrayList worldClockList;
+ WorldClock* pWorldClock = null;
+ String curMonth;
+ String curDay;
+ String time;
+ String city ;
+ String country ;
+ String hrs;
+ String min;
+ Bitmap* pClockBgBitmap = null;
+ Bitmap* pClockNormalBitmap = null;
+ Canvas* pCanvasHours = null;
+ Canvas* pCanvasMinutes = null;
+ Bitmap* pFinalBitmapHours = null;
+ Bitmap* pFinalBitmapMinutes = null;
+ EnrichedText* pEnrichedTextMinutes = null;
+ EnrichedText* pEnrichedTextHours = null;
+ TextElement* pTextElementHours = null;
+ TextElement* pTextElementMinutes = null;
+ int count = 0 ;
+ int hours = 0;
+ int minutes = 0;
+ int day = 0;
+ int month = 0;
+ int xMargin = 0;
+ int itemHeight = 204;
+ int cityTextSize = 44;
+ int countryTextSize = 32;
+ int curDayTextSize = 32 ;
+ int canvasWidth = 122;
+ int canvasHeight = 104 ;
+ int fontSize = 73 ;
+ int yMarginCity = 49;
+ int itemCityHeight = 62;
+ int itemCityWidth = 400 ;
+ int itemCountryWidth = 440 ;
+ int itemCountryHeight = 36;
+ int xHoursElement = 0;
+ int yHoursElement = 36 ;
+ int xMinutesElement = 0;
+ int yMinutesElement = yHoursElement ;
+ int xCurDay = 0 ;
+ int yCurDay = 152;
+ int itemCurDayWidth = 122;
+ int itemCurDayHeight = 40 ;
+ int offSet = 10 ;
+ int dst = 0;
+
+ DateTime dtNow;
+ DateTime dt;
+ SystemTime::GetCurrentTime(UTC_TIME,dtNow);
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+ {
+ xMargin = 26;
+ xHoursElement = 440;
+ xCurDay = 562;
+ itemCityWidth = GetClientAreaBounds().width - canvasWidth - 200;
+ }
+ else
+ {
+ xMargin = 46;
+ xHoursElement = GetClientAreaBounds().width - 304;//976;
+ xCurDay = GetClientAreaBounds().width - 180;//1100;
+ itemCityWidth = xHoursElement - 100;
+ }
+
+ //itemCityWidth = xHoursElement;
+
+ xMinutesElement = xHoursElement + canvasWidth;
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+
+ if ( pItem == NULL )
+ {
+ return NULL;
+ }
+
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,worldClockList);
+
+ pWorldClock = dynamic_cast< WorldClock* >(worldClockList.GetAt(index));
+
+ if ( pWorldClock == NULL )
+ {
+ delete pItem;
+ pItem = null;
+ return NULL;
+ }
+
+ city = pWorldClock->GetWorldClockCity();
+ city.ToUpper();
+ city.Replace("_"," ");
+ country = pWorldClock->GetWorldClockCountry();
+ country.Replace("_"," ");
+ dst = pWorldClock->GetDstTime();
+ int timediff= pWorldClock->GetTimeZone() + (60 * dst);
+ TimeZone tz(timediff,pWorldClock->GetWorldClockId());
+ dt = tz.UtcTimeToWallTime(dtNow);
+ hours = dt.GetHour();
+ minutes = dt.GetMinute();
+ day = dt.GetDay();
+ month = dt.GetMonth();
+
+ curDay.Append(day);
+ curMonth.Clear();
+
+ switch (month)
+ {
+ case 1:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_JAN"));
+ break;
+ }
+ case 2:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_FEB"));
+ break;
+ }
+ case 3:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_MAR"));
+ break;
+ }
+ case 4:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_APR"));
+ break;
+ }
+ case 5:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_MAY"));
+ break;
+ }
+ case 6:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_JUNE"));
+ break;
+ }
+ case 7:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_JULY"));
+ break;
+ }
+ case 8:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_AUG"));
+ break;
+ }
+ case 9:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_SEP"));
+ break;
+ }
+ case 10:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_OCT"));
+ break;
+ }
+ case 11:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_NOV"));
+ break;
+ }
+ case 12:
+ {
+ curMonth.Append(CommonUtil::GetString(L"IDS_COM_BODY_DEC"));
+ break;
+ }
+
+ default:
+ break;
+ }
+
+ curDay.Append(L" ");
+ curDay.Append(curMonth);
+
+
+ if ( hours >= 6 && hours < 18) // for clock between 6 AM to 6 PM ( White )
+ {
+ pClockBgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_WORLD_CLOCK_WHITE_BG);
+ pClockNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_WORLD_CLOCK_WHITE_FG);
+
+ }
+ else
+ {
+ pClockBgBitmap = AppResource::GetInstance()->GetBitmapN(IDB_WORLD_CLOCK_BLACK_BG);
+ pClockNormalBitmap = AppResource::GetInstance()->GetBitmapN(IDB_WORLD_CLOCK_BLACK_FG);
+ }
+
+ if ( hours < 10 )
+ {
+ hrs.Append(L"0");
+ }
+ hrs.Append(hours);
+
+ // Creates an EnrichedText instance and sets the attributes
+ pEnrichedTextHours = new EnrichedText();
+ pEnrichedTextHours->Construct(Dimension(canvasWidth, canvasHeight));
+ pEnrichedTextHours->SetHorizontalAlignment(TEXT_ALIGNMENT_CENTER);
+ pTextElementHours = new TextElement();
+ pTextElementHours->Construct(hrs);
+
+ if ( hours >= 6 && hours < 18)
+ {
+ pTextElementHours->SetTextColor(Color(30,30,30));
+ }
+ else
+ {
+ pTextElementHours->SetTextColor(Color(245,245,245));
+ }
+
+ Font fontHours;
+ fontHours.Construct(FONT_STYLE_BOLD, fontSize);
+ pTextElementHours->SetFont(fontHours);
+ pEnrichedTextHours->Add(*pTextElementHours);
+
+ pCanvasHours = new (std::nothrow) Canvas();
+ pCanvasHours->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasHours->DrawBitmap(Point(0,0),*pClockBgBitmap);
+ pCanvasHours->DrawBitmap(Point(0,0),*pClockNormalBitmap);
+ pCanvasHours->DrawText(Point(0,10),*pEnrichedTextHours);
+
+
+ pFinalBitmapHours = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapHours != NULL)
+ {
+ pFinalBitmapHours->Construct(*pCanvasHours,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasHours;
+ }
+
+ if ( minutes < 10 )
+ {
+ min.Append(L"0");
+ }
+
+ min.Append(minutes);
+
+
+ pEnrichedTextMinutes = new EnrichedText();
+ pEnrichedTextMinutes->Construct(Dimension(canvasWidth, canvasHeight));
+ pEnrichedTextMinutes->SetHorizontalAlignment(TEXT_ALIGNMENT_CENTER);
+ pTextElementMinutes = new TextElement();
+ pTextElementMinutes->Construct(min);
+
+ if ( hours >= 6 && hours < 18)
+ {
+ pTextElementMinutes->SetTextColor(Color(30,30,30));
+ }
+ else
+ {
+ pTextElementMinutes->SetTextColor(Color(245,245,245));
+ }
+
+ Font font;
+ font.Construct(FONT_STYLE_BOLD, fontSize);
+ pTextElementMinutes->SetFont(font);
+ pEnrichedTextMinutes->Add(*pTextElementMinutes);
+ pCanvasMinutes = new (std::nothrow) Canvas();
+ pCanvasMinutes->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
+ pCanvasMinutes->DrawBitmap(Point(0,0),*pClockBgBitmap);
+ pCanvasMinutes->DrawBitmap(Point(0,0),*pClockNormalBitmap);
+ pCanvasMinutes->DrawText(Point(0,offSet),*pEnrichedTextMinutes);
+
+ pFinalBitmapMinutes = new (std::nothrow) Bitmap();
+
+ if ( pFinalBitmapMinutes != NULL)
+ {
+ pFinalBitmapMinutes->Construct(*pCanvasMinutes,Rectangle(0,0,canvasWidth,canvasHeight));
+ delete pCanvasMinutes;
+ }
+
+ String fontSizeStr = "";
+ SettingInfo::GetValue("http://tizen.org/setting/font.size", fontSizeStr);
+
+ if(fontSizeStr == "medium")
+ {
+ cityTextSize = 44;
+ }
+ else if(fontSizeStr == "huge")
+ {
+ cityTextSize = 81;
+
+ }
+ else if(fontSizeStr == "giant")
+ {
+ cityTextSize = 98;
+ }
+ else if(fontSizeStr == "small")
+ {
+ cityTextSize = 36;
+ }
+ else if(fontSizeStr == "large")
+ {
+ cityTextSize = 64;
+ }
+ else
+ {
+ cityTextSize = 44;
+ }
+
+ itemHeight = itemHeight + cityTextSize - 44;
+ itemCityHeight = itemCityHeight + cityTextSize - 44;
+ yHoursElement = yHoursElement + ((cityTextSize - 44)/2);
+ yMinutesElement = yMinutesElement + ((cityTextSize - 44)/2);
+ yCurDay = yCurDay + ((cityTextSize - 44)/2);
+
+ pItem->Construct(Dimension(GetClientAreaBounds().width, itemHeight), LIST_ANNEX_STYLE_NORMAL);
+ pItem->AddElement(Rectangle(xMargin, yMarginCity, itemCityWidth, itemCityHeight), IDA_FORMAT_CITY,city, cityTextSize, CUSTOM_COLOR_TRANSPARENT , CUSTOM_COLOR_TRANSPARENT , CUSTOM_COLOR_TRANSPARENT ,true);
+ pItem->AddElement(Rectangle(xMargin, yMarginCity + itemCityHeight, itemCountryWidth, itemCountryHeight), IDA_FORMAT_COUNTRY,country,countryTextSize ,CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY,true);
+ pItem->AddElement(Rectangle(xCurDay, yCurDay, itemCurDayWidth, itemCurDayHeight), IDA_FORMAT_DAY, curDay, curDayTextSize ,CUSTOM_COLOR_DARK_GREY,CUSTOM_COLOR_DARK_GREY,CUSTOM_COLOR_DARK_GREY,true);
+ pItem->AddElement(Rectangle(xHoursElement,yHoursElement, canvasWidth, canvasHeight), IDA_FORMAT_CLOCK_HOURS, *pFinalBitmapHours, null);
+ pItem->AddElement(Rectangle(xMinutesElement,yMinutesElement, canvasWidth, canvasHeight), IDA_FORMAT_CLOCK_MINUTES, *pFinalBitmapMinutes, null);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED , CUSTOM_COLOR_LIST_VIEW_NORMAL);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL , CUSTOM_COLOR_LIST_VIEW_NORMAL);
+
+ if(GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+ {
+ if ( __pItemContext!= NULL)
+ {
+ pItem->SetContextItem(__pItemContext);
+ }
+ }
+ else
+ {
+ if ( __pItemContextLandscape!= NULL)
+ {
+ pItem->SetContextItem(__pItemContextLandscape);
+ }
+ }
+
+ if ( pClockBgBitmap != NULL )
+ {
+ delete pClockBgBitmap;
+ }
+
+ if ( pClockNormalBitmap != NULL )
+ {
+ delete pClockNormalBitmap;
+ }
+
+
+ pEnrichedTextMinutes->RemoveAllTextElements(true);
+ pEnrichedTextHours->RemoveAllTextElements(true);
+ delete pEnrichedTextMinutes;
+ delete pEnrichedTextHours;
+ delete pFinalBitmapMinutes;
+ delete pFinalBitmapHours;
+
+ return pItem;
+}
+
+bool
+WorldClockListForm::DeleteItem(int index, ListItemBase *pItem, int itemWidth)
+{
+ if( pItem != NULL)
+ {
+ delete pItem;
+ pItem = null;
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+}
+
+int
+WorldClockListForm::GetItemCount(void)
+{
+ int count = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel != NULL )
+ {
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ }
+
+ return count;
+
+}
+
+void
+WorldClockListForm::OnTimerExpired(Timer& timer)
+{
+ int time = 60000 ; // to refresh list after 1 minute ( 60000 milliseconds)
+
+ if ( __pListview != NULL)
+ {
+ __pListview->UpdateList();
+ }
+
+ if ( __pTimer != NULL )
+ {
+ __pTimer->Start(time);
+ }
+}
+
+void
+WorldClockListForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus status)
+{
+
+ ArrayList worldClockList;
+ String worldClockId;
+ int id = 0;
+
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel == NULL)
+ {
+ return;
+ }
+
+ if (__pListview != NULL)
+ {
+ pWorldClockPresentationModel->GetAddedWorldClock(0, __pListview->GetItemCount(), worldClockList);
+ }
+
+ WorldClock* pWorldClock = dynamic_cast< WorldClock* >(worldClockList.GetAt(index));
+
+ if ( pWorldClock == NULL)
+ {
+ return;
+ }
+
+ switch (elementId)
+ {
+ case IDA_CONTEXT_ITEM_DELETE:
+ {
+ Point p;
+ String notification;
+ Tizen::Shell::NotificationManager notifyMgr;
+ worldClockId = pWorldClock->GetWorldClockId();
+ Integer::Parse(worldClockId,id);
+ pWorldClockPresentationModel->DeleteWorldClock(id);
+
+ notification = CommonUtil::GetString(L"IDS_COM_POP_DELETED");
+ notifyMgr.Construct();
+ notifyMgr.NotifyTextMessage(notification);
+
+ //p = Point( 25, GetFooter()->GetPosition().y + 25);
+ //InitContextMenu(p);
+
+ if( __pListview != NULL)
+ {
+ __pListview->UpdateList();
+ }
+
+ if( __pListview != NULL && __pListview->GetItemCount()== 0)
+ {
+ GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+ GetFooter()->Invalidate(true);
+ }
+ }
+ break;
+ case IDA_CONTEXT_ITEM_DST_SETTING:
+ {
+
+ int dstTime = pWorldClock->GetDstTime();
+
+ __index = index;
+
+ if (__pPopUp != null)
+ {
+ AppLog("showing");
+ __pPopUp->SetShowState(true);
+ __pPopUp->Show();
+ __pPopUp->SetDstIndex(dstTime);
+ __showPopup = true;
+ }
+
+ break;
+ }
+ break;
+ default:
+ break;
+ }
+
+ worldClockList.RemoveAll(true);
+}
+
+result
+WorldClockListForm::InitContextMenu(Point& p)
+{
+ result r = E_SUCCESS;
+
+ if ( __pMenu != NULL)
+ {
+ __pMenu->RemoveAllItems();
+ delete __pMenu;
+ __pMenu = null ;
+ }
+
+ __pMenu = new(std::nothrow) ContextMenu();
+ r = __pMenu->Construct(p, CONTEXT_MENU_STYLE_LIST,CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+
+ if( __pMenu != NULL && r == E_SUCCESS)
+ {
+ int count = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+
+ __pMenu->AddItem(CommonUtil::GetString(L"IDS_WCL_SK_EDIT"), IDA_DELETE_BTN_CLICKED);
+ __pMenu->SetShowState(false);
+ __pMenu->AddActionEventListener(*this);
+ SetControlAlwaysOnTop(*__pMenu, true);
+ }
+
+ return r;
+
+}
+
+void
+WorldClockListForm::OnDaylightSavingPopUpItemSelected( int dstTime)
+{
+ ArrayList worldClockList;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel == NULL )
+ {
+ return;
+ }
+
+ if ( __pListview != NULL)
+ {
+ pWorldClockPresentationModel->GetAddedWorldClock(0, __pListview->GetItemCount(), worldClockList);
+ }
+
+ WorldClock* pWorldClock = dynamic_cast< WorldClock* >(worldClockList.GetAt(__index));
+
+ if ( pWorldClock != NULL)
+ {
+ pWorldClock->SetDstTime(dstTime);
+ pWorldClockPresentationModel->UpdateWorldClockDst(*pWorldClock);
+ }
+
+ if ( __pPopUp != NULL)
+ {
+ __pPopUp->SetShowState(false);
+ __showPopup = false;
+ }
+
+ if ( __pListview != NULL)
+ {
+ __pListview->UpdateList();
+ }
+ worldClockList.RemoveAll(true);
+}
+
+void
+WorldClockListForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+ //__pListview->UpdateList();
+}
+
+void
+WorldClockListForm::OnFormMenuRequested(Controls::Form& source)
+{
+ AppLog("WorldClockListForm::OnFormMenuRequested");
+
+ int count = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel != NULL )
+ {
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ }
+
+ if( count > 0)
+ {
+ __pOptionMenu->SetShowState(true);
+ __pOptionMenu->Show();
+ }
+}
+
+void
+WorldClockListForm::OnSettingChanged(Tizen::Base::String& key)
+{
+ if (key == L"http://tizen.org/setting/locale.time")
+ {
+ __pListview->UpdateList();
+ }
+}
+
+void
+WorldClockListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ AppLog("WorldClockListForm::OnUserEventReceivedN");
+ if (requestId == 10001)
+ {
+ __showPopup = false;
+ }
+ else
+ {
+ __timerResetFlag = 1;
+ UiApp* pApp = UiApp::GetInstance();
+ pApp->GetAppRegistry()->Set(__timerResetKey, __timerResetFlag);
+ pApp->GetAppRegistry()->Save();
+ pApp->Terminate();
+ }
+
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file ClkWorldClockPresentationModel.cpp
+ * @brief Used to define WorldClockPresentationModel
+ */
+
+#include <cstdlib>
+#include <FAppApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FLocales.h>
+
+#include "ClkDataServiceProvider.h"
+#include "ClkTypes.h"
+#include "ClkWorldClockPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+
+WorldClockPresentationModel* WorldClockPresentationModel::__pInstance = NULL;
+
+extern const wchar_t* WORLD_CLOCK_TABLE;
+
+
+WorldClockPresentationModel::WorldClockPresentationModel(void)
+{
+
+}
+
+WorldClockPresentationModel::~WorldClockPresentationModel(void)
+{
+
+}
+
+result
+WorldClockPresentationModel::Initialize(void)
+{
+ result r = E_SUCCESS;
+
+ return r;
+}
+
+
+ArrayList*
+WorldClockPresentationModel::GetCityList(const String& searchText)
+{
+ int separatorIndex;
+ String cityName;
+ String areaName;
+ LocaleManager localeManager;
+ localeManager.Construct();
+ IList *pTimezoneIds = localeManager.GetAvailableTimeZonesN();
+ ArrayList *pTimeZones = new ArrayList();
+ pTimeZones->Construct();
+ String strSearchText = searchText;
+
+ if (pTimezoneIds == null)
+ {
+ return null;
+ }
+
+ int totalCount = pTimezoneIds->GetCount();
+
+ for(int count = 0; count < totalCount; count++)
+ {
+ String *pTZId = dynamic_cast<String*>(pTimezoneIds->GetAt(count));
+ if (pTZId != null)
+ {
+ pTZId->Trim();
+ }
+ if(pTZId == null || pTZId->GetLength() == 0 || pTZId->Contains("/") == false || pTZId->Contains("System") == true || pTZId->Contains("GMT") == true)
+ continue;
+ TimeZone *pTimeZone = new TimeZone();
+ TimeZone::GetTimeZone(*pTZId, *pTimeZone);
+ String gmtValue = L"";
+
+ if(pTimeZone->GetRawOffset() >= 0)
+ {
+ gmtValue.Append("+");
+ }
+
+ gmtValue.Append(pTimeZone->GetRawOffset()/60);
+
+ pTimeZone->GetId().IndexOf(L"/", 0, separatorIndex);
+ pTimeZone->GetId().SubString(separatorIndex + 1, cityName);
+ pTimeZone->GetId().SubString(0, separatorIndex, areaName);
+
+ if (pTimeZone->GetRawOffset()%60 != 0)
+ {
+ gmtValue.Append(':');
+ if (pTimeZone->GetRawOffset() > 0)
+ {
+ gmtValue.Append(pTimeZone->GetRawOffset()%60);
+ }
+ else
+ {
+ gmtValue.Append(0 - pTimeZone->GetRawOffset()%60);
+ }
+ }
+
+ AppLog("searchText :%ls, cityname: %ls, areaname: %ls", strSearchText.GetPointer(), cityName.GetPointer(), areaName.GetPointer());
+ strSearchText.Replace(L" ",L"_");
+ cityName.ToUpperCase();
+ strSearchText.ToUpperCase();
+ if(strSearchText == L"" || cityName.Contains(strSearchText) == true || areaName.Contains(strSearchText) == true/*pTimeZone->GetId().Contains(searchText) == true*/ || gmtValue.Contains(strSearchText) == true)
+ {
+ pTimeZones->Add(pTimeZone);
+ AppLog("the searchText: %ls , Gmt : %ls the value: %ls",strSearchText.GetPointer(),gmtValue.GetPointer(),pTZId->GetPointer());
+ }
+ else
+ {
+ delete pTimeZone;
+ }
+
+ }
+
+ if (pTimezoneIds != null)
+ {
+ pTimezoneIds->RemoveAll();
+ delete pTimezoneIds;
+ pTimezoneIds = null;
+ }
+
+ return pTimeZones;
+}
+
+result
+WorldClockPresentationModel::AddWorldClock(WorldClock& worldClock)
+{
+
+ result r = E_FAILURE;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ String query;
+ String columnNames;
+ String attachment;
+ int resultCount = -1;
+ int rowId = -1;
+ DateTime dt;
+ String worldClockId;
+ String worldClockCity = worldClock.GetWorldClockCity();
+ String worldClockCountry = worldClock.GetWorldClockCountry();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+ int timeZone = worldClock.GetTimeZone();
+ int count = 0;
+ int dstTime = 0;
+ int order = -1 ;
+ GetAddedClockCount(count);
+ order = count;
+
+ columnNames.Append(L"CITY, ");
+ columnNames.Append(L"COUNTRY, ");
+ columnNames.Append(L"TIMEZONE, ");
+ columnNames.Append(L"ORDERNO, ");
+ columnNames.Append(L"DSTTIME");
+
+ query.Append(L"INSERT INTO ");
+ query.Append(worldClockTable);
+ query.Append("(");
+ query.Append(columnNames);
+ query.Append(") ");
+ query.Append("VALUES(");
+ query.Append("'");
+ query.Append(worldClockCity);
+ query.Append("', ");
+ query.Append("'");
+ query.Append(worldClockCountry);
+ query.Append("', ");
+ query.Append(timeZone);
+ query.Append(", ");
+ query.Append(order);
+ query.Append(", ");
+ query.Append(dstTime);
+ query.Append(")");
+
+
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+ if (IsFailed(r))
+ {
+ AppLogDebug("ExecuteQuery result = %s query = %ls", GetErrorMessage(r), query.GetPointer());
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+ if (IsFailed(r))
+ {
+ AppLogDebug("CommitDb result = %s", GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->GetLastInsertedId(worldClockTable, rowId);
+ AppLog("GetLastInsertedId result = %s", GetErrorMessage(r));
+
+ if (rowId < 0)
+ return E_FAILURE;
+
+ worldClockId.Append(rowId);
+
+ //Set the generated ID to WorldClock
+ worldClock.SetWorldClockId(worldClockId);
+
+ //CATCH:
+ return r;
+}
+
+result
+WorldClockPresentationModel::DeleteWorldClock(int worldClockId)
+{
+ result r = E_SUCCESS;
+ String query;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ int resultCount = -1;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ if (worldClockId < 1)
+ {
+ return E_INVALID_ARG;
+ }
+
+ query.Append(L"DELETE FROM ");
+ query.Append(worldClockTable);
+ query.Append(" WHERE ID = ");
+ query.Append(worldClockId);
+
+ pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ pDataServiceProvider->CommitDb();
+
+ return r;
+}
+
+result
+WorldClockPresentationModel::GetAddedClockCount(int& addedWorlClockcount)
+{
+ int count = -1;
+ int intVal = -1;
+ String query;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ result r = E_FAILURE;
+ bool nextRowPresent = false;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ query.Append(L"SELECT COUNT(ID) FROM ");
+ query.Append(worldClockTable);
+
+ pDataServiceProvider->ExecuteQuery(query, count);
+
+ pDataServiceProvider->DbIsNextRowPresent(nextRowPresent);
+
+ if (nextRowPresent == true)
+ {
+ r = pDataServiceProvider->GetColumn(0, intVal);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("Error:WorldClockPresentationModel::GetColumn:%s", GetErrorMessage(r));
+ return r;
+ }
+ }
+ addedWorlClockcount = intVal;
+
+ return r;
+}
+
+
+result
+WorldClockPresentationModel::CreateAddedWorldClockList(int worldClockCount, ArrayList& worldClockList)
+{
+ WorldClock* pWorldClock = null;
+ int intVal = -1;
+ String value;
+ result r = E_FAILURE;
+ String worldClockId;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ bool nextRowPresent = false;
+
+ if (worldClockCount < 1)
+ {
+ return E_SUCCESS;
+ }
+
+ for (int l_worldClockCount = 0; l_worldClockCount < worldClockCount; l_worldClockCount++)
+ {
+ r = pDataServiceProvider->DbIsNextRowPresent(nextRowPresent);
+ if (IsFailed(r))
+ return r;
+ if (nextRowPresent == true)
+ {
+ pWorldClock = new (std::nothrow) WorldClock();
+ if (pWorldClock)
+ {
+ for (int columnCount = 0; columnCount < MAX_WORLDCLOCK_TABLE_COLUMN; columnCount++)
+ {
+
+ switch (columnCount)
+ {
+ case 0:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+ if (!IsFailed(r))
+ {
+ if (intVal > 0)
+ {
+ worldClockId.Clear();
+ worldClockId.Append(intVal);
+ if (worldClockId.GetLength() > 0)
+ {
+ pWorldClock->SetWorldClockId(worldClockId);
+ }
+ }
+
+ }
+ break;
+
+ case 1:
+ r = pDataServiceProvider->GetColumn(columnCount, value);
+ if (!IsFailed(r))
+ {
+ pWorldClock->SetWorldClockCity(value);
+ }
+ break;
+
+ case 2:
+ r = pDataServiceProvider->GetColumn(columnCount, value);
+ if (!IsFailed(r))
+ {
+ pWorldClock->SetWorldClockCountry(value);
+ }
+ break;
+
+ case 3:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+ if (!IsFailed(r))
+ {
+ pWorldClock->SetTimeZone(intVal);
+ }
+ break;
+
+ case 4:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+ if (!IsFailed(r))
+ {
+ pWorldClock->SetOrder(intVal);
+ }
+ break;
+
+ case 5:
+ r = pDataServiceProvider->GetColumn(columnCount, intVal);
+ if (!IsFailed(r))
+ {
+ pWorldClock->SetDstTime(intVal);
+ }
+ break;
+
+ default:
+ break;
+ }
+ }
+
+ r = worldClockList.Add(*pWorldClock);
+ if (IsFailed(r))
+ {
+ return r;
+ }
+ }
+ }
+ }
+ return r;
+}
+
+result
+WorldClockPresentationModel::GetAddedWorldClock(int startIndex, int limit, ArrayList& worldClockList)
+{
+ int count = -1;
+ String query;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ result r = E_FAILURE;
+ WorldClock worldClock;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ query.Append(L"SELECT * FROM ");
+ query.Append(worldClockTable);
+ query.Append(" ORDER BY ORDERNO");
+
+ //Append LIMIT
+ if (limit > 0)
+ {
+ query.Append(" LIMIT ");
+ query.Append(limit);
+
+ //Append OFFESET
+ if (startIndex >= 0)
+ {
+ query.Append(" OFFSET ");
+ query.Append(startIndex);
+ }
+ }
+
+ r = pDataServiceProvider->ExecuteQuery(query, count);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::GetWorldClock query failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ r = CreateAddedWorldClockList(count, worldClockList);
+
+ return r;
+}
+
+result
+WorldClockPresentationModel::DeleteWorldClock(ArrayList& worldclocklist)
+{
+ result r = E_SUCCESS;
+ String query;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ int resultCount = -1;
+ String worldClockId;
+ WorldClock* pWorldClock = null;
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ query.Append(L"DELETE FROM ");
+ query.Append(worldClockTable);
+ query.Append(" WHERE ID IN ( ");
+
+ for (int count = 0; count < worldclocklist.GetCount(); count++)
+ {
+ pWorldClock = dynamic_cast< WorldClock* >(worldclocklist.GetAt(count));
+
+ if ( pWorldClock == NULL )
+ {
+ return E_FAILURE;
+ }
+
+ worldClockId = pWorldClock->GetWorldClockId();
+ int id = 0;
+ Integer::Parse(worldClockId, id);
+ query.Append(id);
+ query.Append(",");
+ }
+
+ query.Remove(query.GetLength() - 1, 1);
+ query.Append(")");
+ AppLogDebug("query = %s",query.GetPointer());
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::DeleteQuery query failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::CommitDb() failed %s",GetErrorMessage(r));
+ }
+
+ return r;
+}
+
+result
+WorldClockPresentationModel::UpdateWorldClockOrder(WorldClock& worldclock)
+{
+ result r = E_FAILURE;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ String query;
+ String columnNames;
+ String attachment;
+ int resultCount = -1;
+ int rowId = -1;
+ DateTime dt;
+ String worldClockId = worldclock.GetWorldClockId();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ query.Append(L"UPDATE ");
+ query.Append(worldClockTable);
+ query.Append(" SET ORDERNO = ");
+ query.Append(worldclock.GetOrder());
+ query.Append(" WHERE ID = ");
+ query.Append("'");
+ query.Append(worldClockId);
+ query.Append("'");
+
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::UpdateWorldClock query failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::UpdateWorldClock CommitDb failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->GetLastInsertedId(worldClockTable, rowId);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::UpdateWorldClock GetLastInsertedId failed %s", GetErrorMessage(r));
+ return r;
+ }
+
+ if (rowId < 0)
+ return E_FAILURE;
+
+ return r;
+}
+
+result
+WorldClockPresentationModel::UpdateWorldClockDst(WorldClock& worldclock)
+{
+ result r = E_FAILURE;
+ String worldClockTable(WORLD_CLOCK_TABLE);
+ String query;
+ String columnNames;
+ String attachment;
+ int resultCount = -1;
+ int rowId = -1;
+ DateTime dt;
+ String worldClockId = worldclock.GetWorldClockId();
+ DataServiceProvider* pDataServiceProvider = DataServiceProvider::GetInstance();
+
+ query.Append(L"UPDATE ");
+ query.Append(worldClockTable);
+ query.Append(" SET DSTTIME = ");
+ query.Append(worldclock.GetDstTime());
+ query.Append(" WHERE ID = ");
+ query.Append("'");
+ query.Append(worldClockId);
+ query.Append("'");
+
+ r = pDataServiceProvider->ExecuteQuery(query, resultCount);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::UpdateWorldClockDst query failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->CommitDb();
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("PresentationModelBase::CommitDb:failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ r = pDataServiceProvider->GetLastInsertedId(worldClockTable, rowId);
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("WorldClockPresentationModel::UpdateWorldClockDst GetLastInsertedId failed %s",GetErrorMessage(r));
+ return r;
+ }
+
+ if (rowId < 0)
+ return E_FAILURE;
+
+ return r;
+}
+
+WorldClockPresentationModel*
+WorldClockPresentationModel::GetInstance(void)
+{
+ if (__pInstance == null)
+ {
+ CreateInstance();
+ }
+
+ return __pInstance;
+}
+
+result
+WorldClockPresentationModel::Construct(void)
+{
+ return E_SUCCESS;
+}
+
+void
+WorldClockPresentationModel::CreateInstance(void)
+{
+ __pInstance = new (std::nothrow) WorldClockPresentationModel();
+ result r = __pInstance->Construct();
+ if (IsFailed(r))
+ {
+ delete __pInstance;
+ __pInstance = null;
+ return;
+ }
+
+ std::atexit(DestroyInstance);
+}
+
+void
+WorldClockPresentationModel::DestroyInstance(void)
+{
+ delete __pInstance;
+}
--- /dev/null
+//
+// Tizen Native SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/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.
+//
+
+/**
+ * @file WorldClockReorderForm.cpp
+ * @brief Used to define WorldClockReorderForm
+ */
+
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+#include <FUi.h>
+
+#include "ClkCommonLib.h"
+#include "ClkCustomColors.h"
+#include "ClkNotification.h"
+#include "ClkSceneRegister.h"
+#include "ClkTypes.h"
+#include "ClkWorldClock.h"
+#include "ClkWorldClockReorderForm.h"
+#include "ClkWorldClockPresentationModel.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int IDA_TABBAR_ITEM1_ALARM = 200;
+static const int IDA_TABBAR_ITEM1_WORLDCLOCK = 201;
+static const int IDA_TABBAR_ITEM2_STOPWATCH = 202;
+static const int IDA_TABBAR_ITEM3_TIMER = 203;
+static const int IDA_DONE = 204;
+static const int IDA_CANCEL = 205;
+static const int IDA_FORMAT_COUNTRY = 206;
+static const int IDA_FORMAT_TIME = 207;
+
+
+WorldClockReorderForm::WorldClockReorderForm(void)
+: __pData(null),
+ __pListView(null)
+{
+
+}
+
+WorldClockReorderForm::~WorldClockReorderForm(void)
+{
+
+}
+
+bool
+WorldClockReorderForm::Initialize(void)
+{
+ Construct(L"IDL_REORDER_WORLD_CLOCK_LIST");
+
+ return true;
+}
+
+result
+WorldClockReorderForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+ AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+
+ if ( pAppResource == NULL)
+ {
+ return E_FAILURE;
+ }
+
+ SetFormBackEventListener(this);
+ SceneManager::GetInstance()->AddSceneEventListener(IDSCN_WORLD_CLOCK_REORDER, *this);
+
+ SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+
+ GetFooter()->AddActionEventListener(*this);
+
+
+ __pListView = static_cast< ListView* >(GetControl(L"IDC_LISTVIEW_WORLD_CLOCK"));
+
+ if( __pListView != NULL)
+ {
+ __pListView->SetItemProvider(*this);
+ __pListView->AddListViewItemEventListener(*this);
+ __pListView->UpdateList();
+ __pListView->BeginReorderingMode();
+ }
+
+ return r;
+}
+
+void
+WorldClockReorderForm::OnActionPerformed(const Control& source, int actionId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pSceneManager == NULL)
+ {
+ return;
+ }
+
+ if ( pWorldClockPresentationModel == NULL)
+ {
+ return;
+ }
+
+ switch (actionId)
+ {
+ case IDA_DONE:
+ {
+ int count = 0;
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ WorldClock* pWorldClock = null ;
+
+ for(int counter = 0 ; counter < count ; counter++ )
+ {
+ pWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(counter));
+
+ if ( pWorldClock != NULL)
+ {
+ pWorldClock->SetOrder(counter);
+ pWorldClockPresentationModel->UpdateWorldClockOrder(*pWorldClock);
+ }
+ }
+
+ __pListView->EndReorderingMode();
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ }
+ break;
+ case IDA_CANCEL:
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ }
+ break;
+
+ case IDA_TABBAR_ITEM1_ALARM:
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALARM_LIST));
+ }
+ break;
+
+ case IDA_TABBAR_ITEM2_STOPWATCH:
+ {
+
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_STOP_WATCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
+ }
+ break;
+
+ case IDA_TABBAR_ITEM3_TIMER:
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TIMER_VIEW));
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
+WorldClockReorderForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+ int count = 0;
+
+ if (__pListView != NULL)
+ {
+ __pListView->UpdateList();
+ }
+
+ __worldClockList.RemoveAll(true);
+
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel != NULL)
+ {
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,__worldClockList);
+ }
+
+ GetFooter()->SetItemEnabled(0,false);
+ GetHeader()->SetItemSelected(1);
+ GetHeader()->Invalidate(true);
+ GetFooter()->Invalidate(true);
+}
+
+void
+WorldClockReorderForm::OnFormBackRequested(Form& source)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+
+ if (pSceneManager != null)
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_ALARM_LIST, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+ }
+}
+
+ListItemBase *
+WorldClockReorderForm::CreateItem(int index, int itemWidth)
+{
+ int count = 0 ;
+ int hours = 0;
+ int minutes = 0;
+ int timediff = 0;
+ int itemHeight = 140 ;
+ int xMargin = 26;
+ int yMainText = 22;
+ int rightMargin = 26 ;
+ int mainTextHeight = 54 ;
+ int subTextHeight = 42;
+ int mainTextSize = 44;
+ int subTextSize = 32;
+ String city;
+ String country;
+ ArrayList worldClockList;
+ String time;
+ DateTime dtNow;
+ DateTime dt;
+ SystemTime::GetCurrentTime(UTC_TIME,dtNow);
+
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel == NULL)
+ {
+ if ( pItem != null )
+ {
+ delete pItem;
+ pItem = null ;
+ }
+ return NULL;
+ }
+
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ pWorldClockPresentationModel->GetAddedWorldClock(0,count,worldClockList);
+
+ WorldClock* pWorldClock = dynamic_cast< WorldClock* >(worldClockList.GetAt(index));
+
+ if( pWorldClock == NULL)
+ {
+ if ( pItem != null )
+ {
+ delete pItem;
+ pItem = null ;
+ }
+ return NULL;
+ }
+
+ city = pWorldClock->GetWorldClockCity();
+ country = pWorldClock->GetWorldClockCountry();
+ city.Append(L" / ");
+ city.Append(country);
+ timediff = pWorldClock->GetTimeZone();
+
+ TimeZone tz(timediff,pWorldClock->GetWorldClockId());
+
+ dt = tz.UtcTimeToWallTime(dtNow);
+ hours = dt.GetHour();
+ minutes = dt.GetMinute();
+
+ if (hours < 10)
+ {
+ time.Append("0");
+ }
+
+ time.Append(hours);
+ time.Append(L":");
+
+ if (minutes < 10)
+ {
+ time.Append("0");
+ }
+
+ time.Append(minutes);
+ time.Append(" ");
+
+ if (hours >= 12)
+ {
+ time.Append(CommonUtil::GetString(L"IDS_COM_POP_PM"));
+ }
+ else
+ {
+ time.Append(CommonUtil::GetString(L"IDS_COM_BODY_AM"));
+ }
+
+ pItem->Construct(Dimension(GetClientAreaBounds().width, itemHeight), LIST_ANNEX_STYLE_NORMAL);
+ pItem->AddElement(Rectangle(xMargin, yMainText, GetClientAreaBounds().width - xMargin - rightMargin, mainTextHeight), IDA_FORMAT_COUNTRY,city, mainTextSize, CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT ,true);
+ pItem->AddElement(Rectangle(xMargin, yMainText + mainTextHeight, GetClientAreaBounds().width - xMargin - rightMargin, subTextHeight), IDA_FORMAT_TIME,time, subTextSize, CUSTOM_COLOR_GREY , CUSTOM_COLOR_GREY, CUSTOM_COLOR_GREY ,true);
+
+ return pItem;
+}
+
+bool
+WorldClockReorderForm::DeleteItem(int index, ListItemBase *pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+}
+
+int
+WorldClockReorderForm::GetItemCount(void)
+{
+ int count = 0;
+ WorldClockPresentationModel* pWorldClockPresentationModel = WorldClockPresentationModel::GetInstance();
+
+ if ( pWorldClockPresentationModel != NULL)
+ {
+ pWorldClockPresentationModel->GetAddedClockCount(count);
+ }
+
+ return count;
+}
+
+void
+WorldClockReorderForm::OnListViewItemReordered(Tizen::Ui::Controls::ListView & listView, int indexFrom,int indexTo)
+{
+ WorldClock* ptempWorldClock = null ;
+
+ ptempWorldClock = dynamic_cast< WorldClock* >(__worldClockList.GetAt(indexFrom));
+
+ if ( ptempWorldClock != NULL )
+ {
+ __worldClockList.RemoveAt(indexFrom,false);
+ __worldClockList.InsertAt(*ptempWorldClock,indexTo);
+ }
+
+ GetFooter()->SetItemEnabled(0,true);
+ GetFooter()->Invalidate(true);
+
+}