calendarui/views/inc/calendaylistboxitemdrawer.h
author andy simpson <andrews@symbian.org>
Thu, 02 Sep 2010 15:47:07 +0100
branchRCL_3
changeset 67 1539a383d7b6
parent 36 9c5b1510919f
parent 66 bd7edf625bdd
permissions -rw-r--r--
Merge after removal of incorrect RCL_3 drop

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Customized drawing of CalenDayListBoxData.
 *                DrawItemText() passes extended parameters to CCalenDayListBoxData.
 *
*/



#ifndef CALENDAYLISTBOXITEMDRAWER_H
#define CALENDAYLISTBOXITEMDRAWER_H

//  INCLUDES
#include <eikfrlb.h>


// FORWARD DECLARATIONS
class CEikListBox;
struct SAknLayoutGfx;

//  CLASS DEFINITIONS

/**
 *  Customized drawing of CCalenDayListBoxData.
 *  DrawItemText() passes extended parameter to CCalenDayListBoxData
 */
NONSHARABLE_CLASS( CCalenDayListBoxItemDrawer ) : public CFormattedCellListBoxItemDrawer
    {
public:     // New function
    /**
     * C++ constructor.
     * @param aTextListBoxModel Listbox data Listbox
     * @param aFont Drawing font
     * @param aFormattedCellData Data drawing class
     * @param aListBox Listbox class
     */
    CCalenDayListBoxItemDrawer(MTextListBoxModel* aTextListBoxModel,
                                        const CFont* aFont,
                                        CFormattedCellListBoxData* aFormattedCellData,
                                        CEikListBox* aListBox);
    /**
     * Destructor.
     */
    virtual ~CCalenDayListBoxItemDrawer();

private:   // from CTextListItemDrawer
    /**
     * From CTextListItemDrawer
     * Passes a parameter to CFormattedCellListBoxData.
     */
    void DrawItemText(TInt aItemIndex, const TRect& aItemTextRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aItemIsSelected) const;

private:    // data
    CEikListBox* iListBox;
    mutable TUint32 iColor;
    mutable TInt iColorStripHeight; //color strip height  
    mutable TRect iColorStripRect; // color strip rect 
    
    };

#endif // CALENDAYLISTBOXITEMDRAWER_H

// End of File