Fixed warning while generated AutoDoc documentation: NewList() is not in Exec.
[AROS.git] / test / Zune / mini2.c
bloba591e5539136f0041214ae0f84042e93f38f2ff2
1 /*
2 Copyright © 2002, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
8 #include <exec/types.h>
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <string.h>
13 #include <dos/dos.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 #define DEBUG 1
28 #include <aros/debug.h>
30 Object *app;
32 int main(void)
34 Object *wnd;
35 static char *radio_entries2[] = {"Paris","London",NULL};
37 app = ApplicationObject,
38 SubWindow, wnd = WindowObject,
39 WindowContents, VGroup,
40 Child, HGroup,
41 MUIA_InputMode, MUIV_InputMode_Immediate,
42 /* MUIA_ShowSelState, FALSE, */
43 Child, ImageObject,
44 MUIA_ShowSelState, FALSE,
45 MUIA_Image_FontMatch, TRUE,
46 MUIA_Image_Spec, MUII_RadioButton,
47 MUIA_Frame, MUIV_Frame_None,
48 End,
49 Child, TextObject,
50 MUIA_ShowSelState, FALSE,
51 MUIA_Text_Contents, "London",
52 MUIA_Frame, MUIV_Frame_None,
53 MUIA_Text_PreParse, "\33l",
54 End,
55 End,
56 End,
57 End,
58 End;
60 if (app)
62 ULONG sigs = 0;
63 /* #if 0 */
64 DoMethod(wnd, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, app, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);
66 /* #endif */
67 set(wnd, MUIA_Window_Open, TRUE);
69 /* #if 0 */
70 while((LONG) DoMethod(app, MUIM_Application_NewInput, &sigs) != MUIV_Application_ReturnID_Quit)
72 if (sigs)
74 sigs = Wait(sigs | SIGBREAKF_CTRL_C | SIGBREAKF_CTRL_D);
75 if (sigs & SIGBREAKF_CTRL_C) break;
76 if (sigs & SIGBREAKF_CTRL_D) break;
79 /* #endif */
80 set(wnd, MUIA_Window_Open, FALSE);
81 MUI_DisposeObject(app);
84 return 0;