|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: implement of class CpeninputsettingAppView |
|
15 * |
|
16 */ |
|
17 #include <coemain.h> |
|
18 #include <peninputsetting.rsg> |
|
19 |
|
20 #include "peninputsettingAppView.h" |
|
21 |
|
22 // Standard construction sequence |
|
23 CpeninputsettingAppView* CpeninputsettingAppView::NewL(const TRect& aRect) |
|
24 { |
|
25 CpeninputsettingAppView* self = CpeninputsettingAppView::NewLC(aRect); |
|
26 CleanupStack::Pop(self); |
|
27 return self; |
|
28 } |
|
29 |
|
30 CpeninputsettingAppView* CpeninputsettingAppView::NewLC(const TRect& aRect) |
|
31 { |
|
32 CpeninputsettingAppView* self = new (ELeave) CpeninputsettingAppView; |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(aRect); |
|
35 return self; |
|
36 } |
|
37 |
|
38 CpeninputsettingAppView::CpeninputsettingAppView() |
|
39 { |
|
40 // no implementation required |
|
41 } |
|
42 |
|
43 CpeninputsettingAppView::~CpeninputsettingAppView() |
|
44 { |
|
45 // no implementation required |
|
46 } |
|
47 |
|
48 void CpeninputsettingAppView::ConstructL(const TRect& aRect) |
|
49 { |
|
50 // Create a window for this application view |
|
51 CreateWindowL(); |
|
52 |
|
53 // Set the windows size |
|
54 SetRect(aRect); |
|
55 |
|
56 // Activate the window, which makes it ready to be drawn |
|
57 ActivateL(); |
|
58 } |
|
59 |
|
60 // Draw this application's view to the screen |
|
61 void CpeninputsettingAppView::Draw(const TRect& /*aRect*/) const |
|
62 { |
|
63 // Get the standard graphics context |
|
64 CWindowGc& gc = SystemGc(); |
|
65 |
|
66 // Gets the control's extent |
|
67 TRect rect = Rect(); |
|
68 |
|
69 // Clears the screen |
|
70 gc.Clear(rect); |
|
71 } |
|
72 |
|
73 |