From: Adeel Kazmi Date: Wed, 2 Sep 2020 21:53:58 +0000 (+0000) Subject: Merge "Deleted Move/Copy operators & constructors from Internal::Control" into devel... X-Git-Tag: dali_1.9.28~6 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=d8a4571d975ae061fe32f1d098d07ccc94604729;hp=a20d9e623d8829d526481e560763add7aa96f40b Merge "Deleted Move/Copy operators & constructors from Internal::Control" into devel/master --- diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h index 52c11c2..20c37cb 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h @@ -106,7 +106,7 @@ public: Dali::Integration::SceneHolder::KeyEventGeneratedSignalType& KeyEventGeneratedSignal(); - Dali::Integration::SceneHolder::TouchSignalType& TouchSignal(); + Dali::Integration::SceneHolder::TouchEventSignalType& TouchedSignal(); Dali::Integration::SceneHolder::WheelEventSignalType& WheelEventSignal(); diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder.cpp index 111f362..e18809a 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder.cpp @@ -105,9 +105,9 @@ Dali::Integration::SceneHolder::KeyEventGeneratedSignalType& SceneHolder::KeyEve return mScene.KeyEventGeneratedSignal(); } -Dali::Integration::SceneHolder::TouchSignalType& SceneHolder::TouchSignal() +Dali::Integration::SceneHolder::TouchEventSignalType& SceneHolder::TouchedSignal() { - return mScene.TouchSignal(); + return mScene.TouchedSignal(); } Dali::Integration::SceneHolder::WheelEventSignalType& SceneHolder::WheelEventSignal() @@ -225,9 +225,9 @@ SceneHolder::KeyEventGeneratedSignalType& SceneHolder::KeyEventGeneratedSignal() return GetImplementation( *this ).KeyEventGeneratedSignal(); } -SceneHolder::TouchSignalType& SceneHolder::TouchSignal() +SceneHolder::TouchEventSignalType& SceneHolder::TouchedSignal() { - return GetImplementation( *this ).TouchSignal(); + return GetImplementation( *this ).TouchedSignal(); } SceneHolder::WheelEventSignalType& SceneHolder::WheelEventSignal() diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp index d4c5807..9e9ca35 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.cpp @@ -165,9 +165,9 @@ Window::KeyEventSignalType& Window::KeyEventSignal() return GetImplementation( *this ).KeyEventSignal(); } -Window::TouchSignalType& Window::TouchSignal() +Window::TouchEventSignalType& Window::TouchedSignal() { - return GetImplementation( *this ).TouchSignal(); + return GetImplementation( *this ).TouchedSignal(); } namespace DevelWindow diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h index 5abd9bc..2291139 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h @@ -52,7 +52,7 @@ class Window : public BaseHandle { public: using KeyEventSignalType = Signal< void (const KeyEvent&) >; - using TouchSignalType = Signal< void (const TouchEvent&) >; + using TouchEventSignalType = Signal< void (const TouchEvent&) >; static Window New(PositionSize windowPosition, const std::string& name, bool isTransparent = false); static Window New(PositionSize windowPosition, const std::string& name, const std::string& className, bool isTransparent = false); @@ -75,7 +75,7 @@ public: void Hide(); FocusChangeSignalType& FocusChangeSignal(); KeyEventSignalType& KeyEventSignal(); - TouchSignalType& TouchSignal(); + TouchEventSignalType& TouchedSignal(); public: explicit Window( Internal::Adaptor::Window* window ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-Alignment.cpp b/automated-tests/src/dali-toolkit/utc-Dali-Alignment.cpp index bcb4185..d3aba7e 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-Alignment.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-Alignment.cpp @@ -971,7 +971,7 @@ int UtcDaliAlignmentOnTouchEvent(void) alignment.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_LEFT); application.GetScene().Add(alignment); - alignment.TouchSignal().Connect(&TouchCallback); + alignment.TouchedSignal().Connect(&TouchCallback); application.Render(); application.SendNotification(); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp b/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp index 987916c..ca32522 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp @@ -128,7 +128,7 @@ int UtcDaliBuilderQuitSignal(void) "\"orientation\": [10,10,10,10]," "\"clippingBox\": [10,10,10,10]," "\"signals\": [{" - "\"name\": \"touch\"," + "\"name\": \"touched\"," "\"action\": \"quit\"" "}]" "}]" @@ -303,7 +303,7 @@ int UtcDaliBuilderAnimationP(void) " \"size\": [200, 200, 1]," " \"orientation\": [0, 0, 30]," " \"signals\": [{" - " \"name\": \"touch\"," + " \"name\": \"touched\"," " \"action\": \"play\"," " \"animation\": \"animate\"" " }]" @@ -431,7 +431,7 @@ int UtcDaliBuilderAnimationN(void) " \"size\": [200, 200, 1]," " \"orientation\": [0, 0, 30]," " \"signals\": [{" - " \"name\": \"touch\"," + " \"name\": \"touched\"," " \"action\": \"play\"," " \"animation\": \"animate\"" " }]" @@ -504,7 +504,7 @@ int UtcDaliBuilderConstantsP(void) " \"image\": { \"url\": \"dir/{IMAGE_PATH}\" }," " \"sizeWidth\": \"{WIDTH}\"," " \"signals\": [{" - " \"name\": \"touch\"," + " \"name\": \"touched\"," " \"action\": \"quit\"" " }]" "}]" @@ -574,7 +574,7 @@ int UtcDaliBuilderTemplatesAndStylesP(void) " \"name\": \"image\",\n" " \"size\": \"{SIZE}\",\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"quit\"\n" " }],\n" " \"actors\": [\n" @@ -622,7 +622,7 @@ int UtcDaliBuilderTemplatesAndStylesP(void) " \"name\": \"image\",\n" " \"size\": \"{SIZE}\",\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"quit\"\n" " }],\n" " \"actors\": [\n" @@ -684,7 +684,7 @@ int UtcDaliBuilderRenderTasksP(void) " \"name\": \"image\",\n" " \"size\": [100,100,1],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"quit\"\n" " }],\n" " \"actors\": [\n" @@ -731,7 +731,7 @@ int UtcDaliBuilderChildActionP(void) " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"hide\",\n" " \"actor\": \"actor\",\n" " \"childActor\": \"subActor\"\n" @@ -787,7 +787,7 @@ int UtcDaliBuilderSetPropertyActionP(void) " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"set\",\n" " \"actor\": \"subActor\",\n" " \"property\": \"visible\",\n" @@ -844,7 +844,7 @@ int UtcDaliBuilderGenericActionP(void) " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"hide\"\n" " }]\n" " }]\n" @@ -898,7 +898,7 @@ int UtcDaliBuilderPropertyNotificationP(void) " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"hide\"\n" " }],\n" " \"notifications\": [{\n" @@ -1018,7 +1018,7 @@ int UtcDaliBuilderCustomPropertyP(void) " \"name\": \"image\",\n" " \"size\": [100,100,1],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"quit\"\n" " }],\n" " \"properties\": {\n" @@ -1151,7 +1151,7 @@ int UtcDaliBuilderLoadFromStringN(void) "\"parentOrigin\": \"TOP_LEFT\"," "\"anchorPoint\": \"TOP_LEFT\"," "\"signals\": [{" - "\"name\": \"touch\"," + "\"name\": \"touched\"," "\"action\": \"quit\"" "}]" "}]" @@ -1198,7 +1198,7 @@ int UtcDaliBuilderAddActorsP(void) " \"visible\": false\n" " }],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"hide\",\n" " \"actor\": \"actor\",\n" " \"childActor\": \"subActor\"\n" @@ -1742,7 +1742,7 @@ int UtcDaliBuilderActionsWithParams(void) " \"name\": \"image\",\n" " \"size\": [100,100,1],\n" " \"signals\": [{\n" - " \"name\": \"touch\",\n" + " \"name\": \"touched\",\n" " \"action\": \"show\",\n" " \"parameters\": {\n" " \"property1\" : 10,\n" diff --git a/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp index 973fc58..adfa9f9 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp @@ -225,7 +225,7 @@ int UtcDaliWebViewTouchAndKeys(void) application.Render(); view.GetNaturalSize(); - view.TouchSignal().Connect( &OnTouched ); + view.TouchedSignal().Connect( &OnTouched ); // Touch event Dali::Integration::TouchEvent event; diff --git a/dali-toolkit/internal/controls/buttons/button-impl.cpp b/dali-toolkit/internal/controls/buttons/button-impl.cpp index 3bebcde..6d45eed 100644 --- a/dali-toolkit/internal/controls/buttons/button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/button-impl.cpp @@ -620,7 +620,7 @@ void Button::OnInitialize() self.SetProperty( Actor::Property::KEYBOARD_FOCUSABLE, true ); - self.TouchSignal().Connect( this, &Button::OnTouch ); + self.TouchedSignal().Connect( this, &Button::OnTouch ); } bool Button::OnAccessibilityActivated() diff --git a/dali-toolkit/internal/controls/popup/popup-impl.cpp b/dali-toolkit/internal/controls/popup/popup-impl.cpp index 42b1083..b95e648 100644 --- a/dali-toolkit/internal/controls/popup/popup-impl.cpp +++ b/dali-toolkit/internal/controls/popup/popup-impl.cpp @@ -1963,17 +1963,17 @@ void Popup::SetupTouch() if( ! mTouchTransparent ) { // Connect all the signals and set us up to consume all touch events - mBacking.TouchSignal().Connect( this, &Popup::OnBackingTouched ); - mPopupBackgroundImage.TouchSignal().Connect( this, &Popup::OnDialogTouched ); - mPopupLayout.TouchSignal().Connect( this, &Popup::OnDialogTouched ); + mBacking.TouchedSignal().Connect( this, &Popup::OnBackingTouched ); + mPopupBackgroundImage.TouchedSignal().Connect( this, &Popup::OnDialogTouched ); + mPopupLayout.TouchedSignal().Connect( this, &Popup::OnDialogTouched ); mLayer.SetProperty( Layer::Property::CONSUMES_TOUCH, true ); } else { // We are touch transparent so disconnect all signals and ensure our layer does not consumed all touch events - mBacking.TouchSignal().Disconnect( this, &Popup::OnBackingTouched ); - mPopupBackgroundImage.TouchSignal().Disconnect( this, &Popup::OnDialogTouched ); - mPopupLayout.TouchSignal().Disconnect( this, &Popup::OnDialogTouched ); + mBacking.TouchedSignal().Disconnect( this, &Popup::OnBackingTouched ); + mPopupBackgroundImage.TouchedSignal().Disconnect( this, &Popup::OnDialogTouched ); + mPopupLayout.TouchedSignal().Disconnect( this, &Popup::OnDialogTouched ); mLayer.SetProperty( Layer::Property::CONSUMES_TOUCH, false ); } } diff --git a/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp b/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp index a06cee6..6807b16 100644 --- a/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp @@ -367,7 +367,7 @@ void ItemView::OnInitialize() Vector2 stageSize = Stage::GetCurrent().GetSize(); mWheelScrollDistanceStep = stageSize.y * DEFAULT_WHEEL_SCROLL_DISTANCE_STEP_PROPORTION; - self.TouchSignal().Connect( this, &ItemView::OnTouch ); + self.TouchedSignal().Connect( this, &ItemView::OnTouch ); EnableGestureDetection(Gesture::Type(Gesture::Pan)); mWheelEventFinishedTimer = Timer::New( WHEEL_EVENT_FINISHED_TIME_OUT ); diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp index fb7e086..4f75190 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp @@ -689,7 +689,7 @@ void ScrollView::OnInitialize() mGestureStackDepth = 0; - self.TouchSignal().Connect( this, &ScrollView::OnTouch ); + self.TouchedSignal().Connect( this, &ScrollView::OnTouch ); EnableGestureDetection( Gesture::Type( Gesture::Pan ) ); // By default we'll allow the user to freely drag the scroll view, diff --git a/dali-toolkit/internal/controls/slider/slider-impl.cpp b/dali-toolkit/internal/controls/slider/slider-impl.cpp index 8879549..8282c74 100644 --- a/dali-toolkit/internal/controls/slider/slider-impl.cpp +++ b/dali-toolkit/internal/controls/slider/slider-impl.cpp @@ -204,7 +204,7 @@ void Slider::OnInitialize() self.SetProperty( Actor::Property::SIZE, Vector2( DEFAULT_HIT_REGION.x, DEFAULT_HIT_REGION.y ) ); // Connect to the touch signal - self.TouchSignal().Connect( this, &Slider::OnTouch ); + self.TouchedSignal().Connect( this, &Slider::OnTouch ); } void Slider::OnRelayout( const Vector2& size, RelayoutContainer& container ) @@ -381,7 +381,7 @@ Actor Slider::CreateHitRegion() Actor hitRegion = Actor::New(); hitRegion.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); hitRegion.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); - hitRegion.TouchSignal().Connect( this, &Slider::OnTouch ); + hitRegion.TouchedSignal().Connect( this, &Slider::OnTouch ); return hitRegion; } diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp index a6c6267..beb29f5 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp @@ -1295,7 +1295,7 @@ void TextEditor::OnInitialize() EnableGestureDetection( static_cast( Gesture::Tap | Gesture::Pan | Gesture::LongPress ) ); GetTapGestureDetector().SetMaximumTapsRequired( 2 ); - self.TouchSignal().Connect( this, &TextEditor::OnTouched ); + self.TouchedSignal().Connect( this, &TextEditor::OnTouched ); // Set BoundingBox to stage size if not already set. Rect boundingBox; diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp index cd6eb21..396e525 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp @@ -1342,7 +1342,7 @@ void TextField::OnInitialize() EnableGestureDetection( static_cast( Gesture::Tap | Gesture::Pan | Gesture::LongPress ) ); GetTapGestureDetector().SetMaximumTapsRequired( 2 ); - self.TouchSignal().Connect( this, &TextField::OnTouched ); + self.TouchedSignal().Connect( this, &TextField::OnTouched ); // Set BoundingBox to stage size if not already set. Rect boundingBox; diff --git a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp index 80314dc..c79e74a 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp @@ -138,7 +138,7 @@ Toolkit::WebView WebView::New( const std::string& locale, const std::string& tim void WebView::OnInitialize() { Self().SetProperty( Actor::Property::KEYBOARD_FOCUSABLE, true ); - Self().TouchSignal().Connect( this, &WebView::OnTouchEvent ); + Self().TouchedSignal().Connect( this, &WebView::OnTouchEvent ); if( mWebEngine ) { diff --git a/dali-toolkit/internal/drag-drop-detector/drag-and-drop-detector-impl.cpp b/dali-toolkit/internal/drag-drop-detector/drag-and-drop-detector-impl.cpp index 5592004..6687e89 100644 --- a/dali-toolkit/internal/drag-drop-detector/drag-and-drop-detector-impl.cpp +++ b/dali-toolkit/internal/drag-drop-detector/drag-and-drop-detector-impl.cpp @@ -50,7 +50,7 @@ void DragAndDropDetector::Attach(Dali::Toolkit::Control& control) } } mControls.push_back(control); - control.TouchSignal().Connect(this, &DragAndDropDetector::OnDrag); + control.TouchedSignal().Connect(this, &DragAndDropDetector::OnDrag); mFirstEnter.push_back(control.GetProperty< int >( Actor::Property::ID )); mPanGestureDetector.Attach(control); mPanGestureDetector.DetectedSignal().Connect(this, &DragAndDropDetector::OnPan); @@ -71,7 +71,7 @@ void DragAndDropDetector::Detach(Dali::Toolkit::Control& control) if(match != mControls.end()) { - match->TouchSignal().Disconnect(this, &DragAndDropDetector::OnDrag); + match->TouchedSignal().Disconnect(this, &DragAndDropDetector::OnDrag); mPanGestureDetector.Detach(*match); mFirstEnter.erase(std::find(mFirstEnter.begin(), mFirstEnter.end(), control.GetProperty< int >( Actor::Property::ID ))); mControls.erase(match); @@ -86,7 +86,7 @@ void DragAndDropDetector::DetachAll() auto iter = mControls.begin(); for(;iter != mControls.end();) { - iter->TouchSignal().Disconnect(this, &DragAndDropDetector::OnDrag); + iter->TouchedSignal().Disconnect(this, &DragAndDropDetector::OnDrag); mPanGestureDetector.Detach(*iter); iter = mControls.erase(iter); } diff --git a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp index 8e8a4da..5092cfe 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp @@ -146,7 +146,7 @@ void KeyboardFocusManager::OnAdaptorInit() for( auto iter = sceneHolders.begin(); iter != sceneHolders.end(); ++iter ) { ( *iter ).KeyEventSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnKeyEvent ); - ( *iter ).TouchSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch ); + ( *iter ).TouchedSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch ); Dali::Window window = DevelWindow::DownCast( *iter ); if( window ) { @@ -162,7 +162,7 @@ void KeyboardFocusManager::OnAdaptorInit() void KeyboardFocusManager::OnSceneHolderCreated( Dali::Integration::SceneHolder& sceneHolder ) { sceneHolder.KeyEventSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnKeyEvent ); - sceneHolder.TouchSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch ); + sceneHolder.TouchedSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch ); Dali::Window window = DevelWindow::DownCast( sceneHolder ); if( window ) { diff --git a/dali-toolkit/internal/text/decorator/text-decorator.cpp b/dali-toolkit/internal/text/decorator/text-decorator.cpp index e369158..1f83d15 100644 --- a/dali-toolkit/internal/text/decorator/text-decorator.cpp +++ b/dali-toolkit/internal/text/decorator/text-decorator.cpp @@ -827,7 +827,7 @@ struct Decorator::Impl : public ConnectionTracker grabHandle.actor.Add( grabHandle.grabArea ); grabHandle.actor.SetProperty( Actor::Property::COLOR, mHandleColor ); - grabHandle.grabArea.TouchSignal().Connect( this, &Decorator::Impl::OnGrabHandleTouched ); + grabHandle.grabArea.TouchedSignal().Connect( this, &Decorator::Impl::OnGrabHandleTouched ); // The grab handle's actor is attached to the tap and long press detectors in order to consume these events. // Note that no callbacks are connected to any signal emitted by the tap and long press detectors. @@ -895,7 +895,7 @@ struct Decorator::Impl : public ConnectionTracker primary.grabArea.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER ); primary.grabArea.SetProperty( Actor::Property::SIZE_MODE_FACTOR, DEFAULT_SELECTION_HANDLE_RELATIVE_SIZE ); - primary.grabArea.TouchSignal().Connect( this, &Decorator::Impl::OnHandleOneTouched ); + primary.grabArea.TouchedSignal().Connect( this, &Decorator::Impl::OnHandleOneTouched ); // The handle's actor is attached to the tap and long press detectors in order to consume these events. // Note that no callbacks are connected to any signal emitted by the tap and long press detectors. @@ -939,7 +939,7 @@ struct Decorator::Impl : public ConnectionTracker secondary.grabArea.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER ); secondary.grabArea.SetProperty( Actor::Property::SIZE_MODE_FACTOR, DEFAULT_SELECTION_HANDLE_RELATIVE_SIZE ); - secondary.grabArea.TouchSignal().Connect( this, &Decorator::Impl::OnHandleTwoTouched ); + secondary.grabArea.TouchedSignal().Connect( this, &Decorator::Impl::OnHandleTwoTouched ); // The handle's actor is attached to the tap and long press detectors in order to consume these events. // Note that no callbacks are connected to any signal emitted by the tap and long press detectors. diff --git a/docs/content/example-code/properties.cpp b/docs/content/example-code/properties.cpp index e8f4d56..61be376 100644 --- a/docs/content/example-code/properties.cpp +++ b/docs/content/example-code/properties.cpp @@ -79,7 +79,7 @@ public: mTagPropertyIndex = mImageView.RegisterProperty( TAG_PROPERTY_NAME, 0, Property::READ_WRITE /* Event-side only, i.e. not animatable */ ); // Connect to the touch-event - mImageView.TouchSignal().Connect( this, &PropertyController::OnTouched ); + mImageView.TouchedSignal().Connect( this, &PropertyController::OnTouched ); // Create text label mTagText = Toolkit::TextLabel::New( "0" ); diff --git a/docs/content/programming-guide/creating-custom-controls.md b/docs/content/programming-guide/creating-custom-controls.md index 7da3c4b..d3f6302 100644 --- a/docs/content/programming-guide/creating-custom-controls.md +++ b/docs/content/programming-guide/creating-custom-controls.md @@ -187,7 +187,7 @@ ________________________________________________________________________________ ### Touch, Hover & Wheel Events {#creating-controls-events} -+ A **touch** is when any touch occurs within the bounds of the custom actor. Connect to Dali::Actor::TouchSignal(). ++ A **touch event** is when any touch occurs within the bounds of the custom actor. Connect to Dali::Actor::TouchedSignal(). + A **hover event** is when a pointer moves within the bounds of a custom actor (e.g. mouse pointer or hover pointer). + A **wheel event** is when the mouse wheel (or similar) is moved while hovering over an actor (via a mouse pointer or hover pointer). diff --git a/docs/content/programming-guide/event-system.h b/docs/content/programming-guide/event-system.h index 01df3ef..6e46e01 100644 --- a/docs/content/programming-guide/event-system.h +++ b/docs/content/programming-guide/event-system.h @@ -42,7 +42,7 @@ bool OnTouch( Dali::Actor actor, const Dali::TouchEvent& touch ) // Elsewhere Dali::Actor actor = Actor::New(); -actor.TouchSignal().Connect( &OnTouch ); +actor.TouchedSignal().Connect( &OnTouch ); @endcode The primary touch point is the first point that the user touches. @@ -51,7 +51,7 @@ The touch signal is first emitted to the actor which is hit by the primary touch If this hit actor does not handle (consume) the event, then the event is offered to the hit actor's parent. Again, if the parent does not handle this event, it is then offered to its parent and so on until the stage is reached or the event is consumed. -If the TouchSignal of both a parent and child are connected to, then the touch event is first offered to the child's listener. +If the TouchedSignal of both a parent and child are connected to, then the touch event is first offered to the child's listener. If it is consumed by the child's listener, then the parent will not be informed.

Gestures

diff --git a/docs/content/programming-guide/hello-world.h b/docs/content/programming-guide/hello-world.h index 22878bc..d0cabd7 100644 --- a/docs/content/programming-guide/hello-world.h +++ b/docs/content/programming-guide/hello-world.h @@ -48,7 +48,7 @@ public: stage.Add( mTextLabel ); // Respond to a click anywhere on the stage - stage.GetRootLayer().TouchSignal().Connect( this, &HelloWorldController::OnTouch ); + stage.GetRootLayer().TouchedSignal().Connect( this, &HelloWorldController::OnTouch ); } bool OnTouch( Actor actor, const TouchEvent& touch ) diff --git a/docs/content/programming-guide/multi-touch-guide.md b/docs/content/programming-guide/multi-touch-guide.md index ac37f58..3bc08c3 100644 --- a/docs/content/programming-guide/multi-touch-guide.md +++ b/docs/content/programming-guide/multi-touch-guide.md @@ -6,7 +6,7 @@ Multi-Touch Events Touch events are received via signals. -For C++ API see Dali::Actor::TouchSignal() and Dali::Actor::HoveredSignal() for more details. +For C++ API see Dali::Actor::TouchedSignal() and Dali::Actor::HoveredSignal() for more details. ### Hit Testing Rules Summary: diff --git a/docs/content/programming-guide/programming-languages.md b/docs/content/programming-guide/programming-languages.md index 4b1f327..5ab5e8a 100644 --- a/docs/content/programming-guide/programming-languages.md +++ b/docs/content/programming-guide/programming-languages.md @@ -21,7 +21,7 @@ bool OnPressed( Dali::Actor, const TouchEvent& touch ) return true; // consume the touch event } ... -actor.TouchSignal().Connect( &OnPressed ); +actor.TouchedSignal().Connect( &OnPressed ); ~~~ ## JSON {#json-support} @@ -53,7 +53,7 @@ actor.TouchSignal().Connect( &OnPressed ); "parentOrigin": "CENTER", "signals" : [ - { "name" : "touch", "action": "play", "animation": "move" } + { "name" : "touched", "action": "play", "animation": "move" } ] } ]