diff options
215 files changed, 9836 insertions, 0 deletions
@@ -0,0 +1,206 @@ +Flora License + +Version 1.0, May, 2012 + +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 Compatibility Definition Document +and passes the Compatibility Test Suite 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.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://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. + @@ -0,0 +1,4 @@ +Copyright (c) Samsung Electronics Co., Ltd. All rights reserved. +Except as noted, this software is licensed under Flora License, Version 1. +Please, see the LICENSE file for Flora License terms and conditions. + diff --git a/description.xml b/description.xml new file mode 100755 index 0000000..f0f7df5 --- /dev/null +++ b/description.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?> + +<Overview version="0.17.1"> + <SampleName> UiControls </SampleName> + <SampleVersion>1.0</SampleVersion> + <Preview>screenshot.png</Preview> + <Description> +The UiControls sample application demonstrates how you can implement basic UI controls, such as buttons, edit fields, and message boxes, to add interactivity to your application. + </Description> +</Overview> diff --git a/project/home/nofile.dummy b/project/home/nofile.dummy new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/project/home/nofile.dummy diff --git a/project/inc/AnimationForm.h b/project/inc/AnimationForm.h new file mode 100644 index 0000000..9e3a4be --- /dev/null +++ b/project/inc/AnimationForm.h @@ -0,0 +1,49 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _ANIMATION_FORM_H_ +#define _ANIMATION_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class AnimationForm + : public BaseForm + , public Tizen::Ui::IAnimationEventListener +{ +public: + AnimationForm(void); + virtual ~AnimationForm(void); + + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + virtual void OnAnimationStopped(const Tizen::Ui::Control& source); + virtual bool Initialize(void); + +private: + static const int ID_BUTTON_ANIMATION_PLAY = 701; + static const int ID_BUTTON_ANIMATION_STOP = 702; + static const int ID_BUTTON_ANIMATION_PAUSE = 703; + + Tizen::Ui::Controls::Animation* __pAnimation; + Tizen::Base::Collection::ArrayList* __pAnimationFrameList; + Tizen::Ui::Controls::Button* __pAniPlayButton; + Tizen::Ui::Controls::Button* __pAniPauseButton; + Tizen::Ui::Controls::Button* __pAniStopButton; +}; // AnimationForm + +#endif // _ANIMATION_FORM_H_ + diff --git a/project/inc/BaseForm.h b/project/inc/BaseForm.h new file mode 100644 index 0000000..eced873 --- /dev/null +++ b/project/inc/BaseForm.h @@ -0,0 +1,44 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _BASE_FORM_H_ +#define _BASE_FORM_H_ + +#include <FUi.h> +#include <FGraphics.h> +#include <FMedia.h> +#include <FBase.h> + +class BaseForm + : public Tizen::Ui::Controls::Form + , public Tizen::Ui::IActionEventListener + , public Tizen::Ui::Controls::IFormBackEventListener +{ +public: + BaseForm(void); + virtual ~BaseForm(void); + + virtual bool Initialize(void) = 0; + virtual result OnInitializing(void); + bool SetFooter(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source) ; + +protected: + static const int ID_EXIT = 100; +}; // BaseForm + +#endif // _BASE_FORM_H_ diff --git a/project/inc/ButtonForm.h b/project/inc/ButtonForm.h new file mode 100644 index 0000000..e3f3a27 --- /dev/null +++ b/project/inc/ButtonForm.h @@ -0,0 +1,35 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _BUTTON_FORM_H_ +#define _BUTTON_FORM_H_ + +#include "BaseForm.h" + +class ButtonForm + : public BaseForm +{ +public: + ButtonForm(void); + virtual ~ButtonForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +}; // ButtonForm + +#endif // _BUTTON_FORM_H_ diff --git a/project/inc/CheckButtonForm.h b/project/inc/CheckButtonForm.h new file mode 100644 index 0000000..110e6b0 --- /dev/null +++ b/project/inc/CheckButtonForm.h @@ -0,0 +1,35 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _CHECK_BUTTON_FORM_H_ +#define _CHECK_BUTTON_FORM_H_ + +#include "BaseForm.h" + +class CheckButtonForm + : public BaseForm +{ +public: + CheckButtonForm(void); + virtual ~CheckButtonForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +}; // CheckButtonForm + +#endif // _CHECK_BUTTON_FORM_H_ diff --git a/project/inc/ColorPickerForm.h b/project/inc/ColorPickerForm.h new file mode 100644 index 0000000..e2dbe52 --- /dev/null +++ b/project/inc/ColorPickerForm.h @@ -0,0 +1,37 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _COLOR_PICKER_FORM_H_ +#define _COLOR_PICKER_FORM_H_ + +#include "BaseForm.h" + +class ColorPickerForm + : public BaseForm + , public Tizen::Ui::IColorChangeEventListener +{ +public: + ColorPickerForm(void); + virtual ~ColorPickerForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnColorChanged(const Tizen::Ui::Control& source, const Tizen::Graphics::Color& color); + + Tizen::Ui::Controls::Label* __pLabelColor; +}; // ColorPickerForm + +#endif // _COLOR_PICKER_FORM_H_ diff --git a/project/inc/CustomButton.h b/project/inc/CustomButton.h new file mode 100644 index 0000000..bb0765e --- /dev/null +++ b/project/inc/CustomButton.h @@ -0,0 +1,58 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _CUSTOM_BUTTON_H_ +#define _CUSTOM_BUTTON_H_ + +#include <FBase.h> +#include <FUi.h> + +// forward declaration +class CustomButton; + + +class IClickListener +{ +// Life-cycle +public: + IClickListener(void) {} + virtual ~IClickListener(void) {} + virtual void OnClicked(CustomButton& source) {} +}; // IClickListener + +class CustomButton + : public Tizen::Ui::Container +{ +// Life-cycle +public: + CustomButton(void); + virtual ~CustomButton(void); + + bool Construct(const Tizen::Graphics::Rectangle& rect); + virtual void CleanUp(void); + void SetClickListener(const IClickListener* pListener); + void SetText(const Tizen::Base::String& text); + Tizen::Base::String GetText(void) const; + virtual void OnEvaluateSize(Tizen::Graphics::Dimension &evaluatedSize); + virtual result OnBoundsChanging(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect); + virtual void OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect); + virtual result OnDraw(void); + +protected: + void* _pImpl; +}; // CustomButton + +#endif // _CUSTOM_BUTTON_H_ diff --git a/project/inc/CustomButtonForm.h b/project/inc/CustomButtonForm.h new file mode 100644 index 0000000..8a3cff4 --- /dev/null +++ b/project/inc/CustomButtonForm.h @@ -0,0 +1,40 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _CUSTOM_BUTTON_FORM_H_ +#define _CUSTOM_BUTTON_FORM_H_ + +#include <FUix.h> +#include "BaseForm.h" +#include "CustomButton.h" + +class CustomButtonForm + : public BaseForm + , public IClickListener +{ +public: + CustomButtonForm(void); + virtual ~CustomButtonForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId){} + virtual void OnClicked(CustomButton& source); + +private: +}; // CustomButtonForm + +#endif // _CUSTOM_BUTTON_FORM_H_ diff --git a/project/inc/DateTimeForm.h b/project/inc/DateTimeForm.h new file mode 100644 index 0000000..cbc2087 --- /dev/null +++ b/project/inc/DateTimeForm.h @@ -0,0 +1,59 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _DATETIME_FORM_H_ +#define _DATETIME_FORM_H_ + +#include "BaseForm.h" + +class DateTimeForm + : public BaseForm + , public Tizen::Ui::IDateTimeChangeEventListener + , public Tizen::Ui::IDateChangeEventListener + , public Tizen::Ui::ITimeChangeEventListener +{ +public: + DateTimeForm(void); + virtual ~DateTimeForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + virtual void OnDateTimeChangeCanceled (const Tizen::Ui::Control &source); + virtual void OnDateTimeChanged (const Tizen::Ui::Control &source, int year, int month, int day, int hour, int minute); + virtual void OnDateChanged(const Tizen::Ui::Control& source, int year, int month, int day); + virtual void OnDateChangeCanceled(const Tizen::Ui::Control& source); + virtual void OnTimeChanged(const Tizen::Ui::Control& source, int hour, int minute); + virtual void OnTimeChangeCanceled(const Tizen::Ui::Control& source); + +private: + static const int ID_BUTTON_DATE_ON = 101; + static const int ID_BUTTON_TIME_ON = 102; + static const int ID_BUTTON_DATETIME_ON = 103; + + Tizen::Ui::Controls::DateTimePicker* __pDateTimePicker; + Tizen::Ui::Controls::DatePicker* __pDatePicker; + Tizen::Ui::Controls::TimePicker* __pTimePicker; + Tizen::Ui::Controls::EditDate* __pEditDate; + Tizen::Ui::Controls::EditDate* __pEditDateDisable; + Tizen::Ui::Controls::EditDate* __pEditDateNotitle; + Tizen::Ui::Controls::EditTime* __pEditTime; + Tizen::Ui::Controls::EditTime* __pEditTimeDisable; + Tizen::Ui::Controls::EditTime* __pEditTimeNotitle; +}; // DateTimeForm + +#endif // _DATETIME_FORM_H_ diff --git a/project/inc/EditForm.h b/project/inc/EditForm.h new file mode 100644 index 0000000..2b678e7 --- /dev/null +++ b/project/inc/EditForm.h @@ -0,0 +1,46 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _EDIT_FORM_H_ +#define _EDIT_FORM_H_ + +#include "BaseForm.h" + +class EditForm + : public BaseForm + , public Tizen::Ui::ITextEventListener +{ +public: + EditForm(void); + virtual ~EditForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + virtual void OnTextValueChanged(const Tizen::Ui::Control& source); + virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source); + +private: + static const int ID_BUTTON_OK = 201; + static const int ID_BUTTON_CLEAR = 202; + + Tizen::Ui::Controls::EditArea* __pEditArea; + Tizen::Ui::Controls::EditField* __pEditField; + Tizen::Ui::Controls::EditField* __pEditFieldDisable; + +}; // EditForm + +#endif // _EDIT_FORM_H_ diff --git a/project/inc/EnrichedTextForm.h b/project/inc/EnrichedTextForm.h new file mode 100644 index 0000000..c409862 --- /dev/null +++ b/project/inc/EnrichedTextForm.h @@ -0,0 +1,85 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _ENRICHED_TEXT_FORM_H_ +#define _ENRICHED_TEXT_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class EnrichedTextForm + : public BaseForm, + public Tizen::Ui::Controls::IListViewItemEventListener, + public Tizen::Ui::Controls::IListViewItemProvider +{ +public: + EnrichedTextForm(void); + virtual ~EnrichedTextForm(void); + + virtual bool Initialize(void); + virtual result OnDraw(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +private: + static const int ID_EXIT =100; + //ID_FOOTER_ITEM1 + static const int ID_VERTICAL_ITEM = 201; + static const int ID_HORIZONTAL_ITEM = 202; + static const int ID_WRAP_ITEM = 203; + static const int ID_ABBREVIATION_ITEM = 204; + + //Wrap Style + static const int TEXT_WRAP_NONE_INDEX = 0; + static const int TEXT_WRAP_WORD_WRAP_INDEX = 1; + static const int TEXT_WRAP_CHARACTER_WRAP_INDEX = 2; + + //Horizontal Style + static const int TEXT_ALIGNMENT_LEFT_INDEX = 0; + static const int TEXT_ALIGNMENT_CENTER_INDEX = 1; + static const int TEXT_ALIGNMENT_RIGHT_INDEX = 2; + + //Vertical + static const int TEXT_ALIGNMENT_TOP_INDEX = 0; + static const int TEXT_ALIGNMENT_MIDDLE_INDEX = 1; + static const int TEXT_ALIGNMENT_BOTTOM_INDEX = 2; + + //Abbreviation + static const int ABBREVIATION_ENABLED_TRUE = 0; + static const int ABBREVIATION_ENABLED_FALSE = 1; + + Tizen::Graphics::EnrichedText* __pEnrichedText; + Tizen::Graphics::TextElement* __pTextElement1; + Tizen::Graphics::TextElement* __pTextElement2; + Tizen::Graphics::TextElement* __pTextElement3; + Tizen::Ui::Controls::Label *__pLabelText; + + int __vertialCount; + int __horizontalCount; + int __wrapCount; + int __abbriviationCount; + + 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 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); +}; // EnrichedTextForm + +#endif // _ENRICHEDTEXT_FORM_H_ diff --git a/project/inc/ExpandableEditAreaForm.h b/project/inc/ExpandableEditAreaForm.h new file mode 100644 index 0000000..32d0c54 --- /dev/null +++ b/project/inc/ExpandableEditAreaForm.h @@ -0,0 +1,62 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _EXPANDABLEEDITAREA_FORM_H_ +#define _EXPANDABLEEDITAREA_FORM_H_ + +#include "BaseForm.h" + +class ExpandableEditAreaForm + : public BaseForm + , public Tizen::Ui::IKeypadEventListener + , public Tizen::Ui::Controls::IExpandableEditAreaEventListener +{ +public: + ExpandableEditAreaForm(void); + virtual ~ExpandableEditAreaForm(void); + + virtual bool Initialize(void); + void LayoutHeader(void); + void LayoutContent(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + 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); + virtual void OnExpandableEditAreaLineAdded(Tizen::Ui::Controls::ExpandableEditArea& source, int newLineCount); + virtual void OnExpandableEditAreaLineRemoved(Tizen::Ui::Controls::ExpandableEditArea& source, int newLineCount); + +private: + static const int ID_HEADER_BUTTON_SEND = 601; + static const int PANEL_HEIGHT = 120; + static const int LEFT_MARGIN = 45; + static const int RIGHT_MARGIN = 45; + static const int TOP_MARGIN = 45; + static const int BOTTOM_MARGIN = 45; + static const int EXPANDABLEEDITAREA_RIGHT_MARGIN = 180; + static const int EXPANDABLEEDITAREA_HEIGHT = 90; + static const int ID_FOOTER_BUTTON_BACK = 100; + + Tizen::Ui::Controls::ExpandableEditArea* __pExpandableEdit; + Tizen::Ui::Controls::Panel* __pPanel; + Tizen::Ui::Controls::Label* __pLabel; + Tizen::Graphics::Rectangle __prevBounds; +}; // ExpandableEditAreaForm + +#endif // _EXPANDABLEEDITAREA_FORM_H_ diff --git a/project/inc/FormFactory.h b/project/inc/FormFactory.h new file mode 100644 index 0000000..52d8e43 --- /dev/null +++ b/project/inc/FormFactory.h @@ -0,0 +1,67 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#ifndef _FORM_FACTORY_H_ +#define _FORM_FACTORY_H_ + +#include <FUi.h> + +// Use 'extern' to eliminate duplicate data allocation. +extern const wchar_t* FORM_ANIMATION; +extern const wchar_t* FORM_BUTTON; +extern const wchar_t* FORM_CHECK_BUTTON; +extern const wchar_t* FORM_COLOR_PICKER; +extern const wchar_t* FORM_CUSTOM_BUTTON; +extern const wchar_t* FORM_DATA_BIDING; +extern const wchar_t* FORM_DATE_TIME; +extern const wchar_t* FORM_EDIT_DATE; +extern const wchar_t* FORM_EDIT; +extern const wchar_t* FORM_EDIT_TIME; +extern const wchar_t* FORM_ENRICHED_TEXT; +extern const wchar_t* FORM_EXPANDABLE_EDIT_AREA; +extern const wchar_t* FORM_GALLERY; +extern const wchar_t* FORM_GROUPED_LISTVIEW; +extern const wchar_t* FORM_ICON_LISTVIEW; +extern const wchar_t* FORM_LISTVIEW; +extern const wchar_t* FORM_MAIN; +extern const wchar_t* FORM_MENU; +extern const wchar_t* FORM_MSG_BOX_POPUP; +extern const wchar_t* FORM_NAVIGATION; +extern const wchar_t* FORM_QUICK_PANEL_FRAME; +extern const wchar_t* FORM_OVERLAYKEYPAD; +extern const wchar_t* FORM_PANEL; +extern const wchar_t* FORM_PROGRESS; +extern const wchar_t* FORM_RADIOGROUP; +extern const wchar_t* FORM_SEARCHBAR; +extern const wchar_t* FORM_SLIDER; +extern const wchar_t* FORM_SPLIT_PANEL; +extern const wchar_t* FORM_TABBAR; +extern const wchar_t* FORM_TABLEVIEW; +extern const wchar_t* FORM_TEXTBOX; + + +class FormFactory + : public Tizen::Ui::Scenes::IFormFactory +{ +public: + FormFactory(void); + virtual ~FormFactory(void); + + virtual Tizen::Ui::Controls::Form* CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId); +}; + +#endif // _FORM_FACTORY_H_ diff --git a/project/inc/GalleryForm.h b/project/inc/GalleryForm.h new file mode 100644 index 0000000..3f85281 --- /dev/null +++ b/project/inc/GalleryForm.h @@ -0,0 +1,76 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _GALLERY_FORM_H_ +#define _GALLERY_FORM_H_ + +#include <FSystem.h> +#include "BaseForm.h" + +class GalleryForm + : public BaseForm + , public Tizen::Ui::IOrientationEventListener + , public Tizen::Ui::Controls::IGalleryItemProvider + , public Tizen::Ui::Controls::IGalleryEventListener + , public Tizen::Base::Runtime::Thread +{ +public: + GalleryForm(void); + virtual ~GalleryForm(void); + + virtual bool Initialize(void); + void GetBitmap(void); + void CreateGallery(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus); + + // IGalleryItemEventListener + virtual void OnGalleryCurrentItemChanged (Tizen::Ui::Controls::Gallery &view, int index); + virtual void OnGalleryItemClicked(Tizen::Ui::Controls::Gallery& listView, int index); + virtual void OnGallerySlideShowStarted(Tizen::Ui::Controls::Gallery& gallery); + virtual void OnGallerySlideShowStopped(Tizen::Ui::Controls::Gallery& gallery); + + //IGalleryItemProvider + virtual Tizen::Ui::Controls::GalleryItem* CreateItem(int index); + virtual bool DeleteItem(int index, Tizen::Ui::Controls::GalleryItem* pItem); + virtual int GetItemCount(void); + + //Thread + virtual bool OnStart(void); + virtual void OnStop(void); + virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs); + virtual Tizen::Base::Object * Run(void); + +private: + static const int ID_FOOTER_SLIDE_SHOW_STOP = 101; + static const int ID_FOOTER__SLIDE_SHOW_START = 102; + static const int ID_FORMAT_STRING = 500; + static const RequestId UPDATE_GALLERY = 200; + bool __visible; + Tizen::Ui::Controls::Header* __pHeader; + Tizen::Graphics::Bitmap* __pImage1; + Tizen::Graphics::Bitmap* __pImage2; + Tizen::Graphics::Bitmap* __pImage3; + Tizen::Graphics::Bitmap* __pImage4; + Tizen::Ui::Controls::Gallery* __pGallery; + Tizen::Base::Runtime::Thread* __pThread; + Tizen::Base::Collection::ArrayList __items; + Tizen::Base::Runtime::Mutex* __pMutex; +}; // GalleryForm + +#endif // _GALLERY_FORM_H_ diff --git a/project/inc/GroupedListViewForm.h b/project/inc/GroupedListViewForm.h new file mode 100644 index 0000000..eefef7d --- /dev/null +++ b/project/inc/GroupedListViewForm.h @@ -0,0 +1,106 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _GROUPED_LISTVIEW_FORM_H_ +#define _GROUPED_LISTVIEW_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class CustomGroupedListElement + : public Tizen::Ui::Controls::ICustomElement +{ +public: + CustomGroupedListElement(void){} + virtual ~CustomGroupedListElement(void){} + static const int LINE_WITH = 3; + static const int TEXT_MARGIN_X = 10; + static const int TEXT_MARGIN_Y = 15; + + bool OnDraw(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::Rectangle& rect, Tizen::Ui::Controls::ListItemDrawingStatus itemStatus) + { + Tizen::Graphics::Font font; + font.Construct(Tizen::Graphics::FONT_STYLE_PLAIN , (rect.height/2)); + canvas.SetFont(font); + canvas.SetLineWidth(LINE_WITH); + canvas.SetForegroundColor(Tizen::Graphics::Color::GetColor(Tizen::Graphics::COLOR_ID_GREEN)); + + int fontRectHeight = font.GetMaxHeight(); + + if (canvas.DrawRectangle(rect) != E_SUCCESS) + { + return false; + } + if (canvas.DrawText(Tizen::Graphics::Point(rect.x + TEXT_MARGIN_X, rect.y + ((rect.height-fontRectHeight)/2)), L"Custom") != E_SUCCESS) + { + return false; + } + return true; + } +}; // CustomGroupedListElement + +class GroupedListViewForm + : public BaseForm + , public Tizen::Ui::Controls::IGroupedListViewItemEventListener + , public Tizen::Ui::Controls::IGroupedListViewItemProvider + , public Tizen::Ui::Controls::IFastScrollListener +{ +public: + GroupedListViewForm(void); + virtual ~GroupedListViewForm(void); + + virtual bool Initialize(void); + void GetBitmap(void); + void CreateListView(void); + void CreateGroupedListView(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + // IGroupedListViewItemEventListener + virtual void OnGroupedListViewContextItemStateChanged(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListContextItemStatus state); + virtual void OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListItemStatus state); + virtual void OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction); + virtual void OnGroupedListViewItemLongPressed(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, int elementId, bool& invokeListViewItemCallback); + + // IGroupedListViewItemProvider + virtual int GetGroupCount(void); + virtual int GetItemCount(int groupIndex); + virtual Tizen::Ui::Controls::GroupItem* CreateGroupItem(int groupIndex, int itemWidth); + virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::GroupItem* pItem, int itemWidth); + virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int groupIndex, int itemIndex, int itemWidth); + virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth); + + // FastScroll + virtual void OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index); + +private: + static const int ID_FORMAT_NULL = -1; + static const int ID_FORMAT_STRING = 500; + static const int ID_FORMAT_BITMAP = 501; + static const int ID_FORMAT_CUSTOM = 503; + static const int ID_CONTEXT_ITEM_1 = 504; + static const int ID_CONTEXT_ITEM_2 = 505; + + Tizen::Ui::Controls::GroupedListView* __pList; + Tizen::Ui::Controls::Label* __pLabelLog; + Tizen::Graphics::Bitmap* __pHome; + Tizen::Graphics::Bitmap* __pMsg; + Tizen::Graphics::Bitmap* __pAlarm; + Tizen::Graphics::Bitmap* __pCall; + CustomGroupedListElement* __pCustomGroupedListElement; + Tizen::Ui::Controls::ListContextItem* __pItemContext; +}; // GroupedListViewForm + +#endif // _GROUPED_LISTVIEW_FORM_H_ diff --git a/project/inc/IconListViewForm.h b/project/inc/IconListViewForm.h new file mode 100644 index 0000000..bb2a373 --- /dev/null +++ b/project/inc/IconListViewForm.h @@ -0,0 +1,65 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _ICON_LISTVIEW_FORM_H_ +#define _ICON_LISTVIEW_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class IconListViewForm + : public BaseForm + , public Tizen::Ui::Controls::IIconListViewItemProvider + , public Tizen::Ui::Controls::IIconListViewItemEventListener +{ +public: + IconListViewForm(void); + virtual ~IconListViewForm(void); + + virtual bool Initialize(void); + void GetBitmap(void); + void CreateIconListView(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + + // IIconListViewItemEventListener + virtual void OnIconListViewItemStateChanged (Tizen::Ui::Controls::IconListView &view, int index, Tizen::Ui::Controls::IconListViewItemStatus status); + + //IIconListViewItemProvider + virtual Tizen::Ui::Controls::IconListViewItem* CreateItem(int index); + virtual bool DeleteItem(int index, Tizen::Ui::Controls::IconListViewItem* pItem); + virtual int GetItemCount(void); + +private: + static const int ID_FOOTER_HORIZONTAL = 101; + static const int ID_FOOTER_VERTICAL = 102; + static const int ID_REORDER_ON = 103; + static const int ID_REORDER_OFF = 104; + static const int ID_FOOTER_ICON = 105; + static const int ID_FORMAT_STRING = 500; + + Tizen::Ui::Controls::Label* __pLabelLog; + Tizen::Graphics::Bitmap* __pHome; + Tizen::Graphics::Bitmap* __pMsg; + Tizen::Graphics::Bitmap* __pAlarm; + Tizen::Graphics::Bitmap* __pMore; + Tizen::Ui::Controls::IconListView* __pHorizontalIconList; + Tizen::Ui::Controls::IconListView* __pVerticalIconList; + +}; // IconListViewForm + +#endif // _ICON_LISTVIEW_FORM_H_ diff --git a/project/inc/ListViewForm.h b/project/inc/ListViewForm.h new file mode 100644 index 0000000..e52c415 --- /dev/null +++ b/project/inc/ListViewForm.h @@ -0,0 +1,107 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _LISTVIEW_FORM_H_ +#define _LISTVIEW_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + + class CustomListElement + : public Tizen::Ui::Controls::ICustomElement + { + public: + CustomListElement(void) {} + ~CustomListElement(void) {} + + static const int LINE_WITH = 3; + static const int TEXT_MARGIN_X = 10; + static const int TEXT_MARGIN_Y = 15; + + bool OnDraw(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::Rectangle& rect, Tizen::Ui::Controls::ListItemDrawingStatus itemStatus) + { + Tizen::Graphics::Font font; + font.Construct(Tizen::Graphics::FONT_STYLE_PLAIN , (rect.height/2)); + canvas.SetFont(font); + canvas.SetLineWidth(LINE_WITH); + canvas.SetForegroundColor(Tizen::Graphics::Color::GetColor(Tizen::Graphics::COLOR_ID_GREEN)); + + int fontRectHeight = font.GetMaxHeight(); + + if (canvas.DrawRectangle(rect) != E_SUCCESS) + { + return false; + } + if (canvas.DrawText(Tizen::Graphics::Point(rect.x + TEXT_MARGIN_X, rect.y + ((rect.height-fontRectHeight)/2)), L"Custom") != E_SUCCESS) + { + return false; + } + return true; + } + }; // CustomListElement +class ListViewForm + : public BaseForm + , public Tizen::Ui::Controls::IListViewItemEventListener + , public Tizen::Ui::Controls::IListViewItemProvider +{ +public: + ListViewForm(void); + virtual ~ListViewForm(void); + + virtual bool Initialize(void); + void GetBitmap(void); + void CreateListView(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + 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); + + //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); + + + + +private: + static const int ID_FORMAT_NULL = -1; + static const int ID_REORDER_ON = 100; + static const int ID_REORDER_OFF = 101; + static const int ID_FORMAT_STRING = 500; + static const int ID_FORMAT_BITMAP = 501; + static const int ID_FORMAT_CUSTOM = 503; + static const int ID_CONTEXT_ITEM_1 = 504; + static const int ID_CONTEXT_ITEM_2 = 505; + + + Tizen::Ui::Controls::ListView* __pList; + Tizen::Ui::Controls::Label* __pLabelLog; + Tizen::Graphics::Bitmap* __pHome; + Tizen::Graphics::Bitmap* __pMsg; + Tizen::Graphics::Bitmap* __pAlarm; + Tizen::Graphics::Bitmap* __pCall; + CustomListElement* __pCustomListElement; + Tizen::Ui::Controls::ListContextItem* __pItemContext; + +}; // ListViewForm + +#endif // _LISTVIEW_FORM_H_ diff --git a/project/inc/MainForm.h b/project/inc/MainForm.h new file mode 100644 index 0000000..38b6967 --- /dev/null +++ b/project/inc/MainForm.h @@ -0,0 +1,53 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _MAIN_FORM_H_
+#define _MAIN_FORM_H_
+ +#include "BaseForm.h"
+#include <FUi.h>
+
+class MainForm + : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider + , public Tizen::Ui::Controls::IFormBackEventListener
+{
+public:
+ MainForm(void);
+ virtual ~MainForm(void); +
+ virtual bool Initialize(void);
+ bool CreateMainList(void);
+ bool MoveToForm(int index); + virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual result OnInitializing(void);
+ //ListView
+ 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 OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
+ virtual void OnItemReordered(Tizen::Ui::Controls::ListView &view, int oldIndex, int newIndex);
+ virtual int GetItemCount(void);
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem (int index, int itemWidth);
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth); + +private: + static const int ID_FORMAT_STRING = 500; + + Tizen::Ui::Controls::ListView* __pList; +}; // MainForm
+
+#endif // _MAIN_FORM_H_
diff --git a/project/inc/MenuForm.h b/project/inc/MenuForm.h new file mode 100644 index 0000000..61cf6e1 --- /dev/null +++ b/project/inc/MenuForm.h @@ -0,0 +1,56 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _MENU_FORM_H_ +#define _MENU_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class MenuForm + : public BaseForm +{ +public: + MenuForm(void); + virtual ~MenuForm(void); + + virtual bool Initialize(void); + void CreateContextMenuListStyle(void); + void CreateContextMenuGridStyle(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +private: + static const int ID_BUTTON_CONTEXT_LIST = 101; + static const int ID_BUTTON_CONTEXT_GRID = 103; + static const int ID_BUTTON_OPTION = 104; + static const int ID_BUTTON_CONTEXT_ICON_TEXT = 105; + static const int ID_CONTEXT_ITEM1 = 200; + static const int ID_CONTEXT_ITEM2 = 201; + static const int ID_CONTEXT_ITEM3 = 202; + static const int ID_CONTEXT_ITEM4 = 203; + static const int ID_CONTEXT_ITEM5 = 204; + static const int ID_CONTEXT_ITEM6 = 205; + + + Tizen::Ui::Controls::ContextMenu* __pContextMenuIcon; + Tizen::Ui::Controls::ContextMenu* __pContextMenuIconText; + Tizen::Ui::Controls::ContextMenu* __pContextMenuGrid; + Tizen::Ui::Controls::Label* __pLabelLog; +}; // MenuForm + +#endif // _MENU_FORM_H_ diff --git a/project/inc/MsgBoxPopupForm.h b/project/inc/MsgBoxPopupForm.h new file mode 100644 index 0000000..8ed44c6 --- /dev/null +++ b/project/inc/MsgBoxPopupForm.h @@ -0,0 +1,55 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _MSG_BOX_POPUP_FORM_H_ +#define _MSG_BOX_POPUP_FORM_H_ + +#include "BaseForm.h" + +class MsgBoxPopupForm + : public BaseForm + , Tizen::Ui::IProgressPopupEventListener +{ +public: + MsgBoxPopupForm(void); + virtual ~MsgBoxPopupForm(void); + + virtual bool Initialize(void); + void ShowMessageBox(void); + void ShowPopup(void); + void HidePopup(void); + void ShowProgressPopup(void); + void HideProgressPopup(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + + //IProgressPopupEventListener + virtual void OnProgressPopupCanceled(void); + +private: + static const int ID_BUTTON_MESSAGEBOX = 501; + static const int ID_BUTTON_POPUP = 502; + static const int ID_BUTTON_CLOSE_POPUP = 503; + static const int ID_BUTTON_PROGRESSPOPUP = 504; + static const int ID_BUTTON_CLOSE_PROGRESSPOPUP = 505; + + Tizen::Ui::Controls::Popup* __pPopup; + Tizen::Ui::Controls::ProgressPopup* __pProgressPopup; + Tizen::Ui::Controls::Label* __pLabel; +}; // MsgBoxPopupForm + +#endif // _MSG_BOX_POPUP_FORM_H_ diff --git a/project/inc/NavigationForm.h b/project/inc/NavigationForm.h new file mode 100644 index 0000000..153842c --- /dev/null +++ b/project/inc/NavigationForm.h @@ -0,0 +1,124 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _NAVIGATION_FORM_H_ +#define _NAVIGATION_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class NavigationForm + : public BaseForm + , public Tizen::Ui::Controls::IListViewItemEventListener + , public Tizen::Ui::Controls::IListViewItemProvider +{ +public: + NavigationForm(void); + virtual ~NavigationForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + bool CreateMainList(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + void SetHeaderStyle(int headerType); + void SetFooterStyle(int footerType); + + //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); + +private: + static const int HEADER_STYLE_0 = 0; + static const int HEADER_STYLE_1 = 1; + static const int HEADER_STYLE_2 = 2; + static const int HEADER_STYLE_3 = 3; + static const int HEADER_STYLE_4 = 4; + static const int HEADER_STYLE_5 = 5; + static const int FOOTER_STYLE_0 = 0; + static const int FOOTER_STYLE_1 = 1; + static const int FOOTER_STYLE_2 = 2; + static const int FOOTER_STYLE_3 = 3; + + static const int ID_EXIT = 100; + static const int ID_HEADER_STYLE = 101; + static const int ID_FOOTER_STYLE = 102; + static const int ID_TRANSLUCENT = 103; + static const int ID_VISIBLE = 104; + + static const int ID_TABBAR_ITEM1 = 201; + static const int ID_TABBAR_ITEM2 = 202; + static const int ID_TABBAR_ITEM3 = 203; + static const int ID_TABBAR_ITEM4 = 204; + static const int ID_TABBAR_ITEM5 = 205; + + static const int ID_HEADER_LEFTITEM = 301; + static const int ID_HEADER_CENTERITEM = 302; + static const int ID_HEADER_RIGHTITEM = 303; + static const int ID_HEADER_LEFTBUTTON = 304; + static const int ID_HEADER_RIGHTBUTTON = 305; + + static const int ID_FOOTER_ITEM1 = 401; + static const int ID_FOOTER_ITEM2 = 402; + static const int ID_FOOTER_ITEM3 = 403; + static const int ID_FOOTER_ITEM4 = 404; + static const int ID_FOOTER_ITEM5 = 405; + static const int ID_FOOTER_ITEM6 = 406; + static const int ID_FOOTER_ITEM7 = 407; + static const int ID_FOOTER_LEFTBUTTON = 408; + static const int __indicatorHeight = 38; + + static const int ID_CONTEXT_ITEM_1 = 504; + static const int ID_CONTEXT_ITEM_2 = 505; + + static const int ID_HEADER_ITEM1 = 601; + static const int ID_HEADER_ITEM2 = 602; + static const int ID_HEADER_ITEM3 = 603; + static const int ID_HEADER_ITEM4 = 604; + static const int ID_HEADER_ITEM5 = 605; + static const int ID_HEADER_ITEM6 = 606; + static const int ID_HEADER_ITEM7 = 607; + + Tizen::Ui::Controls::Button* __pHeaderStyle; + Tizen::Ui::Controls::Button* __pFooterStyle; + Tizen::Ui::Controls::Button* __pTranslucent; + Tizen::Ui::Controls::Button* __pVisible; + Tizen::Ui::Controls::Button* __pExit; + Tizen::Ui::Controls::TabBar* __pTabBar; + Tizen::Graphics::Bitmap* __pheaderLeftItemBitmap; + Tizen::Graphics::Bitmap* __pLeftItemBitmap; + Tizen::Graphics::Bitmap* __pRightItemBitmap; + Tizen::Graphics::Bitmap* __pOptionTrayNormalBitmap; + Tizen::Graphics::Bitmap* __pOptionTrayPressBitmap; + Tizen::Ui::Controls::Label* __pLogLabel; + Tizen::Ui::Controls::ListView* __pList; + + int __headerTypeIndex; + int __footerTypeIndex; + int __startY; + bool __isTranslucent; + bool __isVisible; + bool __isOpened; + bool __isAdded; + + 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); +}; // NavigationForm + +#endif // _NAVIGATION_FORM_H_ diff --git a/project/inc/OverlayKeypadForm.h b/project/inc/OverlayKeypadForm.h new file mode 100644 index 0000000..36da0e4 --- /dev/null +++ b/project/inc/OverlayKeypadForm.h @@ -0,0 +1,62 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _OVERLAYKEYPAD_FORM_H_ +#define _OVERLAYKEYPAD_FORM_H_ + +#include "BaseForm.h" + +class OverlayKeypadForm + : public BaseForm + , public Tizen::Ui::ITextEventListener + , public Tizen::Ui::IOrientationEventListener + , public Tizen::Ui::IKeypadEventListener +{ +public: + OverlayKeypadForm(void); + virtual ~OverlayKeypadForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + 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 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){}; + +private: + static const int ID_BUTTON_EDITAREA_CLEAR = 601; + static const int ID_BUTTON_DONE = 602; + static const int ID_BUTTON_CANCEL = 603; + + Tizen::Ui::Controls::EditArea* __pEditArea; + Tizen::Ui::Controls::EditField* __pEditField; + Tizen::Base::String* __pEditFieldText; + Tizen::Base::String* __pEditAreaText; + Tizen::Base::String* __pEditFieldPreText; + Tizen::Base::String* __pEditAreaPreText; + Tizen::Ui::Controls::ScrollPanel* __pScrollPanel; + Tizen::Ui::Controls::HeaderStyle __headerStyle; +}; // OverlayKeypadForm + +#endif // _OVERLAYKEYPAD_FORM_H_ diff --git a/project/inc/PanelForm.h b/project/inc/PanelForm.h new file mode 100644 index 0000000..b19ada7 --- /dev/null +++ b/project/inc/PanelForm.h @@ -0,0 +1,40 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _PANEL_FORM_H_ +#define _PANEL_FORM_H_ + +#include "BaseForm.h" + +class PanelForm + : public BaseForm +{ +public: + PanelForm(void); + virtual ~PanelForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +private: + static const int ID_BUTTON_SCROLL_PANEL = 501; + static const int ID_BUTTON_PANEL = 502; + + Tizen::Ui::Controls::Label* __pLabelLog; +}; // PanelForm + +#endif // _PANEL_FORM_H_ diff --git a/project/inc/ProgressForm.h b/project/inc/ProgressForm.h new file mode 100644 index 0000000..d558d29 --- /dev/null +++ b/project/inc/ProgressForm.h @@ -0,0 +1,43 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _PROGRESS_FORM_H_ +#define _PROGRESS_FORM_H_ + +#include "BaseForm.h" + +class ProgressForm + : public BaseForm +{ +public: + ProgressForm(void); + virtual ~ProgressForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +private: + static const int ID_BUTTON_UP = 301; + static const int ID_BUTTON_DOWN = 302; + static const int ID_BUTTON_COLOR = 303; + + Tizen::Ui::Controls::Progress* __pProgress; + Tizen::Ui::Controls::Progress* __pProgressDisable; + Tizen::Ui::Controls::Progress* __pProgressColor; +}; // ProgressForm + +#endif // _PROGRESS_FORM_H_ diff --git a/project/inc/QuickPanelFrameForm.h b/project/inc/QuickPanelFrameForm.h new file mode 100644 index 0000000..aff4262 --- /dev/null +++ b/project/inc/QuickPanelFrameForm.h @@ -0,0 +1,55 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _QUICK_PANEL_FRAME_FORM_H_ +#define _QUICK_PANEL_FRAME_FORM_H_ + +#include <FApp.h> +#include <FShell.h> +#include "BaseForm.h" + +class QuickPanelFrameForm + : public BaseForm +{ +public: + QuickPanelFrameForm(void); + virtual ~QuickPanelFrameForm(void); + + bool Initialize(void); + void SetFooter(void); + void CreateQuickPanelFrame(void); + void AttachControls(void); + void DetachControls(void); + void GetBitmap(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + +private: + static const int ID_FOOTER_ITEM1 = 200; + static const int ID_FOOTER_ITEM2 = 201; + + Tizen::Shell::QuickPanelFrame* __pQuickPanelFrame; + Tizen::Ui::Controls::Label* __pLogLabel; + Tizen::Ui::Controls::Button * __pQuickPanelFrameButton; + Tizen::Ui::Controls::Label* __pSoundLabelMin; + Tizen::Ui::Controls::Label* __pSoundLabelMax; + Tizen::Ui::Controls::Slider* __pSlider; + Tizen::Graphics::Bitmap* __pMinSoundBitmap; + Tizen::Graphics::Bitmap* __pMaxSoundBitmap; +}; // QuickPanelFrameForm + +#endif // _QUICK_PANEL_FRAME_FORM_H_ diff --git a/project/inc/ResourceAfx.h b/project/inc/ResourceAfx.h new file mode 100644 index 0000000..dab076d --- /dev/null +++ b/project/inc/ResourceAfx.h @@ -0,0 +1,21 @@ +static const wchar_t* IDC_Footer = L"Footer"; +static const wchar_t* IDC_Header = L"Header"; +static const wchar_t* IDC_IDF_BUTTON_DATEPICKER = L"IDF_BUTTON_DATEPICKER"; +static const wchar_t* IDC_IDF_BUTTON_DATETIMEPICKER = L"IDF_BUTTON_DATETIMEPICKER"; +static const wchar_t* IDC_IDF_BUTTON_DOWN = L"IDF_BUTTON_DOWN"; +static const wchar_t* IDC_IDF_BUTTON_GRID = L"IDF_BUTTON_GRID"; +static const wchar_t* IDC_IDF_BUTTON_ICON = L"IDF_BUTTON_ICON"; +static const wchar_t* IDC_IDF_BUTTON_LIST = L"IDF_BUTTON_LIST"; +static const wchar_t* IDC_IDF_BUTTON_TIMEPICKER = L"IDF_BUTTON_TIMEPICKER"; +static const wchar_t* IDC_IDF_BUTTON_UP = L"IDF_BUTTON_UP"; +static const wchar_t* IDC_IDF_EDITDATE = L"IDF_EDITDATE"; +static const wchar_t* IDC_IDF_EDITDATE_DISABLE = L"IDF_EDITDATE_DISABLE"; +static const wchar_t* IDC_IDF_EDITDATE_NO_TITLE = L"IDF_EDITDATE_NO_TITLE"; +static const wchar_t* IDC_IDF_EDITTIME = L"IDF_EDITTIME"; +static const wchar_t* IDC_IDF_EDITTIME_DISABLE = L"IDF_EDITTIME_DISABLE"; +static const wchar_t* IDC_IDF_EDITTIME_NO_TITLE = L"IDF_EDITTIME_NO_TITLE"; +static const wchar_t* IDC_IDF_PROGRESS = L"IDF_PROGRESS"; +static const wchar_t* IDC_IDF_PROGRESS_COLOR = L"IDF_PROGRESS_COLOR"; +static const wchar_t* IDC_IDF_PROGRESS_DISABLE = L"IDF_PROGRESS_DISABLE"; +static const wchar_t* IDC_IDF_SCROLLPANEL = L"IDF_SCROLLPANEL"; +static const wchar_t* IDC_back = L"back"; diff --git a/project/inc/SceneRegister.h b/project/inc/SceneRegister.h new file mode 100644 index 0000000..d5902a5 --- /dev/null +++ b/project/inc/SceneRegister.h @@ -0,0 +1,65 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#ifndef _SCENE_REGISTER_H_ +#define _SCENE_REGISTER_H_ + +// Use 'extern' to eliminate duplicate data allocation. +extern const wchar_t* SCENE_ANIMATION_FORM; +extern const wchar_t* SCENE_BUTTON_FORM; +extern const wchar_t* SCENE_CHECK_BUTTON_FORM; +extern const wchar_t* SCENE_COLOR_PICKER_FORM; +extern const wchar_t* SCENE_CUSTOM_BUTTON_FORM; +extern const wchar_t* SCENE_DATA_BIDING_FORM; +extern const wchar_t* SCENE_DATE_TIME_FORM; +extern const wchar_t* SCENE_EDIT_DATE_FORM; +extern const wchar_t* SCENE_EDIT_FORM; +extern const wchar_t* SCENE_EDIT_TIME_FORM; +extern const wchar_t* SCENE_ENRICHED_TEXT_FORM; +extern const wchar_t* SCENE_EXPANDABLE_EDIT_AREA_FORM; +extern const wchar_t* SCENE_GALLERY_FORM; +extern const wchar_t* SCENE_GROUPED_LISTVIEW_FORM; +extern const wchar_t* SCENE_ICON_LISTVIEW_FORM; +extern const wchar_t* SCENE_LISTVIEW_FORM; +extern const wchar_t* SCENE_MAIN_FORM; +extern const wchar_t* SCENE_MENU_FORM; +extern const wchar_t* SCENE_MSG_BOX_POPUP_FORM; +extern const wchar_t* SCENE_NAVIGATION_FORM; +extern const wchar_t* SCENE_QUICK_PANEL_FRAME_FORM; +extern const wchar_t* SCENE_OVERLAYKEYPAD_FORM; +extern const wchar_t* SCENE_PANEL_FORM; +extern const wchar_t* SCENE_PROGRESS_FORM; +extern const wchar_t* SCENE_RADIOGROUP_FORM; +extern const wchar_t* SCENE_SEARCHBAR_FORM; +extern const wchar_t* SCENE_SLIDER_FORM; +extern const wchar_t* SCENE_SPLIT_PANEL_FORM; +extern const wchar_t* SCENE_TABBAR_FORM; +extern const wchar_t* SCENE_TABLEVIER_FORM; +extern const wchar_t* SCENE_TEXTBOX_FORM; +extern const wchar_t* SCENE_QUICKPANEL_FORM; + +class SceneRegister +{ +public: + static void RegisterAllScenes(void); + +private: + SceneRegister(void); + ~SceneRegister(void); +}; + +#endif // _SCENE_REGISTER_H_ diff --git a/project/inc/SearchBarForm.h b/project/inc/SearchBarForm.h new file mode 100644 index 0000000..5545fc5 --- /dev/null +++ b/project/inc/SearchBarForm.h @@ -0,0 +1,110 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _SEARCHBAR_FORM_H_ +#define _SEARCHBAR_FORM_H_ + +#include "BaseForm.h" + +class SearchBarForm + : public BaseForm + , public Tizen::Ui::Controls::ISearchBarEventListener + , public Tizen::Ui::IKeypadEventListener + , public Tizen::Ui::ITextEventListener + , public Tizen::Ui::Controls::IGroupedListViewItemEventListener + , public Tizen::Ui::Controls::IGroupedListViewItemProvider + , public Tizen::Ui::Controls::IFastScrollListener + , public Tizen::Ui::Controls::IListViewItemEventListener + , public Tizen::Ui::Controls::IListViewItemProvider + , public Tizen::Ui::ITouchEventListener +{ +public: + SearchBarForm(void); + virtual ~SearchBarForm(void); + + virtual bool Initialize(void); + void SetGroupList(void); + void UpdateSearchResult(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + // ISearchBarEventListener + virtual void OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source, Tizen::Ui::Controls::SearchBarMode mode); + virtual void OnSearchBarContentAreaResized(Tizen::Ui::Controls::SearchBar& source, Tizen::Graphics::Dimension& size) {} + virtual void OnTextValueChanged(const Tizen::Ui::Control& source); + virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source){} + + // IKeypadEventListener + 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) {} + + // IGroupedListViewItemEventListener + virtual void OnGroupedListViewContextItemStateChanged(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){} + virtual void OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListItemStatus state); + virtual void OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView &listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction){} + + // IGroupedListViewItemProvider + virtual int GetGroupCount(void); + virtual int GetItemCount(int groupIndex); + virtual Tizen::Ui::Controls::GroupItem* CreateGroupItem(int groupIndex, int itemWidth); + virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::GroupItem* pItem, int itemWidth); + virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int groupIndex, int itemIndex, int itemWidth); + virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth); + + // FastScroll + virtual void OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index); + + // 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); + + //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); + + //ITouchEventListener + virtual void OnTouchDoublePressed (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo){} + virtual void OnTouchFocusIn (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo){} + virtual void OnTouchFocusOut (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo){} + virtual void OnTouchLongPressed (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo){} + virtual void OnTouchMoved (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo){} + virtual void OnTouchPressed (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo); + virtual void OnTouchReleased (const Tizen::Ui::Control &source, const Tizen::Graphics::Point ¤tPosition, const Tizen::Ui::TouchEventInfo &touchInfo){} + +private: + static const int ID_FORMAT_STRING = 500; + static const int ID_FORMAT_BITMAP = 501; + static const int ID_FORMAT_CUSTOM = 503; + static const int ID_CONTEXT_ITEM_1 = 504; + static const int ID_CONTEXT_ITEM_2 = 505; + static const int ID_GROUPITEM_INDEX = -1; + static const int GROUP_MAX = 26; + static const int ITEM_MAX = 30; + + Tizen::Ui::Controls::SearchBar* __pSearchBar; + Tizen::Ui::Controls::Header* __pHeader; + Tizen::Ui::Controls::GroupedListView* __pAllTextGroupedListView; + Tizen::Ui::Controls::ListView* __pSearchBarListView; + Tizen::Base::Collection::ArrayList* __pSearchedTextList; + Tizen::Base::String __pWordString[GROUP_MAX][ITEM_MAX]; + Tizen::Base::String __groupCapitalArray[GROUP_MAX]; +}; // SearchBarForm + +#endif // _SEARCHBAR_FORM_H_ diff --git a/project/inc/SliderForm.h b/project/inc/SliderForm.h new file mode 100644 index 0000000..cb7e56c --- /dev/null +++ b/project/inc/SliderForm.h @@ -0,0 +1,43 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _SLIDER_FORM_H_ +#define _SLIDER_FORM_H_ + +#include "BaseForm.h" + +class SliderForm + : public BaseForm + , public Tizen::Ui::IAdjustmentEventListener + , public Tizen::Ui::Controls::ISliderEventListener +{ +public: + SliderForm(void); + virtual ~SliderForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnAdjustmentValueChanged(const Tizen::Ui::Control& source, int adjustment); + virtual void OnSliderBarMoved(Tizen::Ui::Controls::Slider& source, int value); + +private: + static const int ID_BUTTON_COLOR = 101; + + Tizen::Ui::Controls::Label* __pLabelLog; + Tizen::Ui::Controls::Slider* __pSlider; +}; // SliderForm + +#endif // _SLIDER_FORM_H_ diff --git a/project/inc/SplitPanelForm.h b/project/inc/SplitPanelForm.h new file mode 100644 index 0000000..0f0cbab --- /dev/null +++ b/project/inc/SplitPanelForm.h @@ -0,0 +1,65 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _SPLIT_PANEL_FORM_H_ +#define _SPLIT_PANEL_FORM_H_ + +#include "BaseForm.h" + +class SplitPanelForm + : public BaseForm + , public Tizen::Ui::IOrientationEventListener + , public Tizen::Ui::Controls::IListViewItemEventListener + , public Tizen::Ui::Controls::IListViewItemProvider + , public Tizen::Ui::Controls::ISplitPanelEventListener +{ +public: + SplitPanelForm(void); + virtual ~SplitPanelForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus); + virtual void OnDividerPositionChanged(Tizen::Ui::Controls::SplitPanel& source, int position); + virtual void OnDividerDoublePressed(Tizen::Ui::Controls::SplitPanel& source); + //ListView + 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 OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state); + virtual void OnItemReordered(Tizen::Ui::Controls::ListView &view, int oldIndex, int newIndex); + virtual int GetItemCount(void); + virtual Tizen::Ui::Controls::ListItemBase* CreateItem (int index, int itemWidth); + virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase *pItem, int itemWidth); + +private: + static const int ID_BUTTON_SECOND_MAXIMIZE = 102; + static const int ID_BUTTON_RESTORE = 103; + static const int ID_FORMAT_STRING = 700; + static const int ID_FORMAT_NULL = -1; + static const int ID_FORMAT_ROTATE = 500; + static const int ID_FORMAT_MAXIMIZE = 501; + static const int ID_FORMAT_RESTORE = 502; + + Tizen::Ui::Controls::Button* __pButtonForMaximizingSecondPane; + Tizen::Ui::Controls::Button* __pButtonForRestoringPanes; + Tizen::Ui::Controls::SplitPanel* __pSplitPanel; + Tizen::Ui::Controls::ListView* __pFirstPane; + Tizen::Ui::Controls::Panel* __pSecondPane; + Tizen::Ui::Controls::Label* __pLabel; +}; // SplitPanelForm + +#endif //_SPLIT_PANEL_FORM_H_ diff --git a/project/inc/TabBarForm.h b/project/inc/TabBarForm.h new file mode 100644 index 0000000..4eb9e3e --- /dev/null +++ b/project/inc/TabBarForm.h @@ -0,0 +1,119 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef TABBARFORM_H_ +#define TABBARFORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class TabBarForm + : public BaseForm + , public Tizen::Ui::Controls::IListViewItemEventListener +{ +public: + TabBarForm(void); + virtual ~TabBarForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + bool CreateMainList(void); + virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId); + void SetHeaderStyle(int headerType); + void SetFooterStyle(int footerType); + void AlignControls(void); + + +private: + static const int HEADER_STYLE_0 = 0; + static const int HEADER_STYLE_1 = 1; + static const int HEADER_STYLE_2 = 2; + static const int HEADER_STYLE_3 = 3; + static const int HEADER_STYLE_4 = 4; + static const int HEADER_STYLE_5 = 5; + static const int FOOTER_STYLE_0 = 0; + static const int FOOTER_STYLE_1 = 1; + static const int FOOTER_STYLE_2 = 2; + + static const int ID_EXIT = 100; + static const int ID_HEADER_STYLE = 101; + static const int ID_FOOTER_STYLE = 102; + static const int ID_TRANSLUCENT = 103; + static const int ID_VISIBLE = 104; + + static const int ID_TABBAR_ITEM1 = 201; + static const int ID_TABBAR_ITEM2 = 202; + static const int ID_TABBAR_ITEM3 = 203; + static const int ID_TABBAR_ITEM4 = 204; + static const int ID_TABBAR_ITEM5 = 205; + + static const int ID_HEADER_LEFTITEM = 301; + static const int ID_HEADER_CENTERITEM = 302; + static const int ID_HEADER_RIGHTITEM = 303; + static const int ID_HEADER_LEFTBUTTON = 304; + static const int ID_HEADER_RIGHTBUTTON = 305; + static const int ID_HEADER_OPTIONTAY = 306; + + static const int ID_FOOTER_ITEM1 = 401; + static const int ID_FOOTER_ITEM2 = 402; + static const int ID_FOOTER_ITEM3 = 403; + static const int ID_FOOTER_ITEM4 = 404; + static const int ID_FOOTER_ITEM5 = 405; + static const int ID_FOOTER_ITEM6 = 406; + static const int ID_FOOTER_ITEM7 = 407; + static const int ID_FOOTER_LEFTBUTTON = 408; + static const int __indicatorHeight = 38; + + static const int ID_CONTEXT_ITEM_1 = 504; + static const int ID_CONTEXT_ITEM_2 = 505; + + static const int ID_HEADER_ITEM1 = 601; + static const int ID_HEADER_ITEM2 = 602; + static const int ID_HEADER_ITEM3 = 603; + static const int ID_HEADER_ITEM4 = 604; + static const int ID_HEADER_ITEM5 = 605; + static const int ID_HEADER_ITEM6 = 606; + static const int ID_HEADER_ITEM7 = 607; + + Tizen::Ui::Controls::Button* __pHeaderStyle; + Tizen::Ui::Controls::Button* __pFooterStyle; + Tizen::Ui::Controls::Button* __pTranslucent; + Tizen::Ui::Controls::Button* __pVisible; + Tizen::Ui::Controls::Button* __pExit; + Tizen::Ui::Controls::TabBar* __pTabBar; + Tizen::Graphics::Bitmap* __pheaderLeftItemBitmap; + Tizen::Graphics::Bitmap* __pLeftItemBitmap; + Tizen::Graphics::Bitmap* __pRightItemBitmap; + Tizen::Ui::Controls::Label* __pLogLabel; + + int __headerTypeIndex; + int __footerTypeIndex; + int __startY; + bool __isTranslucent; + bool __isVisible; + bool __isOpened; + bool __isAdded; + + 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); +}; // TabBarForm + + + +#endif /* TABBARFORM_H_ */ diff --git a/project/inc/TableViewForm.h b/project/inc/TableViewForm.h new file mode 100644 index 0000000..4ab810b --- /dev/null +++ b/project/inc/TableViewForm.h @@ -0,0 +1,73 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _TABLEVIEW_FORM_H_ +#define _TABLEVIER_FORM_H_ + +#include <FApp.h> +#include "BaseForm.h" + +class TableViewForm + : public BaseForm + , public Tizen::Ui::Controls::IGroupedTableViewItemEventListener + , public Tizen::Ui::Controls::IGroupedTableViewItemProvider +{ +public: + TableViewForm(void); + virtual ~TableViewForm(void); + + virtual bool Initialize(void); + void GetBitmap(void); + void CreateTableView(void); + virtual result OnInitializing(void); + virtual result OnTerminating(void); + + //IGroupedTableViewItemProvider + virtual int GetGroupCount(void); + virtual int GetItemCount(int groupIndex); + virtual Tizen::Ui::Controls::TableViewGroupItem* CreateGroupItem(int groupIndex, int itemWidth); + virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int groupIndex, int itemIndex, int itemWidth); + virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem); + virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem); + virtual void UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem); + virtual void UpdateGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem); + virtual int GetDefaultItemHeight(void); + virtual int GetDefaultGroupItemHeight(void); + + //tableview event + + virtual void OnGroupedTableViewGroupItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status); + virtual void OnGroupedTableViewItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status); + virtual void OnGroupedTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated); +private: + static const int ID_GROUP_INDEX_MAIN = 0; + static const int ID_GROUP_INDEX_VOLUME = 1; + static const int ID_GROUP_INDEX_VIBRATION = 2; + static const int ID_GROUP_INDEX_INFORMATION = 3; + static const int ID_GROUP_INDEX_MAIN_ITEM_SOUNDS = 0; + static const int ID_GROUP_INDEX_MAIN_ITEM_VIBRATION = 1; + + Tizen::Ui::Controls::GroupedTableView* __pList; + Tizen::Ui::Controls::TableViewItem* __pItem; + Tizen::Ui::Controls::Label* pGroupNameLabel; + Tizen::Graphics::Bitmap* __pMinSoundBitmap; + Tizen::Graphics::Bitmap* __pMaxSoundBitmap; + Tizen::Graphics::Bitmap* __pMinVibrationBitmap; + Tizen::Graphics::Bitmap* __pMaxVibrationBitmap; + +}; // TableViewForm + +#endif // _TABLEVIEW_FORM_H_ diff --git a/project/inc/TextBoxForm.h b/project/inc/TextBoxForm.h new file mode 100644 index 0000000..532d40a --- /dev/null +++ b/project/inc/TextBoxForm.h @@ -0,0 +1,40 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _TEXTBOX_FORM_H_ +#define _TEXTBOX_FORM_H_ + +#include "BaseForm.h" + +class TextBoxForm + : public BaseForm +{ +public: + TextBoxForm(void); + virtual ~TextBoxForm(void); + + virtual bool Initialize(void); + virtual result OnInitializing(void); + +private: + static const int ID_BUTTON_UP = 301; + static const int ID_BUTTON_DOWN = 302; + static const int ID_BUTTON_COLOR = 303; + + Tizen::Ui::Controls::TextBox* __pTextBox; +}; // TextBoxForm + +#endif // _TEXTBOX_FORM_H_ diff --git a/project/inc/UiControls.h b/project/inc/UiControls.h new file mode 100644 index 0000000..505c52e --- /dev/null +++ b/project/inc/UiControls.h @@ -0,0 +1,67 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#ifndef _UICONTROLS_H_ +#define _UICONTROLS_H_ + +#include <FBase.h> +#include <FApp.h> +#include <FUi.h> +#include <FSystem.h> + + // application must inherit from Application class + // which provides basic features necessary to define an application. +class UiControls : + public Tizen::App::Application, + public Tizen::System::IScreenEventListener +{ +public: + // [HelloWorld] application must have a factory method that creates an instance of itself. + static Tizen::App::Application* CreateInstance(void); + +public: + UiControls(void); + virtual ~UiControls(void); + +public: + + // Called when the application is initializing. + bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry); + + // Called when the application is terminating. + bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false); + + // Called when the application's frame moves to the top of the screen. + void OnForeground(void); + + // Called when this application's frame is moved from top of the screen to the background. + void OnBackground(void); + + // Called when the system memory is not sufficient to run the application any further. + void OnLowMemory(void); + + // Called when the battery level changes. + void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel); + + // Called when the screen turns on. + void OnScreenOn (void); + + // Called when the screen turns off. + void OnScreenOff (void); + +}; + +#endif diff --git a/project/manifest.xml b/project/manifest.xml new file mode 100644 index 0000000..a09a036 --- /dev/null +++ b/project/manifest.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest"> + <Id>$(manifestAppId)</Id> + <Version>1.0.0</Version> + <Type>C++App</Type> + <Author/> + <Descriptions/> + <Url/> + <Share/> + <DeviceProfile/> + <Apps> + <ApiVersion>2.0</ApiVersion> + <Privileges> + <Privilege>http://tizen.org/privilege/notification</Privilege> + <Privilege>http://tizen.org/privilege/power</Privilege> + </Privileges> + <UiApp Main="True" Name="$(projectName)" MenuIconVisible="True" > + <DisplayNames> + <DisplayName Locale="eng-GB">$(projectName)</DisplayName> + </DisplayNames> + <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720" /> + <UiTheme SystemTheme="White"/> + <Icons> + <Icon Section="MainMenu" Type="Xhigh">mainmenu.png</Icon> + </Icons> + <LaunchConditions/> + <Notifications/> + </UiApp> + </Apps> +</Manifest> diff --git a/project/res/screen-density-high/BitmapA.bmp b/project/res/screen-density-high/BitmapA.bmp Binary files differnew file mode 100644 index 0000000..0c57408 --- /dev/null +++ b/project/res/screen-density-high/BitmapA.bmp diff --git a/project/res/screen-density-high/BitmapB.bmp b/project/res/screen-density-high/BitmapB.bmp Binary files differnew file mode 100644 index 0000000..942936d --- /dev/null +++ b/project/res/screen-density-high/BitmapB.bmp diff --git a/project/res/screen-density-high/alarm.png b/project/res/screen-density-high/alarm.png Binary files differnew file mode 100644 index 0000000..d8d2b3f --- /dev/null +++ b/project/res/screen-density-high/alarm.png diff --git a/project/res/screen-density-high/alarm_focused.png b/project/res/screen-density-high/alarm_focused.png Binary files differnew file mode 100644 index 0000000..23ea6a7 --- /dev/null +++ b/project/res/screen-density-high/alarm_focused.png diff --git a/project/res/screen-density-high/alarm_type1.png b/project/res/screen-density-high/alarm_type1.png Binary files differnew file mode 100644 index 0000000..bccd5e7 --- /dev/null +++ b/project/res/screen-density-high/alarm_type1.png diff --git a/project/res/screen-density-high/alarm_type2.png b/project/res/screen-density-high/alarm_type2.png Binary files differnew file mode 100644 index 0000000..21297dc --- /dev/null +++ b/project/res/screen-density-high/alarm_type2.png diff --git a/project/res/screen-density-high/alarm_type3.png b/project/res/screen-density-high/alarm_type3.png Binary files differnew file mode 100644 index 0000000..68510b7 --- /dev/null +++ b/project/res/screen-density-high/alarm_type3.png diff --git a/project/res/screen-density-high/alarm_type4.png b/project/res/screen-density-high/alarm_type4.png Binary files differnew file mode 100644 index 0000000..4c69b83 --- /dev/null +++ b/project/res/screen-density-high/alarm_type4.png diff --git a/project/res/screen-density-high/call.png b/project/res/screen-density-high/call.png Binary files differnew file mode 100644 index 0000000..f93c867 --- /dev/null +++ b/project/res/screen-density-high/call.png diff --git a/project/res/screen-density-high/call_f_type1.png b/project/res/screen-density-high/call_f_type1.png Binary files differnew file mode 100644 index 0000000..b48f12b --- /dev/null +++ b/project/res/screen-density-high/call_f_type1.png diff --git a/project/res/screen-density-high/call_f_type2.png b/project/res/screen-density-high/call_f_type2.png Binary files differnew file mode 100644 index 0000000..741ca20 --- /dev/null +++ b/project/res/screen-density-high/call_f_type2.png diff --git a/project/res/screen-density-high/call_focused.png b/project/res/screen-density-high/call_focused.png Binary files differnew file mode 100644 index 0000000..a6df31e --- /dev/null +++ b/project/res/screen-density-high/call_focused.png diff --git a/project/res/screen-density-high/call_type1.png b/project/res/screen-density-high/call_type1.png Binary files differnew file mode 100644 index 0000000..00ab880 --- /dev/null +++ b/project/res/screen-density-high/call_type1.png diff --git a/project/res/screen-density-high/call_type2.png b/project/res/screen-density-high/call_type2.png Binary files differnew file mode 100644 index 0000000..b7861e8 --- /dev/null +++ b/project/res/screen-density-high/call_type2.png diff --git a/project/res/screen-density-high/call_type3.png b/project/res/screen-density-high/call_type3.png Binary files differnew file mode 100644 index 0000000..7e0e7ed --- /dev/null +++ b/project/res/screen-density-high/call_type3.png diff --git a/project/res/screen-density-high/call_type4.png b/project/res/screen-density-high/call_type4.png Binary files differnew file mode 100644 index 0000000..bf07054 --- /dev/null +++ b/project/res/screen-density-high/call_type4.png diff --git a/project/res/screen-density-high/home.png b/project/res/screen-density-high/home.png Binary files differnew file mode 100644 index 0000000..10712f4 --- /dev/null +++ b/project/res/screen-density-high/home.png diff --git a/project/res/screen-density-high/home_focused.png b/project/res/screen-density-high/home_focused.png Binary files differnew file mode 100644 index 0000000..a9c9738 --- /dev/null +++ b/project/res/screen-density-high/home_focused.png diff --git a/project/res/screen-density-high/home_type1.png b/project/res/screen-density-high/home_type1.png Binary files differnew file mode 100644 index 0000000..51c9cec --- /dev/null +++ b/project/res/screen-density-high/home_type1.png diff --git a/project/res/screen-density-high/home_type2.png b/project/res/screen-density-high/home_type2.png Binary files differnew file mode 100644 index 0000000..27c1025 --- /dev/null +++ b/project/res/screen-density-high/home_type2.png diff --git a/project/res/screen-density-high/home_type3.png b/project/res/screen-density-high/home_type3.png Binary files differnew file mode 100644 index 0000000..71a1985 --- /dev/null +++ b/project/res/screen-density-high/home_type3.png diff --git a/project/res/screen-density-high/home_type4.png b/project/res/screen-density-high/home_type4.png Binary files differnew file mode 100644 index 0000000..2cf5944 --- /dev/null +++ b/project/res/screen-density-high/home_type4.png diff --git a/project/res/screen-density-high/image1.jpg b/project/res/screen-density-high/image1.jpg Binary files differnew file mode 100644 index 0000000..9e7d6b8 --- /dev/null +++ b/project/res/screen-density-high/image1.jpg diff --git a/project/res/screen-density-high/image2.jpg b/project/res/screen-density-high/image2.jpg Binary files differnew file mode 100644 index 0000000..9195fc4 --- /dev/null +++ b/project/res/screen-density-high/image2.jpg diff --git a/project/res/screen-density-high/image3.jpg b/project/res/screen-density-high/image3.jpg Binary files differnew file mode 100644 index 0000000..64eb468 --- /dev/null +++ b/project/res/screen-density-high/image3.jpg diff --git a/project/res/screen-density-high/image4.jpg b/project/res/screen-density-high/image4.jpg Binary files differnew file mode 100644 index 0000000..036ff53 --- /dev/null +++ b/project/res/screen-density-high/image4.jpg diff --git a/project/res/screen-density-high/message.png b/project/res/screen-density-high/message.png Binary files differnew file mode 100644 index 0000000..1ccfa82 --- /dev/null +++ b/project/res/screen-density-high/message.png diff --git a/project/res/screen-density-high/message_f_type1.png b/project/res/screen-density-high/message_f_type1.png Binary files differnew file mode 100644 index 0000000..b226c93 --- /dev/null +++ b/project/res/screen-density-high/message_f_type1.png diff --git a/project/res/screen-density-high/message_f_type2.png b/project/res/screen-density-high/message_f_type2.png Binary files differnew file mode 100644 index 0000000..1bb1477 --- /dev/null +++ b/project/res/screen-density-high/message_f_type2.png diff --git a/project/res/screen-density-high/message_focused.png b/project/res/screen-density-high/message_focused.png Binary files differnew file mode 100644 index 0000000..5fbb8b9 --- /dev/null +++ b/project/res/screen-density-high/message_focused.png diff --git a/project/res/screen-density-high/message_type1.png b/project/res/screen-density-high/message_type1.png Binary files differnew file mode 100644 index 0000000..f3b836c --- /dev/null +++ b/project/res/screen-density-high/message_type1.png diff --git a/project/res/screen-density-high/message_type2.png b/project/res/screen-density-high/message_type2.png Binary files differnew file mode 100644 index 0000000..03d667a --- /dev/null +++ b/project/res/screen-density-high/message_type2.png diff --git a/project/res/screen-density-high/message_type3.png b/project/res/screen-density-high/message_type3.png Binary files differnew file mode 100644 index 0000000..63b5816 --- /dev/null +++ b/project/res/screen-density-high/message_type3.png diff --git a/project/res/screen-density-high/message_type4.png b/project/res/screen-density-high/message_type4.png Binary files differnew file mode 100644 index 0000000..44da692 --- /dev/null +++ b/project/res/screen-density-high/message_type4.png diff --git a/project/res/screen-density-high/sliderVibrationMax.png b/project/res/screen-density-high/sliderVibrationMax.png Binary files differnew file mode 100644 index 0000000..550ae2f --- /dev/null +++ b/project/res/screen-density-high/sliderVibrationMax.png diff --git a/project/res/screen-density-high/sliderVibrationMin.png b/project/res/screen-density-high/sliderVibrationMin.png Binary files differnew file mode 100644 index 0000000..d061e86 --- /dev/null +++ b/project/res/screen-density-high/sliderVibrationMin.png diff --git a/project/res/screen-density-high/sliderVolumeMax.png b/project/res/screen-density-high/sliderVolumeMax.png Binary files differnew file mode 100644 index 0000000..b0fdecb --- /dev/null +++ b/project/res/screen-density-high/sliderVolumeMax.png diff --git a/project/res/screen-density-high/sliderVolumeMin.png b/project/res/screen-density-high/sliderVolumeMin.png Binary files differnew file mode 100644 index 0000000..98201ba --- /dev/null +++ b/project/res/screen-density-high/sliderVolumeMin.png diff --git a/project/res/screen-density-xhigh/00_icon_more_ef.png b/project/res/screen-density-xhigh/00_icon_more_ef.png Binary files differnew file mode 100644 index 0000000..01278a5 --- /dev/null +++ b/project/res/screen-density-xhigh/00_icon_more_ef.png diff --git a/project/res/screen-density-xhigh/00_list_process_01.png b/project/res/screen-density-xhigh/00_list_process_01.png Binary files differnew file mode 100644 index 0000000..5c8fbb4 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_01.png diff --git a/project/res/screen-density-xhigh/00_list_process_02.png b/project/res/screen-density-xhigh/00_list_process_02.png Binary files differnew file mode 100644 index 0000000..eeec62e --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_02.png diff --git a/project/res/screen-density-xhigh/00_list_process_03.png b/project/res/screen-density-xhigh/00_list_process_03.png Binary files differnew file mode 100644 index 0000000..45f82b9 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_03.png diff --git a/project/res/screen-density-xhigh/00_list_process_04.png b/project/res/screen-density-xhigh/00_list_process_04.png Binary files differnew file mode 100644 index 0000000..251e3ba --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_04.png diff --git a/project/res/screen-density-xhigh/00_list_process_05.png b/project/res/screen-density-xhigh/00_list_process_05.png Binary files differnew file mode 100644 index 0000000..e278217 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_05.png diff --git a/project/res/screen-density-xhigh/00_list_process_06.png b/project/res/screen-density-xhigh/00_list_process_06.png Binary files differnew file mode 100644 index 0000000..1e47db8 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_06.png diff --git a/project/res/screen-density-xhigh/00_list_process_07.png b/project/res/screen-density-xhigh/00_list_process_07.png Binary files differnew file mode 100644 index 0000000..18d5db9 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_07.png diff --git a/project/res/screen-density-xhigh/00_list_process_08.png b/project/res/screen-density-xhigh/00_list_process_08.png Binary files differnew file mode 100644 index 0000000..0cabf18 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_08.png diff --git a/project/res/screen-density-xhigh/00_list_process_09.png b/project/res/screen-density-xhigh/00_list_process_09.png Binary files differnew file mode 100644 index 0000000..94bba2b --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_09.png diff --git a/project/res/screen-density-xhigh/00_list_process_10.png b/project/res/screen-density-xhigh/00_list_process_10.png Binary files differnew file mode 100644 index 0000000..2e5b2b7 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_10.png diff --git a/project/res/screen-density-xhigh/00_list_process_11.png b/project/res/screen-density-xhigh/00_list_process_11.png Binary files differnew file mode 100644 index 0000000..264e6b5 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_11.png diff --git a/project/res/screen-density-xhigh/00_list_process_12.png b/project/res/screen-density-xhigh/00_list_process_12.png Binary files differnew file mode 100644 index 0000000..c49841e --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_12.png diff --git a/project/res/screen-density-xhigh/00_list_process_13.png b/project/res/screen-density-xhigh/00_list_process_13.png Binary files differnew file mode 100644 index 0000000..cdec394 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_13.png diff --git a/project/res/screen-density-xhigh/00_list_process_14.png b/project/res/screen-density-xhigh/00_list_process_14.png Binary files differnew file mode 100644 index 0000000..aeb2852 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_14.png diff --git a/project/res/screen-density-xhigh/00_list_process_15.png b/project/res/screen-density-xhigh/00_list_process_15.png Binary files differnew file mode 100644 index 0000000..b37ee4a --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_15.png diff --git a/project/res/screen-density-xhigh/00_list_process_16.png b/project/res/screen-density-xhigh/00_list_process_16.png Binary files differnew file mode 100644 index 0000000..5bb072b --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_16.png diff --git a/project/res/screen-density-xhigh/00_list_process_17.png b/project/res/screen-density-xhigh/00_list_process_17.png Binary files differnew file mode 100644 index 0000000..b7e6eb6 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_17.png diff --git a/project/res/screen-density-xhigh/00_list_process_18.png b/project/res/screen-density-xhigh/00_list_process_18.png Binary files differnew file mode 100644 index 0000000..e5ce36b --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_18.png diff --git a/project/res/screen-density-xhigh/00_list_process_19.png b/project/res/screen-density-xhigh/00_list_process_19.png Binary files differnew file mode 100644 index 0000000..40b4e7d --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_19.png diff --git a/project/res/screen-density-xhigh/00_list_process_20.png b/project/res/screen-density-xhigh/00_list_process_20.png Binary files differnew file mode 100644 index 0000000..b50abde --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_20.png diff --git a/project/res/screen-density-xhigh/00_list_process_21.png b/project/res/screen-density-xhigh/00_list_process_21.png Binary files differnew file mode 100644 index 0000000..e7cc057 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_21.png diff --git a/project/res/screen-density-xhigh/00_list_process_22.png b/project/res/screen-density-xhigh/00_list_process_22.png Binary files differnew file mode 100644 index 0000000..35e93e3 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_22.png diff --git a/project/res/screen-density-xhigh/00_list_process_23.png b/project/res/screen-density-xhigh/00_list_process_23.png Binary files differnew file mode 100644 index 0000000..50990db --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_23.png diff --git a/project/res/screen-density-xhigh/00_list_process_24.png b/project/res/screen-density-xhigh/00_list_process_24.png Binary files differnew file mode 100644 index 0000000..3dfea10 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_24.png diff --git a/project/res/screen-density-xhigh/00_list_process_25.png b/project/res/screen-density-xhigh/00_list_process_25.png Binary files differnew file mode 100644 index 0000000..4878a78 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_25.png diff --git a/project/res/screen-density-xhigh/00_list_process_26.png b/project/res/screen-density-xhigh/00_list_process_26.png Binary files differnew file mode 100644 index 0000000..b57750f --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_26.png diff --git a/project/res/screen-density-xhigh/00_list_process_27.png b/project/res/screen-density-xhigh/00_list_process_27.png Binary files differnew file mode 100644 index 0000000..c8cee33 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_27.png diff --git a/project/res/screen-density-xhigh/00_list_process_28.png b/project/res/screen-density-xhigh/00_list_process_28.png Binary files differnew file mode 100644 index 0000000..db51809 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_28.png diff --git a/project/res/screen-density-xhigh/00_list_process_29.png b/project/res/screen-density-xhigh/00_list_process_29.png Binary files differnew file mode 100644 index 0000000..2fb304e --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_29.png diff --git a/project/res/screen-density-xhigh/00_list_process_30.png b/project/res/screen-density-xhigh/00_list_process_30.png Binary files differnew file mode 100644 index 0000000..9868089 --- /dev/null +++ b/project/res/screen-density-xhigh/00_list_process_30.png diff --git a/project/res/screen-density-xhigh/00_volume_icon_Vibrat_max.png b/project/res/screen-density-xhigh/00_volume_icon_Vibrat_max.png Binary files differnew file mode 100644 index 0000000..df712b5 --- /dev/null +++ b/project/res/screen-density-xhigh/00_volume_icon_Vibrat_max.png diff --git a/project/res/screen-density-xhigh/00_volume_icon_Vibrat_min.png b/project/res/screen-density-xhigh/00_volume_icon_Vibrat_min.png Binary files differnew file mode 100644 index 0000000..c113b90 --- /dev/null +++ b/project/res/screen-density-xhigh/00_volume_icon_Vibrat_min.png diff --git a/project/res/screen-density-xhigh/00_volume_icon_max.png b/project/res/screen-density-xhigh/00_volume_icon_max.png Binary files differnew file mode 100644 index 0000000..ee7eac8 --- /dev/null +++ b/project/res/screen-density-xhigh/00_volume_icon_max.png diff --git a/project/res/screen-density-xhigh/00_volume_icon_min.png b/project/res/screen-density-xhigh/00_volume_icon_min.png Binary files differnew file mode 100644 index 0000000..08a1789 --- /dev/null +++ b/project/res/screen-density-xhigh/00_volume_icon_min.png diff --git a/project/res/screen-density-xhigh/BitmapA.bmp b/project/res/screen-density-xhigh/BitmapA.bmp Binary files differnew file mode 100644 index 0000000..b87ee47 --- /dev/null +++ b/project/res/screen-density-xhigh/BitmapA.bmp diff --git a/project/res/screen-density-xhigh/BitmapB.bmp b/project/res/screen-density-xhigh/BitmapB.bmp Binary files differnew file mode 100644 index 0000000..729d268 --- /dev/null +++ b/project/res/screen-density-xhigh/BitmapB.bmp diff --git a/project/res/screen-density-xhigh/alarm.png b/project/res/screen-density-xhigh/alarm.png Binary files differnew file mode 100644 index 0000000..c1e42b8 --- /dev/null +++ b/project/res/screen-density-xhigh/alarm.png diff --git a/project/res/screen-density-xhigh/alarm_focused.png b/project/res/screen-density-xhigh/alarm_focused.png Binary files differnew file mode 100644 index 0000000..dbc53b8 --- /dev/null +++ b/project/res/screen-density-xhigh/alarm_focused.png diff --git a/project/res/screen-density-xhigh/alarm_type1.png b/project/res/screen-density-xhigh/alarm_type1.png Binary files differnew file mode 100644 index 0000000..66a27a9 --- /dev/null +++ b/project/res/screen-density-xhigh/alarm_type1.png diff --git a/project/res/screen-density-xhigh/alarm_type2.png b/project/res/screen-density-xhigh/alarm_type2.png Binary files differnew file mode 100644 index 0000000..477171c --- /dev/null +++ b/project/res/screen-density-xhigh/alarm_type2.png diff --git a/project/res/screen-density-xhigh/alarm_type3.png b/project/res/screen-density-xhigh/alarm_type3.png Binary files differnew file mode 100644 index 0000000..4dc5cf2 --- /dev/null +++ b/project/res/screen-density-xhigh/alarm_type3.png diff --git a/project/res/screen-density-xhigh/alarm_type4.png b/project/res/screen-density-xhigh/alarm_type4.png Binary files differnew file mode 100644 index 0000000..5313a2b --- /dev/null +++ b/project/res/screen-density-xhigh/alarm_type4.png diff --git a/project/res/screen-density-xhigh/call.png b/project/res/screen-density-xhigh/call.png Binary files differnew file mode 100644 index 0000000..b6a920e --- /dev/null +++ b/project/res/screen-density-xhigh/call.png diff --git a/project/res/screen-density-xhigh/call_f_type1.png b/project/res/screen-density-xhigh/call_f_type1.png Binary files differnew file mode 100644 index 0000000..e5545f6 --- /dev/null +++ b/project/res/screen-density-xhigh/call_f_type1.png diff --git a/project/res/screen-density-xhigh/call_f_type2.png b/project/res/screen-density-xhigh/call_f_type2.png Binary files differnew file mode 100644 index 0000000..f070ff0 --- /dev/null +++ b/project/res/screen-density-xhigh/call_f_type2.png diff --git a/project/res/screen-density-xhigh/call_focused.png b/project/res/screen-density-xhigh/call_focused.png Binary files differnew file mode 100644 index 0000000..0a315e9 --- /dev/null +++ b/project/res/screen-density-xhigh/call_focused.png diff --git a/project/res/screen-density-xhigh/call_type1.png b/project/res/screen-density-xhigh/call_type1.png Binary files differnew file mode 100644 index 0000000..0012e9a --- /dev/null +++ b/project/res/screen-density-xhigh/call_type1.png diff --git a/project/res/screen-density-xhigh/call_type2.png b/project/res/screen-density-xhigh/call_type2.png Binary files differnew file mode 100644 index 0000000..cd87f8e --- /dev/null +++ b/project/res/screen-density-xhigh/call_type2.png diff --git a/project/res/screen-density-xhigh/call_type3.png b/project/res/screen-density-xhigh/call_type3.png Binary files differnew file mode 100644 index 0000000..9b8b565 --- /dev/null +++ b/project/res/screen-density-xhigh/call_type3.png diff --git a/project/res/screen-density-xhigh/call_type4.png b/project/res/screen-density-xhigh/call_type4.png Binary files differnew file mode 100644 index 0000000..e3d99ca --- /dev/null +++ b/project/res/screen-density-xhigh/call_type4.png diff --git a/project/res/screen-density-xhigh/home.png b/project/res/screen-density-xhigh/home.png Binary files differnew file mode 100644 index 0000000..88b629c --- /dev/null +++ b/project/res/screen-density-xhigh/home.png diff --git a/project/res/screen-density-xhigh/home_focused.png b/project/res/screen-density-xhigh/home_focused.png Binary files differnew file mode 100644 index 0000000..36cb66c --- /dev/null +++ b/project/res/screen-density-xhigh/home_focused.png diff --git a/project/res/screen-density-xhigh/home_type1.png b/project/res/screen-density-xhigh/home_type1.png Binary files differnew file mode 100644 index 0000000..5dd8ef6 --- /dev/null +++ b/project/res/screen-density-xhigh/home_type1.png diff --git a/project/res/screen-density-xhigh/home_type2.png b/project/res/screen-density-xhigh/home_type2.png Binary files differnew file mode 100644 index 0000000..1d9ad7e --- /dev/null +++ b/project/res/screen-density-xhigh/home_type2.png diff --git a/project/res/screen-density-xhigh/home_type3.png b/project/res/screen-density-xhigh/home_type3.png Binary files differnew file mode 100644 index 0000000..0d41338 --- /dev/null +++ b/project/res/screen-density-xhigh/home_type3.png diff --git a/project/res/screen-density-xhigh/home_type4.png b/project/res/screen-density-xhigh/home_type4.png Binary files differnew file mode 100644 index 0000000..527a7c6 --- /dev/null +++ b/project/res/screen-density-xhigh/home_type4.png diff --git a/project/res/screen-density-xhigh/image1.jpg b/project/res/screen-density-xhigh/image1.jpg Binary files differnew file mode 100644 index 0000000..55fc9b2 --- /dev/null +++ b/project/res/screen-density-xhigh/image1.jpg diff --git a/project/res/screen-density-xhigh/image2.jpg b/project/res/screen-density-xhigh/image2.jpg Binary files differnew file mode 100644 index 0000000..896b20b --- /dev/null +++ b/project/res/screen-density-xhigh/image2.jpg diff --git a/project/res/screen-density-xhigh/image3.jpg b/project/res/screen-density-xhigh/image3.jpg Binary files differnew file mode 100644 index 0000000..2fcb939 --- /dev/null +++ b/project/res/screen-density-xhigh/image3.jpg diff --git a/project/res/screen-density-xhigh/image4.jpg b/project/res/screen-density-xhigh/image4.jpg Binary files differnew file mode 100644 index 0000000..3572f32 --- /dev/null +++ b/project/res/screen-density-xhigh/image4.jpg diff --git a/project/res/screen-density-xhigh/message.png b/project/res/screen-density-xhigh/message.png Binary files differnew file mode 100644 index 0000000..d0c9685 --- /dev/null +++ b/project/res/screen-density-xhigh/message.png diff --git a/project/res/screen-density-xhigh/message_f_type1.png b/project/res/screen-density-xhigh/message_f_type1.png Binary files differnew file mode 100644 index 0000000..28e0bf7 --- /dev/null +++ b/project/res/screen-density-xhigh/message_f_type1.png diff --git a/project/res/screen-density-xhigh/message_f_type2.png b/project/res/screen-density-xhigh/message_f_type2.png Binary files differnew file mode 100644 index 0000000..266c89e --- /dev/null +++ b/project/res/screen-density-xhigh/message_f_type2.png diff --git a/project/res/screen-density-xhigh/message_focused.png b/project/res/screen-density-xhigh/message_focused.png Binary files differnew file mode 100644 index 0000000..6409aa0 --- /dev/null +++ b/project/res/screen-density-xhigh/message_focused.png diff --git a/project/res/screen-density-xhigh/message_type1.png b/project/res/screen-density-xhigh/message_type1.png Binary files differnew file mode 100644 index 0000000..6f661db --- /dev/null +++ b/project/res/screen-density-xhigh/message_type1.png diff --git a/project/res/screen-density-xhigh/message_type2.png b/project/res/screen-density-xhigh/message_type2.png Binary files differnew file mode 100644 index 0000000..53efabe --- /dev/null +++ b/project/res/screen-density-xhigh/message_type2.png diff --git a/project/res/screen-density-xhigh/message_type3.png b/project/res/screen-density-xhigh/message_type3.png Binary files differnew file mode 100644 index 0000000..49532ed --- /dev/null +++ b/project/res/screen-density-xhigh/message_type3.png diff --git a/project/res/screen-density-xhigh/message_type4.png b/project/res/screen-density-xhigh/message_type4.png Binary files differnew file mode 100644 index 0000000..27f6f39 --- /dev/null +++ b/project/res/screen-density-xhigh/message_type4.png diff --git a/project/res/screen-density-xhigh/more.png b/project/res/screen-density-xhigh/more.png Binary files differnew file mode 100644 index 0000000..3110f55 --- /dev/null +++ b/project/res/screen-density-xhigh/more.png diff --git a/project/res/screen-density-xhigh/more_press.png b/project/res/screen-density-xhigh/more_press.png Binary files differnew file mode 100644 index 0000000..03a1c1d --- /dev/null +++ b/project/res/screen-density-xhigh/more_press.png diff --git a/project/res/screen-density-xhigh/skyline.png b/project/res/screen-density-xhigh/skyline.png Binary files differnew file mode 100644 index 0000000..b275a6e --- /dev/null +++ b/project/res/screen-density-xhigh/skyline.png diff --git a/project/res/screen-density-xhigh/sliderVibrationMax.png b/project/res/screen-density-xhigh/sliderVibrationMax.png Binary files differnew file mode 100644 index 0000000..550ae2f --- /dev/null +++ b/project/res/screen-density-xhigh/sliderVibrationMax.png diff --git a/project/res/screen-density-xhigh/sliderVibrationMin.png b/project/res/screen-density-xhigh/sliderVibrationMin.png Binary files differnew file mode 100644 index 0000000..d061e86 --- /dev/null +++ b/project/res/screen-density-xhigh/sliderVibrationMin.png diff --git a/project/res/screen-density-xhigh/sliderVolumeMax.png b/project/res/screen-density-xhigh/sliderVolumeMax.png Binary files differnew file mode 100644 index 0000000..b0fdecb --- /dev/null +++ b/project/res/screen-density-xhigh/sliderVolumeMax.png diff --git a/project/res/screen-density-xhigh/sliderVolumeMin.png b/project/res/screen-density-xhigh/sliderVolumeMin.png Binary files differnew file mode 100644 index 0000000..98201ba --- /dev/null +++ b/project/res/screen-density-xhigh/sliderVolumeMin.png diff --git a/project/res/screen-size-normal/IDF_FORM_ANIMATION.xml b/project/res/screen-size-normal/IDF_FORM_ANIMATION.xml new file mode 100644 index 0000000..aae0698 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_ANIMATION.xml @@ -0,0 +1,43 @@ +<?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="3.0.0.201301251814" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_ANIMATION"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="Animation" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_ANIMATION"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="305" y="89"/> + </ScrollPanel> + <Button id="IDC_BUTTON_PLAY" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Play" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="330" x="330" y="242"/> + <layout height="72" mode="Landscape" width="350" x="183" y="74"/> + </Button> + <Button id="IDC_BUTTON_PAUSE" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Pause" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="330" x="330" y="130"/> + <layout height="72" mode="Landscape" width="273" x="260" y="80"/> + </Button> + <Button id="IDC_BUTTON_STOP" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Stop" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="330" x="330" y="354"/> + <layout height="72" mode="Landscape" width="221" x="312" y="80"/> + </Button> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_BUTTON.xml b/project/res/screen-size-normal/IDF_FORM_BUTTON.xml new file mode 100644 index 0000000..66ba1b9 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_BUTTON.xml @@ -0,0 +1,53 @@ +<?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="3.0.0.201301291730" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_BUTTON"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="Button" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_BUTTON"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="24" y="0"/> + </ScrollPanel> + <Button id="IDC_BUTTON" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Button" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="38"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_BACKGROUND" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="skyline.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Normal Background" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="262"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_PRESSED_BACKGROUND" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="skyline.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Pressed Background" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="150"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_COLOR" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#C84B4C" normalColorOpacity="100" normalTextColor="#FFFFFF" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Color" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="374"/> + <layout height="72" mode="Landscape" width="425" x="108" y="80"/> + </Button> + <Button id="IDC_BUTTON_DISABLE" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Disabled" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="486"/> + <layout height="72" mode="Landscape" width="425" x="70" y="80"/> + </Button> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_CHECKBUTTON.xml b/project/res/screen-size-normal/IDF_FORM_CHECKBUTTON.xml new file mode 100644 index 0000000..599125e --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_CHECKBUTTON.xml @@ -0,0 +1,73 @@ +<?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="3.0.0.201301221116" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_CHECKBUTTON"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="CheckButton" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_CHECKBUTTON"> + <property autoResizingEnabled="true" backgroundColor="" 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="1020" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="771"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="771" x="3" y="0"/> + </ScrollPanel> + <CheckButton id="IDC_CHECKBUTTON_MARK" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Style Mark" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="" width="680" x="20" y="20"/> + <layout height="113" mode="Landscape" style="" width="420" x="113" y="39"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_RADIO" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="#FF4B4C" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="#FFFFFF" pressedTitleTextColor="" showTitleText="false" text="Check Button Radio" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="CHECK_BUTTON_STYLE_RADIO" width="680" x="20" y="410"/> + <layout height="113" mode="Landscape" style="CHECK_BUTTON_STYLE_RADIO" width="420" x="113" y="39"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_ONOFF" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Style Sliding" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="CHECK_BUTTON_STYLE_ONOFF_SLIDING" width="680" x="20" y="280"/> + <layout height="113" mode="Landscape" style="CHECK_BUTTON_STYLE_ONOFF_SLIDING" width="420" x="113" y="39"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_MARK_WITH_DETAILED" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Style Mark Detailed" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="CHECK_BUTTON_STYLE_MARK_WITH_DETAILED_BUTTON" width="680" x="20" y="150"/> + <layout height="113" mode="Landscape" style="CHECK_BUTTON_STYLE_MARK_WITH_DETAILED_BUTTON" width="420" x="113" y="39"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_RADIO_WITH_DETAILED" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Style Radio Detailed" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="CHECK_BUTTON_STYLE_RADIO_WITH_DETAILED_BUTTON" width="680" x="20" y="540"/> + <layout height="108" mode="Landscape" style="CHECK_BUTTON_STYLE_RADIO_WITH_DETAILED_BUTTON" width="538" x="0" y="44"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_GROUP_TOP" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_TOP" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Group Top" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="" width="680" x="20" y="670"/> + <layout height="108" mode="Landscape" style="" width="577" x="0" y="44"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_GROUP_MIDDLE" parent="IDC_SCROLLPANEL"> + <property 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="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Group Middle" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="" width="680" x="20" y="782"/> + <layout height="108" mode="Landscape" style="" width="577" x="0" y="44"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_GROUP_BOTTOM" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_BOTTOM" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="Group Bottom" titleText="" verticalAlign="ALIGN_MIDDLE"/> + <layout height="112" mode="Portrait" style="" width="680" x="20" y="894"/> + <layout height="108" mode="Landscape" style="" width="577" x="0" y="44"/> + </CheckButton> + <CheckButton id="IDC_CHECKBUTTON_DISABLE" parent="IDC_SCROLLPANEL"> + <property backgroundStyle="BACKGROUND_STYLE_DEFAULT" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="true" text="Disabled" titleText="Title" verticalAlign="ALIGN_MIDDLE"/> + <layout height="153" mode="Portrait" style="" width="680" x="20" y="1023"/> + <layout height="152" mode="Landscape" style="" width="771" x="0" y="44"/> + </CheckButton> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_COLORPICKER.xml b/project/res/screen-size-normal/IDF_FORM_COLORPICKER.xml new file mode 100644 index 0000000..bfca2d5 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_COLORPICKER.xml @@ -0,0 +1,37 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_COLORPICKER"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="ColorPicker" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_COLORPICKER"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="382" mode="Landscape" width="1308"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="5" y="0"/> + </ScrollPanel> + <ColorPicker id="IDC_COLORPICKER" parent="IDC_SCROLLPANEL"> + <layout height="382" mode="Portrait" width="720" x="0" y="20"/> + <layout height="382" mode="Landscape" width="1200" x="108" y="0"/> + </ColorPicker> + <Label id="IDC_LABEL_COLOR" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/> + <layout height="200" mode="Portrait" width="560" x="80" y="440"/> + <layout height="166" mode="Landscape" width="510" x="241" y="216"/> + </Label> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_CUSTOMBUTTON.xml b/project/res/screen-size-normal/IDF_FORM_CUSTOMBUTTON.xml new file mode 100644 index 0000000..1545669 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_CUSTOMBUTTON.xml @@ -0,0 +1,28 @@ +<?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="3.0.0.201212071727" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_CUSTOMBUTTON"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="CustomButton" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_CUSTOMBUTTON"> + <property backgroundColor="" backgroundColorOpacity="0"/> + <panelLayout height="1022" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1022" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="-2" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="24" y="0"/> + </ScrollPanel> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_DATETIME.xml b/project/res/screen-size-normal/IDF_FORM_DATETIME.xml new file mode 100644 index 0000000..8c9a550 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_DATETIME.xml @@ -0,0 +1,73 @@ +<?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="3.0.0.201301291730" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_DATETIME"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="EditDate, EditTime" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_DATETIME"> + <property autoResizingEnabled="true" backgroundColor="" 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="1692" mode="Portrait" width="720"/> + <panelLayout height="231" mode="Landscape" width="1767"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1390" x="65" y="0"/> + </ScrollPanel> + <EditDate id="IDC_EDITDATE" parent="IDC_SCROLLPANEL"> + <property maxYearRange="9999" minYearRange="1" titleText="Title"/> + <layout height="190" mode="Portrait" width="720" x="0" y="50"/> + <layout height="112" mode="Landscape" width="1280" x="110" y="41"/> + </EditDate> + <EditTime id="IDC_EDITTIME" parent="IDC_SCROLLPANEL"> + <property b24HourNotationEnabled="false" titleText="Title"/> + <layout height="190" mode="Portrait" style="INPUT_STYLE_FULLSCREEN" width="720" x="0" y="740"/> + <layout height="112" mode="Landscape" style="INPUT_STYLE_FULLSCREEN" width="1280" x="159" y="41"/> + </EditTime> + <Button id="IDC_BUTTON_DATEPICKER" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="DatePicker" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="1370"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_TIMEPICKER" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="TimePicker" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="1482"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_DATETIMEPICKER" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="DateTimePicker" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="1594"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <EditDate id="IDC_EDITDATE_DISABLE" parent="IDC_SCROLLPANEL"> + <property maxYearRange="9999" minYearRange="1" titleText="Disabled"/> + <layout height="190" mode="Portrait" width="720" x="0" y="284"/> + <layout height="112" mode="Landscape" width="1280" x="456" y="41"/> + </EditDate> + <EditTime id="IDC_EDITTIME_DISABLE" parent="IDC_SCROLLPANEL"> + <property b24HourNotationEnabled="true" titleText="Disabled"/> + <layout height="190" mode="Portrait" style="INPUT_STYLE_FULLSCREEN" width="720" x="0" y="970"/> + <layout height="112" mode="Landscape" style="INPUT_STYLE_FULLSCREEN" width="1280" x="100" y="41"/> + </EditTime> + <EditDate id="IDC_EDITDATE_NO_TITLE" parent="IDC_SCROLLPANEL"> + <property maxYearRange="9999" minYearRange="1" titleText=""/> + <layout height="144" mode="Portrait" width="1280" x="0" y="510"/> + <layout height="112" mode="Landscape" width="1280" x="109" y="57"/> + </EditDate> + <EditTime id="IDC_EDITTIME_NO_TITLE" parent="IDC_SCROLLPANEL"> + <property b24HourNotationEnabled="true" titleText=""/> + <layout height="144" mode="Portrait" style="INPUT_STYLE_FULLSCREEN" width="1280" x="0" y="1200"/> + <layout height="112" mode="Landscape" style="INPUT_STYLE_FULLSCREEN" width="1280" x="487" y="57"/> + </EditTime> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_EDIT.xml b/project/res/screen-size-normal/IDF_FORM_EDIT.xml new file mode 100644 index 0000000..612061c --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_EDIT.xml @@ -0,0 +1,73 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_EDIT"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="EditField, EditArea" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_EDIT"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="215" mode="Landscape" width="573"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="1" y="0"/> + </ScrollPanel> + <Button id="IDC_BUTTON_CLEAR" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Clear" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="180" x="520" y="288"/> + <layout height="72" mode="Landscape" width="235" x="298" y="76"/> + </Button> + <Button id="IDC_BUTTON_CLEAR2" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Clear" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="180" x="520" y="38"/> + <layout height="72" mode="Landscape" width="252" x="281" y="80"/> + </Button> + <Label id="IDC_LABEL_EDITFIELD" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="EditField" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="300" x="20" y="38"/> + <layout height="66" mode="Landscape" width="420" x="107" y="76"/> + </Label> + <Label id="IDC_LABEL_EDITAREA" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="EditArea" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="300" x="20" y="288"/> + <layout height="66" mode="Landscape" width="420" x="113" y="86"/> + </Label> + <EditField id="IDC_EDITFIELD" parent="IDC_SCROLLPANEL"> + <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="12" viewMode="false"/> + <layout height="112" mode="Portrait" style="EDIT_FIELD_STYLE_NORMAL" width="680" x="20" y="144"/> + <layout height="113" mode="Landscape" style="EDIT_FIELD_STYLE_NORMAL" width="336" x="67" y="39"/> + </EditField> + <EditArea id="IDC_EDITAREA" parent="IDC_SCROLLPANEL"> + <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadStyle="KEYPAD_STYLE_NORMAL" limitLength="1000" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" verticalMargin="12" viewMode="false"/> + <layout height="112" mode="Portrait" width="680" x="20" y="394"/> + <layout height="171" mode="Landscape" width="336" x="51" y="0"/> + </EditArea> + <EditField id="IDC_EDITFIELD_INNERTITLE" parent="IDC_SCROLLPANEL"> + <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="EditField" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" titleStyle="EDIT_FIELD_TITLE_STYLE_INNER" titleText="Title" titleTextColor="" verticalMargin="20" viewMode="false"/> + <layout height="112" mode="Portrait" style="EDIT_FIELD_STYLE_NORMAL" width="680" x="20" y="538"/> + <layout height="90" mode="Landscape" style="EDIT_FIELD_STYLE_NORMAL" width="573" x="0" y="62"/> + </EditField> + <EditField id="IDC_EDITFIELD_TOPTITLE" parent="IDC_SCROLLPANEL"> + <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="true" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="Show Clear Button" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" titleStyle="EDIT_FIELD_TITLE_STYLE_TOP" titleText="Title" titleTextColor="" verticalMargin="12" viewMode="false"/> + <layout height="153" mode="Portrait" style="EDIT_FIELD_STYLE_NORMAL" width="680" x="20" y="826"/> + <layout height="153" mode="Landscape" style="EDIT_FIELD_STYLE_NORMAL" width="573" x="0" y="62"/> + </EditField> + <EditField id="IDC_EDITFIELD_DISABLE" parent="IDC_SCROLLPANEL"> + <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="Disabled" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="12" viewMode="false"/> + <layout height="112" mode="Portrait" style="EDIT_FIELD_STYLE_NORMAL" width="680" x="20" y="682"/> + <layout height="90" mode="Landscape" style="EDIT_FIELD_STYLE_NORMAL" width="573" x="0" y="62"/> + </EditField> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_ENRICHEDTEXT.xml b/project/res/screen-size-normal/IDF_FORM_ENRICHEDTEXT.xml new file mode 100644 index 0000000..528b010 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_ENRICHEDTEXT.xml @@ -0,0 +1,33 @@ +<?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="3.0.0.201301291730" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_ENRICHEDTEXT"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" 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="" titleIconPath="" titleText="EnrichedText" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_ENRICHEDTEXT"> + <property autoResizingEnabled="true" backgroundColor="" 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="1181" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="211" y="120"/> + </ScrollPanel> + <ListView id="IDC_LISTVIEW" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" fastScroll="false" itemDivider="true" itemDividerColor="" sweepEnabled="false" textOfEmptyList=""/> + <layout height="539" mode="Portrait" width="720" x="0" y="480"/> + <layout height="260" mode="Landscape" width="1169" x="0" y="0"/> + </ListView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_EXPANDABLEEDITAREA.xml b/project/res/screen-size-normal/IDF_FORM_EXPANDABLEEDITAREA.xml new file mode 100644 index 0000000..3a8686e --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_EXPANDABLEEDITAREA.xml @@ -0,0 +1,19 @@ +<?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="3.0.0.201210311640" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_EXPANDABLEEDITAREA"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/> + </Form> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" 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="" titleIconPath="" titleText="ExpandableEditArea" titleTextColor=""/> + <itemSet> + <buttonItem actionId="100" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="" style="BUTTON_ITEM_STYLE_TEXT" text="Back" type="right"/> + </itemSet> + </Header> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_GALLERY.xml b/project/res/screen-size-normal/IDF_FORM_GALLERY.xml new file mode 100644 index 0000000..ce728d9 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_GALLERY.xml @@ -0,0 +1,26 @@ +<?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="3.0.0.201301181014" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_GALLERY"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="Gallery" titleTextColor=""/> + <itemSet/> + </Header> + <Gallery id="IDC_GALLERY" parent="IDF_FORM_GALLERY"> + <property backgroundColor="#000000" bitmapPathOfEmptyGallery="" slideShowAnimation="GALLERY_ANIMATION_PAGE" slideShowAnimationDuration="3000" slideShowViewDuration="10" textOfEmptyGallery="" zoomingEnabled="true"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" 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="730" x="76" y="0"/> + </Gallery> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_GROUPEDLISTVIEW.xml b/project/res/screen-size-normal/IDF_FORM_GROUPEDLISTVIEW.xml new file mode 100644 index 0000000..4189de7 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_GROUPEDLISTVIEW.xml @@ -0,0 +1,26 @@ +<?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="3.0.0.201301251814" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_GROUPEDLISTVIEW"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="GroupedListView" titleTextColor=""/> + <itemSet/> + </Header> + <GroupedListView id="IDC_GROUPEDLISTVIEW" parent="IDF_FORM_GROUPEDLISTVIEW"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" fastScroll="true" itemDivider="true" itemDividerColor="" sectionColor="" sweepEnabled="false" textOfEmptyList=""/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="741" x="51" y="20"/> + </GroupedListView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_ICONLISTVIEW.xml b/project/res/screen-size-normal/IDF_FORM_ICONLISTVIEW.xml new file mode 100644 index 0000000..928d423 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_ICONLISTVIEW.xml @@ -0,0 +1,31 @@ +<?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="3.0.0.201301291730" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_ICONLISTVIEW"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="IconListView" titleTextColor=""/> + <itemSet/> + </Header> + <IconListView id="IDC_ICONLISTVIEW_HORIZONTAL" parent="IDF_FORM_ICONLISTVIEW"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" checkBoxPosition="ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT" colorOfEmptyListText="" highlightedItemTextColor="" itemBitmapHeight="90" itemBitmapWidth="90" itemBorderStyle="ICON_LIST_VIEW_ITEM_BORDER_STYLE_SHADOW" itemHorizontalAlignment="ALIGNMENT_CENTER" itemHorizontalSpacing="2" itemTextHorizontalAlignment="ALIGNMENT_CENTER" itemTextSize="30" itemTextVerticalAlignment="ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_BOTTOM" itemVerticalAlignment="ALIGNMENT_MIDDLE" itemVerticalSpacing="2" magneticScrollSize="0" normalItemTextColor="" pressedItemTextColor="" scrollDirection="ICON_LIST_VIEW_SCROLL_DIRECTION_HORIZONTAL" textOfEmptyList="" touchAnimationEnabled="true"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="730" x="60" y="60"/> + </IconListView> + <IconListView id="IDC_ICONLISTVIEW_VERTICAL" parent="IDF_FORM_ICONLISTVIEW"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" checkBoxPosition="ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT" colorOfEmptyListText="" highlightedItemTextColor="" itemBitmapHeight="90" itemBitmapWidth="90" itemBorderStyle="ICON_LIST_VIEW_ITEM_BORDER_STYLE_SHADOW" itemHorizontalAlignment="ALIGNMENT_CENTER" itemHorizontalSpacing="2" itemTextHorizontalAlignment="ALIGNMENT_CENTER" itemTextSize="30" itemTextVerticalAlignment="ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_BOTTOM" itemVerticalAlignment="ALIGNMENT_MIDDLE" itemVerticalSpacing="2" magneticScrollSize="0" normalItemTextColor="" pressedItemTextColor="" scrollDirection="ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL" textOfEmptyList="" touchAnimationEnabled="true"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="730" x="241" y="320"/> + </IconListView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_LISTVIEW.xml b/project/res/screen-size-normal/IDF_FORM_LISTVIEW.xml new file mode 100644 index 0000000..2396976 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_LISTVIEW.xml @@ -0,0 +1,21 @@ +<?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="3.0.0.201211071904" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_LISTVIEW"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="ListView" titleTextColor=""/> + <itemSet/> + </Header> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_MENU.xml b/project/res/screen-size-normal/IDF_FORM_MENU.xml new file mode 100644 index 0000000..5f7c35b --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_MENU.xml @@ -0,0 +1,38 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_MENU"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" 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 backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="ContextMenu" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_MENU"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="0" y="0"/> + </ScrollPanel> + <Button id="IDC_BUTTON_LIST" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="List" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="38"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_GRID" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Grid" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="150"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_MSGBOXPOPUP.xml b/project/res/screen-size-normal/IDF_FORM_MSGBOXPOPUP.xml new file mode 100644 index 0000000..742fcb5 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_MSGBOXPOPUP.xml @@ -0,0 +1,43 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_MSGBOXPOPUP"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="MessageBox, Popup" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_MSGBOXPOPUP"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="14" y="0"/> + </ScrollPanel> + <Button id="IDC_BUTTON_MESSAGEBOX" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="MessageBox" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="38"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_POPUP" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Popup" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="150"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> + <Button id="IDC_BUTTON_PROGRESSPOPUP" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="ProgressPopup" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="420" x="150" y="262"/> + <layout height="72" mode="Landscape" width="420" x="113" y="80"/> + </Button> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_NAVIGATION.xml b/project/res/screen-size-normal/IDF_FORM_NAVIGATION.xml new file mode 100644 index 0000000..15d950e --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_NAVIGATION.xml @@ -0,0 +1,26 @@ +<?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="3.0.0.201212071727" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_NAVIGATION"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="" titleTextColor=""/> + <itemSet/> + </Header> + <ListView id="IDC_LISTVIEW" parent="IDF_FORM_NAVIGATION"> + <property backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" fastScroll="false" itemDivider="true" itemDividerColor="" sweepEnabled="false" textOfEmptyList=""/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="920" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" 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="730" x="316" y="191"/> + </ListView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_OVERLAYKEYPAD.xml b/project/res/screen-size-normal/IDF_FORM_OVERLAYKEYPAD.xml new file mode 100644 index 0000000..12a3d08 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_OVERLAYKEYPAD.xml @@ -0,0 +1,43 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_OVERLAYKEYPAD"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="OverlayKeypad" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_OVERLAYKEYPAD"> + <property autoResizingEnabled="true" backgroundColor="" 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="1200" mode="Portrait" width="720"/> + <panelLayout height="720" mode="Landscape" width="1280"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="0" x="0" y="0"/> + </ScrollPanel> + <EditField id="IDC_EDITFIELD" parent="IDC_SCROLLPANEL"> + <property commandButtonVisible="true" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="10" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="" textSize="30" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="10" viewMode="false"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="680" x="20" y="32"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1240" x="20" y="20"/> + </EditField> + <EditArea id="IDC_EDITAREA" parent="IDC_SCROLLPANEL"> + <property commandButtonVisible="true" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="10" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadStyle="KEYPAD_STYLE_NORMAL" limitLength="1000" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="" textSize="30" verticalMargin="10" viewMode="false"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="336" 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="680" x="20" y="176"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="336" 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="1240" x="20" y="150"/> + </EditArea> + <Button id="IDC_BUTTON_EDITAREA_CLEAR" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="0" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="0" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="0" pressedTextColor="" text="Clear" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74" 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="180" x="520" y="544"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72" 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="202" x="1033" y="533"/> + </Button> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_PANEL.xml b/project/res/screen-size-normal/IDF_FORM_PANEL.xml new file mode 100644 index 0000000..94a13b3 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_PANEL.xml @@ -0,0 +1,53 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_PANEL"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="ScrollPanel, Panel" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_PANEL"> + <property autoResizingEnabled="true" backgroundColor="#C84B4C" backgroundColorOpacity="100" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="true" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/> + <panelLayout height="285" mode="Portrait" width="680"/> + <panelLayout height="204" mode="Landscape" width="1016"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="195" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="680" x="20" y="32"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1016" x="122" y="0"/> + </ScrollPanel> + <Button id="IDC_BUTTON_SCROLLPANEL" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Button" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="180" x="480" y="140"/> + <layout height="174" mode="Landscape" width="76" x="159" y="30"/> + </Button> + <Label id="IDC_LABEL1" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="ScrollPanel" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/> + <layout height="74" mode="Portrait" width="300" x="20" y="20"/> + <layout height="221" mode="Landscape" width="125" x="25" y="0"/> + </Label> + <Panel id="IDC_PANEL" parent="IDF_FORM_PANEL"> + <property backgroundColor="#C84B4C" backgroundColorOpacity="100" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="195" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="680" x="20" y="259"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="109" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1011" x="120" y="253"/> + </Panel> + <Button id="IDC_BUTTON_PANEL" parent="IDC_PANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Button" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="180" x="478" y="85"/> + <layout height="271" mode="Landscape" width="84" x="110" y="0"/> + </Button> + <Label id="IDC_LABEL2" parent="IDC_PANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Panel" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/> + <layout height="74" mode="Portrait" width="300" x="20" y="20"/> + <layout height="324" mode="Landscape" width="86" x="12" y="0"/> + </Label> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_PROGRESS.xml b/project/res/screen-size-normal/IDF_FORM_PROGRESS.xml new file mode 100644 index 0000000..186d591 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_PROGRESS.xml @@ -0,0 +1,63 @@ +<?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="3.0.0.201301151800" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_PROGRESS"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_SEGMENTED_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="Progress" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_PROGRESS"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="8" y="0"/> + </ScrollPanel> + <Progress id="IDC_PROGRESS" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" barColor="" leftText="" max="100" min="0" rightText="" showValueState="true" value="50"/> + <layout height="112" mode="Portrait" style="PROGRESS_STYLE_NONE" width="680" x="20" y="20"/> + <layout height="6" mode="Landscape" style="PROGRESS_STYLE_NONE" width="5" x="256" y="146"/> + </Progress> + <Button id="IDC_BUTTON_DOWN" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="-" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="120" x="20" y="130"/> + <layout height="72" mode="Landscape" width="420" x="47" y="80"/> + </Button> + <Button id="IDC_BUTTON_UP" parent="IDC_SCROLLPANEL"> + <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="+" textSize="33" verticalAlign="ALIGN_MIDDLE"/> + <layout height="74" mode="Portrait" width="120" x="580" y="130"/> + <layout height="72" mode="Landscape" width="382" x="151" y="80"/> + </Button> + <Progress id="IDC_PROGRESS_COLOR" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" barColor="#C84B4C" leftText="" max="100" min="0" rightText="" showValueState="true" value="50"/> + <layout height="93" mode="Portrait" style="PROGRESS_STYLE_NONE" width="680" x="20" y="334"/> + <layout height="65" mode="Landscape" style="PROGRESS_STYLE_NONE" width="425" x="108" y="87"/> + </Progress> + <Progress id="IDC_PROGRESS_DISABLE" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" barColor="" leftText="" max="10" min="0" rightText="" showValueState="true" value="3"/> + <layout height="93" mode="Portrait" style="PROGRESS_STYLE_NONE" width="680" x="20" y="538"/> + <layout height="65" mode="Landscape" style="PROGRESS_STYLE_NONE" width="425" x="42" y="87"/> + </Progress> + <Label id="IDC_LABEL1" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Color" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/> + <layout height="93" mode="Portrait" width="300" x="20" y="242"/> + <layout height="66" mode="Landscape" width="421" x="42" y="86"/> + </Label> + <Label id="IDC_LABEL2" parent="IDC_SCROLLPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Disabled" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/> + <layout height="93" mode="Portrait" width="300" x="20" y="446"/> + <layout height="66" mode="Landscape" width="421" x="112" y="86"/> + </Label> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_SEARCHBAR.xml b/project/res/screen-size-normal/IDF_FORM_SEARCHBAR.xml new file mode 100644 index 0000000..b944c06 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_SEARCHBAR.xml @@ -0,0 +1,31 @@ +<?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="3.0.0.201302021409" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_SEARCHBAR"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="SearchBar" titleTextColor=""/> + <itemSet/> + </Header> + <SearchBar id="IDC_SEARCHBAR" parent="IDF_FORM_SEARCHBAR"> + <property backgroundBitmapPath="" buttonActionId="0" buttonText="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonTextColor="" disabledSearchFieldColor="" disabledSearchFieldTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" guideText="" guideTextColor="" highlightedButtonColor="" highlightedButtonTextColor="" highlightedSearchFieldColor="" highlightedSearchFieldTextColor="" keypadAction="KEYPAD_ACTION_ENTER" limitLength="500" lowerCaseMode="false" normalButtonColor="" normalButtonTextColor="" normalSearchFieldColor="" normalSearchFieldTextColor="" pressedButtonColor="" pressedButtonTextColor="" searchFieldTextSize="33" showSearchBarButton="true" text="" textPredictionEnabled="false"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="106" 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="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="59" 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="801" x="1" y="20"/> + </SearchBar> + <GroupedListView id="IDC_GROUPEDLISTVIEW" parent="IDF_FORM_SEARCHBAR"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" fastScroll="true" itemDivider="true" itemDividerColor="" sectionColor="" sweepEnabled="false" textOfEmptyList=""/> + <layout bottomRelation="IDF_FORM_SEARCHBAR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="905" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="IDC_SEARCHBAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="106"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="741" x="0" y="20"/> + </GroupedListView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_SLIDER.xml b/project/res/screen-size-normal/IDF_FORM_SLIDER.xml new file mode 100644 index 0000000..cc7e03b --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_SLIDER.xml @@ -0,0 +1,58 @@ +<?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="3.0.0.201301311444" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_SLIDER"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="Slider" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_SLIDER"> + <property autoResizingEnabled="true" backgroundColor="" 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="1011" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="14" y="0"/> + </ScrollPanel> + <Slider id="IDC_SLIDER" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" barColor="" color="" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="" max="100" min="0" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" pressedThumbTextColor="" rightIconBitmapPath="" showTitleText="false" sliderStyleBubble="true" sliderStyleTitle="false" titleText="" value="50"/> + <layout height="112" mode="Portrait" width="680" x="20" y="354"/> + <layout height="113" mode="Landscape" width="420" x="113" y="39"/> + </Slider> + <Slider id="IDC_SLIDER_COLOR" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" barColor="#4193F8" color="#C84B4C" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="" max="999" min="-99" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" pressedThumbTextColor="" rightIconBitmapPath="" showTitleText="false" sliderStyleBubble="true" sliderStyleTitle="false" titleText="" value="500"/> + <layout height="112" mode="Portrait" width="680" x="20" y="498"/> + <layout height="112" mode="Landscape" width="425" x="108" y="40"/> + </Slider> + <Slider id="IDC_SLIDER_ICON" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" barColor="" color="" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="call_type1.png" max="999" min="-99" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" pressedThumbTextColor="" rightIconBitmapPath="home.png" showTitleText="false" sliderStyleBubble="true" sliderStyleTitle="false" titleText="" value="500"/> + <layout height="112" mode="Portrait" width="680" x="20" y="642"/> + <layout height="112" mode="Landscape" width="425" x="108" y="40"/> + </Slider> + <Slider id="IDC_SLIDER_DISABLE" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" barColor="" color="" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="" max="999" min="-99" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" pressedThumbTextColor="" rightIconBitmapPath="" showTitleText="false" sliderStyleBubble="true" sliderStyleTitle="false" titleText="" value="500"/> + <layout height="112" mode="Portrait" width="680" x="20" y="786"/> + <layout height="112" mode="Landscape" width="425" x="108" y="40"/> + </Slider> + <Slider id="IDC_SLIDER_NO_BACKGROUND" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" backgroundStyle="BACKGROUND_STYLE_NONE" barColor="" color="" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="" max="10" min="0" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" pressedThumbTextColor="" rightIconBitmapPath="" showTitleText="false" sliderStyleBubble="false" sliderStyleTitle="false" titleText="" value="2"/> + <layout height="112" mode="Portrait" width="680" x="20" y="210"/> + <layout height="112" mode="Landscape" width="425" x="108" y="40"/> + </Slider> + <Slider id="IDC_SLIDER_TITLE" parent="IDC_SCROLLPANEL"> + <property backgroundColor="" backgroundStyle="BACKGROUND_STYLE_DEFAULT" barColor="" color="" colorOfTitleText="" colorOpacity="100" disabledThumbBitmap="" disabledThumbTextColor="" highlightedThumbBitmap="" highlightedThumbTextColor="" leftIconBitmapPath="" max="100" min="0" normalThumbBitmap="" normalThumbTextColor="" pressedThumbBitmap="" pressedThumbTextColor="" rightIconBitmapPath="" showTitleText="false" sliderStyleBubble="true" sliderStyleTitle="true" titleText="Title" value="50"/> + <layout height="146" mode="Portrait" width="680" x="20" y="32"/> + <layout height="113" mode="Landscape" width="421" x="112" y="39"/> + </Slider> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_SPLITPANEL.xml b/project/res/screen-size-normal/IDF_FORM_SPLITPANEL.xml new file mode 100644 index 0000000..8a0d341 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_SPLITPANEL.xml @@ -0,0 +1,35 @@ +<?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="3.0.0.201301251814" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_SPLITPANEL"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="SplitPanel" titleTextColor=""/> + <itemSet/> + </Header> + <SplitPanel id="IDC_SPLITPANEL" parent="IDF_FORM_SPLITPANEL"> + <property dividerDirection="SPLIT_PANEL_DIVIDER_DIRECTION_VERTICAL" dividerPosition="300" dividerStyle="SPLIT_PANEL_DIVIDER_STYLE_MOVABLE" maxDividerPosition="707" minDividerPosition="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="484" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="1280" x="0" y="0"/> + </SplitPanel> + <ListView id="IDC_LISTVIEW" parent="IDC_SPLITPANEL"> + <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" controlPosition="first" fastScroll="false" itemDivider="true" itemDividerColor="" sweepEnabled="false" textOfEmptyList=""/> + <layout height="1011" mode="Portrait" width="300" x="0" y="0"/> + <layout height="484" mode="Landscape" width="300" x="0" y="0"/> + </ListView> + <Panel id="IDC_PANEL" parent="IDC_SPLITPANEL"> + <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" controlPosition="second" groupStyle="GROUP_STYLE_NONE"/> + <layout height="1011" mode="Portrait" type="NONE" width="407" x="0" y="0"/> + </Panel> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_TABBAR.xml b/project/res/screen-size-normal/IDF_FORM_TABBAR.xml new file mode 100644 index 0000000..5bdcd71 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_TABBAR.xml @@ -0,0 +1,34 @@ +<?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="3.0.0.201212071727" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_TABBAR"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText=" TabBar" titleTextColor=""/> + <itemSet/> + </Header> + <TabBar id="IDC_TABBAR" parent="IDF_FORM_TABBAR"> + <property backgroundColor="" backgroundColorOpacity="100" normalItemTextColor="" selectedItemColor="" selectedItemTextColor=""/> + <itemSet> + <item actionId="0" text=""/> + </itemSet> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90" 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="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90" 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="1280" x="60" y="47"/> + </TabBar> + <ListView id="IDC_LISTVIEW" parent="IDF_FORM_TABBAR"> + <property backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" fastScroll="false" itemDivider="true" itemDividerColor="" sweepEnabled="false" textOfEmptyList=""/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="920" horizontalFitPolicy="FIT_POLICY_CONTENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_CONTENT" width="720" x="0" y="89"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" 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="730" x="316" y="191"/> + </ListView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_TABLEVIEW.xml b/project/res/screen-size-normal/IDF_FORM_TABLEVIEW.xml new file mode 100644 index 0000000..3397db8 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_TABLEVIEW.xml @@ -0,0 +1,26 @@ +<?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="3.0.0.201301291730" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_TABLEVIEW"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="TableView" titleTextColor=""/> + <itemSet/> + </Header> + <GroupedTableView id="IDC_GROUPEDTABLEVIEW" parent="IDF_FORM_TABLEVIEW"> + <property backgroundColor="" backgroundColorOpacity="0" collapseByPinchEnabled="false" fastScrollIndex="" groupedLookEnabled="false" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1011" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124" 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="730" x="51" y="20"/> + </GroupedTableView> +</Scene> diff --git a/project/res/screen-size-normal/IDF_FORM_TEXTBOX.xml b/project/res/screen-size-normal/IDF_FORM_TEXTBOX.xml new file mode 100644 index 0000000..1ce66b8 --- /dev/null +++ b/project/res/screen-size-normal/IDF_FORM_TEXTBOX.xml @@ -0,0 +1,33 @@ +<?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="3.0.0.201210171750" Dversion="20120315"> + <LogicalCoordinate>720</LogicalCoordinate> + <Form id="IDF_FORM_TEXTBOX"> + <property backgroundColor="" backgroundColorOpacity="100" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/> + <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/> + </Form> + <Footer> + <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" 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="true"/> + <itemSet/> + </Footer> + <Header> + <property backgroundBitmapPath="" color="" colorOpacity="0" 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="" titleIconPath="" titleText="TextBox" titleTextColor=""/> + <itemSet/> + </Header> + <ScrollPanel id="IDC_SCROLLPANEL" parent="IDF_FORM_TEXTBOX"> + <property backgroundColor="" backgroundColorOpacity="0"/> + <panelLayout height="1009" mode="Portrait" width="720"/> + <panelLayout height="152" mode="Landscape" width="533"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1009" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/> + <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="533" x="12" y="0"/> + </ScrollPanel> + <TextBox id="IDC_TEXTBOX" parent="IDC_SCROLLPANEL"> + <property disabledBackgroundBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" highlightedBackgroundBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="#000000" lineSpacingExtra="1" lineSpacingMultiplier="1" normalBackgroundBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="#FF0000" text=" TextBox Sample Tizen SDK" textAlignment="" textSize="45" textboxBorder="TEXT_BOX_BORDER_ROUNDED"/> + <layout height="344" mode="Portrait" width="411" x="170" y="195"/> + <layout height="158" mode="Landscape" width="575" x="0" y="0"/> + </TextBox> +</Scene> diff --git a/project/shared/data/nofile.dummy b/project/shared/data/nofile.dummy new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/project/shared/data/nofile.dummy diff --git a/project/shared/res/screen-density-xhigh/mainmenu.png b/project/shared/res/screen-density-xhigh/mainmenu.png Binary files differnew file mode 100755 index 0000000..983c883 --- /dev/null +++ b/project/shared/res/screen-density-xhigh/mainmenu.png diff --git a/project/shared/trusted/nofile.dummy b/project/shared/trusted/nofile.dummy new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/project/shared/trusted/nofile.dummy diff --git a/project/src/AnimationForm.cpp b/project/src/AnimationForm.cpp new file mode 100644 index 0000000..c93c0b3 --- /dev/null +++ b/project/src/AnimationForm.cpp @@ -0,0 +1,291 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#include "AnimationForm.h" + +using namespace Tizen::App; +using namespace Tizen::Base; +using namespace Tizen::Base::Collection; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +const wchar_t PROGRESS_IMAGE_PATH1[] = L"00_list_process_01.png"; +const wchar_t PROGRESS_IMAGE_PATH2[] = L"00_list_process_02.png"; +const wchar_t PROGRESS_IMAGE_PATH3[] = L"00_list_process_03.png"; +const wchar_t PROGRESS_IMAGE_PATH4[] = L"00_list_process_04.png"; +const wchar_t PROGRESS_IMAGE_PATH5[] = L"00_list_process_05.png"; +const wchar_t PROGRESS_IMAGE_PATH6[] = L"00_list_process_06.png"; +const wchar_t PROGRESS_IMAGE_PATH7[] = L"00_list_process_07.png"; +const wchar_t PROGRESS_IMAGE_PATH8[] = L"00_list_process_08.png"; +const wchar_t PROGRESS_IMAGE_PATH9[] = L"00_list_process_09.png"; +const wchar_t PROGRESS_IMAGE_PATH10[] = L"00_list_process_10.png"; +const wchar_t PROGRESS_IMAGE_PATH11[] = L"00_list_process_11.png"; +const wchar_t PROGRESS_IMAGE_PATH12[] = L"00_list_process_12.png"; +const wchar_t PROGRESS_IMAGE_PATH13[] = L"00_list_process_13.png"; +const wchar_t PROGRESS_IMAGE_PATH14[] = L"00_list_process_14.png"; +const wchar_t PROGRESS_IMAGE_PATH15[] = L"00_list_process_15.png"; +const wchar_t PROGRESS_IMAGE_PATH16[] = L"00_list_process_16.png"; +const wchar_t PROGRESS_IMAGE_PATH17[] = L"00_list_process_17.png"; +const wchar_t PROGRESS_IMAGE_PATH18[] = L"00_list_process_18.png"; +const wchar_t PROGRESS_IMAGE_PATH19[] = L"00_list_process_19.png"; +const wchar_t PROGRESS_IMAGE_PATH20[] = L"00_list_process_20.png"; +const wchar_t PROGRESS_IMAGE_PATH21[] = L"00_list_process_21.png"; +const wchar_t PROGRESS_IMAGE_PATH22[] = L"00_list_process_22.png"; +const wchar_t PROGRESS_IMAGE_PATH23[] = L"00_list_process_23.png"; +const wchar_t PROGRESS_IMAGE_PATH24[] = L"00_list_process_24.png"; +const wchar_t PROGRESS_IMAGE_PATH25[] = L"00_list_process_25.png"; +const wchar_t PROGRESS_IMAGE_PATH26[] = L"00_list_process_26.png"; +const wchar_t PROGRESS_IMAGE_PATH27[] = L"00_list_process_27.png"; +const wchar_t PROGRESS_IMAGE_PATH28[] = L"00_list_process_28.png"; +const wchar_t PROGRESS_IMAGE_PATH29[] = L"00_list_process_29.png"; +const wchar_t PROGRESS_IMAGE_PATH30[] = L"00_list_process_30.png"; +const int DURATION = 500; +const int FRAME_COUNT = 30; +const int LABEL_HEIGHT = 60; + +AnimationForm::AnimationForm(void) + : __pAnimation(null) + , __pAnimationFrameList(null) + , __pAniPlayButton(null) + , __pAniPauseButton(null) + , __pAniStopButton(null) +{ +} + +AnimationForm::~AnimationForm(void) +{ + if(__pAnimationFrameList != null) + { + __pAnimationFrameList->RemoveAll(true); + delete __pAnimationFrameList; + __pAnimationFrameList = null; + } +} + +bool +AnimationForm::Initialize(void) +{ + Construct(L"IDF_FORM_ANIMATION"); + return true; +} + +result +AnimationForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + // Add Scroll Panel Control + ScrollPanel* pScrollPanel =static_cast <ScrollPanel*> (GetControl("IDC_SCROLLPANEL")); + + // Create Bitmap + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + Bitmap* pBitmap1 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH1); + Bitmap* pBitmap2 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH2); + Bitmap* pBitmap3 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH3); + Bitmap* pBitmap4 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH4); + Bitmap* pBitmap5 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH5); + Bitmap* pBitmap6 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH6); + Bitmap* pBitmap7 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH7); + Bitmap* pBitmap8 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH8); + Bitmap* pBitmap9 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH9); + Bitmap* pBitmap10 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH10); + Bitmap* pBitmap11 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH11); + Bitmap* pBitmap12 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH12); + Bitmap* pBitmap13 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH13); + Bitmap* pBitmap14 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH14); + Bitmap* pBitmap15 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH15); + Bitmap* pBitmap16 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH16); + Bitmap* pBitmap17 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH17); + Bitmap* pBitmap18 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH18); + Bitmap* pBitmap19 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH19); + Bitmap* pBitmap20 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH20); + Bitmap* pBitmap21 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH21); + Bitmap* pBitmap22 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH22); + Bitmap* pBitmap23 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH23); + Bitmap* pBitmap24 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH24); + Bitmap* pBitmap25 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH25); + Bitmap* pBitmap26 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH26); + Bitmap* pBitmap27 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH27); + Bitmap* pBitmap28 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH28); + Bitmap* pBitmap29 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH29); + Bitmap* pBitmap30 = pAppResource->GetBitmapN(PROGRESS_IMAGE_PATH30); + + // Create AnimationFrames + long duration = DURATION / FRAME_COUNT; + AnimationFrame* pAniFrame1 = new (std::nothrow) AnimationFrame(*pBitmap1, duration); + AnimationFrame* pAniFrame2 = new (std::nothrow) AnimationFrame(*pBitmap2, duration); + AnimationFrame* pAniFrame3 = new (std::nothrow) AnimationFrame(*pBitmap3, duration); + AnimationFrame* pAniFrame4 = new (std::nothrow) AnimationFrame(*pBitmap4, duration); + AnimationFrame* pAniFrame5 = new (std::nothrow) AnimationFrame(*pBitmap5, duration); + AnimationFrame* pAniFrame6 = new (std::nothrow) AnimationFrame(*pBitmap6, duration); + AnimationFrame* pAniFrame7 = new (std::nothrow) AnimationFrame(*pBitmap7, duration); + AnimationFrame* pAniFrame8 = new (std::nothrow) AnimationFrame(*pBitmap8, duration); + AnimationFrame* pAniFrame9 = new (std::nothrow) AnimationFrame(*pBitmap9, duration); + AnimationFrame* pAniFrame10 = new (std::nothrow) AnimationFrame(*pBitmap10, duration); + AnimationFrame* pAniFrame11 = new (std::nothrow) AnimationFrame(*pBitmap11, duration); + AnimationFrame* pAniFrame12 = new (std::nothrow) AnimationFrame(*pBitmap12, duration); + AnimationFrame* pAniFrame13 = new (std::nothrow) AnimationFrame(*pBitmap13, duration); + AnimationFrame* pAniFrame14 = new (std::nothrow) AnimationFrame(*pBitmap14, duration); + AnimationFrame* pAniFrame15 = new (std::nothrow) AnimationFrame(*pBitmap15, duration); + AnimationFrame* pAniFrame16 = new (std::nothrow) AnimationFrame(*pBitmap16, duration); + AnimationFrame* pAniFrame17 = new (std::nothrow) AnimationFrame(*pBitmap17, duration); + AnimationFrame* pAniFrame18 = new (std::nothrow) AnimationFrame(*pBitmap18, duration); + AnimationFrame* pAniFrame19 = new (std::nothrow) AnimationFrame(*pBitmap19, duration); + AnimationFrame* pAniFrame20 = new (std::nothrow) AnimationFrame(*pBitmap20, duration); + AnimationFrame* pAniFrame21 = new (std::nothrow) AnimationFrame(*pBitmap21, duration); + AnimationFrame* pAniFrame22 = new (std::nothrow) AnimationFrame(*pBitmap22, duration); + AnimationFrame* pAniFrame23 = new (std::nothrow) AnimationFrame(*pBitmap23, duration); + AnimationFrame* pAniFrame24 = new (std::nothrow) AnimationFrame(*pBitmap24, duration); + AnimationFrame* pAniFrame25 = new (std::nothrow) AnimationFrame(*pBitmap25, duration); + AnimationFrame* pAniFrame26 = new (std::nothrow) AnimationFrame(*pBitmap26, duration); + AnimationFrame* pAniFrame27 = new (std::nothrow) AnimationFrame(*pBitmap27, duration); + AnimationFrame* pAniFrame28 = new (std::nothrow) AnimationFrame(*pBitmap28, duration); + AnimationFrame* pAniFrame29 = new (std::nothrow) AnimationFrame(*pBitmap29, duration); + AnimationFrame* pAniFrame30 = new (std::nothrow) AnimationFrame(*pBitmap30, duration); + + __pAnimationFrameList = new (std::nothrow) ArrayList(); + __pAnimationFrameList->Construct(); + __pAnimationFrameList->Add(*pAniFrame1); + __pAnimationFrameList->Add(*pAniFrame2); + __pAnimationFrameList->Add(*pAniFrame3); + __pAnimationFrameList->Add(*pAniFrame4); + __pAnimationFrameList->Add(*pAniFrame5); + __pAnimationFrameList->Add(*pAniFrame6); + __pAnimationFrameList->Add(*pAniFrame7); + __pAnimationFrameList->Add(*pAniFrame8); + __pAnimationFrameList->Add(*pAniFrame9); + __pAnimationFrameList->Add(*pAniFrame10); + __pAnimationFrameList->Add(*pAniFrame11); + __pAnimationFrameList->Add(*pAniFrame12); + __pAnimationFrameList->Add(*pAniFrame13); + __pAnimationFrameList->Add(*pAniFrame14); + __pAnimationFrameList->Add(*pAniFrame15); + __pAnimationFrameList->Add(*pAniFrame16); + __pAnimationFrameList->Add(*pAniFrame17); + __pAnimationFrameList->Add(*pAniFrame18); + __pAnimationFrameList->Add(*pAniFrame19); + __pAnimationFrameList->Add(*pAniFrame20); + __pAnimationFrameList->Add(*pAniFrame21); + __pAnimationFrameList->Add(*pAniFrame22); + __pAnimationFrameList->Add(*pAniFrame23); + __pAnimationFrameList->Add(*pAniFrame24); + __pAnimationFrameList->Add(*pAniFrame25); + __pAnimationFrameList->Add(*pAniFrame26); + __pAnimationFrameList->Add(*pAniFrame27); + __pAnimationFrameList->Add(*pAniFrame28); + __pAnimationFrameList->Add(*pAniFrame29); + __pAnimationFrameList->Add(*pAniFrame30); + + // Deallocate a Bitmap. + delete pBitmap1; + delete pBitmap2; + delete pBitmap3; + delete pBitmap4; + delete pBitmap5; + delete pBitmap6; + delete pBitmap7; + delete pBitmap8; + delete pBitmap9; + delete pBitmap10; + delete pBitmap11; + delete pBitmap12; + delete pBitmap13; + delete pBitmap14; + delete pBitmap15; + delete pBitmap16; + delete pBitmap17; + delete pBitmap18; + delete pBitmap19; + delete pBitmap20; + delete pBitmap21; + delete pBitmap22; + delete pBitmap23; + delete pBitmap24; + delete pBitmap25; + delete pBitmap26; + delete pBitmap27; + delete pBitmap28; + delete pBitmap29; + delete pBitmap30; + + __pAnimation = new (std::nothrow) Animation(); + __pAnimation->Construct(Rectangle(133, 247, 64, 64), *__pAnimationFrameList); + __pAnimation->SetRepeatCount(10); + __pAnimation->AddAnimationEventListener(*this); + + __pAniPlayButton = static_cast<Button*>(GetControl("IDC_BUTTON_PLAY", true)); + __pAniPauseButton = static_cast<Button*>(GetControl("IDC_BUTTON_PAUSE", true)); + __pAniStopButton = static_cast<Button*>(GetControl("IDC_BUTTON_STOP", true)); + + __pAniPlayButton->SetActionId(ID_BUTTON_ANIMATION_PLAY); + __pAniPauseButton->SetActionId(ID_BUTTON_ANIMATION_PAUSE); + __pAniStopButton->SetActionId(ID_BUTTON_ANIMATION_STOP); + + __pAniPlayButton->AddActionEventListener(*this); + __pAniPauseButton->AddActionEventListener(*this); + __pAniStopButton->AddActionEventListener(*this); + + __pAniPauseButton->SetEnabled(false); + __pAniStopButton->SetEnabled(false); + + pScrollPanel->AddControl(*__pAnimation); + AddControl(*pScrollPanel); + + return r; +} + +void +AnimationForm::OnActionPerformed(const Control& source, int actionId) +{ + switch(actionId) + { + case ID_BUTTON_ANIMATION_PLAY: + __pAniPlayButton->SetEnabled(false); + __pAniPauseButton->SetEnabled(true); + __pAniStopButton->SetEnabled(true); + __pAnimation->Play(); + break; + case ID_BUTTON_ANIMATION_PAUSE: + __pAniPlayButton->SetText("Resume"); + __pAniPlayButton->SetEnabled(true); + __pAnimation->Pause(); + break; + case ID_BUTTON_ANIMATION_STOP: + __pAniPlayButton->SetText("Play"); + __pAniPlayButton->SetEnabled(true); + __pAniPauseButton->SetEnabled(false); + __pAniStopButton->SetEnabled(false); + __pAnimation->Stop(); + break; + default: + break; + } + Invalidate(true); +} + +void +AnimationForm::OnAnimationStopped(const Control& source) +{ + __pAniPlayButton->SetEnabled(true); + __pAniPauseButton->SetEnabled(false); + __pAniStopButton->SetEnabled(false); + __pAniPlayButton->SetText("Play"); + Invalidate(true); +} + diff --git a/project/src/BaseForm.cpp b/project/src/BaseForm.cpp new file mode 100644 index 0000000..dbc003d --- /dev/null +++ b/project/src/BaseForm.cpp @@ -0,0 +1,71 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#include "BaseForm.h" + +using namespace Tizen::App; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Ui::Scenes; + +BaseForm::BaseForm(void) +{ +} + +BaseForm::~BaseForm(void) +{ +} + +bool +BaseForm::SetFooter(void) +{ + Footer* pFooter = GetFooter(); + pFooter->SetStyle(FOOTER_STYLE_SEGMENTED_TEXT); + pFooter->SetBackButton(); + return true; +} + +void +BaseForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_EXIT: + SceneManager* pSceneManager = SceneManager::GetInstance(); + AppAssert(pSceneManager); + pSceneManager->GoBackward(BackwardSceneTransition()); + break; + } +} + +result +BaseForm::OnInitializing(void) +{ + result r = E_SUCCESS; + + SetFormBackEventListener(this); + + return r; +} + +void +BaseForm::OnFormBackRequested(Form& source) +{ + SceneManager* pSceneManager = SceneManager::GetInstance(); + AppAssert(pSceneManager); + pSceneManager->GoBackward(BackwardSceneTransition()); +} diff --git a/project/src/ButtonForm.cpp b/project/src/ButtonForm.cpp new file mode 100644 index 0000000..ce18a03 --- /dev/null +++ b/project/src/ButtonForm.cpp @@ -0,0 +1,58 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "ButtonForm.h" + +using namespace Tizen::App; +using namespace Tizen::Base; +using namespace Tizen::Base::Collection; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Media; + + +ButtonForm::ButtonForm(void) +{ +} + +ButtonForm::~ButtonForm(void) +{ +} + +bool +ButtonForm::Initialize(void) +{ + Construct(L"IDF_FORM_BUTTON"); + return true; +} + +result +ButtonForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + Button* pButton = static_cast <Button*> (GetControl("IDC_BUTTON_DISABLE", true)); + pButton->SetEnabled(false); + + return r; +} + +void +ButtonForm::OnActionPerformed(const Control& source, int actionId) +{ +} diff --git a/project/src/CheckButtonForm.cpp b/project/src/CheckButtonForm.cpp new file mode 100644 index 0000000..a651f0a --- /dev/null +++ b/project/src/CheckButtonForm.cpp @@ -0,0 +1,53 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "CheckButtonForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +CheckButtonForm::CheckButtonForm(void) +{ +} + +CheckButtonForm::~CheckButtonForm(void) +{ +} + +bool +CheckButtonForm::Initialize(void) +{ + Construct(L"IDF_FORM_CHECKBUTTON"); + return true; +} + +result +CheckButtonForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + CheckButton* pCheckButton = static_cast <CheckButton*> (GetControl("IDC_CHECKBUTTON_DISABLE", true)); + pCheckButton->SetEnabled(false); + + return r; +} + +void +CheckButtonForm::OnActionPerformed(const Control& source, int actionId) +{ +} diff --git a/project/src/ColorPickerForm.cpp b/project/src/ColorPickerForm.cpp new file mode 100644 index 0000000..3e8d28d --- /dev/null +++ b/project/src/ColorPickerForm.cpp @@ -0,0 +1,60 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "ColorPickerForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +ColorPickerForm::ColorPickerForm() + : __pLabelColor(null) +{ +} + +ColorPickerForm::~ColorPickerForm() +{ +} + +bool +ColorPickerForm::Initialize(void) +{ + Construct(L"IDF_FORM_COLORPICKER"); + return true; +} + +result +ColorPickerForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + ColorPicker* pColorPicker = static_cast<ColorPicker*>(GetControl("IDC_COLORPICKER", true)); + pColorPicker->AddColorChangeEventListener(*this); + + __pLabelColor = static_cast<Label*>(GetControl("IDC_LABEL_COLOR", true)); + __pLabelColor->SetBackgroundColor(pColorPicker->GetColor()); + AddControl(*__pLabelColor); + + return r; +} + +void +ColorPickerForm::OnColorChanged(const Control& source, const Tizen::Graphics::Color& color) +{ + __pLabelColor->SetBackgroundColor(color); + __pLabelColor->Invalidate(false); +} diff --git a/project/src/CustomButton.cpp b/project/src/CustomButton.cpp new file mode 100644 index 0000000..4ffb17c --- /dev/null +++ b/project/src/CustomButton.cpp @@ -0,0 +1,360 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#include "CustomButton.h" + +using namespace Tizen::Base; +using namespace Tizen::Graphics; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; + +const Color BUTTON_NORMAL_BLACKGROUND_COLOR = Color(219, 219, 219, 255); +const Color BUTTON_NORMAL_FOREGROUND_COLOR = Color(0, 0, 0, 255); +const Color BUTTON_PRESSED_BLACKGROUND_COLOR = Color(57, 169, 251, 255); +const Color BUTTON_PRESSED_FOREGROUND_COLOR = Color(255, 255, 255, 255); +const Rectangle CUSTOM_CONTROL_SIZE = Rectangle(0, 0, 100, 100); + +const int CUSTOM_BUTTON_MIN_SIZE = 100; +const int CUSTOM_BUTTON_MAX_SIZE = 400; +const int BUTTON_STATE_NORMAL = 0; +const int BUTTON_STATE_PRESSED = 1; +const int BUTTON_STATE_MAX = 2; + +const int BUTTON_COLOR_BG_NORMAL = 0; +const int BUTTON_COLOR_FG_NORMAL = 1; +const int BUTTON_COLOR_BG_PRESSED = 2; +const int BUTTON_COLOR_FG_PRESSED = 3; +const int BUTTON_COLOR_MAX = 4; + +#define GetImpl(x) ((CustomButtonImpl*) (x)) + +class CustomButtonImpl : + public ITouchEventListener +{ +public: + CustomButtonImpl(void) + { + _pButton = null; + _pListener = null; + _state = BUTTON_STATE_NORMAL; + } + + bool Construct(CustomButton* pButton) + { + if (pButton != null) + { + _pButton = pButton; + + _pallete[BUTTON_COLOR_BG_NORMAL] = BUTTON_NORMAL_BLACKGROUND_COLOR; + _pallete[BUTTON_COLOR_FG_NORMAL] = BUTTON_NORMAL_FOREGROUND_COLOR; + _pallete[BUTTON_COLOR_BG_PRESSED] = BUTTON_PRESSED_BLACKGROUND_COLOR; + _pallete[BUTTON_COLOR_FG_PRESSED] = BUTTON_PRESSED_FOREGROUND_COLOR; + + _bounds = _pButton->GetBounds(); + + return true; + } + return false; + } + + virtual ~CustomButtonImpl(void) + { + } + +public: + int GetState(void) const + { + return _state; + } + + void SetState(int newState) + { + _state = newState; + } + + + IClickListener* GetClickListener(void) const + { + return _pListener; + } + + + void SetClickListener(const IClickListener* pListener) + { + _pListener = const_cast<IClickListener*>(pListener); + } + + virtual void OnTouchCanceled(const Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo) + { + if (GetState() == BUTTON_STATE_PRESSED) + { + SetState(BUTTON_STATE_NORMAL); + _pButton->Invalidate(false); + } + } + + virtual void OnTouchDoublePressed (const Control& source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + } + + virtual void OnTouchFocusIn (const Control &source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + } + + virtual void OnTouchFocusOut (const Control &source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + } + + virtual void OnTouchLongPressed (const Control &source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + } + + virtual void OnTouchMoved (const Control &source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + } + + virtual void OnTouchPressed(const Control &source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + if (GetState() == BUTTON_STATE_NORMAL) + { + SetState(BUTTON_STATE_PRESSED); + _pButton->Invalidate(false); + } + } + + virtual void OnTouchReleased(const Control &source, const Point ¤tPosition, const TouchEventInfo &touchInfo) + { + if (GetState() == BUTTON_STATE_PRESSED) + { + SetState(BUTTON_STATE_NORMAL); + _pButton->Invalidate(false); + + if (_pListener) + { + _pListener->OnClicked(*_pButton); + } + } + } + + virtual result DrawButton(Canvas& canvas) + { + canvas.SetBackgroundColor(Color(0, 0, 0, 0)); + canvas.Clear(); + + if (_state == BUTTON_STATE_NORMAL) + { + canvas.FillRoundRectangle(_pallete[BUTTON_COLOR_BG_NORMAL], Rectangle(0, 0 , _bounds.width, _bounds.height), Dimension(5, 5)); + } + else + { + canvas.FillRoundRectangle(_pallete[BUTTON_COLOR_BG_PRESSED], Rectangle(0, 0 , _bounds.width, _bounds.height), Dimension(5, 5)); + } + + Font font; + font.Construct(FONT_STYLE_PLAIN, 18); + canvas.SetFont(font); + + if (_text != L"") + { + EnrichedText enriched; + enriched.Construct(Dimension(_bounds.width, _bounds.height)); + enriched.SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE); + enriched.SetHorizontalAlignment(TEXT_ALIGNMENT_CENTER); + + TextElement element; + element.Construct(_text); + if (_state == BUTTON_STATE_NORMAL) + { + element.SetTextColor(_pallete[BUTTON_COLOR_FG_NORMAL]); + } + else + { + element.SetTextColor(_pallete[BUTTON_COLOR_FG_PRESSED]); + } + enriched.Add(element); + canvas.DrawText(Point(0, 0), enriched); + enriched.RemoveAll(false); + } + + return E_SUCCESS; + } + + + String GetText(void) const + { + return _text; + } + + void SetText(const String& text) + { + _text = text; + } + +protected: + CustomButton* _pButton; + IClickListener* _pListener; + int _state; + String _text; + Rectangle _bounds; + Color _pallete[BUTTON_COLOR_MAX]; +}; // CustomButtonImpl + +CustomButton::CustomButton(void) +{ + +} + +CustomButton::~CustomButton(void) +{ + CleanUp(); +} + +bool +CustomButton::Construct(const Rectangle& rect) +{ + result r = E_SUCCESS; + // construct base class + + if (rect.width < CUSTOM_BUTTON_MIN_SIZE || rect.width > CUSTOM_BUTTON_MAX_SIZE) + { + return false; + } + + if (rect.height < CUSTOM_BUTTON_MIN_SIZE || rect.height > CUSTOM_BUTTON_MAX_SIZE) + { + return false; + } + + r = Container::Construct(CUSTOM_CONTROL_SIZE, true, true); + + if (r != E_SUCCESS) + { + return false; + } + + SetMinimumSize(Dimension(CUSTOM_BUTTON_MIN_SIZE,CUSTOM_BUTTON_MIN_SIZE)); + SetMaximumSize(Dimension(CUSTOM_BUTTON_MAX_SIZE,CUSTOM_BUTTON_MAX_SIZE)); + + SetBounds(rect); + + CustomButtonImpl* pImpl = new (std::nothrow) CustomButtonImpl; + if (pImpl == null) + { + return false; + } + + if (!pImpl->Construct(this)) + { + delete pImpl; + return false; + } + + SetDefaultTouchEventListener(pImpl); + _pImpl = (void*) pImpl; + + return true; +} + +void +CustomButton::CleanUp(void) +{ + if (_pImpl) + { + SetDefaultTouchEventListener(null); + delete GetImpl(_pImpl); + _pImpl = null; + } +} + +void +CustomButton::SetClickListener(const IClickListener* pListener) +{ + if (_pImpl) + { + GetImpl(_pImpl)->SetClickListener(pListener); + } +} + +void +CustomButton::SetText(const String& text) +{ + if (_pImpl) + { + GetImpl(_pImpl)->SetText(text); + } +} + +String +CustomButton::GetText(void) const +{ + if (_pImpl) + { + return GetImpl(_pImpl)->GetText(); + } + return String(L""); +} + + + +void +CustomButton::OnEvaluateSize(Dimension &evaluatedSize) +{ + if (evaluatedSize.width < CUSTOM_BUTTON_MIN_SIZE) + { + evaluatedSize.width = CUSTOM_BUTTON_MIN_SIZE; + } + if (evaluatedSize.width > CUSTOM_BUTTON_MAX_SIZE) + { + evaluatedSize.width = CUSTOM_BUTTON_MAX_SIZE; + } + + if (evaluatedSize.height < CUSTOM_BUTTON_MIN_SIZE) + { + evaluatedSize.height = CUSTOM_BUTTON_MIN_SIZE; + } + if (evaluatedSize.height > CUSTOM_BUTTON_MAX_SIZE) + { + evaluatedSize.height = CUSTOM_BUTTON_MAX_SIZE; + } +} + +result +CustomButton::OnBoundsChanging(const Rectangle& oldRect, const Rectangle& newRect) +{ + return E_SUCCESS; +} + +void +CustomButton::OnBoundsChanged(const Rectangle& oldRect, const Rectangle& newRect) +{ +} + +result +CustomButton::OnDraw(void) +{ + result r; + if (_pImpl) + { + Canvas* pCanvas = GetCanvasN(); + if (pCanvas) + { + r = GetImpl(_pImpl)->DrawButton(*pCanvas); + delete pCanvas; + } + } + return r; +} diff --git a/project/src/CustomButtonForm.cpp b/project/src/CustomButtonForm.cpp new file mode 100644 index 0000000..f42c62a --- /dev/null +++ b/project/src/CustomButtonForm.cpp @@ -0,0 +1,62 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "CustomButtonForm.h" +#include "CustomButton.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Uix::Sensor; + +const int LABEL_HEIGHT = 100; + +CustomButtonForm::CustomButtonForm(void) +{ +} + +CustomButtonForm::~CustomButtonForm(void) +{ +} + +bool +CustomButtonForm::Initialize(void) +{ + Construct(L"IDF_FORM_CUSTOMBUTTON"); + return true; +} + +result +CustomButtonForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + CustomButton* pButton = new (std::nothrow) CustomButton; + pButton->Construct(Rectangle(210, 200, 300, 300)); + pButton->SetText(L"MyButton"); + AddControl(*pButton); + + pButton->SetClickListener(this); + + return r; +} + +void +CustomButtonForm::OnClicked(CustomButton& source) +{ + Invalidate(true); +} diff --git a/project/src/DateTimeForm.cpp b/project/src/DateTimeForm.cpp new file mode 100644 index 0000000..c143f5d --- /dev/null +++ b/project/src/DateTimeForm.cpp @@ -0,0 +1,232 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "DateTimeForm.h" +#include <FLocales.h> +#include <FSystem.h> + +using namespace Tizen::Base; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Locales; +using namespace Tizen::System; + +const int LABEL_HEIGHT = 100; + +DateTimeForm::DateTimeForm(void) + : __pDateTimePicker(null) + , __pDatePicker(null) + , __pTimePicker(null) + , __pEditDate(null) + , __pEditDateDisable(null) + , __pEditDateNotitle(null) + , __pEditTime(null) + , __pEditTimeDisable(null) + , __pEditTimeNotitle(null) +{ +} + +DateTimeForm::~DateTimeForm(void) +{ +} + +bool +DateTimeForm::Initialize(void) +{ + Construct(L"IDF_FORM_DATETIME"); + + return true; +} + +result +DateTimeForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + __pEditDateDisable = static_cast<EditDate*>(GetControl("IDC_EDITDATE_DISABLE", true)); + __pEditDateDisable->SetCurrentDate(); + __pEditDateDisable->SetEnabled(false); + __pEditDateDisable->AddDateChangeEventListener(*this); + + __pEditDate = static_cast<EditDate*>(GetControl("IDC_EDITDATE", true)); + __pEditDate->SetCurrentDate(); + __pEditDate->AddDateChangeEventListener(*this); + + __pEditDateNotitle = static_cast<EditDate*>(GetControl("IDC_EDITDATE_NO_TITLE", true)); + __pEditDateNotitle->SetCurrentDate(); + __pEditDateNotitle->AddDateChangeEventListener(*this); + + __pEditTimeDisable = static_cast<EditTime*>(GetControl("IDC_EDITTIME_DISABLE", true)); + __pEditTimeDisable->SetCurrentTime(); + __pEditTimeDisable->SetEnabled(false); + __pEditTimeDisable->AddTimeChangeEventListener(*this); + + __pEditTime = static_cast<EditTime*>(GetControl("IDC_EDITTIME", true)); + __pEditTime->SetCurrentTime(); + __pEditTime->AddTimeChangeEventListener(*this); + + __pEditTimeNotitle = static_cast<EditTime*>(GetControl("IDC_EDITTIME_NO_TITLE", true)); + __pEditTimeNotitle->SetCurrentTime(); + __pEditTimeNotitle->AddTimeChangeEventListener(*this); + + __pDateTimePicker = new (std::nothrow) DateTimePicker(); + __pDateTimePicker->Construct(); + __pDateTimePicker->AddDateTimeChangeEventListener(*this); + + __pDatePicker = new (std::nothrow) DatePicker(); + __pDatePicker->Construct(); + __pDatePicker->AddDateChangeEventListener(*this); + + __pTimePicker = new (std::nothrow) TimePicker(); + __pTimePicker->Construct(); + __pTimePicker->AddTimeChangeEventListener(*this); + + Button* pButtonDatePicker = static_cast<Button*>(GetControl("IDC_BUTTON_DATEPICKER", true)); + if(pButtonDatePicker) + { + pButtonDatePicker->SetActionId(ID_BUTTON_DATE_ON); + pButtonDatePicker->AddActionEventListener(*this); + } + Button* pButtonTimePicker = static_cast<Button*>(GetControl("IDC_BUTTON_TIMEPICKER", true)); + if(pButtonTimePicker) + { + pButtonTimePicker->SetActionId(ID_BUTTON_TIME_ON); + pButtonTimePicker->AddActionEventListener(*this); + } + Button* pButtonDateTimePicker = static_cast<Button*>(GetControl("IDC_BUTTON_DATETIMEPICKER", true)); + if(pButtonDateTimePicker) + { + pButtonDateTimePicker->SetActionId(ID_BUTTON_DATETIME_ON); + pButtonDateTimePicker->AddActionEventListener(*this); + } + return r; +} + +result +DateTimeForm::OnTerminating(void) +{ + result r = E_SUCCESS; + delete __pDateTimePicker; + delete __pDatePicker; + delete __pTimePicker; + + return r; +} + + void +DateTimeForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_BUTTON_DATE_ON: + __pDatePicker->Show(); + break; + case ID_BUTTON_TIME_ON: + __pTimePicker->Show(); + break; + case ID_BUTTON_DATETIME_ON: + __pDateTimePicker->Show(); + break; + default: + break; + } +} + +void +DateTimeForm::OnDateTimeChanged(const Control &source, int year, int month, int day, int hour, int minute) +{ + String formattedString; + DateTime datetime; + Locale locale(LANGUAGE_ENG, COUNTRY_GB); + + if (__pDateTimePicker) + { + datetime = __pDateTimePicker->GetDateTime(); + __pEditDate->SetDate(datetime); + __pEditDateNotitle->SetDate(datetime); + __pEditDateDisable->SetDate(datetime); + __pEditTime->SetTime(datetime); + __pEditTimeNotitle->SetTime(datetime); + __pEditTimeDisable->SetTime(datetime); + } + Invalidate(true); +} + +void +DateTimeForm::OnDateTimeChangeCanceled(const Control &source) +{ + +} + +void +DateTimeForm::OnDateChanged(const Control& source, int year, int month, int day) +{ + String formattedString; + DateTime date; + Locale locale(LANGUAGE_ENG, COUNTRY_GB); + + if(__pDatePicker == &source) + { + date = __pDatePicker->GetDate(); + __pEditDate->SetDate(date); + __pEditDateNotitle->SetDate(date); + __pEditDateDisable->SetDate(date); + } + else + { + date = __pEditDate->GetDate(); + __pDatePicker->SetDate(date); + } + + Invalidate(true); +} + +void +DateTimeForm::OnDateChangeCanceled(const Control& source) +{ +} +void +DateTimeForm::OnTimeChanged(const Control& source, int hour, int minute) +{ + String formattedString; + DateTime time; + Locale locale(LANGUAGE_ENG, COUNTRY_GB); + + if(__pTimePicker == &source) + { + time = __pTimePicker->GetTime(); + __pEditTime->SetTime(time); + __pEditTimeNotitle->SetTime(time); + __pEditTimeDisable->SetTime(time); + } + else + { + time = __pEditTime->GetTime(); + __pTimePicker->SetTime(time); + } + + Invalidate(true); +} + +void +DateTimeForm::OnTimeChangeCanceled(const Control& source) +{ + +} + + diff --git a/project/src/EditForm.cpp b/project/src/EditForm.cpp new file mode 100644 index 0000000..387ad7c --- /dev/null +++ b/project/src/EditForm.cpp @@ -0,0 +1,119 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "EditForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Base; +using namespace Tizen::Graphics; + +const int LABEL_HEIGHT = 60; + +EditForm::EditForm(void) + : __pEditArea(null) + , __pEditField(null) + , __pEditFieldDisable(null) +{ +} + +EditForm::~EditForm(void) +{ +} + +bool +EditForm::Initialize(void) +{ + Construct(L"IDF_FORM_EDIT"); + return true; +} + +result +EditForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + + Button* pButtonOk = static_cast<Button*>(GetControl(L"IDC_BUTTON_CLEAR2", true)); + if(pButtonOk) + { + pButtonOk->SetActionId(ID_BUTTON_OK); + pButtonOk->AddActionEventListener(*this); + } + Button* pButtonClear = static_cast<Button*>(GetControl(L"IDC_BUTTON_CLEAR", true)); + if(pButtonClear) + { + pButtonClear->SetActionId(ID_BUTTON_CLEAR); + pButtonClear->AddActionEventListener(*this); + } + __pEditArea = static_cast<EditArea*>(GetControl(L"IDC_EDITAREA", true)); + if(__pEditArea) + { + __pEditArea->AddTextEventListener(*this); + } + __pEditField = static_cast<EditField*>(GetControl(L"IDC_EDITFIELD", true)); + if(__pEditField) + { + __pEditField->AddTextEventListener(*this); + } + + __pEditFieldDisable = static_cast<EditField*>(GetControl(L"IDC_EDITFIELD_DISABLE", true)); + __pEditFieldDisable->SetEnabled(false); + + return r; +} + + +// How to make ActionListener. +void +EditForm::OnActionPerformed(const Control& source, int actionId) +{ + String editText(__pEditArea->GetText()); + String tempText(__pEditField->GetText()); + + switch (actionId) + { + case ID_BUTTON_OK: + editText.Append(tempText); + __pEditField->Clear(); + break; + case ID_BUTTON_CLEAR: + __pEditArea->Clear(); + break; + case ID_EXIT: + BaseForm::OnActionPerformed(source, actionId); + break; + default: + break; + } + + __pEditArea->Invalidate(false); + __pEditField->Invalidate(false); + BaseForm::OnActionPerformed(source, actionId); +} + +void +EditForm::OnTextValueChanged(const Control& source) +{ + SetFocus(); +} + +void +EditForm::OnTextValueChangeCanceled(const Control& source) +{ + SetFocus(); +} diff --git a/project/src/EnrichedTextForm.cpp b/project/src/EnrichedTextForm.cpp new file mode 100644 index 0000000..02b23d0 --- /dev/null +++ b/project/src/EnrichedTextForm.cpp @@ -0,0 +1,330 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "EnrichedTextForm.h" + +using namespace Tizen::App; +using namespace Tizen::Base; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +const int ROTATION_INITIALIZE_INDEX = -1; +const int ROTATION_INDEX_MAX_1 = 1; +const int ROTATION_INDEX_MAX_2 = 2; +const int ITEM_COUNT = 11; + +EnrichedTextForm::EnrichedTextForm(void) + : __pEnrichedText(null) + , __pTextElement1(null) + , __pTextElement2(null) + , __pTextElement3(null) + , __pLabelText(null) + , __vertialCount(0) + , __horizontalCount(0) + , __wrapCount(0) + , __abbriviationCount(0) +{ +} + +EnrichedTextForm::~EnrichedTextForm(void) +{ + delete __pTextElement1; + delete __pEnrichedText; + delete __pTextElement2; + delete __pTextElement3; +} + +bool +EnrichedTextForm::Initialize() +{ + Construct(L"IDF_FORM_ENRICHEDTEXT"); + return true; +} + +result +EnrichedTextForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + ButtonItem buttonLeftItem; + buttonLeftItem.Construct(BUTTON_ITEM_STYLE_TEXT, ID_EXIT); + buttonLeftItem.SetText(L"Back"); + + Rectangle rect(20, 200, 680, 360); + __pEnrichedText = new (std::nothrow) EnrichedText(); + __pEnrichedText->Construct(Dimension(rect.width, rect.height)); + __pEnrichedText->SetVerticalAlignment(TEXT_ALIGNMENT_TOP); + __pEnrichedText->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT); + __pEnrichedText->SetTextWrapStyle(TEXT_WRAP_NONE); + __pEnrichedText->SetTextAbbreviationEnabled(true); + + Font* pFont = new (std::nothrow) Font(); + pFont->Construct(FONT_STYLE_PLAIN, 35); + + Font* pFontItalic = new (std::nothrow) Font(); + pFontItalic->Construct(FONT_STYLE_ITALIC, 30); + + Bitmap* pBitmap = App::GetInstance()->GetAppResource()->GetBitmapN(L"home_type3.png"); + if (pBitmap) + { + pBitmap->Scale(Dimension(50, 50)); + } + + __pTextElement1 = new (std::nothrow) TextElement(); + __pTextElement2 = new (std::nothrow) TextElement(); + __pTextElement3 = new (std::nothrow) TextElement(); + + __pTextElement1->Construct(L"Tizen is a new open platform that enables richer user experience"); + __pTextElement2->Construct(L"in applications on mobile devices."); + __pTextElement3->Construct(L"Tizen API Reference provides of all the powerful features. Tizen is a new open platform that enables richer user experience in applications on mobile devices"); + + __pTextElement1->SetTextColor(Color::GetColor(COLOR_ID_YELLOW)); + + __pTextElement2->SetTextColor(Color::GetColor(COLOR_ID_BLUE)); + __pTextElement2->SetFont(*pFont); + + __pTextElement3->SetTextColor(Color::GetColor(COLOR_ID_VIOLET)); + __pTextElement3->SetFont(*pFontItalic); + + __pEnrichedText->Add(*__pTextElement1); + __pEnrichedText->Add(*__pTextElement2); + __pEnrichedText->Add(*pBitmap); + __pEnrichedText->Add(*__pTextElement3); + + __pEnrichedText->Refresh(); + + ListView* pListview = static_cast<ListView*>(GetControl("IDC_LISTVIEW", true)); + if(pListview) + { + pListview->SetBounds(0, GetClientAreaBounds().height/2, GetClientAreaBounds().width, GetClientAreaBounds().height/2); + pListview->AddListViewItemEventListener(*this); + pListview->SetItemProvider(*this); + } + + delete pFont; + delete pFontItalic; + delete pBitmap; + + return r; +} + +result +EnrichedTextForm::OnTerminating(void) +{ + result r = E_SUCCESS; + return r; +} + +void +EnrichedTextForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId) +{ +} + +result +EnrichedTextForm::OnDraw(void) +{ + result r = E_SUCCESS; + + Rectangle rect1(45, 250, 630, 313); + + Canvas* pCanvas = GetCanvasN(); + + if (pCanvas) + { + pCanvas->Clear(); + pCanvas->SetLineWidth(3); + pCanvas->FillRectangle(Color::GetColor(COLOR_ID_GREY), Rectangle(rect1)); + } + + if (__pEnrichedText->GetTextLength() != 0) + { + __pEnrichedText->SetSize(rect1.width, rect1.height); + pCanvas->DrawText(Point(rect1.x, rect1.y), *__pEnrichedText); + } + + delete pCanvas; + + return r; +} + +void +EnrichedTextForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus status) +{ + // TODO: + // Add your scene deactivate code here + AppLog("OnSceneDeactivated"); + +} + +void +EnrichedTextForm::OnListViewItemLongPressed(ListView& listView, int index, int elementId, bool& invokeListViewItemCallback) +{ + // TODO: + // Add your scene deactivate code here + AppLog("OnSceneDeactivated"); + +} + +void +EnrichedTextForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status) +{ + // TODO: + // Add your scene deactivate code here + AppLog("OnSceneDeactivated"); + switch (index) + { + case 0: + { + __pEnrichedText->SetTextWrapStyle(TEXT_WRAP_NONE); + __pEnrichedText->Refresh(); + break; + } + case 1: + { + __pEnrichedText->SetTextWrapStyle(TEXT_WRAP_WORD_WRAP); + break; + } + case 2: + { + __pEnrichedText->SetTextWrapStyle(TEXT_WRAP_CHARACTER_WRAP); + break; + } + case 3: + { + __pEnrichedText->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT); + break; + } + case 4: + { + __pEnrichedText->SetHorizontalAlignment(TEXT_ALIGNMENT_CENTER); + break; + } + case 5: + { + __pEnrichedText->SetHorizontalAlignment(TEXT_ALIGNMENT_RIGHT); + break; + } + case 6: + { + __pEnrichedText->SetVerticalAlignment(TEXT_ALIGNMENT_TOP); + break; + } + case 7: + { + __pEnrichedText->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE); + break; + } + case 8: + { + __pEnrichedText->SetVerticalAlignment(TEXT_ALIGNMENT_BOTTOM); + break; + } + case 9: + { + __pEnrichedText->SetTextAbbreviationEnabled(true); + break; + } + case 10: + { + __pEnrichedText->SetTextAbbreviationEnabled(false); + break; + } + default: + break; + } + Invalidate(true); +} + +void +EnrichedTextForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction) +{ + // TODO: + // Add your scene deactivate code here + AppLog("OnSceneDeactivated"); + +} + +Controls::ListItemBase * +EnrichedTextForm::CreateItem(int index, int itemWidth) +{ + // TODO: Add your implementation codes here + ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL; + CustomItem* pItem = new (std::nothrow) CustomItem(); + pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 112), style); + Rectangle mainListItemRect(26, 32, GetClientAreaBounds().width, 50); + + switch(index) + { + case 0: + pItem->AddElement(mainListItemRect, TEXT_WRAP_NONE_INDEX, L"Text Wrap None", true); + break; + case 1: + pItem->AddElement(mainListItemRect, TEXT_WRAP_WORD_WRAP_INDEX, L"Text Wrap Word", true); + break; + case 2: + pItem->AddElement(mainListItemRect, TEXT_WRAP_CHARACTER_WRAP_INDEX, L"Text Wrap Character Wrap", true); + break; + case 3: + pItem->AddElement(mainListItemRect, TEXT_ALIGNMENT_LEFT_INDEX, L"Text Alignment Left", true); + break; + case 4: + pItem->AddElement(mainListItemRect, TEXT_ALIGNMENT_CENTER_INDEX, L"Text Alignment Center", true); + break; + case 5: + pItem->AddElement(mainListItemRect, TEXT_ALIGNMENT_RIGHT_INDEX, L"Text Alignment Right", true); + break; + case 6: + pItem->AddElement(mainListItemRect, TEXT_ALIGNMENT_TOP_INDEX, L"Text Alignment Top", true); + break; + case 7: + pItem->AddElement(mainListItemRect, TEXT_ALIGNMENT_MIDDLE_INDEX, L"Text Alignment Middle", true); + break; + case 8: + pItem->AddElement(mainListItemRect, TEXT_ALIGNMENT_BOTTOM_INDEX, L"Text Alignment Bottom", true); + break; + case 9: + pItem->AddElement(mainListItemRect, ABBREVIATION_ENABLED_TRUE, L"Abbreviation Enabled", true); + break; + case 10: + pItem->AddElement(mainListItemRect, ABBREVIATION_ENABLED_FALSE, L"Abbreviation Disabled", true); + break; + default: + break; + } + return pItem; + +} + +bool +EnrichedTextForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth) +{ + // TODO: Add your implementation codes here + delete pItem; + pItem = null; + return true; + +} + +int +EnrichedTextForm::GetItemCount(void) +{ + // TODO: Add your implementation codes here + + return ITEM_COUNT; + +} diff --git a/project/src/ExpandableEditAreaForm.cpp b/project/src/ExpandableEditAreaForm.cpp new file mode 100644 index 0000000..730200d --- /dev/null +++ b/project/src/ExpandableEditAreaForm.cpp @@ -0,0 +1,207 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "ExpandableEditAreaForm.h" + +using namespace Tizen::Base; +using namespace Tizen::Base::Utility; +using namespace Tizen::Graphics; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; + +const int EXPANDABLE_LINE_MAX = 3; + +ExpandableEditAreaForm::ExpandableEditAreaForm(void) + : __pExpandableEdit(null) + , __pPanel(null) + , __pLabel(null) +{ +} + +ExpandableEditAreaForm::~ExpandableEditAreaForm(void) +{ +} + +bool +ExpandableEditAreaForm::Initialize(void) +{ + Construct(L"IDF_FORM_EXPANDABLEEDITAREA"); + return true; +} + +result +ExpandableEditAreaForm::OnInitializing(void) +{ + result r = E_SUCCESS; + LayoutHeader(); + LayoutContent(); + return r; +} + +result +ExpandableEditAreaForm::OnTerminating(void) +{ + result r = E_SUCCESS; + return r; +} + +void +ExpandableEditAreaForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_FOOTER_BUTTON_BACK: + BaseForm::OnActionPerformed(source, actionId); + break; + case ID_HEADER_BUTTON_SEND: + { + String log(L""); + log = __pExpandableEdit->GetText(); + if (log.CompareTo(L"") != 0) + { + __pLabel->SetText(log); + __pExpandableEdit->SetText(L""); + __pExpandableEdit->SetEnabled(true); + __pExpandableEdit->SetKeypadEnabled(true); + __pExpandableEdit->HideKeypad(); + + Rectangle clientArea = GetClientAreaBounds(); + __pPanel->SetSize(clientArea.width, PANEL_HEIGHT); + __pPanel->SetPosition(0, clientArea.height - PANEL_HEIGHT); + __pExpandableEdit->SetSize(clientArea.width - EXPANDABLEEDITAREA_RIGHT_MARGIN, EXPANDABLEEDITAREA_HEIGHT); + __prevBounds = Rectangle(15, 15, clientArea.width - EXPANDABLEEDITAREA_RIGHT_MARGIN, EXPANDABLEEDITAREA_HEIGHT); + __pLabel->SetSize(clientArea.width - LEFT_MARGIN - RIGHT_MARGIN, clientArea.height - PANEL_HEIGHT - TOP_MARGIN - BOTTOM_MARGIN); + } + Invalidate(true); + } + break; + default: + break; + } +} + +void +ExpandableEditAreaForm::LayoutHeader(void) +{ + + Header* pHeader = GetHeader(); + pHeader->AddActionEventListener(*this); +} + +void +ExpandableEditAreaForm::LayoutContent(void) +{ + Rectangle clientArea = GetClientAreaBounds(); + + __pPanel = new (std::nothrow) Panel(); + __pPanel->Construct(Rectangle(0, clientArea.height - PANEL_HEIGHT, clientArea.width, PANEL_HEIGHT)); + __pPanel->SetBackgroundColor(Color(108, 108, 108)); + AddControl(*__pPanel); + + __pLabel = new (std::nothrow) Label(); + __pLabel->Construct(Rectangle(LEFT_MARGIN, RIGHT_MARGIN, clientArea.width - LEFT_MARGIN - RIGHT_MARGIN, clientArea.height - PANEL_HEIGHT), L""); + __pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT); + __pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP); + __pLabel->SetText(L"Message"); + AddControl(*__pLabel); + + Button* pButton = new (std::nothrow) Button(); + pButton->Construct(Rectangle(clientArea.width - 147, 15, 129, 90)); + pButton->SetText(L"Send"); + pButton->SetActionId(ID_HEADER_BUTTON_SEND); + pButton->AddActionEventListener(*this); + __pPanel->AddControl(*pButton); + + __pExpandableEdit = new (std::nothrow) ExpandableEditArea(); + __prevBounds = Rectangle(15, 15, clientArea.width - EXPANDABLEEDITAREA_RIGHT_MARGIN, EXPANDABLEEDITAREA_HEIGHT); + __pExpandableEdit->Construct(__prevBounds, EXPANDABLE_EDIT_AREA_STYLE_NORMAL, EXPANDABLE_EDIT_AREA_TITLE_STYLE_NONE, EXPANDABLE_LINE_MAX); + __pExpandableEdit->SetMargin(EDIT_MARGIN_TYPE_VERTICAL,20); + __pExpandableEdit->AddKeypadEventListener(*this); + __pExpandableEdit->AddExpandableEditAreaEventListener(*this); + __pPanel->AddControl(*__pExpandableEdit); + __pExpandableEdit->SetFocus(); + __pExpandableEdit->ShowKeypad(); +} + + +void +ExpandableEditAreaForm::OnKeypadActionPerformed(Control& source, KeypadAction keypadAction) +{ +} + +void +ExpandableEditAreaForm::OnKeypadClosed(Control& source) +{ + Rectangle clientArea = GetClientAreaBounds(); + Rectangle prePanelBounds = __pPanel->GetBounds(); + __pLabel->SetSize(clientArea.width - LEFT_MARGIN - RIGHT_MARGIN, clientArea.height - __pPanel->GetBounds().height - TOP_MARGIN - BOTTOM_MARGIN); + __pPanel->SetPosition(prePanelBounds.x, clientArea.height - prePanelBounds.height); + Invalidate(true); +} + +void +ExpandableEditAreaForm::OnKeypadOpened(Control& source) +{ + Rectangle clientArea = GetClientAreaBounds(); + Rectangle prePanelBounds = __pPanel->GetBounds(); + __pLabel->SetSize(clientArea.width - LEFT_MARGIN - RIGHT_MARGIN, clientArea.height - __pPanel->GetBounds().height - TOP_MARGIN - BOTTOM_MARGIN); + __pPanel->SetPosition(prePanelBounds.x, clientArea.height - prePanelBounds.height); + Invalidate(true); +} + +void +ExpandableEditAreaForm::OnKeypadWillOpen(Control& source) +{ +} +void +ExpandableEditAreaForm::OnKeypadBoundsChanged(Control& source) +{ + Rectangle clientArea = GetClientAreaBounds(); + Rectangle prePanelBounds = __pPanel->GetBounds(); + __pLabel->SetSize(clientArea.width - LEFT_MARGIN - RIGHT_MARGIN, clientArea.height - __pPanel->GetBounds().height - TOP_MARGIN - BOTTOM_MARGIN); + __pPanel->SetPosition(prePanelBounds.x, clientArea.height - prePanelBounds.height); + Invalidate(true); +} + +void +ExpandableEditAreaForm::OnExpandableEditAreaLineAdded(ExpandableEditArea& source, int newLineCount) +{ + Rectangle newBounds = __pExpandableEdit->GetBounds(); + Rectangle prePanelBounds = __pPanel->GetBounds(); + __pPanel->SetBounds(Rectangle(prePanelBounds.x, prePanelBounds.y - (newBounds.height - __prevBounds.height), prePanelBounds.width, + prePanelBounds.height + (newBounds.height - __prevBounds.height))); + __prevBounds = __pExpandableEdit->GetBounds(); + + Rectangle labelArea = GetClientAreaBounds(); + prePanelBounds = __pPanel->GetBounds(); + __pLabel->SetSize(labelArea.width - LEFT_MARGIN - RIGHT_MARGIN, labelArea.height - prePanelBounds.height - TOP_MARGIN - BOTTOM_MARGIN ); + Invalidate(true); +} + +void +ExpandableEditAreaForm::OnExpandableEditAreaLineRemoved(ExpandableEditArea& source, int newLineCount) +{ + Rectangle newBounds = __pExpandableEdit->GetBounds(); + Rectangle prePanelBounds = __pPanel->GetBounds(); + __pPanel->SetBounds(Rectangle(prePanelBounds.x, prePanelBounds.y + (__prevBounds.height - newBounds.height), prePanelBounds.width, + prePanelBounds.height - (__prevBounds.height - newBounds.height))); + __prevBounds = __pExpandableEdit->GetBounds(); + + Rectangle labelArea = GetClientAreaBounds(); + prePanelBounds = __pPanel->GetBounds(); + __pLabel->SetSize(labelArea.width - LEFT_MARGIN - RIGHT_MARGIN, labelArea.height - prePanelBounds.height - TOP_MARGIN - BOTTOM_MARGIN ); + Invalidate(true); +} diff --git a/project/src/FormFactory.cpp b/project/src/FormFactory.cpp new file mode 100644 index 0000000..8441d40 --- /dev/null +++ b/project/src/FormFactory.cpp @@ -0,0 +1,259 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#include <new> +#include "FormFactory.h" +#include "AnimationForm.h" +#include "ButtonForm.h" +#include "CheckButtonForm.h" +#include "ColorPickerForm.h" +#include "EditForm.h" +#include "MainForm.h" +#include "MenuForm.h" +#include "MsgBoxPopupForm.h" +#include "OverlayKeypadForm.h" +#include "PanelForm.h" +#include "ProgressForm.h" +#include "SliderForm.h" +#include "NavigationForm.h" +#include "DateTimeForm.h" +#include "ListViewForm.h" +#include "GroupedListViewForm.h" +#include "IconListViewForm.h" +#include "SearchBarForm.h" +#include "EnrichedTextForm.h" +#include "ExpandableEditAreaForm.h" +#include "GalleryForm.h" +#include "TextBoxForm.h" +#include "CustomButtonForm.h" +#include "SplitPanelForm.h" +#include "TableViewForm.h" +#include "TabBarForm.h" +#include "QuickPanelFrameForm.h" + +using namespace Tizen::Ui::Scenes; + + +// Definitions of extern. +const wchar_t* FORM_ANIMATION = L"Form_Animation"; +const wchar_t* FORM_BUTTON = L"Form_Button"; +const wchar_t* FORM_CHECK_BUTTON = L"Form_CheckButton"; +const wchar_t* FORM_COLOR_PICKER = L"Form_ColorPicker"; +const wchar_t* FORM_CUSTOM_BUTTON = L"Form_CustomButton"; +const wchar_t* FORM_TABBAR = L"Form_TabBar"; +const wchar_t* FORM_DATE_TIME = L"Form_DateTime"; +const wchar_t* FORM_EDIT = L"Form_Edit"; +const wchar_t* FORM_ENRICHED_TEXT = L"Form_EnrichedText"; +const wchar_t* FORM_EXPANDABLE_EDIT_AREA = L"Form_ExpandableEditArea"; +const wchar_t* FORM_GALLERY = L"Form_Gallery"; +const wchar_t* FORM_GROUPED_LISTVIEW = L"Form_GroupedListView"; +const wchar_t* FORM_ICON_LISTVIEW = L"Form_IconListView"; +const wchar_t* FORM_LISTVIEW = L"Form_ListView"; +const wchar_t* FORM_MAIN = L"Form_Main"; +const wchar_t* FORM_MENU = L"Form_Menu"; +const wchar_t* FORM_MSG_BOX_POPUP = L"Form_MsgBox"; +const wchar_t* FORM_NAVIGATION = L"Form_Navigation"; +const wchar_t* FORM_QUICK_PANEL_FRAME = L"Form_QuickPanelFrame"; +const wchar_t* FORM_OVERLAYKEYPAD = L"Form_OverlayKeypad"; +const wchar_t* FORM_PANEL = L"Form_Panel"; +const wchar_t* FORM_PROGRESS = L"Form_Progress"; +const wchar_t* FORM_SEARCHBAR = L"Form_SearchBar"; +const wchar_t* FORM_SLIDER = L"Form_Slider"; +const wchar_t* FORM_SPLIT_PANEL = L"Form_SplitPanel"; +const wchar_t* FORM_TABLEVIEW = L"Form_TableView"; +const wchar_t* FORM_TEXTBOX = L"Form_TextBox"; + +FormFactory::FormFactory(void) +{ +} + +FormFactory::~FormFactory(void) +{ +} + +Tizen::Ui::Controls::Form* +FormFactory::CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId) +{ + Tizen::Ui::Controls::Form* pNewForm = null; + SceneManager* pSceneManager = SceneManager::GetInstance(); + AppAssert(pSceneManager); + + if (formId == FORM_ANIMATION) + { + AnimationForm* pAnimationForm = new (std::nothrow) AnimationForm(); + pAnimationForm->Initialize(); + pNewForm = pAnimationForm; + } + else if (formId == FORM_BUTTON) + { + ButtonForm* pButtonForm = new (std::nothrow) ButtonForm(); + pButtonForm->Initialize(); + pNewForm = pButtonForm; + } + else if (formId == FORM_CHECK_BUTTON) + { + CheckButtonForm* pCheckButtonForm = new (std::nothrow) CheckButtonForm(); + pCheckButtonForm->Initialize(); + pNewForm = pCheckButtonForm; + } + else if (formId == FORM_COLOR_PICKER) + { + ColorPickerForm* pColorPickerForm = new (std::nothrow) ColorPickerForm(); + pColorPickerForm->Initialize(); + pNewForm = pColorPickerForm; + } + else if (formId == FORM_CUSTOM_BUTTON) + { + CustomButtonForm* pCustomButtonForm = new (std::nothrow) CustomButtonForm(); + pCustomButtonForm->Initialize(); + pNewForm = pCustomButtonForm; + } + else if (formId == FORM_TABBAR) + { + TabBarForm* pTabBarForm = new (std::nothrow) TabBarForm(); + pTabBarForm->Initialize(); + pNewForm = pTabBarForm; + } + else if (formId == FORM_DATE_TIME) + { + DateTimeForm* pDateTimeForm = new (std::nothrow) DateTimeForm(); + pDateTimeForm->Initialize(); + pNewForm = pDateTimeForm; + } + else if (formId == FORM_EDIT) + { + EditForm* pEditForm = new (std::nothrow) EditForm(); + pEditForm->Initialize(); + pNewForm = pEditForm; + } + else if (formId == FORM_ENRICHED_TEXT) + { + EnrichedTextForm* pEnrichedTextForm = new (std::nothrow) EnrichedTextForm(); + pEnrichedTextForm->Initialize(); + pNewForm = pEnrichedTextForm; + } + else if (formId == FORM_EXPANDABLE_EDIT_AREA) + { + ExpandableEditAreaForm* pExpandableEditAreaForm = new (std::nothrow) ExpandableEditAreaForm(); + pExpandableEditAreaForm->Initialize(); + pNewForm = pExpandableEditAreaForm; + } + else if (formId == FORM_GALLERY) + { + GalleryForm* pGalleryForm = new (std::nothrow) GalleryForm(); + pGalleryForm->Initialize(); + pNewForm = pGalleryForm; + } + else if (formId == FORM_GROUPED_LISTVIEW) + { + GroupedListViewForm* pGroupedListViewForm = new (std::nothrow) GroupedListViewForm(); + pGroupedListViewForm->Initialize(); + pNewForm = pGroupedListViewForm; + } + else if (formId == FORM_ICON_LISTVIEW) + { + IconListViewForm* pIconListViewForm = new (std::nothrow) IconListViewForm(); + pIconListViewForm->Initialize(); + pNewForm = pIconListViewForm; + } + else if (formId == FORM_LISTVIEW) + { + ListViewForm* pListViewForm = new (std::nothrow) ListViewForm(); + pListViewForm->Initialize(); + pNewForm = pListViewForm; + } + else if (formId == FORM_MAIN) + { + MainForm* pMainForm = new (std::nothrow) MainForm(); + pMainForm->Initialize(); + pNewForm = pMainForm; + } + else if (formId == FORM_MENU) + { + MenuForm* pMenuForm = new (std::nothrow) MenuForm(); + pMenuForm->Initialize(); + pNewForm = pMenuForm; + } + else if (formId == FORM_MSG_BOX_POPUP) + { + MsgBoxPopupForm* pMsgBoxPopupForm = new (std::nothrow) MsgBoxPopupForm(); + pMsgBoxPopupForm->Initialize(); + pNewForm = pMsgBoxPopupForm; + } + else if (formId == FORM_NAVIGATION) + { + NavigationForm* pNavigationForm = new (std::nothrow) NavigationForm(); + pNavigationForm->Initialize(); + pNewForm = pNavigationForm; + } + else if (formId == FORM_OVERLAYKEYPAD) + { + OverlayKeypadForm* pOverlayKeypadForm = new (std::nothrow) OverlayKeypadForm(); + pOverlayKeypadForm->Initialize(); + pNewForm = pOverlayKeypadForm; + } + else if (formId == FORM_PANEL) + { + PanelForm* pPanelForm = new (std::nothrow) PanelForm(); + pPanelForm->Initialize(); + pNewForm = pPanelForm; + } + else if (formId == FORM_PROGRESS) + { + ProgressForm* pProgressForm = new (std::nothrow) ProgressForm(); + pProgressForm->Initialize(); + pNewForm = pProgressForm; + } + else if (formId == FORM_SEARCHBAR) + { + SearchBarForm* pSearchBarForm = new (std::nothrow) SearchBarForm(); + pSearchBarForm->Initialize(); + pNewForm = pSearchBarForm; + } + else if (formId == FORM_SLIDER) + { + SliderForm* pSliderForm = new (std::nothrow) SliderForm(); + pSliderForm->Initialize(); + pNewForm = pSliderForm; + } + else if (formId == FORM_SPLIT_PANEL) + { + SplitPanelForm* pSplitPanelForm = new (std::nothrow) SplitPanelForm(); + pSplitPanelForm->Initialize(); + pNewForm = pSplitPanelForm; + } + else if (formId == FORM_TABLEVIEW) + { + TableViewForm* pTableViewForm = new (std::nothrow) TableViewForm(); + pTableViewForm->Initialize(); + pNewForm = pTableViewForm; + } + else if (formId == FORM_TEXTBOX) + { + TextBoxForm* pTextBoxForm = new (std::nothrow) TextBoxForm(); + pTextBoxForm->Initialize(); + pNewForm = pTextBoxForm; + } + else if (formId == FORM_QUICK_PANEL_FRAME) + { + QuickPanelFrameForm* pQuickPanelFrameForm = new (std::nothrow) QuickPanelFrameForm(); + pQuickPanelFrameForm->Initialize(); + pNewForm = pQuickPanelFrameForm; + } + + return pNewForm; +} diff --git a/project/src/GalleryForm.cpp b/project/src/GalleryForm.cpp new file mode 100644 index 0000000..f2038cd --- /dev/null +++ b/project/src/GalleryForm.cpp @@ -0,0 +1,331 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include <FIoDirectory.h> +#include <FAppApp.h> +#include "GalleryForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; +using namespace Tizen::Io; +using namespace Tizen::App; +using namespace Tizen::Media; +using namespace Tizen::Base::Runtime; +using namespace Tizen::Base::Collection; +using namespace Tizen::System; + +const wchar_t GALLERY_IMAGE_PATH1[] = L"res/screen-density-high/image1.jpg"; +const wchar_t GALLERY_IMAGE_PATH2[] = L"res/screen-density-high/image2.jpg"; +const wchar_t GALLERY_IMAGE_PATH3[] = L"res/screen-density-high/image3.jpg"; +const wchar_t GALLERY_IMAGE_PATH4[] = L"res/screen-density-high/image4.jpg"; + +GalleryForm::GalleryForm(void) + : __visible(true) + , __pImage1(null) + , __pImage2(null) + , __pImage3(null) + , __pImage4(null) + , __pMutex(null) +{ +} + +GalleryForm::~GalleryForm(void) +{ +} + +bool +GalleryForm::Initialize(void) +{ + Form::Construct(L"IDF_FORM_GALLERY"); + return true; +} + +result +GalleryForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + r = SetActionBarsTranslucent(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, true); + SetOrientation(ORIENTATION_AUTOMATIC); + AddOrientationEventListener(*this); + + __pHeader = GetHeader(); + __pHeader->SetStyle(HEADER_STYLE_TITLE); + __pHeader->SetTitleText(L"Gallery"); + + ButtonItem buttonItem; + buttonItem.Construct(BUTTON_ITEM_STYLE_TEXT, ID_FOOTER__SLIDE_SHOW_START); + buttonItem.SetText(L"Play"); + + __pHeader->SetButton(BUTTON_POSITION_LEFT, buttonItem); + __pHeader->AddActionEventListener(*this); + + CreateGallery(); + + __pMutex = new (std::nothrow) Mutex(); + r = __pMutex->Create(); + + __pThread = new (std::nothrow) Thread(); + __pThread->Construct(*this); + r = __pThread->Start(); + + return r; +} + +result +GalleryForm::OnTerminating(void) +{ + result r = E_SUCCESS; + // Deallocate bitmaps + __items.RemoveAll(true); + + if (__pThread) + { + __pThread->Join(); + delete __pThread; + __pThread = null; + } + + if (__pMutex) + { + delete __pMutex; + } + + return r; +} + +void +GalleryForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus) +{ + Rectangle clientRect = GetClientAreaBounds(); + Rectangle rect = GetBounds(); + __pGallery->SetBounds(Rectangle(0, -clientRect.y, rect.width, rect.height)); + Invalidate(true); +} + +void +GalleryForm::GetBitmap(void) +{ + Image* pImage = new (std::nothrow) Image(); + pImage->Construct(); + + IList* pArgs = null; + __pImage1 = pImage->DecodeN(App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH1, BITMAP_PIXEL_FORMAT_ARGB8888); + __pMutex->Acquire(); + __items.Add(*__pImage1); + __pMutex->Release(); + pArgs = new (std::nothrow) ArrayList(); + pArgs->Add(*(new (std::nothrow) Integer(0))); + Form::SendUserEvent(UPDATE_GALLERY, pArgs); + + __pImage2 = pImage->DecodeN(App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH2, BITMAP_PIXEL_FORMAT_ARGB8888); + __pMutex->Acquire(); + __items.Add(*__pImage2); + __pMutex->Release(); + pArgs = new (std::nothrow) ArrayList(); + pArgs->Add(*(new (std::nothrow) Integer(1))); + Form::SendUserEvent(UPDATE_GALLERY, pArgs); + + __pImage3 = pImage->DecodeN(App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH3, BITMAP_PIXEL_FORMAT_ARGB8888); + __pMutex->Acquire(); + __items.Add(*__pImage3); + __pMutex->Release(); + pArgs = new (std::nothrow) ArrayList(); + pArgs->Add(*(new (std::nothrow) Integer(2))); + Form::SendUserEvent(UPDATE_GALLERY, pArgs); + + __pImage4 = pImage->DecodeN(App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH4, BITMAP_PIXEL_FORMAT_ARGB8888); + __pMutex->Acquire(); + __items.Add(*__pImage4); + __pMutex->Release(); + pArgs = new (std::nothrow) ArrayList(); + pArgs->Add(*(new (std::nothrow) Integer(3))); + Form::SendUserEvent(UPDATE_GALLERY, pArgs); + + delete pImage; +} + +void +GalleryForm::CreateGallery(void) +{ + Rectangle clientRect = GetClientAreaBounds(); + Rectangle rect = GetBounds(); + + __pGallery = static_cast<Gallery*>(GetControl("IDC_GALLERY")); + __pGallery->SetItemProvider(*this); + __pGallery->AddGalleryEventListener(*this); + AddControl(*__pGallery); + + __pGallery->SetTextOfEmptyGallery(L"Loading..."); + __pGallery->SetSlideShowAnimation(GALLERY_ANIMATION_DISSOLVE); + __pGallery->SetSlideShowViewDuration(3000); +} + +void +GalleryForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_FOOTER__SLIDE_SHOW_START: + __pGallery->StartSlideShow(true); + break; + case ID_FOOTER_SLIDE_SHOW_STOP: + __pGallery->StopSlideShow(); + break; + } + Invalidate(true); +} + +int +GalleryForm::GetItemCount(void) +{ + return __items.GetCount(); +} + +GalleryItem* +GalleryForm::CreateItem(int index) +{ + GalleryItem* pGallery = new (std::nothrow) GalleryItem(); + __pMutex->Acquire(); + Tizen::Graphics::Bitmap* __pImageTemp = static_cast<Bitmap*>(__items.GetAt(index)); + + switch(index) + { + case 0: + pGallery->Construct(*__pImageTemp, App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH1); + break; + case 1: + pGallery->Construct(*__pImageTemp, App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH2); + break; + case 2: + pGallery->Construct(*__pImageTemp, App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH3); + break; + case 3: + pGallery->Construct(*__pImageTemp, App::GetInstance()->GetAppRootPath() + GALLERY_IMAGE_PATH4); + break; + default: + break; + } + __pMutex->Release(); + return pGallery; +} + +bool +GalleryForm::DeleteItem(int index, GalleryItem* pItem) +{ + delete pItem; + return true; +} + +void +GalleryForm::OnGalleryCurrentItemChanged(Gallery& view, int index) +{ + String itemText(L""); + itemText.Format(20, L"Item %d", index+1); + __pHeader = GetHeader(); + __pHeader->SetTitleText(itemText); + Invalidate(true); +} + +void +GalleryForm::OnGalleryItemClicked(Gallery& view, int index) +{ + if (__visible) + { + SetActionBarsVisible(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, false); + __visible = false; + + } + else + { + SetActionBarsVisible(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, true); + __visible = true; + } + + Invalidate(true); +} + +void +GalleryForm::OnGallerySlideShowStarted(Gallery& gallery) +{ + PowerManager::KeepScreenOnState(true, false); + if (__visible) + { + SetActionBarsVisible(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, false); + __visible = false; + } + + Rectangle clientRect = GetClientAreaBounds(); + Rectangle rect = GetBounds(); + __pGallery->SetBounds(Rectangle(0, -clientRect.y, rect.width, rect.height)); + Invalidate(true); +} + +void +GalleryForm::OnGallerySlideShowStopped(Gallery& gallery) +{ + PowerManager::KeepScreenOnState(false, true); + if (!__visible) + { + SetActionBarsVisible(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, true); + __visible = true; + } + + int currentItemIndex; + currentItemIndex = __pGallery->GetCurrentItemIndex(); + String itemText(L""); + itemText.Format(20, L"Item %d", currentItemIndex+1); + __pHeader = GetHeader(); + __pHeader->SetTitleText(itemText); + + Rectangle clientRect = GetClientAreaBounds(); + Rectangle rect = GetBounds(); + __pGallery->SetBounds(Rectangle(0, -clientRect.y, rect.width, rect.height)); + + Invalidate(true); +} + +bool +GalleryForm::OnStart(void) +{ + return true; +} +void +GalleryForm::OnStop(void) +{ +} + +void +GalleryForm::OnUserEventReceivedN(RequestId requestId, IList* pArgs) +{ + Integer *index = (Integer*)pArgs->GetAt(0); + int galleryIndex = index->ToInt(); + __pGallery->RefreshGallery(galleryIndex, GALLERY_REFRESH_TYPE_ITEM_ADD); + + pArgs->RemoveAll(true); + delete pArgs; + +} + +Tizen::Base::Object* +GalleryForm::Run(void) +{ + GetBitmap(); + return null; +} diff --git a/project/src/GroupedListViewForm.cpp b/project/src/GroupedListViewForm.cpp new file mode 100644 index 0000000..d6c20ba --- /dev/null +++ b/project/src/GroupedListViewForm.cpp @@ -0,0 +1,298 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "GroupedListViewForm.h" + +using namespace Tizen::App; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; +using namespace Tizen::Media; + +const wchar_t LIST_IMAGE_PATH1[] = L"home_type3.png"; +const wchar_t LIST_IMAGE_PATH2[] = L"message_type3.png"; +const wchar_t LIST_IMAGE_PATH3[] = L"alarm_type3.png"; +const wchar_t LIST_IMAGE_PATH4[] = L"call_type3.png"; + +const int GROUP_INDEX0 = 0; +const int GROUP_INDEX1 = 1; +const int GROUP_INDEX2 = 2; + +GroupedListViewForm::GroupedListViewForm(void) + : __pList(null) + , __pHome(null) + , __pMsg(null) + , __pAlarm(null) + , __pCall(null) + , __pCustomGroupedListElement(null) + , __pItemContext(null) +{ +} + +GroupedListViewForm::~GroupedListViewForm(void) +{ +} + +bool +GroupedListViewForm::Initialize(void) +{ + Construct(L"IDF_FORM_GROUPEDLISTVIEW"); + return true; +} + +result +GroupedListViewForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + GetBitmap(); + CreateGroupedListView(); + + // Create Custom Element + __pCustomGroupedListElement = new (std::nothrow) CustomGroupedListElement(); + + __pItemContext = new (std::nothrow) ListContextItem(); + __pItemContext->Construct(); + __pItemContext->AddElement(ID_CONTEXT_ITEM_1, L"Button 1"); + __pItemContext->AddElement(ID_CONTEXT_ITEM_2, L"Button 2"); + + return r; +} + +result +GroupedListViewForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + // Deallocate bitmaps + delete __pHome; + delete __pMsg; + delete __pAlarm; + delete __pCall; + delete __pItemContext; + delete __pCustomGroupedListElement; + + return r; +} + +void +GroupedListViewForm::GetBitmap(void) +{ + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + __pHome = pAppResource->GetBitmapN(LIST_IMAGE_PATH1); + __pMsg = pAppResource->GetBitmapN(LIST_IMAGE_PATH2); + __pAlarm = pAppResource->GetBitmapN(LIST_IMAGE_PATH3); + __pCall = pAppResource->GetBitmapN(LIST_IMAGE_PATH4); +} + +void +GroupedListViewForm::CreateGroupedListView(void) +{ + __pList = static_cast <GroupedListView*> (GetControl(L"IDC_GROUPEDLISTVIEW")); + __pList->SetItemProvider(*this); + __pList->SetFastScrollIndex(L"ABC", false); + __pList->AddFastScrollListener(*this); + __pList->AddGroupedListViewItemEventListener(*this); + AddControl(*__pList); +} + +void +GroupedListViewForm::OnFastScrollIndexSelected(Control& source, Tizen::Base::String& index) +{ + if( !index.CompareTo(L"A" )) + { + __pList->ScrollToItem(GROUP_INDEX0, -1); + } + else if( !index.CompareTo(L"B")) + { + __pList->ScrollToItem(GROUP_INDEX1, -1); + } + else + { + __pList->ScrollToItem(GROUP_INDEX2, -1); + } + + Invalidate(true); +} + +void +GroupedListViewForm::OnGroupedListViewItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListItemStatus state) +{ + String itemText(L""); + switch(elementId) + { + case ID_FORMAT_STRING: + itemText.Format(40, L"[Group %d Item %d]\nText Selected", groupIndex+1, itemIndex+1); + break; + case ID_FORMAT_BITMAP: + itemText.Format(40, L"[Group %d Item %d]\nBitmap Selected", groupIndex+1, itemIndex+1); + break; + case ID_FORMAT_CUSTOM: + itemText.Format(40, L"[Group %d Item %d]\nCustom Selected", groupIndex+1, itemIndex+1); + break; + case ID_FORMAT_NULL: + itemText.Format(40, L"[Group %d Item %d]\nSelected", groupIndex+1, itemIndex+1); + break; + } + +} + +void +GroupedListViewForm::OnGroupedListViewContextItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListContextItemStatus state) +{ + String contextItem(L""); + if (elementId == ID_CONTEXT_ITEM_1) + { + contextItem.Format(40, L"ContextItem %d :\n(Test1) Selected", itemIndex+1); + } + else + { + contextItem.Format(40, L"ContextItem %d :\n(Test2) Selected", itemIndex+1); + } + +} + +void +GroupedListViewForm::OnGroupedListViewItemSwept(GroupedListView& listView, int groupIndex, int itemIndex, SweepDirection direction) +{ +} + +void +GroupedListViewForm::OnGroupedListViewItemLongPressed(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, bool & invokeListViewItemCallback ) +{ + String itemText(L""); + switch(elementId) + { + case ID_FORMAT_STRING: + itemText.Format(40, L"[Group %d Item %d]\nText Selected", groupIndex+1, itemIndex+1); + break; + case ID_FORMAT_BITMAP: + itemText.Format(40, L"[Group %d Item %d]\nBitmap Selected", groupIndex+1, itemIndex+1); + break; + case ID_FORMAT_CUSTOM: + itemText.Format(40, L"[Group %d Item %d]\nCustom Selected", groupIndex+1, itemIndex+1); + break; + case ID_FORMAT_NULL: + itemText.Format(40, L"[Group %d Item %d]\nSelected", groupIndex+1, itemIndex+1); + break; + } + +} + +int +GroupedListViewForm::GetGroupCount(void) +{ + return 3; +} + +int +GroupedListViewForm::GetItemCount(int groupIndex) +{ + int itemCount = 0; + switch(groupIndex) + { + case GROUP_INDEX0: + itemCount = 7; + break; + case GROUP_INDEX1: + itemCount = 5; + break; + case GROUP_INDEX2: + itemCount = 3; + break; + default: + break; + } + return itemCount; +} + +GroupItem* +GroupedListViewForm::CreateGroupItem(int groupIndex, int itemWidth) +{ + GroupItem* pItem = new (std::nothrow) GroupItem(); + pItem->Construct(Dimension(itemWidth, 48)); + String text(L""); + switch (groupIndex) + { + case GROUP_INDEX0: + text = L"GroupA"; + break; + case GROUP_INDEX1: + text = L"GroupB"; + break; + case GROUP_INDEX2: + text = L"GroupC"; + break; + } + pItem->SetElement(text, null); + return pItem; +} + +ListItemBase* +GroupedListViewForm::CreateItem(int groupIndex, int itemIndex, int itemWidth) +{ + ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL; + CustomItem* pItem = new (std::nothrow) CustomItem(); + pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 112), style); + + Rectangle firstElementRect(26, 27, 60, 60); + Rectangle secondElementRect(150, 32, 150, 50); + Rectangle customElementRect(360, 20, 180, 80); + + switch (itemIndex % 4) + { + case 0: + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pHome, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Home", true); + break; + case 1: + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pMsg, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Msg", true); + break; + case 2: + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pAlarm, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Alarm", true); + break; + case 3: + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pCall, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Call", true); + break; + default: + break; + } + pItem->AddElement(customElementRect, ID_FORMAT_CUSTOM, *(static_cast<ICustomElement*>(__pCustomGroupedListElement))); + pItem->SetContextItem(__pItemContext); + + return pItem; +} + +bool +GroupedListViewForm::DeleteItem(int groupIndex, int itemIndex, Controls::ListItemBase* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} + +bool +GroupedListViewForm::DeleteGroupItem(int groupIndex, Controls::GroupItem* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} diff --git a/project/src/IconListViewForm.cpp b/project/src/IconListViewForm.cpp new file mode 100644 index 0000000..9887b9a --- /dev/null +++ b/project/src/IconListViewForm.cpp @@ -0,0 +1,193 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "IconListViewForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; +using namespace Tizen::Media; +using namespace Tizen::App; + +const wchar_t LIST_IMAGE_PATH1[] = L"home_type3.png"; +const wchar_t LIST_IMAGE_PATH2[] = L"message_type3.png"; +const wchar_t LIST_IMAGE_PATH3[] = L"alarm_type3.png"; +const wchar_t LIST_IMAGE_PATH4[] = L"00_icon_more_ef.png"; +const int ITEM_COUNT = 200; + + +IconListViewForm::IconListViewForm(void) + : __pLabelLog(null) + , __pHome(null) + , __pMsg(null) + , __pAlarm(null) + , __pMore(null) +{ +} + +IconListViewForm::~IconListViewForm(void) +{ +} + +bool +IconListViewForm::Initialize(void) +{ + Construct(L"IDF_FORM_ICONLISTVIEW"); + return true; +} + +result +IconListViewForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + FooterItem footerItem1; + footerItem1.Construct(ID_FOOTER_VERTICAL); + footerItem1.SetText(L"Vertical"); + + FooterItem footerItem2; + footerItem2.Construct(ID_FOOTER_HORIZONTAL); + footerItem2.SetText(L"Horizontal"); + + Footer* pFooter = GetFooter(); + pFooter->SetStyle(FOOTER_STYLE_BUTTON_ICON_TEXT); + pFooter->SetBackButton(); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + + pFooter->AddActionEventListener(*this); + + GetBitmap(); + CreateIconListView(); + + return r; +} + +result +IconListViewForm::OnTerminating(void) +{ + result r = E_SUCCESS; + // Deallocate bitmaps + delete __pHome; + delete __pMsg; + delete __pAlarm; + delete __pMore; + return r; +} + +void +IconListViewForm::GetBitmap(void) +{ + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + + __pHome = pAppResource->GetBitmapN(LIST_IMAGE_PATH1); + __pMsg = pAppResource->GetBitmapN(LIST_IMAGE_PATH2); + __pAlarm = pAppResource->GetBitmapN(LIST_IMAGE_PATH3); + __pMore = pAppResource->GetBitmapN(LIST_IMAGE_PATH4); + +} + +void +IconListViewForm::CreateIconListView(void) +{ + Rectangle clientArea = this->GetClientAreaBounds(); + Dimension itemSize; + clientArea.x = clientArea.y = 0; + __pVerticalIconList = static_cast <IconListView*> (GetControl(L"IDC_ICONLISTVIEW_VERTICAL")); + __pVerticalIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_OUTLINE); + __pVerticalIconList->SetItemProvider(*this); + __pVerticalIconList->AddIconListViewItemEventListener(*this); + AddControl(*__pVerticalIconList); + + __pHorizontalIconList = static_cast <IconListView*> (GetControl(L"IDC_ICONLISTVIEW_HORIZONTAL")); + __pHorizontalIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_OUTLINE); + __pHorizontalIconList->SetItemProvider(*this); + __pHorizontalIconList->AddIconListViewItemEventListener(*this); + AddControl(*__pHorizontalIconList); + + __pVerticalIconList->SetShowState(true); + __pHorizontalIconList->SetShowState(false); +} + +void +IconListViewForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_FOOTER_HORIZONTAL: + { + __pVerticalIconList->SetShowState(false); + __pHorizontalIconList->SetShowState(true); + } + break; + case ID_FOOTER_VERTICAL: + { + __pVerticalIconList->SetShowState(true); + __pHorizontalIconList->SetShowState(false); + } + break; + default : + break; + } + Invalidate(true); +} + +int +IconListViewForm::GetItemCount(void) +{ + return ITEM_COUNT; +} + +IconListViewItem* +IconListViewForm::CreateItem(int index) +{ + String itemText(L""); + IconListViewItem* pIconListview = new (std::nothrow) IconListViewItem(); + switch (index % 3) + { + case 0: + itemText = L"Home"; + pIconListview->Construct(*__pHome, &itemText); + break; + case 1: + itemText = L"Msg"; + pIconListview->Construct(*__pMsg, &itemText); + break; + case 2: + itemText = L"Call"; + pIconListview->Construct(*__pAlarm, &itemText); + break; + } + return pIconListview; +} + +bool +IconListViewForm::DeleteItem(int index, IconListViewItem* pItem) +{ + delete pItem; + return true; +} + +void +IconListViewForm::OnIconListViewItemStateChanged(IconListView& view, int index, IconListViewItemStatus status) +{ + String itemText(L""); + itemText.Format(20, L"Item %d Selected", index + 1); +} + + diff --git a/project/src/ListViewForm.cpp b/project/src/ListViewForm.cpp new file mode 100644 index 0000000..5540291 --- /dev/null +++ b/project/src/ListViewForm.cpp @@ -0,0 +1,284 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "ListViewForm.h" + +using namespace Tizen::App; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; +using namespace Tizen::Media; + +const wchar_t LIST_IMAGE_PATH1[] = L"home_type1.png"; +const wchar_t LIST_IMAGE_PATH2[] = L"message_type1.png"; +const wchar_t LIST_IMAGE_PATH3[] = L"alarm_type1.png"; +const wchar_t LIST_IMAGE_PATH4[] = L"call_type1.png"; + +const int ITEM_COUNT = 100; + +ListViewForm::ListViewForm(void) + : __pList(null) + , __pLabelLog(null) + , __pHome(null) + , __pMsg(null) + , __pAlarm(null) + , __pCall(null) + , __pCustomListElement(null) + , __pItemContext(null) +{ +} + +ListViewForm::~ListViewForm(void) +{ +} + +bool +ListViewForm::Initialize(void) +{ + Construct(L"IDF_FORM_LISTVIEW"); + return true; +} + +result +ListViewForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + + GetBitmap(); + CreateListView(); + + // Create Custom Element + __pCustomListElement = new (std::nothrow) CustomListElement(); + + __pItemContext = new (std::nothrow) ListContextItem(); + __pItemContext->Construct(); + __pItemContext->AddElement(ID_CONTEXT_ITEM_1, L"Button 1"); + __pItemContext->AddElement(ID_CONTEXT_ITEM_2, L"Button 2"); + + FooterItem footerItem1; + footerItem1.Construct(ID_REORDER_ON); + footerItem1.SetText(L"ReOrder On"); + + FooterItem footerItem2; + footerItem2.Construct(ID_REORDER_OFF); + footerItem2.SetText(L"ReOrder Off"); + + Footer* pFooter = GetFooter(); + pFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT); + pFooter->SetBackButton(); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + pFooter->AddActionEventListener(*this); + + return r; +} + +result +ListViewForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + // Deallocate bitmaps + delete __pHome; + delete __pMsg; + delete __pAlarm; + delete __pCall; + delete __pItemContext; + delete __pCustomListElement; + return r; +} + +void +ListViewForm::GetBitmap(void) +{ + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + __pHome = pAppResource->GetBitmapN(LIST_IMAGE_PATH1); + __pMsg = pAppResource->GetBitmapN(LIST_IMAGE_PATH2); + __pAlarm = pAppResource->GetBitmapN(LIST_IMAGE_PATH3); + __pCall = pAppResource->GetBitmapN(LIST_IMAGE_PATH4); + +} + +void +ListViewForm::CreateListView(void) +{ + __pList = new (std::nothrow) ListView(); + __pList->Construct(Rectangle(0, 0, 720, GetClientAreaBounds().height), true, false); + __pList->SetItemProvider(*this); + __pList->AddListViewItemEventListener(*this); + + AddControl(*__pList); +} + +void +ListViewForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status) +{ + String itemText(L""); + + switch(elementId) + { + case ID_FORMAT_STRING: + itemText.Format(40, L"Item %d: Text Selected", index+1); + break; + case ID_FORMAT_BITMAP: + itemText.Format(40, L"Item %d: Bitmap Selected", index+1); + break; + case ID_FORMAT_CUSTOM: + itemText.Format(40, L"Item %d: Custom Selected", index+1); + break; + case ID_FORMAT_NULL: + itemText.Format(40, L"Item %d: Selected", index+1); + break; + } + +} + +void +ListViewForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction) +{ +} +void +ListViewForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus state) +{ + String contextItem(L""); + if (elementId == ID_CONTEXT_ITEM_1) + { + contextItem.Format(40, L"ContextItem %d :\n(Test1) Selected", index+1); + } + else + { + contextItem.Format(40, L"ContextItem %d :\n(Test2) Selected", index+1); + } + +} + +void +ListViewForm::OnListViewItemLongPressed(ListView& listView, int index, int elementId, bool& invokeListViewItemCallback) +{ + + String itemText(L""); + + switch(elementId) + { + case ID_FORMAT_STRING: + itemText.Format(40, L"Item %d: Text Selected", index+1); + break; + case ID_FORMAT_BITMAP: + itemText.Format(40, L"Item %d: Bitmap Selected", index+1); + break; + case ID_FORMAT_CUSTOM: + itemText.Format(40, L"Item %d: Custom Selected", index+1); + break; + case ID_FORMAT_NULL: + itemText.Format(40, L"Item %d: Selected", index+1); + break; + } + +} + +int +ListViewForm::GetItemCount(void) +{ + return ITEM_COUNT; +} + +ListItemBase* +ListViewForm::CreateItem(int index, int itemWidth) +{ + ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL; + CustomItem* pItem = new (std::nothrow) CustomItem(); + Rectangle firstElementRect(26, 27, 60, 60);//(10, 20, 60, 60); + Rectangle secondElementRect(96, 32, 150, 50);//(80, 25, 150, 50); + Dimension itemDimension(itemWidth,112); + Rectangle markStyleCustomElementRect(275, 20, 180, 80); + Rectangle customElementRect(350, 20, 180, 80); + + switch (index % 5) + { + case 0: + style = LIST_ANNEX_STYLE_NORMAL; + pItem->Construct(itemDimension, style); + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pHome, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Home", true); + break; + case 1: + style = LIST_ANNEX_STYLE_MARK; + pItem->Construct(itemDimension, style); + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pMsg, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Msg", true); + break; + case 2: + style = LIST_ANNEX_STYLE_ONOFF_SLIDING; + pItem->Construct(itemDimension, style); + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pAlarm, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Alarm", true); + break; + case 3: + style = LIST_ANNEX_STYLE_DETAILED; + pItem->Construct(itemDimension, style); + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pCall, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Call", true); + break; + case 4: + style = LIST_ANNEX_STYLE_RADIO; + pItem->Construct(itemDimension, style); + pItem->AddElement(firstElementRect, ID_FORMAT_BITMAP, *__pAlarm, null, null); + pItem->AddElement(secondElementRect, ID_FORMAT_STRING, L"Alarm", true); + break; + default: + break; + } + if (style == LIST_ANNEX_STYLE_MARK) + { + pItem->AddElement(markStyleCustomElementRect, ID_FORMAT_CUSTOM, *(static_cast<ICustomElement *>(__pCustomListElement))); + } + else + { + pItem->AddElement(customElementRect, ID_FORMAT_CUSTOM, *(static_cast<ICustomElement *>(__pCustomListElement))); + } + pItem->SetContextItem(__pItemContext); + + return pItem; +} + +bool +ListViewForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} + +void +ListViewForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_REORDER_ON: + __pList->BeginReorderingMode(); + break; + case ID_REORDER_OFF: + __pList->EndReorderingMode(); + break; + default: + break; + } +} + + diff --git a/project/src/MainForm.cpp b/project/src/MainForm.cpp new file mode 100644 index 0000000..86439af --- /dev/null +++ b/project/src/MainForm.cpp @@ -0,0 +1,294 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include <FAppUiApp.h> +#include "MainForm.h"
+#include "SceneRegister.h" +
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Scenes; +
+MainForm::MainForm(void)
+ : __pList(null)
+{
+}
+
+MainForm::~MainForm(void)
+{
+}
+
+bool
+MainForm::Initialize(void)
+{
+ Construct(FORM_STYLE_NORMAL| FORM_STYLE_HEADER| FORM_STYLE_INDICATOR| FORM_STYLE_FOOTER);
+ return true;
+}
+
+result
+MainForm::OnInitializing(void)
+{
+ Header* pHeader = GetHeader();
+ pHeader->SetTitleText(L"UI CONTROLS");
+ if (!CreateMainList()) + { + return false; + } + + Footer* pFooter = GetFooter(); + pFooter->SetBackButton(); + SetFormBackEventListener(this);
+
+ return E_SUCCESS;
+}
+
+bool
+MainForm::CreateMainList(void)
+{
+ __pList = new (std::nothrow) ListView();
+ __pList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height), true, false);
+ __pList->SetItemProvider(*this);
+ __pList->AddListViewItemEventListener(*this);
+ AddControl(*__pList);
+ return true;
+}
+
+void
+MainForm::OnListViewItemStateChanged(ListView& view, int index, int elementId, ListItemStatus status)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance(); + AppAssert(pSceneManager); +
+ if(status == LIST_ITEM_STATUS_SELECTED)
+ {
+ switch (index) + { + case 0: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_ANIMATION_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 1: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_BUTTON_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 2: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_CHECK_BUTTON_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 3: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_COLOR_PICKER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 4: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_MENU_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 5: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_CUSTOM_BUTTON_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 6: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_DATE_TIME_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 7: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_EDIT_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 8: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_EXPANDABLE_EDIT_AREA_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 9: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_ENRICHED_TEXT_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 10: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_GALLERY_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 11: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_GROUPED_LISTVIEW_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 12: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_NAVIGATION_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 13: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_ICON_LISTVIEW_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 14: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_LISTVIEW_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 15: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_MSG_BOX_POPUP_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 16: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_OVERLAYKEYPAD_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 17: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_PROGRESS_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 18: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_PANEL_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 19: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_SEARCHBAR_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 20: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_SLIDER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 21: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_SPLIT_PANEL_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 22: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_TABBAR_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 23: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_TABLEVIER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 24: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_TEXTBOX_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + case 25: + pSceneManager->GoForward(ForwardSceneTransition(SCENE_QUICK_PANEL_FRAME_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)); + break; + } + }
+} +
+void
+MainForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction)
+{
+} +
+void
+MainForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus state)
+{
+} + +void
+MainForm::OnItemReordered(ListView& listView, int oldIndex, int newIndex)
+{
+}
+ +int
+MainForm::GetItemCount(void)
+{
+ return 26;
+}
+
+bool
+MainForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth)
+{
+ delete pItem;
+ pItem = null;
+ return true;
+
+}
+
+ListItemBase*
+MainForm::CreateItem(int index, int itemWidth)
+{
+ ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL;
+ CustomItem* pItem = new (std::nothrow) CustomItem();
+ pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 112), style); + Rectangle mainListItemRect(26, 32, GetClientAreaBounds().width, 50);
+
+ switch(index)
+ {
+ case 0:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"Animation", true);
+ break;
+ case 1:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"Button", true);
+ break;
+ case 2:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"CheckButton", true);
+ break;
+ case 3:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"ColorPicker", true);
+ break;
+ case 4:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"ContextMenu", true);
+ break;
+ case 5:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"CustomButton", true);
+ break;
+ case 6:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"EditDate, EditTime", true);
+ break;
+ case 7:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"EditField, EditArea", true);
+ break;
+ case 8:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"ExpandableEditArea", true);
+ break;
+ case 9:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"EnrichedText", true);
+ break;
+ case 10:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"Gallery", true);
+ break;
+ case 11:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"GroupedListView", true);
+ break;
+ case 12:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"Header, Footer", true);
+ break;
+ case 13:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"IconListView", true);
+ break;
+ case 14:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"ListView", true);
+ break;
+ case 15:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"MessageBox, Popup", true);
+ break; + case 16: + pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"OverlayKeypad", true); + break; + case 17: + pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"Progress", true); + break; + case 18:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"ScrollPanel, Panel", true);
+ break;
+ case 19:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"SearchBar", true);
+ break; + case 20: + pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"Slider", true); + break; + case 21: + pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"SplitPanel", true); + break; + case 22: + pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"TabBar", true); + break;
+ case 23:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"TableView", true); + break;
+ case 24:
+ pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"TextBox", true);
+ break; + case 25: + pItem->AddElement(mainListItemRect, ID_FORMAT_STRING, L"QuickPanelFrame", true); + break;
+ default:
+ break;
+ }
+ return pItem;
+} + +void +MainForm::OnFormBackRequested(Form& source) +{ + UiApp* pApp = UiApp::GetInstance(); + AppAssert(pApp); + pApp->Terminate(); +}
diff --git a/project/src/MenuForm.cpp b/project/src/MenuForm.cpp new file mode 100644 index 0000000..63aceb5 --- /dev/null +++ b/project/src/MenuForm.cpp @@ -0,0 +1,170 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "MenuForm.h" +using namespace Tizen::App; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; +using namespace Tizen::Media; + +const wchar_t LIST_STYLE_CALL_NORMAL_BITMAP[] = L"call_type1.png"; +const wchar_t LIST_STYLE_CALL_PRESS_BITMAP[] = L"call_f_type1.png"; +const wchar_t LIST_STYLE_MSG_NORMAL_BITMAP[] = L"message_type1.png"; +const wchar_t LIST_STYLE_MSG_PRESS_BITMAP[] = L"message_f_type1.png"; + +const wchar_t ICON_STYLE_CALL_NORMAL_BITMAP[] = L"call_type2.png"; +const wchar_t ICON_STYLE_CALL_PRESS_BITMAP[] = L"call_f_type2.png"; +const wchar_t ICON_STYLE_MSG_NORMAL_BITMAP[] = L"message_type2.png"; +const wchar_t ICON_STYLE_MSG_PRESS_BITMAP[] = L"message_f_type2.png"; + +const wchar_t GRID_STYLE_CALL_NORMAL_BITMAP[] = L"call_type2.png"; +const wchar_t GRID_STYLE_CALL_PRESS_BITMAP[] = L"call_f_type2.png"; +const wchar_t GRID_STYLE_CALL_HIGHLIGHT_BITMAP[] = L"alarm_type1.png"; +const wchar_t GRID_STYLE_MSG_NORMAL_BITMAP[] = L"message_type2.png"; +const wchar_t GRID_STYLE_MSG_PRESS_BITMAP[] = L"message_f_type2.png"; +const wchar_t GRID_STYLE_MSG_HIGHLIGHT_BITMAP[] = L"home_type1.png"; + +const int LABEL_HEIGHT = 150; + +MenuForm::MenuForm() + : __pContextMenuIcon(null) + , __pContextMenuIconText(null) + , __pContextMenuGrid(null) + , __pLabelLog(null) +{ +} + +MenuForm::~MenuForm() +{ +} + +bool +MenuForm::Initialize(void) +{ + Construct(L"IDF_FORM_MENU"); + return true; +} + +result +MenuForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + CreateContextMenuListStyle(); + CreateContextMenuGridStyle(); + + Button* pButtonList = static_cast<Button*>(GetControl("IDC_BUTTON_LIST", true)); + if(pButtonList) + { + pButtonList->SetActionId(ID_BUTTON_CONTEXT_LIST); + pButtonList->AddActionEventListener(*this); + } + Button* pButtonGrid = static_cast<Button*>(GetControl("IDC_BUTTON_GRID", true)); + if(pButtonGrid) + { + pButtonGrid->SetActionId(ID_BUTTON_CONTEXT_GRID); + pButtonGrid->AddActionEventListener(*this); + } + + return r; +} + +result +MenuForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + delete __pContextMenuIcon; + delete __pContextMenuIconText; + delete __pContextMenuGrid; + + return r; +} + +void +MenuForm::CreateContextMenuListStyle(void) +{ + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + Bitmap* pNormalBitmap1 = pAppResource->GetBitmapN(LIST_STYLE_CALL_NORMAL_BITMAP); + Bitmap* pPressedBitmap1 = pAppResource->GetBitmapN(LIST_STYLE_CALL_PRESS_BITMAP); + Bitmap* pNormalBitmap2 = pAppResource->GetBitmapN(LIST_STYLE_MSG_NORMAL_BITMAP); + Bitmap* pPressedBitmap2 = pAppResource->GetBitmapN(LIST_STYLE_MSG_PRESS_BITMAP); + + __pContextMenuIconText = new (std::nothrow) ContextMenu(); + __pContextMenuIconText->Construct(Point(360, 260), CONTEXT_MENU_STYLE_LIST); + __pContextMenuIconText->AddItem(L"Item 1", ID_CONTEXT_ITEM1, *pNormalBitmap1, pPressedBitmap1); + __pContextMenuIconText->AddItem(L"Item 2", ID_CONTEXT_ITEM2, *pNormalBitmap2, pPressedBitmap2); + __pContextMenuIconText->AddActionEventListener(*this); + + // Deallocate bitmaps + delete pNormalBitmap1; + delete pPressedBitmap1; + delete pNormalBitmap2; + delete pPressedBitmap2; + +} + +void +MenuForm::CreateContextMenuGridStyle(void) +{ + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + Bitmap* pNormalBitmap1 = pAppResource->GetBitmapN(GRID_STYLE_CALL_NORMAL_BITMAP); + Bitmap* pPressedBitmap1 = pAppResource->GetBitmapN(GRID_STYLE_CALL_PRESS_BITMAP); + Bitmap* pHighlightBitmap1 = pAppResource->GetBitmapN(GRID_STYLE_CALL_HIGHLIGHT_BITMAP); + + Bitmap* pNormalBitmap2 = pAppResource->GetBitmapN(GRID_STYLE_MSG_NORMAL_BITMAP); + Bitmap* pPressedBitmap2 = pAppResource->GetBitmapN(GRID_STYLE_MSG_PRESS_BITMAP); + Bitmap* pHighlightBitmap2 = pAppResource->GetBitmapN(GRID_STYLE_MSG_HIGHLIGHT_BITMAP); + + __pContextMenuGrid = new (std::nothrow) ContextMenu(); + __pContextMenuGrid->Construct(Point(360, 365), CONTEXT_MENU_STYLE_GRID); + __pContextMenuGrid->AddItem(*pNormalBitmap1,pPressedBitmap1,pHighlightBitmap1, ID_CONTEXT_ITEM1); + __pContextMenuGrid->AddItem(*pNormalBitmap2,pPressedBitmap2,pHighlightBitmap2, ID_CONTEXT_ITEM2); + __pContextMenuGrid->AddItem(L"Item 1", ID_CONTEXT_ITEM3); + __pContextMenuGrid->AddItem(L"Long Item 1", ID_CONTEXT_ITEM4); + __pContextMenuGrid->AddItem(L"Item 2", ID_CONTEXT_ITEM5); + __pContextMenuGrid->AddItem(L"Long Long Item 1", ID_CONTEXT_ITEM6); + __pContextMenuGrid->AddActionEventListener(*this); + // Deallocate bitmaps + delete pNormalBitmap1; + delete pPressedBitmap1; + delete pHighlightBitmap1; + delete pNormalBitmap2; + delete pPressedBitmap2; + delete pHighlightBitmap2; +} + +void +MenuForm::OnActionPerformed(const Control& source, int actionId) +{ + String itemText(L""); + switch (actionId) + { + case ID_BUTTON_CONTEXT_LIST: + __pContextMenuIconText->SetShowState(true); + __pContextMenuIconText->Show(); + break; + case ID_BUTTON_CONTEXT_GRID: + __pContextMenuGrid->SetShowState(true); + __pContextMenuGrid->Show(); + break; + default: + break; + } +} diff --git a/project/src/MsgBoxPopupForm.cpp b/project/src/MsgBoxPopupForm.cpp new file mode 100644 index 0000000..085310a --- /dev/null +++ b/project/src/MsgBoxPopupForm.cpp @@ -0,0 +1,173 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "MsgBoxPopupForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +MsgBoxPopupForm::MsgBoxPopupForm(void) + : __pPopup(null) + , __pProgressPopup(null) + , __pLabel(null) +{ +} + +MsgBoxPopupForm::~MsgBoxPopupForm(void) +{ +} + +bool +MsgBoxPopupForm::Initialize(void) +{ + Construct(L"IDF_FORM_MSGBOXPOPUP"); + return true; +} + +result +MsgBoxPopupForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + __pProgressPopup = new (std::nothrow) ProgressPopup(); + __pProgressPopup->Construct(true,false); + __pProgressPopup->SetTitleText(L"Title"); + __pProgressPopup->SetBounds(260,260,200,500); + __pProgressPopup->SetText(L"Hello World!"); + __pProgressPopup->AddProgressPopupEventListener(*this); + + __pPopup = new (std::nothrow) Popup(); + __pPopup->Construct(true, Dimension(600, 750)); + __pPopup->SetTitleText(L"Title"); + + Rectangle rect; + rect = __pPopup->GetClientAreaBounds(); + __pLabel = new (std::nothrow) Label(); + __pLabel->Construct(Rectangle(0, 0, rect.width, 180), L"Hello World!"); + __pLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER); + + __pPopup->AddControl(*__pLabel); + + Button *pButtonClose = new (std::nothrow) Button(); + pButtonClose->Construct(Rectangle(190, 510, 180, 74), L"Close"); + pButtonClose->SetActionId(ID_BUTTON_CLOSE_POPUP); + pButtonClose->AddActionEventListener(*this); + __pPopup->AddControl(*pButtonClose); + + + Button* pButtonMessageBox = static_cast<Button*>(GetControl("IDC_BUTTON_MESSAGEBOX", true)); + if(pButtonMessageBox) + { + pButtonMessageBox->SetActionId(ID_BUTTON_MESSAGEBOX); + pButtonMessageBox->AddActionEventListener(*this); + } + Button* pButtonPopup = static_cast<Button*>(GetControl("IDC_BUTTON_POPUP", true)); + if(pButtonPopup) + { + pButtonPopup->SetActionId(ID_BUTTON_POPUP); + pButtonPopup->AddActionEventListener(*this); + } + + Button* pButtonProgressPopup = static_cast<Button*>(GetControl("IDC_BUTTON_PROGRESSPOPUP", true)); + if(pButtonPopup) + { + pButtonProgressPopup->SetActionId(ID_BUTTON_PROGRESSPOPUP); + pButtonProgressPopup->AddActionEventListener(*this); + } + + return r; +} + +result +MsgBoxPopupForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + delete __pPopup; + delete __pProgressPopup; + + return r; +} + +void +MsgBoxPopupForm::ShowMessageBox(void) +{ + MessageBox* pMessageBox = new (std::nothrow) MessageBox(); + pMessageBox->Construct(L"Title", L"Hello world!", MSGBOX_STYLE_OKCANCEL, 3000); + + int ModalResult; + pMessageBox->ShowAndWait(ModalResult); + + delete pMessageBox; +} + +void +MsgBoxPopupForm::ShowPopup(void) +{ + __pPopup->SetShowState(true); + __pPopup->Show(); +} + +void +MsgBoxPopupForm::HidePopup(void) +{ + __pPopup->SetShowState(false); + Invalidate(true); +} + +void +MsgBoxPopupForm::ShowProgressPopup(void) +{ + __pProgressPopup->SetShowState(true); + __pProgressPopup->Show(); +} + +void +MsgBoxPopupForm::HideProgressPopup(void) +{ + +} + +void +MsgBoxPopupForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_BUTTON_MESSAGEBOX: + ShowMessageBox(); + break; + case ID_BUTTON_POPUP: + ShowPopup(); + break; + case ID_BUTTON_CLOSE_POPUP: + HidePopup(); + break; + case ID_BUTTON_PROGRESSPOPUP: + ShowProgressPopup(); + break; + default: + break; + } +} + +void +MsgBoxPopupForm::OnProgressPopupCanceled(void) +{ + __pProgressPopup->SetShowState(false); + Invalidate(true); +} diff --git a/project/src/NavigationForm.cpp b/project/src/NavigationForm.cpp new file mode 100644 index 0000000..1dbcf27 --- /dev/null +++ b/project/src/NavigationForm.cpp @@ -0,0 +1,563 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "NavigationForm.h" + +using namespace Tizen::App; +using namespace Tizen::Base; +using namespace Tizen::Base::Collection; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Media; +using namespace Tizen::Ui::Scenes; + +const int ITEM_COUNT = 15; + +NavigationForm::NavigationForm(void) + : __pTabBar(null) + , __pheaderLeftItemBitmap(null) + , __pLeftItemBitmap(null) + , __pRightItemBitmap(null) + , __pLogLabel(null) + , __pList(null) + , __headerTypeIndex(0) + , __footerTypeIndex(0) + , __startY(0) + , __isTranslucent(false) + , __isVisible(true) + , __isOpened(false) +{ +} +NavigationForm::~NavigationForm(void) +{ +} + +result +NavigationForm::OnTerminating(void) +{ + result r = E_SUCCESS; + delete __pLeftItemBitmap; + delete __pRightItemBitmap; + delete __pheaderLeftItemBitmap; + return r; +} +bool +NavigationForm::Initialize(void) +{ + Form::Construct(L"IDF_FORM_NAVIGATION"); + return true; +} + +result +NavigationForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + Header* pHeader = GetHeader(); + pHeader->AddActionEventListener(*this); + + Footer* pFooter = GetFooter(); + pFooter->AddActionEventListener(*this); + + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + + __pheaderLeftItemBitmap = pAppResource->GetBitmapN(L"alarm_type1.png"); + __pRightItemBitmap = pAppResource->GetBitmapN(L"message_type2.png"); + __pLeftItemBitmap = pAppResource->GetBitmapN(L"alarm_type2.png"); + + Rectangle rc = GetClientAreaBounds(); + if (!CreateMainList()) + { + return false; + } + + __startY = rc.y; + + SetHeaderStyle(HEADER_STYLE_0); + SetFooterStyle(FOOTER_STYLE_0); + + return r; +} +void +NavigationForm::SetFooterStyle(int footerType) +{ + Footer* pFooter = GetFooter(); + pFooter->RemoveAllItems(); + pFooter->RemoveAllButtons(); + + switch (footerType) + { + case FOOTER_STYLE_0: + { + FooterItem footerItem1; + footerItem1.Construct(ID_FOOTER_ITEM1); + footerItem1.SetText(L"1"); + + FooterItem footerItem2; + footerItem2.Construct(ID_FOOTER_ITEM2); + footerItem2.SetText(L"2"); + + pFooter->SetStyle(FOOTER_STYLE_SEGMENTED_TEXT); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + pFooter->SetBackButton (); + } + break; + case FOOTER_STYLE_1: + { + FooterItem footerItem1; + footerItem1.Construct(ID_FOOTER_ITEM1); + footerItem1.SetText(L"1"); + + FooterItem footerItem2; + footerItem2.Construct(ID_FOOTER_ITEM2); + footerItem2.SetText(L"2"); + + ButtonItem buttonItem; + buttonItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_FOOTER_LEFTBUTTON); + buttonItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pLeftItemBitmap); + + pFooter->SetStyle(FOOTER_STYLE_SEGMENTED_TEXT); + pFooter->SetButton(BUTTON_POSITION_LEFT, buttonItem); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + } + break; + case FOOTER_STYLE_2: + { + FooterItem footerItem1; + footerItem1.Construct(ID_FOOTER_ITEM1); + footerItem1.SetText(L"1"); + + FooterItem footerItem2; + footerItem2.Construct(ID_FOOTER_ITEM2); + footerItem2.SetText(L"2"); + + FooterItem footerItem3; + footerItem3.Construct(ID_FOOTER_ITEM3); + footerItem3.SetText(L"3"); + + FooterItem footerItem4; + footerItem4.Construct(ID_FOOTER_ITEM4); + footerItem4.SetText(L"4"); + + FooterItem footerItem5; + footerItem5.Construct(ID_FOOTER_ITEM5); + footerItem5.SetText(L"5"); + + FooterItem footerItem6; + footerItem6.Construct(ID_FOOTER_ITEM6); + footerItem6.SetText(L"6"); + + FooterItem footerItem7; + footerItem7.Construct(ID_FOOTER_ITEM7); + footerItem7.SetText(L"7"); + + pFooter->SetStyle(FOOTER_STYLE_TAB); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + pFooter->AddItem(footerItem3); + pFooter->AddItem(footerItem4); + pFooter->AddItem(footerItem5); + pFooter->AddItem(footerItem6); + pFooter->AddItem(footerItem7); + } + break; + case FOOTER_STYLE_3: + { + FooterItem footerItem1; + footerItem1.Construct(ID_FOOTER_ITEM1); + footerItem1.SetText(L"Button 1"); + + FooterItem footerItem2; + footerItem2.Construct(ID_FOOTER_ITEM2); + footerItem2.SetText(L"Button 2"); + + pFooter->SetStyle(FOOTER_STYLE_BUTTON_ICON_TEXT); + pFooter->SetBackButton(); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + } + break; + } +} +bool +NavigationForm::CreateMainList(void) +{ + __pList = static_cast <ListView*> (GetControl("IDC_LISTVIEW")); + __pList->SetItemProvider(*this); + __pList->AddListViewItemEventListener(*this); + return true; +} + +void +NavigationForm::SetHeaderStyle(int headerType) +{ + Header* pHeader = GetHeader(); + pHeader->RemoveAllButtons(); + pHeader->RemoveAllItems(); + + switch (headerType) + { + case HEADER_STYLE_0: + { + HeaderItem headerLeftItem; + headerLeftItem.Construct(ID_HEADER_LEFTITEM); + headerLeftItem.SetText(L"LEFT"); + + HeaderItem headerCenterItem; + headerCenterItem.Construct(ID_HEADER_CENTERITEM); + headerCenterItem.SetText(L"CENTER"); + + HeaderItem headerRightItem; + headerRightItem.Construct(ID_HEADER_RIGHTITEM); + headerRightItem.SetText(L"RIGHT"); + + pHeader->SetStyle(HEADER_STYLE_SEGMENTED); + pHeader->AddItem(headerLeftItem); + pHeader->AddItem(headerCenterItem); + pHeader->AddItem(headerRightItem); + } + break; + case HEADER_STYLE_1: + { + ButtonItem buttonLeftItem; + buttonLeftItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_HEADER_LEFTBUTTON); + buttonLeftItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pLeftItemBitmap); + + ButtonItem buttonRightItem; + buttonRightItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_HEADER_RIGHTBUTTON); + buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pRightItemBitmap); + + pHeader->SetStyle(HEADER_STYLE_TITLE); + pHeader->SetTitleText(L"TITLE"); + pHeader->SetButton(BUTTON_POSITION_LEFT, buttonLeftItem); + pHeader->SetButton(BUTTON_POSITION_RIGHT, buttonRightItem); + } + break; + case HEADER_STYLE_2: + { + ButtonItem buttonLeftItem; + buttonLeftItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_HEADER_LEFTBUTTON); + buttonLeftItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pLeftItemBitmap); + + ButtonItem buttonRightItem; + buttonRightItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_HEADER_RIGHTBUTTON); + buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pRightItemBitmap); + + pHeader->SetStyle(HEADER_STYLE_TITLE); + pHeader->SetTitleText(L"TITLE"); + pHeader->SetDescriptionText(L"description text"); + pHeader->SetButton(BUTTON_POSITION_LEFT, buttonLeftItem); + pHeader->SetButton(BUTTON_POSITION_RIGHT, buttonRightItem); + } + break; + case HEADER_STYLE_3: + { + ButtonItem buttonLeftItem; + buttonLeftItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_HEADER_LEFTBUTTON); + buttonLeftItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pLeftItemBitmap); + + ButtonItem buttonRightItem; + buttonRightItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_HEADER_RIGHTBUTTON); + buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pRightItemBitmap); + + HeaderItem headerLeftItem; + headerLeftItem.Construct(ID_HEADER_LEFTITEM); + headerLeftItem.SetText(L"LEFT"); + + HeaderItem headerRightItem; + headerRightItem.Construct(ID_HEADER_RIGHTITEM); + headerRightItem.SetText(L"RIGHT"); + + pHeader->SetStyle(HEADER_STYLE_SEGMENTED); + pHeader->AddItem(headerLeftItem); + pHeader->AddItem(headerRightItem); + pHeader->SetButton(BUTTON_POSITION_LEFT, buttonLeftItem); + pHeader->SetButton(BUTTON_POSITION_RIGHT, buttonRightItem); + } + break; + case HEADER_STYLE_4: + { + HeaderItem headerItem1; + headerItem1.Construct(ID_HEADER_ITEM1); + headerItem1.SetText(L"1"); + + HeaderItem headerItem2; + headerItem2.Construct(ID_HEADER_ITEM2); + headerItem2.SetText(L"2"); + + HeaderItem headerItem3; + headerItem3.Construct(ID_HEADER_ITEM3); + headerItem3.SetText(L"3"); + + HeaderItem headerItem4; + headerItem4.Construct(ID_HEADER_ITEM4); + headerItem4.SetText(L"4"); + + HeaderItem headerItem5; + headerItem5.Construct(ID_HEADER_ITEM5); + headerItem5.SetText(L"5"); + + HeaderItem headerItem6; + headerItem6.Construct(ID_HEADER_ITEM6); + headerItem6.SetText(L"6"); + + HeaderItem headerItem7; + headerItem7.Construct(ID_HEADER_ITEM7); + headerItem7.SetText(L"7"); + + pHeader->SetStyle(HEADER_STYLE_TAB); + pHeader->AddItem(headerItem1); + pHeader->AddItem(headerItem2); + pHeader->AddItem(headerItem3); + pHeader->AddItem(headerItem4); + pHeader->AddItem(headerItem5); + pHeader->AddItem(headerItem6); + pHeader->AddItem(headerItem7); + } + break; + case HEADER_STYLE_5: + { + HeaderItem headerLeftItem; + headerLeftItem.Construct(ID_HEADER_LEFTITEM); + headerLeftItem.SetText(L"LEFT"); + + HeaderItem headerRightItem; + headerRightItem.Construct(ID_HEADER_RIGHTITEM); + headerRightItem.SetText(L"RIGHT"); + + pHeader->SetStyle(HEADER_STYLE_SEGMENTED_WITH_TITLE); + pHeader->SetTitleText(L"TITLE"); + pHeader->AddItem(headerLeftItem); + pHeader->AddItem(headerRightItem); + } + break; + } +} + +void +NavigationForm::OnActionPerformed(const Control& source, int actionId) +{ + +} + +void +NavigationForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus status) +{ + // TODO: Add your implementation codes here + +} + +void +NavigationForm::OnListViewItemLongPressed(ListView& listView, int index, int elementId, bool& invokeListViewItemCallback) +{ + // TODO: Add your implementation codes here + +} + +void +NavigationForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status) +{ + // TODO: Add your implementation codes here + switch (index) + { + case 0: + { + __headerTypeIndex = 0; + SetHeaderStyle(__headerTypeIndex); + break; + } + case 1: + { + __headerTypeIndex = 1; + SetHeaderStyle(__headerTypeIndex); + break; + } + case 2: + { + __headerTypeIndex = 2; + SetHeaderStyle(__headerTypeIndex); + break; + } + case 3: + { + __headerTypeIndex = 3; + SetHeaderStyle(__headerTypeIndex); + break; + } + case 4: + { + __headerTypeIndex = 4; + SetHeaderStyle(__headerTypeIndex); + break; + } + case 5: + { + __headerTypeIndex = 5; + SetHeaderStyle(__headerTypeIndex); + break; + } + case 6: + { + __footerTypeIndex = 0; + SetFooterStyle(__footerTypeIndex); + break; + } + case 7: + { + __footerTypeIndex = 1; + SetFooterStyle(__footerTypeIndex); + break; + } + case 8: + { + __footerTypeIndex = 3; + SetFooterStyle(__footerTypeIndex); + break; + } + case 9: + { + __footerTypeIndex = 2; + SetFooterStyle(__footerTypeIndex); + break; + } + case 10: + { + result r = SetActionBarsTranslucent(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, false); + if (r == E_SUCCESS) + { + __isTranslucent = false; + } + else if (r == E_UNSUPPORTED_OPERATION) + { + } + } + break; + case 11: + { + result r = SetActionBarsTranslucent(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, true); + if (r==E_UNSUPPORTED_OPERATION) + { + } + } + break; + case 12: + { + SetActionBarsVisible(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, false); + __isVisible = false; + } + break; + case 13: + { + SetActionBarsVisible(FORM_ACTION_BAR_INDICATOR| FORM_ACTION_BAR_HEADER| FORM_ACTION_BAR_FOOTER, true); + __isVisible = true; + } + break; + case 14: + { + SceneManager* pSceneManager = SceneManager::GetInstance(); + AppAssert(pSceneManager); + pSceneManager->GoBackward(BackwardSceneTransition()); + break; + } + default: + break; + } + Invalidate(true); +} + +void +NavigationForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction) +{ + // TODO: Add your implementation codes here + +} +int +NavigationForm::GetItemCount(void) +{ + return ITEM_COUNT; +} +ListItemBase* +NavigationForm::CreateItem(int index, int itemWidth) +{ + ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL; + CustomItem* pItem = new (std::nothrow) CustomItem(); + pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 112), style); + Rectangle mainListItemRect(26, 32, GetClientAreaBounds().width, 50); + + switch(index) + { + case 0: + pItem->AddElement(mainListItemRect, ID_HEADER_STYLE, L"Header Style Segment", true); + break; + case 1: + pItem->AddElement(mainListItemRect, ID_HEADER_STYLE, L"Header Style Title With Icon", true); + break; + case 2: + pItem->AddElement(mainListItemRect, ID_HEADER_STYLE, L"Header Style Title With Description", true); + break; + case 3: + pItem->AddElement(mainListItemRect, ID_HEADER_STYLE, L"Header Style Segment With Icon", true); + break; + case 4: + pItem->AddElement(mainListItemRect, ID_HEADER_STYLE, L"Header Style Tab", true); + break; + case 5: + pItem->AddElement(mainListItemRect, ID_HEADER_STYLE, L"Header Style Segment with Title", true); + break; + case 6: + pItem->AddElement(mainListItemRect, ID_FOOTER_STYLE, L"Footer Style Segment Text", true); + break; + case 7: + pItem->AddElement(mainListItemRect, ID_FOOTER_STYLE, L"Footer Style Segment Text, Icon", true); + break; + case 8: + pItem->AddElement(mainListItemRect, ID_FOOTER_STYLE, L"Footer Style Button Text", true); + break; + case 9: + pItem->AddElement(mainListItemRect, ID_FOOTER_STYLE, L"Footer Style Tab", true); + break; + case 10: + pItem->AddElement(mainListItemRect, ID_TRANSLUCENT, L"Translucent Off", true); + break; + case 11: + pItem->AddElement(mainListItemRect, ID_TRANSLUCENT, L"Translucent On", true); + break; + case 12: + pItem->AddElement(mainListItemRect, ID_VISIBLE, L"Visible Off", true); + break; + case 13: + pItem->AddElement(mainListItemRect, ID_VISIBLE, L"Visible On", true); + break; + case 14: + pItem->AddElement(mainListItemRect, ID_EXIT, L"Back", true); + break; + default: + break; + } + return pItem; +} + +bool +NavigationForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} diff --git a/project/src/OverlayKeypadForm.cpp b/project/src/OverlayKeypadForm.cpp new file mode 100644 index 0000000..86c51c7 --- /dev/null +++ b/project/src/OverlayKeypadForm.cpp @@ -0,0 +1,183 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "OverlayKeypadForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Base; +using namespace Tizen::System; +using namespace Tizen::Graphics; + +OverlayKeypadForm::OverlayKeypadForm(void) + : __pEditArea(null) + , __pEditField(null) + , __pEditFieldText(null) + , __pEditAreaText(null) + , __pEditFieldPreText(null) + , __pEditAreaPreText(null) +{ +} + +OverlayKeypadForm::~OverlayKeypadForm(void) +{ +} + +bool +OverlayKeypadForm::Initialize(void) +{ + Construct(L"IDF_FORM_OVERLAYKEYPAD"); + return true; +} + +void +OverlayKeypadForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus) +{ + SetActionBarsVisible(FORM_ACTION_BAR_HEADER,true); + + Invalidate(true); +} + +result +OverlayKeypadForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + SetOrientation(ORIENTATION_AUTOMATIC); + AddOrientationEventListener(*this); + Tizen::Ui::OrientationStatus orientationStatus = GetOrientationStatus(); + if(orientationStatus == ORIENTATION_STATUS_LANDSCAPE|| orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE) + { + SetActionBarsVisible(FORM_ACTION_BAR_HEADER,false); + } + + __pScrollPanel = static_cast<ScrollPanel*>(GetControl(L"IDC_SCROLLPANEL", false)); + __pEditField = static_cast<EditField*>(GetControl(L"IDC_EDITFIELD", true)); + __pEditArea = static_cast<EditArea*>(GetControl(L"IDC_EDITAREA", true)); + + __pEditField->AddTextEventListener(*this); + __pEditField->SetOverlayKeypadCommandButtonVisible(false); + __pEditField->AddKeypadEventListener(*this); + + __pEditArea->AddTextEventListener(*this); + __pEditArea->SetOverlayKeypadCommandButtonVisible(false); + __pEditArea->AddKeypadEventListener(*this); + + Button* pButtonClear = static_cast<Button*>(GetControl(L"IDC_BUTTON_EDITAREA_CLEAR", true)); + pButtonClear->SetActionId(ID_BUTTON_EDITAREA_CLEAR); + pButtonClear->AddActionEventListener(*this); + + __pEditFieldText = new (std::nothrow) String(); + __pEditAreaText = new (std::nothrow) String(); + __pEditAreaPreText = new (std::nothrow) String(); + __pEditFieldPreText = new (std::nothrow) String(); + + return r; +} + +result +OverlayKeypadForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + delete __pEditFieldText; + delete __pEditAreaText; + delete __pEditFieldPreText; + delete __pEditAreaPreText; + + return r; +} + +void +OverlayKeypadForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_BUTTON_EDITAREA_CLEAR: + *__pEditAreaPreText = L""; + *__pEditFieldPreText = L""; + __pEditArea->Clear(); + __pEditField->Clear(); + Invalidate(true); + break; + case ID_BUTTON_DONE: + *__pEditFieldPreText = __pEditField->GetText(); + *__pEditAreaPreText = __pEditArea->GetText(); + __pEditField->HideKeypad(); + __pEditField->Invalidate(false); + __pEditArea->HideKeypad(); + __pEditArea->Invalidate(false); + break; + case ID_BUTTON_CANCEL: + __pEditField->SetText(*__pEditFieldPreText); + __pEditArea->SetText(*__pEditAreaPreText); + __pEditField->HideKeypad(); + __pEditField->Invalidate(false); + __pEditArea->HideKeypad(); + __pEditArea->Invalidate(false); + break; + default: + break; + } +} + +void +OverlayKeypadForm::OnKeypadWillOpen(Control& source) +{ + Footer* pFooter = GetFooter(); + pFooter->SetShowState(false); +} + +void +OverlayKeypadForm::OnKeypadOpened(Control& source) +{ + Header* pHeader = GetHeader(); + + HeaderItem doneItem; + HeaderItem cancelItem; + + doneItem.Construct(ID_BUTTON_DONE); + doneItem.SetText("Done"); + + cancelItem.Construct(ID_BUTTON_CANCEL); + cancelItem.SetText("Cancel"); + + pHeader->SetStyle(HEADER_STYLE_BUTTON); + pHeader->AddItem(doneItem); + pHeader->AddItem(cancelItem); + pHeader->AddActionEventListener(*this); +} + +void +OverlayKeypadForm::OnKeypadClosed(Control& source) +{ + Header* pHeader = GetHeader(); + pHeader->SetStyle(HEADER_STYLE_TITLE); + pHeader->SetTitleText(L"OverlayKeypad"); + Footer* pFooter = GetFooter(); + pFooter->SetShowState(true); + Invalidate(true); +} + +void +OverlayKeypadForm::OnTextValueChanged(const Control& source) +{ +} + +void +OverlayKeypadForm::OnTextValueChangeCanceled(const Control& source) +{ +} diff --git a/project/src/PanelForm.cpp b/project/src/PanelForm.cpp new file mode 100644 index 0000000..438dbcd --- /dev/null +++ b/project/src/PanelForm.cpp @@ -0,0 +1,52 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "PanelForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +const int LABEL_HEIGHT = 90; + +PanelForm::PanelForm(void) + : __pLabelLog(null) +{ +} + +PanelForm::~PanelForm(void) +{ +} + +bool +PanelForm::Initialize(void) +{ + Construct(L"IDF_FORM_PANEL"); + return true; +} + +result +PanelForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + return r; +} + +void +PanelForm::OnActionPerformed(const Control& source, int actionId) +{ +} diff --git a/project/src/ProgressForm.cpp b/project/src/ProgressForm.cpp new file mode 100644 index 0000000..821716d --- /dev/null +++ b/project/src/ProgressForm.cpp @@ -0,0 +1,93 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "ProgressForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; + +ProgressForm::ProgressForm(void) + : __pProgress(null) + , __pProgressDisable(null) + , __pProgressColor(null) +{ +} + +ProgressForm::~ProgressForm(void) +{ +} + +bool +ProgressForm::Initialize(void) +{ + Construct(L"IDF_FORM_PROGRESS"); + return true; +} + +result +ProgressForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + __pProgress = static_cast<Progress*>(GetControl(L"IDC_PROGRESS", true)); + __pProgressColor = static_cast<Progress*>(GetControl(L"IDC_PROGRESS_COLOR", true)); + __pProgressDisable = static_cast<Progress*>(GetControl(L"IDC_PROGRESS_DISABLE", true)); + __pProgressDisable->SetEnabled(false); + + Button* pButtonUp = static_cast<Button*>(GetControl(L"IDC_BUTTON_UP", true)); + Button* pButtonDown = static_cast<Button*>(GetControl(L"IDC_BUTTON_DOWN", true)); + + pButtonUp->SetActionId(ID_BUTTON_UP); + pButtonDown->SetActionId(ID_BUTTON_DOWN); + pButtonUp->AddActionEventListener(*this); + pButtonDown->AddActionEventListener(*this); + + return r; +} + +void +ProgressForm::OnActionPerformed(const Control& source, int actionId) +{ + + int val = __pProgress->GetValue(); + int maxVal, minVal; + __pProgress->GetRange(minVal, maxVal); + switch(actionId) + { + case ID_BUTTON_UP: + if(val < maxVal) + { + val++; + } + __pProgress->SetValue(val); + __pProgressColor->SetValue(val); + break; + case ID_BUTTON_DOWN: + if(val > minVal) + { + val--; + } + __pProgress->SetValue(val); + __pProgressColor->SetValue(val); + break; + default: + break; + } + __pProgress->Invalidate(false); + __pProgressColor->Invalidate(false); + +} diff --git a/project/src/QuickPanelFrameForm.cpp b/project/src/QuickPanelFrameForm.cpp new file mode 100644 index 0000000..46374f1 --- /dev/null +++ b/project/src/QuickPanelFrameForm.cpp @@ -0,0 +1,144 @@ +// +// Tizen native SDK +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "QuickPanelFrameForm.h" + +using namespace Tizen::App; +using namespace Tizen::Base; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Shell; + +const wchar_t VOLUME_MIN_BITMAP[] = L"sliderVolumeMin.png"; +const wchar_t VOLUME_MAX_BITMAP[] = L"sliderVolumeMax.png"; + +QuickPanelFrameForm::QuickPanelFrameForm(void) + : __pQuickPanelFrame(null) + , __pLogLabel(null) + , __pQuickPanelFrameButton(null) + , __pSlider(null) + +{ +} +QuickPanelFrameForm::~QuickPanelFrameForm(void) +{ + delete __pQuickPanelFrame; +} + +result +QuickPanelFrameForm::OnTerminating(void) +{ + result r = E_SUCCESS; + return r; +} + +bool +QuickPanelFrameForm::Initialize(void) +{ + Form::Construct(FORM_STYLE_NORMAL| FORM_STYLE_INDICATOR| FORM_STYLE_HEADER| FORM_STYLE_FOOTER); + return true; +} + +result +QuickPanelFrameForm::OnInitializing(void) +{ + result r = E_SUCCESS; + BaseForm::OnInitializing(); + + Header* pHeader = GetHeader(); + pHeader->SetTitleText(L"QuickPanelFrame"); + + SetFooter(); + CreateQuickPanelFrame(); + AttachControls(); + + return r; +} + +void +QuickPanelFrameForm::SetFooter() +{ + Footer* pFooter = GetFooter(); + if (pFooter) + { + FooterItem footerItem1; + footerItem1.Construct(ID_FOOTER_ITEM1); + footerItem1.SetText(L"Attached"); + + FooterItem footerItem2; + footerItem2.Construct(ID_FOOTER_ITEM2); + footerItem2.SetText(L"Detached"); + + pFooter->SetStyle(FOOTER_STYLE_SEGMENTED_TEXT); + pFooter->AddItem(footerItem1); + pFooter->AddItem(footerItem2); + pFooter->AddActionEventListener(*this); + pFooter->SetBackButton(); + } +} + +void +QuickPanelFrameForm::CreateQuickPanelFrame() +{ + Rectangle rect = GetClientAreaBounds(); + __pQuickPanelFrame = new QuickPanelFrame(); + __pQuickPanelFrame->Construct(400); + + __pQuickPanelFrameButton = new Button(); + __pQuickPanelFrameButton->Construct(Rectangle(15,170,660,200),L"QuickPanelFrame Button"); + __pQuickPanelFrame->AddControl(*__pQuickPanelFrameButton); + + __pSlider = new Slider(); + + __pSlider->Construct(Rectangle(40, 10, 610, 150), SLIDER_STYLE_NONE, 0, 15); + __pQuickPanelFrame->AddControl(*__pSlider); + + __pLogLabel = new Label(); + __pLogLabel->Construct(Rectangle(0, rect.height - 400, rect.width, 400), L"Drag down indicator to check the QuickPanelFrame."); + __pLogLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT); + AddControl(*__pLogLabel); +} + +void +QuickPanelFrameForm::AttachControls() +{ + __pQuickPanelFrame->SetShowState(true); + __pQuickPanelFrame->Show(); +} + +void +QuickPanelFrameForm::DetachControls() +{ + __pQuickPanelFrame->SetShowState(false); + __pQuickPanelFrame->Show(); +} + +void +QuickPanelFrameForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) + { + case ID_FOOTER_ITEM1: + AttachControls(); + break; + case ID_FOOTER_ITEM2: + DetachControls(); + break; + } + __pLogLabel->Invalidate(false); +} + diff --git a/project/src/SceneRegister.cpp b/project/src/SceneRegister.cpp new file mode 100644 index 0000000..5fe6599 --- /dev/null +++ b/project/src/SceneRegister.cpp @@ -0,0 +1,102 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// + +#include "SceneRegister.h" +#include "FormFactory.h" +#include <FUi.h> + +using namespace Tizen::Ui::Scenes; + +// Definitions of extern. +const wchar_t* SCENE_ANIMATION_FORM = L"Scene_AnimationForm"; +const wchar_t* SCENE_BUTTON_FORM = L"Scene_ButtonForm"; +const wchar_t* SCENE_CHECK_BUTTON_FORM = L"Scene_CheckButtonForm"; +const wchar_t* SCENE_COLOR_PICKER_FORM = L"Scene_ColorPickerForm"; +const wchar_t* SCENE_CUSTOM_BUTTON_FORM = L"Scene_CustomButtonForm"; +const wchar_t* SCENE_DATE_TIME_FORM = L"Scene_DateTiemForm"; +const wchar_t* SCENE_EDIT_DATE_FORM = L"Scene_EditDateForm"; +const wchar_t* SCENE_EDIT_FORM = L"Scene_EditForm"; +const wchar_t* SCENE_EDIT_TIME_FORM = L"Scene_EditTimeForm"; +const wchar_t* SCENE_ENRICHED_TEXT_FORM = L"Scene_EnrichedTextForm"; +const wchar_t* SCENE_EXPANDABLE_EDIT_AREA_FORM = L"Scene_ExpandableEditAreaForm"; +const wchar_t* SCENE_GALLERY_FORM = L"Scene_GalleryForm"; +const wchar_t* SCENE_GROUPED_LISTVIEW_FORM = L"Scene_GroupedListViewForm"; +const wchar_t* SCENE_ICON_LISTVIEW_FORM = L"Scene_IconListViewForm"; +const wchar_t* SCENE_LISTVIEW_FORM = L"Scene_ListViewForm"; +const wchar_t* SCENE_MAIN_FORM = L"Scene_MainForm"; +const wchar_t* SCENE_MENU_FORM = L"Scene_MenuForm"; +const wchar_t* SCENE_MSG_BOX_POPUP_FORM = L"Scene_MsgboxPopupForm"; +const wchar_t* SCENE_NAVIGATION_FORM = L"Scene_NavigationForm"; +const wchar_t* SCENE_QUICK_PANEL_FRAME_FORM = L"Scene_QuickPanelFrame"; +const wchar_t* SCENE_OVERLAYKEYPAD_FORM = L"Scene_OverlayKeypadForm"; +const wchar_t* SCENE_PANEL_FORM = L"Scene_PanelForm"; +const wchar_t* SCENE_PROGRESS_FORM = L"Scene_ProgressForm"; +const wchar_t* SCENE_RADIOGROUP_FORM = L"Scene_RadioForm"; +const wchar_t* SCENE_SEARCHBAR_FORM = L"Scene_SearchBarForm"; +const wchar_t* SCENE_SLIDER_FORM = L"Scene_SliderForm"; +const wchar_t* SCENE_SPLIT_PANEL_FORM = L"Scene_SplitPanelForm"; +const wchar_t* SCENE_TABBAR_FORM = L"Scene_TabBarForm"; +const wchar_t* SCENE_TABLEVIER_FORM = L"Scene_TableViewForm"; +const wchar_t* SCENE_TEXTBOX_FORM = L"Scene_TextBoxForm"; + +SceneRegister::SceneRegister(void) +{ +} + +SceneRegister::~SceneRegister(void) +{ +} + +void +SceneRegister::RegisterAllScenes(void) +{ + static const wchar_t* PANEL_BLANK = L""; + static FormFactory formFactory; + + SceneManager* pSceneManager = SceneManager::GetInstance(); + AppAssert(pSceneManager); + pSceneManager->RegisterFormFactory(formFactory); + + pSceneManager->RegisterScene(SCENE_ANIMATION_FORM, FORM_ANIMATION, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_BUTTON_FORM, FORM_BUTTON, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_CHECK_BUTTON_FORM, FORM_CHECK_BUTTON, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_COLOR_PICKER_FORM, FORM_COLOR_PICKER, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_CUSTOM_BUTTON_FORM, FORM_CUSTOM_BUTTON, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_DATE_TIME_FORM, FORM_DATE_TIME, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_EDIT_FORM, FORM_EDIT, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_ENRICHED_TEXT_FORM, FORM_ENRICHED_TEXT, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_EXPANDABLE_EDIT_AREA_FORM, FORM_EXPANDABLE_EDIT_AREA, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_GALLERY_FORM, FORM_GALLERY, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_GROUPED_LISTVIEW_FORM, FORM_GROUPED_LISTVIEW, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_ICON_LISTVIEW_FORM, FORM_ICON_LISTVIEW, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_LISTVIEW_FORM, FORM_LISTVIEW, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_MAIN_FORM, FORM_MAIN, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_MENU_FORM, FORM_MENU, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_MSG_BOX_POPUP_FORM, FORM_MSG_BOX_POPUP, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_NAVIGATION_FORM, FORM_NAVIGATION, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_QUICK_PANEL_FRAME_FORM, FORM_QUICK_PANEL_FRAME, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_OVERLAYKEYPAD_FORM, FORM_OVERLAYKEYPAD, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_PANEL_FORM, FORM_PANEL, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_PROGRESS_FORM, FORM_PROGRESS, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_SEARCHBAR_FORM, FORM_SEARCHBAR, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_SLIDER_FORM, FORM_SLIDER, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_SPLIT_PANEL_FORM, FORM_SPLIT_PANEL, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_TABBAR_FORM, FORM_TABBAR, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_TABLEVIER_FORM, FORM_TABLEVIEW, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_TEXTBOX_FORM, FORM_TEXTBOX, PANEL_BLANK); + pSceneManager->RegisterScene(SCENE_QUICK_PANEL_FRAME_FORM, FORM_QUICK_PANEL_FRAME, PANEL_BLANK); +} diff --git a/project/src/SearchBarForm.cpp b/project/src/SearchBarForm.cpp new file mode 100644 index 0000000..641d5f9 --- /dev/null +++ b/project/src/SearchBarForm.cpp @@ -0,0 +1,367 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "SearchBarForm.h" + +using namespace Tizen::Base::Collection; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; +using namespace Tizen::Media; + +const int GROUP_MAX = 26; +const int ITEM_MAX = 30; + +SearchBarForm::SearchBarForm(void) + : __pSearchBar(null) + , __pHeader(null) + , __pAllTextGroupedListView(null) + , __pSearchBarListView(null) + , __pSearchedTextList(null) +{ +} + +SearchBarForm::~SearchBarForm(void) +{ +} + +bool +SearchBarForm::Initialize() +{ + Construct(L"IDF_FORM_SEARCHBAR"); + return true; +} + +result +SearchBarForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + Rectangle rect = GetClientAreaBounds(); + + __pAllTextGroupedListView = static_cast <GroupedListView*> (GetControl("IDC_GROUPEDLISTVIEW")); + __pAllTextGroupedListView->SetItemProvider(*this); + __pAllTextGroupedListView->AddGroupedListViewItemEventListener(*this); + __pAllTextGroupedListView->SetFastScrollIndex(L"abcdefghijklmnopqrstuvwxyz", false); + __pAllTextGroupedListView->AddFastScrollListener(*this); + + __pSearchBar = static_cast<SearchBar*>(GetControl("IDC_SEARCHBAR")); + __pSearchBar->SetText(L"Click here!"); + __pSearchBar->AddSearchBarEventListener(*this); + __pSearchBar->AddTextEventListener(*this); + __pSearchBar->AddKeypadEventListener(*this); + + SetGroupList(); + __pSearchBarListView = new (std::nothrow) ListView(); + __pSearchBarListView->Construct(Rectangle(0, 0, rect.width, rect.height - __pSearchBar->GetHeight()), true, false); + __pSearchBarListView->SetItemProvider(*this); + __pSearchBarListView->AddListViewItemEventListener(*this); + __pSearchBarListView->SetTextOfEmptyList(L"No search result"); + __pSearchBar->SetContent(__pSearchBarListView); + + __pSearchBarListView->AddTouchEventListener(*this); + __pSearchBarListView->SetShowState(false); + + // Create WatchTextList + __pSearchedTextList = new (std::nothrow) ArrayList(); + __pSearchedTextList->Construct(); + + AddControl(*__pAllTextGroupedListView); + AddControl(*__pSearchBar); + + return r; +} + +result +SearchBarForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + __pSearchedTextList->RemoveAll(true); + delete __pSearchedTextList; + + return r; +} + +void +SearchBarForm::SetGroupList(void) +{ + for (int i = 0; i < GROUP_MAX ; i ++) + { + __groupCapitalArray[i].Format(5, L"%c", i + 97); + } + for (int i = 0; i < GROUP_MAX; i ++) + { + for (int j = 0; j < ITEM_MAX; j ++) + { + String listItem = __groupCapitalArray[i]; + int stringNum = Tizen::Base::Utility::Math::Rand() % 7 + 1; + + for (int k = 0; k < stringNum; k ++) + { + int selectedAlpha = Tizen::Base::Utility::Math::Rand() % 26; + listItem += __groupCapitalArray[selectedAlpha]; + } + __pWordString[i][j] = listItem; + listItem = ""; + } + } + +} + +void +SearchBarForm::OnKeypadActionPerformed(Control &source, Tizen::Ui::KeypadAction keypadAction) +{ + __pSearchBar->HideKeypad(); + Invalidate(true); +} + +void +SearchBarForm::OnKeypadClosed(Control &source) +{ + SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true); +} + +void +SearchBarForm::OnKeypadOpened(Control &source) +{ + SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, false); +} + +void +SearchBarForm::OnSearchBarModeChanged(SearchBar& source, SearchBarMode mode) +{ + Rectangle clientRect; + __pSearchBar->SetText(L""); + if(mode == SEARCH_BAR_MODE_INPUT) + { + SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, false); + clientRect = GetClientAreaBounds(); + __pSearchBar->SetContentAreaSize(Dimension(clientRect.width, clientRect.height - __pSearchBar->GetHeight())); + __pSearchBarListView->SetSize(Dimension(clientRect.width, clientRect.height - __pSearchBar->GetHeight())); + __pAllTextGroupedListView->SetSize(Dimension(clientRect.width, clientRect.height)); + __pAllTextGroupedListView->SetEnabled(false); + } + else + { + SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true); + clientRect = GetClientAreaBounds(); + __pSearchedTextList->RemoveAll(true); + __pSearchBarListView->UpdateList(); + __pAllTextGroupedListView->SetShowState(true); + __pSearchBarListView->SetShowState(false); + __pSearchBar->SetText(L"Click here!"); + __pAllTextGroupedListView->SetSize(Dimension(clientRect.width, clientRect.height - __pSearchBar->GetHeight())); + __pAllTextGroupedListView->SetEnabled(true); + } + __pAllTextGroupedListView->ScrollToItem(0, -1); + Invalidate(true); +} + +void +SearchBarForm::OnTextValueChanged(const Control& source) +{ + UpdateSearchResult(); +} + +void +SearchBarForm::UpdateSearchResult(void) +{ + String inputText = __pSearchBar->GetText(); + int Indexof = -1; + int GetItemCount = 0; + + if(inputText.CompareTo(L"") != 0) + { + __pAllTextGroupedListView->SetShowState(false); + __pSearchBarListView->SetShowState(true); + __pSearchedTextList->RemoveAll(true); + + for (int i = 0; i < 26; i ++) + { + for (int j = 0; j < ITEM_MAX ; j ++) + { + Indexof = -1; + GetItemCount = __pSearchedTextList->GetCount(); + __pWordString[i][j].IndexOf(inputText, 0, Indexof); + if(Indexof >= 0) + __pSearchedTextList->InsertAt(*(new (std::nothrow) String(__pWordString[i][j])), GetItemCount); + } + } + __pSearchBarListView->UpdateList(); + } + else + { + __pSearchedTextList->RemoveAll(true); + __pSearchBarListView->UpdateList(); + __pAllTextGroupedListView->SetShowState(true); + __pSearchBarListView->SetShowState(false); + __pSearchBar->SetText(L""); + } + Invalidate(true); +} + +void +SearchBarForm::OnFastScrollIndexSelected(Control& source, Tizen::Base::String& index) +{ + String compare(L""); + for(int i = 0; i < GROUP_MAX; i ++) + { + compare.Format(5, L"%c", i + 97); + if(compare.CompareTo(index) == 0) + { + __pAllTextGroupedListView->ScrollToItem(i, -1); + } + } + __pAllTextGroupedListView->Invalidate(false); +} + +int +SearchBarForm::GetGroupCount(void) +{ + return GROUP_MAX; +} + +int +SearchBarForm::GetItemCount(int groupIndex) +{ + return ITEM_MAX; +} + +GroupItem* +SearchBarForm::CreateGroupItem(int groupIndex, int itemWidth) +{ + GroupItem* pItem = new (std::nothrow) GroupItem(); + pItem->Construct(Dimension(itemWidth, 48)); + String text(L""); + text = __groupCapitalArray[groupIndex]; + pItem->SetElement(text, null); + + return pItem; +} + +bool +SearchBarForm::DeleteGroupItem(int groupIndex, GroupItem* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} + +ListItemBase* +SearchBarForm::CreateItem(int groupIndex, int itemIndex, int itemWidth) +{ + ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL; + CustomItem* pItem = new (std::nothrow) CustomItem(); + pItem->Construct(Dimension(itemWidth, 112), style); + pItem->AddElement(Rectangle(40, 32, 300, 50), ID_FORMAT_STRING, __pWordString[groupIndex][itemIndex], 40); + + return pItem; +} + +bool +SearchBarForm::DeleteItem(int groupIndex, int itemIndex, ListItemBase* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} + +void +SearchBarForm::OnGroupedListViewItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListItemStatus state) +{ + if (itemIndex != ID_GROUPITEM_INDEX) + { + String selectedText; + selectedText = __pWordString[groupIndex][itemIndex]; + __pSearchBar->SetText(selectedText); + Invalidate(true); + + selectedText.Append(L" is selected"); + MessageBox messageBox; + messageBox.Construct(L"SearchBar", selectedText, MSGBOX_STYLE_OK, 2000); + int modalResult; + messageBox.ShowAndWait(modalResult); + } +} + +void +SearchBarForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status) +{ + String selectedText; + selectedText = *(static_cast<String *>(__pSearchedTextList->GetAt(index))); + __pSearchBar->SetText(selectedText); + UpdateSearchResult(); + + selectedText.Append(L" is selected"); + MessageBox messageBox; + messageBox.Construct(L"SearchBar", selectedText, MSGBOX_STYLE_OK, 2000); + int modalResult; + messageBox.ShowAndWait(modalResult); +} + +void +SearchBarForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction) +{ +} + +void +SearchBarForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus state) +{ +} + +int +SearchBarForm::GetItemCount(void) +{ + if (__pSearchedTextList != null) + { + return __pSearchedTextList->GetCount(); + } + + return 0; +} + +ListItemBase* +SearchBarForm::CreateItem(int index, int itemWidth) +{ + + String* pItemText = null; + pItemText = static_cast<String *>(__pSearchedTextList->GetAt(index)); + + CustomItem* pItem = new (std::nothrow) CustomItem(); + if(pItemText) + { + pItem->Construct(Dimension(itemWidth, 112), LIST_ANNEX_STYLE_NORMAL); + pItem->AddElement(Rectangle(26, 32, 300, 50), 0, *pItemText, true); + } + return pItem; +} + +bool +SearchBarForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} + +void +SearchBarForm::OnTouchPressed (const Control& source, const Point& currentPosition, const TouchEventInfo &touchInfo) +{ + __pSearchBar->HideKeypad(); + Invalidate(true); +} diff --git a/project/src/SliderForm.cpp b/project/src/SliderForm.cpp new file mode 100644 index 0000000..dfc06f7 --- /dev/null +++ b/project/src/SliderForm.cpp @@ -0,0 +1,66 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "SliderForm.h" + +using namespace Tizen::Base; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; + +SliderForm::SliderForm(void) + : __pLabelLog(null) + , __pSlider(null) +{ +} + +SliderForm::~SliderForm(void) +{ +} + +bool +SliderForm::Initialize(void) +{ + Construct(L"IDF_FORM_SLIDER"); + return true; +} + +result +SliderForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + Slider *pSlider = static_cast<Slider*>(GetControl("IDC_SLIDER", true)); + pSlider->AddAdjustmentEventListener(*this); + + Slider * pSliderDisable = static_cast<Slider*>(GetControl("IDC_SLIDER_DISABLE", true)); + pSliderDisable->SetEnabled(false); + + return r; +} + + +void +SliderForm::OnAdjustmentValueChanged(const Control& source, int adjustment) +{ +} + +void +SliderForm::OnSliderBarMoved(Slider& source, int value) +{ +} + diff --git a/project/src/SplitPanelForm.cpp b/project/src/SplitPanelForm.cpp new file mode 100644 index 0000000..097e7ca --- /dev/null +++ b/project/src/SplitPanelForm.cpp @@ -0,0 +1,237 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "SplitPanelForm.h" +#include <FLocales.h> +#include <FSystem.h> + +using namespace Tizen::Base; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Locales; +using namespace Tizen::System; + +const Color FIRST_BLACKGROUND_COLOR = Color(200, 75, 76, 255); +const Color SECOND_BLACKGROUND_COLOR = Color(212, 209, 204, 255); + +SplitPanelForm::SplitPanelForm(void) + : __pButtonForMaximizingSecondPane(null) + , __pButtonForRestoringPanes(null) + , __pSplitPanel(null) + , __pFirstPane(null) + , __pSecondPane(null) +{ +} + +SplitPanelForm::~SplitPanelForm(void) +{ +} + +bool +SplitPanelForm::Initialize(void) +{ + Construct(L"IDF_FORM_SPLITPANEL"); + + return true; +} + +result +SplitPanelForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + +//create splitpanel + __pSplitPanel = static_cast <SplitPanel*> (GetControl(L"IDC_SPLITPANEL")); + AddControl(*__pSplitPanel); + __pSplitPanel->AddSplitPanelEventListener(*this); + +//create firstpane with listview + __pFirstPane = static_cast <ListView*> (__pSplitPanel->GetPane(SPLIT_PANEL_PANE_ORDER_FIRST)); + __pFirstPane->SetItemProvider(*this); + __pFirstPane->AddListViewItemEventListener(*this); + __pSplitPanel->SetDividerPosition(300); + __pFirstPane->SetBackgroundColor(FIRST_BLACKGROUND_COLOR); + +//create second pane with panel + __pSecondPane = static_cast <Panel*> (__pSplitPanel->GetPane(SPLIT_PANEL_PANE_ORDER_SECOND)); + __pSecondPane->SetBackgroundColor(SECOND_BLACKGROUND_COLOR); + +//create label + __pLabel = new (std::nothrow) Label(); + __pLabel->Construct(Rectangle(75, 15, 270, 120), L""); + __pSecondPane->AddControl(*__pLabel); + +//create button for maximizing second pane + __pButtonForMaximizingSecondPane = new (std::nothrow) Button(); + __pButtonForMaximizingSecondPane->Construct(Rectangle(75, 150, 270, 120)); + __pButtonForMaximizingSecondPane->SetText(L"Maximize second pane"); + __pButtonForMaximizingSecondPane->SetActionId(ID_BUTTON_SECOND_MAXIMIZE); + __pButtonForMaximizingSecondPane->AddActionEventListener(*this); + __pSecondPane->AddControl(*__pButtonForMaximizingSecondPane); + +//create button for restoring + __pButtonForRestoringPanes = new (std::nothrow) Button(); + __pButtonForRestoringPanes->Construct(Rectangle(75, 300, 270, 120)); + __pButtonForRestoringPanes->SetText(L"Restore pane"); + __pButtonForRestoringPanes->SetActionId(ID_BUTTON_RESTORE); + __pButtonForRestoringPanes->AddActionEventListener(*this); + __pSecondPane->AddControl(*__pButtonForRestoringPanes); + +//rotate +// SetOrientation(ORIENTATION_AUTOMATIC); + + SetOrientation(ORIENTATION_LANDSCAPE); + AddOrientationEventListener(*this); + + Invalidate(true); + return r; +} + +void +SplitPanelForm::OnActionPerformed(const Control& source, int actionId) +{ + switch (actionId) { + + case ID_BUTTON_SECOND_MAXIMIZE: + __pSplitPanel->MaximizePane(SPLIT_PANEL_PANE_ORDER_SECOND); + break; + + case ID_BUTTON_RESTORE: + __pSplitPanel->RestorePane(); + break; + default: + break; + } + Invalidate(true); +} + +void +SplitPanelForm::OnOrientationChanged(const Control &source, OrientationStatus orientationStatus) +{ + Rectangle clientRect = GetClientAreaBounds(); + __pSplitPanel->SetBounds(Rectangle(0, 0, clientRect.width, clientRect.height)); + + if (orientationStatus == ORIENTATION_STATUS_PORTRAIT) + { + __pSplitPanel->MaximizePane(SPLIT_PANEL_PANE_ORDER_SECOND); + } + else + { + __pSplitPanel->RestorePane(); + } + Invalidate(true); +} + +int +SplitPanelForm::GetItemCount(void) +{ + return 3; +} + +ListItemBase* +SplitPanelForm::CreateItem(int index, int itemWidth) +{ + ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL; + CustomItem* pItem = new (std::nothrow) CustomItem(); + itemWidth = GetClientAreaBounds().width; + pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 112), style); + + switch(index) + { + + case 0: + pItem->AddElement(Rectangle(0, 0, itemWidth, 100), ID_FORMAT_ROTATE, L" Rotate", 44, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_BLACK), false); + break; + case 1: + pItem->AddElement(Rectangle(0, 0, itemWidth, 100), ID_FORMAT_MAXIMIZE, L" Maximize first pane", 44, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_BLACK), false); + break; + case 2: + pItem->AddElement(Rectangle(0, 0, itemWidth, 100), ID_FORMAT_RESTORE, L" Restore", 44, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_BLACK), false); + break; + default: + break; + } + return pItem; +} + +void +SplitPanelForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status) +{ + String itemText(L""); + + switch(elementId) + { + case ID_FORMAT_ROTATE: + itemText = L"Rotate"; + if (GetOrientation() == ORIENTATION_LANDSCAPE) + { + SetOrientation(ORIENTATION_PORTRAIT); + } + else + { + SetOrientation(ORIENTATION_LANDSCAPE); + } + break; + case ID_FORMAT_MAXIMIZE: + itemText = L"Maximize First Pane"; + __pSplitPanel->MaximizePane(SPLIT_PANEL_PANE_ORDER_FIRST); + break; + case ID_FORMAT_RESTORE: + itemText = L"Restore"; + __pSplitPanel->RestorePane(); + break; + } + __pLabel->SetText(itemText); + Invalidate(true); +} + +void +SplitPanelForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction) +{ +} + +void +SplitPanelForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus state) +{ +} + +void +SplitPanelForm::OnItemReordered(ListView& view, int oldIndex, int newIndex) +{ +} + +bool +SplitPanelForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth) +{ + delete pItem; + pItem = null; + return true; +} + +void +SplitPanelForm::OnDividerPositionChanged(SplitPanel& source, int position) +{ + +} + +void +SplitPanelForm::OnDividerDoublePressed(SplitPanel& source) +{ + +} + diff --git a/project/src/TabBarForm.cpp b/project/src/TabBarForm.cpp new file mode 100644 index 0000000..0a1eb4b --- /dev/null +++ b/project/src/TabBarForm.cpp @@ -0,0 +1,162 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "TabBarForm.h" + +using namespace Tizen::App; +using namespace Tizen::Base; +using namespace Tizen::Base::Collection; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Media; + +const int ITEM_COUNT = 14; + +TabBarForm::TabBarForm(void) + : __pTabBar(null) + , __pheaderLeftItemBitmap(null) + , __pLeftItemBitmap(null) + , __pRightItemBitmap(null) + , __pLogLabel(null) + , __headerTypeIndex(0) + , __footerTypeIndex(0) + , __startY(0) + , __isTranslucent(false) + , __isVisible(true) + , __isOpened(false) + , __isAdded(false) +{ +} +TabBarForm::~TabBarForm(void) +{ +} + +result +TabBarForm::OnTerminating(void) +{ + result r = E_SUCCESS; + delete __pLeftItemBitmap; + delete __pRightItemBitmap; + return r; +} +bool +TabBarForm::Initialize(void) +{ + Form::Construct(L"IDF_FORM_TABBAR"); + return true; +} + +result +TabBarForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + __pTabBar = static_cast<TabBar *>(GetControl("IDC_TABBAR")); + + TabBarItem tabBarItem1; + TabBarItem tabBarItem2; + TabBarItem tabBarItem3; + TabBarItem tabBarItem4; + TabBarItem tabBarItem5; + + tabBarItem1.Construct(L"1", ID_TABBAR_ITEM1); + tabBarItem2.Construct(L"2", ID_TABBAR_ITEM2); + tabBarItem3.Construct(L"3", ID_TABBAR_ITEM3); + tabBarItem4.Construct(L"4", ID_TABBAR_ITEM4); + tabBarItem5.Construct(L"5", ID_TABBAR_ITEM5); + + __pTabBar->AddItem(tabBarItem1); + __pTabBar->AddItem(tabBarItem2); + __pTabBar->AddItem(tabBarItem3); + __pTabBar->AddItem(tabBarItem4); + __pTabBar->AddItem(tabBarItem5); + __pTabBar->AddActionEventListener(*this); + AddControl(*__pTabBar); + + return r; +} +void +TabBarForm::SetFooterStyle(int footerType) +{ + +} +bool +TabBarForm::CreateMainList(void) +{ + return true; +} + +void +TabBarForm::SetHeaderStyle(int headerType) +{ + +} +void +TabBarForm::AlignControls() +{ + int indent = 0; + Rectangle rc = GetClientAreaBounds(); + + if(__isTranslucent == true && __isVisible == true) + { + indent = __startY; + if (GetHeader()->GetStyle() == HEADER_STYLE_SEGMENTED_WITH_TITLE && GetHeader()->IsVisible() == true) + { + indent += 16; + } + } + else + { + indent = 0; + } + + __pTabBar->SetPosition(0, indent); + +} + +void +TabBarForm::OnActionPerformed(const Control& source, int actionId) +{ + +} + +void +TabBarForm::OnListViewContextItemStateChanged(ListView& listView, int index, int elementId, ListContextItemStatus status) +{ + // TODO: Add your implementation codes here + +} + +void +TabBarForm::OnListViewItemLongPressed(ListView& listView, int index, int elementId, bool& invokeListViewItemCallback) +{ + // TODO: Add your implementation codes here + +} + +void +TabBarForm::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status) +{ + +} + +void +TabBarForm::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction) +{ + +} diff --git a/project/src/TableViewForm.cpp b/project/src/TableViewForm.cpp new file mode 100644 index 0000000..771dc10 --- /dev/null +++ b/project/src/TableViewForm.cpp @@ -0,0 +1,406 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "TableViewForm.h" + +using namespace Tizen::App; +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; + +const wchar_t VOLUME_MIN_BITMAP[] = L"00_volume_icon_min.png"; +const wchar_t VOLUME_MAX_BITMAP[] = L"00_volume_icon_max.png"; +const wchar_t VIBRATION_MIN_BITMAP[] = L"00_volume_icon_Vibrat_min.png"; +const wchar_t VIBRATION_MAX_BITMAP[] = L"00_volume_icon_Vibrat_max.png"; + +const int GROUP_COUNT = 4; + +TableViewForm::TableViewForm(void) + : __pList(null) + , __pItem(null) + , __pMinSoundBitmap(null) + , __pMaxSoundBitmap(null) + , __pMinVibrationBitmap(null) + , __pMaxVibrationBitmap(null) +{ +} + +TableViewForm::~TableViewForm(void) +{ +} + +bool +TableViewForm::Initialize(void) +{ + Construct(L"IDF_FORM_TABLEVIEW"); + return true; +} + +result +TableViewForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + GetBitmap(); + CreateTableView(); + + return r; +} + +result +TableViewForm::OnTerminating(void) +{ + result r = E_SUCCESS; + + delete __pMaxSoundBitmap; + delete __pMinSoundBitmap; + delete __pMinVibrationBitmap; + delete __pMaxVibrationBitmap; + delete __pItem; + + return r; +} + +void +TableViewForm::GetBitmap(void) +{ + AppResource* pAppResource = Application::GetInstance()->GetAppResource(); + __pMinSoundBitmap = pAppResource->GetBitmapN(VOLUME_MIN_BITMAP); + __pMaxSoundBitmap = pAppResource->GetBitmapN(VOLUME_MAX_BITMAP); + __pMinVibrationBitmap = pAppResource->GetBitmapN(VIBRATION_MIN_BITMAP); + __pMaxVibrationBitmap = pAppResource->GetBitmapN(VIBRATION_MAX_BITMAP); + +} + +void +TableViewForm::CreateTableView(void) +{ + __pList = static_cast <GroupedTableView*> (GetControl("IDC_GROUPEDTABLEVIEW")); + __pList->SetItemProvider(this); + __pList->AddGroupedTableViewItemEventListener(*this); + AddControl(*__pList); +} + +int +TableViewForm::GetGroupCount(void) +{ + return GROUP_COUNT; +} + +int +TableViewForm::GetItemCount(int groupIndex) +{ + int itemCount = 0; + + switch(groupIndex) + { + case ID_GROUP_INDEX_MAIN: + itemCount = 2; + break; + case ID_GROUP_INDEX_VOLUME: + itemCount = 4; + break; + case ID_GROUP_INDEX_VIBRATION: + itemCount = 2; + break; + default: + break; + } + + return itemCount; +} + +TableViewGroupItem* +TableViewForm::CreateGroupItem(int groupIndex, int itemWidth) +{ + TableViewGroupItem* pItem = new (std::nothrow) TableViewGroupItem(); + String text(L""); + + if (groupIndex == ID_GROUP_INDEX_MAIN) + { + pItem->Construct(Dimension(itemWidth, 10)); + return pItem; + } + + pGroupNameLabel = new (std::nothrow) Label(); + + int defaultGroupItemHeight = GetDefaultGroupItemHeight(); + + switch (groupIndex) + { + case ID_GROUP_INDEX_VOLUME: + { + pItem->Construct(Dimension(itemWidth, defaultGroupItemHeight)); + text = L"Volume"; + pGroupNameLabel->Construct(Rectangle(0, 0, itemWidth, defaultGroupItemHeight), text); + } + break; + case ID_GROUP_INDEX_VIBRATION: + { + pItem->Construct(Dimension(itemWidth, defaultGroupItemHeight)); + text = L"Vibration"; + pGroupNameLabel->Construct(Rectangle(0, 0, itemWidth, defaultGroupItemHeight), text); + } + break; + case ID_GROUP_INDEX_INFORMATION: + { + pItem->Construct(Dimension(itemWidth, 170)); + text = "Adjust volume and intensity for sounds when dialing, using keypad, tapping the screen, pressing hardkeys," + " and locking and unlocking device"; + pGroupNameLabel->Construct(Rectangle(0, 0, itemWidth, 160), text); + } + break; + } + + pGroupNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT); + pItem->AddControl(*pGroupNameLabel); + return pItem; +} + +bool +TableViewForm::DeleteGroupItem(int groupIndex, TableViewGroupItem* pItem) +{ + delete pItem; + + return true; +} + +TableViewItem* +TableViewForm::CreateItem(int groupIndex, int itemIndex, int itemWidth) +{ + TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL; + TableViewItem* pItem = new (std::nothrow) TableViewItem(); + + Label* pGroupNameLable = null; + Label* pSoundLabelMin = null; + Label* pSoundLabelMax = null; + Label* pVibrationLabelMin = null; + Label* pVibrationLabelMax = null; + Slider* pSlider = null; + + int defaultItemHeight = GetDefaultItemHeight(); + + if (groupIndex == ID_GROUP_INDEX_MAIN) + { + style = TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING; + pItem->Construct(Tizen::Graphics::Dimension(720, 112), style); + + pGroupNameLable = new (std::nothrow) Label(); + + if (itemIndex == ID_GROUP_INDEX_MAIN_ITEM_SOUNDS) + { + pGroupNameLable->Construct(Rectangle(0, -9, 240, 130), L"Sounds "); + pGroupNameLable->SetTextConfig(44,LABEL_TEXT_STYLE_NORMAL); + } + else + { + pGroupNameLable->Construct(Rectangle(0, -9, 240, 130), L"Vibration"); + pGroupNameLable->SetTextConfig(44,LABEL_TEXT_STYLE_NORMAL); + } + pItem->AddControl(*pGroupNameLable); + } + + else if (groupIndex == ID_GROUP_INDEX_VOLUME) + { + pItem->Construct(Tizen::Graphics::Dimension(720, defaultItemHeight), style); + + pSlider = new (std::nothrow) Slider(); + pSoundLabelMin = new (std::nothrow) Label(); + pSoundLabelMin->Construct(Rectangle(20, 80, 45, 45), L""); + + pSoundLabelMax = new (std::nothrow) Label(); + pSoundLabelMax->Construct(Rectangle(650, 80, 45, 45), L""); + + pSlider->Construct(Rectangle(50, 0, 610, 150), BACKGROUND_STYLE_NONE, true, 0, 15); + pSlider->SetValue(5); + pSlider->SetName("IDC_SLIDER_VOLUME"); + pSlider->SetEnabled(false); + + switch (itemIndex) + { + case 0: + pSlider->SetTitleText("Incoming call"); + break; + case 1: + pSlider->SetTitleText("Notification"); + break; + case 2: + pSlider->SetTitleText("Media"); + break; + case 3: + pSlider->SetTitleText("System"); + break; + } + pItem->AddControl(*pSlider); + pItem->AddControl(*pSoundLabelMin); + pItem->AddControl(*pSoundLabelMax); + + pItem->SetIndividualSelectionEnabled(pSlider, true); + pItem->SetIndividualSelectionEnabled(pSoundLabelMin, true); + pItem->SetIndividualSelectionEnabled(pSoundLabelMax, true); + + } + + else if (groupIndex == ID_GROUP_INDEX_VIBRATION) + { + pSlider = new (std::nothrow) Slider(); + pVibrationLabelMin = new (std::nothrow) Label(); + pVibrationLabelMin->Construct(Rectangle(20, 80, 45, 45), L""); + + pVibrationLabelMax = new (std::nothrow) Label(); + pVibrationLabelMax->Construct(Rectangle(650, 80, 45, 45), L""); + pItem->Construct(Tizen::Graphics::Dimension(720, defaultItemHeight), style); + pSlider->Construct(Rectangle(50, 0, 610, 150), BACKGROUND_STYLE_NONE, true, 0, 15); + pSlider->SetValue(5); + pSlider->SetName("IDC_SLIDER_VIBRATION"); + pSlider->SetEnabled(false); + + switch (itemIndex) + { + case 0: + pSlider->SetTitleText("Notification"); + break; + case 1: + pSlider->SetTitleText("Haptic feedback"); + break; + } + + pItem->AddControl(*pSlider); + pItem->AddControl(*pVibrationLabelMin); + pItem->AddControl(*pVibrationLabelMax); + + pItem->SetIndividualSelectionEnabled(pSlider, true); + pItem->SetIndividualSelectionEnabled(pVibrationLabelMin, true); + pItem->SetIndividualSelectionEnabled(pVibrationLabelMax, true); + + } + + return pItem; +} + +void +TableViewForm::UpdateItem(int groupIndex, int itemIndex, TableViewItem* pItem) +{ + Control* pSlider = NULL; + + switch (groupIndex) + { + case 1: + pSlider = pItem->GetControl("IDC_SLIDER_VOLUME", true); + break; + case 2: + pSlider = pItem->GetControl("IDC_SLIDER_VIBRATION", true); + break; + default: + break; + } + if(pSlider->IsEnabled() == true) + { + pSlider->SetEnabled(false); + } + else + { + pSlider->SetEnabled(true); + } +} + +void +TableViewForm::UpdateGroupItem(int groupIndex, TableViewGroupItem* pItem) +{ + +} + +int +TableViewForm::GetDefaultItemHeight(void) +{ + return 150; +} + +int +TableViewForm::GetDefaultGroupItemHeight(void) +{ + return 60; +} + +bool +TableViewForm::DeleteItem(int groupIndex, int itemIndex, TableViewItem* pItem) +{ + delete pItem; + + return true; +} + +void +TableViewForm::OnGroupedTableViewGroupItemStateChanged(GroupedTableView& tableView, int groupIndex, TableViewGroupItem* pItem, TableViewItemStatus status) +{ + +} +void +TableViewForm::OnGroupedTableViewItemStateChanged(GroupedTableView& tableView, int groupIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status) +{ + int itemCount = 0; + switch (status) + { + case TABLE_VIEW_ITEM_STATUS_CHECKED: + if (itemIndex == ID_GROUP_INDEX_MAIN_ITEM_SOUNDS) + { + itemCount = __pList->GetItemCountAt(ID_GROUP_INDEX_VOLUME); + for (int i = 0; i < itemCount; i ++) + { + __pList->RefreshItem(ID_GROUP_INDEX_VOLUME, i, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); + } + + } + else + { + itemCount = __pList->GetItemCountAt(ID_GROUP_INDEX_VIBRATION); + for (int i = 0; i < itemCount ; i ++) + { + __pList->RefreshItem(ID_GROUP_INDEX_VIBRATION, i, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); + } + } + break; + + case TABLE_VIEW_ITEM_STATUS_UNCHECKED: + if (itemIndex == ID_GROUP_INDEX_MAIN_ITEM_SOUNDS) + { + itemCount = __pList->GetItemCountAt(ID_GROUP_INDEX_VOLUME); + for (int i = 0; i < itemCount ; i ++) + { + __pList->RefreshItem(ID_GROUP_INDEX_VOLUME, i, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); + } + } + else + { + itemCount = __pList->GetItemCountAt(ID_GROUP_INDEX_VIBRATION); + for (int i = 0; i < itemCount ; i ++) + { + __pList->RefreshItem(ID_GROUP_INDEX_VIBRATION, i, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); + } + } + break; + default: + break; + } + Invalidate(true); +} + +void +TableViewForm::OnGroupedTableViewContextItemActivationStateChanged(GroupedTableView& tableView, int groupIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated) +{ +} diff --git a/project/src/TextBoxForm.cpp b/project/src/TextBoxForm.cpp new file mode 100644 index 0000000..a9c69a0 --- /dev/null +++ b/project/src/TextBoxForm.cpp @@ -0,0 +1,63 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "TextBoxForm.h" + +using namespace Tizen::Ui; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Graphics; +using namespace Tizen::Base; + +TextBoxForm::TextBoxForm(void) + : __pTextBox(null) +{ +} + +TextBoxForm::~TextBoxForm(void) +{ +} + +bool +TextBoxForm::Initialize(void) +{ + Construct(FORM_STYLE_NORMAL| FORM_STYLE_INDICATOR| FORM_STYLE_HEADER| FORM_STYLE_FOOTER); + SetFooter(); + return true; +} + +result +TextBoxForm::OnInitializing(void) +{ + BaseForm::OnInitializing(); + result r = E_SUCCESS; + + Header* pHeader = GetHeader(); + pHeader->SetTitleText(L"TextBox"); + + __pTextBox = new (std::nothrow) TextBox(); + __pTextBox->Construct(Rectangle(175, 170, 380, 450), TEXT_BOX_BORDER_ROUNDED); + __pTextBox->SetTextSize(50); + + String sampleText1(L"TextBox Sample"); + __pTextBox->SetText(sampleText1); + + String sampleText2(L" Tizen SDK"); + __pTextBox->AppendText(sampleText2); + + AddControl(*__pTextBox); + + return r; +} diff --git a/project/src/UiControls.cpp b/project/src/UiControls.cpp new file mode 100644 index 0000000..094a9b7 --- /dev/null +++ b/project/src/UiControls.cpp @@ -0,0 +1,125 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#include "UiControls.h" +#include "SceneRegister.h" + +using namespace Tizen::Base; +using namespace Tizen::System; +using namespace Tizen::App; +using namespace Tizen::Ui::Controls; +using namespace Tizen::Ui::Scenes; + +UiControls::UiControls(void) +{ +} + +UiControls::~UiControls(void) +{ +} + +Application* +UiControls::CreateInstance(void) +{ + // Create the instance through the constructor. + return new UiControls(); +} + +bool +UiControls::OnAppInitializing(AppRegistry& appRegistry) +{ + // TODO: + // Initialize UI resources (forms, buttons, etc.) and application specific data. + // The application's permanent data and context can be obtained from the appRegistry. + // If this method is successful, return true; otherwise, return false. + // If this method returns false, the application will be terminated. + ///////////////////////////////////////////////////////////////////////////////////// + //this codes is automatically inserted by Tizen application wizard. + Frame* pAppFrame = new Frame(); + pAppFrame->Construct(); + AddFrame(*pAppFrame); + //////////////////////////////////////////////////////////////////////////////////// + + // Prepare Scene management. + + SceneRegister::RegisterAllScenes(); + SceneManager* pSceneManager = SceneManager::GetInstance(); + pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM)); + + // Uncomment the following statement to listen to the screen on/off events. + //PowerManager::SetScreenEventListener(*this); + + return true; +} + + +bool +UiControls::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination) +{ + // TODO: + // Deallocate resources allocated by this application. + // The application's permanent data and context can be saved via appRegistry. + + return true; +} + + +void +UiControls::OnForeground(void) +{ + //TODO: + // Add code to execute when the application is moved to the foreground. +} + +void +UiControls::OnBackground(void) +{ + //TODO: + // Add code to execute when the application is moved to the backgorund. +} + +void +UiControls::OnLowMemory(void) +{ + // TODO: + // Free unused resources or close the application. +} + + +void +UiControls::OnBatteryLevelChanged(BatteryLevel batteryLevel) +{ + // TODO: + // Handle any changes in battery level here. + // It is recommended that the application is closed if the battery level is low. +} + +void +UiControls::OnScreenOn (void) +{ + // TODO: + // Get the released resources or resume the operations that were paused or stopped in OnScreenOff(). +} + +void +UiControls::OnScreenOff (void) +{ + // TODO: + // Unless there is a strong reason to do otherwise, release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode to save the battery. + // Invoking a lengthy asynchronous method within this listener method can be risky, because it is not guaranteed to invoke a callback before the device enters the sleep mode. + // Similarly, do not perform lengthy operations in this listener method. Any operation must be a quick one. +} + diff --git a/project/src/UiControlsEntry.cpp b/project/src/UiControlsEntry.cpp new file mode 100644 index 0000000..3e2b787 --- /dev/null +++ b/project/src/UiControlsEntry.cpp @@ -0,0 +1,62 @@ +// +// Tizen native SDK +// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +/** + * This file contains the Tizen application entry point. + */ + +#include "UiControls.h" + +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; + + AppLog("Application started."); + ArrayList* pArgs = new ArrayList(); + pArgs->Construct(); + for (int i = 0; i < argc; i++) + pArgs->Add(*(new String(pArgv[i]))); + + r = Tizen::App::Application::Execute(UiControls::CreateInstance, pArgs); + if (IsFailed(r)) + { + AppLogException("Application execution failed-[%s].", GetErrorMessage(r)); + r &= 0x0000FFFF; + } + + pArgs->RemoveAll(true); + delete pArgs; + AppLog("Application finished."); + + return static_cast<int>(r); +} +#ifdef __cplusplus +} +#endif // __cplusplus diff --git a/sample.xml b/sample.xml new file mode 100644 index 0000000..a8c2808 --- /dev/null +++ b/sample.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<template> + + <slp-property> + <property-group> + <sample-name>UiControls</sample-name> + <category>Sample</category> + <sdk-version>1.00</sdk-version> + <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type> + <sample-description>description.xml</sample-description> + </property-group> + </slp-property> + + <process type="org.tizen.nativeappcommon.TizenCopyFolder"> + <simple name="projectName" value="$(projectName)"/> + <simple name="folderPath" value="project"/> + <complex-array name="replaceableFiles"> + <element> + <simple name="sourcePath" value="manifest.xml"/> + <simple name="targetPath" value="manifest.xml"/> + <simple name="replaceable" value = "true"/> + </element> + </complex-array> + </process> + <process type="org.tizen.nativecpp.SetDefaultFrameworks"> + <simple name="projectName" value="$(projectName)"/> + <complex-array name="frameworkList"> + <element> + <simple name="framework" value="osp"/> + </element> + </complex-array> + </process> + +</template> diff --git a/screenshot.png b/screenshot.png Binary files differnew file mode 100644 index 0000000..40a85d7 --- /dev/null +++ b/screenshot.png |