grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / classes / zune / listtree / Listtree_mcc.h
blobfecfef8a18dd99a1576caf38a67c239d59f9f436
1 #ifndef ZUNE_LISTTREE_MCC_H
2 #define ZUNE_LISTTREE_MCC_H
4 #include <libraries/mui.h>
6 /*** Name *******************************************************************/
7 #define MUIC_Listtree "Listtree.mcc"
9 /*** Identifier base ********************************************************/
11 /*** Attributes *************************************************************/
12 #define MUIA_Listtree_Active (MUIB_MUI|0x00020020) /* [.SG] APTR */
13 #define MUIA_Listtree_Quiet (MUIB_MUI|0x0002000a) /* [.SG] BOOL */
14 #define MUIA_Listtree_DoubleClick (MUIB_MUI|0x0002000d) /* [.SG] BOOL */
15 #define MUIA_Listtree_ConstructHook (MUIB_MUI|0x00020016) /* [I..] struct Hook * */
16 #define MUIA_Listtree_DestructHook (MUIB_MUI|0x00020017) /* [I..] struct Hook * */
17 #define MUIA_Listtree_DisplayHook (MUIB_MUI|0x00020018) /* [I..] struct Hook * */
18 #define MUIA_Listtree_Title (MUIB_MUI|0x00020015) /* [I..] BOOL */
19 #define MUIA_Listtree_Format (MUIB_MUI|0x00020014) /* [I..] STRPTR */
20 #define MUIA_Listtree_DragDropSort (MUIB_MUI|0x00020031) /* [I..] BOOL */
21 #define MUIA_Listtree_SortHook (MUIB_MUI|0x00020010) /* [I..] struct Hook * */
23 #define MUIV_Listtree_FindName_ListNode_Root 0
24 #define MUIV_Listtree_FindName_ListNode_Active -2
26 #define MUIV_Listtree_FindName_Flags_Visible (1<<14)
27 #define MUIV_Listtree_FindName_Flags_SameLevel (1<<15)
29 #define MUIV_Listtree_GetEntry_Position_Head 0
30 #define MUIV_Listtree_GetEntry_Position_Tail -1
31 #define MUIV_Listtree_GetEntry_Position_Active -2
32 #define MUIV_Listtree_GetEntry_Position_Next -3
33 #define MUIV_Listtree_GetEntry_Position_Previous -4
34 #define MUIV_Listtree_GetEntry_Position_Parent -5
36 #define MUIV_Listtree_GetEntry_Flags_Visible (1<<14)
37 #define MUIV_Listtree_GetEntry_Flags_SameLevel (1<<15)
39 #define MUIV_Listtree_GetEntry_ListNode_Root 0
40 #define MUIV_Listtree_GetEntry_ListNode_Active -2
42 #define MUIV_Listtree_GetNr_TreeNode_Active -2
44 #define MUIV_Listtree_GetNr_Flags_ListEmpty (1<<12)
45 #define MUIV_Listtree_GetNr_Flags_CountList (1<<13)
46 #define MUIV_Listtree_GetNr_Flags_CountLevel (1<<14)
47 #define MUIV_Listtree_GetNr_Flags_CountAll (1<<15)
49 #define MUIV_Listtree_Remove_ListNode_Root 0
50 #define MUIV_Listtree_Remove_ListNode_Active -2
52 #define MUIV_Listtree_Remove_TreeNode_Head 0
53 #define MUIV_Listtree_Remove_TreeNode_Tail -1
54 #define MUIV_Listtree_Remove_TreeNode_Active -2
55 #define MUIV_Listtree_Remove_TreeNode_All -3
57 /* #define MUIV_Listtree_Remove_Flags_Visible (1<<14) Not supported */
58 /* #define MUIV_Listtree_Remove_Flags_Nr (1<<15) Not supported */
60 #define MUIV_Listtree_Rename_TreeNode_Active -2
62 #define MUIV_Listtree_Rename_Flags_User (1<<8)
63 #define MUIV_Listtree_Rename_Flags_NoRefresh (1<<9)
65 #define MUIV_Listtree_Insert_ListNode_Root 0
66 #define MUIV_Listtree_Insert_ListNode_Active -2
68 #define MUIV_Listtree_Insert_PrevNode_Head 0
69 #define MUIV_Listtree_Insert_PrevNode_Tail -1
70 #define MUIV_Listtree_Insert_PrevNode_Active -2
71 #define MUIV_Listtree_Insert_PrevNode_Sorted -4
73 #define MUIV_Listtree_Insert_Flags_NextNode (1<<12)
74 #define MUIV_Listtree_Insert_Flags_Active (1<<13)
75 /* #define MUIV_Listtree_Insert_Flags_Visible (1<<14) Not supported */
76 /* #define MUIV_Listtree_Insert_Flags_Nr (1<<15) Not supported */
78 #define MUIV_Listtree_Open_ListNode_Root 0
79 #define MUIV_Listtree_Open_ListNode_Parent -1
80 #define MUIV_Listtree_Open_ListNode_Active -2
82 #define MUIV_Listtree_Open_TreeNode_Head 0
83 #define MUIV_Listtree_Open_TreeNode_Tail -1
84 #define MUIV_Listtree_Open_TreeNode_Active -2
85 #define MUIV_Listtree_Open_TreeNode_All -3
87 /* #define MUIV_Listtree_Open_Flags_Visible (1<<14) Not supported */
88 /* #define MUIV_Listtree_Open_Flags_Nr (1<<15) Not supported */
90 #define MUIV_Listtree_Close_ListNode_Root 0
91 #define MUIV_Listtree_Close_ListNode_Parent -1
92 #define MUIV_Listtree_Close_ListNode_Active -2
94 #define MUIV_Listtree_Close_TreeNode_Head 0
95 #define MUIV_Listtree_Close_TreeNode_Tail -1
96 #define MUIV_Listtree_Close_TreeNode_Active -2
97 #define MUIV_Listtree_Close_TreeNode_All -3
99 /* #define MUIV_Listtree_Close_Flags_Visible (1<<14) Not supported */
100 /* #define MUIV_Listtree_Close_Flags_Nr (1<<15) Not supported */
102 #define MUIV_Listtree_SetDropMark_Values_None 0
104 #define MUIV_Listtree_TestPos_Result_Flags_None 0
105 #define MUIV_Listtree_TestPos_Result_Flags_Above 1
106 #define MUIV_Listtree_TestPos_Result_Flags_Below 2
107 #define MUIV_Listtree_TestPos_Result_Flags_Onto 3
108 #define MUIV_Listtree_TestPos_Result_Flags_Sorted 4
111 #define TNF_OPEN (1<<00)
112 #define TNF_LIST (1<<01)
114 /*** Methods ****************************************************************/
115 #define MUIM_Listtree_FindName (MUIB_MUI|0x0002003c)
116 #define MUIM_Listtree_GetEntry (MUIB_MUI|0x0002002b)
117 #define MUIM_Listtree_GetNr (MUIB_MUI|0x0002000e)
118 #define MUIM_Listtree_Remove (MUIB_MUI|0x00020012)
119 #define MUIM_Listtree_Insert (MUIB_MUI|0x00020011)
120 #define MUIM_Listtree_Rename (MUIB_MUI|0x0002000c)
121 #define MUIM_Listtree_Open (MUIB_MUI|0x0002001e)
122 #define MUIM_Listtree_Close (MUIB_MUI|0x0002001f)
123 #define MUIM_Listtree_TestPos (MUIB_MUI|0x0002004b)
124 #define MUIM_Listtree_SetDropMark (MUIB_MUI|0x0002004c)
126 struct MUIS_Listtree_TreeNode
128 SIPTR tn_Private1;
129 SIPTR tn_Private2;
130 STRPTR tn_Name;
131 UWORD tn_Flags;
132 APTR tn_User;
135 struct MUIS_Listtree_TestPos_Result
137 APTR tpr_TreeNode;
138 UWORD tpr_Flags;
139 LONG tpr_ListEntry;
140 UWORD tpr_ListFlags;
143 struct MUIP_Listtree_Insert {STACKED ULONG MethodID;STACKED STRPTR Name;STACKED APTR User;STACKED APTR ListNode;STACKED APTR PrevNode;STACKED ULONG Flags;};
144 struct MUIP_Listtree_GetEntry {STACKED ULONG MethodID; STACKED APTR Node;STACKED LONG Position;STACKED ULONG Flags;};
145 struct MUIP_Listtree_GetNr {STACKED ULONG MethodID;STACKED APTR TreeNode;STACKED ULONG Flags;};
146 struct MUIP_Listtree_Remove {STACKED ULONG MethodID;STACKED APTR ListNode;STACKED APTR TreeNode;STACKED ULONG Flags;};
147 struct MUIP_Listtree_Rename {STACKED ULONG MethodID;STACKED APTR TreeNode;STACKED STRPTR NewName;STACKED ULONG Flags;};
148 struct MUIP_Listtree_Open {STACKED ULONG MethodID;STACKED APTR ListNode;STACKED APTR TreeNode;STACKED ULONG Flags;};
149 struct MUIP_Listtree_Close {STACKED ULONG MethodID;STACKED APTR ListNode;STACKED APTR TreeNode;STACKED ULONG Flags;};
150 struct MUIP_Listtree_TestPos {STACKED ULONG MethodID;STACKED LONG X;STACKED LONG Y;STACKED APTR Result;};
151 struct MUIP_Listtree_SetDropMark {STACKED ULONG MethodID;STACKED LONG Entry;STACKED ULONG Values;};
152 struct MUIP_Listtree_FindName {STACKED ULONG MethodID;STACKED APTR ListNode;STACKED STRPTR Name;STACKED ULONG Flags;};
154 #endif /* ZUNE_LISTTREE_MCC_H */