- popup.SetParentOrigin( ParentOrigin::CENTER );
- popup.SetAnchorPoint( AnchorPoint::CENTER );
- popup.SetSize( stage.GetSize().width * 0.75f, 0.0f );
- popup.SetProperty( Popup::Property::TAIL_VISIBILITY, false );
- popup.OutsideTouchedSignal().Connect( this, &StylingApplication::HidePopup );
- popup.HiddenSignal().Connect( this, &StylingApplication::PopupHidden );
-
- popup.SetTitle( CreateTitle( "Reset channels" ) );
-
- TextLabel text = TextLabel::New( "This will reset the channel data to full value. Are you sure?" );
- text.SetName( "PopupContentText" );
- text.SetStyleName( "PopupBody" );
- text.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
- text.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT );
- text.SetProperty( TextLabel::Property::MULTI_LINE, true );
- text.SetPadding( Padding( 10.0f, 10.0f, 20.0f, 0.0f ) );
- popup.SetContent( text );
-
- ImageView footer = ImageView::New( DEFAULT_CONTROL_AREA_IMAGE_PATH );
- footer.SetName( "PopupFooter" );
- footer.SetStyleName( "PopupFooter" );
- footer.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
- footer.SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT );
- footer.SetSize( 0.0f, 80.0f );
- footer.SetAnchorPoint( AnchorPoint::CENTER );
- footer.SetParentOrigin( ParentOrigin::CENTER );
-
- TableView footerLayout = TableView::New( 1, 2 );
- footerLayout.SetParentOrigin( ParentOrigin::CENTER );
- footerLayout.SetAnchorPoint ( AnchorPoint::CENTER );
- footerLayout.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
+ popup.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ popup.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
+ popup.SetProperty(Actor::Property::SIZE, Vector2(window.GetSize().GetWidth() * 0.75f, 0.0f));
+ popup.SetProperty(Popup::Property::TAIL_VISIBILITY, false);
+ popup.OutsideTouchedSignal().Connect(this, &StylingApplication::HidePopup);
+ popup.HiddenSignal().Connect(this, &StylingApplication::PopupHidden);
+
+ popup.SetTitle(CreateTitle("Reset channels"));
+
+ TextLabel text = TextLabel::New("This will reset the channel data to full value. Are you sure?");
+ text.SetProperty(Dali::Actor::Property::NAME, "PopupContentText");
+ text.SetStyleName("PopupBody");
+ text.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH);
+ text.SetResizePolicy(ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT);
+ text.SetProperty(TextLabel::Property::MULTI_LINE, true);
+ text.SetProperty(Actor::Property::PADDING, Padding(10.0f, 10.0f, 20.0f, 0.0f));
+ popup.SetContent(text);
+
+ ImageView footer = ImageView::New(DEFAULT_CONTROL_AREA_IMAGE_PATH);
+ footer.SetProperty(Dali::Actor::Property::NAME, "PopupFooter");
+ footer.SetStyleName("PopupFooter");
+ footer.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH);
+ footer.SetResizePolicy(ResizePolicy::FIXED, Dimension::HEIGHT);
+ footer.SetProperty(Actor::Property::SIZE, Vector2(0.0f, 80.0f));
+ footer.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
+ footer.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+
+ TableView footerLayout = TableView::New(1, 2);
+ footerLayout.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ footerLayout.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
+ footerLayout.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);