muimaster.library: migrate event handling from Listview to List
[AROS.git] / workbench / tools / HDToolBox / gui.h
blob0d6e24b09ffabed66e0e2c2f731680cc9da1d15a
1 #ifndef GUI_H
2 #define GUI_H
4 #include <exec/nodes.h>
5 #include <intuition/classusr.h>
7 enum {
8 GB_FIRST=0,
9 GB_ADD_ENTRY=GB_FIRST,
10 GB_REMOVE_ENTRY,
11 GB_CREATE_TABLE,
12 GB_CHANGE_TYPE,
13 GB_RESIZE_MOVE,
14 GB_PARENT,
15 GB_RENAME,
16 GB_DOSENVEC,
17 GB_SWITCHES,
18 GB_SAVE_CHANGES,
19 GB_EXIT,
20 GB_LAST=GB_EXIT
23 struct GUIGadgets {
24 Object *text;
25 Object *leftlv;
26 Object *rightlv;
27 Object *buttons[11];
31 struct ListNode {
32 struct Node ln;
33 struct List list;
34 struct List history;
35 struct ListNode *parent;
36 ULONG flags; /* see below */
37 UWORD change_count; /* number of changes on this node or children*/
40 #define LNT_Root (0)
41 #define LNT_Parent (1)
42 #define LNT_Device (2)
43 #define LNT_Harddisk (3)
44 #define LNT_Partition (4)
46 #define LNF_Listable (1<<0)
47 #define LNF_Unused1 (1<<1)
48 #define LNF_ToSave (1<<2) /* entries has been changed and must be saved */
49 #define LNF_Invalid (1<<3)
50 #define LNF_IntermedChange (1<<4)
52 LONG initGUI(void);
53 void deinitGUI(void);
54 BOOL QuitGUI(ULONG *);
55 LONG InitListNode(struct ListNode *, struct ListNode *);
56 void UninitListNode(struct ListNode *);
57 void InsertList(Object *, struct ListNode *);
58 void ShowList(Object *, struct List *);
60 #endif /* GUI_H */