Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / controls / selectors / rotating-selector.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 #include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
18 #include <dali-toolkit/internal/controls/selectors/rotating-selector-impl.h>
19
20 namespace Dali
21 {
22
23 namespace Toolkit
24 {
25
26 const char* const RotatingSelector::SIGNAL_CHECKED = "checked";
27
28 RotatingSelector::RotatingSelector()
29 {
30 }
31
32 RotatingSelector::RotatingSelector( const RotatingSelector& rotatingSelector )
33 : Control( rotatingSelector )
34 {
35 }
36
37 RotatingSelector& RotatingSelector::operator=( const RotatingSelector& rotatingSelector )
38 {
39   if( &rotatingSelector != this )
40   {
41     Control::operator=( rotatingSelector );
42   }
43
44   return *this;
45 }
46
47
48 RotatingSelector::~RotatingSelector()
49 {
50 }
51
52 RotatingSelector RotatingSelector::New(Actor& unSelectedActor, Actor& selectedActor)
53 {
54   return Internal::RotatingSelector::New(unSelectedActor, selectedActor);
55 }
56
57 RotatingSelector RotatingSelector::DownCast( BaseHandle handle )
58 {
59   return Control::DownCast<RotatingSelector, Internal::RotatingSelector>(handle);
60 }
61
62 void RotatingSelector::SetSelected( bool checked )
63 {
64   Dali::Toolkit::GetImpl( *this ).SetSelected( checked );
65 }
66
67 bool RotatingSelector::IsSelected() const
68 {
69   return Dali::Toolkit::GetImpl( *this ).IsSelected();
70 }
71
72 void RotatingSelector::SetSelectedActor( Actor& selectedActor )
73 {
74   Dali::Toolkit::GetImpl( *this ).SetSelectedActor( selectedActor );
75 }
76
77 Actor RotatingSelector::GetSelectedActor()
78 {
79   return Dali::Toolkit::GetImpl( *this ).GetSelectedActor();
80 }
81
82 void RotatingSelector::SetUnSelectedActor( Actor& unSelectedActor )
83 {
84   Dali::Toolkit::GetImpl( *this ).SetUnSelectedActor( unSelectedActor );
85 }
86
87 Actor RotatingSelector::GetUnSelectedActor()
88 {
89   return Dali::Toolkit::GetImpl( *this ).GetUnSelectedActor();
90 }
91
92 void RotatingSelector::SetSelectable( bool selectable )
93 {
94   Dali::Toolkit::GetImpl( *this ).SetSelectable( selectable );
95 }
96
97 bool RotatingSelector::IsSelectable()const
98 {
99   return Dali::Toolkit::GetImpl( *this ).IsSelectable();
100 }
101
102 RotatingSelector::SelectedSignalV2& RotatingSelector::SelectedSignal()
103 {
104   return Dali::Toolkit::GetImpl( *this ).SelectedSignal();
105 }
106
107 RotatingSelector::RotatingSelector( Internal::RotatingSelector& implementation )
108 : Control(implementation)
109 {
110 }
111
112 RotatingSelector::RotatingSelector( Dali::Internal::CustomActor* internal )
113 : Control( internal )
114 {
115   VerifyCustomActorPointer<Internal::RotatingSelector>(internal);
116 }
117
118 } // namespace Toolkit
119
120 } // namespace Dali