X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpage-turn-view%2Fpage-turn-portrait-view-impl.h;h=358ad76fcf86904eb98a22b9fc5fc6f308a46226;hb=f546dd5d83a968e573f8f053a01ce43df32c71a0;hp=dde9f99e7bad6598e5cb2a2f1d2b7bb154d4a16a;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/page-turn-view/page-turn-portrait-view-impl.h b/dali-toolkit/internal/controls/page-turn-view/page-turn-portrait-view-impl.h index dde9f99..358ad76 100644 --- a/dali-toolkit/internal/controls/page-turn-view/page-turn-portrait-view-impl.h +++ b/dali-toolkit/internal/controls/page-turn-view/page-turn-portrait-view-impl.h @@ -1,24 +1,25 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ -#define __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ - -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +#ifndef DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H +#define DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H + +/* + * Copyright (c) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // INTERNAL INCLUDES -#include +#include #include namespace Dali @@ -38,18 +39,19 @@ class PageTurnPortraitView : public PageTurnView public: /** - * Create a new PageTurnPortraitView - * @return A handle to the newly allocated PageTurnPortraitView + * @copydoc Toolkit::PageTurnPortraitView::New( PageFactory&, const Vector2& ) */ - static Toolkit::PageTurnPortraitView New( PageFactory& pageFactory, const Vector2& pageSize ); + static Toolkit::PageTurnPortraitView New( PageFactory& pageFactory, const Vector2& viewPageSize ); protected: /** * Constructor. * It initializes the PageTurnPortraitView members + * @param[in] pageFactory The factory which provides image to PageTurnView as the page content. + * @param[in] viewPageSize The size of the page */ - PageTurnPortraitView( PageFactory& pageFactory, const Vector2& pageSize ); + PageTurnPortraitView( PageFactory& pageFactory, const Vector2& viewPageSize ); /** * A reference counted object may only be deleted by calling Unreference() @@ -61,39 +63,34 @@ protected: // From PageTurnView /** * @copydoc PageTurnView::OnPageTurnViewInitialize */ - virtual void OnPageTurnViewInitialize(); - - /** - * @copydoc PageTurnView::NewPageFromRenderBuffer - */ - virtual ImageActor NewPageFromRenderBuffer( int pageIndex ); + void OnPageTurnViewInitialize() override; /** * @copydoc PageTurnView::SetPanPosition */ - virtual Vector2 SetPanPosition( const Vector2& gesturePosition ); + Vector2 SetPanPosition( const Vector2& gesturePosition ) override; /** * @copydoc PageTurnView::SetPanActor */ - virtual void SetPanActor( const Vector2& panPosition ); + void SetPanActor( const Vector2& panPosition ) override; /** - * @copydoc PageTurnView::SetSpineEffect + * @copydoc PageTurnView::OnPossibleOutwardsFlick */ - virtual void SetSpineEffect(Actor actor, bool isLeftSide); + void OnPossibleOutwardsFlick( const Vector2& panPosition, float gestureSpeed ) override; /** - * @copydoc PageTurnView::OnPossibleOutwardsFlick + * @copydoc PageTurnView::OnTurnedOver */ - virtual void OnPossibleOutwardsFlick( const Vector2& panPosition, float gestureSpeed ); + void OnTurnedOver( Actor actor, bool isLeftSide ) override; private: /** * @copydoc PageTurnView::TurnedOver */ - void OnTurnedOver( Animation& animation ); + void TurnedOverBackwards( Animation& animation ); private: @@ -110,4 +107,5 @@ private: } // namespace Toolkit } // namespace Dali -#endif /* __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ */ + +#endif // DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H