2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (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.
19 #include "BasicAppFrame.h"
22 using namespace Tizen::Base;
23 using namespace Tizen::Ui;
24 using namespace Tizen::Ui::Controls;
26 BasicAppFrame::BasicAppFrame(void)
31 BasicAppFrame::~BasicAppFrame(void)
36 BasicAppFrame::Initialize(int panelId)
38 result r = Frame::Construct();
45 BasicAppFrame::OnInitializing(void)
48 MainForm* pMainForm = new (std::nothrow) MainForm();
49 result r = pMainForm->Initialize(__panelId);
51 // Add the form to the frame
52 AddControl(pMainForm);
54 // Set the current form
55 SetCurrentForm(*pMainForm);
58 pMainForm->Invalidate(true);
64 BasicAppFrame::OnTerminating(void)