camerauis/cameraapp/generic/src/CamNaviCounterModel.cpp
branchRCL_3
changeset 57 2c87b2808fd7
parent 54 bac7acad7cb3
child 67 756ad29ed18e
equal deleted inserted replaced
54:bac7acad7cb3 57:2c87b2808fd7
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Control for displaying remaining images/videos in Navi Pane
    14 * Description:  Control for displaying remaining images/videos in Navi Pane
    15 *
       
    16 *  Copyright © 2007-2008 Nokia.  All rights reserved.
       
    17 *  This material, including documentation and any related computer
       
    18 *  programs, is protected by copyright controlled by Nokia.  All
       
    19 *  rights are reserved.  Copying, including reproducing, storing,
       
    20 *  adapting or translating, any or all of this material requires the
       
    21 *  prior written consent of Nokia.  This material also contains
       
    22 *  confidential information which may not be disclosed to others
       
    23 *  without the prior written consent of Nokia.
       
    24 
       
    25 *
       
    26 *
    15 *
    27 */
    16 */
    28 
    17 
    29 
    18 
    30 // INCLUDE FILES
    19 // INCLUDE FILES
   207     iSequenceCapturedTextItem = NULL;
   196     iSequenceCapturedTextItem = NULL;
   208     iSequenceCapturedTextItem = CCamTextItem::NewL();   
   197     iSequenceCapturedTextItem = CCamTextItem::NewL();   
   209         
   198         
   210     iCamOrientation = appUi->CamOrientation();
   199     iCamOrientation = appUi->CamOrientation();
   211 
   200 
   212     if ( Layout_Meta_Data::IsLandscapeOrientation() || CamUtility::IsNhdDevice() )
   201     if ( Layout_Meta_Data::IsLandscapeOrientation() || AknLayoutUtils::PenEnabled() )
   213         {
   202         {
   214         TSize screenSize;
   203         TSize screenSize;
   215         AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, screenSize ); 
   204         AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, screenSize ); 
   216         iExtent = TRect( TPoint(), screenSize );
   205         iExtent = TRect( TPoint(), screenSize );
   217         }
   206         }
   220         TRect screenRect;
   209         TRect screenRect;
   221         AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, screenRect );
   210         AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, screenRect );
   222         iExtent = screenRect;
   211         iExtent = screenRect;
   223         }
   212         }
   224 
   213 
   225     if ( CamUtility::IsNhdDevice() )
   214     if ( AknLayoutUtils::PenEnabled() )
   226         {
   215         {
   227         TouchLayoutL();
   216         TouchLayoutL();
   228         }
   217         }
   229     else
   218     else
   230         {
   219         {
  1510                                          MAknsSkinInstance* /*aSkin*/ ) const
  1499                                          MAknsSkinInstance* /*aSkin*/ ) const
  1511     {
  1500     {
  1512     // Draw self timer icons, if set to on.
  1501     // Draw self timer icons, if set to on.
  1513     if ( iDrawSelfTimer )
  1502     if ( iDrawSelfTimer )
  1514         {
  1503         {
  1515         if ( CamUtility::IsNhdDevice() )
  1504         if ( AknLayoutUtils::PenEnabled() )
  1516             {
  1505             {
  1517             aGc.SetBrushColor( KRgbWhite );
  1506             aGc.SetBrushColor( KRgbWhite );
  1518             aGc.SetBrushStyle( CGraphicsContext::ENullBrush );
  1507             aGc.SetBrushStyle( CGraphicsContext::ENullBrush );
  1519             iSelfTimerTextLayout.DrawText( aGc, iSelfTimerText, EFalse, KRgbBlack ); 
  1508             iSelfTimerTextLayout.DrawText( aGc, iSelfTimerText, EFalse, KRgbBlack ); 
  1520         
  1509