uifw/AvKon/src/AknCheckBoxSettingPage.cpp
branchRCL_3
changeset 55 aecbbf00d063
parent 25 941195f2d488
child 56 d48ab3b357f1
equal deleted inserted replaced
51:fcdfafb36fe7 55:aecbbf00d063
   144     BaseConstructL();
   144     BaseConstructL();
   145     iExtension = new(ELeave) CAknCheckBoxSettingPageExtension;
   145     iExtension = new(ELeave) CAknCheckBoxSettingPageExtension;
   146 
   146 
   147     CreateCheckBoxBitmapsL();
   147     CreateCheckBoxBitmapsL();
   148 
   148 
   149     // Only a reference to the CBase object; not owned
       
   150     CAknSetStyleListBox* listBox = ListBoxControl();
       
   151 
       
   152 	//
       
   153 	// SelectItemL make the view item drawn by default, SetDisableRedraw can remove flick
       
   154 	//
       
   155 	TBool bRedrawDisabled = listBox->View()->RedrawDisabled();
       
   156 	listBox->View()->SetDisableRedraw( ETrue );
       
   157     GenerateInternalArrayAndGiveToListBoxL();
   149     GenerateInternalArrayAndGiveToListBoxL();
   158 	listBox->View()->SetDisableRedraw( bRedrawDisabled );
       
   159 
   150 
   160     // This updates the CBA
   151     // This updates the CBA
   161     CheckAndSetDataValidity();
   152     CheckAndSetDataValidity();
   162     UpdateCbaL();
   153     UpdateCbaL();
       
   154 
       
   155     // Only a reference to the CBase object; not owned
       
   156     CAknSetStyleListBox* listBox = ListBoxControl();
   163 
   157 
   164     listBox->SetListBoxObserver(this);
   158     listBox->SetListBoxObserver(this);
   165 
   159 
   166     // Set the scroller indication to appear when needed
   160     // Set the scroller indication to appear when needed
   167     listBox->CreateScrollBarFrameL(ETrue, ETrue);
   161     listBox->CreateScrollBarFrameL(ETrue, ETrue);
   208                 }
   202                 }
   209             }
   203             }
   210         if (newResourceId)
   204         if (newResourceId)
   211             {
   205             {
   212             bgc->SetCommandL(3,newResourceId);
   206             bgc->SetCommandL(3,newResourceId);
   213             cba->DrawDeferred();
   207             cba->DrawNow();
   214             }
   208             }
   215         }
   209         }
   216 
   210 
   217     // Construct an appropriate control context for the contained editor areas.
   211     // Construct an appropriate control context for the contained editor areas.
   218     // Context produced is owned by CAknSettingPage.
   212     // Context produced is owned by CAknSettingPage.
   366 
   360 
   367     // Respond to softkey events
   361     // Respond to softkey events
   368     switch (aCommandId)
   362     switch (aCommandId)
   369         {
   363         {
   370         case EAknSoftkeySelect:
   364         case EAknSoftkeySelect:
   371             {
       
   372             if ( EnableSingleClickHighlight( aCommandId ) )
       
   373                 {
       
   374                 break;                           
       
   375                 } 
       
   376             // no single click mode was enabled, fall through
       
   377             }           
       
   378         case EAknSoftkeyMark:
   365         case EAknSoftkeyMark:
   379         case EAknSoftkeyUnmark:
   366         case EAknSoftkeyUnmark:
   380             if ( AknLayoutUtils::PenEnabled() )
   367             if ( AknLayoutUtils::PenEnabled() )
   381                 {
   368                 {
   382                 if (ListBoxControl()->View()->ItemIsVisible(ListBoxControl()->View()->CurrentItemIndex()))
   369                 if (ListBoxControl()->View()->ItemIsVisible(ListBoxControl()->View()->CurrentItemIndex()))