phoneuis/dialer/inc/cdialerkeypadbutton.h
branchRCL_3
changeset 6 38529f706030
parent 4 24062c24fe38
equal deleted inserted replaced
5:2a26698d78ba 6:38529f706030
    33 *  @lib dialer.lib
    33 *  @lib dialer.lib
    34 *  @since S60 v5.0
    34 *  @since S60 v5.0
    35 */
    35 */
    36 NONSHARABLE_CLASS( CDialerKeyPadButton ) : public CAknButton
    36 NONSHARABLE_CLASS( CDialerKeyPadButton ) : public CAknButton
    37     {
    37     {
       
    38     public: // Enumerations
       
    39 
       
    40         enum TDialerKeyPadButtonEvent
       
    41             {
       
    42             /* Reported to the observer when pointer is dragged outside
       
    43              * the button's area.
       
    44              */
       
    45             EEventDraggingOutsideButton = 200
       
    46             };
       
    47         
    38     public:
    48     public:
    39     
    49     
    40         /**
    50         /**
    41          * @param   aNumberLabel            The number (etc) of the key.
    51          * @param   aNumberLabel            The number (etc) of the key.
    42          *                                  Reference must remain valid until reset with SetNumLabel
    52          *                                  Reference must remain valid until reset with SetNumLabel
   131         
   141         
   132         /**
   142         /**
   133          * @see CAknButton
   143          * @see CAknButton
   134          */
   144          */
   135         void SizeChanged();
   145         void SizeChanged();
       
   146         
       
   147         /**
       
   148          * @see CAknButton
       
   149          */
       
   150         void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   136         
   151         
   137     private:
   152     private:
   138 
   153 
   139         void UpdateIconL();
   154         void UpdateIconL();
   140         void DrawIconAndText( CWindowGc& aGc ) const;
   155         void DrawIconAndText( CWindowGc& aGc ) const;
   211         /** Label containing second row of alphabets */
   226         /** Label containing second row of alphabets */
   212         TPtrC iSecondaryAlphaLabel;
   227         TPtrC iSecondaryAlphaLabel;
   213         
   228         
   214         /** Rect inside the button where icon is drawn (if available) */
   229         /** Rect inside the button where icon is drawn (if available) */
   215         TRect iIconRect;
   230         TRect iIconRect;
       
   231         
       
   232         /** Own variable for counting drag events, cannot use the one in base class */
       
   233         TInt iDragEventCounter;
   216     };
   234     };
   217 
   235 
   218 #endif // C_CDIALERKEYPADBUTTON_H
   236 #endif // C_CDIALERKEYPADBUTTON_H