epoc32/include/mw/coedef.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mw/coedef.h	Wed Mar 31 12:27:01 2010 +0100
     1.3 @@ -0,0 +1,138 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __COEDEF_H__
    1.20 +#define __COEDEF_H__
    1.21 +
    1.22 +#include <e32std.h> 
    1.23 +#include <guldef.h> // only requried for limited source compatability with releases prior to 250
    1.24 +
    1.25 +const TInt KCoeCustomColorsArrayValue=0x100057C2;
    1.26 +const TInt KCoeColorGray4=0x19bd6002;
    1.27 +const TInt KCoeColorColor16=0x19bd6003;
    1.28 +const TInt ECoeResourceSignatureValue=4;
    1.29 +
    1.30 +/** Event handling flags. 
    1.31 +
    1.32 +These should be returned by CCoeControl::OfferKeyEventL() to indicate whether 
    1.33 +or not a key event was processed by the control. 
    1.34 +
    1.35 +@publishedAll
    1.36 +@released */
    1.37 +enum TKeyResponse
    1.38 +	{
    1.39 +	/** The key event was not handled. */
    1.40 +	EKeyWasNotConsumed,
    1.41 +	/** The key event was handled. */
    1.42 +	EKeyWasConsumed
    1.43 +	};
    1.44 +
    1.45 +/** Control redraw flags. 
    1.46 +
    1.47 +Passed to CCoeControl::SetFocus() to indicate the requirements for control 
    1.48 +redrawing. 
    1.49 +
    1.50 +@publishedAll
    1.51 +@released */
    1.52 +enum TDrawNow
    1.53 +	{
    1.54 +	/** Redraw of the control is not required immediately. */
    1.55 +	ENoDrawNow,
    1.56 +	/** Redraw control immediately. */
    1.57 +	EDrawNow
    1.58 +	};
    1.59 +
    1.60 +/** Window priority values. 
    1.61 +
    1.62 +These are passed in the aOrdinalPriority argument to RWindowTreeNode::SetOrdinalPosition(). 
    1.63 +
    1.64 +@publishedAll
    1.65 +@released */
    1.66 +enum TCoeWinPriority
    1.67 +	{
    1.68 +	/** -1000 */
    1.69 +	ECoeWinPriorityNeverAtFront		=-1000,
    1.70 +	/** -750 */
    1.71 +	ECoeWinPriorityLow				=-750,
    1.72 +	/** 0 */
    1.73 +	ECoeWinPriorityNormal			=0,
    1.74 +	/** 500 */
    1.75 +	ECoeWinPriorityMedium			=500,
    1.76 +	/** 750 */
    1.77 +	ECoeWinPriorityHigh				=750,
    1.78 +	/** 900 */
    1.79 +	ECoeWinPriorityFep				=900,
    1.80 +	/** 1000 */
    1.81 +	ECoeWinPriorityAlwaysAtFront	=1000
    1.82 +	};
    1.83 +
    1.84 +/** The message UID sent when a colour scheme change event occurs.
    1.85 +
    1.86 +@internalTechnology */
    1.87 +const TInt KUidValueCoeColorSchemeChangeEvent	=0x100056C4;
    1.88 +const TInt KUidValueCoeZoomChangeEvent          =0x100057C3;
    1.89 +const TInt KUidValueCoeFontChangeEvent          =0x100057C4;
    1.90 +
    1.91 +/** @internalTechnology */
    1.92 +const TUint KUidFepFrameworkRepository=0x10272618;
    1.93 +
    1.94 +/** @internalTechnology */
    1.95 +enum // key-masks and keys for the "KUidFepFrameworkRepository" repository
    1.96 +	{
    1.97 +	ERepositoryKeyMask_DefaultSetting	=0x00001000,
    1.98 +	ERepositoryKeyMask_DynamicSetting	=0x00002000,
    1.99 +
   1.100 +	ERepositoryKeyMask_FepId			=0x00000001,
   1.101 +	ERepositoryKeyMask_OnState			=0x00000002,
   1.102 +	ERepositoryKeyMask_OnKeyData		=0x00000004,
   1.103 +	ERepositoryKeyMask_OffKeyData		=0x00000008,
   1.104 +
   1.105 +	ERepositoryKey_DefaultFepId			=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_FepId,
   1.106 +	ERepositoryKey_DefaultOnState		=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnState,
   1.107 +	ERepositoryKey_DefaultOnKeyData		=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnKeyData,
   1.108 +	ERepositoryKey_DefaultOffKeyData	=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OffKeyData,
   1.109 +
   1.110 +	ERepositoryKey_DynamicFepId			=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_FepId,
   1.111 +	ERepositoryKey_DynamicOnState		=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnState,
   1.112 +	ERepositoryKey_DynamicOnKeyData		=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnKeyData,
   1.113 +	ERepositoryKey_DynamicOffKeyData	=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OffKeyData
   1.114 +	};
   1.115 +
   1.116 +/** @internalTechnology */
   1.117 +#if defined(_DEBUG)
   1.118 +#define __DEBUG_CHECK_HEAP_INTEGRITY User::Heap().Check()
   1.119 +#else
   1.120 +#define __DEBUG_CHECK_HEAP_INTEGRITY
   1.121 +#endif
   1.122 +
   1.123 +/** Control key modifier.
   1.124 +
   1.125 +Key codes get changed when the Ctrl key modifier is pressed at the same time as the key . 
   1.126 +The CTRL macro is used to shift the key character appropriately.
   1.127 +
   1.128 +Note: this is not an inline function since that can't be used as the case of a switch 
   1.129 +statement.
   1.130 + 
   1.131 +@publishedAll
   1.132 +@released */
   1.133 +#define CTRL(x) ((x)-'a'+1)
   1.134 +
   1.135 +/** Constant that represents all standard keyboard modifier keys.
   1.136 +
   1.137 +@publishedAll
   1.138 +@released */
   1.139 +#define EAllStdModifiers (EModifierFunc|EModifierCtrl|EModifierShift)
   1.140 +
   1.141 +#endif	// __COEDEF_H__