Commit e839ccd8e2f06b0fca531643b97cde30d81e8d25
Committed by
Gerrit Code Review
Merge "Remove usage of deprecated APIs" into devel/master
Showing
4 changed files
with
10 additions
and
14 deletions
examples/animated-gradient-call-active/animated-gradient-call-active.cpp
| 1 | /* | 1 | /* |
| 2 | -* Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | +* Copyright (c) 2019 Samsung Electronics Co., Ltd. |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
| @@ -212,7 +212,7 @@ private: | @@ -212,7 +212,7 @@ private: | ||
| 212 | mCallStartButton.SetProperty( DevelButton::Property::SELECTED_BACKGROUND_VISUAL, ICON_CALL_IMAGE ); | 212 | mCallStartButton.SetProperty( DevelButton::Property::SELECTED_BACKGROUND_VISUAL, ICON_CALL_IMAGE ); |
| 213 | mCallStartButton.SetProperty( DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, ICON_CALL_IMAGE ); | 213 | mCallStartButton.SetProperty( DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, ICON_CALL_IMAGE ); |
| 214 | mCallStartButton.SetProperty( Control::Property::BACKGROUND, ICON_CALL_IMAGE ); | 214 | mCallStartButton.SetProperty( Control::Property::BACKGROUND, ICON_CALL_IMAGE ); |
| 215 | - mCallStartButton.SetLabelText(""); | 215 | + mCallStartButton.SetProperty( Button::Property::LABEL, "" ); |
| 216 | 216 | ||
| 217 | mStage.Add( mCallStartButton ); | 217 | mStage.Add( mCallStartButton ); |
| 218 | mStage.Add( mButtonIconDecall ); | 218 | mStage.Add( mButtonIconDecall ); |
| @@ -293,7 +293,7 @@ private: | @@ -293,7 +293,7 @@ private: | ||
| 293 | mCallEndButton.SetProperty( DevelButton::Property::SELECTED_BACKGROUND_VISUAL, "" ); | 293 | mCallEndButton.SetProperty( DevelButton::Property::SELECTED_BACKGROUND_VISUAL, "" ); |
| 294 | mCallEndButton.SetProperty( DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, "" ); | 294 | mCallEndButton.SetProperty( DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, "" ); |
| 295 | mCallEndButton.SetStyleName( DECLINE_BUTTON_STYLE_STR ); | 295 | mCallEndButton.SetStyleName( DECLINE_BUTTON_STYLE_STR ); |
| 296 | - mCallEndButton.SetLabelText(""); | 296 | + mCallEndButton.SetProperty( Button::Property::LABEL, "" ); |
| 297 | 297 | ||
| 298 | mButtonClip.Add( mCallEndButton ); | 298 | mButtonClip.Add( mCallEndButton ); |
| 299 | mButtonClip.Add( mButtonIcon ); | 299 | mButtonClip.Add( mButtonIcon ); |
examples/bezier-curve/bezier-curve-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2019 Samsung Electronics Co., Ltd. |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
| @@ -212,7 +212,7 @@ public: | @@ -212,7 +212,7 @@ public: | ||
| 212 | PushButton play = PushButton::New(); | 212 | PushButton play = PushButton::New(); |
| 213 | play.SetName("Play"); | 213 | play.SetName("Play"); |
| 214 | play.SetParentOrigin(ParentOrigin::CENTER); | 214 | play.SetParentOrigin(ParentOrigin::CENTER); |
| 215 | - play.SetLabelText("Play"); | 215 | + play.SetProperty( Button::Property::LABEL, "Play"); |
| 216 | play.ClickedSignal().Connect( this, &BezierCurveExample::OnPlayClicked ); | 216 | play.ClickedSignal().Connect( this, &BezierCurveExample::OnPlayClicked ); |
| 217 | 217 | ||
| 218 | contentLayout.Add( play ); | 218 | contentLayout.Add( play ); |
examples/homescreen-benchmark/homescreen-benchmark.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2019 Samsung Electronics Co., Ltd. |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
| @@ -199,22 +199,18 @@ public: | @@ -199,22 +199,18 @@ public: | ||
| 199 | Actor AddPage() | 199 | Actor AddPage() |
| 200 | { | 200 | { |
| 201 | // Create root page actor. | 201 | // Create root page actor. |
| 202 | - Actor pageActor; | 202 | + Toolkit::Control pageActor; |
| 203 | 203 | ||
| 204 | if( mConfig.mTableViewEnabled ) | 204 | if( mConfig.mTableViewEnabled ) |
| 205 | { | 205 | { |
| 206 | - Toolkit::TableView tableView = Toolkit::TableView::New( mConfig.mRows, mConfig.mCols ); | ||
| 207 | - | ||
| 208 | - // Create geometry batcher for table view. | ||
| 209 | - tableView.SetBackgroundColor( Vector4( 0.0f, 0.0f, 0.0f, 0.5f ) ); | ||
| 210 | - pageActor = tableView; | 206 | + pageActor = Toolkit::TableView::New( mConfig.mRows, mConfig.mCols ); |
| 211 | } | 207 | } |
| 212 | else | 208 | else |
| 213 | { | 209 | { |
| 214 | pageActor = Toolkit::Control::New(); | 210 | pageActor = Toolkit::Control::New(); |
| 215 | - pageActor.SetProperty( Toolkit::Control::Property::BACKGROUND_COLOR, Vector4( 0.0f, 0.0f, 0.0f, 0.5f ) ); | ||
| 216 | } | 211 | } |
| 217 | 212 | ||
| 213 | + pageActor.SetBackgroundColor( Vector4( 0.0f, 0.0f, 0.0f, 0.5f ) ); | ||
| 218 | pageActor.SetParentOrigin( ParentOrigin::CENTER ); | 214 | pageActor.SetParentOrigin( ParentOrigin::CENTER ); |
| 219 | pageActor.SetAnchorPoint( AnchorPoint::CENTER ); | 215 | pageActor.SetAnchorPoint( AnchorPoint::CENTER ); |
| 220 | pageActor.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS ); | 216 | pageActor.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS ); |
examples/super-blur-view/super-blur-view-example.cpp
| @@ -71,7 +71,7 @@ private: | @@ -71,7 +71,7 @@ private: | ||
| 71 | mPushButton = PushButton::New(); | 71 | mPushButton = PushButton::New(); |
| 72 | mPushButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER ); | 72 | mPushButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER ); |
| 73 | mPushButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER ); | 73 | mPushButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER ); |
| 74 | - mPushButton.SetProperty( Button::Property::LABEL_TEXT, "Blur" ); | 74 | + mPushButton.SetProperty( Button::Property::LABEL, "Blur" ); |
| 75 | mPushButton.PressedSignal().Connect( this, &SuperBlurViewExample::OnButtonPressed ); | 75 | mPushButton.PressedSignal().Connect( this, &SuperBlurViewExample::OnButtonPressed ); |
| 76 | mPushButton.ReleasedSignal().Connect( this, &SuperBlurViewExample::OnButtonReleased ); | 76 | mPushButton.ReleasedSignal().Connect( this, &SuperBlurViewExample::OnButtonReleased ); |
| 77 | stage.Add( mPushButton ); | 77 | stage.Add( mPushButton ); |