eikfpne.h

Go to the documentation of this file.
00001 // EIKFPNE.H
00002 //
00003 // Copyright (c) 1997-2001 Symbian Ltd.  All rights reserved.
00004 //
00005 // Modified for Avkon project by R. DeWolf
00006 //
00007 
00008 #ifndef __EIKFPNE_H__
00009 #define __EIKFPNE_H__
00010 
00011 #ifndef __EIKEDWIN_H__
00012 #include <eikedwin.h>
00013 #endif
00014 
00015 #ifndef __AKNNUMEDWIN_H__
00016 #include <aknnumed.h>
00017 #endif
00018 
00031 class CEikFloatingPointEditor : public CAknNumericEdwin
00032         {
00033 public:
00037         IMPORT_C CEikFloatingPointEditor();
00041         IMPORT_C void ConstructL(const TReal& aMin,const TReal& aMax,TInt aTextLimit);
00048         IMPORT_C TReal Value() const;
00053         IMPORT_C TValidationStatus GetValueAsReal( TReal& aValue );
00059         IMPORT_C void SetValueL(const TReal* aValue);
00066         IMPORT_C void SetMinMax(TReal aMin,TReal aMax);
00073         IMPORT_C void GetMinMax(TReal& aMin,TReal& aMax) const;
00074 public: // framework
00080         IMPORT_C virtual void ConstructFromResourceL(TResourceReader& aReader);
00085         IMPORT_C virtual void PrepareForFocusLossL();
00089         IMPORT_C virtual TCoeInputCapabilities InputCapabilities() const;
00090 
00091         
00095         IMPORT_C virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
00096 
00100         IMPORT_C virtual void HandleResourceChange(TInt aType);
00101 
00107     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00108 private:
00112     IMPORT_C void* ExtensionInterface( TUid aInterface );
00113 private: // from CEikEdwin
00114                 IMPORT_C void Reserved_3();
00115 
00116 private:
00117         TReal iValue;
00118         TReal iMin;
00119         TReal iMax;
00120         TInt iSpare;
00121         };
00122 
00123 
00142 class CEikFixedPointEditor : public CAknNumericEdwin
00143         {
00144 public:
00148         IMPORT_C CEikFixedPointEditor();
00152         IMPORT_C void ConstructL(TInt aMin,TInt aMax);
00162         IMPORT_C TInt Value() const;
00167     IMPORT_C TValidationStatus GetValueAsInteger( TInt& aValue );
00174         IMPORT_C void SetValueL(const TInt* aValue);
00181         IMPORT_C void SetMinMax(TInt aMin, TInt aMax);
00188         IMPORT_C void GetMinMax(TInt& aMin, TInt& aMax) const;
00197         IMPORT_C void SetDecimalPlaces(TInt aDecimalPlaces);
00206         IMPORT_C TInt DecimalPlaces() const;
00207 public: // framework
00213         IMPORT_C virtual void ConstructFromResourceL(TResourceReader& aReader);
00218         IMPORT_C virtual void PrepareForFocusLossL();
00222         IMPORT_C virtual TCoeInputCapabilities InputCapabilities() const;
00223 
00227         IMPORT_C virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
00228 
00232         IMPORT_C virtual void HandleResourceChange(TInt aType);
00233 
00239     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00240 
00241 private:
00246         TInt RequiredNumberOfCharacters() const;
00247 private:
00251     IMPORT_C void* ExtensionInterface( TUid aInterface );
00252 private: // from CEikEdwin
00253                 IMPORT_C void Reserved_3();
00254 private:
00255         TInt iValue;
00256         TInt iMin;
00257         TInt iMax;
00258         TInt iDecimalPlaces;
00259         TInt iSpare;
00260         };
00261 #endif

Copyright © Nokia Corporation 2001-2008
Back to top