Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / main / std_includes / asm / Scalos / undo.i
blob8f3ec27ffb96802f3ad82aa6154d281fe12e0637
1 IFND SCA_UNDO_I
2 SCA_UNDO_I SET 1
3 **
4 ** $VER: undo.i 41.1 (23 Oct 2009 21:31:48)
5 **
6 ** File format for scalos_pattern preferences
7 **
8 ** (C) Copyright 2009 The Scalos Team
9 ** All Rights Reserved
12 ;---------------------------------------------------------------------------
14 IFND UTILITY_TAGITEM_I
15 INCLUDE "utility/tagitem.i"
16 ENDC
18 ;---------------------------------------------------------------------------
20 ;enum ScalosUndoType
22 UNDO_Snapshot equ 0
23 UNDO_Unsnapshot equ 1
24 UNDO_Cleanup equ 2
25 UNDO_Copy equ 3
26 UNDO_Move equ 4
27 UNDO_CreateLink equ 5
28 UNDO_ChangeIconPos equ 6
29 UNDO_Rename equ 7
30 UNDO_Relabel equ 8
31 UNDO_Delete equ 9
32 UNDO_Leaveout equ 10
33 UNDO_PutAway equ 11
34 UNDO_NewDrawer equ 12
35 UNDO_SizeWindow equ 13
36 UNDO_SetProtection equ 14
37 UNDO_SetComment equ 15
38 UNDO_SetToolTypes equ 16
39 UNDO_ChangeIconObject equ 17
40 UNDO_CloseWindow equ 18
42 ;enum ScalosUndoTags
43 UNDOTAG_TagBase equ TAG_USER+1287
45 UNDOTAG_UndoMultiStep equ UNDOTAG_TagBase+1
46 UNDOTAG_IconNode equ UNDOTAG_TagBase+1 ; struct ScaIconNode *
47 UNDOTAG_IconList equ UNDOTAG_TagBase+2 ; struct ScaIconNode *
48 UNDOTAG_IconDirLock equ UNDOTAG_TagBase+3 ; BPTR
49 UNDOTAG_CopySrcDirLock equ UNDOTAG_TagBase+4 ; BPTR
50 UNDOTAG_CopyDestDirLock equ UNDOTAG_TagBase+5 ; BPTR
51 UNDOTAG_CopySrcName equ UNDOTAG_TagBase+6 ; CONST_STRPTR
52 UNDOTAG_CopyDestName equ UNDOTAG_TagBase+7 ; CONST_STRPTR
53 UNDOTAG_IconPosX equ UNDOTAG_TagBase+8 ; LONG
54 UNDOTAG_IconPosY equ UNDOTAG_TagBase+9 ; LONG
55 UNDOTAG_OldIconPosX equ UNDOTAG_TagBase+10 ; LONG
56 UNDOTAG_OldIconPosY equ UNDOTAG_TagBase+11 ; LONG
57 UNDOTAG_WindowTask equ UNDOTAG_TagBase+12 ; struct internalScaWindowTask *
58 UNDOTAG_CleanupMode equ UNDOTAG_TagBase+13 ; ULONG
59 UNDOTAG_UndoHook equ UNDOTAG_TagBase+14 ; struct Hook *
60 UNDOTAG_RedoHook equ UNDOTAG_TagBase+15 ; struct Hook *
61 UNDOTAG_DisposeHook equ UNDOTAG_TagBase+16 ; struct Hook *
62 UNDOTAG_SaveIcon equ UNDOTAG_TagBase+17 ; ULONG
63 UNDOTAG_CustomAddHook equ UNDOTAG_TagBase+18 ; struct Hook *
64 UNDOTAG_WbArg equ UNDOTAG_TagBase+19 ; struct WBArg *
65 UNDOTAG_OldWindowLeft equ UNDOTAG_TagBase+20 ; LONG
66 UNDOTAG_OldWindowTop equ UNDOTAG_TagBase+21 ; LONG
67 UNDOTAG_OldWindowWidth equ UNDOTAG_TagBase+22 ; ULONG
68 UNDOTAG_OldWindowHeight equ UNDOTAG_TagBase+23 ; ULONG
69 UNDOTAG_NewWindowLeft equ UNDOTAG_TagBase+24 ; LONG
70 UNDOTAG_NewWindowTop equ UNDOTAG_TagBase+25 ; LONG
71 UNDOTAG_NewWindowWidth equ UNDOTAG_TagBase+26 ; ULONG
72 UNDOTAG_NewWindowHeight equ UNDOTAG_TagBase+27 ; ULONG
73 UNDOTAG_OldWindowVirtX equ UNDOTAG_TagBase+28 ; LONG
74 UNDOTAG_OldWindowVirtY equ UNDOTAG_TagBase+29 ; LONG
75 UNDOTAG_NewWindowVirtX equ UNDOTAG_TagBase+30 ; LONG
76 UNDOTAG_NewWindowVirtY equ UNDOTAG_TagBase+31 ; LONG
77 UNDOTAG_CreateIcon equ UNDOTAG_TagBase+32 ; LONG
78 UNDOTAG_IconName equ UNDOTAG_TagBase+33 ; CONST_STRPTR
79 UNDOTAG_OldProtection equ UNDOTAG_TagBase+34 ; ULONG
80 UNDOTAG_NewProtection equ UNDOTAG_TagBase+35 ; ULONG
81 UNDOTAG_OldComment equ UNDOTAG_TagBase+36 ; CONST_STRPTR
82 UNDOTAG_NewComment equ UNDOTAG_TagBase+37 ; CONST_STRPTR
83 UNDOTAG_OldToolTypes equ UNDOTAG_TagBase+38 ; const STRPTR *
84 UNDOTAG_NewToolTypes equ UNDOTAG_TagBase+39 ; const STRPTR *
85 UNDOTAG_OldIconObject equ UNDOTAG_TagBase+40 ; Object *
86 UNDOTAG_NewIconObject equ UNDOTAG_TagBase+41 ; Object *
88 ;enum ScalosUndoCleanupMode
89 CLEANUP_Default equ 0
90 CLEANUP_ByName equ 1
91 CLEANUP_ByDate equ 2
92 CLEANUP_BySize equ 3
93 CLEANUP_ByType equ 4
95 STRUCTURE UndoCleanupIconEntry,0
96 APTR ucin_IconNode ;const struct ScaIconNode *ucin_IconNode;
97 LONG ucin_Left ;original x position of icon
98 LONG ucin_Top ;original y position of icon
99 LABEL ucin_SIZEOF
101 STRUCTURE UndoCopyMoveEventData,0
102 APTR ucmed_srcDirName ;STRPTR
103 APTR ucmed_destDirName ;STRPTR
104 APTR ucmed_srcName ;STRPTR
105 APTR ucmed_destName ;STRPTR
106 LABEL ucmed_SIZEOF
108 STRUCTURE UndoIconEventData,0
109 APTR uid_DirName ;STRPTR
110 APTR uid_IconName ;STRPTR
111 LABEL uid_SIZEOF
113 STRUCTURE UndoCleanupData,0
114 ULONG ucd_CleanupMode ;enum ScalosUndoCleanupMode
115 APTR ucd_Icons ;struct UndoCleanupIconEntry *
116 ULONG ucd_IconCount ;number of entries in ucd_Icons
117 APTR ucd_WindowTask ;struct ScaWindowTask *
118 APTR ucd_WindowTitle ;STRPTR - a copy of the window title of ucd_WindowTask
119 LABEL ucd_SIZEOF
121 STRUCTURE UndoSnaphotIconData,0
122 APTR usid_DirName ;STRPTR
123 APTR usid_IconName ;STRPTR
124 APTR usid_IconObj ;Object * - Iconobject BEFORE snapshot/unsnaphot
125 ULONG usid_SaveIcon
126 LABEL usid_SIZEOF
128 STRUCTURE UndoSizeWindowData,0
129 APTR uswd_WindowTask ;struct ScaWindowTask *
130 APTR uswd_WindowTitle ;STRPTR - a copy of the window title of ucd_WindowTask
131 LONG uswd_OldLeft
132 LONG uswd_OldTop
133 ULONG uswd_OldWidth
134 ULONG uswd_OldHeight
135 LONG uswd_NewLeft
136 LONG uswd_NewTop
137 ULONG uswd_NewWidth
138 ULONG uswd_NewHeight
139 LONG uswd_OldVirtX
140 LONG uswd_OldVirtY
141 LONG uswd_NewVirtX
142 LONG uswd_NewVirtY
143 LABEL uswd_SIZEOF
145 STRUCTURE UndoNewDrawerData,0
146 APTR und_DirName ; STRPTR
147 APTR und_srcName ; STRPTR
148 ULONG und_CreateIcon
149 LABEL und_SIZEOF
151 STRUCTURE UndoSetProtectionData,0
152 APTR uspd_DirName ; STRPTR
153 APTR uspd_IconName ; STRPTR
154 ULONG uspd_OldProtection
155 ULONG uspd_NewProtection
156 LABEL uspd_SIZEOF
158 STRUCTURE UndoSetCommentData,0
159 APTR uscd_DirName ; STRPTR
160 APTR uscd_IconName ; STRPTR
161 APTR uscd_OldComment ; STRPTR
162 APTR uscd_NewComment ; STRPTR
163 LABEL uscd_SIZEOF
165 STRUCTURE UndoSetToolTypesData,0
166 APTR ustd_DirName ; STRPTR
167 APTR ustd_IconName ; STRPTR
168 APTR ustd_OldToolTypes ; STRPTR *
169 APTR ustd_NewToolTypes ; STRPTR *
170 LABEL ustd_SIZEOF
172 STRUCTURE UndoChangeIconObjectData,0
173 APTR uciod_DirName ; STRPTR
174 APTR uciod_IconName ; STRPTR
175 APTR uciod_OldIconObject ; Object *
176 APTR uciod_NewIconObject ; Object *
177 LABEL uciod_SIZEOF
179 STRUCTURE UndoCloseWindowData,0
180 APTR ucwd_DirName ; STRPTR
181 APTR ucwd_WindowTitle ; STRPTR
182 LONG ucwd_Left;
183 LONG ucwd_Top;
184 ULONG ucwd_Width
185 ULONG ucwd_Height
186 LONG ucwd_VirtX
187 LONG ucwd_VirtY
188 UWORD ucwd_ViewAll
189 UBYTE ucwd_Viewmodes
190 LABEL ucwd_SIZEOF
192 ; uev_Data_SIZEOF is the largest of all sizes of the sub-structures
193 ; UndoCopyMoveEventData, UndoIconEventData, UndoCleanupData, and UndoSnaphotIconData
195 uev_Data_SIZEOF set ucmed_SIZEOF
196 IFGT usid_SIZEOF-uev_Data_SIZEOF
197 uev_Data_SIZEOF set usid_SIZEOF
198 ENDIF
199 IFGT ucd_SIZEOF-uev_Data_SIZEOF
200 uev_Data_SIZEOF set ucd_SIZEOF
201 ENDIF
202 IFGT ucin_SIZEOF-uev_Data_SIZEOF
203 uev_Data_SIZEOF set ucin_SIZEOF
204 ENDIF
205 IFGT uid_SIZEOF-uev_Data_SIZEOF
206 uev_Data_SIZEOF set uid_SIZEOF
207 ENDIF
208 IFGT uswd_SIZEOF-uev_Data_SIZEOF
209 uev_Data_SIZEOF set uswd_SIZEOF
210 ENDIF
211 IFGT und_SIZEOF-uev_Data_SIZEOF
212 uev_Data_SIZEOF set und_SIZEOF
213 ENDIF
214 IFGT uspd_SIZEOF-uev_Data_SIZEOF
215 uev_Data_SIZEOF set uspd_SIZEOF
216 ENDIF
217 IFGT uscd_SIZEOF-uev_Data_SIZEOF
218 uev_Data_SIZEOF set uscd_SIZEOF
219 ENDIF
220 IFGT ustd_SIZEOF-uev_Data_SIZEOF
221 uev_Data_SIZEOF set ustd_SIZEOF
222 ENDIF
223 IFGT uciod_SIZEOF-uev_Data_SIZEOF
224 uev_Data_SIZEOF set uciod_SIZEOF
225 ENDIF
226 IFGT ucwd_SIZEOF-uev_Data_SIZEOF
227 uev_Data_SIZEOF set ucwd_SIZEOF
228 ENDIF
230 STRUCTURE UndoEvent,0
231 STRUCT uev_Node,LN_SIZE
232 ALIGNLONG
233 ULONG uev_Type ;enum ScalosUndoType
235 APTR uev_UndoHook ;struct Hook *
236 APTR uev_RedoHook ;struct Hook *
237 APTR uev_DisposeHook ;struct Hook *
238 APTR uev_CustomAddHook ;struct Hook *
240 LONG uev_OldPosX
241 LONG uev_OldPosY
242 LONG uev_NewPosX
243 LONG uev_NewPosY
245 STRUCT uev_Data,uev_Data_SIZEOF
247 APTR uev_UndoStep ;struct UndoStep *
249 ULONG uev_DescrMsgIDSingle
250 ULONG uev_DescrMsgIDMultiple
252 APTR uev_DescrObjName ;STRPTR *
254 LABEL uev_SIZEOF
256 ;---------------------------------------------------------------------------
258 ENDC ; SCA_UNDO_I