xref: /haiku/src/apps/cortex/DiagramView/DiagramDefs.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 // DiagramDefs.h (Cortex/DiagramView)
2 //
3 // * PURPOSE
4 //   Contains some global constants used by most of the
5 //   DiagramView classes, currently only message "what"s
6 //
7 // * HISTORY
8 //   c.lenz		25sep99		Begun
9 //
10 #ifndef DIAGRAM_DEFS_H
11 #define DIAGRAM_DEFS_H
12 
13 #include "cortex_defs.h"
14 __BEGIN_CORTEX_NAMESPACE
15 
16 // Message constants
17 enum message_t
18 {
19 	// Selection changed
20 	// - (DiagramItem *)		"item"
21 	// - (bool)					"replace"
22 	M_SELECTION_CHANGED		= DiagramView_message_base,
23 
24 	// Diagram Box dragged
25 	// - (DiagramBox *)			"item"
26 	// - (BPoint)				"offset"
27 	M_BOX_DRAGGED,
28 
29 	// Diagram Wire dragged
30 	// - (DiagramEndPoint *)	"from"
31 	M_WIRE_DRAGGED,
32 
33 	// Diagram Wire dropped
34 	// - (DiagramEndPoint *)	"from"
35 	// - (DiagramEndPoint *)	"to"
36 	// - (bool)					"success"
37 	M_WIRE_DROPPED,
38 
39 	// Diagram View 'Rect Tracking'
40 	// - (BPoint)				"origin"
41 	M_RECT_TRACKING
42 };
43 
44 __END_CORTEX_NAMESPACE
45 #endif	// DIAGRAM_DEFS_H
46