bintools/rcomp/tsrc/Tgb18030/Tgb18030.h
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 #ifndef __TGB18030_H
       
    19 #define __TGB18030_H
       
    20 
       
    21 #include <coeccntx.h>
       
    22 
       
    23 #include <eikenv.h>
       
    24 #include <eikappui.h>
       
    25 #include <eikapp.h>
       
    26 #include <eikdoc.h>
       
    27 #include <eikmenup.h>
       
    28 #include <eikon.hrh>
       
    29 #include <TXTRICH.H> 
       
    30 #include <eikrted.h>
       
    31 #include <TRcomp18030.rsg>
       
    32 #include "Tgb18030.hrh"
       
    33 
       
    34 
       
    35 
       
    36 ////////////////////////////////////////////////////////////////////////
       
    37 //
       
    38 // CTgb18030Application
       
    39 //
       
    40 ////////////////////////////////////////////////////////////////////////
       
    41 
       
    42 class CTgb18030Application : public CEikApplication
       
    43 	{
       
    44 private: 
       
    45 	           // Inherited from class CApaApplication
       
    46 	CApaDocument* CreateDocumentL();
       
    47 	TUid AppDllUid() const;
       
    48 	};
       
    49 
       
    50 ////////////////////////////////////////////////////////////////////////
       
    51 //
       
    52 // CTgb18030AppView
       
    53 //
       
    54 ////////////////////////////////////////////////////////////////////////
       
    55 class CTgb18030AppView : public CCoeControl
       
    56     {
       
    57 public:
       
    58 	static CTgb18030AppView* NewL(const TRect& aRect);
       
    59 	CTgb18030AppView();
       
    60 	~CTgb18030AppView();
       
    61     void ConstructL(const TRect& aRect);
       
    62     void ChangeEditorText();
       
    63 private:
       
    64 	void SizeChanged();
       
    65 	TInt CountComponentControls() const;
       
    66 	CCoeControl* ComponentControl(TInt aIndex) const;
       
    67 	virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
    68 			TEventCode aType);
       
    69            // Inherited from CCoeControl
       
    70 	void Draw(const TRect& /*aRect*/) const;
       
    71 
       
    72 private:
       
    73 	HBufC*  iTgb18030Text;
       
    74 	HBufC* iRcompTestText;
       
    75 	CEikRichTextEditor* iEditor;
       
    76     };
       
    77 
       
    78 
       
    79 ////////////////////////////////////////////////////////////////////////
       
    80 //
       
    81 // CTgb18030AppUi
       
    82 //
       
    83 ////////////////////////////////////////////////////////////////////////
       
    84 class CTgb18030AppUi : public CEikAppUi
       
    85     {
       
    86 public:
       
    87     void ConstructL();
       
    88 	~CTgb18030AppUi();
       
    89 
       
    90 private:
       
    91               // Inherirted from class CEikAppUi
       
    92 	void HandleCommandL(TInt aCommand);
       
    93 
       
    94 private:
       
    95 	CCoeControl* iAppView;
       
    96 	};
       
    97 
       
    98 
       
    99 ////////////////////////////////////////////////////////////////////////
       
   100 //
       
   101 // CTgb18030Document
       
   102 //
       
   103 ////////////////////////////////////////////////////////////////////////
       
   104 class CTgb18030Document : public CEikDocument
       
   105 	{
       
   106 public:
       
   107 	static CTgb18030Document* NewL(CEikApplication& aApp);
       
   108 	CTgb18030Document(CEikApplication& aApp);
       
   109 	void ConstructL();
       
   110 private: 
       
   111 	           // Inherited from CEikDocument
       
   112 	CEikAppUi* CreateAppUiL();
       
   113 	};
       
   114 
       
   115 
       
   116 #endif
       
   117