Commit 1a473d5189ca7e7d55aca3a64a8a4ff2dc3b6c67
1 parent
3818d79b
Changes after TouchedSignal changes
Change-Id: I2969e88887c684a556c7372ca7f4e07abc3969fa
Showing
44 changed files
with
61 additions
and
61 deletions
examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp
examples/animated-gradient-card-active/animated-gradient-card-active.cpp
| ... | ... | @@ -308,7 +308,7 @@ public: |
| 308 | 308 | SetupActors(); |
| 309 | 309 | SetupAnimation(); |
| 310 | 310 | |
| 311 | - mWindow.GetRootLayer().TouchSignal().Connect( this, &CardController::OnTouchLayer ); | |
| 311 | + mWindow.GetRootLayer().TouchedSignal().Connect( this, &CardController::OnTouchLayer ); | |
| 312 | 312 | Reset(); |
| 313 | 313 | } |
| 314 | 314 | |
| ... | ... | @@ -583,7 +583,7 @@ private: |
| 583 | 583 | mCards.Init( mWindow ); |
| 584 | 584 | for( int k = 0; k < CARD_NUM; k++ ) |
| 585 | 585 | { |
| 586 | - mCards[k].TouchSignal().Connect( this, &CardController::OnTouchCards ); | |
| 586 | + mCards[k].TouchedSignal().Connect( this, &CardController::OnTouchCards ); | |
| 587 | 587 | } |
| 588 | 588 | mNormalStartColor = mCards.GetColorBackground( mCards.mCurIndex ); |
| 589 | 589 | mNormalEndColor = mCards.GetColorBackground( mCards.mCurIndex ); | ... | ... |
examples/arc-visual/arc-visual-example.cpp
| ... | ... | @@ -117,7 +117,7 @@ private: |
| 117 | 117 | mStartAngleLabel.SetProperty( Actor::Property::WIDTH_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 118 | 118 | mStartAngleLabel.SetProperty( Actor::Property::HEIGHT_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 119 | 119 | mStartAngleLabel.SetProperty( Control::Property::PADDING, Extents( 20.0f, 20.0f, 10.0f, 10.0f ) ); |
| 120 | - mStartAngleLabel.TouchSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 120 | + mStartAngleLabel.TouchedSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 121 | 121 | window.Add( mStartAngleLabel ); |
| 122 | 122 | |
| 123 | 123 | mSweepAngleLabel = TextLabel::New( "2" ); |
| ... | ... | @@ -128,7 +128,7 @@ private: |
| 128 | 128 | mSweepAngleLabel.SetProperty( Actor::Property::WIDTH_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 129 | 129 | mSweepAngleLabel.SetProperty( Actor::Property::HEIGHT_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 130 | 130 | mSweepAngleLabel.SetProperty( Control::Property::PADDING, Extents( 20.0f, 20.0f, 10.0f, 10.0f ) ); |
| 131 | - mSweepAngleLabel.TouchSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 131 | + mSweepAngleLabel.TouchedSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 132 | 132 | window.Add( mSweepAngleLabel ); |
| 133 | 133 | |
| 134 | 134 | mThicknessLabel = TextLabel::New( "3" ); |
| ... | ... | @@ -139,7 +139,7 @@ private: |
| 139 | 139 | mThicknessLabel.SetProperty( Actor::Property::WIDTH_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 140 | 140 | mThicknessLabel.SetProperty( Actor::Property::HEIGHT_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 141 | 141 | mThicknessLabel.SetProperty( Control::Property::PADDING, Extents( 20.0f, 20.0f, 10.0f, 10.0f ) ); |
| 142 | - mThicknessLabel.TouchSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 142 | + mThicknessLabel.TouchedSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 143 | 143 | window.Add( mThicknessLabel ); |
| 144 | 144 | |
| 145 | 145 | mPlusTextLabel = TextLabel::New( "+" ); |
| ... | ... | @@ -150,7 +150,7 @@ private: |
| 150 | 150 | mPlusTextLabel.SetProperty( Actor::Property::WIDTH_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 151 | 151 | mPlusTextLabel.SetProperty( Actor::Property::HEIGHT_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 152 | 152 | mPlusTextLabel.SetProperty( Control::Property::PADDING, Extents( 20.0f, 20.0f, 10.0f, 10.0f ) ); |
| 153 | - mPlusTextLabel.TouchSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 153 | + mPlusTextLabel.TouchedSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 154 | 154 | window.Add( mPlusTextLabel ); |
| 155 | 155 | |
| 156 | 156 | mMinusTextLabel = TextLabel::New( "-" ); |
| ... | ... | @@ -161,11 +161,11 @@ private: |
| 161 | 161 | mMinusTextLabel.SetProperty( Actor::Property::WIDTH_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 162 | 162 | mMinusTextLabel.SetProperty( Actor::Property::HEIGHT_RESIZE_POLICY, ResizePolicy::USE_NATURAL_SIZE ); |
| 163 | 163 | mMinusTextLabel.SetProperty( Control::Property::PADDING, Extents( 25.0f, 25.0f, 10.0f, 10.0f ) ); |
| 164 | - mMinusTextLabel.TouchSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 164 | + mMinusTextLabel.TouchedSignal().Connect( this, &ArcVisualExample::OnButtonTouch ); | |
| 165 | 165 | window.Add( mMinusTextLabel ); |
| 166 | 166 | |
| 167 | 167 | // Respond to a click anywhere on the window |
| 168 | - window.GetRootLayer().TouchSignal().Connect( this, &ArcVisualExample::OnTouch ); | |
| 168 | + window.GetRootLayer().TouchedSignal().Connect( this, &ArcVisualExample::OnTouch ); | |
| 169 | 169 | |
| 170 | 170 | // Respond to key events |
| 171 | 171 | window.KeyEventSignal().Connect( this, &ArcVisualExample::OnKeyEvent ); | ... | ... |
examples/benchmark/benchmark.cpp
| ... | ... | @@ -232,7 +232,7 @@ public: |
| 232 | 232 | mSize = Vector3( windowSize.x / mColumnsPerPage, windowSize.y / mRowsPerPage, 0.0f ); |
| 233 | 233 | |
| 234 | 234 | // Respond to a click anywhere on the window |
| 235 | - window.GetRootLayer().TouchSignal().Connect( this, &Benchmark::OnTouch ); | |
| 235 | + window.GetRootLayer().TouchedSignal().Connect( this, &Benchmark::OnTouch ); | |
| 236 | 236 | |
| 237 | 237 | // Respond to key events |
| 238 | 238 | window.KeyEventSignal().Connect( this, &Benchmark::OnKeyEvent ); | ... | ... |
examples/bezier-curve/bezier-curve-example.cpp
| ... | ... | @@ -159,7 +159,7 @@ public: |
| 159 | 159 | |
| 160 | 160 | mContentLayer = Layer::New(); |
| 161 | 161 | mContentLayer.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); |
| 162 | - mContentLayer.TouchSignal().Connect(this, &BezierCurveExample::OnTouchLayer); | |
| 162 | + mContentLayer.TouchedSignal().Connect(this, &BezierCurveExample::OnTouchLayer); | |
| 163 | 163 | mContentLayer.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); |
| 164 | 164 | window.Add( mContentLayer ); |
| 165 | 165 | |
| ... | ... | @@ -330,7 +330,7 @@ public: |
| 330 | 330 | constraint.AddSource( Source( parent, Actor::Property::SIZE ) ); |
| 331 | 331 | constraint.Apply(); |
| 332 | 332 | |
| 333 | - actor.TouchSignal().Connect(this, &BezierCurveExample::OnTouchControlPoint); | |
| 333 | + actor.TouchedSignal().Connect(this, &BezierCurveExample::OnTouchControlPoint); | |
| 334 | 334 | return actor; |
| 335 | 335 | } |
| 336 | 336 | ... | ... |
examples/blocks/blocks-example.cpp
| ... | ... | @@ -312,8 +312,8 @@ private: |
| 312 | 312 | |
| 313 | 313 | mPaddle.SetProperty( Actor::Property::POSITION, windowSize * Vector3( PADDLE_START_POSITION ) ); |
| 314 | 314 | mContentLayer.Add(mPaddle); |
| 315 | - mPaddle.TouchSignal().Connect(this, &ExampleController::OnTouchPaddle); | |
| 316 | - mContentLayer.TouchSignal().Connect(this, &ExampleController::OnTouchLayer); | |
| 315 | + mPaddle.TouchedSignal().Connect(this, &ExampleController::OnTouchPaddle); | |
| 316 | + mContentLayer.TouchedSignal().Connect(this, &ExampleController::OnTouchLayer); | |
| 317 | 317 | |
| 318 | 318 | const float margin(BALL_SIZE.width * windowSize.width * 0.5f); |
| 319 | 319 | ... | ... |
examples/bubble-effect/bubble-effect-example.cpp
| ... | ... | @@ -147,7 +147,7 @@ private: |
| 147 | 147 | mTimerForBubbleEmission.TickSignal().Connect(this, &BubbleEffectExample::OnTimerTick); |
| 148 | 148 | |
| 149 | 149 | // Connect the callback to the touch signal on the background |
| 150 | - mBackground.TouchSignal().Connect( this, &BubbleEffectExample::OnTouch ); | |
| 150 | + mBackground.TouchedSignal().Connect( this, &BubbleEffectExample::OnTouch ); | |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | ... | ... |
examples/clipping-draw-order/clipping-draw-order.cpp
| ... | ... | @@ -198,7 +198,7 @@ public: |
| 198 | 198 | window.Add( view ); |
| 199 | 199 | |
| 200 | 200 | // Respond to a click anywhere on the window |
| 201 | - window.GetRootLayer().TouchSignal().Connect( this, &ClippingDrawOrderVerification::OnTouch ); | |
| 201 | + window.GetRootLayer().TouchedSignal().Connect( this, &ClippingDrawOrderVerification::OnTouch ); | |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | bool OnTouch( Actor actor, const TouchEvent& touch ) | ... | ... |
examples/color-visual/color-visual-example.cpp
| ... | ... | @@ -80,7 +80,7 @@ public: |
| 80 | 80 | window.Add( mImageView ); |
| 81 | 81 | |
| 82 | 82 | // Respond to a click anywhere on the window |
| 83 | - window.GetRootLayer().TouchSignal().Connect( this, &ColorVisualExample::OnTouch ); | |
| 83 | + window.GetRootLayer().TouchedSignal().Connect( this, &ColorVisualExample::OnTouch ); | |
| 84 | 84 | |
| 85 | 85 | // Respond to key events |
| 86 | 86 | window.KeyEventSignal().Connect( this, &ColorVisualExample::OnKeyEvent ); | ... | ... |
examples/compressed-texture-formats/compressed-texture-formats-example.cpp
| ... | ... | @@ -177,7 +177,7 @@ public: |
| 177 | 177 | window.Add( table ); |
| 178 | 178 | |
| 179 | 179 | // Respond to touch and key signals |
| 180 | - window.GetRootLayer().TouchSignal().Connect( this, &CompressedTextureFormatsController::OnTouch ); | |
| 180 | + window.GetRootLayer().TouchedSignal().Connect( this, &CompressedTextureFormatsController::OnTouch ); | |
| 181 | 181 | window.KeyEventSignal().Connect(this, &CompressedTextureFormatsController::OnKeyEvent); |
| 182 | 182 | } |
| 183 | 183 | ... | ... |
examples/fpp-game/fpp-game-tutorial-controller.cpp
| ... | ... | @@ -166,7 +166,7 @@ void FppGameTutorialController::DisplayTutorial( Dali::Window window ) |
| 166 | 166 | void FppGameTutorialController::OnTutorialAnimationFinished( Animation& animation ) |
| 167 | 167 | { |
| 168 | 168 | // touch signal will wait for a single touch on each side of screen |
| 169 | - mWindow.TouchSignal().Connect( this, &FppGameTutorialController::OnTouch ); | |
| 169 | + mWindow.TouchedSignal().Connect( this, &FppGameTutorialController::OnTouch ); | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | void FppGameTutorialController::OnTutorialComplete( Animation& animation ) | ... | ... |
examples/fpp-game/game-camera.cpp
| ... | ... | @@ -200,8 +200,8 @@ void GameCamera::CreateInterceptorActor() |
| 200 | 200 | mInterceptorActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); |
| 201 | 201 | mCameraActor.Add( mInterceptorActor ); |
| 202 | 202 | |
| 203 | - // Connect TouchSignal to interceptor actor | |
| 204 | - mInterceptorActor.TouchSignal().Connect( this, &GameCamera::OnTouch ); | |
| 203 | + // Connect TouchedSignal to interceptor actor | |
| 204 | + mInterceptorActor.TouchedSignal().Connect( this, &GameCamera::OnTouch ); | |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | bool GameCamera::OnTouch( Actor actor, const TouchEvent& touch ) | ... | ... |
examples/gaussian-blur-view/gaussian-blur-view-example.cpp
| ... | ... | @@ -110,7 +110,7 @@ private: |
| 110 | 110 | mGaussianBlurView.Add( mImageView ); |
| 111 | 111 | mGaussianBlurView.SetProperty( mGaussianBlurView.GetBlurStrengthPropertyIndex(), mStrength ); |
| 112 | 112 | |
| 113 | - window.GetRootLayer().TouchSignal().Connect( this, &GaussianBlurViewExample::OnTouch ); | |
| 113 | + window.GetRootLayer().TouchedSignal().Connect( this, &GaussianBlurViewExample::OnTouch ); | |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | bool OnTouch( Actor actor, const TouchEvent& touch ) | ... | ... |
examples/gestures/gesture-example.cpp
100755 โ 100644
| ... | ... | @@ -158,7 +158,7 @@ private: |
| 158 | 158 | background.Add( touchControl ); |
| 159 | 159 | |
| 160 | 160 | // Connect to the touch signal |
| 161 | - touchControl.TouchSignal().Connect( this, &GestureExample::OnTouch ); | |
| 161 | + touchControl.TouchedSignal().Connect( this, &GestureExample::OnTouch ); | |
| 162 | 162 | touchControl.SetProperty( Actor::Property::LEAVE_REQUIRED, true ); |
| 163 | 163 | |
| 164 | 164 | // Create a long press gesture detector, attach the actor & connect | ... | ... |
examples/hello-world/hello-world-example.cpp
| ... | ... | @@ -48,7 +48,7 @@ public: |
| 48 | 48 | window.Add( textLabel ); |
| 49 | 49 | |
| 50 | 50 | // Respond to a touch anywhere on the window |
| 51 | - window.GetRootLayer().TouchSignal().Connect( this, &HelloWorldController::OnTouch ); | |
| 51 | + window.GetRootLayer().TouchedSignal().Connect( this, &HelloWorldController::OnTouch ); | |
| 52 | 52 | |
| 53 | 53 | // Respond to key events |
| 54 | 54 | window.KeyEventSignal().Connect( this, &HelloWorldController::OnKeyEvent ); | ... | ... |
examples/homescreen-benchmark/homescreen-benchmark.cpp
| ... | ... | @@ -184,7 +184,7 @@ public: |
| 184 | 184 | window.Add( mScrollParent ); |
| 185 | 185 | |
| 186 | 186 | // Respond to a click anywhere on the window. |
| 187 | - window.GetRootLayer().TouchSignal().Connect( this, &HomescreenBenchmark::OnTouch ); | |
| 187 | + window.GetRootLayer().TouchedSignal().Connect( this, &HomescreenBenchmark::OnTouch ); | |
| 188 | 188 | |
| 189 | 189 | // Respond to key events |
| 190 | 190 | window.KeyEventSignal().Connect( this, &HomescreenBenchmark::OnKeyEvent ); | ... | ... |
examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp
100755 โ 100644
| ... | ... | @@ -270,7 +270,7 @@ public: |
| 270 | 270 | imagePrevious.SetProperty( Actor::Property::OPACITY, 0.6f ); |
| 271 | 271 | controlsLayer.Add( imagePrevious ); |
| 272 | 272 | imagePrevious.SetProperty( Dali::Actor::Property::NAME, PREVIOUS_BUTTON_ID ); |
| 273 | - imagePrevious.TouchSignal().Connect( this, &ImageScalingAndFilteringController::OnControlTouched ); | |
| 273 | + imagePrevious.TouchedSignal().Connect( this, &ImageScalingAndFilteringController::OnControlTouched ); | |
| 274 | 274 | |
| 275 | 275 | // Next image button: |
| 276 | 276 | Toolkit::ImageView imageNext = Toolkit::ImageView::New( DALI_ICON_PLAY, ImageDimensions( playWidth, playWidth ) ); |
| ... | ... | @@ -280,7 +280,7 @@ public: |
| 280 | 280 | imageNext.SetProperty( Actor::Property::OPACITY, 0.6f ); |
| 281 | 281 | controlsLayer.Add( imageNext ); |
| 282 | 282 | imageNext.SetProperty( Dali::Actor::Property::NAME, NEXT_BUTTON_ID ); |
| 283 | - imageNext.TouchSignal().Connect( this, &ImageScalingAndFilteringController::OnControlTouched ); | |
| 283 | + imageNext.TouchedSignal().Connect( this, &ImageScalingAndFilteringController::OnControlTouched ); | |
| 284 | 284 | |
| 285 | 285 | // Buttons to popup selectors for fitting and sampling modes: |
| 286 | 286 | ... | ... |
examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp
| ... | ... | @@ -477,7 +477,7 @@ public: |
| 477 | 477 | ImageView image = CreateImageView( imageSource.configuration.path, imageSize.x, imageSize.y, fittingMode ); |
| 478 | 478 | image.SetProperty( Actor::Property::POSITION, Vector3( imagePosition.x, imagePosition.y, 0 ) ); |
| 479 | 479 | image.SetProperty( Actor::Property::SIZE, imageSize ); |
| 480 | - image.TouchSignal().Connect( this, &ImageScalingIrregularGridController::OnTouchImage ); | |
| 480 | + image.TouchedSignal().Connect( this, &ImageScalingIrregularGridController::OnTouchImage ); | |
| 481 | 481 | image.ResourceReadySignal().Connect( this, &ImageScalingIrregularGridController::ResourceReadySignal ); |
| 482 | 482 | mFittingModes[image.GetProperty< int >( Actor::Property::ID )] = fittingMode; |
| 483 | 483 | mResourceUrls[image.GetProperty< int >( Actor::Property::ID )] = imageSource.configuration.path; | ... | ... |
examples/magnifier/magnifier-example.cpp
| ... | ... | @@ -211,7 +211,7 @@ public: |
| 211 | 211 | APPLICATION_TITLE ); |
| 212 | 212 | |
| 213 | 213 | mContent.SetProperty( Actor::Property::LEAVE_REQUIRED,true); |
| 214 | - mContent.TouchSignal().Connect( this, &ExampleController::OnTouched ); | |
| 214 | + mContent.TouchedSignal().Connect( this, &ExampleController::OnTouched ); | |
| 215 | 215 | |
| 216 | 216 | // Create magnifier (controlled by human touch) |
| 217 | 217 | Layer overlay = Layer::New(); | ... | ... |
examples/mesh-visual/mesh-visual-example.cpp
| ... | ... | @@ -99,7 +99,7 @@ public: |
| 99 | 99 | //Set up root layer to receive touch gestures. |
| 100 | 100 | Layer rootLayer = window.GetRootLayer(); |
| 101 | 101 | rootLayer.RegisterProperty( "Tag", LAYER_TAG ); //Used to differentiate between different kinds of actor. |
| 102 | - rootLayer.TouchSignal().Connect( this, &MeshVisualController::OnTouch ); | |
| 102 | + rootLayer.TouchedSignal().Connect( this, &MeshVisualController::OnTouch ); | |
| 103 | 103 | |
| 104 | 104 | //Place models on the scene. |
| 105 | 105 | SetupModels( rootLayer ); |
| ... | ... | @@ -124,7 +124,7 @@ public: |
| 124 | 124 | mContainers[i].SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS ); |
| 125 | 125 | mContainers[i].RegisterProperty( "Tag", MODEL_TAG ); //Used to differentiate between different kinds of actor. |
| 126 | 126 | mContainers[i].RegisterProperty( "Model", Property::Value( i ) ); //Used to index into the model. |
| 127 | - mContainers[i].TouchSignal().Connect( this, &MeshVisualController::OnTouch ); | |
| 127 | + mContainers[i].TouchedSignal().Connect( this, &MeshVisualController::OnTouch ); | |
| 128 | 128 | layer.Add( mContainers[i] ); |
| 129 | 129 | } |
| 130 | 130 | |
| ... | ... | @@ -280,7 +280,7 @@ public: |
| 280 | 280 | SetLightImage(); |
| 281 | 281 | |
| 282 | 282 | //Connect to touch signal for dragging. |
| 283 | - mLightSource.TouchSignal().Connect( this, &MeshVisualController::OnTouch ); | |
| 283 | + mLightSource.TouchedSignal().Connect( this, &MeshVisualController::OnTouch ); | |
| 284 | 284 | |
| 285 | 285 | //Place the light source on a layer above the base, so that it is rendered above everything else. |
| 286 | 286 | Layer upperLayer = Layer::New(); | ... | ... |
examples/metaball-explosion/metaball-explosion-example.cpp
| ... | ... | @@ -364,7 +364,7 @@ void MetaballExplosionController::Create( Application& app ) |
| 364 | 364 | mTimerDispersion.TickSignal().Connect( this, &MetaballExplosionController::OnTimerDispersionTick ); |
| 365 | 365 | |
| 366 | 366 | // Connect the callback to the touch signal on the mesh actor |
| 367 | - window.GetRootLayer().TouchSignal().Connect( this, &MetaballExplosionController::OnTouch ); | |
| 367 | + window.GetRootLayer().TouchedSignal().Connect( this, &MetaballExplosionController::OnTouch ); | |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | Geometry MetaballExplosionController::CreateGeometry( bool aspectMappedTexture ) | ... | ... |
examples/metaball-refrac/metaball-refrac-example.cpp
| ... | ... | @@ -338,7 +338,7 @@ void MetaballRefracController::Create( Application& app ) |
| 338 | 338 | CreateAnimations(); |
| 339 | 339 | |
| 340 | 340 | // Connect the callback to the touch signal on the mesh actor |
| 341 | - window.GetRootLayer().TouchSignal().Connect( this, &MetaballRefracController::OnTouch ); | |
| 341 | + window.GetRootLayer().TouchedSignal().Connect( this, &MetaballRefracController::OnTouch ); | |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | Geometry MetaballRefracController::CreateGeometry( bool aspectMappedTexture ) | ... | ... |
examples/perf-scroll/perf-scroll.cpp
| ... | ... | @@ -233,7 +233,7 @@ public: |
| 233 | 233 | mSize = Vector3( windowSize.x / mColumnsPerPage, windowSize.y / mRowsPerPage, 0.0f ); |
| 234 | 234 | |
| 235 | 235 | // Respond to a click anywhere on the window |
| 236 | - window.GetRootLayer().TouchSignal().Connect( this, &PerfScroll::OnTouch ); | |
| 236 | + window.GetRootLayer().TouchedSignal().Connect( this, &PerfScroll::OnTouch ); | |
| 237 | 237 | |
| 238 | 238 | // Respond to key events |
| 239 | 239 | window.KeyEventSignal().Connect( this, &PerfScroll::OnKeyEvent ); | ... | ... |
examples/ray-marching/ray-marching-example.cpp
| ... | ... | @@ -116,7 +116,7 @@ public: |
| 116 | 116 | // Get a handle to the window |
| 117 | 117 | Window window = application.GetWindow(); |
| 118 | 118 | |
| 119 | - window.GetRootLayer().TouchSignal().Connect( this, &RayMarchingExample::OnTouch ); | |
| 119 | + window.GetRootLayer().TouchedSignal().Connect( this, &RayMarchingExample::OnTouch ); | |
| 120 | 120 | |
| 121 | 121 | window.KeyEventSignal().Connect(this, &RayMarchingExample::OnKeyEvent); |
| 122 | 122 | ... | ... |
examples/refraction-effect/refraction-effect-example.cpp
| ... | ... | @@ -298,7 +298,7 @@ private: |
| 298 | 298 | mContent.Add( mMeshActor ); |
| 299 | 299 | |
| 300 | 300 | // Connect the callback to the touch signal on the mesh actor |
| 301 | - mContent.TouchSignal().Connect( this, &RefractionEffectExample::OnTouch ); | |
| 301 | + mContent.TouchedSignal().Connect( this, &RefractionEffectExample::OnTouch ); | |
| 302 | 302 | |
| 303 | 303 | // shader used when the finger is touching the screen. render refraction effect |
| 304 | 304 | mShaderRefraction = Shader::New( VERTEX_SHADER_REFRACTION, FRAGMENT_SHADER_REFRACTION ); | ... | ... |
examples/remote-image-loading/remote-image-loading-example.cpp
| ... | ... | @@ -45,7 +45,7 @@ public: |
| 45 | 45 | |
| 46 | 46 | void ConnectEventSignal(Control control) |
| 47 | 47 | { |
| 48 | - control.TouchSignal().Connect(this, &MyTester::OnControlTouch); | |
| 48 | + control.TouchedSignal().Connect(this, &MyTester::OnControlTouch); | |
| 49 | 49 | |
| 50 | 50 | control.SetProperty( Actor::Property::KEYBOARD_FOCUSABLE,true); |
| 51 | 51 | control.KeyEventSignal().Connect(this, &MyTester::OnControlKeyEvent); |
| ... | ... | @@ -59,7 +59,7 @@ public: |
| 59 | 59 | mWindow = application.GetWindow(); |
| 60 | 60 | mWindow.SetBackgroundColor(Color::BLACK); |
| 61 | 61 | mWindow.KeyEventSignal().Connect(this, &MyTester::OnKey); |
| 62 | - mWindow.TouchSignal().Connect(this, &MyTester::OnTouch); | |
| 62 | + mWindow.TouchedSignal().Connect(this, &MyTester::OnTouch); | |
| 63 | 63 | |
| 64 | 64 | TextLabel rubric = TextLabel::New( "You will need a working internet connection to see the images below"); |
| 65 | 65 | rubric.SetProperty( TextLabel::Property::MULTI_LINE, true ); | ... | ... |
examples/renderer-stencil/renderer-stencil-example.cpp
| ... | ... | @@ -255,7 +255,7 @@ private: |
| 255 | 255 | mBounceAnimation.Play(); |
| 256 | 256 | |
| 257 | 257 | // Respond to a click anywhere on the window |
| 258 | - window.GetRootLayer().TouchSignal().Connect( this, &RendererStencilExample::OnTouch ); | |
| 258 | + window.GetRootLayer().TouchedSignal().Connect( this, &RendererStencilExample::OnTouch ); | |
| 259 | 259 | // Connect signals to allow Back and Escape to exit. |
| 260 | 260 | window.KeyEventSignal().Connect( this, &RendererStencilExample::OnKeyEvent ); |
| 261 | 261 | } | ... | ... |
examples/rendering-basic-light/rendering-basic-light-example.cpp
| ... | ... | @@ -194,7 +194,7 @@ public: |
| 194 | 194 | PlayAnimation(); |
| 195 | 195 | |
| 196 | 196 | // Respond to a click anywhere on the window |
| 197 | - window.GetRootLayer().TouchSignal().Connect( this, &BasicLightController::OnTouch ); | |
| 197 | + window.GetRootLayer().TouchedSignal().Connect( this, &BasicLightController::OnTouch ); | |
| 198 | 198 | |
| 199 | 199 | // Respond to key events |
| 200 | 200 | window.KeyEventSignal().Connect( this, &BasicLightController::OnKeyEvent ); | ... | ... |
examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp
| ... | ... | @@ -126,7 +126,7 @@ public: |
| 126 | 126 | InitActors(); |
| 127 | 127 | |
| 128 | 128 | // Respond to a click anywhere on the window |
| 129 | - window.GetRootLayer().TouchSignal().Connect( this, &BasicPbrController::OnTouch ); | |
| 129 | + window.GetRootLayer().TouchedSignal().Connect( this, &BasicPbrController::OnTouch ); | |
| 130 | 130 | |
| 131 | 131 | // Respond to key events |
| 132 | 132 | window.KeyEventSignal().Connect( this, &BasicPbrController::OnKeyEvent ); | ... | ... |
examples/rendering-cube/rendering-cube.cpp
| ... | ... | @@ -99,7 +99,7 @@ public: |
| 99 | 99 | PlayAnimation(); |
| 100 | 100 | |
| 101 | 101 | // Respond to a click anywhere on the window |
| 102 | - window.GetRootLayer().TouchSignal().Connect( this, &DrawCubeController::OnTouch ); | |
| 102 | + window.GetRootLayer().TouchedSignal().Connect( this, &DrawCubeController::OnTouch ); | |
| 103 | 103 | |
| 104 | 104 | // Respond to key events |
| 105 | 105 | window.KeyEventSignal().Connect( this, &DrawCubeController::OnKeyEvent ); | ... | ... |
examples/rendering-line/rendering-line.cpp
| ... | ... | @@ -92,7 +92,7 @@ public: |
| 92 | 92 | CreateActor(); |
| 93 | 93 | |
| 94 | 94 | // Respond to a click anywhere on the window |
| 95 | - window.GetRootLayer().TouchSignal().Connect( this, &DrawLineController::OnTouch ); | |
| 95 | + window.GetRootLayer().TouchedSignal().Connect( this, &DrawLineController::OnTouch ); | |
| 96 | 96 | |
| 97 | 97 | // Respond to key events |
| 98 | 98 | window.KeyEventSignal().Connect( this, &DrawLineController::OnKeyEvent ); | ... | ... |
examples/rendering-radial-progress/radial-progress.cpp
| ... | ... | @@ -152,7 +152,7 @@ public: |
| 152 | 152 | animation.Play(); |
| 153 | 153 | |
| 154 | 154 | // 6. Exit the application when touched |
| 155 | - window.GetRootLayer().TouchSignal().Connect( this, &RadialProgressController::OnTouch ); | |
| 155 | + window.GetRootLayer().TouchedSignal().Connect( this, &RadialProgressController::OnTouch ); | |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | bool OnTouch( Actor actor, const TouchEvent& touch ) | ... | ... |
examples/rendering-skybox/look-camera.cpp
| ... | ... | @@ -143,8 +143,8 @@ void LookCamera::CreateInterceptorActor() |
| 143 | 143 | mInterceptorActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); |
| 144 | 144 | mCameraActor.Add( mInterceptorActor ); |
| 145 | 145 | |
| 146 | - // Connect TouchSignal to interceptor actor | |
| 147 | - mInterceptorActor.TouchSignal().Connect( this, &LookCamera::OnTouch ); | |
| 146 | + // Connect TouchedSignal to interceptor actor | |
| 147 | + mInterceptorActor.TouchedSignal().Connect( this, &LookCamera::OnTouch ); | |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | bool LookCamera::OnTouch( Actor actor, const TouchEvent& touch ) | ... | ... |
examples/rendering-textured-cube/rendering-textured-cube.cpp
| ... | ... | @@ -105,7 +105,7 @@ public: |
| 105 | 105 | PlayAnimation(); |
| 106 | 106 | |
| 107 | 107 | // Respond to a click anywhere on the window |
| 108 | - window.GetRootLayer().TouchSignal().Connect( this, &TexturedCubeController::OnTouch ); | |
| 108 | + window.GetRootLayer().TouchedSignal().Connect( this, &TexturedCubeController::OnTouch ); | |
| 109 | 109 | |
| 110 | 110 | // Respond to key events |
| 111 | 111 | window.KeyEventSignal().Connect( this, &TexturedCubeController::OnKeyEvent ); | ... | ... |
examples/rendering-triangle/rendering-triangle.cpp
| ... | ... | @@ -92,7 +92,7 @@ public: |
| 92 | 92 | CreateActor(); |
| 93 | 93 | |
| 94 | 94 | // Respond to a click anywhere on the window |
| 95 | - window.GetRootLayer().TouchSignal().Connect( this, &DrawTriangleController::OnTouch ); | |
| 95 | + window.GetRootLayer().TouchedSignal().Connect( this, &DrawTriangleController::OnTouch ); | |
| 96 | 96 | |
| 97 | 97 | // Respond to key events |
| 98 | 98 | window.KeyEventSignal().Connect( this, &DrawTriangleController::OnKeyEvent ); | ... | ... |
examples/scroll-view/scroll-view-example.cpp
| ... | ... | @@ -469,7 +469,7 @@ private: |
| 469 | 469 | actor.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER); |
| 470 | 470 | actor.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::CENTER); |
| 471 | 471 | |
| 472 | - actor.TouchSignal().Connect( this, &ExampleController::OnTouchImage ); | |
| 472 | + actor.TouchedSignal().Connect( this, &ExampleController::OnTouchImage ); | |
| 473 | 473 | return actor; |
| 474 | 474 | } |
| 475 | 475 | ... | ... |
examples/text-field/text-field-example.cpp
| ... | ... | @@ -128,7 +128,7 @@ public: |
| 128 | 128 | popup.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); |
| 129 | 129 | popup.SetResizePolicy( ResizePolicy::FIT_TO_CHILDREN, Dimension::WIDTH ); |
| 130 | 130 | popup.SetResizePolicy( ResizePolicy::FIT_TO_CHILDREN, Dimension::HEIGHT ); |
| 131 | - popup.TouchSignal().Connect( this, &TextFieldExample::OnPopupTouched ); | |
| 131 | + popup.TouchedSignal().Connect( this, &TextFieldExample::OnPopupTouched ); | |
| 132 | 132 | |
| 133 | 133 | return popup; |
| 134 | 134 | } | ... | ... |
examples/text-label-emojis/text-label-emojis.cpp
| ... | ... | @@ -65,7 +65,7 @@ public: |
| 65 | 65 | mTableView.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT ); |
| 66 | 66 | mTableView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT ); |
| 67 | 67 | mTableView.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT ); |
| 68 | - mTableView.TouchSignal().Connect( this, &EmojiExample::OnTouch ); | |
| 68 | + mTableView.TouchedSignal().Connect( this, &EmojiExample::OnTouch ); | |
| 69 | 69 | window.Add( mTableView ); |
| 70 | 70 | |
| 71 | 71 | for( unsigned int index = 0u; index < NUMBER_OF_EMOJIS; ++index ) | ... | ... |
examples/text-label-multi-language/text-label-multi-language-example.cpp
| ... | ... | @@ -67,7 +67,7 @@ public: |
| 67 | 67 | mTableView.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT ); |
| 68 | 68 | mTableView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT ); |
| 69 | 69 | mTableView.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT ); |
| 70 | - mTableView.TouchSignal().Connect( this, &TextLabelMultiLanguageExample::OnTouch ); | |
| 70 | + mTableView.TouchedSignal().Connect( this, &TextLabelMultiLanguageExample::OnTouch ); | |
| 71 | 71 | window.Add( mTableView ); |
| 72 | 72 | |
| 73 | 73 | for( unsigned int index = 0u; index < NUMBER_OF_LANGUAGES; ++index ) | ... | ... |
examples/tilt/tilt-example.cpp
| ... | ... | @@ -56,7 +56,7 @@ public: |
| 56 | 56 | window.Add( mTextLabel ); |
| 57 | 57 | |
| 58 | 58 | // Respond to a click anywhere on the window |
| 59 | - window.GetRootLayer().TouchSignal().Connect( this, &TiltController::OnTouch ); | |
| 59 | + window.GetRootLayer().TouchedSignal().Connect( this, &TiltController::OnTouch ); | |
| 60 | 60 | |
| 61 | 61 | CreateSensor(); |
| 62 | 62 | ... | ... |
examples/visual-transitions/transition-application.cpp
| ... | ... | @@ -129,7 +129,7 @@ void TransitionApplication::Create( Application& application ) |
| 129 | 129 | mVisualButtons[i].SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); |
| 130 | 130 | mVisualButtons[i].SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT ); |
| 131 | 131 | mVisualIndex = mVisualButtons[i].RegisterProperty( "visualId", i, Property::READ_WRITE ); |
| 132 | - mVisualButtons[i].TouchSignal().Connect( this, &TransitionApplication::OnVisualButtonClicked ); | |
| 132 | + mVisualButtons[i].TouchedSignal().Connect( this, &TransitionApplication::OnVisualButtonClicked ); | |
| 133 | 133 | visualTypeLayout.AddChild( mVisualButtons[i], TableView::CellPosition( 0, i ) ); |
| 134 | 134 | } |
| 135 | 135 | ... | ... |
examples/web-view/web-view-example.cpp
| ... | ... | @@ -82,7 +82,7 @@ public: |
| 82 | 82 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::POINT_SIZE, fontSize ); |
| 83 | 83 | mAddressLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE ); |
| 84 | 84 | mAddressLabel.SetBackgroundColor( Vector4( 0, 0, 0, 0.5f ) ); |
| 85 | - mAddressLabel.TouchSignal().Connect( this, &WebViewController::OnTouchText ); | |
| 85 | + mAddressLabel.TouchedSignal().Connect( this, &WebViewController::OnTouchText ); | |
| 86 | 86 | window.Add( mAddressLabel ); |
| 87 | 87 | |
| 88 | 88 | // Respond to key events | ... | ... |
resources/scripts/animation.json
| ... | ... | @@ -92,7 +92,7 @@ |
| 92 | 92 | "size": [200, 200, 1], |
| 93 | 93 | "orientation": [0, 0, 30], |
| 94 | 94 | "signals": [{ |
| 95 | - "name": "touch", | |
| 95 | + "name": "touched", | |
| 96 | 96 | "action": "play", |
| 97 | 97 | "animation": "animate" |
| 98 | 98 | }] |
| ... | ... | @@ -106,7 +106,7 @@ |
| 106 | 106 | "position": [-150, -50, 0], |
| 107 | 107 | "text": "or me", |
| 108 | 108 | "signals": [{ |
| 109 | - "name": "touch", | |
| 109 | + "name": "touched", | |
| 110 | 110 | "action": "play", |
| 111 | 111 | "animation": "pathAnimation" |
| 112 | 112 | }] |
| ... | ... | @@ -124,7 +124,7 @@ |
| 124 | 124 | "position": [0, 200, 0], |
| 125 | 125 | "size": [200, 200, 1], |
| 126 | 126 | "signals": [{ |
| 127 | - "name": "touch", | |
| 127 | + "name": "touched", | |
| 128 | 128 | "action": "play", |
| 129 | 129 | "animation": "rotate" |
| 130 | 130 | }], | ... | ... |
shared/dali-table-view.cpp
| ... | ... | @@ -265,7 +265,7 @@ void DaliTableView::Initialize( Application& application ) |
| 265 | 265 | mScrollView.SetAxisAutoLock( true ); |
| 266 | 266 | mScrollView.ScrollCompletedSignal().Connect( this, &DaliTableView::OnScrollComplete ); |
| 267 | 267 | mScrollView.ScrollStartedSignal().Connect( this, &DaliTableView::OnScrollStart ); |
| 268 | - mScrollView.TouchSignal().Connect( this, &DaliTableView::OnScrollTouched ); | |
| 268 | + mScrollView.TouchedSignal().Connect( this, &DaliTableView::OnScrollTouched ); | |
| 269 | 269 | |
| 270 | 270 | mPageWidth = windowSize.GetWidth() * TABLE_RELATIVE_SIZE.x * 0.5f; |
| 271 | 271 | |
| ... | ... | @@ -551,7 +551,7 @@ Actor DaliTableView::CreateTile( const std::string& name, const std::string& tit |
| 551 | 551 | focusableTile.Add( label ); |
| 552 | 552 | |
| 553 | 553 | // Connect to the touch events |
| 554 | - focusableTile.TouchSignal().Connect( this, &DaliTableView::OnTilePressed ); | |
| 554 | + focusableTile.TouchedSignal().Connect( this, &DaliTableView::OnTilePressed ); | |
| 555 | 555 | focusableTile.HoveredSignal().Connect( this, &DaliTableView::OnTileHovered ); |
| 556 | 556 | |
| 557 | 557 | return focusableTile; | ... | ... |