uifw/AvKon/src/akntitle.cpp
branchRCL_3
changeset 5 aabf2c525e0f
parent 3 8ca85d2f0db7
child 6 9f56a4e1b8ab
equal deleted inserted replaced
3:8ca85d2f0db7 5:aabf2c525e0f
    94     TInt                     iCurrentNumberOfTextLines;
    94     TInt                     iCurrentNumberOfTextLines;
    95     TInt                     iLimitedNumberOfTextLines;
    95     TInt                     iLimitedNumberOfTextLines;
    96 
    96 
    97     TBool                    iImageAutoscaling;
    97     TBool                    iImageAutoscaling;
    98     TBool                    iSmallImageAutoscaling;
    98     TBool                    iSmallImageAutoscaling;
       
    99     
       
   100     CEikStatusPaneBase*      iStatusPane;
    99     };
   101     };
   100 
   102 
   101 
   103 
   102 // ----------------------------------------------------------------------------
   104 // ----------------------------------------------------------------------------
   103 // CAknTitlePaneExtension::NewL
   105 // CAknTitlePaneExtension::NewL
   210     if ( AknLayoutUtils::PenEnabled() )
   212     if ( AknLayoutUtils::PenEnabled() )
   211         {
   213         {
   212         // set flags to default values
   214         // set flags to default values
   213         iExtension->iFlags = 0;
   215         iExtension->iFlags = 0;
   214         }
   216         }
       
   217     
       
   218     iExtension->iStatusPane = CEikStatusPaneBase::Current();
       
   219     	
   215     }
   220     }
   216 
   221 
   217 
   222 
   218 // ----------------------------------------------------------------------------
   223 // ----------------------------------------------------------------------------
   219 // CAknTitlePane::ConstructFromResourceL
   224 // CAknTitlePane::ConstructFromResourceL
   674 // Draws the title pane.
   679 // Draws the title pane.
   675 // ----------------------------------------------------------------------------
   680 // ----------------------------------------------------------------------------
   676 //
   681 //
   677 EXPORT_C void CAknTitlePane::Draw( const TRect& aRect ) const
   682 EXPORT_C void CAknTitlePane::Draw( const TRect& aRect ) const
   678     {
   683     {
   679     const TUid KActiveIdle2Uid = {0x102750F0};
   684     	      
   680 
   685     if ( iExtension->iStatusPane && 
   681     if ( AppUid() == KActiveIdle2Uid )
   686          iExtension->iStatusPane->IsTransparent() )
   682         {
   687         {
   683         CWindowGc& gc = SystemGc();
   688         CWindowGc& gc = SystemGc();
   684         TRgb rgb(TRgb::Color16MA(0));
   689         TRgb rgb(TRgb::Color16MA(0));
   685         gc.SetDrawMode(CGraphicsContext::EDrawModeWriteAlpha);
   690         gc.SetDrawMode(CGraphicsContext::EDrawModeWriteAlpha);
   686         gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
   691         gc.SetBrushStyle(CGraphicsContext::ESolidBrush);