2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
23 #include <dali-toolkit/internal/controls/navigation-frame/page-impl.h>
31 const char* const Page::PROPERTY_TITLE = "title";
32 const char* const Page::PROPERTY_SUB_TITLE = "sub-title";
38 Page::Page( const Page& handle )
43 Page& Page::operator=( const Page& handle )
47 CustomActor::operator=( handle );
54 return Internal::Page::New();
57 Page Page::DownCast( BaseHandle handle )
59 return Control::DownCast<Page, Internal::Page>(handle);
62 Page::Page(Internal::Page& impl)
67 Page::Page( Dali::Internal::CustomActor* internal )
70 VerifyCustomActorPointer<Internal::Page>(internal);
73 void Page::SetTitle(const std::string& title)
75 GetImpl( *this ).SetTitle(title);
78 const std::string& Page::GetTitle() const
80 return GetImpl( *this ).GetTitle();
83 void Page::SetSubTitle(const std::string& subtitle)
85 GetImpl( *this ).SetSubTitle(subtitle);
88 const std::string& Page::GetSubTitle() const
90 return GetImpl( *this ).GetSubTitle();
93 void Page::SetTitleIcon( Actor titleIcon)
95 GetImpl( *this ).SetTitleIcon(titleIcon);
98 Actor Page::GetTitleIcon() const
100 return GetImpl( *this ).GetTitleIcon();
103 bool Page::AddControlToToolBar(Actor control, Alignment::Type alignment)
105 return GetImpl( *this ).AddControlToToolBar(control, alignment);
108 const Page::ControlOnBarContainer Page::GetControlsOnToolBar() const
110 return GetImpl( *this ).GetControlsOnToolBar();
113 bool Page::AddControlToTitleBar(Actor control)
115 return GetImpl( *this ).AddControlToTitleBar(control);
118 const ActorContainer Page::GetControlsOnTitleBar() const
120 return GetImpl( *this ).GetControlsOnTitleBar();
123 void Page::SetPopupMenu( Toolkit::Popup popupMenu )
125 GetImpl( *this ).SetPopupMenu( popupMenu );
128 Toolkit::Popup Page::GetPopupMenu() const
130 return GetImpl( *this ).GetPopupMenu();
133 } // namespace Toolkit