1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/aknconsts.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,642 @@
1.4 +/*
1.5 +* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* The file contains some avkon constants (mainly for internal use).
1.19 +*
1.20 +*
1.21 +*/
1.22 +
1.23 +
1.24 +#ifndef AKNCONSTS_H
1.25 +#define AKNCONSTS_H
1.26 +
1.27 +#include <avkon.hrh>
1.28 +
1.29 +// Status pane constants
1.30 +
1.31 +/**
1.32 + * @deprecated
1.33 + */
1.34 +const TInt KStatusPaneBackgroundGraphicsColorIdle = 215;
1.35 +
1.36 +/**
1.37 + * @deprecated
1.38 + */
1.39 +const TInt KStatusPaneBackgroundGraphicsColorUsual = 237;
1.40 +
1.41 +/**
1.42 + * @deprecated
1.43 + */
1.44 +const TInt KStatusPaneBackgroundColor = 0;
1.45 +
1.46 +/**
1.47 + * @deprecated
1.48 + */
1.49 +const TInt Kqpn_height_status_pane_idle = 56;
1.50 +
1.51 +/**
1.52 + * @deprecated
1.53 + */
1.54 +const TInt Kqpn_height_status_pane_usual = 44;
1.55 +
1.56 +/**
1.57 + * @deprecated
1.58 + */
1.59 +struct SLafIconLayout
1.60 + {
1.61 + TInt left;
1.62 + TInt top;
1.63 + TInt right;
1.64 + TInt bottom;
1.65 + TInt width;
1.66 + TInt height;
1.67 + };
1.68 +
1.69 +/**
1.70 + * @deprecated
1.71 + */
1.72 +struct SLafTextCharasteristics
1.73 + {
1.74 + TInt color;
1.75 + TInt left;
1.76 + TInt right;
1.77 + TInt baseline;
1.78 + TInt width;
1.79 + TInt justification;
1.80 + };
1.81 +
1.82 +/** Navi pane constants */
1.83 +/**
1.84 + * @deprecated
1.85 + */
1.86 +const TInt KNoValue = -1000;
1.87 +
1.88 +/**
1.89 + * @deprecated
1.90 + */
1.91 +const TInt KUseOtherValue = -1001;
1.92 +
1.93 +/**
1.94 + * @deprecated
1.95 + */
1.96 +const TInt KUseBaseValue = 0;
1.97 +
1.98 +
1.99 +/**
1.100 + * @deprecated
1.101 + */
1.102 +const struct SLafIconLayout KStatusPaneBackgroundGraphics =
1.103 + {1,29,KNoValue,KNoValue,174,15};
1.104 +
1.105 +/**
1.106 + * @deprecated
1.107 + */
1.108 +const struct SLafIconLayout KStatusPaneNaviPaneWipeGraphics =
1.109 + {0, 1, KNoValue, KNoValue, 174, 15};
1.110 +
1.111 +/**
1.112 + * @deprecated
1.113 + */
1.114 +const struct SLafIconLayout KStatusPaneNaviPaneWipeBitmapOffset =
1.115 + {55, 0, KNoValue, KNoValue, 174, 15};
1.116 +
1.117 +/**
1.118 + * @deprecated
1.119 + */
1.120 +const struct SLafIconLayout KNaviQgnNaviArrowLeft =
1.121 + {0,0,KNoValue,KNoValue,4,16};
1.122 +
1.123 +/**
1.124 + * @deprecated
1.125 + */
1.126 +const struct SLafIconLayout KNaviQgnNaviArrowRight[2] =
1.127 + {
1.128 + {KNoValue,0,5,KNoValue,4,16},
1.129 + {KNoValue,0,1,KNoValue,4,16}
1.130 + };
1.131 +
1.132 +
1.133 +/**
1.134 + * @deprecated
1.135 + */
1.136 +const struct SLafIconLayout KNaviQgnNaviTabBitmap =
1.137 + {4,0,KNoValue,KNoValue,107,16};
1.138 +
1.139 +/**
1.140 + * @deprecated
1.141 + */
1.142 +const struct SLafIconLayout KNaviQgnNaviTabIcon2[2] =
1.143 + {
1.144 + {17,3,KNoValue,KNoValue,35,11},
1.145 + {63,3,KNoValue,KNoValue,35,11}
1.146 + };
1.147 +
1.148 +/**
1.149 + * @deprecated
1.150 + */
1.151 +const struct SLafIconLayout KNaviQgnNaviTabIconLong2[2] =
1.152 + {
1.153 + {17,3,KNoValue,KNoValue,74,11},
1.154 + {24,3,KNoValue,KNoValue,74,11}
1.155 + };
1.156 +
1.157 +/**
1.158 + * @deprecated
1.159 + */
1.160 +const struct SLafIconLayout KNaviQgnNaviTabIcon3[3] =
1.161 + {
1.162 + {16,3,KNoValue,KNoValue,22,11},
1.163 + {47,3,KNoValue,KNoValue,22,11},
1.164 + {78,3,KNoValue,KNoValue,22,11}
1.165 + };
1.166 +
1.167 +
1.168 +/**
1.169 + * @deprecated
1.170 + */
1.171 +const struct SLafIconLayout KNaviQgnNaviTabIcon4[4] =
1.172 + {
1.173 + {14,3,KNoValue,KNoValue,18,11},
1.174 + {37,3,KNoValue,KNoValue,18,11},
1.175 + {60,3,KNoValue,KNoValue,18,11},
1.176 + {83,3,KNoValue,KNoValue,18,11}
1.177 + };
1.178 +
1.179 +/**
1.180 + * @deprecated
1.181 + */
1.182 +const struct SLafIconLayout KNaviQgnNaviTabIconLong3[3] =
1.183 + {
1.184 + {17,3,KNoValue,KNoValue,67,11},
1.185 + {24,3,KNoValue,KNoValue,67,11},
1.186 + {31,3,KNoValue,KNoValue,67,11}
1.187 + };
1.188 +
1.189 +/**
1.190 + * @deprecated
1.191 + */
1.192 +const struct SLafTextCharasteristics KNaviQgnNaviTabText2[2] =
1.193 + {
1.194 + {215,17,66,12,36,ECenter},
1.195 + {215,63,20,12,36,ECenter}
1.196 + };
1.197 +
1.198 +/**
1.199 + * @deprecated
1.200 + */
1.201 +const struct SLafTextCharasteristics KNaviQgnNaviTabTextLong2[2] =
1.202 + {
1.203 + {215,17,29,12,74,ECenter},
1.204 + {215,24,22,12,74,ECenter}
1.205 + };
1.206 +
1.207 +/**
1.208 + * @deprecated
1.209 + */
1.210 +const struct SLafTextCharasteristics KNaviQgnNaviTabText3[3] =
1.211 + {
1.212 + {215,17,81,12,21,ECenter},
1.213 + {215,48,50,12,21,ECenter},
1.214 + {215,79,19,12,21,ECenter}
1.215 + };
1.216 +
1.217 +/**
1.218 + * @deprecated
1.219 + */
1.220 +const struct SLafTextCharasteristics KNaviQgnNaviTabText4[4] =
1.221 + {
1.222 + {215,17,89,12,13,ECenter},
1.223 + {215,40,66,12,13,ECenter},
1.224 + {215,63,43,12,13,ECenter},
1.225 + {215,86,20,12,13,ECenter}
1.226 + };
1.227 +
1.228 +
1.229 +/**
1.230 + * @deprecated
1.231 + */
1.232 +const struct SLafTextCharasteristics KNaviQgnNaviTabTextLong3[3] =
1.233 + {
1.234 + {215,17,36,12,67,ECenter},
1.235 + {215,24,29,12,67,ECenter},
1.236 + {215,31,22,12,67,ECenter}
1.237 + };
1.238 +
1.239 +/**
1.240 + * @deprecated
1.241 + */
1.242 +const struct SLafIconLayout KNaviQgnNaviTabIcon1 =
1.243 + {20,3,KNoValue,KNoValue,35,11};
1.244 +
1.245 +/**
1.246 + * @deprecated
1.247 + */
1.248 +const struct SLafTextCharasteristics KNaviQgnNaviTabText1 =
1.249 + {0,62,25,13,33,ECenter};
1.250 +
1.251 +
1.252 +/**
1.253 + * @deprecated
1.254 + */
1.255 +const struct SLafTextCharasteristics KNaviQgnNaviInformation[2] =
1.256 + {
1.257 + {0, 8, 12, 12, 100, ECenter},
1.258 + {0, 8, 8, 12, 85, ECenter}
1.259 + };
1.260 +
1.261 +/**
1.262 + * @deprecated
1.263 + */
1.264 +const struct SLafTextCharasteristics KNaviQgnAdditionalInformation =
1.265 + {0, 6, 3, 12, 92, ELeft};
1.266 +
1.267 +/**
1.268 + * @deprecated
1.269 + */
1.270 +const struct SLafTextCharasteristics KNaviQgnHelpHints =
1.271 + {0, 6, 4, 12, 110, ELeft};
1.272 +
1.273 +/**
1.274 + * @deprecated
1.275 + */
1.276 +const struct SLafIconLayout KNaviQgnNaviIcon =
1.277 + {20, 3, KNoValue, KNoValue, 35, 11};
1.278 +
1.279 +/**
1.280 + * @deprecated
1.281 + */
1.282 +const struct SLafTextCharasteristics KNaviQgnNaviIconText =
1.283 + {0, 62, 25, 13, 33, ECenter};
1.284 +
1.285 +/**
1.286 + * @deprecated
1.287 + */
1.288 +const struct SLafIconLayout KNaviQgnNaviEditingStatusIcon =
1.289 + {75, 4, KNoValue, KNoValue, 110, 9};
1.290 +
1.291 +/**
1.292 + * Following constants determine the layout of tabs in the navigation pane.
1.293 + * Constants are used with CAknTabGroup::SetTabFixedWidthL(TInt aWidth) method.
1.294 + */
1.295 +
1.296 +/** Constant for two tabs layout */
1.297 +const TInt KTabWidthWithTwoTabs = EAknTabWidthWithTwoTabs;
1.298 +/** Constant for two long tabs layout */
1.299 +const TInt KTabWidthWithTwoLongTabs = EAknTabWidthWithTwoLongTabs;
1.300 +/** Constant for three tabs layout */
1.301 +const TInt KTabWidthWithThreeTabs = EAknTabWidthWithThreeTabs;
1.302 +/** Constant for three long tabs layout */
1.303 +const TInt KTabWidthWithThreeLongTabs = EAknTabWidthWithThreeLongTabs;
1.304 +/** Constant for four tabs layout */
1.305 +const TInt KTabWidthWithFourTabs = EAknTabWidthWithFourTabs;
1.306 +/** Constant for one tab layout */
1.307 +const TInt KTabWidthWithOneTab = EAknTabWidthWithOneTab;
1.308 +
1.309 +/** @deprecated */
1.310 +const TInt KNaviTabMargins=0;
1.311 +/** @deprecated */
1.312 +const TInt KNaviTabActiveTextColor = 215;
1.313 +/** @deprecated */
1.314 +const TInt KNaviTabInactiveTextColor = 129;
1.315 +/** @deprecated */
1.316 +const TInt KNaviTabOneTabTextColor = 0;
1.317 +
1.318 +
1.319 +/** @internal */
1.320 +const TInt KTabNumberOfTabBitmaps = 14;
1.321 +/** @internal */
1.322 +const TInt KTabIndexOfFirstTabBitmapInTwoTabsSet = 0;
1.323 +/** @internal */
1.324 +const TInt KTabIndexOfLastTabBitmapInTwoTabsSet = 1;
1.325 +/** @internal */
1.326 +const TInt KTabIndexOfFirstTabBitmapInTwoLongTabsSet = 2;
1.327 +/** @internal */
1.328 +const TInt KTabIndexOfLastTabBitmapInTwoLongTabsSet = 3;
1.329 +/** @internal */
1.330 +const TInt KTabIndexOfFirstTabBitmapInThreeTabsSet = 7;
1.331 +/** @internal */
1.332 +const TInt KTabIndexOfLastTabBitmapInThreeTabsSet = 9;
1.333 +/** @internal */
1.334 +const TInt KTabIndexOfFirstTabBitmapInThreeLongTabsSet = 4;
1.335 +/** @internal */
1.336 +const TInt KTabIndexOfLastTabBitmapInThreeLongTabsSet = 6;
1.337 +/** @internal */
1.338 +const TInt KTabIndexOfFirstTabBitmapInFourTabsSet = 10;
1.339 +/** @internal */
1.340 +const TInt KTabIndexOfLastTabBitmapInFourTabsSet = 13;
1.341 +
1.342 +
1.343 +/** Title pane constants */
1.344 +/**
1.345 + * @deprecated
1.346 + */
1.347 +const struct SLafTextCharasteristics KTitleQgnOneLineLabel[2] =
1.348 + {
1.349 + { 215, 1, 3, 22, 104, ELeft},
1.350 + { KUseOtherValue, KUseOtherValue, KUseOtherValue, KUseOtherValue, 97, KUseOtherValue}
1.351 + };
1.352 +
1.353 +/**
1.354 + * @deprecated
1.355 + */
1.356 +const struct SLafTextCharasteristics KTitleQgnTwoLineLabel[2] =
1.357 + {
1.358 + { 215, 1, 3, 11, 104, ELeft},
1.359 + { KUseOtherValue, KUseOtherValue, KUseOtherValue, 25, 97, KUseOtherValue}
1.360 + };
1.361 +
1.362 +/**
1.363 + * @deprecated
1.364 + */
1.365 +const struct SLafIconLayout KTitleQgnLogoImage = { 2, 2, 2, 1, 97, 25};
1.366 +
1.367 +/**
1.368 + * Title pane default text if not any other default text is avilable
1.369 + * @internal
1.370 + */
1.371 +_LIT(KTitlePaneDefaultText, " ");
1.372 +
1.373 +#ifndef __GMXMLCONSTANTS_H__
1.374 +/**
1.375 + * @deprecated
1.376 + *
1.377 + * Notice that GMXMLConstants.h contains same constant with different value.
1.378 + */
1.379 +_LIT(KNewLine, "\n");
1.380 +#endif
1.381 +
1.382 +
1.383 +/** Context pane constants */
1.384 +
1.385 +/**
1.386 + * @deprecated
1.387 + */
1.388 +const struct SLafIconLayout KContextQgnBitmap =
1.389 + { 0, 0, KNoValue, KNoValue, 44, 44};
1.390 +
1.391 +/** Battery pane constants */
1.392 +
1.393 +/**
1.394 + * Constant for battery level minimum value
1.395 + * @deprecated
1.396 + */
1.397 +const TInt KBatteryLevelMin = 0;
1.398 +/**
1.399 + * Constant for battery level maximum value
1.400 + * @deprecated
1.401 + */
1.402 +const TInt KBatteryLevelMax = 7;
1.403 +
1.404 +/**
1.405 + * @deprecated
1.406 + */
1.407 +const TInt KBatteryBitmapOffsets[KBatteryLevelMax] =
1.408 + {25,21,17,13,9,5,1}; // Levels 1,2,3,4,5,6,7
1.409 +
1.410 +/**
1.411 + * @deprecated
1.412 + */
1.413 +const struct SLafIconLayout KBatteryQgnIndiBatteryStrength =
1.414 + {KNoValue,0,0,KNoValue,12,29};
1.415 +
1.416 +/**
1.417 + * @deprecated
1.418 + */
1.419 +const struct SLafIconLayout KBatteryQgnIndiBatteryIcon =
1.420 + {KNoValue,29,0,KNoValue,12,15};
1.421 +
1.422 +
1.423 +/** Signal pane constants */
1.424 +
1.425 +/**
1.426 + * Constant for signal level minimum value
1.427 + * @deprecated
1.428 + */
1.429 +const TInt KSignalLevelMin = 0;
1.430 +/**
1.431 + * Constant for signal level maximum value
1.432 + * @deprecated
1.433 + */
1.434 +const TInt KSignalLevelMax = 7;
1.435 +
1.436 +/**
1.437 + * @deprecated
1.438 + */
1.439 +const TInt KSignalBitmapOffsets[KSignalLevelMax] =
1.440 + {25,21,17,13,9,5,1}; // Levels 1,2,3,4,5,6,7
1.441 +
1.442 +/**
1.443 + * @deprecated
1.444 + */
1.445 +const struct SLafIconLayout KSignalQgnIndiSignalStrength =
1.446 + {0,0,KNoValue,KNoValue,12,29};
1.447 +
1.448 +/**
1.449 + * @deprecated
1.450 + */
1.451 +const struct SLafIconLayout KSignalQgnIndiSignalIcon =
1.452 + {0,29,KNoValue,KNoValue,12,15};
1.453 +
1.454 +
1.455 +// Common
1.456 +
1.457 +/**
1.458 + * Location of the common dialogs bitmap file
1.459 + */
1.460 +_LIT(KCommonDialogsBitmapFile, "z:\\resource\\apps\\commondialogs.mbm");
1.461 +
1.462 +/**
1.463 + * Location of the call status bitmap file
1.464 + */
1.465 +_LIT(KCallStatusBitmapFile, "z:\\resource\\apps\\callstatus.mbm");
1.466 +
1.467 +/**
1.468 + * Location of the memory card ui bitmap file
1.469 + */
1.470 +_LIT(KMemoryCardUiBitmapFile, "z:\\resource\\apps\\aknmemorycardui.mbm");
1.471 +
1.472 +/**
1.473 + * Location of the avkon bitmap file
1.474 + */
1.475 +_LIT(KAvkonBitmapFile, "z:\\resource\\apps\\avkon2.mbm");
1.476 +
1.477 +/**
1.478 + * Location of the variated bitmaps bitmap file
1.479 + */
1.480 +_LIT(KAvkonVariatedBitmapsFile, "z:\\resource\\apps\\variatedbitmaps.mbm");
1.481 +
1.482 +
1.483 +/**
1.484 + * @deprecated
1.485 + */
1.486 +const TInt KAknSoftkeyPaneHeight = 20;
1.487 +
1.488 +/**
1.489 + * Default size of the window server buffer.
1.490 + */
1.491 +const TInt KAknDefaultWsBufferSize = 7000;
1.492 +/**
1.493 + * Maximum size of the window server buffer.
1.494 + * UI components and applications may request window server buffer size up to
1.495 + * this size with CAknEnv::Static()->RequestWsBuffer() method.
1.496 + */
1.497 +const TInt KAknMaxWsBufferSize = 16000;
1.498 +
1.499 +
1.500 +// Small status pane
1.501 +/**
1.502 + * @deprecated
1.503 + */
1.504 +const TInt KMinSpaceBetweenIconsInPixels = 3;
1.505 +
1.506 +/**
1.507 + * @deprecated
1.508 + */
1.509 +const struct SLafIconLayout KSmallStatusPaneIndicator =
1.510 + {0,3,KNoValue,KNoValue,171,15};
1.511 +/**
1.512 + * @deprecated
1.513 + */
1.514 +const struct SLafIconLayout KSmallStatusPaneTextIndicator =
1.515 + {2,2,KNoValue,KNoValue,171,11};
1.516 +/**
1.517 + * @deprecated
1.518 + */
1.519 +const struct SLafIconLayout KSmallStatusPaneSecureStateIndicator =
1.520 + {0,4,KNoValue,KNoValue,10,9};
1.521 +/**
1.522 + * @deprecated
1.523 + */
1.524 +const struct SLafIconLayout KSmallStatusPaneWmlWaitGlobeIndicator =
1.525 + {82,1,80,KNoValue,13,13};
1.526 +/**
1.527 + * @deprecated
1.528 + */
1.529 +const struct SLafIconLayout KSmallStatusPaneWaitBarIndicator =
1.530 + {3,3,KNoValue,KNoValue,77,9};
1.531 +/**
1.532 + * @deprecated
1.533 + */
1.534 +const struct SLafIconLayout KSmallStatusPaneProgressBarIndicator =
1.535 + {3,3,KNoValue,KNoValue,77,9};
1.536 +/**
1.537 + * @deprecated
1.538 + */
1.539 +const struct SLafIconLayout KSmallStatusPaneGprsIndicator =
1.540 + {KNoValue,KNoValue,KNoValue,KNoValue,12,15};
1.541 +
1.542 +// Mirrored statuspane for A&H
1.543 +/**
1.544 + * @deprecated
1.545 + */
1.546 +const struct SLafIconLayout KMirroredStatusPaneNaviPaneWipeBitmapOffset =
1.547 + {0, 0, 55, KNoValue, 174, 15};
1.548 +
1.549 +/**
1.550 + * @deprecated
1.551 + */
1.552 +const struct SLafIconLayout KMirroredNaviQgnNaviArrowLeft[2] =
1.553 + {
1.554 + {5,0,KNoValue,KNoValue,4,16},
1.555 + {1,0,KNoValue,KNoValue,4,16}
1.556 + };
1.557 +
1.558 +/**
1.559 + * @deprecated
1.560 + */
1.561 +const struct SLafIconLayout KMirroredNaviQgnNaviArrowRight =
1.562 + {0,0,KNoValue,KNoValue,4,16};
1.563 +
1.564 +/**
1.565 + * @deprecated
1.566 + */
1.567 +const struct SLafIconLayout KMirroredNaviQgnNaviTabBitmap =
1.568 + {9,0,KNoValue,KNoValue,107,16};
1.569 +
1.570 +
1.571 +// Naviwipe related constants
1.572 +/**
1.573 + * @deprecated
1.574 + */
1.575 +struct SNaviWipePart
1.576 + {
1.577 + TInt start;
1.578 + TInt end;
1.579 + };
1.580 +
1.581 +// Note that values are for skin navi wipes (176x15). Not for
1.582 +// default avkon LAF navi wipes (174x15).
1.583 +/**
1.584 + * @deprecated
1.585 + */
1.586 +const struct SNaviWipePart KNaviWipeSignalPanePart =
1.587 + {0,12};
1.588 +/**
1.589 + * @deprecated
1.590 + */
1.591 +const struct SNaviWipePart KNaviWipeContextPanePart =
1.592 + {12,56};
1.593 +/**
1.594 + * @deprecated
1.595 + */
1.596 +const struct SNaviWipePart KNaviWipeNaviPanePart =
1.597 + {56,176};
1.598 +
1.599 +/**
1.600 + * @deprecated
1.601 + */
1.602 +const struct SNaviWipePart KNaviWipeSignalPanePartMirrored =
1.603 + {164,176};
1.604 +/**
1.605 + * @deprecated
1.606 + */
1.607 +const struct SNaviWipePart KNaviWipeContextPanePartMirrored =
1.608 + {120,164};
1.609 +/**
1.610 + * @deprecated
1.611 + */
1.612 +const struct SNaviWipePart KNaviWipeNaviPanePartMirrored =
1.613 + {0,120};
1.614 +
1.615 +
1.616 +// Keyboard delays and repeat periods
1.617 +/**
1.618 + * Constant for the delay in microseconds before the key repeating starts
1.619 + * when the key is pressed down.
1.620 + */
1.621 +const TInt KAknKeyboardRepeatInitialDelay = 600000;
1.622 +
1.623 +/**
1.624 + * Keyboard repeat rate in microseconds. Key events are repeated
1.625 + * at this rate when the key is pressed down.
1.626 + *
1.627 + * Editor repeat rate is set in KAknEditorKeyboardRepeatRate constant
1.628 + */
1.629 +const TInt KAknStandardKeyboardRepeatRate = (1000000/6);
1.630 +
1.631 +/**
1.632 + * Keyboard repeat rate in editors in microseconds. Key events are repeated
1.633 + * at this rate in editors when the key is pressed down.
1.634 + */
1.635 +const TInt KAknEditorKeyboardRepeatRate = (1000000/10);
1.636 +
1.637 +
1.638 +
1.639 +/**
1.640 + * Value for unset screen mode.
1.641 + */
1.642 +const TInt KAknScreenModeUnset = -1;
1.643 +
1.644 +#endif // AKNCONSTS_H
1.645 +