calendarui/multicaluidialog/src/caldblistbox.cpp
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2  * Copyright (c) 2009 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 : Implemrntation class for calenlistdialog .
       
    15  */
       
    16 
       
    17 //System include
       
    18 #include <calsession.h>
       
    19 #include <calentryview.h>
       
    20 #include <calcalendarinfo.h>
       
    21 #include <StringLoader.h>
       
    22 #include <AknsBasicBackgroundControlContext.h>
       
    23 #include <aknconsts.h>
       
    24 #include <AknIconArray.h>
       
    25 #include <aknlists.h>
       
    26 #include <akntitle.h>
       
    27 #include <eikclbd.h>
       
    28 #include <aknnavi.h>
       
    29 #include <aknlayoutscalable_apps.cdl.h>
       
    30 #include <layoutmetadata.cdl.h>
       
    31 #include <data_caging_path_literals.hrh>
       
    32 #include <pathinfo.h>
       
    33 #include <bautils.h>
       
    34 #include <aknenv.h>
       
    35 #include <eikapp.h>
       
    36 #include <eikenv.h>
       
    37 #include <gulicon.h>
       
    38 #include <multicaluidialog.rsg>
       
    39 #include <multicaluidialog.mbg>
       
    40 
       
    41 //User include
       
    42 #include "multicaluidialogimpl.h"
       
    43 #include "multicaluidialogmodel.h"
       
    44 #include "calendarui_debug.h"
       
    45 #include "caldblistbox.h"
       
    46 
       
    47 
       
    48 
       
    49 // ----------------------------------------------------------------------------
       
    50 // CCalenDbListbox::CCalenDbListbox
       
    51 // (other items were commented in a header).
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 CCalenDbListbox::CCalenDbListbox(const RArray<TInt32>& aColorUidArray) :
       
    55                                                             iColorUidArray(aColorUidArray)
       
    56     {
       
    57     TRACE_ENTRY_POINT
       
    58     
       
    59     TRACE_EXIT_POINT
       
    60     }
       
    61                                                 
       
    62 // ----------------------------------------------------------------------------
       
    63 // CCalenDbListbox::CreateItemDrawerL
       
    64 // (other items were commented in a header).
       
    65 // ----------------------------------------------------------------------------
       
    66 //
       
    67 void CCalenDbListbox::CreateItemDrawerL()
       
    68     {
       
    69     TRACE_ENTRY_POINT
       
    70     CFormattedCellListBoxData* cellData=CFormattedCellListBoxData::NewL();
       
    71     CleanupStack::PushL( cellData );
       
    72     iItemDrawer=new(ELeave) CCalenDbListboxItemDrawer(
       
    73                         Model(), iEikonEnv->NormalFont(), cellData, this,iColorUidArray);
       
    74     CleanupStack::Pop();
       
    75     TRACE_EXIT_POINT
       
    76     }
       
    77 
       
    78 // ----------------------------------------------------------------------------
       
    79 // CCalenDbListbox::SizeChanged
       
    80 // (other items were commented in a header).
       
    81 // ----------------------------------------------------------------------------
       
    82 //
       
    83 void CCalenDbListbox::SizeChanged()
       
    84     {
       
    85     TRACE_ENTRY_POINT
       
    86     
       
    87     TRAP_IGNORE(SizeChangedL());
       
    88     
       
    89     TRACE_EXIT_POINT
       
    90     }
       
    91 
       
    92 // ----------------------------------------------------------------------------
       
    93 // CCalenDbListbox::SizeChangedL
       
    94 // ----------------------------------------------------------------------------
       
    95 //
       
    96 void CCalenDbListbox::SizeChangedL()
       
    97     {
       
    98     TRACE_ENTRY_POINT
       
    99     
       
   100     CAknDoubleGraphicStyleListBox::SizeChanged();
       
   101     
       
   102     TRACE_EXIT_POINT
       
   103     }
       
   104 
       
   105 // End of file.