fep/aknfep/inc/AknFepManager.h
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   267         /* Flag to set decide when to set multiple observer for FEP. Set this flag whenever a FEP aware dialog is launched */
   267         /* Flag to set decide when to set multiple observer for FEP. Set this flag whenever a FEP aware dialog is launched */
   268         EExtendedFlagFepAwareDialogLaunched               =0x00000020,
   268         EExtendedFlagFepAwareDialogLaunched               =0x00000020,
   269         /* Flag to specify that pointer event type EDrag has happened */ 
   269         /* Flag to specify that pointer event type EDrag has happened */ 
   270         EExtendedFlagPointerEventTypeEDrag                =0x00000040,
   270         EExtendedFlagPointerEventTypeEDrag                =0x00000040,
   271         /* Flag to specify that Fn key will be set as lock mode when long press occurs*/ 
   271         /* Flag to specify that Fn key will be set as lock mode when long press occurs*/ 
   272         EExtendedFlagFnKeyNeedLockMode                    =0x00000080
   272         EExtendedFlagFnKeyNeedLockMode                    =0x00000080,
       
   273         /* Flag to specify point in editor when EFlagNoMatches flag is set*/ 
       
   274         EExtendedFlagPointInNoMatchEditor                 =0x00000100
   273     	};		
   275     	};		
   274 
   276 
   275     //public constants
   277     //public constants
   276 
   278 
   277     enum
   279     enum
   622     * @param None
   624     * @param None
   623     * @return  void
   625     * @return  void
   624     */
   626     */
   625     virtual void HandleIndicCaseL();
   627     virtual void HandleIndicCaseL();
   626 #endif
   628 #endif
   627     /*
       
   628      * This function judge whether the texts inputted 
       
   629      * exceed the max length of the editor. 
       
   630      * 
       
   631      * @since Symbian^3
       
   632      * @param aNewInlineTextLenght the length of the current inline texts
       
   633      * @return ETrue if the texts inputted exceed the max length of the editor. 
       
   634      */ 
       
   635     TBool IsTextExceedLeghthEditor(TInt aNewInlineTextLenght);
       
   636 
   629 
   637 public: //interface to the key catcher
   630 public: //interface to the key catcher
   638     /**
   631     /**
   639      * Handles key events passed from the Key Catcher, excluding the shift key event
   632      * Handles key events passed from the Key Catcher, excluding the shift key event
   640      * which is dealt with separately in the HandleShiftKeyEventL function.
   633      * which is dealt with separately in the HandleShiftKeyEventL function.
   921      * Efalse when it is not.
   914      * Efalse when it is not.
   922      */
   915      */
   923     TBool IsJavaSecretEditor();    
   916     TBool IsJavaSecretEditor();    
   924 	
   917 	
   925 	void HandleChangeInFocusForSettingFep();
   918 	void HandleChangeInFocusForSettingFep();
       
   919 
       
   920     /**
       
   921     * Returns initial rectangle used for the top-left point of split candidate.
       
   922     */
       
   923     TRect InitRectForSplitCandL();
   926 
   924 
   927 private:
   925 private:
   928 
   926 
   929     /**
   927     /**
   930      * Handles notifications that the UI has changed focus
   928      * Handles notifications that the UI has changed focus
  2471     inline void SetNotifyPlugin( TBool aNotifyFlag );
  2469     inline void SetNotifyPlugin( TBool aNotifyFlag );
  2472             
  2470             
  2473     inline void RemeberEditorState();
  2471     inline void RemeberEditorState();
  2474     
  2472     
  2475     inline TBool IsMfneEditor() const;
  2473     inline TBool IsMfneEditor() const;
  2476     
       
  2477     inline TBool IsNoT9Editor() const;
       
  2478     
  2474     
  2479     inline TBool IsFindPaneEditor() const;
  2475     inline TBool IsFindPaneEditor() const;
  2480     inline TBool IsSupportedAdaptiveSearch() const;
  2476     inline TBool IsSupportedAdaptiveSearch() const;
  2481     //for japanese
  2477     //for japanese
  2482     void NotifyJapaneseSetting();
  2478     void NotifyJapaneseSetting();
  2941     */
  2937     */
  2942     void MultitapThroughSCTCharL(TCallBack aCallBack);       	 
  2938     void MultitapThroughSCTCharL(TCallBack aCallBack);       	 
  2943     /**
  2939     /**
  2944     * Notify mfne editor to toggle AM or PM for 12-hour time
  2940     * Notify mfne editor to toggle AM or PM for 12-hour time
  2945     */
  2941     */
  2946     void ChangeMfneAmPmL();
  2942     void ChangeMfneAmPm();
  2947 private:        
  2943 private:        
  2948     TBool NumericResourceMultiTapTimerTimeoutL();    
  2944     TBool NumericResourceMultiTapTimerTimeoutL();    
  2949     
  2945     
  2950     /**
  2946     /**
  2951      * CAknFepManager::FindAndRemoveInputOptionsMenuItemL
  2947      * CAknFepManager::FindAndRemoveInputOptionsMenuItemL
  2975      *  - else it is the last item. 
  2971      *  - else it is the last item. 
  2976      *  Params - 
  2972      *  Params - 
  2977      *      aMenuPane : pointer to the menu pane to be checked for the resource id
  2973      *      aMenuPane : pointer to the menu pane to be checked for the resource id
  2978      */
  2974      */
  2979     void AddInputOptionsMenuItemL( CAknFepUiInterfaceMenuPane* aMenuPane );
  2975     void AddInputOptionsMenuItemL( CAknFepUiInterfaceMenuPane* aMenuPane );
  2980     
       
  2981     /**
       
  2982      * CAknFepManager::MenuItemExist
       
  2983      * To check if the menuitem with the CascadeId exist in menupane
       
  2984      * Params -
       
  2985      *      aMenuPane : the current menu pane
       
  2986      *      aCascadeId : the menuitem cascadeID
       
  2987      *      aPosition : if the menuitem exist, this is the index
       
  2988      * return -
       
  2989      *      exist : true
       
  2990      *      not exist : false
       
  2991      */
       
  2992     TBool MenuItemExistL( CAknFepUiInterfaceMenuPane* aMenuPane, TInt aCascadeId, TInt &aPosition );
       
  2993         
  2976         
  2994 private:        
  2977 private:        
  2995     CChrMultiTapTimer* iNumericResourceTimer;
  2978     CChrMultiTapTimer* iNumericResourceTimer;
  2996     HBufC* iResourceString;
  2979     HBufC* iResourceString;
  2997     TInt iChrCharIndex;    
  2980     TInt iChrCharIndex;    
  3167 inline TBool CAknFepManager::IsMfneEditor() const
  3150 inline TBool CAknFepManager::IsMfneEditor() const
  3168     {
  3151     {
  3169     return EditorType() == CAknExtendedInputCapabilities::EMFNEBased;
  3152     return EditorType() == CAknExtendedInputCapabilities::EMFNEBased;
  3170     }
  3153     }
  3171 
  3154 
  3172 inline TBool CAknFepManager::IsNoT9Editor() const
       
  3173     {
       
  3174     return iAknEditorFlags & EAknEditorFlagNoT9;
       
  3175     }
       
  3176 
       
  3177 inline TBool CAknFepManager::IsFindPaneEditor() const
  3155 inline TBool CAknFepManager::IsFindPaneEditor() const
  3178     {
  3156     {
  3179     return iAknEditorFlags & EAknEditorFlagFindPane;
  3157     return iAknEditorFlags & EAknEditorFlagFindPane;
  3180     }
  3158     }
  3181     
  3159