X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fsimple-visuals-control%2Fsimple-visuals-application.cpp;h=749d5bef299de120ad71023462f5b92eb633f564;hb=refs%2Fchanges%2F41%2F234641%2F1;hp=a698f170dddc97e1a30a37aa1521cd43098432e6;hpb=d23323bc5b8e876b1b873eef2f53b47aa97d318d;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/simple-visuals-control/simple-visuals-application.cpp b/examples/simple-visuals-control/simple-visuals-application.cpp index a698f17..749d5be 100644 --- a/examples/simple-visuals-control/simple-visuals-application.cpp +++ b/examples/simple-visuals-control/simple-visuals-application.cpp @@ -19,8 +19,6 @@ // EXTERNAL INCLUDES #include -#include -#include #include #include #include @@ -113,12 +111,12 @@ void SimpleVisualsApplication::Create( Application& application ) // Create a table view to parent the 2 MyControls TableView contentLayout = TableView::New( 2, 2 ); - contentLayout.SetName("ContentLayout"); + contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); contentLayout.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); contentLayout.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::HEIGHT ); - contentLayout.SetSizeModeFactor( Vector3( 1.0f, .5f, 1.0f ) ); - contentLayout.SetAnchorPoint( AnchorPoint::CENTER ); - contentLayout.SetParentOrigin( ParentOrigin::CENTER ); + contentLayout.SetProperty( Actor::Property::SIZE_MODE_FACTOR, Vector3( 1.0f, .5f, 1.0f ) ); + contentLayout.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); + contentLayout.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); contentLayout.SetCellPadding( Vector2( 50.0f, 15.0f ) ); contentLayout.SetBackgroundColor( Vector4(0.949, 0.949, 0.949, 1.0) ); @@ -130,11 +128,11 @@ void SimpleVisualsApplication::Create( Application& application ) // Create 2 MyControls and add to table view. mMyControl = MyControl::New(); mMyControl.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); - mMyControl.SetParentOrigin(ParentOrigin::TOP_LEFT); + mMyControl.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT); mMyControl2 = MyControl::New(); mMyControl2.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); - mMyControl2.SetParentOrigin(ParentOrigin::CENTER); + mMyControl2.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER); contentLayout.AddChild( mMyControl2, TableView::CellPosition(0, 0) ); contentLayout.AddChild( mMyControl, TableView::CellPosition(0, 1) );