Commit e52900daacfd44fcebf2d7445a764a5034febb0a
Committed by
Gerrit Code Review
Merge "Remove non-touch related deprecated APIs" into devel/master
Showing
37 changed files
with
44 additions
and
142 deletions
examples/animated-shapes/animated-shapes-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -103,9 +103,6 @@ public: | @@ -103,9 +103,6 @@ public: | ||
| 103 | // The Init signal is received once (only) during the Application lifetime | 103 | // The Init signal is received once (only) during the Application lifetime |
| 104 | void Create( Application& application ) | 104 | void Create( Application& application ) |
| 105 | { | 105 | { |
| 106 | - // Hide the indicator bar | ||
| 107 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 108 | - | ||
| 109 | Stage stage = Stage::GetCurrent(); | 106 | Stage stage = Stage::GetCurrent(); |
| 110 | 107 | ||
| 111 | // Creates the background gradient | 108 | // Creates the background gradient |
examples/bezier-curve/bezier-curve-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -149,9 +149,6 @@ public: | @@ -149,9 +149,6 @@ public: | ||
| 149 | // The Init signal is received once (only) during the Application lifetime | 149 | // The Init signal is received once (only) during the Application lifetime |
| 150 | void Create( Application& application ) | 150 | void Create( Application& application ) |
| 151 | { | 151 | { |
| 152 | - // Hide the indicator bar | ||
| 153 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 154 | - | ||
| 155 | Stage stage = Stage::GetCurrent(); | 152 | Stage stage = Stage::GetCurrent(); |
| 156 | stage.KeyEventSignal().Connect( this, &BezierCurveExample::OnKeyEvent ); | 153 | stage.KeyEventSignal().Connect( this, &BezierCurveExample::OnKeyEvent ); |
| 157 | 154 |
examples/blocks/blocks-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -251,9 +251,6 @@ public: | @@ -251,9 +251,6 @@ public: | ||
| 251 | { | 251 | { |
| 252 | Stage::GetCurrent().KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent); | 252 | Stage::GetCurrent().KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent); |
| 253 | 253 | ||
| 254 | - // Hide the indicator bar | ||
| 255 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 256 | - | ||
| 257 | // Creates a default view with a default tool bar. | 254 | // Creates a default view with a default tool bar. |
| 258 | // The view is added to the stage. | 255 | // The view is added to the stage. |
| 259 | Toolkit::ToolBar toolBar; | 256 | Toolkit::ToolBar toolBar; |
examples/clipping/clipping-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -74,9 +74,6 @@ private: | @@ -74,9 +74,6 @@ private: | ||
| 74 | */ | 74 | */ |
| 75 | void Create( Application& application ) | 75 | void Create( Application& application ) |
| 76 | { | 76 | { |
| 77 | - // Hide the indicator bar | ||
| 78 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 79 | - | ||
| 80 | // Connect to the stage's key signal to allow Back and Escape to exit. | 77 | // Connect to the stage's key signal to allow Back and Escape to exit. |
| 81 | Stage stage = Dali::Stage::GetCurrent(); | 78 | Stage stage = Dali::Stage::GetCurrent(); |
| 82 | stage.KeyEventSignal().Connect( this, &ClippingExample::OnKeyEvent ); | 79 | stage.KeyEventSignal().Connect( this, &ClippingExample::OnKeyEvent ); |
examples/contact-cards/contact-cards-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -79,9 +79,6 @@ private: | @@ -79,9 +79,6 @@ private: | ||
| 79 | */ | 79 | */ |
| 80 | void Create( Application& application ) | 80 | void Create( Application& application ) |
| 81 | { | 81 | { |
| 82 | - // Hide the indicator bar | ||
| 83 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 84 | - | ||
| 85 | // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. | 82 | // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. |
| 86 | Stage stage = Stage::GetCurrent(); | 83 | Stage stage = Stage::GetCurrent(); |
| 87 | stage.SetBackgroundColor( STAGE_COLOR ); | 84 | stage.SetBackgroundColor( STAGE_COLOR ); |
examples/fpp-game/fpp-game-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -93,10 +93,6 @@ public: | @@ -93,10 +93,6 @@ public: | ||
| 93 | // The Init signal is received once (only) during the Application lifetime | 93 | // The Init signal is received once (only) during the Application lifetime |
| 94 | void Create( Application& application ) | 94 | void Create( Application& application ) |
| 95 | { | 95 | { |
| 96 | - // Disable indicator | ||
| 97 | - Dali::Window winHandle = application.GetWindow(); | ||
| 98 | - winHandle.ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 99 | - | ||
| 100 | // Get a handle to the stage | 96 | // Get a handle to the stage |
| 101 | mStage = Stage::GetCurrent(); | 97 | mStage = Stage::GetCurrent(); |
| 102 | 98 |
examples/frame-callback/frame-callback-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -77,9 +77,6 @@ private: | @@ -77,9 +77,6 @@ private: | ||
| 77 | */ | 77 | */ |
| 78 | void Create( Application& /* application */ ) | 78 | void Create( Application& /* application */ ) |
| 79 | { | 79 | { |
| 80 | - // Hide the indicator bar. | ||
| 81 | - mApplication.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 82 | - | ||
| 83 | // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. | 80 | // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. |
| 84 | mStage = Stage::GetCurrent(); | 81 | mStage = Stage::GetCurrent(); |
| 85 | mStage.SetBackgroundColor( Color::WHITE ); | 82 | mStage.SetBackgroundColor( Color::WHITE ); |
examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp
| @@ -177,9 +177,6 @@ public: | @@ -177,9 +177,6 @@ public: | ||
| 177 | // Get a handle to the stage | 177 | // Get a handle to the stage |
| 178 | Stage stage = Stage::GetCurrent(); | 178 | Stage stage = Stage::GetCurrent(); |
| 179 | 179 | ||
| 180 | - // Hide the indicator bar | ||
| 181 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 182 | - | ||
| 183 | // Background image: | 180 | // Background image: |
| 184 | Dali::Property::Map backgroundImage; | 181 | Dali::Property::Map backgroundImage; |
| 185 | backgroundImage.Insert( Toolkit::Visual::Property::TYPE, Toolkit::Visual::IMAGE ); | 182 | backgroundImage.Insert( Toolkit::Visual::Property::TYPE, Toolkit::Visual::IMAGE ); |
examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -303,9 +303,6 @@ public: | @@ -303,9 +303,6 @@ public: | ||
| 303 | // Connect to input event signals: | 303 | // Connect to input event signals: |
| 304 | stage.KeyEventSignal().Connect(this, &ImageScalingIrregularGridController::OnKeyEvent); | 304 | stage.KeyEventSignal().Connect(this, &ImageScalingIrregularGridController::OnKeyEvent); |
| 305 | 305 | ||
| 306 | - // Hide the indicator bar | ||
| 307 | - mApplication.GetWindow().ShowIndicator(Dali::Window::INVISIBLE); | ||
| 308 | - | ||
| 309 | // Create a default view with a default tool bar: | 306 | // Create a default view with a default tool bar: |
| 310 | mContentLayer = DemoHelper::CreateView( mApplication, | 307 | mContentLayer = DemoHelper::CreateView( mApplication, |
| 311 | mView, | 308 | mView, |
examples/image-view-svg/image-view-svg-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -69,9 +69,6 @@ public: | @@ -69,9 +69,6 @@ public: | ||
| 69 | Vector2 stageSize = stage.GetSize(); | 69 | Vector2 stageSize = stage.GetSize(); |
| 70 | mActorSize = stageSize/2.f; | 70 | mActorSize = stageSize/2.f; |
| 71 | 71 | ||
| 72 | - // Hide the indicator bar | ||
| 73 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 74 | - | ||
| 75 | stage.KeyEventSignal().Connect(this, &ImageSvgController::OnKeyEvent); | 72 | stage.KeyEventSignal().Connect(this, &ImageSvgController::OnKeyEvent); |
| 76 | 73 | ||
| 77 | // Background, for receiving gestures | 74 | // Background, for receiving gestures |
examples/line-mesh/line-mesh-example.cpp
| @@ -167,9 +167,6 @@ public: | @@ -167,9 +167,6 @@ public: | ||
| 167 | 167 | ||
| 168 | Initialise(); | 168 | Initialise(); |
| 169 | 169 | ||
| 170 | - // Hide the indicator bar | ||
| 171 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 172 | - | ||
| 173 | stage.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f)); | 170 | stage.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f)); |
| 174 | } | 171 | } |
| 175 | 172 |
examples/magnifier/magnifier-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -200,9 +200,6 @@ public: | @@ -200,9 +200,6 @@ public: | ||
| 200 | 200 | ||
| 201 | // The Init signal is received once (only) during the Application lifetime | 201 | // The Init signal is received once (only) during the Application lifetime |
| 202 | 202 | ||
| 203 | - // Hide the indicator bar | ||
| 204 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 205 | - | ||
| 206 | // Creates a default view with a default tool bar. | 203 | // Creates a default view with a default tool bar. |
| 207 | // The view is added to the stage. | 204 | // The view is added to the stage. |
| 208 | Toolkit::ToolBar toolBar; | 205 | Toolkit::ToolBar toolBar; |
examples/mesh-morph/mesh-morph-example.cpp
| @@ -288,9 +288,6 @@ public: | @@ -288,9 +288,6 @@ public: | ||
| 288 | 288 | ||
| 289 | // The Init signal is received once (only) during the Application lifetime | 289 | // The Init signal is received once (only) during the Application lifetime |
| 290 | 290 | ||
| 291 | - // Hide the indicator bar | ||
| 292 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 293 | - | ||
| 294 | mShader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER ); | 291 | mShader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER ); |
| 295 | mGeometry = CreateGeometry(); | 292 | mGeometry = CreateGeometry(); |
| 296 | mRenderer = Renderer::New( mGeometry, mShader ); | 293 | mRenderer = Renderer::New( mGeometry, mShader ); |
examples/motion-blur/motion-blur-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -193,7 +193,7 @@ public: | @@ -193,7 +193,7 @@ public: | ||
| 193 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE ); | 193 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE ); |
| 194 | winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE ); | 194 | winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE ); |
| 195 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE ); | 195 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE ); |
| 196 | - winHandle.ResizedSignal().Connect( this, &MotionBlurExampleApp::OnWindowResized ); | 196 | + winHandle.ResizeSignal().Connect( this, &MotionBlurExampleApp::OnWindowResized ); |
| 197 | 197 | ||
| 198 | // set initial orientation | 198 | // set initial orientation |
| 199 | Rotate( PORTRAIT ); | 199 | Rotate( PORTRAIT ); |
| @@ -231,7 +231,7 @@ public: | @@ -231,7 +231,7 @@ public: | ||
| 231 | // | 231 | // |
| 232 | // | 232 | // |
| 233 | 233 | ||
| 234 | - void OnWindowResized( Window::WindowSize size ) | 234 | + void OnWindowResized( Window window, Window::WindowSize size ) |
| 235 | { | 235 | { |
| 236 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); | 236 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); |
| 237 | } | 237 | } |
examples/motion-stretch/motion-stretch-example.cpp
| @@ -173,7 +173,7 @@ public: | @@ -173,7 +173,7 @@ public: | ||
| 173 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE ); | 173 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE ); |
| 174 | winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE ); | 174 | winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE ); |
| 175 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE ); | 175 | winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE ); |
| 176 | - winHandle.ResizedSignal().Connect( this, &MotionStretchExampleApp::OnWindowResized ); | 176 | + winHandle.ResizeSignal().Connect( this, &MotionStretchExampleApp::OnWindowResized ); |
| 177 | 177 | ||
| 178 | // set initial orientation | 178 | // set initial orientation |
| 179 | Rotate( PORTRAIT ); | 179 | Rotate( PORTRAIT ); |
| @@ -204,7 +204,7 @@ public: | @@ -204,7 +204,7 @@ public: | ||
| 204 | // | 204 | // |
| 205 | // | 205 | // |
| 206 | 206 | ||
| 207 | - void OnWindowResized( Window::WindowSize size ) | 207 | + void OnWindowResized( Window window, Window::WindowSize size ) |
| 208 | { | 208 | { |
| 209 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); | 209 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); |
| 210 | } | 210 | } |
examples/native-image-source/native-image-source-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -130,9 +130,6 @@ public: | @@ -130,9 +130,6 @@ public: | ||
| 130 | Stage stage = Stage::GetCurrent(); | 130 | Stage stage = Stage::GetCurrent(); |
| 131 | stage.SetBackgroundColor( Color::WHITE ); | 131 | stage.SetBackgroundColor( Color::WHITE ); |
| 132 | 132 | ||
| 133 | - // Hide the indicator bar | ||
| 134 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 135 | - | ||
| 136 | stage.KeyEventSignal().Connect(this, &NativeImageSourceController::OnKeyEvent); | 133 | stage.KeyEventSignal().Connect(this, &NativeImageSourceController::OnKeyEvent); |
| 137 | 134 | ||
| 138 | CreateButtonArea(); | 135 | CreateButtonArea(); |
examples/page-turn-view/page-turn-view-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -169,7 +169,7 @@ public: | @@ -169,7 +169,7 @@ public: | ||
| 169 | private: | 169 | private: |
| 170 | 170 | ||
| 171 | 171 | ||
| 172 | - void OnWindowResized( Window::WindowSize size ); | 172 | + void OnWindowResized( Window window, Window::WindowSize size ); |
| 173 | 173 | ||
| 174 | void Rotate( DemoOrientation orientation ); | 174 | void Rotate( DemoOrientation orientation ); |
| 175 | 175 | ||
| @@ -210,13 +210,13 @@ void PageTurnExample::OnInit( Application& app ) | @@ -210,13 +210,13 @@ void PageTurnExample::OnInit( Application& app ) | ||
| 210 | window.AddAvailableOrientation( Window::LANDSCAPE ); | 210 | window.AddAvailableOrientation( Window::LANDSCAPE ); |
| 211 | window.AddAvailableOrientation( Window::PORTRAIT_INVERSE ); | 211 | window.AddAvailableOrientation( Window::PORTRAIT_INVERSE ); |
| 212 | window.AddAvailableOrientation( Window::LANDSCAPE_INVERSE ); | 212 | window.AddAvailableOrientation( Window::LANDSCAPE_INVERSE ); |
| 213 | - window.ResizedSignal().Connect( this, &PageTurnExample::OnWindowResized ); | 213 | + window.ResizeSignal().Connect( this, &PageTurnExample::OnWindowResized ); |
| 214 | 214 | ||
| 215 | Window::WindowSize size = window.GetSize(); | 215 | Window::WindowSize size = window.GetSize(); |
| 216 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); | 216 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | -void PageTurnExample::OnWindowResized( Window::WindowSize size ) | 219 | +void PageTurnExample::OnWindowResized( Window window, Window::WindowSize size ) |
| 220 | { | 220 | { |
| 221 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); | 221 | Rotate( size.GetWidth() > size.GetHeight() ? LANDSCAPE : PORTRAIT ); |
| 222 | } | 222 | } |
examples/point-mesh/point-mesh-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -149,9 +149,6 @@ public: | @@ -149,9 +149,6 @@ public: | ||
| 149 | 149 | ||
| 150 | // The Init signal is received once (only) during the Application lifetime | 150 | // The Init signal is received once (only) during the Application lifetime |
| 151 | 151 | ||
| 152 | - // Hide the indicator bar | ||
| 153 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 154 | - | ||
| 155 | Texture texture0 = DemoHelper::LoadTexture( MATERIAL_SAMPLE ); | 152 | Texture texture0 = DemoHelper::LoadTexture( MATERIAL_SAMPLE ); |
| 156 | Texture texture1 = DemoHelper::LoadTexture( MATERIAL_SAMPLE2 ); | 153 | Texture texture1 = DemoHelper::LoadTexture( MATERIAL_SAMPLE2 ); |
| 157 | 154 |
examples/pre-render-callback/pre-render-callback-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -93,9 +93,6 @@ private: | @@ -93,9 +93,6 @@ private: | ||
| 93 | mStage.SetBackgroundColor( Color::WHITE ); | 93 | mStage.SetBackgroundColor( Color::WHITE ); |
| 94 | mStage.KeyEventSignal().Connect( this, &PreRenderCallbackController::OnKeyEvent ); | 94 | mStage.KeyEventSignal().Connect( this, &PreRenderCallbackController::OnKeyEvent ); |
| 95 | 95 | ||
| 96 | - // Hide the indicator bar. | ||
| 97 | - mApplication.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 98 | - | ||
| 99 | // Detect taps on the root layer. | 96 | // Detect taps on the root layer. |
| 100 | mTapDetector = TapGestureDetector::New(); | 97 | mTapDetector = TapGestureDetector::New(); |
| 101 | mTapDetector.Attach( mStage.GetRootLayer() ); | 98 | mTapDetector.Attach( mStage.GetRootLayer() ); |
examples/primitive-shapes/primitive-shapes-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -87,9 +87,6 @@ public: | @@ -87,9 +87,6 @@ public: | ||
| 87 | Stage stage = Stage::GetCurrent(); | 87 | Stage stage = Stage::GetCurrent(); |
| 88 | stage.SetBackgroundColor( Color::WHITE ); | 88 | stage.SetBackgroundColor( Color::WHITE ); |
| 89 | 89 | ||
| 90 | - // Hide the indicator bar | ||
| 91 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 92 | - | ||
| 93 | //Set up layer to place UI on. | 90 | //Set up layer to place UI on. |
| 94 | Layer layer = Layer::New(); | 91 | Layer layer = Layer::New(); |
| 95 | layer.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); | 92 | layer.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); |
examples/ray-marching/ray-marching-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -122,9 +122,6 @@ public: | @@ -122,9 +122,6 @@ public: | ||
| 122 | 122 | ||
| 123 | stage.SetBackgroundColor( Color::YELLOW ); | 123 | stage.SetBackgroundColor( Color::YELLOW ); |
| 124 | 124 | ||
| 125 | - // Hide the indicator bar | ||
| 126 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 127 | - | ||
| 128 | // Creates a default view with a default tool bar. | 125 | // Creates a default view with a default tool bar. |
| 129 | // The view is added to the stage. | 126 | // The view is added to the stage. |
| 130 | mContentLayer = DemoHelper::CreateView( application, | 127 | mContentLayer = DemoHelper::CreateView( application, |
examples/renderer-stencil/renderer-stencil-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -115,9 +115,6 @@ private: | @@ -115,9 +115,6 @@ private: | ||
| 115 | { | 115 | { |
| 116 | Stage stage = Stage::GetCurrent(); | 116 | Stage stage = Stage::GetCurrent(); |
| 117 | 117 | ||
| 118 | - // Hide the indicator bar | ||
| 119 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 120 | - | ||
| 121 | // Use a gradient visual to render the background gradient. | 118 | // Use a gradient visual to render the background gradient. |
| 122 | Toolkit::Control background = Dali::Toolkit::Control::New(); | 119 | Toolkit::Control background = Dali::Toolkit::Control::New(); |
| 123 | background.SetProperty( Actor::Property::ANCHOR_POINT, Dali::AnchorPoint::CENTER ); | 120 | background.SetProperty( Actor::Property::ANCHOR_POINT, Dali::AnchorPoint::CENTER ); |
examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -104,10 +104,6 @@ public: | @@ -104,10 +104,6 @@ public: | ||
| 104 | // The Init signal is received once (only) during the Application lifetime | 104 | // The Init signal is received once (only) during the Application lifetime |
| 105 | void Create( Application& application ) | 105 | void Create( Application& application ) |
| 106 | { | 106 | { |
| 107 | - // Disable indicator | ||
| 108 | - Dali::Window winHandle = application.GetWindow(); | ||
| 109 | - winHandle.ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 110 | - | ||
| 111 | // Get a handle to the stage | 107 | // Get a handle to the stage |
| 112 | Stage stage = Stage::GetCurrent(); | 108 | Stage stage = Stage::GetCurrent(); |
| 113 | stage.SetBackgroundColor( Color::BLACK ); | 109 | stage.SetBackgroundColor( Color::BLACK ); |
examples/rendering-skybox/rendering-skybox.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -147,11 +147,6 @@ public: | @@ -147,11 +147,6 @@ public: | ||
| 147 | // The Init signal is received once (only) during the Application lifetime | 147 | // The Init signal is received once (only) during the Application lifetime |
| 148 | void Create( Application& application ) | 148 | void Create( Application& application ) |
| 149 | { | 149 | { |
| 150 | - // Disable indicator. | ||
| 151 | - // It avoids reposition the camera to fit with the indicator height. | ||
| 152 | - Dali::Window winHandle = application.GetWindow(); | ||
| 153 | - winHandle.ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 154 | - | ||
| 155 | // Get a handle to the stage | 150 | // Get a handle to the stage |
| 156 | Stage stage = Stage::GetCurrent(); | 151 | Stage stage = Stage::GetCurrent(); |
| 157 | stage.SetBackgroundColor( Color::WHITE ); | 152 | stage.SetBackgroundColor( Color::WHITE ); |
examples/scroll-view/scroll-view-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -167,9 +167,6 @@ public: | @@ -167,9 +167,6 @@ public: | ||
| 167 | Stage stage = Dali::Stage::GetCurrent(); | 167 | Stage stage = Dali::Stage::GetCurrent(); |
| 168 | stage.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent); | 168 | stage.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent); |
| 169 | 169 | ||
| 170 | - // Hide the indicator bar | ||
| 171 | - mApplication.GetWindow().ShowIndicator(Dali::Window::INVISIBLE); | ||
| 172 | - | ||
| 173 | // Creates a default view with a default tool bar. | 170 | // Creates a default view with a default tool bar. |
| 174 | // The view is added to the stage. | 171 | // The view is added to the stage. |
| 175 | mContentLayer = DemoHelper::CreateView( app, | 172 | mContentLayer = DemoHelper::CreateView( app, |
examples/simple-visuals-control/simple-visuals-application.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -107,9 +107,6 @@ void SimpleVisualsApplication::Create( Application& application ) | @@ -107,9 +107,6 @@ void SimpleVisualsApplication::Create( Application& application ) | ||
| 107 | // Connect to key events so can quit application | 107 | // Connect to key events so can quit application |
| 108 | stage.KeyEventSignal().Connect(this, &SimpleVisualsApplication::OnKeyEvent); | 108 | stage.KeyEventSignal().Connect(this, &SimpleVisualsApplication::OnKeyEvent); |
| 109 | 109 | ||
| 110 | - // Hide the indicator bar | ||
| 111 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 112 | - | ||
| 113 | // Create a table view to parent the 2 MyControls | 110 | // Create a table view to parent the 2 MyControls |
| 114 | TableView contentLayout = TableView::New( 2, 2 ); | 111 | TableView contentLayout = TableView::New( 2, 2 ); |
| 115 | contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); | 112 | contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); |
examples/styling/styling-application.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -109,9 +109,6 @@ void StylingApplication::Create( Application& application ) | @@ -109,9 +109,6 @@ void StylingApplication::Create( Application& application ) | ||
| 109 | stage.KeyEventSignal().Connect(this, &StylingApplication::OnKeyEvent); | 109 | stage.KeyEventSignal().Connect(this, &StylingApplication::OnKeyEvent); |
| 110 | stage.SetBackgroundColor( Vector4( 0.1f, 0.1f, 0.1f, 1.0f ) ); | 110 | stage.SetBackgroundColor( Vector4( 0.1f, 0.1f, 0.1f, 1.0f ) ); |
| 111 | 111 | ||
| 112 | - // Hide the indicator bar | ||
| 113 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 114 | - | ||
| 115 | mContentPane = CreateContentPane(); | 112 | mContentPane = CreateContentPane(); |
| 116 | stage.Add( mContentPane ); | 113 | stage.Add( mContentPane ); |
| 117 | mContentPane.SetProperty( Actor::Property::SIZE, stage.GetSize() ); | 114 | mContentPane.SetProperty( Actor::Property::SIZE, stage.GetSize() ); |
examples/text-field/text-field-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -72,9 +72,6 @@ public: | @@ -72,9 +72,6 @@ public: | ||
| 72 | stage.SetBackgroundColor( Vector4( 0.04f, 0.345f, 0.392f, 1.0f ) ); | 72 | stage.SetBackgroundColor( Vector4( 0.04f, 0.345f, 0.392f, 1.0f ) ); |
| 73 | stage.KeyEventSignal().Connect(this, &TextFieldExample::OnKeyEvent); | 73 | stage.KeyEventSignal().Connect(this, &TextFieldExample::OnKeyEvent); |
| 74 | 74 | ||
| 75 | - // Hide the indicator bar | ||
| 76 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 77 | - | ||
| 78 | mButton = CreateFolderButton(); | 75 | mButton = CreateFolderButton(); |
| 79 | mButton.ClickedSignal().Connect( this, &TextFieldExample::OnButtonClicked ); | 76 | mButton.ClickedSignal().Connect( this, &TextFieldExample::OnButtonClicked ); |
| 80 | stage.Add( mButton ); | 77 | stage.Add( mButton ); |
examples/text-label/text-label-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -633,7 +633,7 @@ public: | @@ -633,7 +633,7 @@ public: | ||
| 633 | case KEY_ZERO: // fall through | 633 | case KEY_ZERO: // fall through |
| 634 | case KEY_ONE: | 634 | case KEY_ONE: |
| 635 | { | 635 | { |
| 636 | - mLabel.SetProperty( TextLabel::Property::RENDERING_BACKEND, event.keyCode - 10 ); | 636 | + mLabel.SetProperty( DevelTextLabel::Property::RENDERING_BACKEND, event.keyCode - 10 ); |
| 637 | break; | 637 | break; |
| 638 | } | 638 | } |
| 639 | case KEY_A: // Animate text colour | 639 | case KEY_A: // Animate text colour |
examples/textured-mesh/textured-mesh-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -109,9 +109,6 @@ public: | @@ -109,9 +109,6 @@ public: | ||
| 109 | 109 | ||
| 110 | mStageSize = stage.GetSize(); | 110 | mStageSize = stage.GetSize(); |
| 111 | 111 | ||
| 112 | - // Hide the indicator bar | ||
| 113 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 114 | - | ||
| 115 | Texture texture1 = DemoHelper::LoadTexture( MATERIAL_SAMPLE ); | 112 | Texture texture1 = DemoHelper::LoadTexture( MATERIAL_SAMPLE ); |
| 116 | Texture texture2 = DemoHelper::LoadTexture( MATERIAL_SAMPLE2 ); | 113 | Texture texture2 = DemoHelper::LoadTexture( MATERIAL_SAMPLE2 ); |
| 117 | 114 |
examples/tooltip/tooltip-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -52,9 +52,6 @@ private: | @@ -52,9 +52,6 @@ private: | ||
| 52 | // The Init signal is received once (only) during the Application lifetime | 52 | // The Init signal is received once (only) during the Application lifetime |
| 53 | void Create( Application& application ) | 53 | void Create( Application& application ) |
| 54 | { | 54 | { |
| 55 | - // Hide the indicator bar | ||
| 56 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 57 | - | ||
| 58 | // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. | 55 | // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. |
| 59 | Stage stage = Stage::GetCurrent(); | 56 | Stage stage = Stage::GetCurrent(); |
| 60 | stage.SetBackgroundColor( STAGE_COLOR ); | 57 | stage.SetBackgroundColor( STAGE_COLOR ); |
examples/transitions/transition-application.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -73,9 +73,6 @@ void TransitionApplication::Create( Application& application ) | @@ -73,9 +73,6 @@ void TransitionApplication::Create( Application& application ) | ||
| 73 | stage.KeyEventSignal().Connect(this, &TransitionApplication::OnKeyEvent); | 73 | stage.KeyEventSignal().Connect(this, &TransitionApplication::OnKeyEvent); |
| 74 | stage.SetBackgroundColor( Vector4( 0.1f, 0.1f, 0.1f, 1.0f ) ); | 74 | stage.SetBackgroundColor( Vector4( 0.1f, 0.1f, 0.1f, 1.0f ) ); |
| 75 | 75 | ||
| 76 | - // Hide the indicator bar | ||
| 77 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 78 | - | ||
| 79 | // Content panes: | 76 | // Content panes: |
| 80 | TableView contentLayout = TableView::New( 3, 1 ); | 77 | TableView contentLayout = TableView::New( 3, 1 ); |
| 81 | contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); | 78 | contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); |
examples/video-view/video-view-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -59,8 +59,6 @@ class VideoViewController: public ConnectionTracker | @@ -59,8 +59,6 @@ class VideoViewController: public ConnectionTracker | ||
| 59 | 59 | ||
| 60 | void Create( Application& application ) | 60 | void Create( Application& application ) |
| 61 | { | 61 | { |
| 62 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 63 | - | ||
| 64 | mStageSize = Stage::GetCurrent().GetSize(); | 62 | mStageSize = Stage::GetCurrent().GetSize(); |
| 65 | 63 | ||
| 66 | mVideoView = Toolkit::VideoView::New(); | 64 | mVideoView = Toolkit::VideoView::New(); |
examples/visual-transitions/transition-application.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -73,9 +73,6 @@ void TransitionApplication::Create( Application& application ) | @@ -73,9 +73,6 @@ void TransitionApplication::Create( Application& application ) | ||
| 73 | stage.KeyEventSignal().Connect(this, &TransitionApplication::OnKeyEvent); | 73 | stage.KeyEventSignal().Connect(this, &TransitionApplication::OnKeyEvent); |
| 74 | stage.SetBackgroundColor( Vector4( 0.1f, 0.1f, 0.1f, 1.0f ) ); | 74 | stage.SetBackgroundColor( Vector4( 0.1f, 0.1f, 0.1f, 1.0f ) ); |
| 75 | 75 | ||
| 76 | - // Hide the indicator bar | ||
| 77 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 78 | - | ||
| 79 | // Content panes: | 76 | // Content panes: |
| 80 | TableView contentLayout = TableView::New( 4, 1 ); | 77 | TableView contentLayout = TableView::New( 4, 1 ); |
| 81 | contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); | 78 | contentLayout.SetProperty( Dali::Actor::Property::NAME,"ContentLayout"); |
examples/web-view/web-view-example.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2018 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -82,7 +82,7 @@ public: | @@ -82,7 +82,7 @@ public: | ||
| 82 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::POINT_SIZE, fontSize ); | 82 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::POINT_SIZE, fontSize ); |
| 83 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE ); | 83 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE ); |
| 84 | mAddressLabel.SetBackgroundColor( Vector4( 0, 0, 0, 0.5f ) ); | 84 | mAddressLabel.SetBackgroundColor( Vector4( 0, 0, 0, 0.5f ) ); |
| 85 | - mAddressLabel.TouchedSignal().Connect( this, &WebViewController::OnTouchText ); | 85 | + mAddressLabel.TouchSignal().Connect( this, &WebViewController::OnTouchText ); |
| 86 | stage.Add( mAddressLabel ); | 86 | stage.Add( mAddressLabel ); |
| 87 | 87 | ||
| 88 | // Respond to key events | 88 | // Respond to key events |
| @@ -100,9 +100,9 @@ public: | @@ -100,9 +100,9 @@ public: | ||
| 100 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::TEXT, url.c_str() ); | 100 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::TEXT, url.c_str() ); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | - bool OnTouchText( Actor actor, const TouchEvent& event ) | 103 | + bool OnTouchText( Actor actor, const TouchData& touch ) |
| 104 | { | 104 | { |
| 105 | - if ( event.GetPoint( 0 ).state == TouchPoint::Up ) | 105 | + if ( touch.GetState( 0 ) == PointState::UP ) |
| 106 | { | 106 | { |
| 107 | std::string url = GetNextUrl(); | 107 | std::string url = GetNextUrl(); |
| 108 | mAddressLabel.SetProperty(Toolkit::TextLabel::Property::TEXT, "Waiting" ); | 108 | mAddressLabel.SetProperty(Toolkit::TextLabel::Property::TEXT, "Waiting" ); |
shared/dali-table-view.cpp
| 1 | /* | 1 | /* |
| 2 | - * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 2 | + * Copyright (c) 2020 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. |
| @@ -309,8 +309,6 @@ void DaliTableView::Initialize( Application& application ) | @@ -309,8 +309,6 @@ void DaliTableView::Initialize( Application& application ) | ||
| 309 | unsigned int degrees = 0; | 309 | unsigned int degrees = 0; |
| 310 | Rotate( degrees ); | 310 | Rotate( degrees ); |
| 311 | 311 | ||
| 312 | - winHandle.ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 313 | - | ||
| 314 | // Background animation | 312 | // Background animation |
| 315 | mAnimationTimer = Timer::New( BACKGROUND_ANIMATION_DURATION ); | 313 | mAnimationTimer = Timer::New( BACKGROUND_ANIMATION_DURATION ); |
| 316 | mAnimationTimer.TickSignal().Connect( this, &DaliTableView::PauseBackgroundAnimation ); | 314 | mAnimationTimer.TickSignal().Connect( this, &DaliTableView::PauseBackgroundAnimation ); |
shared/view.h
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | #define DALI_DEMO_HELPER_VIEW_H | 2 | #define DALI_DEMO_HELPER_VIEW_H |
| 3 | 3 | ||
| 4 | /* | 4 | /* |
| 5 | - * Copyright (c) 2014 Samsung Electronics Co., Ltd. | 5 | + * Copyright (c) 2020 Samsung Electronics Co., Ltd. |
| 6 | * | 6 | * |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. | 8 | * you may not use this file except in compliance with the License. |
| @@ -117,9 +117,6 @@ Dali::Layer CreateView( Dali::Application& application, | @@ -117,9 +117,6 @@ Dali::Layer CreateView( Dali::Application& application, | ||
| 117 | { | 117 | { |
| 118 | Dali::Stage stage = Dali::Stage::GetCurrent(); | 118 | Dali::Stage stage = Dali::Stage::GetCurrent(); |
| 119 | 119 | ||
| 120 | - // Hide the indicator bar | ||
| 121 | - application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | ||
| 122 | - | ||
| 123 | // Create default View. | 120 | // Create default View. |
| 124 | view = Dali::Toolkit::Control::New(); | 121 | view = Dali::Toolkit::Control::New(); |
| 125 | view.SetProperty( Dali::Actor::Property::ANCHOR_POINT, Dali::AnchorPoint::CENTER ); | 122 | view.SetProperty( Dali::Actor::Property::ANCHOR_POINT, Dali::AnchorPoint::CENTER ); |