williamr@2
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#ifndef __COEDEF_H__
|
williamr@2
|
17 |
#define __COEDEF_H__
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#include <e32std.h>
|
williamr@2
|
20 |
#include <guldef.h> // only requried for limited source compatability with releases prior to 250
|
williamr@2
|
21 |
|
williamr@2
|
22 |
const TInt KCoeCustomColorsArrayValue=0x100057C2;
|
williamr@2
|
23 |
const TInt KCoeColorGray4=0x19bd6002;
|
williamr@2
|
24 |
const TInt KCoeColorColor16=0x19bd6003;
|
williamr@2
|
25 |
const TInt ECoeResourceSignatureValue=4;
|
williamr@2
|
26 |
|
williamr@2
|
27 |
/** Event handling flags.
|
williamr@2
|
28 |
|
williamr@2
|
29 |
These should be returned by CCoeControl::OfferKeyEventL() to indicate whether
|
williamr@2
|
30 |
or not a key event was processed by the control.
|
williamr@2
|
31 |
|
williamr@2
|
32 |
@publishedAll
|
williamr@2
|
33 |
@released */
|
williamr@2
|
34 |
enum TKeyResponse
|
williamr@2
|
35 |
{
|
williamr@2
|
36 |
/** The key event was not handled. */
|
williamr@2
|
37 |
EKeyWasNotConsumed,
|
williamr@2
|
38 |
/** The key event was handled. */
|
williamr@2
|
39 |
EKeyWasConsumed
|
williamr@2
|
40 |
};
|
williamr@2
|
41 |
|
williamr@2
|
42 |
/** Control redraw flags.
|
williamr@2
|
43 |
|
williamr@2
|
44 |
Passed to CCoeControl::SetFocus() to indicate the requirements for control
|
williamr@2
|
45 |
redrawing.
|
williamr@2
|
46 |
|
williamr@2
|
47 |
@publishedAll
|
williamr@2
|
48 |
@released */
|
williamr@2
|
49 |
enum TDrawNow
|
williamr@2
|
50 |
{
|
williamr@2
|
51 |
/** Redraw of the control is not required immediately. */
|
williamr@2
|
52 |
ENoDrawNow,
|
williamr@2
|
53 |
/** Redraw control immediately. */
|
williamr@2
|
54 |
EDrawNow
|
williamr@2
|
55 |
};
|
williamr@2
|
56 |
|
williamr@2
|
57 |
/** Window priority values.
|
williamr@2
|
58 |
|
williamr@2
|
59 |
These are passed in the aOrdinalPriority argument to RWindowTreeNode::SetOrdinalPosition().
|
williamr@2
|
60 |
|
williamr@2
|
61 |
@publishedAll
|
williamr@2
|
62 |
@released */
|
williamr@2
|
63 |
enum TCoeWinPriority
|
williamr@2
|
64 |
{
|
williamr@2
|
65 |
/** -1000 */
|
williamr@2
|
66 |
ECoeWinPriorityNeverAtFront =-1000,
|
williamr@2
|
67 |
/** -750 */
|
williamr@2
|
68 |
ECoeWinPriorityLow =-750,
|
williamr@2
|
69 |
/** 0 */
|
williamr@2
|
70 |
ECoeWinPriorityNormal =0,
|
williamr@2
|
71 |
/** 500 */
|
williamr@2
|
72 |
ECoeWinPriorityMedium =500,
|
williamr@2
|
73 |
/** 750 */
|
williamr@2
|
74 |
ECoeWinPriorityHigh =750,
|
williamr@2
|
75 |
/** 900 */
|
williamr@2
|
76 |
ECoeWinPriorityFep =900,
|
williamr@2
|
77 |
/** 1000 */
|
williamr@2
|
78 |
ECoeWinPriorityAlwaysAtFront =1000
|
williamr@2
|
79 |
};
|
williamr@2
|
80 |
|
williamr@2
|
81 |
/** The message UID sent when a colour scheme change event occurs.
|
williamr@2
|
82 |
|
williamr@2
|
83 |
@internalTechnology */
|
williamr@2
|
84 |
const TInt KUidValueCoeColorSchemeChangeEvent =0x100056C4;
|
williamr@2
|
85 |
const TInt KUidValueCoeZoomChangeEvent =0x100057C3;
|
williamr@2
|
86 |
const TInt KUidValueCoeFontChangeEvent =0x100057C4;
|
williamr@2
|
87 |
|
williamr@2
|
88 |
/** @internalTechnology */
|
williamr@2
|
89 |
const TUint KUidFepFrameworkRepository=0x10272618;
|
williamr@2
|
90 |
|
williamr@2
|
91 |
/** @internalTechnology */
|
williamr@2
|
92 |
enum // key-masks and keys for the "KUidFepFrameworkRepository" repository
|
williamr@2
|
93 |
{
|
williamr@2
|
94 |
ERepositoryKeyMask_DefaultSetting =0x00001000,
|
williamr@2
|
95 |
ERepositoryKeyMask_DynamicSetting =0x00002000,
|
williamr@2
|
96 |
|
williamr@2
|
97 |
ERepositoryKeyMask_FepId =0x00000001,
|
williamr@2
|
98 |
ERepositoryKeyMask_OnState =0x00000002,
|
williamr@2
|
99 |
ERepositoryKeyMask_OnKeyData =0x00000004,
|
williamr@2
|
100 |
ERepositoryKeyMask_OffKeyData =0x00000008,
|
williamr@2
|
101 |
|
williamr@2
|
102 |
ERepositoryKey_DefaultFepId =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_FepId,
|
williamr@2
|
103 |
ERepositoryKey_DefaultOnState =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnState,
|
williamr@2
|
104 |
ERepositoryKey_DefaultOnKeyData =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnKeyData,
|
williamr@2
|
105 |
ERepositoryKey_DefaultOffKeyData =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OffKeyData,
|
williamr@2
|
106 |
|
williamr@2
|
107 |
ERepositoryKey_DynamicFepId =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_FepId,
|
williamr@2
|
108 |
ERepositoryKey_DynamicOnState =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnState,
|
williamr@2
|
109 |
ERepositoryKey_DynamicOnKeyData =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnKeyData,
|
williamr@2
|
110 |
ERepositoryKey_DynamicOffKeyData =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OffKeyData
|
williamr@2
|
111 |
};
|
williamr@2
|
112 |
|
williamr@2
|
113 |
/** @internalTechnology */
|
williamr@2
|
114 |
#if defined(_DEBUG)
|
williamr@2
|
115 |
#define __DEBUG_CHECK_HEAP_INTEGRITY User::Heap().Check()
|
williamr@2
|
116 |
#else
|
williamr@2
|
117 |
#define __DEBUG_CHECK_HEAP_INTEGRITY
|
williamr@2
|
118 |
#endif
|
williamr@2
|
119 |
|
williamr@2
|
120 |
/** Control key modifier.
|
williamr@2
|
121 |
|
williamr@2
|
122 |
Key codes get changed when the Ctrl key modifier is pressed at the same time as the key .
|
williamr@2
|
123 |
The CTRL macro is used to shift the key character appropriately.
|
williamr@2
|
124 |
|
williamr@2
|
125 |
Note: this is not an inline function since that can't be used as the case of a switch
|
williamr@2
|
126 |
statement.
|
williamr@2
|
127 |
|
williamr@2
|
128 |
@publishedAll
|
williamr@2
|
129 |
@released */
|
williamr@2
|
130 |
#define CTRL(x) ((x)-'a'+1)
|
williamr@2
|
131 |
|
williamr@2
|
132 |
/** Constant that represents all standard keyboard modifier keys.
|
williamr@2
|
133 |
|
williamr@2
|
134 |
@publishedAll
|
williamr@2
|
135 |
@released */
|
williamr@2
|
136 |
#define EAllStdModifiers (EModifierFunc|EModifierCtrl|EModifierShift)
|
williamr@2
|
137 |
|
williamr@2
|
138 |
#endif // __COEDEF_H__
|