camerauis/cameraapp/generic/src/CamNaviCounterModel.cpp
branchRCL_3
changeset 67 756ad29ed18e
parent 57 2c87b2808fd7
equal deleted inserted replaced
62:f0c0788c4de2 67:756ad29ed18e
    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 *
    15 *
    26 *
    16 */
    27 */
    17 
    28 
    18 
    29 
    19 // INCLUDE FILES
    30 // INCLUDE FILES
   196     iSequenceCapturedTextItem = NULL;
   207     iSequenceCapturedTextItem = NULL;
   197     iSequenceCapturedTextItem = CCamTextItem::NewL();   
   208     iSequenceCapturedTextItem = CCamTextItem::NewL();   
   198         
   209         
   199     iCamOrientation = appUi->CamOrientation();
   210     iCamOrientation = appUi->CamOrientation();
   200 
   211 
   201     if ( Layout_Meta_Data::IsLandscapeOrientation() || AknLayoutUtils::PenEnabled() )
   212     if ( Layout_Meta_Data::IsLandscapeOrientation() || CamUtility::IsNhdDevice() )
   202         {
   213         {
   203         TSize screenSize;
   214         TSize screenSize;
   204         AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, screenSize ); 
   215         AknLayoutUtils::LayoutMetricsSize( AknLayoutUtils::EScreen, screenSize ); 
   205         iExtent = TRect( TPoint(), screenSize );
   216         iExtent = TRect( TPoint(), screenSize );
   206         }
   217         }
   209         TRect screenRect;
   220         TRect screenRect;
   210         AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, screenRect );
   221         AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, screenRect );
   211         iExtent = screenRect;
   222         iExtent = screenRect;
   212         }
   223         }
   213 
   224 
   214     if ( AknLayoutUtils::PenEnabled() )
   225     if ( CamUtility::IsNhdDevice() )
   215         {
   226         {
   216         TouchLayoutL();
   227         TouchLayoutL();
   217         }
   228         }
   218     else
   229     else
   219         {
   230         {
  1499                                          MAknsSkinInstance* /*aSkin*/ ) const
  1510                                          MAknsSkinInstance* /*aSkin*/ ) const
  1500     {
  1511     {
  1501     // Draw self timer icons, if set to on.
  1512     // Draw self timer icons, if set to on.
  1502     if ( iDrawSelfTimer )
  1513     if ( iDrawSelfTimer )
  1503         {
  1514         {
  1504         if ( AknLayoutUtils::PenEnabled() )
  1515         if ( CamUtility::IsNhdDevice() )
  1505             {
  1516             {
  1506             aGc.SetBrushColor( KRgbWhite );
  1517             aGc.SetBrushColor( KRgbWhite );
  1507             aGc.SetBrushStyle( CGraphicsContext::ENullBrush );
  1518             aGc.SetBrushStyle( CGraphicsContext::ENullBrush );
  1508             iSelfTimerTextLayout.DrawText( aGc, iSelfTimerText, EFalse, KRgbBlack ); 
  1519             iSelfTimerTextLayout.DrawText( aGc, iSelfTimerText, EFalse, KRgbBlack ); 
  1509         
  1520