3 // Copyright (c) 2012 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.
20 #include "BasicAppFrame.h"
23 using namespace Tizen::Base;
24 using namespace Tizen::Ui;
25 using namespace Tizen::Ui::Controls;
27 BasicAppFrame::BasicAppFrame(void)
32 BasicAppFrame::~BasicAppFrame(void)
37 BasicAppFrame::Initialize(int panelId)
39 result r = Frame::Construct();
46 BasicAppFrame::OnInitializing(void)
49 MainForm* pMainForm = new (std::nothrow) MainForm();
50 result r = pMainForm->Initialize(__panelId);
52 // Add the form to the frame
53 AddControl(*pMainForm);
55 // Set the current form
56 SetCurrentForm(*pMainForm);
59 pMainForm->Invalidate(true);
65 BasicAppFrame::OnTerminating(void)