Common/Inc/ImagicConsts.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IMAGICCONSTS_H__
       
    19 #define __IMAGICCONSTS_H__
       
    20 
       
    21 //Feature definition flags
       
    22 #define USE_BITMAPS_TNS //Set on if want to use Symbian Bitmap TNs 
       
    23 //#define USE_RGBA //Set on if want to use RBGA(RGB+Alpha) bitmaps
       
    24 
       
    25 #ifdef __WINS__
       
    26     #undef _S60_5x_ACCELEROMETER_
       
    27     #define _S60_3x_ACCELEROMETER_
       
    28     #define _ACCELEROMETER_SUPPORTED_
       
    29 #else
       
    30     #define _ACCELEROMETER_SUPPORTED_
       
    31 #ifdef __S60_50__
       
    32     #define _S60_5x_ACCELEROMETER_
       
    33 #else
       
    34     #define _S60_3x_ACCELEROMETER_
       
    35 #endif
       
    36 #endif
       
    37 
       
    38 
       
    39 struct FloatCoords
       
    40     {
       
    41     float iX;
       
    42     float iY;
       
    43     };
       
    44 
       
    45 //App UI Feature definition flags
       
    46 //#define BUBLE_EFFECT
       
    47 #define DRAW_FRAME
       
    48 //#define MIPMAPPING
       
    49 #define SUPERZOOM
       
    50 #define IMAGIC_DATABASE
       
    51 #define FACE_DETECTION
       
    52 //#define SHADOW_PHOTOS
       
    53 //#define EMPTY_IMAGE_AS_BMP       
       
    54 #define EMPTY_IMAGE_AS_WIREFRAME
       
    55 #define GAP_BETWEEN_FOLDERS
       
    56 //#define PEOPLE_VIEW
       
    57 
       
    58 /**
       
    59 * EXIF data DateTimeOriginal length
       
    60 */
       
    61 const TInt KPMMExifDateTimeOriginalLength = 20;
       
    62 
       
    63 
       
    64 _LIT(KEmptyString, "");
       
    65 _LIT(KSpace, " ");
       
    66 _LIT(KHash, "#");
       
    67 _LIT(KZero, "0");
       
    68 _LIT(KUnderScr, "_");
       
    69 _LIT(KDot, ".");
       
    70 _LIT(KSlash, "/");
       
    71 //_LIT(KNewLine, "\n\r");
       
    72 _LIT(KNewLine, "\r");
       
    73 
       
    74 _LIT(KPAlbTNFilePath, "_PAlbTN");
       
    75 
       
    76 _LIT(K32x32TNFilePath, "_PAlbTN\\IEImagicTN_32x32\\");
       
    77 _LIT(K128x96TNFilePath, "_PAlbTN\\");
       
    78 _LIT(K128x128TNFilePath, "_PAlbTN\\IEImagicTN_128x128\\");
       
    79 _LIT(K512x512TNFilePath, "_PAlbTN\\IEImagicTN_512x512\\");
       
    80 
       
    81 _LIT( K32x32Ext, "_32x32" );
       
    82 _LIT( K128x96Ext, "_128x96" );
       
    83 _LIT( K128x128Ext, "_128x128" );
       
    84 _LIT( K512x512Ext, "_512x512" );
       
    85 
       
    86 _LIT(KFaces, "ImagicFaces\\");
       
    87 _LIT8(KFaceCoordsHeader, "Face Coordinates");
       
    88 _LIT8(KFaceCoordsImagicVersion, "Imagic v2.1:");
       
    89 
       
    90 _LIT(KRootPathFDrive, "F:\\");
       
    91 _LIT(KRootPathCDrive, "C:\\");
       
    92 
       
    93 #ifdef __WINS__
       
    94     _LIT(KFacesPath, "ImagicFaces");
       
    95     _LIT(KRootImagePath, "C:\\Images\\");
       
    96     _LIT(ImagePath, "Images\\");
       
    97     _LIT(KRootFacesImagePath, "C:\\Images\\ImagicFaces");
       
    98 #else
       
    99     _LIT(KFacesPath, "ImagicFaces");
       
   100     //_LIT(KRootImagePath, "E:\\Images\\");
       
   101     _LIT(ImagePath, "Images\\");
       
   102     _LIT(KRootFacesImagePath, "E:\\Images\\ImagicFaces");
       
   103 #endif
       
   104 
       
   105 _LIT(KCRootBgroundImages, "C:\\Images\\Data\\Backgrounds");
       
   106 _LIT(KFileString, "*.JPG");
       
   107 
       
   108 #ifdef __WINS__
       
   109 _LIT(KSmileFileName, "c:\\data\\smile.mbm");
       
   110 _LIT(KZoomFileName, "c:\\data\\zoom.mbm");
       
   111 _LIT(KLoadingFileName, "c:\\data\\loading.mbm");
       
   112 _LIT(KExitFileName, "c:\\data\\exit.mbm");
       
   113 _LIT(KMenuFileName, "c:\\data\\menu.mbm");
       
   114 _LIT(KShadowFileName, "c:\\data\\shadow.mbm");
       
   115 #else
       
   116 _LIT(KSmileFileName, "c:\\resource\\apps\\smile.mbm");
       
   117 _LIT(KZoomFileName, "c:\\resource\\apps\\zoom.mbm");
       
   118 _LIT(KLoadingFileName, "c:\\resource\\apps\\loading.mbm");
       
   119 _LIT(KExitFileName, "c:\\resource\\apps\\exit.mbm");
       
   120 _LIT(KMenuFileName, "c:\\resource\\apps\\menu.mbm");
       
   121 _LIT(KShadowFileName, "c:\\resource\\apps\\shadow.mbm");
       
   122 #endif
       
   123 
       
   124 #define USE_SETTINGS_FILE
       
   125 #ifdef __WINS__
       
   126 _LIT(KSettingFileName,"C:\\data\\photobrowser.cfg");
       
   127 #else
       
   128 _LIT(KSettingFileName,"C:\\data\\photobrowser.cfg");
       
   129 #endif
       
   130 
       
   131 #endif