if( mPreviewImage && mPreviewVisible != visible )
{
mPreviewVisible = visible;
- mPreviewImage.SetProperty( Actor::Property::VISIBLE, visible );
+ mPreviewImage.SetVisible( visible );
}
}
mLoadingText.SetProperty( Toolkit::TextLabel::Property::TEXT,
( mLoadingTextString.empty() )? GET_LOCALE_TEXT( "IDS_ST_POP_LOADING_ING" ) : mLoadingTextString );
}
- mLoadingText.SetProperty( Actor::Property::VISIBLE, visible );
+ mLoadingText.SetVisible( visible );
}
}
mRetryText.SetProperty( Toolkit::TextLabel::Property::TEXT,
( mRetryTextString.empty() )? GET_LOCALE_TEXT( "IDS_HS_BODY_UNABLE_TO_LOAD_DATA_TAP_TO_RETRY" ) : mRetryTextString );
}
- mRetryText.SetProperty( Actor::Property::VISIBLE, visible );
+ mRetryText.SetVisible( visible );
}
}
mPreviewActor = Dali::Actor::New();
- mPreviewActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mPreviewActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ mPreviewActor.SetParentOrigin( ParentOrigin::CENTER );
+ mPreviewActor.SetAnchorPoint( AnchorPoint::CENTER );
mPreviewActor.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
mPreviewImage = Toolkit::ImageView::New( previewImage );
- mPreviewImage.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mPreviewImage.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ mPreviewImage.SetParentOrigin( ParentOrigin::CENTER );
+ mPreviewImage.SetAnchorPoint( AnchorPoint::CENTER );
mPreviewImage.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
Self().SetResizePolicy( ResizePolicy::FIXED, Dimension::ALL_DIMENSIONS );
- Self().SetProperty( Actor::Property::SIZE, Vector2(mWidth, mHeight));
+ Self().SetSize( mWidth, mHeight );
Self().Add( mPreviewActor );
mPreviewActor.Add( mPreviewImage );
mStateTextActor = Dali::Actor::New();
- mStateTextActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mStateTextActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ mStateTextActor.SetParentOrigin( ParentOrigin::CENTER );
+ mStateTextActor.SetAnchorPoint( AnchorPoint::CENTER );
mStateTextActor.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
// Loading text
mLoadingText = Toolkit::TextLabel::New( ( mLoadingTextString.empty() )? GET_LOCALE_TEXT( "IDS_ST_POP_LOADING_ING" ) : mLoadingTextString );
- mLoadingText.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mLoadingText.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ mLoadingText.SetParentOrigin( ParentOrigin::CENTER );
+ mLoadingText.SetAnchorPoint( AnchorPoint::CENTER );
mLoadingText.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" );
mLoadingText.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
mLoadingText.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Dali::Color::WHITE );
// Retry text
mRetryText = Toolkit::TextLabel::New( ( mRetryTextString.empty() )? GET_LOCALE_TEXT( "IDS_HS_BODY_UNABLE_TO_LOAD_DATA_TAP_TO_RETRY" ) : mRetryTextString );
- mRetryText.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mRetryText.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ mRetryText.SetParentOrigin( ParentOrigin::CENTER );
+ mRetryText.SetAnchorPoint( AnchorPoint::CENTER );
mRetryText.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" );
mRetryText.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
mRetryText.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Dali::Color::WHITE );
mRetryText.SetProperty( Toolkit::TextLabel::Property::POINT_SIZE, TextPixelToPointSize( DEFAULT_FONT_PIXEL_SIZE ) );
mStateTextActor.Add( mRetryText );
- mRetryText.SetProperty( Actor::Property::VISIBLE, false );
+ mRetryText.SetVisible( false );
// launch widget
mPid = widget_instance_launch( instanceId, (char *)mContentInfo.c_str(), mWidth, mHeight );
{
if( mPreviewImage && mPreviewVisible )
{
- mPreviewImage.SetProperty( Actor::Property::VISIBLE, show );
+ mPreviewImage.SetVisible( show );
}
if( mLoadingText && mLoadingTextVisible )
{
mLoadingText.SetProperty( Toolkit::TextLabel::Property::TEXT,
( mLoadingTextString.empty() )? GET_LOCALE_TEXT( "IDS_ST_POP_LOADING_ING" ) : mLoadingTextString );
- mLoadingText.SetProperty( Actor::Property::VISIBLE, show );
+ mLoadingText.SetVisible( show );
}
}
{
if( mPreviewImage && mPreviewVisible )
{
- mPreviewImage.SetProperty( Actor::Property::VISIBLE, false );
+ mPreviewImage.SetVisible( false );
}
if( mRetryText && mRetryTextVisible )
{
mRetryText.SetProperty( Toolkit::TextLabel::Property::TEXT,
( mRetryTextString.empty() )? GET_LOCALE_TEXT( "IDS_HS_BODY_UNABLE_TO_LOAD_DATA_TAP_TO_RETRY" ) : mRetryTextString );
- mRetryText.SetProperty( Actor::Property::VISIBLE, show );
+ mRetryText.SetVisible( show );
mRetryState = show;
}
}