X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftool-bar%2Ftool-bar-impl.h;h=7caaed598ddff0183465f83b54f7979e9bd0c544;hb=7118f6784ab97ba8eb1dd1a5792bbe472d99b3c6;hp=9a58aecdf052a02d318685c368a22a1e6a4d05ea;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.h b/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.h index 9a58aec..7caaed5 100644 --- a/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.h +++ b/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.h @@ -1,28 +1,30 @@ #ifndef __DALI_TOOLKIT_INTERNAL_TOOL_BAR_H__ #define __DALI_TOOLKIT_INTERNAL_TOOL_BAR_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. -// - -#include +/* + * 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 // INTERNAL INCLUDES #include -#include #include +#include namespace Dali { @@ -39,7 +41,7 @@ namespace Internal * ToolBar is a control to create a tool bar. * @see Dali::Toolkit::ToolBar for more details. */ -class ToolBar : public ControlImpl +class ToolBar : public Control { public: @@ -50,21 +52,16 @@ public: static Toolkit::ToolBar New(); /** - * @copydoc Dali::Toolkit::View::SetBackground() - */ - void SetBackground( Actor background ); - - /** - * @copydoc Dali::Toolkit::View::AddControl() + * @copydoc Dali::Toolkit::ToolBar::AddControl() */ void AddControl( Dali::Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding ); /** - * @copydoc Dali::Toolkit::View::RemoveControl() + * @copydoc Dali::Toolkit::ToolBar::RemoveControl() */ void RemoveControl( Dali::Actor control ); -private: // From ControlImpl +private: // From Control /** * @copydoc Toolkit::Control::OnInitialize() @@ -75,17 +72,10 @@ private: // From ControlImpl * Adds a control using some default values (the control uses 10% of the tool bar space and is placed on the left group). * @param child The control to be added. * - * @see Toolkit::ControlImpl::OnControlChildAdd() + * @see Control::OnControlChildAdd() */ virtual void OnControlChildAdd(Actor& child); - /** - * Called when the tool-bar is relaid out. - * @param[in] size The size allocated. - * @param[in/out] container the container to put actors not handled. - */ - virtual void OnRelaidOut( Vector2 size, ActorSizeContainer& container ); - private: /** */