disable the unrecognized nls and x flags
[AROS-Contrib.git] / bgui / sliderclass.c
blob931834a31d872d60ccb5bb161fa2d110b2ce6629
1 /*
2 * @(#) $Header$
4 * BGUI library
5 * sliderclass.c
7 * (C) Copyright 1998 Manuel Lemos.
8 * (C) Copyright 1996-1997 Ian J. Einman.
9 * (C) Copyright 1993-1996 Jaba Development.
10 * (C) Copyright 1993-1996 Jan van den Baard.
11 * All Rights Reserved.
13 * $Log$
14 * Revision 42.2 2004/06/16 20:16:48 verhaegs
15 * Use METHODPROTO, METHOD_END and REGFUNCPROTOn where needed.
17 * Revision 42.1 2000/05/15 19:27:02 stegerg
18 * another hundreds of REG() macro replacements in func headers/protos.
20 * Revision 42.0 2000/05/09 22:10:13 mlemos
21 * Bumped to revision 42.0 before handing BGUI to AROS team
23 * Revision 41.11 2000/05/09 19:55:07 mlemos
24 * Merged with the branch Manuel_Lemos_fixes.
26 * Revision 41.10 1998/02/25 21:13:08 mlemos
27 * Bumping to 41.10
29 * Revision 1.1 1998/02/25 17:09:46 mlemos
30 * Ian sources
35 #include "include/classdefs.h"
37 /// OM_NEW
39 * Create a shiny new object.
41 METHOD(SliderClassNew, struct opSet *, ops)
43 struct TagItem *tags;
44 IPTR rc;
46 tags = DefTagList(BGUI_SLIDER_GADGET, ops->ops_AttrList);
49 * First we let the superclass get us an object.
51 if ((rc = NewSuperObject(cl, obj, tags)))
53 AsmDoSuperMethod(cl, (Object *)rc, OM_SET, tags, NULL);
55 FreeTagItems(tags);
57 return rc;
59 METHOD_END
60 ///
61 ///Class initialization.
63 * Class function table.
65 STATIC DPFUNC ClassFunc[] =
67 { OM_NEW, SliderClassNew, },
68 { DF_END, NULL },
72 * Class initialization.
74 makeproto Class *InitSliderClass(void)
76 return BGUI_MakeClass(CLASS_SuperClassBGUI, BGUI_PROP_GADGET,
77 CLASS_DFTable, ClassFunc,
78 TAG_DONE);
80 ///