localisation/apparchitecture/tef/ChildII_Main.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     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 II !" drawn on it.
    14 // A simple application containing a single view with the text "Child II !" 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 
    33 
    36 #include <ChildII.rsg>
    34 #include <childii.rsg>
    37 #include "ChildII.hrh"
    35 #include "ChildII.hrh"
    38 
    36 
    39 ////////////////////////////////////////////////////////////////////////
    37 //
    40 //
    38 //
    41 // CExampleAppView
    39 // CExampleAppView
    42 //
    40 //
    43 ////////////////////////////////////////////////////////////////////////
    41 //
    44 class CExampleAppView : public CCoeControl
    42 class CExampleAppView : public CCoeControl
    45     {
    43     {
    46 public:
    44 public:
    47 	static CExampleAppView* NewL(const TRect& aRect);
    45 	static CExampleAppView* NewL(const TRect& aRect);
    48 	CExampleAppView();
    46 	CExampleAppView();
   137 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
   135 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
   138                // Finished using the font
   136                // Finished using the font
   139 	gc.DiscardFont();
   137 	gc.DiscardFont();
   140 	}
   138 	}
   141 
   139 
   142 ////////////////////////////////////////////////////////////////////////
   140 //
   143 //
   141 //
   144 // CExampleAppUi
   142 // CExampleAppUi
   145 //
   143 //
   146 ////////////////////////////////////////////////////////////////////////
   144 //
   147 class CExampleAppUi : public CEikAppUi
   145 class CExampleAppUi : public CEikAppUi
   148     {
   146     {
   149 public:
   147 public:
   150     void ConstructL();
   148     void ConstructL();
   151 	~CExampleAppUi();
   149 	~CExampleAppUi();
   216 		Exit();
   214 		Exit();
   217 		break;
   215 		break;
   218 		}
   216 		}
   219 	}
   217 	}
   220 
   218 
   221 ////////////////////////////////////////////////////////////////////////
   219 //
   222 //
   220 //
   223 // CExampleDocument
   221 // CExampleDocument
   224 //
   222 //
   225 ////////////////////////////////////////////////////////////////////////
   223 //
   226 class CExampleDocument : public CEikDocument
   224 class CExampleDocument : public CEikDocument
   227 	{
   225 	{
   228 public:
   226 public:
   229 	static CExampleDocument* NewL(CEikApplication& aApp);
   227 	static CExampleDocument* NewL(CEikApplication& aApp);
   230 	CExampleDocument(CEikApplication& aApp);
   228 	CExampleDocument(CEikApplication& aApp);
   252 CEikAppUi* CExampleDocument::CreateAppUiL()
   250 CEikAppUi* CExampleDocument::CreateAppUiL()
   253 	{
   251 	{
   254     return new(ELeave) CExampleAppUi;
   252     return new(ELeave) CExampleAppUi;
   255 	}
   253 	}
   256 
   254 
   257 ////////////////////////////////////////////////////////////////////////
   255 //
   258 //
   256 //
   259 // CExampleApplication
   257 // CExampleApplication
   260 //
   258 //
   261 ////////////////////////////////////////////////////////////////////////
   259 //
   262 
   260 
   263 class CExampleApplication : public CEikApplication
   261 class CExampleApplication : public CEikApplication
   264 	{
   262 	{
   265 private: 
   263 private: 
   266 	           // Inherited from class CApaApplication
   264 	           // Inherited from class CApaApplication