2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
18 * @file FUiCtrl_TabModel.cpp
19 * @brief This is the implementation file for the _TabModel class.
23 #include <FBaseErrorDefine.h>
24 #include <FBaseSysLog.h>
25 #include "FUiCtrl_TabModel.h"
27 namespace Tizen { namespace Ui { namespace Controls {
29 _TabModel::_TabModel(void)
30 : __selectedItemIndex(0)
31 , __pressedItemIndex(-1)
32 , __firstDrawnItemIndex(-1)
33 , __isEditModeEnabled(true)
38 _TabModel::~_TabModel(void)
44 _TabModel::Construct(void)
53 _TabModel::SetSelectedItemIndex(int index)
55 __selectedItemIndex = index;
60 _TabModel::GetSelectedItemIndex(void) const
62 return __selectedItemIndex;
67 _TabModel::SetPressedItemIndex(int index)
69 __pressedItemIndex = index;
74 _TabModel::GetPressedItemIndex(void) const
76 return __pressedItemIndex;
81 _TabModel::SetFirstDrawnItemIndex(int index)
83 __firstDrawnItemIndex = index;
88 _TabModel::GetFirstDrawnItemIndex(void) const
90 return __firstDrawnItemIndex;
95 _TabModel::SetEditModeEnabled(bool enable)
97 __isEditModeEnabled = enable;
102 _TabModel::IsEditModeEnabled(void) const
104 return __isEditModeEnabled;
107 }}} // Tizen::Ui::Controls