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..], STRPTR
64 Provide at initialization time a path to the disk.
67 Wanderer Info passes a "Volume:Disk" string.
68 (because of its icon oriented nature, given that a volume
69 icon is located at volume root in "Disk.info").
72 DiskInfo.mui/MUIA_DiskInfo_Volname
74 DiskInfo.mui/MUIA_DiskInfo_Volname
77 MUIA_DiskInfo_Volname -- [..G], STRPTR
80 Compute the volume name from the path given through MUIA_DiskInfo_Initial.
83 DiskInfo.mui/MUIA_DiskInfo_Initial
85 DiskInfo.mui/MUIA_DiskInfo_Percent
88 MUIA_DiskInfo_Percent -- [..G], ULONG
91 Compute the percent of disk full.
95 DiskInfo.mui/MUIA_DiskInfo_Aspect
98 MUIA_DiskInfo_Aspect -- [ISG], ULONG
101 GUI Aspect, actually 2 aspects are available.
106 DiskInfo.mui/MUIA_DiskInfo_UserLevel
109 MUIA_DiskInfo_UserLevel -- [..G], ULONG
112 UserLevel follows the Installer® MINUSER level:
113 NOVICE -> Hidden "Format" button
114 AVERAGE/ADVANCED -> Ghosted "Format" button, &checkmark
115 EXPERT -> Active "Format" button.
116 By default AVERAGE, but ideally read from SYS:Utilities/Installer.info icon