textinput/peninputgenericitut/inc/peninputgenericitutwindowmanager.h
branchRCL_3
changeset 44 ecbabf52600f
equal deleted inserted replaced
43:ebd48d2de13c 44:ecbabf52600f
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  drop-down list control
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_GENERICITUTWINDOWMANAGER_H
       
    20 #define C_GENERICITUTWINDOWMANAGER_H
       
    21 
       
    22 #include <peninputlayout.h>
       
    23 #include <peninputpluginutils.h>
       
    24 #include <peninputlayoutmultilineicf.h>
       
    25 #include <peninputinputcontextfield.h>
       
    26 
       
    27 #include <peninputlayoutvkb.h>
       
    28 #include "peninputgenericitutlayout.h"
       
    29 #include "peninputgenericitutpropertysubscriber.h"
       
    30 #include "peninputgenericitutlayoutcontext.h"
       
    31 
       
    32 class CGenericItutWindow;
       
    33 
       
    34 class CGenericItutWindowManager : public CBase,
       
    35                                   public MItutPropertySubscriber
       
    36     {
       
    37 public:
       
    38     static CGenericItutWindowManager* NewL(CGenericItutUiLayout* aLayoutOwner,
       
    39                                            CGenericItutDataMgr* iDataMgr);
       
    40 
       
    41     ~CGenericItutWindowManager();
       
    42 
       
    43     void HandleCtrlEventL(TInt aEventType, CFepUiBaseCtrl* aCtrl, const TDesC& aEventData);
       
    44 
       
    45     TInt OnAppEditorTextComing(const TFepInputContextFieldData& aData);
       
    46 
       
    47     TBool HandleCommandL(TInt aCmd, TUint8* aData);
       
    48 
       
    49     void SetPropertyL( MItutPropertySubscriber::TItutProperty aPropertyName, 
       
    50                        const TDesC& aPropertyValue);
       
    51 
       
    52     TInt SizeChanged(TBool aIcfOverlap);
       
    53 
       
    54     CFepUiLayout* UiLayout();
       
    55 
       
    56     void SubmitText(const TDesC& aEventData);
       
    57 
       
    58     void ShowArrowBtn(TInt aShowFlag);
       
    59     
       
    60     void HandleAppInfoChangeL(const TDesC& aInfo); 
       
    61     
       
    62     void SimulateRawEvent(TInt aScanCode, TRawEvent::TType aType );
       
    63 
       
    64     /**
       
    65      * Simulate raw event to window server immediately
       
    66      * simulating raw event command won't be scheduled by AO 
       
    67      * because it won't be added into CPeninputAnimObj::iAnimCmd.
       
    68      *
       
    69      */
       
    70     void SimulateImmeRawEvent(TInt aScanCode, TRawEvent::TType aType );
       
    71     
       
    72     void SetPromptTextL(TUint8* aData);
       
    73     TInt OnSkinChange();
       
    74     
       
    75     void SetLanguageL(TInt aLanguage);
       
    76     
       
    77     void ResetIndicatorL(CFepUiBaseCtrl* aIndicator);  
       
    78     
       
    79     void ShowInputModeSwitchL();
       
    80     
       
    81     void SetLastRawKeyDown(TInt aScanCode, TBool aKeyDown,  CFepUiBaseCtrl* aCtrl);    
       
    82 
       
    83     void CreateChineseSpecificCtrlsIfNeededL();
       
    84     
       
    85     void ApplyVariantLafDataL(TBool aResolutionChange);
       
    86 
       
    87     CFepUiBaseCtrl* Control(TInt aCtrlId);
       
    88     
       
    89     void DimArrowKeys( TBool aDimArrow );
       
    90     
       
    91     void ShowBubble(TInt aShow);
       
    92     
       
    93     void OnActivate();
       
    94     
       
    95     inline CGenericItutWindow* Window();
       
    96     
       
    97     /* Teleca change begin, 18.05.2009 ssal */
       
    98     static TInt HideByteWarningBubble(TAny* aPointer);
       
    99     void HideByteWarningBubble();
       
   100     void DisplayWarningNote(const TDesC& aInfo);
       
   101 	/* Teleca change end, 18.05.2009 ssal */
       
   102     
       
   103     TBool IsAllowHandleRawKeyEvent();
       
   104     
       
   105     void SetAllowHandleRawKeyEventFlag( TBool aFlag );
       
   106     
       
   107     void StartPreventSCTTimer();
       
   108     
       
   109     void StopPreventSCTTimer();
       
   110     void CreateKoreanSpecificCtrlsIfNeededL();
       
   111 private:
       
   112 
       
   113     CGenericItutWindowManager(CGenericItutUiLayout* aLayoutOwner,
       
   114                               CGenericItutDataMgr* iDataMgr);
       
   115 
       
   116     void ConstructL(); 
       
   117     void UpdateIndicatorL(TUint8* aData);
       
   118 
       
   119     void ReportItemSelected(TInt aCmdId, TInt aIdx, TBool aCommit);
       
   120 
       
   121 private:
       
   122 
       
   123     CGenericItutUiLayout* iLayoutOwner;
       
   124     
       
   125     CGenericItutWindow* iWindow;
       
   126     CGenericItutDataMgr* iDataMgr;
       
   127     
       
   128     TAknWindowLineLayout iBubbleSize;
       
   129     TAknTextLineLayout iBubbleTextLayout;
       
   130     
       
   131    
       
   132     TBool iRawKeyDown;  
       
   133     CFepUiBaseCtrl* iRawKeyCtrl;
       
   134     TInt iLastRawKeyDown;
       
   135     TBool iInEditWordQueryDlg;
       
   136     TBool iDimOperationBtn;
       
   137     
       
   138     /* Teleca change begin, 18.05.2009 ssal */
       
   139     CPeriodic* iInfoTimer;
       
   140     /* Teleca change end, 18.05.2009 ssal */
       
   141     
       
   142     TBool iAllowHandleRawKeyEvent;
       
   143     CPeriodic* iPreventCSTTimer;
       
   144     };
       
   145 
       
   146 inline CGenericItutWindow* CGenericItutWindowManager::Window()
       
   147 	{
       
   148 	return iWindow;	
       
   149 	}
       
   150 #endif // C_GENERICITUTWINDOWMANAGER_H