}
result
-_UiBuilder::SetFormXmlResolution(int formXmlResoluton)
+_UiBuilder::SetFormXmlResolution(_LogicalResolution formXmlResoluton)
{
result r = E_SUCCESS;
if (__pTransform == null)
{
- if (formXmlResoluton == 720 && __logicalResolution == 480)
+ if (formXmlResoluton == RESOLUTION_LOGICAL_720 && __logicalResolution == 480)
{
__pTransform = _CoordinateSystem::GetTransformerN(RESOLUTION_LOGICAL_720, RESOLUTION_LOGICAL_480);
SysTryReturn(NID_UI, __pTransform != null, null, GetLastResult(),
"Failed to get Transformer");
}
- if (formXmlResoluton == 480 && __logicalResolution == 720)
+ if (formXmlResoluton == RESOLUTION_LOGICAL_480 && __logicalResolution == 720)
{
__pTransform = _CoordinateSystem::GetTransformerN(RESOLUTION_LOGICAL_480, RESOLUTION_LOGICAL_720);
SysTryReturn(NID_UI, __pTransform != null, GetLastResult(), GetLastResult(),
{
if (XMLHandler->__formXmlResolutionExists == true)
{
- int formXmlResolution = 0;
+ Tizen::Graphics::_LogicalResolution formXmlResolution;
if (xmlStrncmp( ch, (xmlChar*)"720", len) == 0)
{
- formXmlResolution = 720;
+ formXmlResolution = Tizen::Graphics::RESOLUTION_LOGICAL_720;
XMLHandler->__errorResult = XMLHandler->__pGenerator->SetFormXmlResolution(formXmlResolution);
}
else
{
- formXmlResolution = 480;
+ formXmlResolution = Tizen::Graphics::RESOLUTION_LOGICAL_480;
XMLHandler->__errorResult = XMLHandler->__pGenerator->SetFormXmlResolution(formXmlResolution);
}
XMLHandler->__formXmlResolutionExists = false;
_UiBuilderScreenRotate GetUiBuilderRotateState(void) const;
_UiBuilderControl* GetControl(int index) const;
_UiBuilderControl* GetControl(const Tizen::Base::String& id) const;
- result SetFormXmlResolution(int formXmlResoluton);
+ result SetFormXmlResolution(Tizen::Graphics::_LogicalResolution formXmlResoluton);
Tizen::Graphics::_ICoordinateSystemTransformer* GetTransformer(void) const;
private:
_UiBuilder(const _UiBuilder& rhs);