3 DiskInfo.mui/DiskInfo.mui
5 A DiskInfo object, for general using and particulary Wanderer use.
8 DiskInfo provides a sub-window for disk/volumes informations
9 like size, name, icon image, buffers, Format feature, etc.
10 User can set different aspects and skills levels.
11 DiskInfo requires one argument: The initial path to disk icon.
16 if (DiskInfo_Initialize())
19 application = DiskInfoObject,
20 MUIA_DiskInfo_Initial, (IPTR) initial,
23 if (application != NULL)
25 DoMethod(application, MUIM_Application_Execute);
26 MUI_DisposeObject(application);
29 DiskInfo_Deinitialize();
35 DiskInfo.mui/DiskInfo_Initialize()
36 DiskInfo.mui/DiskInfo_Deinitialize()
39 DiskInfo.mui/MUIA_DiskInfo_Initial [I..]
40 DiskInfo.mui/MUIA_DiskInfo_Volname [..G]
41 DiskInfo.mui/MUIA_DiskInfo_Percent [..G]
42 DiskInfo.mui/MUIA_DiskInfo_Aspect [ISG]
43 DiskInfo.mui/MUIA_DiskInfo_UserLevel [..G]
46 DiskInfo.mui/MUIM_Application_Execute
50 DiskInfo.mui/OM_DISPOSE
52 DiskInfo.mui/DiskInfo_Initialize()
58 DiskInfo.mui/MUIA_DiskInfo_Initial
61 MUIA_DiskInfo_Initial -- [I..], BPTR
64 Provide at initialization time a lock to the disk's root.
67 DiskInfo.mui/MUIA_DiskInfo_Volname
69 DiskInfo.mui/MUIA_DiskInfo_Volname
72 MUIA_DiskInfo_Volname -- [..G], STRPTR
75 Compute the volume name from the path given through MUIA_DiskInfo_Initial.
78 DiskInfo.mui/MUIA_DiskInfo_Initial
80 DiskInfo.mui/MUIA_DiskInfo_Percent
83 MUIA_DiskInfo_Percent -- [..G], ULONG
86 Compute the percent of disk full.
90 DiskInfo.mui/MUIA_DiskInfo_Aspect
93 MUIA_DiskInfo_Aspect -- [ISG], ULONG
96 GUI Aspect, actually 2 aspects are available.
101 DiskInfo.mui/MUIA_DiskInfo_UserLevel
104 MUIA_DiskInfo_UserLevel -- [..G], ULONG
107 UserLevel follows the Installer® MINUSER level:
108 NOVICE -> Hidden "Format" button
109 AVERAGE/ADVANCED -> Ghosted "Format" button, &checkmark
110 EXPERT -> Active "Format" button.
111 By default AVERAGE, but ideally read from SYS:Utilities/Installer.info icon