2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 #define MUIMASTER_YES_INLINE_STDARG
9 #include <aros/debug.h>
11 #include <exec/types.h>
12 #include <intuition/classes.h>
13 #include <intuition/classusr.h>
14 #include <libraries/mui.h>
15 #include <libraries/desktop.h>
18 #include "desktop_intern.h"
20 #include <proto/dos.h>
21 #include <proto/intuition.h>
22 #include <proto/utility.h>
24 #include "internaliconopsclass.h"
25 #include "iconclass.h"
27 #include "desktop_intern_protos.h"
29 IPTR
internalIconOpsNew(Class
* cl
, Object
* obj
, struct opSet
* msg
)
32 struct InternalIconOpsClassData
*data
;
33 //struct TagItem *tag;
35 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
38 obj
= (Object
*) retval
;
39 data
= INST_DATA(cl
, obj
);
45 IPTR
internalIconOpsSet(Class
* cl
, Object
* obj
, struct opSet
* msg
)
47 struct InternalIconOpsClassData
*data
;
50 *tstate
= msg
->ops_AttrList
;
52 data
= (struct InternalIconOpsClassData
*) INST_DATA(cl
, obj
);
54 while ((tag
= NextTagItem(&tstate
)))
63 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
68 IPTR
internalIconOpsGet(Class
* cl
, Object
* obj
, struct opGet
* msg
)
71 struct InternalIconOpsClassData
*data
;
73 data
= (struct InternalIconOpsClassData
*) INST_DATA(cl
, obj
);
75 switch (msg
->opg_AttrID
)
78 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
85 IPTR
internalIconOpsDispose(Class
* cl
, Object
* obj
, Msg msg
)
89 retval
= DoSuperMethodA(cl
, obj
, msg
);
94 IPTR
internalIconOpsExecute(Class
* cl
, Object
* obj
, struct opExecute
* msg
)
97 struct InternalIconOpsClassData
*data
;
99 data
= (struct InternalIconOpsClassData
*) INST_DATA(cl
, obj
);
101 switch (msg
->operationCode
)
104 case (DOC_ICONOP
| 1):
105 SetAttrs(msg
->target
, IA_Executed
, TRUE
, TAG_END
);
112 BOOPSI_DISPATCHER(IPTR
, internalIconOpsDispatcher
, cl
, obj
, msg
)
116 switch (msg
->MethodID
)
119 retval
= internalIconOpsNew(cl
, obj
, (struct opSet
*) msg
);
122 retval
= internalIconOpsSet(cl
, obj
, (struct opSet
*) msg
);
125 retval
= internalIconOpsGet(cl
, obj
, (struct opGet
*) msg
);
128 retval
= internalIconOpsDispose(cl
, obj
, msg
);
132 internalIconOpsExecute(cl
, obj
, (struct opExecute
*) msg
);
135 retval
= DoSuperMethodA(cl
, obj
, msg
);
141 BOOPSI_DISPATCHER_END