123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #ifndef EXPENSESLISTBOX_H
- #define EXPENSESLISTBOX_H
- #include <coecntrl.h>
- class MEikCommandObserver;
- class CAknSingleHeadingStyleListBox;
- class CEikTextListBox;
- class CExpensesListBox : public CCoeControl
- {
- public:
-
- CExpensesListBox();
- static CExpensesListBox* NewL(
- const TRect& aRect,
- const CCoeControl* aParent,
- MEikCommandObserver* aCommandObserver );
- static CExpensesListBox* NewLC(
- const TRect& aRect,
- const CCoeControl* aParent,
- MEikCommandObserver* aCommandObserver );
- void ConstructL(
- const TRect& aRect,
- const CCoeControl* aParent,
- MEikCommandObserver* aCommandObserver );
- virtual ~CExpensesListBox();
- public:
-
- TInt CountComponentControls() const;
- CCoeControl* ComponentControl( TInt aIndex ) const;
- TKeyResponse OfferKeyEventL(
- const TKeyEvent& aKeyEvent,
- TEventCode aType );
- void HandleResourceChange( TInt aType );
-
- protected:
-
- void SizeChanged();
- private:
-
- void Draw( const TRect& aRect ) const;
- private:
- void InitializeControlsL();
- void LayoutControls();
- CCoeControl* iFocusControl;
- MEikCommandObserver* iCommandObserver;
-
- public:
- static void AddListBoxItemL(
- CEikTextListBox* aListBox,
- const TDesC& aString );
- static RArray< TInt >* GetSelectedListBoxItemsLC( CEikTextListBox* aListBox );
- static void DeleteSelectedListBoxItemsL( CEikTextListBox* aListBox );
- CAknSingleHeadingStyleListBox* ListBox();
- static void CreateListBoxItemL( TDes& aBuffer,
- const TDesC& aHeadingText,
- const TDesC& aMainText );
- void AddListBoxResourceArrayItemL( TInt aResourceId );
- void SetupListBoxIconsL();
- TBool HandleMarkableListCommandL( TInt aCommand );
-
-
-
- public:
-
-
-
- private:
- CAknSingleHeadingStyleListBox* iListBox;
-
-
-
-
- protected:
-
-
-
-
- protected:
-
-
- public:
- enum TControls
- {
-
- EListBox,
-
-
-
-
-
- ELastControl
- };
- enum TListBoxImages
- {
-
- EListBoxFirstUserImageIndex
-
-
-
- };
- };
-
- #endif
|