extras/calcsoft/inc/CalcOutSheet.h
branchRCL_3
changeset 16 99b535de1dda
parent 0 3ee3dfdd8d69
equal deleted inserted replaced
14:a616540b95d9 16:99b535de1dda
    99         /**
    99         /**
   100         * Output Sheet is scrolled down.
   100         * Output Sheet is scrolled down.
   101         */
   101         */
   102         void ScrollDown();
   102         void ScrollDown();
   103 
   103 
   104 		/**
   104         /**
   105 		* Refresh PaperBitmap Icon when the skin change event has occured.
   105         * Refresh PaperBitmap Icon when the skin change event has occured.
   106 		*/
   106         */
   107 		inline void RefreshPaperBitmap() ;
   107         inline void RefreshPaperBitmap() ;
   108 		/**
   108         /**
   109 		* Refresh ScalablePaperBitmap Icon when the skin change event has occured.
   109         * Refresh ScalablePaperBitmap Icon when the skin change event has occured.
   110 		*/
   110         */
   111 		inline void RefreshScalablePaperBitmap() ;
   111         inline void RefreshScalablePaperBitmap() ;
   112 
   112 
   113 
   113 
   114 		inline void RefreshResultsLineBitmap() ;
   114         inline void RefreshResultsLineBitmap() ;
   115 		
   115         
   116 		/**
   116         /**
   117 		* From MEikScrollBarObserver: to Handle scrollbar events
   117         * From MEikScrollBarObserver: to Handle scrollbar events
   118 		* @param CEikScrollBar* : Pointer to the scrollbar
   118         * @param CEikScrollBar* : Pointer to the scrollbar
   119 		* @param TEikScrollEvent : Event on the Scrollbar
   119         * @param TEikScrollEvent : Event on the Scrollbar
   120 		*/
   120         */
   121 		void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);
   121         void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);
   122 		
   122         
   123 		
   123         
   124         /**
   124         /**
   125         * From CCoeControl : Notifier for changing language
   125         * From CCoeControl : Notifier for changing language
   126         * @param aType : Type of resource change
   126         * @param aType : Type of resource change
   127         */
   127         */
   128         void HandleResourceChange(TInt aType);
   128         void HandleResourceChange(TInt aType);
   129         void HandleResourceChangeOutSheetL(TInt aType);
   129         void HandleResourceChangeOutSheetL(TInt aType);
   130  
   130  
   131 		
   131         
   132     private:    // New functions
   132     private:    // New functions
   133         /**
   133         /**
   134         * C++ default constructor.
   134         * C++ default constructor.
   135         */
   135         */
   136         CCalcOutputSheet();
   136         CCalcOutputSheet();
   155         * From CCoeControl : Draw Output Sheet
   155         * From CCoeControl : Draw Output Sheet
   156         * @param aRect : rectangle of Output Sheet
   156         * @param aRect : rectangle of Output Sheet
   157         */
   157         */
   158         void Draw(const TRect& aRect) const;
   158         void Draw(const TRect& aRect) const;
   159         
   159         
   160   		/**
   160           /**
   161         * Function used to dynamically update scrollbar indicators.
   161         * Function used to dynamically update scrollbar indicators.
   162         */
   162         */
   163         void UpdateScrollIndicatorL();
   163         void UpdateScrollIndicatorL();
   164         
   164         
   165 
   165 
   166     private:    // Data
   166     private:    // Data
   167         TInt iScrollOffset;     // Scroll position
   167         TInt iScrollOffset;     // Scroll position
   168         const CGulIcon* iCalcPaper; // Not own
   168         const CGulIcon* iCalcPaper; // Not own
   169 		const CGulIcon* iCalcScalablePaper[KCountOfPaperBitmaps];
   169         const CGulIcon* iCalcScalablePaper[KCountOfPaperBitmaps];
   170 		const CGulIcon* iCalcResultsLine;
   170         const CGulIcon* iCalcResultsLine;
   171         CCalcHistory*   iCalcHistory;    // Not own
   171         CCalcHistory*   iCalcHistory;    // Not own
   172         CCalcContainer* iCalcContainer;  // Not own
   172         CCalcContainer* iCalcContainer;  // Not own
   173         CCalcAppEnv*    iCalcAppEnv;     // Not own
   173         CCalcAppEnv*    iCalcAppEnv;     // Not own
   174 		TAknLayoutRect iCalcPaperLayout[KCountOfPaperBitmaps];
   174         TAknLayoutRect iCalcPaperLayout[KCountOfPaperBitmaps];
   175 		TInt iCalcOutputSheetLines;
   175         TInt iCalcOutputSheetLines;
   176 		CAknsBasicBackgroundControlContext* iOpSheetContext;
   176         CAknsBasicBackgroundControlContext* iOpSheetContext;
   177 		CArrayFixFlat<TAknLayoutText>* iOperatorLayout;
   177         CArrayFixFlat<TAknLayoutText>* iOperatorLayout;
   178 		CArrayFixFlat<TAknLayoutText>* iOperandLayout;
   178         CArrayFixFlat<TAknLayoutText>* iOperandLayout;
   179 		CArrayFixFlat<TAknLayoutRect>* iResultsLineLayout;
   179         CArrayFixFlat<TAknLayoutRect>* iResultsLineLayout;
   180 		CArrayFixFlat<TAknLayoutRect>* iEqualLineLayout;
   180         CArrayFixFlat<TAknLayoutRect>* iEqualLineLayout;
   181 		CRepository* 	iCRKey;
   181         CRepository*     iCRKey;
   182 		TInt 			iLanguage;
   182         TInt             iLanguage;
   183         TInt            iUiLanguage;
   183         TInt            iUiLanguage;
   184 		CEikScrollBarFrame *iSBFrame;		//own -> pointer used for scrollbar frame
   184         CEikScrollBarFrame *iSBFrame;        //own -> pointer used for scrollbar frame
   185 		TAknLayoutRect  iPaperPaneRect;
   185         TAknLayoutRect  iPaperPaneRect;
   186 		TInt            iPrevThumbPosition;
   186         TInt            iPrevThumbPosition;
   187 		            
   187                     
   188        
   188         // the bottom right coordinate of scrollbar  
       
   189         TPoint          iSBBrPoint;
   189     };
   190     };
   190 
   191 
   191 #include "CalcOutSheet.inl"
   192 #include "CalcOutSheet.inl"
   192 
   193 
   193 #endif      //  CALCOUTSHEET_H
   194 #endif      //  CALCOUTSHEET_H