extras/calcsoft/inc/CalcCont.h
branchRCL_3
changeset 19 99b535de1dda
parent 0 3ee3dfdd8d69
equal deleted inserted replaced
17:a616540b95d9 19:99b535de1dda
   119         /**
   119         /**
   120         * Redraw Clear button on ClearKey enable.
   120         * Redraw Clear button on ClearKey enable.
   121         */
   121         */
   122         void SetClearKeyEnable();
   122         void SetClearKeyEnable();
   123 
   123 
   124 		/**
   124         /**
   125         * Show square root button only if no 0 in editor.
   125         * Show square root button only if no 0 in editor.
   126         */
   126         */
   127 		void SetSqrtEnableL();
   127         void SetSqrtEnableL();
   128 
   128 
   129 		/**
   129         /**
   130         * Show percent button only if no 0 in editor.
   130         * Show percent button only if no 0 in editor.
   131         */
   131         */
   132 		void SetPercentEnableL();
   132         void SetPercentEnableL();
   133 
   133 
   134 		/**
   134         /**
   135         * Redraw square root button.
   135         * Redraw square root button.
   136         */
   136         */
   137 		void ShowSqrtButton(TBool aEnable);
   137         void ShowSqrtButton(TBool aEnable);
   138 
   138 
   139 		/**
   139         /**
   140         * Redraw percent button.
   140         * Redraw percent button.
   141         */
   141         */
   142 		void ShowPercentButton(TBool aEnable);
   142         void ShowPercentButton(TBool aEnable);
   143 
   143 
   144 		/**
   144         /**
   145 		* Returns the state of the calculator.
   145         * Returns the state of the calculator.
   146 		*/
   146         */
   147 		CCalcView::TStateNo GetState();
   147         CCalcView::TStateNo GetState();
   148 
   148 
   149         /**
   149         /**
   150         * Time out CallBack function for *-key press
   150         * Time out CallBack function for *-key press
   151         * @param aObject this class.
   151         * @param aObject this class.
   152         * @return always 0
   152         * @return always 0
   171         * @param aOld : Old decimal separator
   171         * @param aOld : Old decimal separator
   172         * @param aNew : New decimal separator  
   172         * @param aNew : New decimal separator  
   173         */
   173         */
   174         void NotifyChangeDecimal(TChar aOld, TChar aNew);
   174         void NotifyChangeDecimal(TChar aOld, TChar aNew);
   175         
   175         
       
   176         /**
       
   177         * Called  when an error is displayed.
       
   178         * @param aErrorCode : an error code  from  CCalcContainer
       
   179         */
       
   180         void SetErrorCode(TInt aErrorCode);
       
   181         
   176     public: // Functions from base classes
   182     public: // Functions from base classes
   177         /**
   183         /**
   178         * From CCoeControl : Get help context
   184         * From CCoeControl : Get help context
   179         * @param aContext : help context. 
   185         * @param aContext : help context. 
   180         */
   186         */
   181         void GetHelpContext(TCoeHelpContext& aContext) const;
   187         void GetHelpContext(TCoeHelpContext& aContext) const;
   182 
   188 
   183 		/**
   189         /**
   184 		*Returns functionMap subpane
   190         *Returns functionMap subpane
   185 		*/
   191         */
   186 		inline CCalcFuncmapSubPane* FunctionSubPane() const; 
   192         inline CCalcFuncmapSubPane* FunctionSubPane() const; 
   187 		
   193         
   188 		/**
   194         /**
   189         * HandleMiddleSoftKey
   195         * HandleMiddleSoftKey
   190         * Handled when MSK is selected 
   196         * Handled when MSK is selected 
   191         */	
   197         */    
   192 		void HandleMiddleSoftKey();
   198         void HandleMiddleSoftKey();
   193 
   199 
   194 		/**
   200         /**
   195         * SetOperatorFromTouch
   201         * SetOperatorFromTouch
   196         * To handle the addition of Touch Input values for digits
   202         * To handle the addition of Touch Input values for digits
   197         */	
   203         */    
   198 		void SetOperatorFromTouchL(TInt akey);
   204         void SetOperatorFromTouchL(TInt akey);
   199 		
   205         
   200 		/**
   206         /**
   201         * ClearInputKey
   207         * ClearInputKey
   202         * To handle the clear input key through the touch UI 
   208         * To handle the clear input key through the touch UI 
   203         */	
   209         */    
   204 		void ClearInputKeyL(TInt aRepeat = 0);
   210         void ClearInputKeyL(TInt aRepeat = 0);
   205 		
   211         
   206 		/**
   212         /**
   207         * ClearInputKey
   213         * ClearInputKey
   208         * To handle the '.' key press
   214         * To handle the '.' key press
   209         */	
   215         */    
   210 		
   216         
   211 		void SetSeparatorFromTouchL();
   217         void SetSeparatorFromTouchL();
   212 
   218 
   213 		// From CCoeControl		
   219         // From CCoeControl        
   214 		void ActivateL();
   220         void ActivateL();
   215     private:  // New functions 
   221     private:  // New functions 
   216         /**
   222         /**
   217         * C++ default constructor.
   223         * C++ default constructor.
   218         * @param aView : Pointer of CCalcView
   224         * @param aView : Pointer of CCalcView
   219         */
   225         */