2 // Copyright (c) 2012 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.
18 * @file PhnTabContacts.cpp
19 * @brief The contacts Tab
22 #include "PhnTabContacts.h"
24 using namespace Tizen::Base::Collection;
25 using namespace Tizen::Graphics;
26 using namespace Tizen::Ui;
27 using namespace Tizen::Ui::Controls;
28 using namespace Tizen::Ui::Scenes;
30 static const wchar_t* IDL_PANEL_CONTACTS = L"IDL_PANEL_CONTACTS";
32 DialTabContacts::DialTabContacts(void)
36 DialTabContacts::~DialTabContacts(void)
41 DialTabContacts::Initialize(void)
43 result r = Construct(IDL_PANEL_CONTACTS);
51 DialTabContacts::OnInitializing(void)
56 const Form* pForm = dynamic_cast<Form*>(GetParent());
59 RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(pForm->GetLandscapeLayoutN());
60 if (pRelativeLayout != null)
62 pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
63 pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
64 delete pRelativeLayout;
66 pRelativeLayout = dynamic_cast<RelativeLayout*>(pForm->GetPortraitLayoutN());
67 if (pRelativeLayout != null)
69 pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
70 pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
71 delete pRelativeLayout;
78 DialTabContacts::OnTerminating(void)
85 DialTabContacts::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
90 DialTabContacts::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)