1 #ifndef ZUNE_PREFSEDITOR_H
2 #define ZUNE_PREFSEDITOR_H
5 Copyright © 2004-2013, The AROS Development Team. All rights reserved.
6 This file is part of the PrefsEditor class, which is distributed under
7 the terms of version 2.1 of the GNU Lesser General Public License.
13 #include <libraries/mui.h>
15 /*** Name *******************************************************************/
16 #define MUIC_PrefsEditor "PrefsEditor.mcc"
18 /*** Identifier base ********************************************************/
19 #define MUIB_PrefsEditor (MUIB_AROS | 0x00000500)
21 /*** Public Methods *********************************************************/
22 #define MUIM_PrefsEditor_Test (MUIB_PrefsEditor | 0x00000000)
23 #define MUIM_PrefsEditor_Revert (MUIB_PrefsEditor | 0x00000001)
24 #define MUIM_PrefsEditor_Save (MUIB_PrefsEditor | 0x00000002)
25 #define MUIM_PrefsEditor_Use (MUIB_PrefsEditor | 0x00000003)
26 #define MUIM_PrefsEditor_Cancel (MUIB_PrefsEditor | 0x00000004)
27 #define MUIM_PrefsEditor_Import (MUIB_PrefsEditor | 0x00000005)
28 struct MUIP_PrefsEditor_Import
{STACKED ULONG MethodID
; STACKED CONST_STRPTR filename
;};
29 #define MUIM_PrefsEditor_Export (MUIB_PrefsEditor | 0x00000006)
30 struct MUIP_PrefsEditor_Export
{STACKED ULONG MethodID
; STACKED CONST_STRPTR filename
;};
32 /*** Public (Abstract) Methods **********************************************/
33 #define MUIM_PrefsEditor_ImportFH (MUIB_PrefsEditor | 0x00000007)
34 struct MUIP_PrefsEditor_ImportFH
{STACKED ULONG MethodID
; STACKED BPTR fh
;};
35 #define MUIM_PrefsEditor_ExportFH (MUIB_PrefsEditor | 0x00000008)
36 struct MUIP_PrefsEditor_ExportFH
{STACKED ULONG MethodID
; STACKED BPTR fh
;};
37 #define MUIM_PrefsEditor_SetDefaults (MUIB_PrefsEditor | 0x00000009)
39 /*** Public Attributes ******************************************************/
40 #define MUIA_PrefsEditor_Name (MUIB_PrefsEditor | 0x00000000) /* I-G CONST_STRPTR */
41 #define MUIA_PrefsEditor_Changed (MUIB_PrefsEditor | 0x00000001) /* -SG BOOL */
42 #define MUIA_PrefsEditor_Testing (MUIB_PrefsEditor | 0x00000002) /* -SG BOOL */
43 #define MUIA_PrefsEditor_CanSave (MUIB_PrefsEditor | 0x00000004) /* I-G BOOL */
44 #define MUIA_PrefsEditor_CanTest (MUIB_PrefsEditor | 0x00000005) /* I-G BOOL */
45 #define MUIA_PrefsEditor_CanUse (MUIB_PrefsEditor | 0x00000007) /* I-G BOOL */
47 /*** Protected Attributes ***************************************************/
48 #define MUIA_PrefsEditor_Path (MUIB_PrefsEditor | 0x00000003) /* I-G CONST_STRPTR */
49 #define MUIA_PrefsEditor_IconTool (MUIB_PrefsEditor | 0x00000006) /* I-G CONST_STRPTR */
51 /*** Macros *****************************************************************/
52 #define PrefsEditorObject MUIOBJMACRO_START(MUIC_PrefsEditor)
54 #endif /* ZUNE_PREFSEDITOR_H */