convert line ends
[canaan.git] / prj / cam / src / object / otreebas.h
bloba39b4679518003b0659d6686bf3e111130f4a5f5
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/object/otreebas.h,v 1.5 1998/05/13 21:15:33 mahk Exp $
7 #pragma once
8 #ifndef __OTREEBAS_H
9 #define __OTREEBAS_H
11 #include <otreetyp.h>
14 // Object Tree Editor Base Types
17 enum eObjTreeFlags
19 kObjTreePermitConcretes = 1 << 0,
21 kObjTreeNoAddButton = 1 << 1,
22 kObjTreeNoDelButton = 1 << 2,
23 kObjTreeNoCreateButton = 1 << 3,
26 struct sObjTreeEditorDesc
28 char title[32]; // window title (optional)
29 ulong flags;
30 sObjTreeDesc* trees; // Null terminated array of sObjTreeDescs
33 enum eTreeCBResult // a bitmask for callback results
35 kObjTreeIgnore = 0, // Move along, nothing to see here
36 kObjTreeCancel = 1 << 3, // Cancel the effect of the button
37 kObjTreeNormal = 1 << 0, // perform the default operation for the button
38 kObjTreeChanged= 1 << 1, // I did something that should impact the tree
39 kObjTreeQuit = 1 << 2, // quit the tree editor
42 struct sObjTreeDesc
44 char treename[32]; // human-readable name of tree
45 Label rootname; // obj name of root
46 ulong flags;
48 struct sObjTreeFuncs
50 // "add button" method, return true for success
51 eTreeCBResult (LGAPI * add)(ObjID obj, const char* name);
52 // "del button" callback, return true to let obj be deleted normally
53 eTreeCBResult (LGAPI * del)(ObjID obj);
54 // "create button" callback
55 eTreeCBResult (LGAPI * create)(ObjID obj);
56 } func;
59 // The correct terminator for a treedesc list
60 #define NULL_TREEDESC { "" }
62 #endif // __OTREEBAS_H