#include <FAppApplication.h>
#include <FBaseInternalTypes.h>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
#include <FApp_AppInfo.h>
if (pControl->GetElement(L"NormalBitmapX", elementString))
{
- position.x = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.x = _LocalizedNumParser::ToDouble(elementString, "C");
if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
position.x = 0.0f;
if (pControl->GetElement(L"NormalBitmapY", elementString))
{
- position.y = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.y = _LocalizedNumParser::ToDouble(elementString, "C");
if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().height - ((Control*) (GetContainer()))->GetBoundsF().y))
{
position.y = 0.0f;
pPressedBitmap = LoadBitmapN(elementString);
if (pControl->GetElement(L"PressedBitmapX", elementString))
{
- position.x = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.x = _LocalizedNumParser::ToDouble(elementString, "C");
if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
position.x = 0.0f;
if (pControl->GetElement(L"PressedBitmapY", elementString))
{
- position.y = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.y =_LocalizedNumParser::ToDouble(elementString, "C");
if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().height - ((Control*) (GetContainer()))->GetBoundsF().y))
{
position.y = 0.0f;
pDisabledBitmap = LoadBitmapN(elementString);
if (pControl->GetElement(L"DisabledBitmapX", elementString))
{
- position.x = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.x = _LocalizedNumParser::ToDouble(elementString, "C");
if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
position.x = 0.0f;
if (pControl->GetElement(L"DisabledBitmapY", elementString))
{
- position.y = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.y = _LocalizedNumParser::ToDouble(elementString, "C");
if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().height - ((Control*) (GetContainer()))->GetBoundsF().y))
{
position.y = 0.0f;
pHighlightedBitmap = LoadBitmapN(elementString);
if (pControl->GetElement(L"HighlightedBitmapX", elementString))
{
- position.x = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.x = _LocalizedNumParser::ToDouble(elementString, "C");
if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
position.x = 0.0f;
if (pControl->GetElement(L"HighlightedBitmapY", elementString))
{
- position.y = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ position.y = _LocalizedNumParser::ToDouble(elementString, "C");
if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().height - ((Control*) (GetContainer()))->GetBoundsF().y))
{
position.y = 0.0f;
{
_ICoordinateSystemTransformer* pTransform = GetTransformer();
- size = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ size = _LocalizedNumParser::ToDouble(elementString, "C");
if (pTransform)
{
#include <FApp_AppInfo.h>
#include <FBaseInternalTypes.h>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
#include <FUiCtrlInputTypes.h>
if (pControl->GetElement(L"textSize", elementString))
{
- fontSize = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ fontSize = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement(L"horizontalMargin", elementString))
{
- horizontalMargin= _CoordinateSystemUtils::ConvertToFloat(elementString);
+ horizontalMargin= _LocalizedNumParser::ToDouble(elementString, "C");
r = pEditArea->SetMargin(EDIT_MARGIN_TYPE_HORIZONTAL, horizontalMargin);
}
if (pControl->GetElement(L"verticalMargin", elementString))
{
- verticalMargin= _CoordinateSystemUtils::ConvertToFloat(elementString);
+ verticalMargin= _LocalizedNumParser::ToDouble(elementString, "C");
r = pEditArea->SetMargin(EDIT_MARGIN_TYPE_VERTICAL, verticalMargin);
}
#include <FApp_AppInfo.h>
#include <FBaseSysLog.h>
#include <FBaseInternalTypes.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
#include <FUiCtrlEditField.h>
if (pControl->GetElement(L"textSize", elementString))
{
- fontSize = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ fontSize = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement(L"horizontalMargin", elementString))
{
- horizontalMargin = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ horizontalMargin = _LocalizedNumParser::ToDouble(elementString, "C");
r = pEditField->SetMargin(EDIT_MARGIN_TYPE_HORIZONTAL, horizontalMargin);
}
if (pControl->GetElement(L"verticalMargin", elementString))
{
- verticalMargin = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ verticalMargin = _LocalizedNumParser::ToDouble(elementString, "C");
r = pEditField->SetMargin(EDIT_MARGIN_TYPE_VERTICAL, verticalMargin);
}
#include <FBaseSysLog.h>
#include <FBaseInternalTypes.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
#include <FUiCtrlInputTypes.h>
if (pControl->GetElement(L"textSize", elementString))
{
- textSize = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ textSize = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement(L"verticalMargin", elementString))
{
- verticalMarin = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ verticalMarin = _LocalizedNumParser::ToDouble(elementString, "C");
r = pExpandableEditArea->SetMargin(EDIT_MARGIN_TYPE_VERTICAL, verticalMarin);
}
if (pControl->GetElement(L"horizontalMargin", elementString))
{
- horizontalMargin = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ horizontalMargin = _LocalizedNumParser::ToDouble(elementString, "C");
r = pExpandableEditArea->SetMargin(EDIT_MARGIN_TYPE_HORIZONTAL, horizontalMargin);
}
#include <FBaseErrors.h>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include "FUiCtrl_GroupContainerImpl.h"
#include "FUi_CoordinateSystemUtils.h"
#include "FUi_UiBuilder.h"
if (pControl->GetElement("lineWidth", elementString))
{
- lineWidth = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ lineWidth = _LocalizedNumParser::ToDouble(elementString, "C");
}
rect = pControlProperty->GetRectF();
//Includes
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include "FUi_UiBuilder.h"
#include "FUiCtrl_IconListView.h"
#include "FUiCtrl_IconListViewImpl.h"
// Get ItemBitmapSize(width)
if (pControl->GetElement("itemBitmapWidth", elementString))
{
- itemBitmapSize.width = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ itemBitmapSize.width = _LocalizedNumParser::ToDouble(elementString, "C");
}
// Get ItemBitmapSize(height)
if (pControl->GetElement("itemBitmapHeight", elementString))
{
- itemBitmapSize.height = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ itemBitmapSize.height = _LocalizedNumParser::ToDouble(elementString, "C");
}
// Get style
if (pControl->GetElement("itemHorizontalSpacing", elementString))
{
float spacing = 0.0f;
- spacing = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ spacing = _LocalizedNumParser::ToDouble(elementString, "C");
pIconListView->SetItemSpacing(spacing, pIconListView->GetItemVerticalSpacingF());
}
if (pControl->GetElement("itemVerticalSpacing", elementString))
{
float spacing = 0.0f;
- spacing = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ spacing = _LocalizedNumParser::ToDouble(elementString, "C");
pIconListView->SetItemSpacing(pIconListView->GetItemHorizontalSpacingF(), spacing);
}
if (pControl->GetElement("itemTextSize", elementString))
{
float size = 0.0f;
- size = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ size = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
#include <FAppApplication.h>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
#include "FUi_ResourceSizeInfo.h"
if (pControl->GetElement(L"textSize", elementString))
{
- size = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ size = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
#include <FBaseSysLog.h>
#include <FGrpRectangle.h>
#include <FUiCtrlScrollPanel.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiLayout.h>
#include "FApp_AppInfo.h"
#include "FUi_LayoutImpl.h"
if (pControl->GetElement(L"clientAreaWidth", elementString) || pControl->GetElement(L"ClientAreaWidth", elementString))
{
float width = 0.0f;
- width = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ width = _LocalizedNumParser::ToDouble(elementString, "C");
pScrollPanel->SetClientAreaWidth(width);
}
}
if (pControl->GetElement(L"clientAreaHeight", elementString) || pControl->GetElement(L"ClientAreaHeight", elementString))
{
float height = 0.0f;
- height = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ height = _LocalizedNumParser::ToDouble(elementString, "C");
pScrollPanel->SetClientAreaWidth(height);
}
}
#include <FApp_AppInfo.h>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include <FLclLocale.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
if (pControl->GetElement("searchFieldTextSize", elementString))
{
- searchFieldTextSize = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ searchFieldTextSize = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
#include <FBaseInternalTypes.h>
#include <FApp_AppInfo.h>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiCtrlPanel.h>
#include <FUiCtrlScrollPanel.h>
#include <FUiCtrlForm.h>
if (pControl->GetElement("minDividerPosition", elementString))
{
- minDividerPosition = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ minDividerPosition = _LocalizedNumParser::ToDouble(elementString, "C");
if (__pTransform != null)
{
if (pControl->GetElement("maxDividerPosition", elementString))
{
- maxDividerPosition = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ maxDividerPosition = _LocalizedNumParser::ToDouble(elementString, "C");
if (__pTransform != null)
{
if (pControl->GetElement("dividerPosition", elementString))
{
- dividerPosition = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ dividerPosition = _LocalizedNumParser::ToDouble(elementString, "C");
if (__pTransform != null)
{
#include <new>
#include <FBaseSysLog.h>
+#include <FBase_LocalizedNumParser.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
#include "FUi_CoordinateSystemUtils.h"
if (pControl->GetElement("textSize", elementString))
{
- textSize = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ textSize = _LocalizedNumParser::ToDouble(elementString, "C");
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement("lineSpacingExtra", elementString))
{
- lineSpacingExtra = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ lineSpacingExtra =_LocalizedNumParser::ToDouble(elementString, "C");
if (pControl->GetElement("lineSpacingMultiplier", elementString))
{
Base::Integer::Parse(elementString, lineSpacingMultiplier);
#include <FBaseSysLog.h>
#include <FBaseInteger.h>
#include <FBase_StringConverter.h>
+#include <FBase_LocalizedNumParser.h>
#include <FGrp_NonScale.h>
#include <FGrp_BitmapImpl.h>
#include "FUi_UiBuilderControlMaker.h"
if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
{
- layoutParam.columnSpacing = _CoordinateSystemUtils::ConvertToFloat(gridLayoutContainerPropertyValue);
+ layoutParam.columnSpacing = _LocalizedNumParser::ToDouble(gridLayoutContainerPropertyValue, "C");
r = layout.SetColumnSpacing(i - 1, layoutParam.columnSpacing);
if (IsFailed(r))
{
if (pControlProperty->GetLayoutElement(tempString, gridLayoutContainerPropertyValue))
{
- layoutParam.rowSpacing = _CoordinateSystemUtils::ConvertToFloat(gridLayoutContainerPropertyValue);
+ layoutParam.rowSpacing = _LocalizedNumParser::ToDouble(gridLayoutContainerPropertyValue, "C");
r = layout.SetRowSpacing(i - 1, layoutParam.rowSpacing);
if (IsFailed(r))
{
if (pControlProperty->GetLayoutElement(L"marginLeft", gridLayoutValue))
{
marginSet = true;
- layoutParam.marginLeft = _CoordinateSystemUtils::ConvertToFloat(gridLayoutValue);
+ layoutParam.marginLeft = _LocalizedNumParser::ToDouble(gridLayoutValue, "C");
+
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"marginRight", gridLayoutValue))
{
marginSet = true;
- layoutParam.marginRight = _CoordinateSystemUtils::ConvertToFloat(gridLayoutValue);
+ layoutParam.marginRight = _LocalizedNumParser::ToDouble(gridLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"marginTop", gridLayoutValue))
{
marginSet = true;
- layoutParam.marginTop = _CoordinateSystemUtils::ConvertToFloat(gridLayoutValue);
+ layoutParam.marginTop = _LocalizedNumParser::ToDouble(gridLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"marginBottom", gridLayoutValue))
{
marginSet = true;
- layoutParam.marginBottom = _CoordinateSystemUtils::ConvertToFloat(gridLayoutValue);
+ layoutParam.marginBottom = _LocalizedNumParser::ToDouble(gridLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"height", horizontalBoxLayoutValue))
{
- layoutParam.height = _CoordinateSystemUtils::ConvertToFloat(horizontalBoxLayoutValue);
+ layoutParam.height = _LocalizedNumParser::ToDouble(horizontalBoxLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"verticalTopMargin", horizontalBoxLayoutValue))
{
marginSet = true;
- layoutParam.verticalTopMargin = _CoordinateSystemUtils::ConvertToFloat(horizontalBoxLayoutValue);
+ layoutParam.verticalTopMargin = _LocalizedNumParser::ToDouble(horizontalBoxLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"verticalBottomMargin", horizontalBoxLayoutValue))
{
marginSet = true;
- layoutParam.verticalBottomMargin = _CoordinateSystemUtils::ConvertToFloat(horizontalBoxLayoutValue);
+ layoutParam.verticalBottomMargin = _LocalizedNumParser::ToDouble(horizontalBoxLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"spacing", horizontalBoxLayoutValue))
{
- layoutParam.spacing = _CoordinateSystemUtils::ConvertToFloat(horizontalBoxLayoutValue);
+ layoutParam.spacing = _LocalizedNumParser::ToDouble(horizontalBoxLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"weight", horizontalBoxLayoutValue))
{
- layoutParam.weight = _CoordinateSystemUtils::ConvertToFloat(horizontalBoxLayoutValue);
+ layoutParam.weight = _LocalizedNumParser::ToDouble(horizontalBoxLayoutValue, "C");
layout.SetWeight(control, layoutParam.weight);
}
else
if (pControlProperty->GetLayoutElement(L"width", horizontalBoxLayoutValue))
{
- layoutParam.width = _CoordinateSystemUtils::ConvertToFloat(horizontalBoxLayoutValue);
+ layoutParam.width = _LocalizedNumParser::ToDouble(horizontalBoxLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"height", verticalBoxLayoutValue))
{
- layoutParam.height = _CoordinateSystemUtils::ConvertToFloat(verticalBoxLayoutValue);
+ layoutParam.height = _LocalizedNumParser::ToDouble(verticalBoxLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"horizontalLeftMargin", verticalBoxLayoutValue))
{
marginSet = true;
- layoutParam.horizontalLeftMargin = _CoordinateSystemUtils::ConvertToFloat(verticalBoxLayoutValue);
+ layoutParam.horizontalLeftMargin = _LocalizedNumParser::ToDouble(verticalBoxLayoutValue, "C");
if (pTransform)
{
layoutParam.horizontalLeftMargin = pTransform->Transform(layoutParam.horizontalLeftMargin);
if (pControlProperty->GetLayoutElement(L"horizontalRightMargin", verticalBoxLayoutValue))
{
marginSet = true;
- layoutParam.horizontalRightMargin = _CoordinateSystemUtils::ConvertToFloat(verticalBoxLayoutValue);
+ layoutParam.horizontalRightMargin = _LocalizedNumParser::ToDouble(verticalBoxLayoutValue, "C");
if (pTransform)
{
layoutParam.horizontalRightMargin = pTransform->Transform(layoutParam.horizontalRightMargin);
if (pControlProperty->GetLayoutElement(L"spacing", verticalBoxLayoutValue))
{
- layoutParam.spacing = _CoordinateSystemUtils::ConvertToFloat(verticalBoxLayoutValue);
+ layoutParam.spacing = _LocalizedNumParser::ToDouble(verticalBoxLayoutValue, "C");
if (pTransform)
{
layoutParam.spacing = pTransform->Transform(layoutParam.spacing);
if (pControlProperty->GetLayoutElement(L"weight", verticalBoxLayoutValue))
{
- layoutParam.weight = _CoordinateSystemUtils::ConvertToFloat(verticalBoxLayoutValue);
+ layoutParam.weight = _LocalizedNumParser::ToDouble(verticalBoxLayoutValue, "C");
layout.SetWeight(control, layoutParam.weight);
}
else
if (pControlProperty->GetLayoutElement(L"width", verticalBoxLayoutValue))
{
- layoutParam.width = _CoordinateSystemUtils::ConvertToFloat(verticalBoxLayoutValue);
+ layoutParam.width = _LocalizedNumParser::ToDouble(verticalBoxLayoutValue, "C");
if (pTransform)
{
layoutParam.width = pTransform->Transform(layoutParam.width);
if (pControlProperty->GetLayoutElement(L"marginLeft", relativeLayoutValue))
{
marginSet = true;
- layoutParam.marginLeft = _CoordinateSystemUtils::ConvertToFloat(relativeLayoutValue);
+ layoutParam.marginLeft = _LocalizedNumParser::ToDouble(relativeLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"marginRight", relativeLayoutValue))
{
marginSet = true;
- layoutParam.marginRight = _CoordinateSystemUtils::ConvertToFloat(relativeLayoutValue);
+ layoutParam.marginRight = _LocalizedNumParser::ToDouble(relativeLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"marginTop", relativeLayoutValue))
{
marginSet = true;
- layoutParam.marginTop = _CoordinateSystemUtils::ConvertToFloat(relativeLayoutValue);
+ layoutParam.marginTop = _LocalizedNumParser::ToDouble(relativeLayoutValue, "C");
if (pTransform)
{
if (pControlProperty->GetLayoutElement(L"marginBottom", relativeLayoutValue))
{
marginSet = true;
- layoutParam.marginBottom = _CoordinateSystemUtils::ConvertToFloat(relativeLayoutValue);
+ layoutParam.marginBottom = _LocalizedNumParser::ToDouble(relativeLayoutValue, "C");
if (pTransform)
{