From: Seoyeon Kim Date: Wed, 9 Sep 2020 05:50:29 +0000 (+0900) Subject: [Tizen] Add deprecated logs to Scene and Actor X-Git-Tag: accepted/tizen/6.0/unified/20201030.114236^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0;p=platform%2Fcore%2Fuifw%2Fdali-core-legacy.git [Tizen] Add deprecated logs to Scene and Actor - DALi projects are deprecated now, so added deprecated logs to major classes. Change-Id: Ic40757dfb6858227c3c791123e4f65033e3d827a Signed-off-by: Seoyeon Kim --- diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index a5fc5a2..d9e5711 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -31,6 +31,7 @@ namespace Integration Scene Scene::New( Size size ) { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: DALi is deprecated and will be removed from next version. Please use NUI(C# interface of DALi).\n For more information on NUI, see the NUI quick start page : https://docs.tizen.org/application/dotnet/get-started/nui/quickstart/ \n" ); Internal::ScenePtr internal = Internal::Scene::New( size ); return Scene( internal.Get() ); } @@ -66,11 +67,13 @@ Scene& Scene::operator=( const Scene& rhs ) void Scene::Add( Actor actor ) { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: DALi is deprecated and will be removed from next version. Please use NUI(C# interface of DALi).\n For more information on NUI, see the NUI quick start page : https://docs.tizen.org/application/dotnet/get-started/nui/quickstart/ \n" ); GetImplementation(*this).Add( GetImplementation(actor) ); } void Scene::Remove( Actor actor ) { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: DALi is deprecated and will be removed from next version. Please use NUI(C# interface of DALi).\n For more information on NUI, see the NUI quick start page : https://docs.tizen.org/application/dotnet/get-started/nui/quickstart/ \n" ); GetImplementation(*this).Remove( GetImplementation(actor) ); } diff --git a/dali/integration-api/scene.h b/dali/integration-api/scene.h index 5ec8cc3..aaacdd9 100755 --- a/dali/integration-api/scene.h +++ b/dali/integration-api/scene.h @@ -48,6 +48,8 @@ namespace Integration struct Event; /** + * @DEPRECATED_1_5.19 + * * @brief * * Scene creates a "world" that can be bound to a surface for rendering. @@ -65,6 +67,8 @@ public: using FrameCallbackContainer = std::vector< std::pair< std::unique_ptr< CallbackBase >, int32_t > >; /** + * @DEPRECATED_1_5.19 + * * @brief Create an initialized Scene handle. * * @param[in] size The size of the set surface for this scene diff --git a/dali/public-api/actors/actor.cpp b/dali/public-api/actors/actor.cpp index 88a1cd9..46d1d04 100644 --- a/dali/public-api/actors/actor.cpp +++ b/dali/public-api/actors/actor.cpp @@ -40,6 +40,7 @@ Actor::Actor() Actor Actor::New() { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: DALi is deprecated and will be removed from next version. Please use NUI(C# interface of DALi).\n For more information on NUI, see the NUI quick start page : https://docs.tizen.org/application/dotnet/get-started/nui/quickstart/ \n" ); Internal::ActorPtr internal = Internal::Actor::New(); return Actor(internal.Get()); @@ -102,6 +103,7 @@ Layer Actor::GetLayer() void Actor::Add(Actor actor) { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: DALi is deprecated and will be removed from next version. Please use NUI(C# interface of DALi).\n For more information on NUI, see the NUI quick start page : https://docs.tizen.org/application/dotnet/get-started/nui/quickstart/ \n" ); GetImplementation(*this).Add(GetImplementation(actor)); } diff --git a/dali/public-api/actors/actor.h b/dali/public-api/actors/actor.h index 82ce5c0..1c10bfe 100644 --- a/dali/public-api/actors/actor.h +++ b/dali/public-api/actors/actor.h @@ -61,6 +61,8 @@ struct Vector4; typedef Rect Padding; ///< Padding definition @SINCE_1_0.0 /** + * @DEPRECATED_1_5.19 + * * @brief Actor is the primary object with which Dali applications interact. * * UI controls can be built by combining multiple actors. @@ -718,6 +720,8 @@ public: // Creation /** + * @DEPRECATED_1_5.19 + * * @brief Creates an uninitialized Actor; this can be initialized with Actor::New(). * * Calling member functions with an uninitialized Actor handle is not allowed. @@ -726,6 +730,8 @@ public: Actor(); /** + * @DEPRECATED_1_5.19 + * * @brief Creates an initialized Actor. * * @SINCE_1_0.0 diff --git a/doc/dali-core-doc.h b/doc/dali-core-doc.h index d104906..571a91a 100644 --- a/doc/dali-core-doc.h +++ b/doc/dali-core-doc.h @@ -19,7 +19,7 @@ */ /** - * @defgroup dali_core DALi Core + * @defgroup dali_core DALi Core (Deprecated) * * @brief DALi Core provides core functionalities such as scene graph-based rendering, animation, and event handling. *