Indentation fix, cleanup.
[AROS.git] / workbench / system / Wanderer / Tools / DiskInfo / diskinfo.doc
blob0b78c561f86e2ffb9f9242ad5f68e1bb65b4a68f
1 TABLE OF CONTENTS
3 DiskInfo.mui/DiskInfo.mui
5     A DiskInfo object, for general using and particulary Wanderer use.
7     BACKGROUND
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.
13     EXAMPLE
14     {
15     ...
16         if (DiskInfo_Initialize())
17         {
18         ...
19             application = DiskInfoObject,
20                 MUIA_DiskInfo_Initial, (IPTR) initial,
21             End;
23             if (application != NULL)
24             {
25                 DoMethod(application, MUIM_Application_Execute);
26                 MUI_DisposeObject(application);
27             }
28         ...
29             DiskInfo_Deinitialize();
30         }
31     ...
32     }
34     FUNCTIONS
35     DiskInfo.mui/DiskInfo_Initialize()
36     DiskInfo.mui/DiskInfo_Deinitialize()
38     ATTRIBUTES
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]
45     METHODS
46     DiskInfo.mui/MUIM_Application_Execute
47     DiskInfo.mui/OM_NEW
48     DiskInfo.mui/OM_GET
49     DiskInfo.mui/OM_SET
50     DiskInfo.mui/OM_DISPOSE
52 DiskInfo.mui/DiskInfo_Initialize()
54     NAME
55     DiskInfo_Initialize()
58 DiskInfo.mui/MUIA_DiskInfo_Initial
60     NAME
61     MUIA_DiskInfo_Initial -- [I..], BPTR
63     FUNCTION
64     Provide at initialization time a lock to the disk's root.
66     SEE ALSO
67     DiskInfo.mui/MUIA_DiskInfo_Volname
69 DiskInfo.mui/MUIA_DiskInfo_Volname
71     NAME
72     MUIA_DiskInfo_Volname -- [..G], STRPTR
74     FUNCTION
75     Compute the volume name from the path given through MUIA_DiskInfo_Initial.
77     SEE ALSO
78     DiskInfo.mui/MUIA_DiskInfo_Initial
80 DiskInfo.mui/MUIA_DiskInfo_Percent
82     NAME
83     MUIA_DiskInfo_Percent -- [..G], ULONG
85     FUNCTION
86     Compute the percent of disk full.
88     SEE ALSO
90 DiskInfo.mui/MUIA_DiskInfo_Aspect
92     NAME
93     MUIA_DiskInfo_Aspect -- [ISG], ULONG
95     FUNCTION
96     GUI Aspect, actually 2 aspects are available.
97     More in the future.
99     SEE ALSO
101 DiskInfo.mui/MUIA_DiskInfo_UserLevel
103     NAME
104     MUIA_DiskInfo_UserLevel -- [..G], ULONG
106     FUNCTION
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
112     "MINUSER" tooltype.
114     SEE ALSO