2 Copyright © 2002, The AROS Development Team.
8 #include <exec/types.h>
14 #include <intuition/gadgetclass.h>
15 #include <intuition/icclass.h>
16 #include <proto/exec.h>
17 #include <proto/intuition.h>
18 #include <proto/muimaster.h>
19 #include <clib/alib_protos.h>
21 /* the following should go in a single include file which then only
22 ** constits of the public constants and members. Actually this is easiey
25 #include <libraries/mui.h>
27 struct Library
*MUIMasterBase
;
35 MUIMasterBase
= (struct Library
*)OpenLibrary("muimaster.library",0);
37 app
= ApplicationObject
,
38 SubWindow
, wnd
= WindowObject
,
39 MUIA_Window_Title
, "volumelist",
40 MUIA_Window_Activate
, TRUE
,
42 WindowContents
, VGroup
,
43 MUIA_Background
, MUII_GroupBack
,
44 Child
, ListviewObject
,
45 MUIA_Listview_List
, VolumelistObject
,
59 wnd
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
, (IPTR
) app
,
60 2, MUIM_Application_ReturnID
, MUIV_Application_ReturnID_Quit
63 set(wnd
,MUIA_Window_Open
,TRUE
);
65 while (DoMethod(app
, MUIM_Application_NewInput
, (IPTR
) &sigs
) != MUIV_Application_ReturnID_Quit
)
69 sigs
= Wait(sigs
| SIGBREAKF_CTRL_C
| SIGBREAKF_CTRL_D
);
70 if (sigs
& SIGBREAKF_CTRL_C
) break;
71 if (sigs
& SIGBREAKF_CTRL_D
) break;
75 MUI_DisposeObject(app
);
78 CloseLibrary(MUIMasterBase
);