X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftool-bar%2Ftool-bar-impl.cpp;h=1dc683b67fe84ae666958819894aec2470c54eb0;hb=31df2b9472ccbe0ae460a958535be8ef790c96f2;hp=0bcfe26cf27ee841814ab895f51681089ce1eddf;hpb=fc72d9dfdefd7434202ed73ac579d425279947f3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp b/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp index 0bcfe26..1dc683b 100644 --- a/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp +++ b/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp @@ -19,14 +19,13 @@ #include "tool-bar-impl.h" // EXTERNAL INCLUDES -#include +#include #include #include -#include +#include // INTERNAL INCLUDES #include -#include namespace Dali { @@ -57,7 +56,7 @@ Toolkit::ToolBar ToolBar::New() // Create the implementation, temporarily owned on stack IntrusivePtr< ToolBar > internalToolBar = new ToolBar(); - // Pass ownership to Toolkit::View + // Pass ownership to Toolkit::Toolbar Toolkit::ToolBar toolBar( *internalToolBar ); // Second-phase init of the implementation @@ -67,25 +66,6 @@ Toolkit::ToolBar ToolBar::New() return toolBar; } -void ToolBar::SetBackground( Actor background ) -{ - Lock lock( mInitializing ); - - // ToolBar image - background.SetParentOrigin( Dali::ParentOrigin::TOP_CENTER ); - background.SetAnchorPoint( Dali::AnchorPoint::TOP_CENTER ); - background.SetSize( Vector2( mToolBarSize.width, mToolBarSize.height ) ); - - RenderableActor renderableActor = RenderableActor::DownCast( background ); - if ( renderableActor ) - { - renderableActor.SetSortModifier( 1.f ); - } - - Self().Add( background ); - mBackground = background; -} - void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding ) { // Work out index and update bases and offsets for further insertions. @@ -296,7 +276,7 @@ void ToolBar::RemoveControl( Actor control ) } ToolBar::ToolBar() -: Control( CONTROL_BEHAVIOUR_NONE ), +: Control( ControlBehaviour( ACTOR_BEHAVIOUR_NONE ) ), mLayout(), mLeftOffset( 0 ), mCenterBase( 1 ), @@ -356,12 +336,6 @@ void ToolBar::OnControlChildAdd(Actor& child) // actor is in mLayout not in Self(). } -void ToolBar::OnControlSizeSet( const Vector3& targetSize ) -{ - mToolBarSize = targetSize; - mBackground.SetSize( Vector2( mToolBarSize.width, mToolBarSize.height ) ); -} - } // namespace Internal } // namespace Toolkit