calendarui/views/inc/calenmonthgrid.h
changeset 0 f979ecb2b13e
child 18 c198609911f9
child 65 12af337248b1
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Grid of month view.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALENMONTHGRID_H
       
    21 #define CALENMONTHGRID_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <AknGrid.h>
       
    25 
       
    26 class CCalenMonthContainer;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  Grid of month view
       
    32  */
       
    33 NONSHARABLE_CLASS( CCalenMonthGrid ) : public CAknGrid 
       
    34     {
       
    35 public:  // Constructors and destructor
       
    36 
       
    37     /**
       
    38      * C++ constructor.
       
    39      * @param aFirstDayOfGrid first day of grid
       
    40      */
       
    41     CCalenMonthGrid(TTime aFirstDayOfGrid, CCalenMonthContainer* aMonthCont);
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     virtual ~CCalenMonthGrid();
       
    46 public:  // new functions
       
    47     /**
       
    48      * Return first day of grid
       
    49      * @return first day of grid
       
    50      */
       
    51     TTime FirstDayOfGrid();
       
    52     /**
       
    53      * Set argument aDay to first day of Grid
       
    54      * @param aDay New first day of grid
       
    55      */
       
    56     void SetFirstDayOfGrid(TTime aDay);
       
    57 
       
    58 protected: // From CAknGrid
       
    59     /**
       
    60      * From CAknGrid Creates CFormattedCellListBoxItemDrawer,
       
    61      * actually CCalenMonthCellListBoxItemDrawer.
       
    62      */
       
    63     void CreateItemDrawerL();
       
    64 
       
    65     /**
       
    66      * Override default scrollbar implementation to prevent scrollbar 
       
    67      * to be drawn.
       
    68      */
       
    69     void UpdateScrollBarsL();
       
    70 
       
    71 private: // new data
       
    72     
       
    73     /**
       
    74       * From CCoeControl drawing month view
       
    75       */
       
    76      void Draw(const TRect& /*aRect*/) const;
       
    77      
       
    78      /**
       
    79        * Draw secondary grid lines.
       
    80        */   
       
    81      void DrawGridLines() const;
       
    82      
       
    83      TTime iFirstDayOfGrid;
       
    84      
       
    85      CCalenMonthContainer* iMonthContainer;
       
    86      
       
    87 
       
    88     };
       
    89 
       
    90 #endif // CALENMONTHGRID_H
       
    91 
       
    92 
       
    93 // End of File