1 #ifndef __DALI_TOOLKIT_INTERNAL_NAVIGATION_TOOL_BAR_H__
2 #define __DALI_TOOLKIT_INTERNAL_NAVIGATION_TOOL_BAR_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
20 #include <dali/dali.h>
21 #include <dali-toolkit/public-api/controls/table-view/table-view.h>
22 #include <dali-toolkit/public-api/controls/text-view/text-view.h>
23 #include <dali-toolkit/internal/controls/navigation-frame/navigation-control-impl.h>
24 #include <dali-toolkit/internal/controls/navigation-frame/navigation-bar.h>
25 #include <dali-toolkit/public-api/controls/navigation-frame/page.h>
37 * The tool bar locates in the bottom of the frame where other controls (such as PushButton ) could be placed.
38 * Controls could be added into three groups: HorizontalLeft, HorizontalCenter or HorizontalRight.
39 * The left and right groups can only have one control maximum each, while the central group can have multiple controls.
40 * It is also fine to have no control in each group.
41 * If the current NavigationOtem provides no control for the bar at all, the bar is hidden.
42 * +----------------------------------------+
43 * | +-+ +-----+ +-----+ +-+ |
44 * | +-+ +-----+ +-----+ +-+ |
45 * +----------------------------------------+
47 class NavigationToolBar : public NavigationBar
51 NavigationToolBar(NavigationControl& naviControl,
52 Toolkit::NaviToolBarStyle toolBarStylePortrait,
53 Toolkit::NaviToolBarStyle toolBarStyleLandscape );
58 * @copydoc Toolkit::Internal::NavigationBar::Update
60 void Update( Toolkit::Page page );
63 * @copydoc Toolkit::Internal::NavigationBar::OrientationUpdate
65 void OrientationUpdate( bool isPortrait );
70 * Set a control onto the navigation tool bar when the page is on the top.
71 * @param[in] control The control on the navigation tool bar.
72 * @param[in] alignment The position of the control, can be HorizontalLeft/HorizontalRight/HorizontalCenter.
74 void AddControl(Actor actor, Toolkit::Alignment::Type alignment);
77 * Set the fixed width and height to the cells of the layout
78 * These sizes need to be updated when the orientation is changing.
84 Toolkit::NaviToolBarStyle mStylePortrait;
85 Toolkit::NaviToolBarStyle mStyleLandscape;
86 const Toolkit::NaviToolBarStyle* mCurrentStyle;
88 Toolkit::TableView mLeftLayout;
89 Toolkit::TableView mRightLayout;
90 Toolkit::TableView mCentralLayout;
95 } // namespace Internal
97 } // namespace Toolkit
101 #endif /* __DALI_TOOLKIT_INTERNAL_NAVIGATION_TOOL_BAR_H__ */