X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.h;h=a7f71201c455519dc38facec75ae1fd65ad42d7d;hb=refs%2Fchanges%2F23%2F243323%2F3;hp=6b2c19a4e06fff4ddb4027429f7f6496355f62b4;hpb=acbe10c62c46a30c58e08d8971a736f04e68dbf8;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/popup/popup-impl.h b/dali-toolkit/internal/controls/popup/popup-impl.h old mode 100755 new mode 100644 index 6b2c19a..a7f7120 --- a/dali-toolkit/internal/controls/popup/popup-impl.h +++ b/dali-toolkit/internal/controls/popup/popup-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_POPUP_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ // INTERNAL INCLUDES #include -#include +#include #include namespace Dali @@ -404,7 +404,7 @@ private: * @param[in] touch The Touch Data. * @return Whether to consume event or not. */ - bool OnBackingTouched(Actor actor, const TouchData& touch); + bool OnBackingTouched(Actor actor, const TouchEvent& touch); /** * Signal occurs when a mouse wheel event occurs on the dimmed backing. @@ -420,12 +420,12 @@ private: * @param[in] touch The Touch Data. * @return Whether to consume event or not. */ - bool OnDialogTouched( Actor actor, const TouchData& touch ); + bool OnDialogTouched( Actor actor, const TouchEvent& touch ); /** * @copydoc Toolkit::Control::OnInitialize() */ - virtual void OnInitialize(); + void OnInitialize() override; /** * Called whenever the popup layout is re-set up. @@ -437,43 +437,43 @@ private: /** * Called when the popup is directly or indirectly parented to the stage. */ - virtual void OnStageConnection( int depth ); + void OnSceneConnection( int depth ) override; /** * From Control; called after a child has been added to the owning actor. * @param[in] child The child which has been added. */ - virtual void OnChildAdd( Actor& child ); + void OnChildAdd( Actor& child ) override; /** * @copydoc Control::OnRelayOut() */ - virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + void OnRelayout( const Vector2& size, RelayoutContainer& container ) override; /** * @copydoc Control::OnSetResizePolicy() */ - virtual void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension ); + void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension ) override; /** * @copydoc Control::GetNaturalSize() */ - virtual Vector3 GetNaturalSize(); + Vector3 GetNaturalSize() override; /** * @copydoc Control::GetHeightForWidth() */ - virtual float GetHeightForWidth( float width ); + float GetHeightForWidth( float width ) override; /** * @copydoc Control::GetWidthForHeight() */ - virtual float GetWidthForHeight( float height ); + float GetWidthForHeight( float height ) override; /** * @copydoc Control::OnKeyEvent() */ - virtual bool OnKeyEvent( const KeyEvent& event ); + bool OnKeyEvent( const KeyEvent& event ) override; /** * @copydoc Control::GetNextKeyboardFocusableActor() @@ -499,6 +499,12 @@ private: */ void AddFocusableChildrenRecursive( Actor parent, std::vector< Actor >& focusableActors ); + /** + * Sets up the touch signals connections as required. + * @note This must be called after all the members have been created. + */ + void SetupTouch(); + private: // Undefined.