calendarui/views/inc/calenmonthgrid.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:37:27 +0300
branchRCL_3
changeset 59 aba12c885d83
parent 0 f979ecb2b13e
child 18 c198609911f9
child 65 12af337248b1
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* 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:   Grid of month view.
 *
*/



#ifndef CALENMONTHGRID_H
#define CALENMONTHGRID_H

//  INCLUDES
#include <AknGrid.h>

class CCalenMonthContainer;

// CLASS DECLARATION

/**
 *  Grid of month view
 */
NONSHARABLE_CLASS( CCalenMonthGrid ) : public CAknGrid 
    {
public:  // Constructors and destructor

    /**
     * C++ constructor.
     * @param aFirstDayOfGrid first day of grid
     */
    CCalenMonthGrid(TTime aFirstDayOfGrid, CCalenMonthContainer* aMonthCont);
    /**
     * Destructor.
     */
    virtual ~CCalenMonthGrid();
public:  // new functions
    /**
     * Return first day of grid
     * @return first day of grid
     */
    TTime FirstDayOfGrid();
    /**
     * Set argument aDay to first day of Grid
     * @param aDay New first day of grid
     */
    void SetFirstDayOfGrid(TTime aDay);

protected: // From CAknGrid
    /**
     * From CAknGrid Creates CFormattedCellListBoxItemDrawer,
     * actually CCalenMonthCellListBoxItemDrawer.
     */
    void CreateItemDrawerL();

    /**
     * Override default scrollbar implementation to prevent scrollbar 
     * to be drawn.
     */
    void UpdateScrollBarsL();

private: // new data
    
    /**
      * From CCoeControl drawing month view
      */
     void Draw(const TRect& /*aRect*/) const;
     
     /**
       * Draw secondary grid lines.
       */   
     void DrawGridLines() const;
     
     TTime iFirstDayOfGrid;
     
     CCalenMonthContainer* iMonthContainer;
     

    };

#endif // CALENMONTHGRID_H


// End of File