idlehomescreen/widgetmanager/src/wmmaincontainer.cpp
branchRCL_3
changeset 12 9674c1a575e9
parent 11 ff572dfe6d86
child 17 b8fae6b8a148
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
    50 #include <coecntrl.h>
    50 #include <coecntrl.h>
    51 #include <featmgr.h>     // FeatureManager
    51 #include <featmgr.h>     // FeatureManager
    52 #include <hlplch.h>      // HlpLauncher
    52 #include <hlplch.h>      // HlpLauncher
    53 #include <csxhelp/hmsc.hlp.hrh>
    53 #include <csxhelp/hmsc.hlp.hrh>
    54 #include <aisystemuids.hrh>
    54 #include <aisystemuids.hrh>
       
    55 #include <babitflags.h>
    55 
    56 
    56 #include "wmcommon.h"
    57 #include "wmcommon.h"
    57 #include "wmplugin.h"
    58 #include "wmplugin.h"
    58 #include "wmmaincontainer.h"
    59 #include "wmmaincontainer.h"
    59 #include "wmmaincontainerview.h"
    60 #include "wmmaincontainerview.h"
    90 // CWmMainContainer::~CWmMainContainer()
    91 // CWmMainContainer::~CWmMainContainer()
    91 // ---------------------------------------------------------
    92 // ---------------------------------------------------------
    92 //
    93 //
    93 CWmMainContainer::~CWmMainContainer()
    94 CWmMainContainer::~CWmMainContainer()
    94 	{
    95 	{
       
    96     delete iWidgetLoader;
       
    97 
    95     RemoveCtrlsFromStack();
    98     RemoveCtrlsFromStack();
    96     Components().ResetAndDestroy();
    99     Components().ResetAndDestroy();
    97     delete iWidgetLoader;
   100     
    98     iWidgetsList = NULL;
   101     iWidgetsList = NULL;
    99     iPortalButtonOne = NULL;
   102     iPortalButtonOne = NULL;
   100     iPortalButtonTwo = NULL;
   103     iPortalButtonTwo = NULL;
   101     iFindbox = NULL;
   104     iFindbox = NULL;
   102 	delete iBgContext;
   105 	delete iBgContext;
   891 		}
   894 		}
   892     aControl->MakeVisible( ETrue );
   895     aControl->MakeVisible( ETrue );
   893     }
   896     }
   894 
   897 
   895 // ---------------------------------------------------------
   898 // ---------------------------------------------------------
       
   899 // CWmMainContainer::IsLoadingWidgets
       
   900 // ---------------------------------------------------------
       
   901 //
       
   902 TBool CWmMainContainer::IsLoadingWidgets()
       
   903     {    
       
   904     return ((iWidgetLoader && iWidgetLoader->IsLoading()) ? 
       
   905         ETrue : EFalse);
       
   906     }
       
   907 
       
   908 // ---------------------------------------------------------
   896 // CWmMainContainer::PortalSelected
   909 // CWmMainContainer::PortalSelected
   897 // ---------------------------------------------------------
   910 // ---------------------------------------------------------
   898 //
   911 //
   899 TBool CWmMainContainer::PortalSelected()
   912 TBool CWmMainContainer::PortalSelected()
   900     {    
   913     {    
  1079 void CWmMainContainer::ActivateFindPaneL( TBool aActivateAdabtive )
  1092 void CWmMainContainer::ActivateFindPaneL( TBool aActivateAdabtive )
  1080     {
  1093     {
  1081     if ( iFindbox && !iFindPaneIsVisible &&
  1094     if ( iFindbox && !iFindPaneIsVisible &&
  1082             iWidgetsList->Model()->NumberOfItems() > KMinWidgets )
  1095             iWidgetsList->Model()->NumberOfItems() > KMinWidgets )
  1083         {
  1096         {
  1084 		// enable filtering
  1097         // set column filter flag
       
  1098         TBitFlags32 bitFlag;
       
  1099         bitFlag.ClearAll(); // clear all columns
       
  1100         bitFlag.Assign( 1,1 ); // turn on column at index one
       
  1101         iFindbox->SetListColumnFilterFlags( bitFlag );
       
  1102         
       
  1103         // enable filtering
  1085         CAknFilteredTextListBoxModel* m = 
  1104         CAknFilteredTextListBoxModel* m = 
  1086                 static_cast <CAknFilteredTextListBoxModel*> ( iWidgetsList->Model() );
  1105                 static_cast <CAknFilteredTextListBoxModel*> ( iWidgetsList->Model() );
  1087         if ( m )
  1106         if ( m )
  1088             {
  1107             {
  1089             m->CreateFilterL( iWidgetsList, iFindbox );
  1108             m->CreateFilterL( iWidgetsList, iFindbox );
  1404             }
  1423             }
  1405         UpdateFocusMode();
  1424         UpdateFocusMode();
  1406         }
  1425         }
  1407     }
  1426     }
  1408 
  1427 
       
  1428 // ----------------------------------------------------
       
  1429 // CWmMainContainer::WmListBox
       
  1430 // ----------------------------------------------------
       
  1431 //
       
  1432 CWmListBox& CWmMainContainer::WmListBox()
       
  1433     {
       
  1434     return *iWidgetsList;
       
  1435     }
       
  1436 
  1409 // End of File
  1437 // End of File
  1410 
  1438