Put pciehci.device in DEVS:USBHardware, like the other host-controller
[AROS.git] / test / Zune / disable.c
blobf42544fb9d3c74059c1e24dc6401bcd0512e625f
1 /*
2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include <string.h>
11 #include <dos/dos.h>
12 #include <intuition/gadgetclass.h>
13 #include <intuition/icclass.h>
14 #include <proto/exec.h>
15 #include <proto/intuition.h>
16 #include <proto/muimaster.h>
17 #include <clib/alib_protos.h>
19 #include <libraries/mui.h>
22 int main(void)
24 Object *application, *window, *b1, *b2, *b3;
26 application = ApplicationObject,
27 SubWindow, window = WindowObject,
28 MUIA_Window_Title, (IPTR) "Disable",
29 MUIA_Window_Activate, TRUE,
31 WindowContents, (IPTR) VGroup,
32 Child, (IPTR) (b1 = ImageButton("Test", "THEME:Images/Gadgets/Prefs/Test")),
33 Child, (IPTR) HGroup,
34 Child, (IPTR) (b2 = SimpleButton("Disable")),
35 Child, (IPTR) (b3 = SimpleButton("Enable")),
36 End,
37 End,
38 End,
39 End;
41 if (application)
43 ULONG sigs = 0;
45 DoMethod
47 window, MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
48 (IPTR) application, 2, MUIM_Application_ReturnID,
49 MUIV_Application_ReturnID_Quit
52 DoMethod
54 b2, MUIM_Notify, MUIA_Pressed, FALSE,
55 (IPTR) b1, 3, MUIM_Set, MUIA_Disabled, TRUE
58 DoMethod
60 b3, MUIM_Notify, MUIA_Pressed, FALSE,
61 (IPTR) b1, 3, MUIM_Set, MUIA_Disabled, FALSE
64 set(window,MUIA_Window_Open,TRUE);
66 while
68 DoMethod
70 application, MUIM_Application_NewInput, (IPTR) &sigs
71 ) != MUIV_Application_ReturnID_Quit
74 if (sigs)
76 sigs = Wait(sigs | SIGBREAKF_CTRL_C | SIGBREAKF_CTRL_D);
77 if (sigs & SIGBREAKF_CTRL_C) break;
78 if (sigs & SIGBREAKF_CTRL_D) break;
82 MUI_DisposeObject(application);
85 return 0;