S60 3rd Edition API Reference: aknconsts.h Source File

aknconsts.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : aknconsts.h
00004 *  Part of  : AVKON
00005 *
00006 *  Description:
00007 *     The file contains some avkon constants (mainly for internal use).
00008 *
00009 *  Version:
00010 *
00011 *  Copyright © 2002 Nokia Corporation.
00012 *  This material, including documentation and any related
00013 *  computer programs, is protected by copyright controlled by
00014 *  Nokia Corporation. All rights are reserved. Copying,
00015 *  including reproducing, storing,  adapting or translating, any
00016 *  or all of this material requires the prior written consent of
00017 *  Nokia Corporation. This material also contains confidential
00018 *  information which may not be disclosed to others without the
00019 *  prior written consent of Nokia Corporation.
00020 */
00021 
00022 #ifndef AKNCONSTS_H
00023 #define AKNCONSTS_H
00024 
00025 #include <avkon.hrh>
00026 
00027 // Status pane constants
00028 
00029 const TInt KStatusPaneBackgroundGraphicsColorIdle = 215;
00030 
00031 const TInt KStatusPaneBackgroundGraphicsColorUsual = 237;
00032 
00033 const TInt KStatusPaneBackgroundColor = 0;
00034 
00035 const TInt Kqpn_height_status_pane_idle = 56;
00036 
00037 const TInt Kqpn_height_status_pane_usual = 44;
00038 
00039 struct SLafIconLayout
00040     {
00041     TInt left;
00042     TInt top;
00043     TInt right;
00044     TInt bottom;
00045     TInt width;
00046     TInt height;
00047     };
00048 
00049 struct SLafTextCharasteristics
00050     {
00051     TInt color;
00052     TInt left;
00053     TInt right;
00054     TInt baseline;
00055     TInt width;
00056     TInt justification;
00057     };
00058 
00061 const TInt KNoValue = -1000;
00062 
00063 
00064 const TInt KUseOtherValue = -1001;
00065 
00066 
00067 const TInt KUseBaseValue = 0;
00068 
00069 
00070 
00071 const struct SLafIconLayout KStatusPaneBackgroundGraphics =
00072     {1,29,KNoValue,KNoValue,174,15};
00073 
00074 
00075 const struct SLafIconLayout KStatusPaneNaviPaneWipeGraphics =
00076     {0, 1, KNoValue, KNoValue, 174, 15};
00077 
00078 
00079 const struct SLafIconLayout KStatusPaneNaviPaneWipeBitmapOffset =
00080     {55, 0, KNoValue, KNoValue, 174, 15};
00081 
00082 
00083 const struct SLafIconLayout KNaviQgnNaviArrowLeft =
00084     {0,0,KNoValue,KNoValue,4,16};
00085 
00086 
00087 const struct SLafIconLayout KNaviQgnNaviArrowRight[2] =
00088     {
00089         {KNoValue,0,5,KNoValue,4,16},
00090         {KNoValue,0,1,KNoValue,4,16}
00091     };
00092 
00093 
00094 
00095 const struct SLafIconLayout KNaviQgnNaviTabBitmap =
00096     {4,0,KNoValue,KNoValue,107,16};
00097 
00098 
00099 const struct SLafIconLayout KNaviQgnNaviTabIcon2[2] =
00100     {
00101         {17,3,KNoValue,KNoValue,35,11},
00102         {63,3,KNoValue,KNoValue,35,11}
00103     };
00104 
00105 
00106 const struct SLafIconLayout KNaviQgnNaviTabIconLong2[2] =
00107     {
00108         {17,3,KNoValue,KNoValue,74,11},
00109         {24,3,KNoValue,KNoValue,74,11}
00110     };
00111 
00112 
00113 const struct SLafIconLayout KNaviQgnNaviTabIcon3[3] =
00114     {
00115         {16,3,KNoValue,KNoValue,22,11},
00116         {47,3,KNoValue,KNoValue,22,11},
00117         {78,3,KNoValue,KNoValue,22,11}
00118     };
00119 
00120 
00121 
00122 const struct SLafIconLayout KNaviQgnNaviTabIcon4[4] =
00123     {
00124         {14,3,KNoValue,KNoValue,18,11},
00125         {37,3,KNoValue,KNoValue,18,11},
00126         {60,3,KNoValue,KNoValue,18,11},
00127         {83,3,KNoValue,KNoValue,18,11}
00128     };
00129 
00130 
00131 const struct SLafIconLayout KNaviQgnNaviTabIconLong3[3] =
00132     {
00133         {17,3,KNoValue,KNoValue,67,11},
00134         {24,3,KNoValue,KNoValue,67,11},
00135         {31,3,KNoValue,KNoValue,67,11}
00136     };
00137 
00138 
00139 const struct SLafTextCharasteristics KNaviQgnNaviTabText2[2] =
00140     {
00141         {215,17,66,12,36,ECenter},
00142         {215,63,20,12,36,ECenter}
00143     };
00144 
00145 
00146 const struct SLafTextCharasteristics KNaviQgnNaviTabTextLong2[2] =
00147     {
00148         {215,17,29,12,74,ECenter},
00149         {215,24,22,12,74,ECenter}
00150     };
00151 
00152 
00153 const struct SLafTextCharasteristics KNaviQgnNaviTabText3[3] =
00154     {
00155         {215,17,81,12,21,ECenter},
00156         {215,48,50,12,21,ECenter},
00157         {215,79,19,12,21,ECenter}
00158     };
00159 
00160 
00161 const struct SLafTextCharasteristics KNaviQgnNaviTabText4[4] =
00162     {
00163         {215,17,89,12,13,ECenter},
00164         {215,40,66,12,13,ECenter},
00165         {215,63,43,12,13,ECenter},
00166         {215,86,20,12,13,ECenter}
00167     };
00168 
00169 
00170 
00171 const struct SLafTextCharasteristics KNaviQgnNaviTabTextLong3[3] =
00172     {
00173         {215,17,36,12,67,ECenter},
00174         {215,24,29,12,67,ECenter},
00175         {215,31,22,12,67,ECenter}
00176     };
00177 
00178 
00179 const struct SLafIconLayout KNaviQgnNaviTabIcon1 =
00180     {20,3,KNoValue,KNoValue,35,11};
00181 
00182 
00183 const struct SLafTextCharasteristics KNaviQgnNaviTabText1 =
00184     {0,62,25,13,33,ECenter};
00185 
00186 
00187 
00188 const struct SLafTextCharasteristics KNaviQgnNaviInformation[2] =
00189     {
00190         {0, 8, 12, 12, 100, ECenter},
00191         {0, 8, 8, 12, 85, ECenter}
00192     };
00193 
00194 
00195 const struct SLafTextCharasteristics KNaviQgnAdditionalInformation =
00196     {0, 6, 3, 12, 92, ELeft};
00197 
00198 
00199 const struct SLafTextCharasteristics KNaviQgnHelpHints =
00200     {0, 6, 4, 12, 110, ELeft};
00201 
00202 
00203 const struct SLafIconLayout KNaviQgnNaviIcon =
00204     {20, 3, KNoValue, KNoValue, 35, 11};
00205 
00206 
00207 const struct SLafTextCharasteristics KNaviQgnNaviIconText =
00208     {0, 62, 25, 13, 33, ECenter};
00209 
00210 
00211 const struct SLafIconLayout KNaviQgnNaviEditingStatusIcon =
00212     {75, 4, KNoValue, KNoValue, 110, 9};
00213 
00220 const TInt KTabWidthWithTwoTabs = EAknTabWidthWithTwoTabs;
00222 const TInt KTabWidthWithTwoLongTabs = EAknTabWidthWithTwoLongTabs;
00224 const TInt KTabWidthWithThreeTabs = EAknTabWidthWithThreeTabs;
00226 const TInt KTabWidthWithThreeLongTabs = EAknTabWidthWithThreeLongTabs;
00228 const TInt KTabWidthWithFourTabs = EAknTabWidthWithFourTabs;
00230 const TInt KTabWidthWithOneTab = EAknTabWidthWithOneTab;
00231 
00232 
00233 const TInt KNaviTabMargins=0;
00234 
00235 const TInt KNaviTabActiveTextColor = 215;
00236 
00237 const TInt KNaviTabInactiveTextColor = 129;
00238 
00239 const TInt KNaviTabOneTabTextColor = 0;
00240 
00241 
00243 const TInt KTabNumberOfTabBitmaps = 14;
00245 const TInt KTabIndexOfFirstTabBitmapInTwoTabsSet = 0;
00247 const TInt KTabIndexOfLastTabBitmapInTwoTabsSet = 1;
00249 const TInt KTabIndexOfFirstTabBitmapInTwoLongTabsSet = 2;
00251 const TInt KTabIndexOfLastTabBitmapInTwoLongTabsSet = 3;
00253 const TInt KTabIndexOfFirstTabBitmapInThreeTabsSet = 7;
00255 const TInt KTabIndexOfLastTabBitmapInThreeTabsSet = 9;
00257 const TInt KTabIndexOfFirstTabBitmapInThreeLongTabsSet = 4;
00259 const TInt KTabIndexOfLastTabBitmapInThreeLongTabsSet = 6;
00261 const TInt KTabIndexOfFirstTabBitmapInFourTabsSet = 10;
00263 const TInt KTabIndexOfLastTabBitmapInFourTabsSet = 13;
00264 
00265 
00268 const struct SLafTextCharasteristics KTitleQgnOneLineLabel[2] =
00269     {
00270         { 215, 1, 3, 22, 104, ELeft},
00271         { KUseOtherValue, KUseOtherValue, KUseOtherValue, KUseOtherValue, 97, KUseOtherValue}
00272     };
00273 
00274 
00275 const struct SLafTextCharasteristics KTitleQgnTwoLineLabel[2] =
00276     {
00277         { 215, 1, 3, 11, 104, ELeft},
00278         { KUseOtherValue, KUseOtherValue, KUseOtherValue, 25, 97, KUseOtherValue}
00279     };
00280 
00281 
00282 const struct SLafIconLayout KTitleQgnLogoImage = { 2, 2, 2, 1, 97, 25};
00283 
00288 _LIT(KTitlePaneDefaultText, " ");
00289 
00290 #ifndef __GMXMLCONSTANTS_H__
00291 
00296 _LIT(KNewLine, "\n");
00297 #endif
00298 
00299 
00303 const struct SLafIconLayout KContextQgnBitmap =
00304     { 0, 0, KNoValue, KNoValue, 44, 44};
00305 
00311 const TInt KBatteryLevelMin = 0;
00315 const TInt KBatteryLevelMax = 7;
00316 
00317 
00318 const TInt KBatteryBitmapOffsets[KBatteryLevelMax] =
00319     {25,21,17,13,9,5,1}; // Levels 1,2,3,4,5,6,7
00320 
00321 
00322 const struct SLafIconLayout KBatteryQgnIndiBatteryStrength =
00323     {KNoValue,0,0,KNoValue,12,29};
00324 
00325 
00326 const struct SLafIconLayout KBatteryQgnIndiBatteryIcon =
00327     {KNoValue,29,0,KNoValue,12,15};
00328 
00329 
00335 const TInt KSignalLevelMin = 0;
00339 const TInt KSignalLevelMax = 7;
00340 
00341 
00342 const TInt KSignalBitmapOffsets[KSignalLevelMax] =
00343     {25,21,17,13,9,5,1}; // Levels 1,2,3,4,5,6,7
00344 
00345 
00346 const struct SLafIconLayout KSignalQgnIndiSignalStrength =
00347     {0,0,KNoValue,KNoValue,12,29};
00348 
00349 
00350 const struct SLafIconLayout KSignalQgnIndiSignalIcon =
00351     {0,29,KNoValue,KNoValue,12,15};
00352 
00353 
00354 // Common
00355 
00359 _LIT(KCommonDialogsBitmapFile,  "z:\\resource\\apps\\commondialogs.mbm");
00360 
00364 _LIT(KCallStatusBitmapFile,     "z:\\resource\\apps\\callstatus.mbm");
00365 
00369 _LIT(KMemoryCardUiBitmapFile,   "z:\\resource\\apps\\aknmemorycardui.mbm");
00370 
00374 _LIT(KAvkonBitmapFile,          "z:\\resource\\apps\\avkon2.mbm");
00375 
00379 _LIT(KAvkonVariatedBitmapsFile, "z:\\resource\\apps\\variatedbitmaps.mbm");
00380 
00381 
00382 
00383 const TInt KAknSoftkeyPaneHeight = 20;
00384 
00388 const TInt KAknDefaultWsBufferSize = 7000;
00394 const TInt KAknMaxWsBufferSize = 16000;
00395 
00396 
00397 // Small status pane
00398 const TInt KMinSpaceBetweenIconsInPixels = 3;
00399 
00400 const struct SLafIconLayout KSmallStatusPaneIndicator =
00401     {0,3,KNoValue,KNoValue,171,15};
00402 
00403 const struct SLafIconLayout KSmallStatusPaneTextIndicator =
00404     {2,2,KNoValue,KNoValue,171,11};
00405 
00406 const struct SLafIconLayout KSmallStatusPaneSecureStateIndicator =
00407     {0,4,KNoValue,KNoValue,10,9};
00408 
00409 const struct SLafIconLayout KSmallStatusPaneWmlWaitGlobeIndicator =
00410     {82,1,80,KNoValue,13,13};
00411 
00412 const struct SLafIconLayout KSmallStatusPaneWaitBarIndicator =
00413     {3,3,KNoValue,KNoValue,77,9};
00414 
00415 const struct SLafIconLayout KSmallStatusPaneProgressBarIndicator =
00416     {3,3,KNoValue,KNoValue,77,9};
00417 
00418 const struct SLafIconLayout KSmallStatusPaneGprsIndicator =
00419     {KNoValue,KNoValue,KNoValue,KNoValue,12,15};
00420 
00421 // Mirrored statuspane for A&H
00422 
00423 const struct SLafIconLayout KMirroredStatusPaneNaviPaneWipeBitmapOffset =
00424     {0, 0, 55, KNoValue, 174, 15};
00425 
00426 
00427 const struct SLafIconLayout KMirroredNaviQgnNaviArrowLeft[2] =
00428     {
00429         {5,0,KNoValue,KNoValue,4,16},
00430         {1,0,KNoValue,KNoValue,4,16}
00431     };
00432 
00433 
00434 const struct SLafIconLayout KMirroredNaviQgnNaviArrowRight =
00435     {0,0,KNoValue,KNoValue,4,16};
00436 
00437 
00438 const struct SLafIconLayout KMirroredNaviQgnNaviTabBitmap =
00439     {9,0,KNoValue,KNoValue,107,16};
00440 
00441 
00442 // Naviwipe related constants
00443 struct SNaviWipePart
00444     {
00445     TInt start;
00446     TInt end;
00447     };
00448 
00449 // Note that values are for skin navi wipes (176x15). Not for
00450 // default avkon LAF navi wipes (174x15).
00451 const struct SNaviWipePart KNaviWipeSignalPanePart =
00452     {0,12};
00453 
00454 const struct SNaviWipePart KNaviWipeContextPanePart =
00455     {12,56};
00456 
00457 const struct SNaviWipePart KNaviWipeNaviPanePart =
00458     {56,176};
00459 
00460 const struct SNaviWipePart KNaviWipeSignalPanePartMirrored =
00461     {164,176};
00462 
00463 const struct SNaviWipePart KNaviWipeContextPanePartMirrored =
00464     {120,164};
00465 
00466 const struct SNaviWipePart KNaviWipeNaviPanePartMirrored =
00467     {0,120};
00468 
00469 
00470 // Keyboard delays and repeat periods
00475 const TInt KAknKeyboardRepeatInitialDelay = 600000;
00476 
00483 const TInt KAknStandardKeyboardRepeatRate = (1000000/6);
00484 
00489 const TInt KAknEditorKeyboardRepeatRate = (1000000/10);
00490 
00491 
00492 #start_since SINCE_3_1_SDK
00493 
00497 const TInt KAknScreenModeUnset = -1;
00498 #end_since SINCE_3_1_SDK
00499 
00500 // AKNCONSTS_H
00501 #endif
00502 

Copyright © Nokia Corporation 2001-2007
Back to top