equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // A simple application containing a single view with the text "Child I !" drawn on it. |
14 // A simple application containing a single view with the text "Child I !" drawn on it. |
15 // |
15 // |
16 // |
16 // |
17 |
|
18 |
|
19 |
17 |
20 /** |
18 /** |
21 @file |
19 @file |
22 @internalComponent - Internal Symbian test code |
20 @internalComponent - Internal Symbian test code |
23 */ |
21 */ |
26 |
24 |
27 #include <eikenv.h> |
25 #include <eikenv.h> |
28 #include <eikappui.h> |
26 #include <eikappui.h> |
29 #include <eikapp.h> |
27 #include <eikapp.h> |
30 #include <eikdoc.h> |
28 #include <eikdoc.h> |
31 #include <eikmenup.h> |
29 #include <mw/eikmenup.h> |
32 #include <eikstart.h> |
30 #include <eikstart.h> |
33 |
31 |
34 #include <eikon.hrh> |
32 #include <mw/eikon.hrh> |
35 //#include <apparctestserver.h> |
33 //#include <apparctestserver.h> |
36 |
34 |
37 #include <ChildI.rsg> |
35 #include <childi.rsg> |
38 #include "ChildI.hrh" |
36 #include "ChildI.hrh" |
39 //#include "T_ProcStep.h" |
37 //#include "T_ProcStep.h" |
40 //////////////////////////////////////////////////////////////////////// |
38 // |
41 // |
39 // |
42 // CExampleAppView |
40 // CExampleAppView |
43 // |
41 // |
44 //////////////////////////////////////////////////////////////////////// |
42 // |
45 class CExampleAppView : public CCoeControl |
43 class CExampleAppView : public CCoeControl |
46 { |
44 { |
47 public: |
45 public: |
48 static CExampleAppView* NewL(const TRect& aRect); |
46 static CExampleAppView* NewL(const TRect& aRect); |
49 CExampleAppView(); |
47 CExampleAppView(); |
141 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
139 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
142 // Finished using the font |
140 // Finished using the font |
143 gc.DiscardFont(); |
141 gc.DiscardFont(); |
144 } |
142 } |
145 |
143 |
146 //////////////////////////////////////////////////////////////////////// |
144 // |
147 // |
145 // |
148 // CExampleAppUi |
146 // CExampleAppUi |
149 // |
147 // |
150 //////////////////////////////////////////////////////////////////////// |
148 // |
151 class CExampleAppUi : public CEikAppUi |
149 class CExampleAppUi : public CEikAppUi |
152 { |
150 { |
153 public: |
151 public: |
154 void ConstructL(); |
152 void ConstructL(); |
155 ~CExampleAppUi(); |
153 ~CExampleAppUi(); |
221 Exit(); |
219 Exit(); |
222 break; |
220 break; |
223 } |
221 } |
224 } |
222 } |
225 |
223 |
226 //////////////////////////////////////////////////////////////////////// |
224 // |
227 // |
225 // |
228 // CExampleDocument |
226 // CExampleDocument |
229 // |
227 // |
230 //////////////////////////////////////////////////////////////////////// |
228 // |
231 |
229 |
232 class CExampleDocument : public CEikDocument |
230 class CExampleDocument : public CEikDocument |
233 { |
231 { |
234 public: |
232 public: |
235 static CExampleDocument* NewL(CEikApplication& aApp); |
233 static CExampleDocument* NewL(CEikApplication& aApp); |
257 CEikAppUi* CExampleDocument::CreateAppUiL() |
255 CEikAppUi* CExampleDocument::CreateAppUiL() |
258 { |
256 { |
259 return new(ELeave) CExampleAppUi; |
257 return new(ELeave) CExampleAppUi; |
260 } |
258 } |
261 |
259 |
262 //////////////////////////////////////////////////////////////////////// |
260 // |
263 // |
261 // |
264 // CExampleApplication |
262 // CExampleApplication |
265 // |
263 // |
266 //////////////////////////////////////////////////////////////////////// |
264 // |
267 |
265 |
268 // The entry point for the application code. It creates |
266 // The entry point for the application code. It creates |
269 // an instance of the CApaApplication derived |
267 // an instance of the CApaApplication derived |
270 // class, CExampleApplication. |
268 // class, CExampleApplication. |
271 // |
269 // |