textinput/peninputsplititut/inc/peninputsplititutwindow.h
branchRCL_3
changeset 5 a47de9135b21
parent 0 eb1f2e154e89
equal deleted inserted replaced
3:f5a1e66df979 5:a47de9135b21
    20 #define C_SPLITITUTWINDOW_H
    20 #define C_SPLITITUTWINDOW_H
    21 
    21 
    22 #include <peninputlayout.h>
    22 #include <peninputlayout.h>
    23 #include <peninputpluginutils.h>
    23 #include <peninputpluginutils.h>
    24 #include <peninputinputcontextfield.h>
    24 #include <peninputinputcontextfield.h>
       
    25 #include <peninputlayoutmultilineicf.h>
    25 #include <peninputlayoutvkb.h>
    26 #include <peninputlayoutvkb.h>
    26 
    27 
    27 #include "peninputsplititutwindowmanager.h"
    28 #include "peninputsplititutwindowmanager.h"
    28 #include "peninputsplititutpropertysubscriber.h"
    29 #include "peninputsplititutpropertysubscriber.h"
    29 #include "peninputsplititutlayoutcontext.h"
    30 #include "peninputsplititutlayoutcontext.h"
    81      * @since S60 5.0
    82      * @since S60 5.0
    82      * @return None
    83      * @return None
    83      */
    84      */
    84     ~CSplitItutWindow();
    85     ~CSplitItutWindow();
    85 
    86 
       
    87     
       
    88     /**
       
    89      * Get Icf pointer
       
    90      *
       
    91      * @since S60 v5.0
       
    92      * @return CFepLayoutMultiLineIcf*
       
    93      */
       
    94     inline CFepLayoutMultiLineIcf* Icf();
    86     /** 
    95     /** 
    87      * get pen input type
    96      * get pen input type
    88      *
    97      *
    89      * @since S60 5.0
    98      * @since S60 5.0
    90      * @return peninput type
    99      * @return peninput type
   143      * @return None
   152      * @return None
   144      */
   153      */
   145     void ConstructItutKeypadFromResourceL(TInt aResId);  
   154     void ConstructItutKeypadFromResourceL(TInt aResId);  
   146     
   155     
   147     /** 
   156     /** 
       
   157      * construct icf from resource
       
   158      *
       
   159      * @since S60 5.0
       
   160      * @return None
       
   161      */
       
   162     void ConstructIcfFromResourceL();
       
   163     
       
   164     /** 
   148      * handle skin change
   165      * handle skin change
   149      *
   166      *
   150      * @since S60 5.0
   167      * @since S60 5.0
   151      * @return None
   168      * @return None
   152      */
   169      */
   158      * @since S60 5.0
   175      * @since S60 5.0
   159      * @param aResolutionChange
   176      * @param aResolutionChange
   160      * @return None
   177      * @return None
   161      */
   178      */
   162     void ApplyVariantLafDataL(TBool aResolutionChange = EFalse);
   179     void ApplyVariantLafDataL(TBool aResolutionChange = EFalse);
       
   180          
       
   181     /** 
       
   182      * apply spell variant laf data
       
   183      *
       
   184      * @since S60 5.0
       
   185      * @return None
       
   186      */         
       
   187     void ApplyVariantLafDataForSpellL();     
   163                         
   188                         
   164     /** 
   189     /** 
   165      * construct spell control
   190      * construct spell control
   166      *
   191      *
   167      * @since S60 5.0
   192      * @since S60 5.0
   202      * @since S60 5.0
   227      * @since S60 5.0
   203      * @param aControlId
   228      * @param aControlId
   204      * @return None
   229      * @return None
   205      */
   230      */
   206     void HandleButtonResOnLangDirChangeL( TInt aControlId );
   231     void HandleButtonResOnLangDirChangeL( TInt aControlId );
   207     
   232 
       
   233     /** 
       
   234      * Set prompt text
       
   235      *
       
   236      * @since S60 5.0
       
   237      * @param aData text
       
   238      * @return None
       
   239      */
       
   240     void SetPromptTextL( TUint8* aData );
       
   241     
       
   242     /** 
       
   243      * Set bubble
       
   244      *
       
   245      * @since S60 5.0
       
   246      * @return None
       
   247      */    
       
   248     void SetIndiBubble();
       
   249     
       
   250     /** 
       
   251      * Update bubble prompt text
       
   252      *
       
   253      * @since S60 5.0
       
   254      * @param aData text
       
   255      * @return None
       
   256      */
       
   257     void UpdateIndiBubbleL( TUint8* aData );
       
   258     
       
   259     /** 
       
   260      * Set bubble image
       
   261      *
       
   262      * @since S60 5.0
       
   263      * @param aImgID1 image ID1
       
   264      * @param aMaskID1 mask image id1
       
   265      * @param aImgID2 image ID2
       
   266      * @param aMaskID2 mask image id2
       
   267      * @return None
       
   268      */
       
   269     void SetIndiBubbleImageL( const TInt aImgID1,
       
   270 						      const TInt aMaskID1,
       
   271                               const TInt aImgID2,
       
   272                               const TInt aMaskID2 );
   208 private:
   273 private:
   209     /**
   274     /**
   210      * C++ constructor
   275      * C++ constructor
   211      *
   276      *
   212      * @since S60 5.0
   277      * @since S60 5.0
   315      * @since S60 5.0
   380      * @since S60 5.0
   316      * @param aCtrl
   381      * @param aCtrl
   317      * @param aRectIdx
   382      * @param aRectIdx
   318      * @return None
   383      * @return None
   319      */
   384      */
   320     void SetCtrlRect(CFepUiBaseCtrl* aCtrl, TInt aRectIdx);
   385     void SetCtrlRect(CFepUiBaseCtrl* aCtrl, TInt aRectIdx, const TBool aOffset = EFalse);
   321     
   386     
   322     /**
   387     /**
   323      * resize candidate list
   388      * resize candidate list
   324      *
   389      *
   325      * @since S60 5.0
   390      * @since S60 5.0
   401                                   const TInt aControlId,
   466                                   const TInt aControlId,
   402                                   const TInt aRectId,
   467                                   const TInt aRectId,
   403                                   const TInt aInnerRectId,
   468                                   const TInt aInnerRectId,
   404                                   const TInt aResourceId,
   469                                   const TInt aResourceId,
   405                                   const TInt aCommand = KUnavailableID);
   470                                   const TInt aCommand = KUnavailableID);
   406   
   471                                   
       
   472     /**
       
   473      * Create ICF for spell mode
       
   474      *
       
   475      * @since S60 5.0
       
   476      * @return None
       
   477      */
       
   478     void CreateICFL();
       
   479      
   407     /**
   480     /**
   408      * Check control size change
   481      * Check control size change
   409      *
   482      *
   410      * @since S60 5.0
   483      * @since S60 5.0
   411      * @param aRect
   484      * @param aRect
   461      * @since S60 5.0
   534      * @since S60 5.0
   462      * @param aKeyImageResID
   535      * @param aKeyImageResID
   463      * @return None
   536      * @return None
   464      */
   537      */
   465     void SetUnicodesForHardKey1L(CVirtualKey* aKey, const TDesC& aMapData);
   538     void SetUnicodesForHardKey1L(CVirtualKey* aKey, const TDesC& aMapData);
       
   539     
       
   540     /**
       
   541      * Indicator rect
       
   542      *
       
   543      * @since S60 5.0
       
   544      * @param aBoundRect
       
   545      * @param aRealRect1
       
   546      * @param aRealRect2
       
   547      * @param aAlign
       
   548      * @return None
       
   549      */ 
       
   550     void CalIndicatorRect( const TRect& aBoundRect,
       
   551                            TRect& aRealRect1,
       
   552                            TRect& aRealRect2,
       
   553                            TIndicatorAlign aAlign );
   466 private:
   554 private:
   467     /**
   555     /**
   468      * ITUT keypad.
   556      * ITUT keypad.
   469      * own
   557      * own
   470      */
   558      */
   531 	
   619 	
   532     /**
   620     /**
   533      * symbol data for chinese
   621      * symbol data for chinese
   534      */
   622      */
   535     TFepSymbolOfHardwareOne iSymbolData;
   623     TFepSymbolOfHardwareOne iSymbolData;
       
   624     
       
   625     TSize iIndicatorSize;
       
   626     TSize iIndicatorTextSize;
       
   627     TBool iImDimensionSet;
       
   628     CFepLayoutMultiLineIcf* iICF;
   536     };
   629     };
   537    
   630    
   538 // ---------------------------------------------------------------------------
   631 // ---------------------------------------------------------------------------
   539 // CSplitItutWindow::ItutKeypad
   632 // CSplitItutWindow::ItutKeypad
   540 // ---------------------------------------------------------------------------
   633 // ---------------------------------------------------------------------------
   541 //
   634 //
   542 inline CVirtualKeyboard* CSplitItutWindow::ItutKeypad()
   635 inline CVirtualKeyboard* CSplitItutWindow::ItutKeypad()
   543     {
   636     {
   544     return iStandardItutKp;    
   637     return iStandardItutKp;    
   545     }
   638     }
   546     
   639   
       
   640 // ---------------------------------------------------------------------------
       
   641 // CSplitItutWindow::Icf
       
   642 // ---------------------------------------------------------------------------
       
   643 //
       
   644 inline CFepLayoutMultiLineIcf* CSplitItutWindow::Icf()
       
   645     {
       
   646     return iICF;   
       
   647     }
   547 #endif //C_SPLITITUTWINDOW_H
   648 #endif //C_SPLITITUTWINDOW_H