utc-Dali-PageTurnEffect.cpp
utc-Dali-PageTurnView.cpp
utc-Dali-RollLayout.cpp
- utc-Dali-RotatingSelector.cpp
utc-Dali-ScrollView.cpp
utc-Dali-ShadowView.cpp
utc-Dali-ShearEffect.cpp
+++ /dev/null
-/*
- * 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.
- *
- */
-
-#include <iostream>
-#include <stdlib.h>
-#include <dali-toolkit-test-suite-utils.h>
-#include <dali-toolkit/dali-toolkit.h>
-#include <dali/integration-api/events/touch-event-integ.h>
-
-
-
-using namespace Dali;
-using namespace Toolkit;
-
-
-namespace
-{
-static bool gObjectCreatedCallBackCalled;
-
-static void TestCallback(BaseHandle handle)
-{
- gObjectCreatedCallBackCalled = true;
-}
-
-static bool gSelectedSignalReceived = false;
-static bool gSelected = false;
-
-const Dali::TouchPoint pointDownInside( 0, TouchPoint::Down, 240, 400 );
-const Dali::TouchPoint pointUpInside( 0, TouchPoint::Up, 240, 400 );
-} // namespace
-
-
-void rotating_selector_startup(void)
-{
- test_return_value = TET_UNDEF;
-}
-
-void rotating_selector_cleanup(void)
-{
- test_return_value = TET_PASS;
-}
-
-
-int UtcDaliRotatingSelectorNew(void)
-{
- ToolkitTestApplication application;
-
- tet_infoline("UtcDaliRotatingSelectorNew");
- RotatingSelector selector;
-
- DALI_TEST_CHECK(!selector);
-
- Actor unSelectedActor = Actor::New();
- Actor selectedActor = Actor::New();
-
- selector = RotatingSelector::New(unSelectedActor, selectedActor);
-
- DALI_TEST_CHECK(selector);
-
- //Additional check to ensure object is created by checking if it's registered
- ObjectRegistry registry = Stage::GetCurrent().GetObjectRegistry();
- DALI_TEST_CHECK( registry );
-
- gObjectCreatedCallBackCalled = false;
- registry.ObjectCreatedSignal().Connect(&TestCallback);
- {
- RotatingSelector selector = RotatingSelector::New(unSelectedActor, selectedActor);
- }
- DALI_TEST_CHECK( gObjectCreatedCallBackCalled );
- END_TEST;
-}
-
-namespace
-{
-
-// Callback test function
-void OnSelectedSignal(RotatingSelector actor, bool selected)
-{
- gSelectedSignalReceived = true;
- gSelected = selected;
-}
-
-}
-
-
-int UtcDaliRotatingSelectorSetSelected(void)
-{
- ToolkitTestApplication application;
-
- tet_infoline("UtcDaliRotatingSelectorSetSelected");
-
- BitmapImage img = BitmapImage::New( 1,1 );
- ImageActor unSelectedActor = ImageActor::New( img );
- ImageActor selectedActor = ImageActor::New( img );
-
- RotatingSelector selector = RotatingSelector::New(unSelectedActor, selectedActor);
-
- selector.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- selector.SetParentOrigin( ParentOrigin::TOP_LEFT );
- selector.SetPosition( 240, 400 );
- selector.SetSize( 100, 100 );
-
- // connect to its selected signal
- selector.SelectedSignal().Connect( &OnSelectedSignal );
-
- Stage::GetCurrent().Add( selector );
-
- gSelectedSignalReceived = false;
- gSelected = false;
-
- selector.SetSelected(true);
- application.SendNotification();
- application.Render(1000);
- application.SendNotification();
- application.Render(1000);
- application.SendNotification();
- application.Render(1000);
-
- DALI_TEST_CHECK( selector.IsSelected() );
- DALI_TEST_CHECK( gSelectedSignalReceived );
- DALI_TEST_CHECK( gSelected );
-
- gSelectedSignalReceived = false;
- gSelected = false;
-
- selector.SetSelected(false);
- application.SendNotification();
- application.Render(1000);
- application.SendNotification();
- application.Render(1000);
- application.SendNotification();
- application.Render(1000);
-
- DALI_TEST_CHECK( gSelectedSignalReceived );
- DALI_TEST_CHECK( !gSelected );
- DALI_TEST_CHECK( !selector.IsSelected() );
- END_TEST;
-}
-
-int UtcDaliRotatingSelectorSetSelectedAndUnSelectedActor(void)
-{
- ToolkitTestApplication application;
-
- tet_infoline("UtcDaliRotatingSelectorSetSelectedAndUnSelectedActor");
-
- BitmapImage img = BitmapImage::New( 1,1 );
- ImageActor actor1 = ImageActor::New( img );
- ImageActor actor2 = ImageActor::New( img );
-
- RotatingSelector selector = RotatingSelector::New(actor1, actor2);
- Stage::GetCurrent().Add( selector );
-
- ImageActor unSelectedActor = ImageActor::New( img );
- ImageActor selectedActor = ImageActor::New( img );
-
- selector.SetSelectedActor(selectedActor);
-
- Actor actor3 = selector.GetSelectedActor();
- DALI_TEST_CHECK( selectedActor == actor3 );
-
- selector.SetUnSelectedActor(unSelectedActor);
-
- Actor actor4 = selector.GetUnSelectedActor();
- DALI_TEST_CHECK( unSelectedActor == actor4 );
-
- END_TEST;
-}
-
-
-int UtcDaliRotatingSelectorSetSelectable(void)
-{
- ToolkitTestApplication application;
-
- tet_infoline("UtcDaliRotatingSelectorSetSelectable");
-
- BitmapImage img = BitmapImage::New( 1,1 );
- ImageActor unSelectedActor = ImageActor::New( img );
- ImageActor selectedActor = ImageActor::New( img );
-
- RotatingSelector selector = RotatingSelector::New(unSelectedActor, selectedActor);
-
- selector.SetSelectable(true);
- DALI_TEST_CHECK( selector.IsSelectable() );
-
- selector.SetSelectable(false);
- DALI_TEST_CHECK( !selector.IsSelectable() );
- END_TEST;
-}
-
-int UtcDaliRotatingSelectorSignalSelected(void)
-{
- ToolkitTestApplication application;
-
- tet_infoline("UtcDaliRotatingSelectorSignalSelected");
-
- BitmapImage img = BitmapImage::New( 1,1 );
- ImageActor unSelectedActor = ImageActor::New( img );
- ImageActor selectedActor = ImageActor::New( img );
-
- RotatingSelector selector = RotatingSelector::New(unSelectedActor, selectedActor);
-
- selector.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- selector.SetParentOrigin( ParentOrigin::TOP_LEFT );
- selector.SetPosition( 240, 400 );
- selector.SetSize( 100, 100 );
-
- // connect to its selected signal
- selector.SelectedSignal().Connect( &OnSelectedSignal );
-
- Stage::GetCurrent().Add( selector );
-
- DALI_TEST_CHECK( !selector.IsSelected() );
-
- gSelectedSignalReceived = false;
- gSelected = false;
-
- application.SendNotification();
- application.Render(1000);
- application.SendNotification();
- application.Render(1000);
-
- //Test using touch event simulation
- Dali::Integration::TouchEvent event;
-
- event = Dali::Integration::TouchEvent();
- event.AddPoint( pointDownInside );
- application.ProcessEvent( event );
-
- event = Dali::Integration::TouchEvent();
- event.AddPoint( pointUpInside );
- application.ProcessEvent( event );
-
- application.SendNotification();
- application.Render(1000);
- application.SendNotification();
- application.Render(1000);
-
- DALI_TEST_CHECK( selector.IsSelected() );
- DALI_TEST_CHECK( gSelectedSignalReceived );
- DALI_TEST_CHECK( gSelected );
-
- END_TEST;
-}
#include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-page-carousel-effect.h>
#include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-page-cube-effect.h>
#include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-wobble-effect.h>
-#include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
#include <dali-toolkit/public-api/controls/shadow-view/shadow-view.h>
#include <dali-toolkit/public-api/controls/slider/slider.h>
#include <dali-toolkit/public-api/controls/table-view/table-view.h>
+++ /dev/null
-/*
- * 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.
- *
- */
-
-// CLASS HEADER
-#include <dali-toolkit/internal/controls/selectors/rotating-selector-impl.h>
-
-// EXTERNAL INCLUDES
-#include <algorithm>
-#include <dali/public-api/animation/constraints.h>
-#include <dali/public-api/events/touch-event.h>
-#include <dali/public-api/object/type-registry.h>
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
-
-namespace
-{
-const float TOUCH_OPACITY_THRESHOLD = 0.1f;
-} // namespace
-
-namespace Dali
-{
-
-namespace Toolkit
-{
-
-namespace Internal
-{
-namespace
-{
-//Type registration
-BaseHandle Create()
-{
- // empty handle, as RotatingSelector takes children during construction
- return Toolkit::RotatingSelector();
-}
-TypeRegistration mType( typeid(Toolkit::RotatingSelector), typeid(Toolkit::Control), Create );
-
-const Quaternion ROTATION_ANGLE(0.0f, Vector3(1.0f, 0.0f, 0.0f));
-}
-
-Dali::Toolkit::RotatingSelector RotatingSelector::New(Actor& unSelectedActor, Actor& selectedActor)
-{
- // Create the implementation, temporarily owned on stack
- IntrusivePtr< RotatingSelector > customCheckActor = new RotatingSelector;
-
- // Pass ownership to CustomActor
- Dali::Toolkit::RotatingSelector handle( *customCheckActor );
-
- // Second-phase init of the implementation
- // This can only be done after the CustomActor connection has been made...
- customCheckActor->Initialize();
-
- customCheckActor->SetSelectedActor(selectedActor);
- customCheckActor->SetUnSelectedActor(unSelectedActor);
-
- return handle;
-}
-
-void RotatingSelector::OnInitialize()
-{
- mContainer = Actor::New();
- mContainer.SetName("Selector Container");
- mUnSelectedActor = Actor::New();
- mSelectedActor = Actor::New();
-
- mRotateAnimation = Animation::New(0.5f);
- mRotateAnimation.FinishedSignal().Connect(this, &RotatingSelector::AnimationCompleted);
-
- mUnSelectedActor.SetParentOrigin(ParentOrigin::CENTER);
- mUnSelectedActor.SetAnchorPoint(AnchorPoint::CENTER);
-
- mSelectedActor.SetParentOrigin(ParentOrigin::CENTER);
- mSelectedActor.SetAnchorPoint(AnchorPoint::CENTER);
-
- mContainer.SetPositionInheritanceMode( Dali::USE_PARENT_POSITION_PLUS_LOCAL_POSITION );
-
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, ParentSource( Actor::SIZE ), EqualToConstraint() );
- mSelectedActor.ApplyConstraint(constraint);
- mUnSelectedActor.ApplyConstraint(constraint);
- mContainer.ApplyConstraint(constraint);
-
- mContainer.Add(mUnSelectedActor);
- mSelectedActor.SetRotation(Radian(Math::PI), Vector3::XAXIS );
-
- mUnSelectedActor.SetName("RotatingSelector : UnSelectedActor");
- mSelectedActor.SetName("RotatingSelector : SelectedActor");
-
- Self().Add(mContainer);
- Self().SetLeaveRequired(true);
-
- mRotateAnimation.RotateBy(mContainer, Radian(Math::PI), Vector3(1.0f, 0.0f, 0.0f));
-}
-
-RotatingSelector::RotatingSelector()
-: Control( REQUIRES_TOUCH_EVENTS ),
- mSelected(false),
- mSelectable(true),
- mPressed(false),
- mIsAnimating(false)
-{
-}
-
-RotatingSelector::~RotatingSelector()
-{
- mRotateAnimation.Reset();
-}
-
-void RotatingSelector::SetSelected( bool toggle )
-{
- if(toggle != mSelected)
- {
- if( mSelectable )
- {
- ToggleAndAnimateSelection();
- }
- }
-}
-
-void RotatingSelector::SetSelectedActor( Actor& selectedActor )
-{
- unsigned int numChildren = mSelectedActor.GetChildCount();
- for( unsigned int i=0; i<numChildren; ++i )
- {
- Actor actor = mSelectedActor.GetChildAt(i);
- mSelectedActor.Remove(actor);
- }
-
- mSelectedActor.Add(selectedActor);
-}
-
-Actor RotatingSelector::GetSelectedActor()
-{
- return mSelectedActor.GetChildAt(0);
-}
-
-void RotatingSelector::SetUnSelectedActor( Actor& unSelectedActor )
-{
- unsigned int numChildren = mUnSelectedActor.GetChildCount();
-
- for(unsigned int i=0; i<numChildren; ++i)
- {
- mUnSelectedActor.Remove(mUnSelectedActor.GetChildAt(0));
- }
-
- mUnSelectedActor.Add(unSelectedActor);
-}
-
-Actor RotatingSelector::GetUnSelectedActor()
-{
- return mUnSelectedActor.GetChildAt(0);
-}
-
-void RotatingSelector::SetSelectable( bool selectable )
-{
- mSelectable = selectable;
-}
-
-Toolkit::RotatingSelector::SelectedSignalV2& RotatingSelector::SelectedSignal()
-{
- return mCheckedSignalV2;
-}
-
-bool RotatingSelector::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
-{
- Dali::BaseHandle handle( object );
-
- bool connected( true );
- Toolkit::RotatingSelector selector = Toolkit::RotatingSelector::DownCast(handle);
-
- if( Toolkit::RotatingSelector::SIGNAL_CHECKED == signalName )
- {
- selector.SelectedSignal().Connect( tracker, functor );
- }
- else
- {
- // signalName does not match any signal
- connected = false;
- }
-
- return connected;
-}
-
-bool RotatingSelector::OnTouchEvent(const TouchEvent& event)
-{
- if( 1 == event.GetPointCount() )
- {
- switch( event.GetPoint(0).state )
- {
- case TouchPoint::Down:
- if(Self().GetCurrentOpacity() > TOUCH_OPACITY_THRESHOLD)
- {
- mPressed = true;
- }
- break;
- case TouchPoint::Leave:
- mPressed = false;
- break;
- case TouchPoint::Up:
- {
- if(mSelectable && mPressed)
- {
- ToggleAndAnimateSelection();
- }
- mPressed = false;
- break;
- }
- default:
- break;
- }
- }
-
- return false; // dont consume
-}
-
-void RotatingSelector::ToggleAndAnimateSelection()
-{
- if(!mIsAnimating)
- {
- mSelected = !mSelected;
- if(mSelected)
- {
- //The checked image (i.e mSelectedActor should be in front)
- mSelectedActor.SetPosition(0.0f, 0.0f, -1.0f);
- mContainer.Add(mSelectedActor);
- }
- else
- {
- //The un checked image (i.e mUnSelectedActor should be in front)
- mUnSelectedActor.SetPosition(0.0f, 0.0f, 1.0f);
- mContainer.Add(mUnSelectedActor);
- }
-
- mIsAnimating = true;
- mRotateAnimation.Play();
- }
-}
-
-void RotatingSelector::AnimationCompleted( Animation& animation )
-{
- if(mSelected)
- {
- //The checked image (i.e mSelectedActor should be in front)
- mSelectedActor.SetPosition(0.0f, 0.0f, 0.0f);
- mContainer.Remove(mUnSelectedActor);
-
- }
- else
- {
- //The un checked image (i.e mUnSelectedActor should be in front)
- mContainer.Remove(mSelectedActor);
- mUnSelectedActor.SetPosition(0.0f, 0.0f, 0.0f);
- }
-
- mIsAnimating = false;
-
- //Emit signal.
- Dali::Toolkit::RotatingSelector handle( GetOwner() );
- mCheckedSignalV2.Emit( handle, mSelected );
-}
-
-} // namespace Internal
-
-} // namespace Toolkit
-
-} // namespace Dali
+++ /dev/null
-#ifndef __DALI_TOOLKIT_INTERNAL_CUSTOM_CHECK_ACTOR_H__
-#define __DALI_TOOLKIT_INTERNAL_CUSTOM_CHECK_ACTOR_H__
-
-/*
- * 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 <dali/public-api/animation/animation.h>
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/control-impl.h>
-#include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
-
-namespace Dali
-{
-
-namespace Toolkit
-{
-
-namespace Internal
-{
-
-class RotatingSelector;
-
-
-/**
- * RotatingSelector is a custom control for text aligning and multiline support
- */
-class RotatingSelector : public Control
-{
-public:
-
- /**
- * Create a new RotatingSelector.
- * @return A smart-pointer to the newly allocated RotatingSelector.
- */
- static Dali::Toolkit::RotatingSelector New(Actor& unSelectedActor, Actor& selectedActor);
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::SetSelected()
- */
- void SetSelected( bool toggle );
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::IsSelected()
- */
- bool IsSelected() const {return mSelected;}
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::SetSelectedActor()
- */
- void SetSelectedActor( Actor& selectedActor );
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::GetSelectedActor()
- */
- Actor GetSelectedActor();
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::SetUnSelectedActor()
- */
- void SetUnSelectedActor( Actor& unSelectedActor );
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::GetUnSelectedActor()
- */
- Actor GetUnSelectedActor();
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::SetSelectable()
- */
- void SetSelectable( bool selectable );
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::IsSelectable()
- */
- bool IsSelectable()const {return mSelectable;}
-
- /**
- * @copydoc Dali::Toolkit::RotatingSelector::SelectedSignal()
- */
- Toolkit::RotatingSelector::SelectedSignalV2& SelectedSignal();
-
- /**
- * Connects a callback function with the object's signals.
- * @param[in] object The object providing the signal.
- * @param[in] tracker Used to disconnect the signal.
- * @param[in] signalName The signal to connect to.
- * @param[in] functor A newly allocated FunctorDelegate.
- * @return True if the signal was connected.
- * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
- */
- static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor );
-
-private: // From Control
-
- /**
- * @copydoc Toolkit::Control::OnInitialize()
- */
- virtual void OnInitialize();
-
- /**
- * @copydoc Toolkit::Control::OnTouchEvent(const TouchEvent& event)
- */
- virtual bool OnTouchEvent( const TouchEvent& event );
-
-protected:
-
- /**
- * Construct a new RotatingSelector.
- */
- RotatingSelector();
-
- /**
- * A reference counted object may only be deleted by calling Unreference()
- */
- virtual ~RotatingSelector();
-
-private:
-
- // Undefined
- RotatingSelector(const RotatingSelector&);
-
- // Undefined
- RotatingSelector& operator=(const RotatingSelector& rhs);
-
- void ToggleAndAnimateSelection();
- void AnimationCompleted( Animation& animation );
-
-
-private:
-
- Actor mContainer;
- bool mSelected;
- bool mSelectable;
-
- Actor mUnSelectedActor;
- Actor mSelectedActor;
- bool mPressed;
-
- Animation mRotateAnimation;
-
- bool mIsAnimating;
-
- Toolkit::RotatingSelector::SelectedSignalV2 mCheckedSignalV2;
-};
-
-} // namespace Internal
-
-// Helpers for public-api forwarding methods
-
-inline Toolkit::Internal::RotatingSelector& GetImpl(Toolkit::RotatingSelector& RotatingSelector)
-{
- DALI_ASSERT_ALWAYS(RotatingSelector);
-
- Dali::RefObject& handle = RotatingSelector.GetImplementation();
-
- return static_cast<Toolkit::Internal::RotatingSelector&>(handle);
-}
-
-inline const Toolkit::Internal::RotatingSelector& GetImpl(const Toolkit::RotatingSelector& RotatingSelector)
-{
- DALI_ASSERT_ALWAYS(RotatingSelector);
-
- const Dali::RefObject& handle = RotatingSelector.GetImplementation();
-
- return static_cast<const Toolkit::Internal::RotatingSelector&>(handle);
-}
-
-} // namespace Toolkit
-
-} // namespace Dali
-
-#endif // __DALI_TOOLKIT_INTERNAL_ITEM_VIEW_H__
$(toolkit_optional_src_dir)/controls/page-turn-view/page-turn-view-impl.cpp \
$(toolkit_optional_src_dir)/controls/page-turn-view/page-turn-portrait-view-impl.cpp \
$(toolkit_optional_src_dir)/controls/page-turn-view/page-turn-landscape-view-impl.cpp \
- $(toolkit_optional_src_dir)/controls/selectors/rotating-selector-impl.cpp \
$(toolkit_optional_src_dir)/controls/shadow-view/shadow-view-impl.cpp \
$(toolkit_optional_src_dir)/controls/slider/slider-impl.cpp \
$(toolkit_optional_src_dir)/controls/super-blur-view/super-blur-view-impl.cpp \
+++ /dev/null
-/*
- * 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.
- *
- */
-
-#include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
-#include <dali-toolkit/internal/controls/selectors/rotating-selector-impl.h>
-
-namespace Dali
-{
-
-namespace Toolkit
-{
-
-const char* const RotatingSelector::SIGNAL_CHECKED = "checked";
-
-RotatingSelector::RotatingSelector()
-{
-}
-
-RotatingSelector::RotatingSelector( const RotatingSelector& rotatingSelector )
-: Control( rotatingSelector )
-{
-}
-
-RotatingSelector& RotatingSelector::operator=( const RotatingSelector& rotatingSelector )
-{
- if( &rotatingSelector != this )
- {
- Control::operator=( rotatingSelector );
- }
-
- return *this;
-}
-
-
-RotatingSelector::~RotatingSelector()
-{
-}
-
-RotatingSelector RotatingSelector::New(Actor& unSelectedActor, Actor& selectedActor)
-{
- return Internal::RotatingSelector::New(unSelectedActor, selectedActor);
-}
-
-RotatingSelector RotatingSelector::DownCast( BaseHandle handle )
-{
- return Control::DownCast<RotatingSelector, Internal::RotatingSelector>(handle);
-}
-
-void RotatingSelector::SetSelected( bool checked )
-{
- Dali::Toolkit::GetImpl( *this ).SetSelected( checked );
-}
-
-bool RotatingSelector::IsSelected() const
-{
- return Dali::Toolkit::GetImpl( *this ).IsSelected();
-}
-
-void RotatingSelector::SetSelectedActor( Actor& selectedActor )
-{
- Dali::Toolkit::GetImpl( *this ).SetSelectedActor( selectedActor );
-}
-
-Actor RotatingSelector::GetSelectedActor()
-{
- return Dali::Toolkit::GetImpl( *this ).GetSelectedActor();
-}
-
-void RotatingSelector::SetUnSelectedActor( Actor& unSelectedActor )
-{
- Dali::Toolkit::GetImpl( *this ).SetUnSelectedActor( unSelectedActor );
-}
-
-Actor RotatingSelector::GetUnSelectedActor()
-{
- return Dali::Toolkit::GetImpl( *this ).GetUnSelectedActor();
-}
-
-void RotatingSelector::SetSelectable( bool selectable )
-{
- Dali::Toolkit::GetImpl( *this ).SetSelectable( selectable );
-}
-
-bool RotatingSelector::IsSelectable()const
-{
- return Dali::Toolkit::GetImpl( *this ).IsSelectable();
-}
-
-RotatingSelector::SelectedSignalV2& RotatingSelector::SelectedSignal()
-{
- return Dali::Toolkit::GetImpl( *this ).SelectedSignal();
-}
-
-RotatingSelector::RotatingSelector( Internal::RotatingSelector& implementation )
-: Control(implementation)
-{
-}
-
-RotatingSelector::RotatingSelector( Dali::Internal::CustomActor* internal )
-: Control( internal )
-{
- VerifyCustomActorPointer<Internal::RotatingSelector>(internal);
-}
-
-} // namespace Toolkit
-
-} // namespace Dali
+++ /dev/null
-#ifndef __DALI_TOOLKIT_CUSTOM_CHECK_ACTOR_H__
-#define __DALI_TOOLKIT_CUSTOM_CHECK_ACTOR_H__
-
-/*
- * 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.
- *
- */
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/control.h>
-
-namespace Dali
-{
-
-namespace Toolkit
-{
-
-namespace Internal DALI_INTERNAL
-{
-class RotatingSelector;
-}
-
-/**
- * RotatingSelector is a simple control to switch between two states (selected/unselected). A signal is emitted when the selector switches between
- * the two states. The control has two faces one behind the other, The control is rotated while switching between the two states
- */
-class DALI_IMPORT_API RotatingSelector : public Control
-{
-public:
- //Signal Names
- static const char* const SIGNAL_CHECKED;
-
-public:
-
- /**
- * Create an uninitialized RotatingSelector; this can be initialized with RotatingSelector::New()
- * Calling member functions with an uninitialized Dali::Object is not allowed.
- */
- RotatingSelector();
-
- /**
- * Copy constructor.
- */
- RotatingSelector( const RotatingSelector& rotatingSelector );
-
- /**
- * Assignment operator.
- */
- RotatingSelector& operator=( const RotatingSelector& rotatingSelector );
-
- /**
- * @brief Destructor
- *
- * This is non-virtual since derived Handle types must not contain data or virtual methods.
- */
- ~RotatingSelector();
-
- /**
- * Create an initialized RotatingSelector.
- * @return A handle to a newly allocated Dali resource.
- */
- static RotatingSelector New(Actor& unSelectedActor, Actor& selectedActor);
-
- /**
- * Downcast an Object handle to RotatingSelector. If handle points to a RotatingSelector the
- * downcast produces valid handle. If not the returned handle is left uninitialized.
- * @param[in] handle Handle to an object
- * @return handle to a RotatingSelector or an uninitialized handle
- */
- static RotatingSelector DownCast( BaseHandle handle );
-
- /**
- * Toggles the selection status of the selector.
- * @param[in] toggle true for selected and false for un selected.
- */
- void SetSelected( bool toggle );
-
- /**
- * Queries the selection status of the selector.
- * @return true if the selector is selected otherwise false
- */
- bool IsSelected() const;
-
- /**
- * Sets the actor to be displayed by the selector when it is in selected state
- * @param[in] selectedActor The actor to display
- */
- void SetSelectedActor( Actor& selectedActor );
-
- /**
- * Gets the actor to be displayed by the selector when it is in selected state
- * @return A handle to the selected actor. If the selected actor has not been set, this handle will be invalid.
- */
- Actor GetSelectedActor();
-
- /**
- * Sets the actor to be displayed by the selector when it is in unselected state
- * @param[in] unSelectedActor The actor to display
- */
- void SetUnSelectedActor( Actor& unSelectedActor );
-
- /**
- * Gets the actor to be displayed by the selector when it is in unselected state
- * @return A handle to Actor. If the unselected actor has not been set, this handle will be invalid.
- */
- Actor GetUnSelectedActor();
-
- /**
- * Sets whether the Selector is selectable
- * @param[in] selectable true to be able to toggle the selector false otherwise
- */
- void SetSelectable( bool selectable );
-
- /**
- * Queries whether the Selector is selectable
- * @return true if the selector is selectable, false otherwise
- */
- bool IsSelectable()const;
-
-public: //Signals
-
- // RotatingSelector Toggled
- typedef SignalV2< void( RotatingSelector, bool ) > SelectedSignalV2;
-
- /**
- * Signal emitted when the rotating selector is in switched to a selected state.
- */
- SelectedSignalV2& SelectedSignal();
-
-public: // Not intended for application developers
-
- /**
- * Creates a handle using the Toolkit::Internal implementation.
- * @param[in] implementation The Control implementation.
- */
- DALI_INTERNAL RotatingSelector( Internal::RotatingSelector& implementation );
-
- /**
- * Allows the creation of this Control from an Internal::CustomActor pointer.
- * @param[in] internal A pointer to the internal CustomActor.
- */
- explicit DALI_INTERNAL RotatingSelector( Dali::Internal::CustomActor* internal );
-};
-
-} // namespace Toolkit
-
-} // namespace Dali
-
-#endif // __DALI_TOOLKIT_CUSTOM_CHECK_ACTOR_H__
$(public_api_optional_src_dir)/controls/page-turn-view/page-factory.cpp \
$(public_api_optional_src_dir)/controls/page-turn-view/page-turn-portrait-view.cpp \
$(public_api_optional_src_dir)/controls/page-turn-view/page-turn-landscape-view.cpp \
- $(public_api_optional_src_dir)/controls/selectors/rotating-selector.cpp \
$(public_api_optional_src_dir)/controls/shadow-view/shadow-view.cpp \
$(public_api_optional_src_dir)/controls/slider/slider.cpp \
$(public_api_optional_src_dir)/controls/super-blur-view/super-blur-view.cpp \
public_api_optional_slider_header_files = \
$(public_api_optional_src_dir)/controls/slider/slider.h
-public_api_optional_selectors_header_files = \
- $(public_api_optional_src_dir)/controls/selectors/rotating-selector.h
-
public_api_optional_shadow_view_header_files = \
$(public_api_optional_src_dir)/controls/shadow-view/shadow-view.h