X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=optional%2Fdali-toolkit%2Finternal%2Fcontrols%2Fpage-turn-view%2Fpage-turn-view-impl.h;h=27f9778beff84a88febadba0312b3cfa9b23359c;hp=1354c1997faf22e03e4794ab4de928674224bf11;hb=680c5587a1478717393d3a03cf6a17801edd00e0;hpb=e58fa784d19a558e35f458ecf6d262a2344beb4f diff --git a/optional/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h b/optional/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h index 1354c19..27f9778 100644 --- a/optional/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h +++ b/optional/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h @@ -1,24 +1,31 @@ #ifndef __DALI_TOOLKIT_INTERNAL_PAGE_TURN_VIEW_IMPL_H__ #define __DALI_TOOLKIT_INTERNAL_PAGE_TURN_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. -// +/* + * Copyright (c) 2014 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. + * + */ + +// EXTERNAL INCLUDES +#include +#include +#include +#include +#include // INTERNAL INCLUDES -#include #include #include #include @@ -36,7 +43,7 @@ namespace Toolkit namespace Internal { -class PageTurnView : public ControlImpl +class PageTurnView : public Control { protected: @@ -133,7 +140,7 @@ protected: * @param[in] actor The actor which the shader effect would be applied onto * @param[in] shaderEffect The shader effect to be set to the actor */ - void SetShaderEffect( Actor actor, ShaderEffect shaderEffect ); + void SetShaderEffect( ImageActor actor, ShaderEffect shaderEffect ); private: @@ -179,7 +186,7 @@ private: */ void RenderPage( int pageIndex ); -private: // from ControlImpl +private: // from Control /** * @copydoc Toolkit::Control::OnPan @@ -252,7 +259,7 @@ private: // implemented differently by PageTurnLandscapeView and PageTurnPortrai * @param[in] actor The current page actor * @param[in] isLeftSide Which side the current page is located */ - virtual void SetSpineEffect(Actor actor, bool isLeftSide) = 0; + virtual void SetSpineEffect(ImageActor actor, bool isLeftSide) = 0; /** * This method is called when pan finished to detect outwards flick @@ -326,8 +333,8 @@ protected: std::vector mPageActors; ///< The vector of pages on stage int mCurrentPageIndex; ///< The index of the current page, between 0 ~ mTotalPageCount-1 - std::map mIsTurnBack; ///< The map to keep track the page actor's turning direction - std::map mAnimationActorPair; ///< The map to keep track which page actor is the animation act on + std::map mIsTurnBack; ///< The map to keep track the page actor's turning direction + std::map mAnimationActorPair; ///< The map to keep track which page actor is the animation act on std::map mAnimationIndexPair; ///< The map to keep track which PageTurnEffect, PanDisplacementProperty, CurrentCenterProperty is used for the animation int mIndex; ///< The index to keep track which PageTurnEffect, PanDisplacementProperty, CurrentCenterProperty is used for the current panning page std::vector mIsAnimating; ///< The boolean vector to keep track which PageTurnEffect, PanDisplacementProperty, CurrentCenterProperty is available for using