4 ** $VER
: undo.i
41.1 (23 Oct
2009 21:31:48)
6 ** File format for scalos_pattern preferences
8 ** (C
) Copyright
2009 The Scalos Team
12 ;---------------------------------------------------------------------------
14 IFND UTILITY_TAGITEM_I
15 INCLUDE
"utility/tagitem.i"
18 ;---------------------------------------------------------------------------
28 UNDO_ChangeIconPos equ
6
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
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
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
101 STRUCTURE UndoCopyMoveEventData
,0
102 APTR ucmed_srcDirName
;STRPTR
103 APTR ucmed_destDirName
;STRPTR
104 APTR ucmed_srcName
;STRPTR
105 APTR ucmed_destName
;STRPTR
108 STRUCTURE UndoIconEventData
,0
109 APTR uid_DirName
;STRPTR
110 APTR uid_IconName
;STRPTR
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
121 STRUCTURE UndoSnaphotIconData
,0
122 APTR usid_DirName
;STRPTR
123 APTR usid_IconName
;STRPTR
124 APTR usid_IconObj
;Object
* - Iconobject BEFORE snapshot
/unsnaphot
128 STRUCTURE UndoSizeWindowData
,0
129 APTR uswd_WindowTask
;struct ScaWindowTask
*
130 APTR uswd_WindowTitle
;STRPTR
- a copy of the window title of ucd_WindowTask
145 STRUCTURE UndoNewDrawerData
,0
146 APTR und_DirName
; STRPTR
147 APTR und_srcName
; STRPTR
151 STRUCTURE UndoSetProtectionData
,0
152 APTR uspd_DirName
; STRPTR
153 APTR uspd_IconName
; STRPTR
154 ULONG uspd_OldProtection
155 ULONG uspd_NewProtection
158 STRUCTURE UndoSetCommentData
,0
159 APTR uscd_DirName
; STRPTR
160 APTR uscd_IconName
; STRPTR
161 APTR uscd_OldComment
; STRPTR
162 APTR uscd_NewComment
; STRPTR
165 STRUCTURE UndoSetToolTypesData
,0
166 APTR ustd_DirName
; STRPTR
167 APTR ustd_IconName
; STRPTR
168 APTR ustd_OldToolTypes
; STRPTR
*
169 APTR ustd_NewToolTypes
; STRPTR
*
172 STRUCTURE UndoChangeIconObjectData
,0
173 APTR uciod_DirName
; STRPTR
174 APTR uciod_IconName
; STRPTR
175 APTR uciod_OldIconObject
; Object
*
176 APTR uciod_NewIconObject
; Object
*
179 STRUCTURE UndoCloseWindowData
,0
180 APTR ucwd_DirName
; STRPTR
181 APTR ucwd_WindowTitle
; STRPTR
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
199 IFGT ucd_SIZEOF-uev_Data_SIZEOF
200 uev_Data_SIZEOF set ucd_SIZEOF
202 IFGT ucin_SIZEOF-uev_Data_SIZEOF
203 uev_Data_SIZEOF set ucin_SIZEOF
205 IFGT uid_SIZEOF-uev_Data_SIZEOF
206 uev_Data_SIZEOF set uid_SIZEOF
208 IFGT uswd_SIZEOF-uev_Data_SIZEOF
209 uev_Data_SIZEOF set uswd_SIZEOF
211 IFGT und_SIZEOF-uev_Data_SIZEOF
212 uev_Data_SIZEOF set und_SIZEOF
214 IFGT uspd_SIZEOF-uev_Data_SIZEOF
215 uev_Data_SIZEOF set uspd_SIZEOF
217 IFGT uscd_SIZEOF-uev_Data_SIZEOF
218 uev_Data_SIZEOF set uscd_SIZEOF
220 IFGT ustd_SIZEOF-uev_Data_SIZEOF
221 uev_Data_SIZEOF set ustd_SIZEOF
223 IFGT uciod_SIZEOF-uev_Data_SIZEOF
224 uev_Data_SIZEOF set uciod_SIZEOF
226 IFGT ucwd_SIZEOF-uev_Data_SIZEOF
227 uev_Data_SIZEOF set ucwd_SIZEOF
230 STRUCTURE UndoEvent
,0
231 STRUCT uev_Node
,LN_SIZE
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
*
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
*
256 ;---------------------------------------------------------------------------