xref: /haiku/src/apps/cortex/cortex_defs.h (revision 93a78ecaa45114d68952d08c4778f073515102f2)
1 // cortex_defs.h
2 // * PURPOSE
3 //   Preprocessor stuff for the Cortex toolkit.
4 //
5 // * NOTES
6 //   To place the Cortex classes in a namespace of your
7 //   choosing, set the preprocessor variable CORTEX_NAMESPACE
8 //   to whatever string you want.
9 //
10 //   Message 'namespaces' are defined here as well.
11 //
12 // * HISTORY
13 //   e.moon		25jun99		Begun
14 #ifndef CORTEX_DEFS_H
15 #define CORTEX_DEFS_H
16 
17 
18 #include <SupportDefs.h>
19 
20 // namespace support
21 #ifdef CORTEX_NAMESPACE
22 	#define __BEGIN_CORTEX_NAMESPACE namespace CORTEX_NAMESPACE {
23 	#define __END_CORTEX_NAMESPACE }
24 	#define __USE_CORTEX_NAMESPACE using namespace CORTEX_NAMESPACE;
25 	#define __CORTEX_NAMESPACE__ CORTEX_NAMESPACE::
26 #else
27 	#define CORTEX_NAMESPACE
28 	#define __BEGIN_CORTEX_NAMESPACE
29 	#define __END_CORTEX_NAMESPACE
30 	#define __USE_CORTEX_NAMESPACE
31 	#define __CORTEX_NAMESPACE__
32 #endif
33 
34 #define TOUCH(x) ((void)(x))
35 
36 // message 'what' code base values
37 
38 const uint32 NodeManager_message_base			= 'NMaA';
39 const uint32 NodeManager_int_message_base		= 'Nm_A';
40 const uint32 NodeGroup_message_base				= 'NGrA';
41 const uint32 NodeRef_message_base				= 'NReA';
42 const uint32 NodeSyncThread_message_base		= 'NStA';
43 
44 const uint32 RouteApp_message_base				= 'RoAA';
45 const uint32 RouteWindow_message_base			= 'RoWA';
46 const uint32 DiagramView_message_base			= 'DiVA';
47 const uint32 MediaRoutingView_message_base		= 'RoVA';
48 
49 const uint32 TransportWindow_message_base		= 'TrWA';
50 const uint32 TransportView_message_base			= 'TrVA';
51 
52 const uint32 ValControl_message_base			= 'VcnA';
53 
54 const uint32 Observable_message_base			= 'ObTA';
55 const uint32 Observer_message_base				= 'Ob_A';
56 
57 const uint32 AddOnHostApp_message_base 			= 'NahA';
58 
59 const uint32 RouteAppNodeManager_message_base	= 'RMaA';
60 
61 const uint32 InfoView_message_base				= 'InVA';
62 
63 const uint32 ParameterWindow_message_base		= 'PaWA';
64 
65 #endif	// CORTEX_DEFS_H
66