textinput/peninputfingerhwrar/inc/peninputfingerhwrarsymboltable.h
branchRCL_3
changeset 10 6defe5d1bd39
parent 7 a47de9135b21
child 19 5e18d8c489d6
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    98     
    98     
    99 	/**
    99 	/**
   100 	 * sizechanged
   100 	 * sizechanged
   101 	 *
   101 	 *
   102 	 */
   102 	 */
   103 	void SizeChanged(const TSize aKeypadSize, const TSize aButtonSize,
   103 	void SizeChanged(const TRect aVirtualKeypadRect, const RArray<TRect> aBtnRects,
   104                      const TInt aKeypadRow, const TInt aKeypadCol, TBool aIsLandscape = ETrue);
   104                      const TInt aKeypadRow, const TInt aKeypadCol, TBool aIsLandscape = ETrue);
   105     
   105     
       
   106 	/**
       
   107 	 * Load VKB image
       
   108 	 *
       
   109 	 */
   106     void LoadVkbKeyImageL(TInt aResId, const TSize& aKeySize);
   110     void LoadVkbKeyImageL(TInt aResId, const TSize& aKeySize);
   107 	
   111 	
       
   112 	/**
       
   113 	 * Load virutal Key and set key rects.
       
   114 	 *
       
   115 	 */
   108 	void LoadVirtualKeypadKeyL(const TInt aResId, const RArray<TRect>& aCellRects);
   116 	void LoadVirtualKeypadKeyL(const TInt aResId, const RArray<TRect>& aCellRects);
   109     
   117     
       
   118 	/**
       
   119 	 * Return keypad control
       
   120 	 *
       
   121 	 */
   110 	inline CMultiPageVirtualKeyboard* KeyPad(){return iMutiPageKeypad;}
   122 	inline CMultiPageVirtualKeyboard* KeyPad(){return iMutiPageKeypad;}
   111     
   123     
       
   124 	/**
       
   125 	 * Navigate page
       
   126 	 *
       
   127 	 */
   112 	void NavigatePage(TInt aPageNo, TInt aPos);
   128 	void NavigatePage(TInt aPageNo, TInt aPos);
   113 	
   129     
   114 	void UpdatePageButtonsUi();
   130 	/**
   115 	
   131 	 * Construct from resource
   116 	void UpdateAllVirtualKeysFeedback();
   132 	 * This funciton will be called when the resource has changed for example skin was changed
   117 
   133 	 */
       
   134 	void ConstructFromResourceL();	
       
   135 	
   118 protected: //virtuals from CControlGroup (CFepUiBaseCtrl)
   136 protected: //virtuals from CControlGroup (CFepUiBaseCtrl)
   119 
   137 
   120     /**
   138     /**
   121      * From CControlGroup
   139      * From CControlGroup
   122      * Handle pointer down event
   140      * Handle pointer down event
   218 	 */
   236 	 */
   219 	void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, 
   237 	void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, 
   220 	                    const TRect aKeyRect );
   238 	                    const TRect aKeyRect );
   221     void OnActivate();
   239     void OnActivate();
   222 	
   240 	
       
   241 	/**
       
   242 	 * Show the visible page button
       
   243 	 *
       
   244 	 */
       
   245 	void UpdatePageButtonsUi();
       
   246 	
       
   247 	/**
       
   248 	 * Update the virtual key feedback
       
   249 	 *
       
   250 	 */
       
   251 	void UpdateAllVirtualKeysFeedback();
       
   252 	
       
   253 	/**
       
   254 	 * Draw group control
       
   255 	 */
       
   256 	void Draw();
       
   257 	
       
   258 	/**
       
   259 	 * Load background from resource
       
   260 	 *
       
   261 	 */
       
   262 	void LoadBackgroundFromResourceL(const TInt aResId);
       
   263 		
   223 private:
   264 private:
   224     /**
   265     /**
   225 	 * multipage viritual keyboard
   266 	 * multipage viritual keyboard
   226 	 * not own.
   267 	 * not own.
   227 	 */
   268 	 */
   276 	
   317 	
   277 	/**
   318 	/**
   278 	 * store the layout mode
   319 	 * store the layout mode
   279 	 */
   320 	 */
   280 	TBool iIsLandscape;
   321 	TBool iIsLandscape;
   281 	
       
   282 	/**
       
   283 	 * remember the pointer down contrl
       
   284 	 */
       
   285 	CFepUiBaseCtrl* iPenDownCtrl;
       
   286 	
       
   287 	/**
       
   288 	 * check if the the pointer is moved out
       
   289 	 */
       
   290 	TBool iPointerMoveBack;
       
   291     };
   322     };
   292 
   323 
   293 #endif // C_PENINPUTARABICFINGERHWRSYMBOLTABLE_H
   324 #endif // C_PENINPUTARABICFINGERHWRSYMBOLTABLE_H