2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiCtrl_TabModel.cpp
20 * @brief This is the implementation file for the _TabModel class.
24 #include <FBaseErrorDefine.h>
25 #include <FBaseSysLog.h>
26 #include "FUiCtrl_TabModel.h"
28 namespace Tizen { namespace Ui { namespace Controls {
30 _TabModel::_TabModel(void)
31 : __selectedItemIndex(0)
32 , __pressedItemIndex(-1)
33 , __firstDrawnItemIndex(-1)
34 , __isEditModeEnabled(true)
39 _TabModel::~_TabModel(void)
45 _TabModel::Construct(void)
54 _TabModel::SetSelectedItemIndex(int index)
56 __selectedItemIndex = index;
61 _TabModel::GetSelectedItemIndex(void) const
63 return __selectedItemIndex;
68 _TabModel::SetPressedItemIndex(int index)
70 __pressedItemIndex = index;
75 _TabModel::GetPressedItemIndex(void) const
77 return __pressedItemIndex;
82 _TabModel::SetFirstDrawnItemIndex(int index)
84 __firstDrawnItemIndex = index;
89 _TabModel::GetFirstDrawnItemIndex(void) const
91 return __firstDrawnItemIndex;
96 _TabModel::SetEditModeEnabled(bool enable)
98 __isEditModeEnabled = enable;
103 _TabModel::IsEditModeEnabled(void) const
105 return __isEditModeEnabled;
108 }}} // Tizen::Ui::Controls