imageeditor/plugins/DrawPlugin/inc/CustomerComponet.h
changeset 8 18b321db4884
equal deleted inserted replaced
1:edfc90759b9f 8:18b321db4884
       
     1 /*
       
     2  ============================================================================
       
     3  Name		: CustomerComponet.h
       
     4  Author	  : henry
       
     5  Version	 : 1.0
       
     6  Copyright   : Your copyright notice
       
     7  Description : CCustomerComponet declaration
       
     8  ============================================================================
       
     9  */
       
    10 
       
    11 #ifndef CUSTOMERCOMPONET_H
       
    12 #define CUSTOMERCOMPONET_H
       
    13 
       
    14 // INCLUDES
       
    15 #include <e32std.h>
       
    16 #include <e32base.h>
       
    17 #include <coecntrl.h>
       
    18 #include "CImageLabel.h"
       
    19 #include <COECOBS.H> 
       
    20 // CLASS DECLARATION
       
    21 
       
    22 /**
       
    23  *  CCustomerComponet
       
    24  * 
       
    25  */
       
    26 
       
    27 class CCustomerComponet : public CCoeControl
       
    28 	{
       
    29 public:
       
    30 	// Constructors and destructor
       
    31 
       
    32 	/**
       
    33 	 * Destructor.
       
    34 	 */
       
    35 	~CCustomerComponet();
       
    36 
       
    37 	/**
       
    38 	 * Two-phased constructor.
       
    39 	 */
       
    40 	static CCustomerComponet* NewL(TRect & aRect, CCoeControl* aParent);
       
    41 
       
    42 	/**
       
    43 	 * Two-phased constructor.
       
    44 	 */
       
    45 	static CCustomerComponet* NewLC(TRect & aRect, CCoeControl* aParent);
       
    46 
       
    47 	/**
       
    48 	 * Draw() 
       
    49 	 */
       
    50 	void Draw(const TRect& aRect) const;
       
    51 
       
    52 	/**
       
    53 	 * Handling pointer Event.
       
    54 	 */
       
    55 	void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    56 
       
    57 	/**
       
    58 	 * Set Rect for the componet.
       
    59 	 */
       
    60 	void SetRect(TRect& aRect);
       
    61 
       
    62 protected:
       
    63 
       
    64 	void SizeChanged();
       
    65 
       
    66 private:
       
    67 
       
    68 	/**
       
    69 	 * Constructor for performing 1st stage construction
       
    70 	 */
       
    71 	CCustomerComponet();
       
    72 
       
    73 	/**
       
    74 	 * EPOC default constructor for performing 2nd stage construction
       
    75 	 */
       
    76 	void ConstructL(TRect & aRect, CCoeControl* aParent);
       
    77 public:
       
    78 	/**
       
    79 	 * SetHandlePointerObserver
       
    80 	 */
       
    81 	void SetHandlePointerObserver(
       
    82 			MHandlePointerObserver* aHandlePointerObserver);
       
    83 
       
    84 	TBool GetButtonType();
       
    85 private:
       
    86 	TInt iDrawDirection;
       
    87 	CFbsBitmap* iMenu;
       
    88 	CFbsBitmap* iMenuMask;
       
    89 	CFbsBitmap* iRight;
       
    90 	CFbsBitmap* iRightMask;
       
    91 	CFbsBitmap* iLeft;
       
    92 	CFbsBitmap* iTop;
       
    93 	CFbsBitmap* iBottom;
       
    94 	CFbsBitmap* iLeftMask;
       
    95 	CFbsBitmap* iTopMask;
       
    96 	CFbsBitmap* iBottomMask;
       
    97 	MHandlePointerObserver* iPointerObserver;
       
    98 	TBool iButtonFlag;
       
    99 	};
       
   100 
       
   101 #endif // CUSTOMERCOMPONET_H