browserui/browser/FeedsSrc/FeedsTopicView.cpp
changeset 27 481242ead638
parent 24 868cceedabd3
child 45 5a044f6358c2
equal deleted inserted replaced
26:97c9f46387be 27:481242ead638
    73 // -----------------------------------------------------------------------------
    73 // -----------------------------------------------------------------------------
    74 //
    74 //
    75 void CFeedsTopicView::ConstructL(TRect& aRect)
    75 void CFeedsTopicView::ConstructL(TRect& aRect)
    76     {
    76     {
    77     BaseConstructL(R_FEEDS_TOPIC_VIEW);
    77     BaseConstructL(R_FEEDS_TOPIC_VIEW);
    78     
    78 
       
    79 #ifndef BRDO_SINGLE_CLICK_ENABLED_FF
    79     iContainer = CFeedsTopicContainer::NewL( this, ApiProvider(), aRect );
    80     iContainer = CFeedsTopicContainer::NewL( this, ApiProvider(), aRect );
    80     iContainer->MakeVisible(EFalse);
    81     iContainer->MakeVisible(EFalse);
    81         
    82     
    82     if(iPenEnabled)
    83     if(iPenEnabled)
    83         {
    84         {
    84         Toolbar()->SetToolbarObserver(this);;        
    85         Toolbar()->SetToolbarObserver(this);       
    85         }
    86         }
       
    87 #endif    
    86     }
    88     }
    87 
    89 
    88 
    90 
    89 // -----------------------------------------------------------------------------
    91 // -----------------------------------------------------------------------------
    90 // CFeedsTopicView::~CFeedsTopicView
    92 // CFeedsTopicView::~CFeedsTopicView
   178 //
   180 //
   179 void CFeedsTopicView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, 
   181 void CFeedsTopicView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, 
   180         TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/)
   182         TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/)
   181     {
   183     {
   182 
   184 
       
   185 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF
       
   186     if (!iContainer)
       
   187         {
       
   188         iContainer = CFeedsTopicContainer::NewL( this, ApiProvider(), ClientRect() );
       
   189         iContainer->MakeVisible(EFalse);
       
   190         }
       
   191     Toolbar()->SetToolbarVisibility(EFalse,EFalse);
       
   192 #endif    
   183     // If need be, add the container to the control stack.
   193     // If need be, add the container to the control stack.
   184     if (!iContainerOnStack)
   194     if (!iContainerOnStack)
   185         {
   195         {
   186         AppUi()->AddToViewStackL(*this, iContainer);
   196         AppUi()->AddToViewStackL(*this, iContainer);
   187         iContainer->SetRect(ClientRect());
   197         iContainer->SetRect(ClientRect());
   274 // -----------------------------------------------------------------------------
   284 // -----------------------------------------------------------------------------
   275 //
   285 //
   276 
   286 
   277 void CFeedsTopicView::UpdateToolbarButtonsState()
   287 void CFeedsTopicView::UpdateToolbarButtonsState()
   278     {
   288     {
       
   289 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF
       
   290     Toolbar()->SetToolbarVisibility(EFalse,EFalse);
       
   291     return;
       
   292 #endif    
   279     if (iApiProvider.IsPageLoaded())
   293     if (iApiProvider.IsPageLoaded())
   280         {
   294         {
   281         Toolbar()->SetItemDimmed(EFeedsBackToPage, EFalse, ETrue);     
   295         Toolbar()->SetItemDimmed(EFeedsBackToPage, EFalse, ETrue);     
   282         }
   296         }
   283     else
   297     else