5
* Created by John Louch on Wed Feb 25 2004.
6
* Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
10
{ Pascal Translation: Gale R Paeper, <gpaeper@empirenet.com>, 2006 }
13
Modified for use with Free Pascal
15
Please report any bugs to <gpc@microbizz.nl>
24
unit AXActionConstants;
26
{$setc UNIVERSAL_INTERFACES_VERSION := $0342}
27
{$setc GAP_INTERFACES_VERSION := $0210}
29
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
30
{$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
33
{$ifc defined CPUPOWERPC and defined CPUI386}
34
{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
36
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
37
{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
40
{$ifc not defined __ppc__ and defined CPUPOWERPC}
45
{$ifc not defined __i386__ and defined CPUI386}
51
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
52
{$error Conflicting definitions for __ppc__ and __i386__}
55
{$ifc defined __ppc__ and __ppc__}
56
{$setc TARGET_CPU_PPC := TRUE}
57
{$setc TARGET_CPU_X86 := FALSE}
58
{$elifc defined __i386__ and __i386__}
59
{$setc TARGET_CPU_PPC := FALSE}
60
{$setc TARGET_CPU_X86 := TRUE}
62
{$error Neither __ppc__ nor __i386__ is defined.}
64
{$setc TARGET_CPU_PPC_64 := FALSE}
66
{$ifc defined FPC_BIG_ENDIAN}
67
{$setc TARGET_RT_BIG_ENDIAN := TRUE}
68
{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
69
{$elifc defined FPC_LITTLE_ENDIAN}
70
{$setc TARGET_RT_BIG_ENDIAN := FALSE}
71
{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
73
{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
75
{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
76
{$setc CALL_NOT_IN_CARBON := FALSE}
77
{$setc OLDROUTINENAMES := FALSE}
78
{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
79
{$setc OPAQUE_UPP_TYPES := TRUE}
80
{$setc OTCARBONAPPLICATION := TRUE}
81
{$setc OTKERNEL := FALSE}
82
{$setc PM_USE_SESSION_APIS := TRUE}
83
{$setc TARGET_API_MAC_CARBON := TRUE}
84
{$setc TARGET_API_MAC_OS8 := FALSE}
85
{$setc TARGET_API_MAC_OSX := TRUE}
86
{$setc TARGET_CARBON := TRUE}
87
{$setc TARGET_CPU_68K := FALSE}
88
{$setc TARGET_CPU_MIPS := FALSE}
89
{$setc TARGET_CPU_SPARC := FALSE}
90
{$setc TARGET_OS_MAC := TRUE}
91
{$setc TARGET_OS_UNIX := FALSE}
92
{$setc TARGET_OS_WIN32 := FALSE}
93
{$setc TARGET_RT_MAC_68881 := FALSE}
94
{$setc TARGET_RT_MAC_CFM := FALSE}
95
{$setc TARGET_RT_MAC_MACHO := TRUE}
96
{$setc TYPED_FUNCTION_POINTERS := TRUE}
97
{$setc TYPE_BOOL := FALSE}
98
{$setc TYPE_EXTENDED := FALSE}
99
{$setc TYPE_LONGLONG := TRUE}
105
TBD: Explain general philosophy on whether to expose an action or not.
106
Our initial philopsophy is to not to have an action where there is a menu item
107
or button that does the same thing.
111
{$ifc USE_CFSTR_CONSTANT_MACROS}
112
{$definec kAXPressAction CFSTRP('AXPress')}
114
{$ifc USE_CFSTR_CONSTANT_MACROS}
115
{$definec kAXIncrementAction CFSTRP('AXIncrement')}
117
{$ifc USE_CFSTR_CONSTANT_MACROS}
118
{$definec kAXDecrementAction CFSTRP('AXDecrement')}
120
{$ifc USE_CFSTR_CONSTANT_MACROS}
121
{$definec kAXConfirmAction CFSTRP('AXConfirm')}
123
{$ifc USE_CFSTR_CONSTANT_MACROS}
124
{$definec kAXCancelAction CFSTRP('AXCancel')}
128
{$ifc USE_CFSTR_CONSTANT_MACROS}
129
{$definec kAXRaiseAction CFSTRP('AXRaise')}
131
{$ifc USE_CFSTR_CONSTANT_MACROS}
132
{$definec kAXShowMenuAction CFSTRP('AXShowMenu')}
135
// obsolete actions will be removed soon
136
{$ifc USE_CFSTR_CONSTANT_MACROS}
137
{$definec kAXPickAction CFSTRP('AXPick')}