bintools/rcomp/tsrc/Tgb18030/Tgb18030_AppUi.cpp
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 1997-2009 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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "Tgb18030.h"
       
    20 
       
    21 //             The second phase constructor of the application UI class.
       
    22 //             The application UI creates and owns the one and only view.
       
    23 // 
       
    24 void CTgb18030AppUi::ConstructL()
       
    25     {
       
    26 				// BaseConstructL() completes the UI framework's
       
    27 	           // construction of the App UI.
       
    28     BaseConstructL();
       
    29 	iAppView = CTgb18030AppView::NewL(ClientRect());
       
    30 	}
       
    31 
       
    32 
       
    33 //             The app Ui owns the two views and is. 
       
    34 //             therefore, responsible for destroying them
       
    35 //
       
    36 CTgb18030AppUi::~CTgb18030AppUi()
       
    37 	{
       
    38 	delete iAppView;
       
    39 	}
       
    40 
       
    41 
       
    42 void CTgb18030AppUi::HandleCommandL(TInt aCommand)
       
    43 	{
       
    44 	switch (aCommand)
       
    45 		{
       
    46 		      // Just issue simple info messages to show that
       
    47 		      // the menu items have been selected
       
    48 	case ETgb18030Item0:
       
    49 		((CTgb18030AppView*)iAppView)->ChangeEditorText();
       
    50 		break;
       
    51 
       
    52 	
       
    53 	case ETgb18030Item1:
       
    54 		break;
       
    55 	
       
    56 		
       
    57 	case EEikCmdExit: 
       
    58 		Exit();
       
    59 		break;
       
    60 		}
       
    61 	}
       
    62