2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUi_UiBuilderControlMaker.cpp
20 * @brief This is the implementation file for _UiBuilderControlMaker class.
24 #include <runtime_info.h>
25 #include <FAppApplication.h>
26 #include <FUiContainer.h>
27 #include <FBaseSysLog.h>
28 #include <FBaseInteger.h>
29 #include <FBase_StringConverter.h>
30 #include <FGrp_NonScale.h>
31 #include <FGrp_BitmapImpl.h>
32 #include "FUi_UiBuilderControlMaker.h"
33 #include "FUi_UiBuilder.h"
35 using namespace Tizen::Base;
36 using namespace Tizen::Ui;
37 using namespace Tizen::Ui::Controls;
38 using namespace Tizen::App;
39 using namespace Tizen::Graphics;
41 namespace Tizen { namespace Ui
43 _UiBuilderControlMaker::_UiBuilderControlMaker(_UiBuilder* pUibuilder)
46 __pUiBuilder = pUibuilder;
48 _UiBuilderControlMaker::_UiBuilderControlMaker(void)
52 _UiBuilderControlMaker::~_UiBuilderControlMaker(void)
57 _UiBuilderControlMaker::MakeControl(_UiBuilderControl* pUiBuilderControl)
59 Tizen::Ui::Control* pControl = null;
61 if (pUiBuilderControl != null)
63 pControl = Make(pUiBuilderControl);
64 if ((pUiBuilderControl->GetType()).Equals(L"Header", false) || (pUiBuilderControl->GetType()).Equals(L"Footer", false))
70 pControl->SetName(pUiBuilderControl->GetId());
71 SetLayoutOrientation(pUiBuilderControl, pControl);
72 if (!(pUiBuilderControl->GetType().Equals(L"Form", false) || pUiBuilderControl->GetType().Equals(L"Popup", false)))
74 if (pUiBuilderControl->GetType().Equals(L"Panel", false) || pUiBuilderControl->GetType().Equals(L"ScrollPanel", false))
76 if (pUiBuilderControl->GetParentWin().IsEmpty())
82 AddControl(pUiBuilderControl, pControl);
83 SetLayoutProperty(pUiBuilderControl, pControl);
90 return E_OPERATION_FAILED;
94 _UiBuilderControlMaker::ConvertStringToColor(const Tizen::Base::String& colorString, Color& color)
99 const wchar_t* colorStringPointer = colorString.GetPointer();
101 unsigned long temp = 0;
103 len = colorString.GetLength();
111 for (index = 0; index < len + 1; index++)
113 ch = colorStringPointer[index];
114 if ((ch >= '0') && (ch <= '9'))
121 else if ((ch >= 'A') && (ch <= 'F'))
128 else if ((ch >= 'a') && (ch <= 'f'))
135 color.SetRGB32(temp, false);
139 _UiBuilderControlMaker::ConvertStringToColor32(const Tizen::Base::String& colorString, int opacity, Color& color)
145 const wchar_t* colorStringPointer = colorString.GetPointer();
147 unsigned long temp = 0;
149 len = colorString.GetLength();
153 SysLog(NID_UI, "String is empty");
159 for (index = 0; index < len + 1; index++)
161 ch = colorStringPointer[index];
162 if ((ch >= '0') && (ch <= '9'))
169 else if ((ch >= 'A') && (ch <= 'F'))
176 else if ((ch >= 'a') && (ch <= 'f'))
184 color.SetRGB32(temp, true);
185 alpha = ConvertOpacity100to255(opacity);
186 color.SetAlpha(alpha);
190 _UiBuilderControlMaker::ConvertOpacity100to255(int opacity)
192 return 255 * opacity / 100;
196 _UiBuilderControlMaker::ConvertHAlignToHorizontalAlignment(const Tizen::Base::String& align, HorizontalAlignment& alignment)
198 if (align.Equals(L"ALIGN_LEFT", false))
200 alignment = ALIGNMENT_LEFT;
202 else if (align.Equals(L"ALIGN_CENTER", false))
204 alignment = ALIGNMENT_CENTER;
206 else if (align.Equals(L"ALIGN_RIGHT", false))
208 alignment = ALIGNMENT_RIGHT;
219 _UiBuilderControlMaker::ConvertVAlignToVerticalAlignment(const Tizen::Base::String& align, VerticalAlignment& alignment)
221 if (align.Equals(L"ALIGN_TOP", false))
223 alignment = ALIGNMENT_TOP;
225 else if (align.Equals(L"ALIGN_MIDDLE", false))
227 alignment = ALIGNMENT_MIDDLE;
229 else if (align.Equals(L"ALIGN_BOTTOM", false))
231 alignment = ALIGNMENT_BOTTOM;
242 _UiBuilderControlMaker::ConvertSlideShowAnimation(const Tizen::Base::String& animationType, GalleryAnimation& animation)
244 if (animationType.Equals(L"GALLERY_ANIMATION_PAGE", false))
246 animation = GALLERY_ANIMATION_PAGE;
248 else if (animationType.Equals(L"GALLERY_ANIMATION_DISSOLVE", false))
250 animation = GALLERY_ANIMATION_DISSOLVE;
252 else if (animationType.Equals(L"GALLERY_ANIMATION_ZOOM", false))
254 animation = GALLERY_ANIMATION_ZOOM;
264 Tizen::Graphics::Bitmap*
265 _UiBuilderControlMaker::LoadBitmapN(const Tizen::Base::String& imagePath)
267 UiApp* pUiApp = UiApp::GetInstance();
270 AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
271 if (pAppResource != null)
273 Tizen::Graphics::Bitmap* pBitmap = pAppResource->GetBitmapN(imagePath);
281 _UiBuilderControlMaker::GetProperty(_UiBuilderControl* pControl, _UiBuilderControlLayout** pControlProperty) const
283 // Form's orientation mode is AUTOMATIC
284 if (__pUiBuilder->GetUiBuilderRotateState() == UIBUIDER_SCREEN_NONE)
286 // Get device orientation
288 bool autoRotateLock = false;
289 int ret = runtime_info_get_value_bool(RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, &autoRotateLock);
291 if (ret == RUNTIME_INFO_ERROR_NONE)
293 SysLog(NID_UI, "The flag of auto-rotate lock is %d.", autoRotateLock);
297 autoRotateLock = false;
298 SysLog(NID_UI, "It's failed to get the flag of auto-rotate.");
301 app_device_orientation_e deviceOrientation = app_get_device_orientation();
302 bool isHorizontal = (deviceOrientation == APP_DEVICE_ORIENTATION_90) || (deviceOrientation == APP_DEVICE_ORIENTATION_270);
304 if (isHorizontal && autoRotateLock == true)
306 __pUiBuilder->SetUiBuilderRotateState(UIBUIDER_SCREEN_HORIZONTAL);
310 __pUiBuilder->SetUiBuilderRotateState(UIBUIDER_SCREEN_VERTICAL);
314 if (__pUiBuilder->GetUiBuilderRotateState() == UIBUIDER_SCREEN_HORIZONTAL)
316 *pControlProperty = pControl->GetAttribute(UIBUILDER_ATTRIBUTE_LANDSCAPE);
320 *pControlProperty = pControl->GetAttribute(UIBUILDER_ATTRIBUTE_PORTRAIT);
327 _UiBuilderControlMaker::GetLayoutType(_UiBuilderControlLayout* pControlProperty, _UiBuilderLayoutType& returnType) const
329 if (pControlProperty == null)
334 Tizen::Base::String layoutType(L"");
336 if (pControlProperty->GetLayoutElement( L"type", layoutType))
339 if (layoutType.Equals(L"NONE", false))
341 returnType = UIBUILDER_LAYOUT_NONE;
343 else if (layoutType.Equals(L"LAYOUT_GRID", false))
345 returnType = UIBUILDER_LAYOUT_GRID;
347 else if (layoutType.Equals(L"LAYOUT_HORIZONTAL_BOX", false))
349 returnType = UIBUILDER_LAYOUT_HORIZONTAL_BOX;
351 else if (layoutType.Equals(L"LAYOUT_VERTICAL_BOX", false))
353 returnType = UIBUILDER_LAYOUT_VERTICAL_BOX;
355 else if (layoutType.Equals(L"LAYOUT_RELATIVE", false))
357 returnType = UIBUILDER_LAYOUT_RELATIVE;
361 returnType = UIBUILDER_LAYOUT_NONE;
367 returnType = UIBUILDER_LAYOUT_NONE;
374 _UiBuilderControlMaker::GetParentLayoutType(_UiBuilderControlLayout* pControlProperty, _UiBuilderLayoutType& returnType) const
376 if (pControlProperty == null)
380 Tizen::Base::String parentLayoutType(L"");
382 if (pControlProperty->GetLayoutElement(L"parentType", parentLayoutType))
384 if (parentLayoutType.Equals(L"NONE", false))
386 returnType = UIBUILDER_LAYOUT_NONE;
388 else if (parentLayoutType.Equals(L"LAYOUT_GRID", false))
390 returnType = UIBUILDER_LAYOUT_GRID;
392 else if (parentLayoutType.Equals(L"LAYOUT_HORIZONTAL_BOX", false))
394 returnType = UIBUILDER_LAYOUT_HORIZONTAL_BOX;
396 else if (parentLayoutType.Equals(L"LAYOUT_VERTICAL_BOX", false))
398 returnType = UIBUILDER_LAYOUT_VERTICAL_BOX;
400 else if (parentLayoutType.Equals(L"LAYOUT_RELATIVE", false))
402 returnType = UIBUILDER_LAYOUT_RELATIVE;
406 returnType = UIBUILDER_LAYOUT_NONE;
412 returnType = UIBUILDER_LAYOUT_NONE;
418 _UiBuilderControlMaker::GetGridLayoutN(_UiBuilderControlLayout* pControlProperty, Layout*& pLayout) const
420 if (pControlProperty == null)
425 result r = E_SUCCESS;
426 Tizen::Base::String gridLayoutValue(L"");
427 GridLayout* pGridLayout = null;
431 pGridLayout = new (std::nothrow) GridLayout;
434 SysLog(NID_UI, "Unable to create layout");
438 if (pControlProperty->GetLayoutElement(L"maxColumn", gridLayoutValue))
440 Integer::Parse(gridLayoutValue, maxColumn);
443 if (pControlProperty->GetLayoutElement(L"maxRow", gridLayoutValue))
445 Integer::Parse(gridLayoutValue, maxRow);
448 r = pGridLayout->Construct(maxRow, maxColumn);
451 SysLog(NID_UI, "[%s] Propagated.", GetErrorMessage(r));
457 pLayout = pGridLayout;
463 _UiBuilderControlMaker::GetHorizontalBoxLayoutN(_UiBuilderControlLayout* pControlProperty, Layout*& pLayout) const
465 if (pControlProperty == null)
469 result r = E_SUCCESS;
471 Tizen::Base::String horizontalBoxLayoutValue(L"");
473 HorizontalBoxLayout* pHboxLayout = null;
474 HorizontalDirection direction;
476 pHboxLayout = new (std::nothrow) HorizontalBoxLayout;
479 SysLog(NID_UI, "[E_SYSTEM] Unable to create layout");
484 if (pControlProperty->GetLayoutElement(L"horizontalDirection", horizontalBoxLayoutValue))
486 if (horizontalBoxLayoutValue.Equals(L"HORIZONTAL_DIRECTION_LEFTWARD", false))
488 direction = HORIZONTAL_DIRECTION_LEFTWARD;
492 direction = HORIZONTAL_DIRECTION_RIGHTWARD;
497 direction = HORIZONTAL_DIRECTION_RIGHTWARD;
500 r = pHboxLayout->Construct(direction);
503 SysLog(NID_UI, "[%s] Propagated.", GetErrorMessage(r));
509 pLayout = pHboxLayout;
515 _UiBuilderControlMaker::GetVerticalBoxLayoutN(_UiBuilderControlLayout* pControlProperty, Layout*& pLayout) const
517 if (pControlProperty == null)
521 result r = E_SUCCESS;
523 Tizen::Base::String verticalBoxLayoutValue(L"");
525 VerticalBoxLayout* pVboxLayout = null;
526 VerticalDirection direction;
528 pVboxLayout = new (std::nothrow) VerticalBoxLayout;
531 SysLog(NID_UI, "[E_SYSTEM] Unable to create layout");
536 if (pControlProperty->GetLayoutElement(L"verticalDirection", verticalBoxLayoutValue))
538 if (verticalBoxLayoutValue.Equals(L"VERTICAL_DIRECTION_UPWARD", false))
540 direction = VERTICAL_DIRECTION_UPWARD;
544 direction = VERTICAL_DIRECTION_DOWNWARD;
549 direction = VERTICAL_DIRECTION_DOWNWARD;
552 r = pVboxLayout->Construct(direction);
555 SysLog(NID_UI, "[%s] Propagated.", GetErrorMessage(r));
561 pLayout = pVboxLayout;
567 _UiBuilderControlMaker::GetRelativeLayoutN(_UiBuilderControlLayout* pControlProperty, Layout*& pLayout) const
569 if (pControlProperty == null)
573 result r = E_SUCCESS;
575 RelativeLayout* pRelLayout = null;
577 pRelLayout = new (std::nothrow) RelativeLayout;
580 SysLog(NID_UI, "Unable to create layout");
585 if (E_SUCCESS != pRelLayout->Construct())
587 SysLog(NID_UI, "[%s] Propagated.", GetErrorMessage(r));
592 pLayout = pRelLayout;
598 _UiBuilderControlMaker::GetLayoutN(_UiBuilderControl* pUiBuilderControl, Layout*& pPortraitLayout, Layout*& pLandscapeLayout) const
600 result r = E_SUCCESS;
602 _UiBuilderControlLayout* pControlProperty = null;
604 Layout* pLayout = null;
605 Layout* pLayoutPortrait = null;
606 Layout* pLayoutLandscape = null;
608 for (int i = 0; i < UIBUILDER_ATTRIBUTE_NUM; i++)
610 _UiBuilderLayoutType layoutType = UIBUILDER_LAYOUT_NONE;
611 pControlProperty = pUiBuilderControl->GetAttribute(i);
612 if (pControlProperty == null)
614 SysLog(NID_UI, "Unable to set layout property");
617 if (GetLayoutType(pControlProperty, layoutType) == false)
624 case UIBUILDER_LAYOUT_GRID:
625 r = GetGridLayoutN(pControlProperty, pLayout);
628 case UIBUILDER_LAYOUT_HORIZONTAL_BOX:
629 r = GetHorizontalBoxLayoutN(pControlProperty, pLayout);
632 case UIBUILDER_LAYOUT_VERTICAL_BOX:
633 r = GetVerticalBoxLayoutN(pControlProperty, pLayout);
636 case UIBUILDER_LAYOUT_RELATIVE:
637 r = GetRelativeLayoutN(pControlProperty, pLayout);
641 SysLog(NID_UI, "Unknown Layout type = %d", layoutType);
646 SysLog(NID_UI, "[%s] Propagated.", GetErrorMessage(r));
649 if (UIBUILDER_ATTRIBUTE_PORTRAIT == i)
651 pLayoutPortrait = pLayout;
653 else if (UIBUILDER_ATTRIBUTE_LANDSCAPE == i)
655 pLayoutLandscape = pLayout;
658 if ((pLayoutPortrait == null) && (pLayoutLandscape != null))
660 pLayoutPortrait = pLayoutLandscape;
662 else if ((pLayoutPortrait != null) && (pLayoutLandscape == null))
664 pLayoutLandscape = pLayoutPortrait;
667 pPortraitLayout = pLayoutPortrait;
668 pLandscapeLayout = pLayoutLandscape;
674 _UiBuilderControlMaker::SetGridLayoutContainerProperty(GridLayout* pLayout, _UiBuilderControlLayout* pControlProperty) const
676 result r = E_SUCCESS;
678 if ((null == pLayout) || (null == pControlProperty))
683 GridLayout& layout = *pLayout;
684 UiBuilderGridLayoutContainer layoutParam;
685 Tizen::Base::String gridLayoutContainerPropertyValue(L"");
687 layoutParam.maxColumn = 0;
688 layoutParam.maxRow = 0;
689 if (pControlProperty->GetLayoutElement(L"maxColumn", gridLayoutContainerPropertyValue))
691 Integer::Parse(gridLayoutContainerPropertyValue, layoutParam.maxColumn);
694 if (pControlProperty->GetLayoutElement(L"maxRow", gridLayoutContainerPropertyValue))
696 Integer::Parse(gridLayoutContainerPropertyValue, layoutParam.maxRow);
699 String headerColumn = "column";
700 String headerRow = "row";
703 for (int i = 1; i <= layoutParam.maxColumn; i++)
705 tempString = headerColumn;
706 tempString.Append(i);
707 tempString.Append("Collapsed");
709 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
711 if (gridLayoutContainerPropertyValue.Equals(L"true", false))
713 layoutParam.columnCollapsed = true;
717 layoutParam.columnCollapsed = false;
719 r = layout.SetColumnCollapsed(i - 1, layoutParam.columnCollapsed);
726 tempString = headerColumn;
727 tempString.Append(i);
728 tempString.Append("Shrinkable");
730 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
732 if (gridLayoutContainerPropertyValue.Equals(L"true", false))
734 layoutParam.columnShrinkable = true;
738 layoutParam.columnShrinkable = false;
740 r = layout.SetColumnShrinkable(i - 1, layoutParam.columnShrinkable);
747 tempString = headerColumn;
748 tempString.Append(i);
749 tempString.Append("Stretchable");
751 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
753 if (gridLayoutContainerPropertyValue.Equals(L"true", false))
755 layoutParam.columnStretchable = true;
759 layoutParam.columnStretchable = false;
761 r = layout.SetColumnStretchable(i - 1, layoutParam.columnStretchable);
768 tempString = headerColumn;
769 tempString.Append(i);
770 tempString.Append("Spacing");
772 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
774 Integer::Parse(gridLayoutContainerPropertyValue, layoutParam.columnSpacing);
775 r = layout.SetColumnSpacing(i - 1, layoutParam.columnSpacing);
783 for (int i = 1; i <= layoutParam.maxRow; i++)
786 tempString = headerRow;
787 tempString.Append(i);
788 tempString.Append("Collapsed");
790 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
792 if (gridLayoutContainerPropertyValue.Equals(L"true", false))
794 layoutParam.rowCollapsed = true;
798 layoutParam.rowCollapsed = false;
800 r = layout.SetRowCollapsed(i - 1, layoutParam.rowCollapsed);
807 tempString = headerRow;
808 tempString.Append(i);
809 tempString.Append("Shrinkable");
811 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
813 if (gridLayoutContainerPropertyValue.Equals(L"true", false))
815 layoutParam.rowShrinkable = true;
819 layoutParam.rowShrinkable = false;
821 r = layout.SetRowShrinkable(i - 1, layoutParam.rowShrinkable);
828 tempString = headerRow;
829 tempString.Append(i);
830 tempString.Append("Stretchable");
832 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
834 if (gridLayoutContainerPropertyValue.Equals(L"true", false))
836 layoutParam.rowStretchable = true;
840 layoutParam.rowStretchable = false;
842 r = layout.SetRowStretchable(i - 1, layoutParam.rowStretchable);
849 tempString = headerRow;
850 tempString.Append(i);
851 tempString.Append("Spacing");
853 if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
855 Integer::Parse(gridLayoutContainerPropertyValue, layoutParam.rowSpacing);
856 r = layout.SetRowSpacing(i - 1, layoutParam.rowSpacing);
870 _UiBuilderControlMaker::SetGridLayoutControlProperty(GridLayout* pLayout, _UiBuilderControlLayout* pControlProperty, Control* pControl)
872 if ((null == pLayout) || (null == pControlProperty) || (null == pControlProperty) || (null == pControl))
877 GridLayout& layout = *pLayout;
878 Control& control = *pControl;
879 UiBuilderGridLayoutControl layoutParam;
880 Tizen::Base::String gridLayoutValue(L"");
881 bool alignmentSet = false;
883 if (pControlProperty->GetLayoutElement(L"horizontalAlignment", gridLayoutValue))
886 if (gridLayoutValue.Equals(L"LAYOUT_HORIZONTAL_ALIGN_CENTER", false))
888 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_CENTER;
890 else if (gridLayoutValue.Equals(L"LAYOUT_HORIZONTAL_ALIGN_RIGHT", false))
892 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_RIGHT;
896 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_LEFT;
901 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_LEFT;
904 if (pControlProperty->GetLayoutElement(L"verticalAlignment", gridLayoutValue))
907 if (gridLayoutValue.Equals(L"LAYOUT_VERTICAL_ALIGN_MIDDLE", false))
909 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_MIDDLE;
911 else if (gridLayoutValue.Equals(L"LAYOUT_VERTICAL_ALIGN_BOTTOM", false))
913 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_BOTTOM;
917 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_TOP;
922 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_TOP;
926 layout.SetAlignment(control, layoutParam.horizontalAlignment, layoutParam.verticalAlignment);
929 _ICoordinateSystemTransformer* pTransform = GetTransformer();
930 bool marginSet = false;
931 layoutParam.marginLeft = 0;
932 layoutParam.marginRight = 0;
933 layoutParam.marginTop = 0;
934 layoutParam.marginBottom = 0;
935 if (pControlProperty->GetLayoutElement(L"marginLeft", gridLayoutValue))
938 Integer::Parse(gridLayoutValue, layoutParam.marginLeft);
942 layoutParam.marginLeft = pTransform->Transform(layoutParam.marginLeft);
945 if (pControlProperty->GetLayoutElement(L"marginRight", gridLayoutValue))
948 Integer::Parse(gridLayoutValue, layoutParam.marginRight);
952 layoutParam.marginRight = pTransform->Transform(layoutParam.marginRight);
955 if (pControlProperty->GetLayoutElement(L"marginTop", gridLayoutValue))
958 Integer::Parse(gridLayoutValue, layoutParam.marginTop);
962 layoutParam.marginTop = pTransform->Transform(layoutParam.marginTop);
965 if (pControlProperty->GetLayoutElement(L"marginBottom", gridLayoutValue))
968 Integer::Parse(gridLayoutValue, layoutParam.marginBottom);
972 layoutParam.marginBottom = pTransform->Transform(layoutParam.marginBottom);
977 layout.SetMargin(control, layoutParam.marginLeft, layoutParam.marginRight, layoutParam.marginTop, layoutParam.marginBottom);
980 bool positionSet = false;
981 layoutParam.positionRow = 0;
982 layoutParam.positionColumn = 0;
983 layoutParam.positionRowSpan = 0;
984 layoutParam.positionColumnSpan = 0;
985 if (pControlProperty->GetLayoutElement(L"positionRow", gridLayoutValue))
988 Integer::Parse(gridLayoutValue, layoutParam.positionRow);
990 if (pControlProperty->GetLayoutElement(L"positionColumn", gridLayoutValue))
993 Integer::Parse(gridLayoutValue, layoutParam.positionColumn);
995 if (pControlProperty->GetLayoutElement(L"positionRowSpan", gridLayoutValue))
998 Integer::Parse(gridLayoutValue, layoutParam.positionRowSpan);
1000 if (pControlProperty->GetLayoutElement(L"positionColumnSpan", gridLayoutValue))
1003 Integer::Parse(gridLayoutValue, layoutParam.positionColumnSpan);
1007 layout.SetPosition(control, layoutParam.positionRow, layoutParam.positionColumn, layoutParam.positionRowSpan, layoutParam.positionColumnSpan);
1012 _UiBuilderControlMaker::SetHorizontalBoxLayoutProperty(HorizontalBoxLayout* pLayout, _UiBuilderControlLayout* pControlProperty, Control* pControl)
1014 if ((null == pLayout) || (null == pControlProperty) || (null == pControlProperty) || (null == pControl))
1019 HorizontalBoxLayout& layout = *pLayout;
1020 Control& control = *pControl;
1021 UiBuilderHorizontalBoxLayoutControl layoutParam;
1022 Tizen::Base::String horizontalBoxLayoutValue(L"");
1023 _ICoordinateSystemTransformer* pTransform = GetTransformer();
1025 if (pControlProperty->GetLayoutElement(L"height", horizontalBoxLayoutValue))
1027 Integer::Parse(horizontalBoxLayoutValue, layoutParam.height);
1031 layoutParam.height = pTransform->Transform(layoutParam.height);
1033 layout.SetHeight(control, layoutParam.height);
1037 layoutParam.height = 0;
1040 if (pControlProperty->GetLayoutElement(L"verticalFitPolicy", horizontalBoxLayoutValue))
1042 if (horizontalBoxLayoutValue.Equals(L"FIT_POLICY_CONTENT", false))
1044 layoutParam.verticalFitPolicy = FIT_POLICY_CONTENT;
1046 else if (horizontalBoxLayoutValue.Equals(L"FIT_POLICY_PARENT", false))
1048 layoutParam.verticalFitPolicy = FIT_POLICY_PARENT;
1052 layoutParam.verticalFitPolicy = FIT_POLICY_FIXED;
1054 layout.SetVerticalFitPolicy(control, layoutParam.verticalFitPolicy);
1058 layoutParam.verticalFitPolicy = FIT_POLICY_CONTENT;
1061 if (pControlProperty->GetLayoutElement(L"verticalAlignment", horizontalBoxLayoutValue))
1063 if (horizontalBoxLayoutValue.Equals(L"LAYOUT_VERTICAL_ALIGN_MIDDLE", false))
1065 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_MIDDLE;
1067 else if (horizontalBoxLayoutValue.Equals(L"LAYOUT_VERTICAL_ALIGN_BOTTOM", false))
1069 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_BOTTOM;
1073 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_TOP;
1076 layout.SetVerticalAlignment(control, layoutParam.verticalAlignment);
1080 layoutParam.verticalAlignment = LAYOUT_VERTICAL_ALIGN_TOP;
1083 bool marginSet = false;
1084 layoutParam.verticalTopMargin = 0;
1085 layoutParam.verticalBottomMargin = 0;
1086 if (pControlProperty->GetLayoutElement(L"verticalTopMargin", horizontalBoxLayoutValue))
1089 Integer::Parse(horizontalBoxLayoutValue, layoutParam.verticalTopMargin);
1093 layoutParam.verticalTopMargin = pTransform->Transform(layoutParam.verticalTopMargin);
1096 if (pControlProperty->GetLayoutElement(L"verticalBottomMargin", horizontalBoxLayoutValue))
1099 Integer::Parse(horizontalBoxLayoutValue, layoutParam.verticalBottomMargin);
1103 layoutParam.verticalBottomMargin = pTransform->Transform(layoutParam.verticalBottomMargin);
1108 layout.SetVerticalMargin(control, layoutParam.verticalTopMargin, layoutParam.verticalBottomMargin);
1111 if (pControlProperty->GetLayoutElement(L"spacing", horizontalBoxLayoutValue))
1113 Integer::Parse(horizontalBoxLayoutValue, layoutParam.spacing);
1117 layoutParam.spacing = pTransform->Transform(layoutParam.spacing);
1119 layout.SetSpacing(control, layoutParam.spacing);
1123 layoutParam.spacing = 0;
1126 if (pControlProperty->GetLayoutElement(L"weight", horizontalBoxLayoutValue))
1128 Float::Parse(horizontalBoxLayoutValue, layoutParam.weight);
1129 layout.SetWeight(control, layoutParam.weight);
1133 layoutParam.weight = 0;
1136 if (pControlProperty->GetLayoutElement(L"width", horizontalBoxLayoutValue))
1138 Integer::Parse(horizontalBoxLayoutValue, layoutParam.width);
1142 layoutParam.width = pTransform->Transform(layoutParam.width);
1144 layout.SetWidth(control, layoutParam.width);
1148 layoutParam.width = 0;
1151 if (pControlProperty->GetLayoutElement(L"horizontalFitPolicy", horizontalBoxLayoutValue))
1153 if (horizontalBoxLayoutValue.Equals(L"FIT_POLICY_CONTENT", false))
1155 layoutParam.horizontalFitPolicy = FIT_POLICY_CONTENT;
1157 else if (horizontalBoxLayoutValue.Equals(L"FIT_POLICY_PARENT", false))
1159 layoutParam.horizontalFitPolicy = FIT_POLICY_PARENT;
1163 layoutParam.horizontalFitPolicy = FIT_POLICY_FIXED;
1165 layout.SetHorizontalFitPolicy(control, layoutParam.horizontalFitPolicy);
1169 layoutParam.horizontalFitPolicy = FIT_POLICY_CONTENT;
1174 _UiBuilderControlMaker::SetVerticalBoxLayoutProperty(VerticalBoxLayout* pLayout, _UiBuilderControlLayout* pControlProperty, Control* pControl)
1176 if ((null == pLayout) || (null == pControlProperty) || (null == pControlProperty) || (null == pControl))
1181 VerticalBoxLayout& layout = *pLayout;
1182 Control& control = *pControl;
1183 UiBuilderVerticalBoxLayoutControl layoutParam;
1184 Tizen::Base::String verticalBoxLayoutValue(L"");
1185 _ICoordinateSystemTransformer* pTransform = GetTransformer();
1187 if (pControlProperty->GetLayoutElement(L"height", verticalBoxLayoutValue))
1189 Integer::Parse(verticalBoxLayoutValue, layoutParam.height);
1193 layoutParam.height = pTransform->Transform(layoutParam.height);
1195 layout.SetHeight(control, layoutParam.height);
1199 layoutParam.height = 0;
1202 if (pControlProperty->GetLayoutElement(L"verticalFitPolicy", verticalBoxLayoutValue))
1204 if (verticalBoxLayoutValue.Equals(L"FIT_POLICY_CONTENT", false))
1206 layoutParam.verticalFitPolicy = FIT_POLICY_CONTENT;
1208 else if (verticalBoxLayoutValue.Equals(L"FIT_POLICY_PARENT", false))
1210 layoutParam.verticalFitPolicy = FIT_POLICY_PARENT;
1214 layoutParam.verticalFitPolicy = FIT_POLICY_FIXED;
1216 layout.SetVerticalFitPolicy(control, layoutParam.verticalFitPolicy);
1220 layoutParam.verticalFitPolicy = FIT_POLICY_CONTENT;
1223 if (pControlProperty->GetLayoutElement(L"horizontalAlignment", verticalBoxLayoutValue))
1225 if (verticalBoxLayoutValue.Equals(L"LAYOUT_HORIZONTAL_ALIGN_CENTER", false))
1227 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_CENTER;
1229 else if (verticalBoxLayoutValue.Equals(L"LAYOUT_HORIZONTAL_ALIGN_RIGHT", false))
1231 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_RIGHT;
1235 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_LEFT;
1238 layout.SetHorizontalAlignment(control, layoutParam.horizontalAlignment);
1242 layoutParam.horizontalAlignment = LAYOUT_HORIZONTAL_ALIGN_LEFT;
1245 bool marginSet = false;
1246 layoutParam.horizontalLeftMargin = 0;
1247 layoutParam.horizontalRightMargin = 0;
1248 if (pControlProperty->GetLayoutElement(L"horizontalLeftMargin", verticalBoxLayoutValue))
1251 Integer::Parse(verticalBoxLayoutValue, layoutParam.horizontalLeftMargin);
1254 layoutParam.horizontalLeftMargin = pTransform->Transform(layoutParam.horizontalLeftMargin);
1257 if (pControlProperty->GetLayoutElement(L"horizontalRightMargin", verticalBoxLayoutValue))
1260 Integer::Parse(verticalBoxLayoutValue, layoutParam.horizontalRightMargin);
1263 layoutParam.horizontalRightMargin = pTransform->Transform(layoutParam.horizontalRightMargin);
1268 layout.SetHorizontalMargin(control, layoutParam.horizontalLeftMargin, layoutParam.horizontalRightMargin);
1271 if (pControlProperty->GetLayoutElement(L"spacing", verticalBoxLayoutValue))
1273 Integer::Parse(verticalBoxLayoutValue, layoutParam.spacing);
1276 layoutParam.spacing = pTransform->Transform(layoutParam.spacing);
1279 layout.SetSpacing(control, layoutParam.spacing);
1283 layoutParam.spacing = 0;
1286 if (pControlProperty->GetLayoutElement(L"weight", verticalBoxLayoutValue))
1288 Float::Parse(verticalBoxLayoutValue, layoutParam.weight);
1289 layout.SetWeight(control, layoutParam.weight);
1293 layoutParam.weight = 0;
1296 if (pControlProperty->GetLayoutElement(L"width", verticalBoxLayoutValue))
1298 Integer::Parse(verticalBoxLayoutValue, layoutParam.width);
1301 layoutParam.width = pTransform->Transform(layoutParam.width);
1304 layout.SetWidth(control, layoutParam.width);
1308 layoutParam.width = 0;
1311 if (pControlProperty->GetLayoutElement(L"horizontalFitPolicy", verticalBoxLayoutValue))
1313 if (verticalBoxLayoutValue.Equals(L"FIT_POLICY_CONTENT", false))
1315 layoutParam.horizontalFitPolicy = FIT_POLICY_CONTENT;
1317 else if (verticalBoxLayoutValue.Equals(L"FIT_POLICY_PARENT", false))
1319 layoutParam.horizontalFitPolicy = FIT_POLICY_PARENT;
1323 layoutParam.horizontalFitPolicy = FIT_POLICY_FIXED;
1326 layout.SetHorizontalFitPolicy(control, layoutParam.horizontalFitPolicy);
1330 layoutParam.horizontalFitPolicy = FIT_POLICY_FIXED;
1335 _UiBuilderControlMaker::SetRelativeLayoutProperty(RelativeLayout* pLayout, _UiBuilderControlLayout* pControlProperty, Control* pControl)
1337 if ((null == pLayout) || (null == pControlProperty) || (null == pControlProperty) || (null == pControl))
1342 RelativeLayout& layout = *pLayout;
1343 Control& control = *pControl;
1344 UiBuilderRelativeLayout layoutParam;
1345 Tizen::Base::String relativeLayoutValue(L"");
1346 Tizen::Graphics::Rectangle rect = pControlProperty->GetRect();
1348 if (pControlProperty->GetLayoutElement(L"bottomRelation", relativeLayoutValue))
1350 if (GetContainer()->GetName().Equals(relativeLayoutValue))
1352 layoutParam.pBottomRelation = GetContainer();
1356 layoutParam.pBottomRelation = GetContainer()->GetControl(relativeLayoutValue, true);
1361 layoutParam.pBottomRelation = null;
1364 if (layoutParam.pBottomRelation)
1366 if (pControlProperty->GetLayoutElement(L"bottomRelationType", relativeLayoutValue))
1368 if (relativeLayoutValue.Equals(L"RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM", false))
1370 layoutParam.bottomRelationType = RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM;
1374 layoutParam.bottomRelationType = RECT_EDGE_RELATION_BOTTOM_TO_TOP;
1376 layout.SetRelation(control, *(layoutParam.pBottomRelation), layoutParam.bottomRelationType);
1380 layoutParam.bottomRelationType = RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM;
1384 if (pControlProperty->GetLayoutElement(L"leftRelation", relativeLayoutValue))
1386 if (GetContainer()->GetName().Equals(relativeLayoutValue))
1388 layoutParam.pLeftRelation = GetContainer();
1392 layoutParam.pLeftRelation = GetContainer()->GetControl(relativeLayoutValue, true);
1397 layoutParam.pLeftRelation = null;
1400 if (layoutParam.pLeftRelation)
1402 if (pControlProperty->GetLayoutElement(L"leftRelationType", relativeLayoutValue))
1404 if (relativeLayoutValue.Equals(L"RECT_EDGE_RELATION_LEFT_TO_LEFT", false))
1406 layoutParam.leftRelationType = RECT_EDGE_RELATION_LEFT_TO_LEFT;
1410 layoutParam.leftRelationType = RECT_EDGE_RELATION_LEFT_TO_RIGHT;
1412 layout.SetRelation(control, *(layoutParam.pLeftRelation), layoutParam.leftRelationType);
1416 layoutParam.leftRelationType = RECT_EDGE_RELATION_LEFT_TO_LEFT;
1420 if (pControlProperty->GetLayoutElement(L"rightRelation", relativeLayoutValue))
1422 if (GetContainer()->GetName().Equals(relativeLayoutValue))
1424 layoutParam.pRightRelation = GetContainer();
1428 layoutParam.pRightRelation = GetContainer()->GetControl(relativeLayoutValue, true);
1433 layoutParam.pRightRelation = null;
1436 if (layoutParam.pRightRelation)
1438 if (pControlProperty->GetLayoutElement(L"rightRelationType", relativeLayoutValue))
1440 if (relativeLayoutValue.Equals(L"RECT_EDGE_RELATION_RIGHT_TO_RIGHT", false))
1442 layoutParam.rightRelationType = RECT_EDGE_RELATION_RIGHT_TO_RIGHT;
1446 layoutParam.rightRelationType = RECT_EDGE_RELATION_RIGHT_TO_LEFT;
1448 layout.SetRelation(control, *(layoutParam.pRightRelation), layoutParam.rightRelationType);
1452 layoutParam.rightRelationType = RECT_EDGE_RELATION_RIGHT_TO_RIGHT;
1456 if (pControlProperty->GetLayoutElement(L"topRelation", relativeLayoutValue))
1458 if (GetContainer()->GetName().Equals(relativeLayoutValue))
1460 layoutParam.pTopRelation = GetContainer();
1464 layoutParam.pTopRelation = GetContainer()->GetControl(relativeLayoutValue, true);
1469 layoutParam.pTopRelation = null;
1472 if (layoutParam.pTopRelation)
1474 if (pControlProperty->GetLayoutElement(L"topRelationType", relativeLayoutValue))
1476 if (relativeLayoutValue.Equals(L"RECT_EDGE_RELATION_TOP_TO_TOP", false))
1478 layoutParam.topRelationType = RECT_EDGE_RELATION_TOP_TO_TOP;
1482 layoutParam.topRelationType = RECT_EDGE_RELATION_TOP_TO_BOTTOM;
1484 layout.SetRelation(control, *(layoutParam.pTopRelation), layoutParam.topRelationType);
1488 layoutParam.topRelationType = RECT_EDGE_RELATION_TOP_TO_TOP;
1492 if (pControlProperty->GetLayoutElement(L"centerHorizontal", relativeLayoutValue))
1494 if (relativeLayoutValue.Equals(L"true", false))
1496 layoutParam.centerHorizontal = true;
1497 layout.SetCenterAligned(control, CENTER_ALIGN_HORIZONTAL);
1501 layoutParam.centerHorizontal = false;
1506 layoutParam.centerHorizontal = false;
1509 if (pControlProperty->GetLayoutElement(L"centerVertical", relativeLayoutValue))
1511 if (relativeLayoutValue.Equals(L"true", false))
1513 layoutParam.centerVertical = true;
1514 layout.SetCenterAligned(control, CENTER_ALIGN_VERTICAL);
1518 layoutParam.centerVertical = false;
1523 layoutParam.centerVertical = false;
1527 if (pControlProperty->GetLayoutElement(L"height", relativeLayoutValue))
1529 layoutParam.height = rect.height;
1530 layout.SetHeight(control, layoutParam.height);
1534 layoutParam.height = 0;
1537 if (pControlProperty->GetLayoutElement(L"verticalFitPolicy", relativeLayoutValue))
1539 if (relativeLayoutValue.Equals(L"FIT_POLICY_CONTENT", false))
1541 layoutParam.verticalFitPolicy = FIT_POLICY_CONTENT;
1543 else if (relativeLayoutValue.Equals(L"FIT_POLICY_PARENT", false))
1545 layoutParam.verticalFitPolicy = FIT_POLICY_PARENT;
1549 layoutParam.verticalFitPolicy = FIT_POLICY_FIXED;
1551 layout.SetVerticalFitPolicy(control, layoutParam.verticalFitPolicy);
1555 layoutParam.verticalFitPolicy = FIT_POLICY_CONTENT;
1558 if (pControlProperty->GetLayoutElement(L"width", relativeLayoutValue))
1560 layoutParam.width = rect.width;
1561 layout.SetWidth(control, layoutParam.width);
1565 layoutParam.width = 0;
1568 if (pControlProperty->GetLayoutElement(L"horizontalFitPolicy", relativeLayoutValue))
1570 if (relativeLayoutValue.Equals(L"FIT_POLICY_CONTENT", false))
1572 layoutParam.horizontalFitPolicy = FIT_POLICY_CONTENT;
1574 else if (relativeLayoutValue.Equals(L"FIT_POLICY_PARENT", false))
1576 layoutParam.horizontalFitPolicy = FIT_POLICY_PARENT;
1580 layoutParam.horizontalFitPolicy = FIT_POLICY_FIXED;
1582 layout.SetHorizontalFitPolicy(control, layoutParam.horizontalFitPolicy);
1586 layoutParam.horizontalFitPolicy = FIT_POLICY_CONTENT;
1589 bool marginSet = false;
1590 layoutParam.marginLeft = 0;
1591 layoutParam.marginRight = 0;
1592 layoutParam.marginTop = 0;
1593 layoutParam.marginBottom = 0;
1595 Tizen::Graphics::_ICoordinateSystemTransformer* pTransform = GetTransformer();
1597 if (pControlProperty->GetLayoutElement(L"marginLeft", relativeLayoutValue))
1600 Integer::Parse(relativeLayoutValue, layoutParam.marginLeft);
1604 layoutParam.marginLeft = pTransform->Transform(layoutParam.marginLeft);
1607 if (pControlProperty->GetLayoutElement(L"marginRight", relativeLayoutValue))
1610 Integer::Parse(relativeLayoutValue, layoutParam.marginRight);
1614 layoutParam.marginRight = pTransform->Transform(layoutParam.marginRight);
1617 if (pControlProperty->GetLayoutElement(L"marginTop", relativeLayoutValue))
1620 Integer::Parse(relativeLayoutValue, layoutParam.marginTop);
1624 layoutParam.marginTop = pTransform->Transform(layoutParam.marginTop);
1627 if (pControlProperty->GetLayoutElement(L"marginBottom", relativeLayoutValue))
1630 Integer::Parse(relativeLayoutValue, layoutParam.marginBottom);
1634 layoutParam.marginBottom = pTransform->Transform(layoutParam.marginBottom);
1639 layout.SetMargin(control, layoutParam.marginLeft, layoutParam.marginRight, layoutParam.marginTop, layoutParam.marginBottom);
1644 _UiBuilderControlMaker::SetLayoutProperty(_UiBuilderControl* pUiBuilderControl, Control* pControl)
1647 _UiBuilderControlLayout* pControlProperty = null;
1649 Container* pContainer = null;
1650 if (GetContainer()->GetName().Equals(Tizen::Base::String(pUiBuilderControl->GetParentWin())))
1652 pContainer = static_cast<Tizen::Ui::Container*>(GetContainer());
1656 pContainer = dynamic_cast<Tizen::Ui::Container*>(static_cast<Tizen::Ui::Container*>(GetContainer())->GetControl(pUiBuilderControl->GetParentWin(), true));
1659 SysTryReturnVoidResult(NID_UI, pContainer != null, GetLastResult(), "Failed to get Container");
1661 for (i = 0; i < UIBUILDER_ATTRIBUTE_NUM; i++)
1663 _UiBuilderLayoutType layoutType = UIBUILDER_LAYOUT_NONE;
1664 pControlProperty = pUiBuilderControl->GetAttribute(i);
1665 GetParentLayoutType(pControlProperty, layoutType);
1668 case UIBUILDER_LAYOUT_NONE:
1671 case UIBUILDER_LAYOUT_GRID:
1673 GridLayout* pLayout = null;
1674 if (UIBUILDER_ATTRIBUTE_PORTRAIT == i)
1676 pLayout = dynamic_cast<GridLayout*>(pContainer->GetPortraitLayoutN());
1678 else if (UIBUILDER_ATTRIBUTE_LANDSCAPE == i)
1680 pLayout = dynamic_cast<GridLayout*>(pContainer->GetLandscapeLayoutN());
1685 SetGridLayoutControlProperty(pLayout, pControlProperty, pControl);
1691 case UIBUILDER_LAYOUT_HORIZONTAL_BOX:
1693 HorizontalBoxLayout* pLayout = null;
1694 if (UIBUILDER_ATTRIBUTE_PORTRAIT == i)
1696 pLayout = dynamic_cast<HorizontalBoxLayout*>(pContainer->GetPortraitLayoutN());
1698 else if (UIBUILDER_ATTRIBUTE_LANDSCAPE == i)
1700 pLayout = dynamic_cast<HorizontalBoxLayout*>(pContainer->GetLandscapeLayoutN());
1704 SetHorizontalBoxLayoutProperty(pLayout, pControlProperty, pControl);
1710 case UIBUILDER_LAYOUT_VERTICAL_BOX:
1712 VerticalBoxLayout* pLayout = null;
1713 if (UIBUILDER_ATTRIBUTE_PORTRAIT == i)
1715 pLayout = dynamic_cast<VerticalBoxLayout*>(pContainer->GetPortraitLayoutN());
1717 else if (UIBUILDER_ATTRIBUTE_LANDSCAPE == i)
1719 pLayout = dynamic_cast<VerticalBoxLayout*>(pContainer->GetLandscapeLayoutN());
1723 SetVerticalBoxLayoutProperty(pLayout, pControlProperty, pControl);
1729 case UIBUILDER_LAYOUT_RELATIVE:
1731 RelativeLayout* pLayout = null;
1732 if (UIBUILDER_ATTRIBUTE_PORTRAIT == i)
1734 pLayout = dynamic_cast<RelativeLayout*>(pContainer->GetPortraitLayoutN());
1736 else if (UIBUILDER_ATTRIBUTE_LANDSCAPE == i)
1738 pLayout = dynamic_cast<RelativeLayout*>(pContainer->GetLandscapeLayoutN());
1742 SetRelativeLayoutProperty(pLayout, pControlProperty, pControl);
1749 SysLog(NID_UI, "Unknown Layout type = %d", layoutType);
1757 _UiBuilderControlMaker::AddControl(_UiBuilderControl* pUiBuilderControl, Tizen::Ui::Control* pControl)
1759 Tizen::Base::String panePosition;
1760 Tizen::Ui::Container* pContainer = GetContainer();
1761 Tizen::Ui::Control* pFindControl = null;
1765 if (pContainer->GetName().Equals(pUiBuilderControl->GetParentWin()))
1767 pFindControl = pContainer;
1771 pFindControl = pContainer->GetControl(Tizen::Base::String(pUiBuilderControl->GetParentWin()), true);
1775 //Add SplitPanel child
1776 if (pUiBuilderControl->GetElement(L"controlPosition", panePosition))
1779 Tizen::Ui::Controls::SplitPanel *pSplitPanel = dynamic_cast<SplitPanel*>(pFindControl);
1782 if(panePosition.Equals(L"first", false))
1784 pSplitPanel->SetPane(pControl, SPLIT_PANEL_PANE_ORDER_FIRST);
1788 pSplitPanel->SetPane(pControl, SPLIT_PANEL_PANE_ORDER_SECOND);
1793 //Add Container chid
1794 Tizen::Ui::Container* pParent = dynamic_cast<Tizen::Ui::Container*>(pFindControl);
1796 if (pParent != null)
1798 pParent->AddControl(*pControl);
1802 Tizen::Ui::Container*
1803 _UiBuilderControlMaker::GetContainer(void) const
1805 return __pUiBuilder->GetContainer();
1809 _UiBuilderControlMaker::SetLayoutOrientation(_UiBuilderControl* pUiBuilderCOntrol, Tizen::Ui::Control* pControl)
1811 __pUiBuilder->SetLayoutOrientation(pUiBuilderCOntrol, pControl);
1815 _UiBuilderControlMaker::SetUiBuilderRotateState(_UiBuilderScreenRotate rotate)
1817 return __pUiBuilder->SetUiBuilderRotateState(rotate);
1820 _UiBuilderScreenRotate
1821 _UiBuilderControlMaker::GetUiBuilderRotateState(void)
1823 return __pUiBuilder->GetUiBuilderRotateState();
1826 Tizen::Graphics::_ICoordinateSystemTransformer*
1827 _UiBuilderControlMaker::GetTransformer(void) const
1829 return __pUiBuilder->GetTransformer();