1 #ifndef _ZUNE_ZUNESTUFF_H
2 #define _ZUNE_ZUNESTUFF_H
5 Copyright 2002-2012, The AROS Development Team. All rights reserved.
9 #include <intuition/classusr.h>
10 #include <libraries/mui.h>
11 #include <libraries/asl.h>
15 extern struct MUI_CustomClass
*ClassListview_CLASS
;
16 struct MUI_CustomClass
*create_listview_class(void);
17 void delete_listview_class(void);
23 struct MUI_CustomClass
*cl
; /* The class pointer, maybe NULL */
24 Object
*group
; /* The group which should be is displayed, maybe NULL */
25 Object
*mcp_icon
; /* Result of MCC_Query(2) or xxxclass_get_image () */
26 APTR mcp_listimage
; /* mcp_image translated to list image */
27 const struct __MUIBuiltinClass
*desc
;
28 struct Library
*mcp_library
;
29 UBYTE mcp_namebuffer
[MAXFILENAMELENGTH
+ 1];
30 UBYTE mcp_imagespec
[30]; /* Image specification of MCP image */
34 Object
*MakeButton (CONST_STRPTR str
);
35 Object
*MakeCycle (CONST_STRPTR label
, CONST_STRPTR entries
[]);
36 Object
*MakeCheck (CONST_STRPTR label
);
37 Object
*MakeSpacingSlider (void);
38 Object
*MakeBackgroundPopimage(void);
39 Object
*MakePopframe(void);
40 Object
*MakePoppen(void);
41 Object
*MakeString(void);
42 Object
*MakePopfont(BOOL fixed
);
43 Object
*MakePopfile(BOOL fixed
, CONST_STRPTR pattern
);
45 long aslfilerequest(char *msg
,char *dirpart
,char *filepart
,char *fullname
, struct TagItem
*tags
);
47 void SliderToConfig (Object
*slider
, Object
*configdata
, ULONG cfg
);
48 void CheckmarkToConfig (Object
*checkmark
, Object
*configdata
, ULONG cfg
);
49 void FrameToConfig (Object
*popframe
, Object
*configdata
, ULONG cfg
);
50 void PenToConfig (Object
*poppen
, Object
*configdata
, ULONG cfg
);
51 void CycleToConfig (Object
*cycle
, Object
*configdata
, ULONG cfg
);
52 void StringToConfig (Object
*string
, Object
*configdata
, ULONG cfg
);
54 void ConfigToSlider (Object
*configdata
, ULONG cfg
, Object
*slider
);
55 void ConfigToCheckmark (Object
*configdata
, ULONG cfg
, Object
*checkmark
);
56 void ConfigToFrame (Object
*configdata
, ULONG cfg
, Object
*popframe
);
57 void ConfigToPen (Object
*configdata
, ULONG cfg
, Object
*poppen
);
58 void ConfigToCycle (Object
*configdata
, ULONG cfg
, Object
*cycle
);
59 void ConfigToString (Object
*configdata
, ULONG cfg
, Object
*string
);
61 #define getstring(obj) (char*)XGET(obj,MUIA_String_Contents)
62 #define FindFont(id) (void*)DoMethod(msg->configdata,MUIM_Dataspace_Find,id)
64 #endif /* _ZUNE_ZUNESTUFF_H */