textinput/peninputgenericvkb/inc/peninputgenericvkblafdatamgr.h
branchRCL_3
changeset 5 a47de9135b21
parent 3 f5a1e66df979
equal deleted inserted replaced
3:f5a1e66df979 5:a47de9135b21
   131 	TPeninputButtonLayoutData 	iSmillyButton;
   131 	TPeninputButtonLayoutData 	iSmillyButton;
   132 	TPeninputButtonLayoutData	iSpaceButton;
   132 	TPeninputButtonLayoutData	iSpaceButton;
   133 	TPeninputButtonLayoutDataEx iSpaceButtonEx;	
   133 	TPeninputButtonLayoutDataEx iSpaceButtonEx;	
   134 	TPeninputButtonLayoutData	iEnterButton;
   134 	TPeninputButtonLayoutData	iEnterButton;
   135 	TPeninputButtonLayoutData	iSwitchButton;
   135 	TPeninputButtonLayoutData	iSwitchButton;
       
   136 	TPeninputButtonLayoutData   iMultiRangeButton;
       
   137     TRect iIndiPaneRectWithTextForFSQ;
       
   138     TRect iIndiPaneRectWithoutTextForFSQ;
       
   139     TRect iIndiIconRectWithTextForFSQ;
       
   140     TRect iIndiIconRectWithoutTextForFSQ;
       
   141     TAknTextLineLayout iIndiTextForFSQ;
   136 	TRect iTitlebarRect;
   142 	TRect iTitlebarRect;
   137 	TRect iClientRect;
   143 	TRect iClientRect;
   138 	TRect iQwtRect;
   144 	TRect iQwtRect;
   139 	TRect iPreviewWndRect;
   145 	TRect iPreviewWndRect;
   140 	TRect iPreviewWndInnerRect;
   146 	TRect iPreviewWndInnerRect;
   193 	inline TInt LayoutType() const;
   199 	inline TInt LayoutType() const;
   194 	inline void SetLafOption( TPeninputVkbLafOption aLafOption );
   200 	inline void SetLafOption( TPeninputVkbLafOption aLafOption );
   195 	inline TPeninputVkbLafOption LafOption() const;
   201 	inline TPeninputVkbLafOption LafOption() const;
   196 	void ConstructL();
   202 	void ConstructL();
   197 	TBool IsValid() const;
   203 	TBool IsValid() const;
       
   204 	TRect& IndiPaneRectWithText();
       
   205 	TRect& IndiPaneRectWithoutText();
       
   206 	TRect& IndiIconRectWithText();
       
   207 	TRect& IndiIconRectWithoutText();
       
   208 	TAknTextLineLayout& IndiText();
   198 protected:
   209 protected:
   199 	void GetTopAndBottomPaneInfo( const TRect& aParentWndRect, 
   210 	virtual void GetTopAndBottomPaneInfo( const TRect& aParentWndRect, 
   200 								  TInt aLayoutType,
   211 								  TInt aLayoutType,
   201 								  TInt aLayoutParam,
   212 								  TInt aLayoutParam,
   202 								  CPeninputQwtLayoutDataInfo& aDataInfo );
   213 								  CPeninputQwtLayoutDataInfo& aDataInfo ) = 0;
   203 	virtual void ReadLafInfoL() = 0;
   214 	virtual void ReadLafInfoL() = 0;
   204 	
   215 	
   205 	TInt iLayoutType;
   216 	TInt iLayoutType;
   206 	TPeninputVkbLafOption iLafOption;
   217 	TPeninputVkbLafOption iLafOption;
   207 	RPointerArray<CPeninputQwtLayoutDataInfo> iLayoutDataInfo;
   218 	RPointerArray<CPeninputQwtLayoutDataInfo> iLayoutDataInfo;
   217 	virtual ~CPeninputLafDataVKB();
   228 	virtual ~CPeninputLafDataVKB();
   218 	
   229 	
   219 protected:
   230 protected:
   220 	CPeninputLafDataVKB( TInt aLayoutType );
   231 	CPeninputLafDataVKB( TInt aLayoutType );
   221 
   232 
       
   233     void GetTopAndBottomPaneInfo( const TRect& aParentWndRect, 
       
   234                                   TInt aLayoutType,
       
   235                                   TInt aLayoutParam,
       
   236                                   CPeninputQwtLayoutDataInfo& aDataInfo );
   222 	void ReadLafInfoL();
   237 	void ReadLafInfoL();
   223 	};
   238 	};
   224 	
   239 	
   225 class CPeninputLafDataFSQ : public CBase, 
   240 class CPeninputLafDataFSQ : public CBase, 
   226 							public MPeninputLafDataCommon
   241 							public MPeninputLafDataCommon
   232 	virtual ~CPeninputLafDataFSQ();
   247 	virtual ~CPeninputLafDataFSQ();
   233 
   248 
   234 protected:
   249 protected:
   235 	CPeninputLafDataFSQ( TInt aLayoutType );
   250 	CPeninputLafDataFSQ( TInt aLayoutType );
   236 
   251 
       
   252     void GetTopAndBottomPaneInfo( const TRect& aParentWndRect, 
       
   253                                   TInt aLayoutType,
       
   254                                   TInt aLayoutParam,
       
   255                                   CPeninputQwtLayoutDataInfo& aDataInfo );
   237 	void ReadLafInfoL();
   256 	void ReadLafInfoL();
   238 	
   257 	
   239 private:
   258 private:
   240 
   259 
   241     /**
   260     /**
   251      *  
   270      *  
   252      * @param aRect the parent window's rect
   271      * @param aRect the parent window's rect
   253      * @return tooltip box layout data
   272      * @return tooltip box layout data
   254      */	
   273      */	
   255 	TPeninputTooltipBoxLayoutData ReadLafForTooltipBox( const TRect& aRect );
   274 	TPeninputTooltipBoxLayoutData ReadLafForTooltipBox( const TRect& aRect );
       
   275 	TRect RelativeRect( const TRect& aRect, const TPoint& aPoint );
       
   276 
       
   277 	TRect CPeninputLafDataFSQ::OffsetRect( 
       
   278 	        const TRect& aRect, TInt aDx, TInt aDy );
   256 	};	
   279 	};	
   257 	
   280 	
   258 /**
   281 /**
   259  *  Peninput VKB data management class
   282  *  Peninput VKB data management class
   260  *  This class manager the data of VKB
   283  *  This class manager the data of VKB
   400 	*
   423 	*
   401 	* @return The layout data for tooltip box	
   424 	* @return The layout data for tooltip box	
   402 	*/	
   425 	*/	
   403 	const TPeninputTooltipBoxLayoutData& TooltipBoxLayoutData() const;
   426 	const TPeninputTooltipBoxLayoutData& TooltipBoxLayoutData() const;
   404 
   427 
       
   428     TRect& IndiPaneRectWithText();
       
   429     TRect& IndiPaneRectWithoutText();
       
   430     TRect& IndiIconRectWithText();
       
   431     TRect& IndiIconRectWithoutText();
       
   432     TAknTextLineLayout& IndiText();
   405 protected:
   433 protected:
   406 
   434 
   407 	/**
   435 	/**
   408      * Set laf data base type
   436      * Set laf data base type
   409      *
   437      *