Tabs to spaces, more consistent formatting.
[AROS.git] / workbench / libs / muimaster / classes / settingsgroup.c
blob01611ed0fc99ffd09848a804abd2ffaa95ea2556
1 /*
2 Copyright © 2002-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define MUIMASTER_YES_INLINE_STDARG
8 #include <graphics/gfx.h>
9 #include <graphics/view.h>
10 #include <clib/alib_protos.h>
11 #include <proto/exec.h>
12 #include <proto/graphics.h>
13 #include <proto/utility.h>
14 #include <proto/intuition.h>
15 #include <proto/muimaster.h>
17 #include "mui.h"
18 #include "muimaster_intern.h"
19 #include "support.h"
20 #include "support_classes.h"
21 #include "settingsgroup_private.h"
23 extern struct Library *MUIMasterBase;
26 IPTR Settingsgroup__OM_NEW(struct IClass *cl, Object *obj,
27 struct opSet *msg)
29 struct TagItem *tags;
30 struct TagItem *tag;
32 obj = (Object *) DoSuperNewTags
33 (cl, obj, NULL, TAG_MORE, (IPTR) msg->ops_AttrList);
34 if (!obj)
35 return FALSE;
37 /* parse initial taglist */
39 for (tags = msg->ops_AttrList; (tag = NextTagItem(&tags));)
41 switch (tag->ti_Tag)
46 return (IPTR) obj;
49 IPTR Settingsgroup__MUIM_Settingsgroup_ConfigToGadgets(struct IClass *cl,
50 Object *obj, struct MUIP_Settingsgroup_ConfigToGadgets *msg)
52 //struct MUI_Settingsgroup *data = INST_DATA(cl, obj);
53 return 0;
56 IPTR Settingsgroup__MUIM_Settingsgroup_GadgetsToConfig(struct IClass *cl,
57 Object *obj, struct MUIP_Settingsgroup_GadgetsToConfig *msg)
59 //struct MUI_Settingsgroup *data = INST_DATA(cl, obj);
60 return 0;
63 #if ZUNE_BUILTIN_SETTINGSGROUP
64 BOOPSI_DISPATCHER(IPTR, Settingsgroup_Dispatcher, cl, obj, msg)
66 switch (msg->MethodID)
68 case OM_NEW:
69 return Settingsgroup__OM_NEW(cl, obj, (struct opSet *)msg);
71 case MUIM_Settingsgroup_ConfigToGadgets:
72 return Settingsgroup__MUIM_Settingsgroup_ConfigToGadgets(cl, obj,
73 (APTR) msg);
75 case MUIM_Settingsgroup_GadgetsToConfig:
76 return Settingsgroup__MUIM_Settingsgroup_GadgetsToConfig(cl, obj,
77 (APTR) msg);
79 default:
80 return DoSuperMethodA(cl, obj, msg);
83 BOOPSI_DISPATCHER_END
85 const struct __MUIBuiltinClass _MUI_Settingsgroup_desc =
87 MUIC_Settingsgroup,
88 MUIC_Group,
89 sizeof(struct Settingsgroup_DATA),
90 (void *) Settingsgroup_Dispatcher
92 #endif /* ZUNE_BUILTIN_SETTINGSGROUP */