Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / controls / FUiCtrl_SplitPanelModel.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://floralicense.org/license/
10 //
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.
16 //
17 /**
18  * @file                FUiCtrl_SplitPanelModel.cpp
19  * @brief               This is the implementation file for the _SplitPanelModel class.
20  */
21
22 #include <FBaseErrorDefine.h>
23 #include <FBaseSysLog.h>
24 #include "FUiCtrl_SplitPanelModel.h"
25
26
27 namespace Tizen { namespace Ui { namespace Controls
28 {
29
30 _SplitPanelModel::_SplitPanelModel(void)
31         : __dividerStyle(SPLIT_PANEL_DIVIDER_STYLE_FIXED)
32         , __isPaneMaximized(false)
33         , __maximizedPaneOrder(SPLIT_PANEL_PANE_ORDER_FIRST)
34 {
35 }
36
37 _SplitPanelModel::~_SplitPanelModel(void)
38 {
39 }
40
41 result
42 _SplitPanelModel::Construct(void)
43 {
44         return E_SUCCESS;
45 }
46
47 void
48 _SplitPanelModel::SetDividerStyle(SplitPanelDividerStyle splitPanelDividerStyle)
49 {
50         __dividerStyle = splitPanelDividerStyle;
51 }
52
53 SplitPanelDividerStyle
54 _SplitPanelModel::GetDividerStyle(void) const
55 {
56         return __dividerStyle;
57 }
58
59 void
60 _SplitPanelModel::SetPaneMaximumState(bool bMaximum)
61 {
62         __isPaneMaximized = bMaximum;
63 }
64
65 bool
66 _SplitPanelModel::GetPaneMaximumState(void) const
67 {
68         return __isPaneMaximized;
69 }
70
71 void
72 _SplitPanelModel::SetMaximizedPaneOrder(SplitPanelPaneOrder paneOrder)
73 {
74         __maximizedPaneOrder = paneOrder;
75 }
76
77 SplitPanelPaneOrder
78 _SplitPanelModel::GetMaximizedPaneOrder(void) const
79 {
80         return __maximizedPaneOrder;
81 }
82
83 }}} // Tizen::Ui::Controls