/*
    Copyright (C) 2002-2003, The AROS Development Team. All rights reserved.
*/

#define MUIMASTER_YES_INLINE_STDARG

#include <graphics/gfx.h>
#include <graphics/view.h>
#include <clib/alib_protos.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <proto/utility.h>
#include <proto/intuition.h>
#include <proto/muimaster.h>

#include "mui.h"
#include "muimaster_intern.h"
#include "support.h"
#include "support_classes.h"
#include "settingsgroup_private.h"

extern struct Library *MUIMasterBase;


IPTR Settingsgroup__OM_NEW(struct IClass *cl, Object *obj,
    struct opSet *msg)
{
    struct TagItem *tags;
    struct TagItem *tag;

    obj = (Object *) DoSuperNewTags
        (cl, obj, NULL, TAG_MORE, (IPTR) msg->ops_AttrList);
    if (!obj)
        return FALSE;

    /* parse initial taglist */

    for (tags = msg->ops_AttrList; (tag = NextTagItem(&tags));)
    {
        switch (tag->ti_Tag)
        {
        }
    }

    return (IPTR) obj;
}

IPTR Settingsgroup__MUIM_Settingsgroup_ConfigToGadgets(struct IClass *cl,
    Object *obj, struct MUIP_Settingsgroup_ConfigToGadgets *msg)
{
    //struct MUI_Settingsgroup *data = INST_DATA(cl, obj);
    return 0;
}

IPTR Settingsgroup__MUIM_Settingsgroup_GadgetsToConfig(struct IClass *cl,
    Object *obj, struct MUIP_Settingsgroup_GadgetsToConfig *msg)
{
    //struct MUI_Settingsgroup *data = INST_DATA(cl, obj);
    return 0;
}

#if ZUNE_BUILTIN_SETTINGSGROUP
BOOPSI_DISPATCHER(IPTR, Settingsgroup_Dispatcher, cl, obj, msg)
{
    switch (msg->MethodID)
    {
    case OM_NEW:
        return Settingsgroup__OM_NEW(cl, obj, (struct opSet *)msg);

    case MUIM_Settingsgroup_ConfigToGadgets:
        return Settingsgroup__MUIM_Settingsgroup_ConfigToGadgets(cl, obj,
            (APTR) msg);

    case MUIM_Settingsgroup_GadgetsToConfig:
        return Settingsgroup__MUIM_Settingsgroup_GadgetsToConfig(cl, obj,
            (APTR) msg);

    default:
        return DoSuperMethodA(cl, obj, msg);
    }
}
BOOPSI_DISPATCHER_END

const struct __MUIBuiltinClass _MUI_Settingsgroup_desc =
{
    MUIC_Settingsgroup,
    MUIC_Group,
    sizeof(struct Settingsgroup_DATA),
    (void *) Settingsgroup_Dispatcher
};
#endif /* ZUNE_BUILTIN_SETTINGSGROUP */
