inc/glxscreenresolutions.h
branchRCL_3
changeset 59 8e5f6eea9c9f
equal deleted inserted replaced
57:ea65f74e6de4 59:8e5f6eea9c9f
       
     1 /*
       
     2 * Copyright (c) 2008-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:
       
    13 *
       
    14 * Description:   Screen resolutions
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef T_GLXSCREENRESOLUTIONSINFO_H
       
    21 #define T_GLXSCREENRESOLUTIONSINFO_H
       
    22     
       
    23 /*
       
    24 * Device supports 360x640 resolution (QHD portrait, touch screen)
       
    25 */
       
    26 #ifdef __LAYOUT_360_640_TOUCH
       
    27     // Persistent thumbnail sizes
       
    28     const TInt KGlxThumbnailSmallWidth = 111;
       
    29     const TInt KGlxThumbnailSmallHeight = 83;
       
    30     const TInt KGlxThumbnailLargeWidth = 640;
       
    31     const TInt KGlxThumbnailLargeHeight = 360;
       
    32     const TInt KGlxThumbnailPortraitWidth = 360;
       
    33     const TInt KGlxThumbnailPortraitHeight = 640;
       
    34 
       
    35     
       
    36 /*
       
    37  * Device supports 640x360 resolution (QHD landscape, touch screen)
       
    38  */
       
    39 #elif defined  __LAYOUT_640_360_TOUCH
       
    40     // Persistent thumbnail sizes   
       
    41     const TInt KGlxThumbnailSmallWidth = 83;
       
    42     const TInt KGlxThumbnailSmallHeight = 111;
       
    43     const TInt KGlxThumbnailLargeWidth = 640;
       
    44     const TInt KGlxThumbnailLargeHeight = 360;
       
    45     const TInt KGlxThumbnailPortraitWidth = 360;
       
    46     const TInt KGlxThumbnailPortraitHeight = 640;
       
    47 
       
    48 /*
       
    49 * Device supports 240x320 resolution (QVGA)
       
    50 */
       
    51 #elif defined __LAYOUT_240_320
       
    52 		// Persistent thumbnail sizes
       
    53     const TInt KGlxThumbnailSmallWidth = 56;
       
    54     const TInt KGlxThumbnailSmallHeight = 42;
       
    55     const TInt KGlxThumbnailLargeWidth = 320;
       
    56     const TInt KGlxThumbnailLargeHeight = 240;
       
    57     const TInt KGlxThumbnailPortraitWidth = 240;
       
    58     const TInt KGlxThumbnailPortraitHeight = 320;
       
    59 
       
    60 /*
       
    61 * Device supports 320x240 resolution (QVGA landscape)
       
    62 */
       
    63 #elif defined __LAYOUT_320_240
       
    64 		// Persistent thumbnail sizes
       
    65     const TInt KGlxThumbnailSmallWidth = 42;
       
    66     const TInt KGlxThumbnailSmallHeight = 56;
       
    67     const TInt KGlxThumbnailLargeWidth = 240;
       
    68     const TInt KGlxThumbnailLargeHeight = 320;
       
    69     const TInt KGlxThumbnailPortraitWidth = 320;
       
    70     const TInt KGlxThumbnailPortraitHeight = 240;
       
    71 
       
    72 /*
       
    73 * Device supports 176x208 resolution
       
    74 *
       
    75 * Feature not supported, this flag must be always undefined. Do not edit this !
       
    76 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
    77 * The values are calculated roughly, should be modified with real values later
       
    78 */
       
    79 #elif defined  __LAYOUT176_208
       
    80 //to-do add the values to constants according to the resolutions and requirements
       
    81 		// Persistent thumbnail sizes
       
    82     const TInt KGlxThumbnailSmallWidth = 36;
       
    83     const TInt KGlxThumbnailSmallHeight = 28;
       
    84     const TInt KGlxThumbnailLargeWidth = 208;
       
    85     const TInt KGlxThumbnailLargeHeight = 176;
       
    86     const TInt KGlxThumbnailPortraitWidth = 176;
       
    87     const TInt KGlxThumbnailPortraitHeight = 208;
       
    88     
       
    89 /*
       
    90 * Device supports 208x176 resolution
       
    91 *
       
    92 * Feature not supported, this flag must be always undefined. Do not edit this !
       
    93 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
    94 * The values are calculated roughly, should be modified with real values later
       
    95 */
       
    96 #elif defined __LAYOUT208_176    
       
    97 //to-do add the values to constants according to the resolutions and requirements
       
    98 		// Persistent thumbnail sizes
       
    99     const TInt KGlxThumbnailSmallWidth = 28;
       
   100     const TInt KGlxThumbnailSmallHeight = 36;
       
   101     const TInt KGlxThumbnailLargeWidth = 176;
       
   102     const TInt KGlxThumbnailLargeHeight = 208;
       
   103     const TInt KGlxThumbnailPortraitWidth = 208;
       
   104     const TInt KGlxThumbnailPortraitHeight = 176;
       
   105 
       
   106 /*
       
   107 * Device supports 208x208 resolution (square)
       
   108 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   109 * The values are calculated roughly, should be modified with real values later
       
   110 */
       
   111 #elif defined __LAYOUT208_208    
       
   112  //to-do add the values to constants according to the resolutions and requirements
       
   113 		// Persistent thumbnail sizes
       
   114     const TInt KGlxThumbnailSmallWidth = 36;
       
   115     const TInt KGlxThumbnailSmallHeight = 36;
       
   116     const TInt KGlxThumbnailLargeWidth = 208;
       
   117     const TInt KGlxThumbnailLargeHeight = 208;
       
   118     const TInt KGlxThumbnailPortraitWidth = 208;
       
   119     const TInt KGlxThumbnailPortraitHeight = 208;
       
   120     
       
   121 /*
       
   122 * Device supports 352x416 resolution (double)
       
   123 *
       
   124 * Feature not supported, this flag must be always undefined. Do not edit this !
       
   125 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   126 * The values are calculated roughly, should be modified with real values later
       
   127 */
       
   128 #elif defined __LAYOUT_352_416     
       
   129 //to-do add the values to constants according to the resolutions and requirements
       
   130 		// Persistent thumbnail sizes
       
   131     const TInt KGlxThumbnailSmallWidth = 72;
       
   132     const TInt KGlxThumbnailSmallHeight = 55;
       
   133     const TInt KGlxThumbnailLargeWidth = 416;
       
   134     const TInt KGlxThumbnailLargeHeight = 352;
       
   135     const TInt KGlxThumbnailPortraitWidth = 352;
       
   136     const TInt KGlxThumbnailPortraitHeight = 416;
       
   137 
       
   138 
       
   139 /*
       
   140 * Device supports 416x352 resolution (double landscape)
       
   141 *
       
   142 * Feature not supported, this flag must be always undefined. Do not edit this !
       
   143 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   144 * The values are calculated roughly, should be modified with real values later
       
   145 */
       
   146 #elif defined __LAYOUT_416_352
       
   147 //to-do add the values to constants according to the resolutions and requirements
       
   148 		// Persistent thumbnail sizes
       
   149     const TInt KGlxThumbnailSmallWidth = 55;
       
   150     const TInt KGlxThumbnailSmallHeight = 72;
       
   151     const TInt KGlxThumbnailLargeWidth = 352;
       
   152     const TInt KGlxThumbnailLargeHeight = 416;
       
   153     const TInt KGlxThumbnailPortraitWidth = 416;
       
   154     const TInt KGlxThumbnailPortraitHeight = 352;
       
   155     
       
   156 /*
       
   157 * Device supports 480x640 resolution (VGA portrait)
       
   158 *
       
   159 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   160 * The values are calculated roughly, should be modified with real values later
       
   161 */
       
   162 #elif defined __LAYOUT_480_640
       
   163 //to-do add the values to constants according to the resolutions and requirements
       
   164 		// Persistent thumbnail sizes
       
   165     const TInt KGlxThumbnailSmallWidth = 146;
       
   166     const TInt KGlxThumbnailSmallHeight = 110;
       
   167     const TInt KGlxThumbnailLargeWidth = 640;
       
   168     const TInt KGlxThumbnailLargeHeight = 480;
       
   169     const TInt KGlxThumbnailPortraitWidth = 480;
       
   170     const TInt KGlxThumbnailPortraitHeight = 640;
       
   171     
       
   172 /*
       
   173 * Device supports 640x480 resolution (VGA landscape)
       
   174 *
       
   175 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   176 * The values are calculated roughly, should be modified with real values later
       
   177 */
       
   178 #elif defined __LAYOUT_640_480
       
   179 //to-do add the values to constants according to the resolutions and requirements
       
   180 		// Persistent thumbnail sizes
       
   181     const TInt KGlxThumbnailSmallWidth = 110;
       
   182     const TInt KGlxThumbnailSmallHeight = 146;
       
   183     const TInt KGlxThumbnailLargeWidth = 480;
       
   184     const TInt KGlxThumbnailLargeHeight = 640;
       
   185     const TInt KGlxThumbnailPortraitWidth = 640;
       
   186     const TInt KGlxThumbnailPortraitHeight = 480;
       
   187     
       
   188   
       
   189 /*
       
   190 * Device supports 320x480 resolution (HVGA portrait)
       
   191 *
       
   192 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   193 * The values are calculated roughly, should be modified with real values later
       
   194 */
       
   195 #elif defined __LAYOUT_320_480
       
   196 //to-do add the values to constants according to the resolutions and requirements
       
   197 		// Persistent thumbnail sizes
       
   198     const TInt KGlxThumbnailSmallWidth = 56;
       
   199     const TInt KGlxThumbnailSmallHeight = 42;
       
   200     const TInt KGlxThumbnailLargeWidth = 480;
       
   201     const TInt KGlxThumbnailLargeHeight = 320;
       
   202     const TInt KGlxThumbnailPortraitWidth = 320;
       
   203     const TInt KGlxThumbnailPortraitHeight = 480;
       
   204     
       
   205 
       
   206 /*
       
   207 * Device supports 480x320 resolution (HVGA landscape)
       
   208 *
       
   209 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   210 * The values are calculated roughly, should be modified with real values later
       
   211 */
       
   212 #elif defined __LAYOUT_480_320
       
   213 //to-do add the values to constants according to the resolutions and requirements
       
   214 		// Persistent thumbnail sizes
       
   215     const TInt KGlxThumbnailSmallWidth = 42;
       
   216     const TInt KGlxThumbnailSmallHeight = 56;
       
   217     const TInt KGlxThumbnailLargeWidth = 320;
       
   218     const TInt KGlxThumbnailLargeHeight = 480;
       
   219     const TInt KGlxThumbnailPortraitWidth = 480;
       
   220     const TInt KGlxThumbnailPortraitHeight = 320;
       
   221     
       
   222     
       
   223 /*
       
   224 * Device supports 800x352 resolution (WVGA landscape)
       
   225 *
       
   226 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   227 * The values are calculated roughly, should be modified with real values later
       
   228 */
       
   229 #elif defined __LAYOUT_800_352
       
   230 //to-do add the values to constants according to the resolutions and requirements
       
   231 		// Persistent thumbnail sizes
       
   232     const TInt KGlxThumbnailSmallWidth = 45;
       
   233     const TInt KGlxThumbnailSmallHeight = 140;
       
   234     const TInt KGlxThumbnailLargeWidth = 352;
       
   235     const TInt KGlxThumbnailLargeHeight = 800;
       
   236     const TInt KGlxThumbnailPortraitWidth = 800;
       
   237     const TInt KGlxThumbnailPortraitHeight = 352;
       
   238     
       
   239 /*
       
   240 * Device supports 352x800 resolution (WVGA portrait)
       
   241 *
       
   242 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   243 * The values are calculated roughly, should be modified with real values later
       
   244 */
       
   245 #elif defined __LAYOUT_352_800
       
   246 //to-do add the values to constants according to the resolutions and requirements
       
   247 		// Persistent thumbnail sizes
       
   248     const TInt KGlxThumbnailSmallWidth = 140;
       
   249     const TInt KGlxThumbnailSmallHeight = 45;
       
   250     const TInt KGlxThumbnailLargeWidth = 800;
       
   251     const TInt KGlxThumbnailLargeHeight = 352;
       
   252     const TInt KGlxThumbnailPortraitWidth = 352;
       
   253     const TInt KGlxThumbnailPortraitHeight = 800;
       
   254     
       
   255 /*
       
   256 * Device supports 480x640 resolution (VGA portrait, touch screen)
       
   257 *
       
   258 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   259 * The values are calculated roughly, should be modified with real values later
       
   260 */
       
   261 #elif defined __LAYOUT_480_640_TOUCH
       
   262 //to-do add the values to constants according to the resolutions and requirements
       
   263 		// Persistent thumbnail sizes
       
   264     const TInt KGlxThumbnailSmallWidth = 112;
       
   265     const TInt KGlxThumbnailSmallHeight = 85;
       
   266     const TInt KGlxThumbnailLargeWidth = 640;
       
   267     const TInt KGlxThumbnailLargeHeight = 480;
       
   268     const TInt KGlxThumbnailPortraitWidth = 480;
       
   269     const TInt KGlxThumbnailPortraitHeight = 640;
       
   270     
       
   271 
       
   272 /*
       
   273 * Device supports 640x480 resolution (VGA landscape, touch screen)
       
   274 *
       
   275 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   276 * The values are calculated roughly, should be modified with real values later
       
   277 */
       
   278 #elif defined __LAYOUT_640_480_TOUCH
       
   279 //to-do add the values to constants according to the resolutions and requirements
       
   280 		// Persistent thumbnail sizes
       
   281     const TInt KGlxThumbnailSmallWidth = 85;
       
   282     const TInt KGlxThumbnailSmallHeight = 112;
       
   283     const TInt KGlxThumbnailLargeWidth = 480;
       
   284     const TInt KGlxThumbnailLargeHeight = 640;
       
   285     const TInt KGlxThumbnailPortraitWidth = 640;
       
   286     const TInt KGlxThumbnailPortraitHeight = 480;
       
   287     
       
   288 
       
   289 /*
       
   290 * Device supports 240x320 resolution (QVGA2 for larger screens, portrait)
       
   291 *
       
   292 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   293 * The values are calculated roughly, should be modified with real values later
       
   294 */
       
   295 #elif defined __LAYOUT_240_320_LARGE_SCREEN
       
   296 //to-do add the values to constants according to the resolutions and requirements
       
   297 		// Persistent thumbnail sizes
       
   298     const TInt KGlxThumbnailSmallWidth = 56;
       
   299     const TInt KGlxThumbnailSmallHeight = 42;
       
   300     const TInt KGlxThumbnailLargeWidth = 320;
       
   301     const TInt KGlxThumbnailLargeHeight = 240;
       
   302     const TInt KGlxThumbnailPortraitWidth = 240;
       
   303     const TInt KGlxThumbnailPortraitHeight = 320;
       
   304     
       
   305 
       
   306 /*
       
   307 * Device supports 320x240 resolution (QVGA2 for larger screens, landscape)
       
   308 *
       
   309 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   310 * The values are calculated roughly, should be modified with real values later
       
   311 */
       
   312 #elif defined __LAYOUT_320_240_LARGE_SCREEN
       
   313 //to-do add the values to constants according to the resolutions and requirements
       
   314 		// Persistent thumbnail sizes
       
   315     const TInt KGlxThumbnailSmallWidth = 42;
       
   316     const TInt KGlxThumbnailSmallHeight = 56;
       
   317     const TInt KGlxThumbnailLargeWidth = 240;
       
   318     const TInt KGlxThumbnailLargeHeight = 320;
       
   319     const TInt KGlxThumbnailPortraitWidth = 320;
       
   320     const TInt KGlxThumbnailPortraitHeight = 240;
       
   321     
       
   322 
       
   323 /*
       
   324 * Device supports 240x320 resolution (QVGA, touch screen)
       
   325 *
       
   326 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   327 * The values are calculated roughly, should be modified with real values later
       
   328 */
       
   329 #elif defined __LAYOUT_240_320_TOUCH
       
   330 //to-do add the values to constants according to the resolutions and requirements
       
   331 		// Persistent thumbnail sizes
       
   332     const TInt KGlxThumbnailSmallWidth = 56;
       
   333     const TInt KGlxThumbnailSmallHeight = 42;
       
   334     const TInt KGlxThumbnailLargeWidth = 320;
       
   335     const TInt KGlxThumbnailLargeHeight = 240;
       
   336     const TInt KGlxThumbnailPortraitWidth = 240;
       
   337     const TInt KGlxThumbnailPortraitHeight = 320;
       
   338     
       
   339 /*
       
   340 * Device supports 320x240 resolution (QVGA landscape, touch screen)
       
   341 *
       
   342 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   343 * The values are calculated roughly, should be modified with real values later
       
   344 */
       
   345 #elif defined __LAYOUT_320_240_TOUCH
       
   346 //to-do add the values to constants according to the resolutions and requirements
       
   347 		// Persistent thumbnail sizes
       
   348     const TInt KGlxThumbnailSmallWidth = 42;
       
   349     const TInt KGlxThumbnailSmallHeight = 56;
       
   350     const TInt KGlxThumbnailLargeWidth = 240;
       
   351     const TInt KGlxThumbnailLargeHeight = 320;
       
   352     const TInt KGlxThumbnailPortraitWidth = 320;
       
   353     const TInt KGlxThumbnailPortraitHeight = 240;
       
   354     
       
   355 
       
   356 /*
       
   357 * Device supports 320x480 resolution (HVGA portrait, touch screen)
       
   358 *
       
   359 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   360 * The values are calculated roughly, should be modified with real values later
       
   361 */
       
   362 #elif defined __LAYOUT_320_480_TOUCH
       
   363 //to-do add the values to constants according to the resolutions and requirements
       
   364 		// Persistent thumbnail sizes
       
   365     const TInt KGlxThumbnailSmallWidth = 85;
       
   366     const TInt KGlxThumbnailSmallHeight = 56;
       
   367     const TInt KGlxThumbnailLargeWidth = 480;
       
   368     const TInt KGlxThumbnailLargeHeight = 320;
       
   369     const TInt KGlxThumbnailPortraitWidth = 320;
       
   370     const TInt KGlxThumbnailPortraitHeight = 480;
       
   371     
       
   372 
       
   373 /*
       
   374 * Device supports 480x320 resolution (HVGA landscape, touch screen)
       
   375 *
       
   376 * For Smaller thumbnail, we need to modify with actual values when we get so.
       
   377 * The values are calculated roughly, should be modified with real values later
       
   378 */
       
   379 #elif defined __LAYOUT_480_320_TOUCH
       
   380 //to-do add the values to constants according to the resolutions and requirements
       
   381 		// Persistent thumbnail sizes
       
   382     const TInt KGlxThumbnailSmallWidth = 56;
       
   383     const TInt KGlxThumbnailSmallHeight = 85;
       
   384     const TInt KGlxThumbnailLargeWidth = 320;
       
   385     const TInt KGlxThumbnailLargeHeight = 480;
       
   386     const TInt KGlxThumbnailPortraitWidth = 480;
       
   387     const TInt KGlxThumbnailPortraitHeight = 320;
       
   388 #else
       
   389 // making 640x360 resolution as default, 
       
   390     const TInt KGlxThumbnailSmallWidth = 85;
       
   391     const TInt KGlxThumbnailSmallHeight = 112;
       
   392     const TInt KGlxThumbnailLargeWidth = 640;
       
   393     const TInt KGlxThumbnailLargeHeight = 360;
       
   394     const TInt KGlxThumbnailPortraitWidth = 360;
       
   395     const TInt KGlxThumbnailPortraitHeight = 640;
       
   396 
       
   397 #endif    
       
   398 
       
   399 #endif // T_GLXSCREENRESOLUTIONSINFO_H