xref: /haiku/src/apps/cortex/DiagramView/DiagramDefs.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
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 
11 #ifndef __DiagramDefs_H__
12 #define __DiagramDefs_H__
13 
14 #include "cortex_defs.h"
15 __BEGIN_CORTEX_NAMESPACE
16 
17 // Message constants
18 enum message_t
19 {
20 	// Selection changed
21 	// - (DiagramItem *)		"item"
22 	// - (bool)					"replace"
23 	M_SELECTION_CHANGED		= DiagramView_message_base,
24 
25 	// Diagram Box dragged
26 	// - (DiagramBox *)			"item"
27 	// - (BPoint)				"offset"
28 	M_BOX_DRAGGED,
29 
30 	// Diagram Wire dragged
31 	// - (DiagramEndPoint *)	"from"
32 	M_WIRE_DRAGGED,
33 
34 	// Diagram Wire dropped
35 	// - (DiagramEndPoint *)	"from"
36 	// - (DiagramEndPoint *)	"to"
37 	// - (bool)					"success"
38 	M_WIRE_DROPPED,
39 
40 	// Diagram View 'Rect Tracking'
41 	// - (BPoint)				"origin"
42 	M_RECT_TRACKING
43 };
44 
45 __END_CORTEX_NAMESPACE
46 #endif /* __DiagramDefs_H__ */
47