home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
blabla
/
prefsexchange
/
prefsexchange_mcc.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-24
|
7KB
|
126 lines
/**
*** PrefsExchange.mcc V16
*** public part of the C header file
**/
#ifndef MUI_PREFSEXCHANGE_MCC_H
#define MUI_PREFSEXCHANGE_MCC_H 1
#define PrefsExchange_TAGBASE 0xfb030000
/* attributes */
#define MUIA_PrefsExchange_Application PrefsExchange_TAGBASE+19
#define MUIA_PrefsExchange_AppMask PrefsExchange_TAGBASE+4
#define MUIA_PrefsExchange_CopyrightString PrefsExchange_TAGBASE+2
#define MUIA_PrefsExchange_CreateIcons PrefsExchange_TAGBASE+16
#define MUIA_PrefsExchange_DescriptionString PrefsExchange_TAGBASE+17
#define MUIA_PrefsExchange_FileRequester PrefsExchange_TAGBASE+21
#define MUIA_PrefsExchange_GadgetDisplay PrefsExchange_TAGBASE+9
#define MUIA_PrefsExchange_InfoDisplay PrefsExchange_TAGBASE+8
#define MUIA_PrefsExchange_Locale PrefsExchange_TAGBASE+14
#define MUIA_PrefsExchange_MemPool PrefsExchange_TAGBASE+15
#define MUIA_PrefsExchange_MinVersion PrefsExchange_TAGBASE+20
#define MUIA_PrefsExchange_Name PrefsExchange_TAGBASE+1
#define MUIA_PrefsExchange_PEPageClass PrefsExchange_TAGBASE+22
#define MUIA_PrefsExchange_PresetSupport PrefsExchange_TAGBASE+23
#define MUIA_PrefsExchange_Priority PrefsExchange_TAGBASE+7
#define MUIA_PrefsExchange_Window PrefsExchange_TAGBASE+18
#define MUIA_PrefsExchange_VersionString PrefsExchange_TAGBASE+5
/* methods */
#define MUIM_PrefsExchange_Action PrefsExchange_TAGBASE+64+5
#define MUIM_PrefsExchange_AllocIFF PrefsExchange_TAGBASE+64+20
#define MUIM_PrefsExchange_AllocNotifyRequest PrefsExchange_TAGBASE+64+12
#define MUIM_PrefsExchange_ARexxCmd PrefsExchange_TAGBASE+64+28
#define MUIM_PrefsExchange_ContextMenuBuild PrefsExchange_TAGBASE+64+32
#define MUIM_PrefsExchange_ContextMenuChoice PrefsExchange_TAGBASE+64+33
#define MUIM_PrefsExchange_CreateGUI PrefsExchange_TAGBASE+64+2
#define MUIM_PrefsExchange_CreateImage PrefsExchange_TAGBASE+64+1
#define MUIM_PrefsExchange_DataspaceToPrefs PrefsExchange_TAGBASE+64+27
#define MUIM_PrefsExchange_DeleteGUI PrefsExchange_TAGBASE+64+3
#define MUIM_PrefsExchange_DeleteImage PrefsExchange_TAGBASE+64+4
#define MUIM_PrefsExchange_EndNotify PrefsExchange_TAGBASE+64+15
#define MUIM_PrefsExchange_FileRequest PrefsExchange_TAGBASE+64+30
#define MUIM_PrefsExchange_Finish PrefsExchange_TAGBASE+64+29
#define MUIM_PrefsExchange_FreeIFF PrefsExchange_TAGBASE+64+21
#define MUIM_PrefsExchange_FreeNotifyRequest PrefsExchange_TAGBASE+64+13
#define MUIM_PrefsExchange_GetDiskObject PrefsExchange_TAGBASE+64+25
#define MUIM_PrefsExchange_LoadFile PrefsExchange_TAGBASE+22
#define MUIM_PrefsExchange_MemAllocBuffer PrefsExchange_TAGBASE+64+7
#define MUIM_PrefsExchange_MemBufferSize PrefsExchange_TAGBASE+64+11
#define MUIM_PrefsExchange_MemFreeBuffer PrefsExchange_TAGBASE+64+8
#define MUIM_PrefsExchange_MemMakeBuffer PrefsExchange_TAGBASE+64+9
#define MUIM_PrefsExchange_MemStrToBuffer PrefsExchange_TAGBASE+64+10
#define MUIM_PrefsExchange_Message PrefsExchange_TAGBASE+64+6
#define MUIM_PrefsExchange_NotifyMessage PrefsExchange_TAGBASE+64+16
#define MUIM_PrefsExchange_PrefsToDataspace PrefsExchange_TAGBASE+64+26
#define MUIM_PrefsExchange_ReportDOSError PrefsExchange_TAGBASE+64+19
#define MUIM_PrefsExchange_ReportError PrefsExchange_TAGBASE+64+17
#define MUIM_PrefsExchange_ReportIFFError PrefsExchange_TAGBASE+64+18
#define MUIM_PrefsExchange_SaveFile PrefsExchange_TAGBASE+64+23
#define MUIM_PrefsExchange_SaveIcon PrefsExchange_TAGBASE+64+34
#define MUIM_PrefsExchange_StartNotify PrefsExchange_TAGBASE+64+14
/* parameter structures */
struct MUIP_PrefsExchange_Action {ULONG MethodID; ULONG actionid; ULONG reserved; ULONG flags;};
struct MUIP_PrefsExchange_AllocIFF {ULONG MethodID; STRPTR name; ULONG mode; ULONG flags;};
struct MUIP_PrefsExchange_AllocNotifyRequest {ULONG MethodID; ULONG userdata;};
struct MUIP_PrefsExchange_ARexxCmd {ULONG MethodID; STRPTR command; ULONG reserved;};
struct MUIP_PrefsExchange_ContextMenuBuild {ULONG MethodID; Object *menu;};
struct MUIP_PrefsExchange_ContextMenuChoice {ULONG MethodID; Object *item;};
struct MUIP_PrefsExchange_CreateGUI {ULONG MethodID; ULONG reserved;};
struct MUIP_PrefsExchange_CreateImage {ULONG MethodID; ULONG reserved;};
struct MUIP_PrefsExchange_DataspaceToPrefs {ULONG MethodID; Object *dataspace;};
struct MUIP_PrefsExchange_DeleteGUI {ULONG MethodID; Object *GUI;};
struct MUIP_PrefsExchange_DeleteImage {ULONG MethodID; Object *Image;};
struct MUIP_PrefsExchange_EndNotify {ULONG MethodID; struct NotifyRequest *nr;};
struct MUIP_PrefsExchange_FileRequest {ULONG MethodID; APTR fr; ULONG savemode; ULONG reserved; ULONG tag1;};
struct MUIP_PrefsExchange_FreeIFF {ULONG MethodID; struct IFFHandle *iff;};
struct MUIP_PrefsExchange_FreeNotifyRequest {ULONG MethodID; struct NotifyRequest *nr;};
struct MUIP_PrefsExchange_GetDiskObject {ULONG MethodID; ULONG reserved;};
struct MUIP_PrefsExchange_LoadFile {ULONG MethodID; STRPTR name; ULONG flags;};
struct MUIP_PrefsExchange_MemAllocBuffer {ULONG MethodID; ULONG size; ULONG req;};
struct MUIP_PrefsExchange_MemBufferSize {ULONG MethodID; APTR buffer;};
struct MUIP_PrefsExchange_MemFreeBuffer {ULONG MethodID; APTR buffer;};
struct MUIP_PrefsExchange_MemMakeBuffer {ULONG MethodID; APTR mem; ULONG size;};
struct MUIP_PrefsExchange_MemStrToBuffer {ULONG MethodID; APTR string;};
struct MUIP_PrefsExchange_Message {ULONG MethodID; STRPTR raw; ULONG arg1;};
struct MUIP_PrefsExchange_NotifyMessage {ULONG MethodID; struct NotifyMessage *nm; ULONG userdata;};
struct MUIP_PrefsExchange_PrefsToDataspace {ULONG MethodID; Object *dataspace;};
struct MUIP_PrefsExchange_ReportDOSError {ULONG MethodID; LONG ioerr; STRPTR name;};
struct MUIP_PrefsExchange_ReportError {ULONG MethodID; STRPTR error;};
struct MUIP_PrefsExchange_ReportIFFError {ULONG MethodID; LONG ifferr; STRPTR name;};
struct MUIP_PrefsExchange_SaveFile {ULONG MethodID; STRPTR name; APTR buffer; ULONG size; ULONG flags;};
struct MUIP_PrefsExchange_SaveIcon {ULONG MethodID; STRPTR name; struct DiskObject *diskobj; ULONG flags;};
struct MUIP_PrefsExchange_StartNotify {ULONG MethodID; struct NotifyRequest *nr;};
/* some special values for MUIM_PrefsExchange_Action and others... */
#define PREFSEXCHANGE_ACTION_CHANGED 1
#define PREFSEXCHANGE_ACTION_QUIET 2
#define PREFSEXCHANGE_ACTION_INITIAL 4
#define PREFSEXCHANGE_ACTION_FINISHING 8
#define PREFSEXCHANGE_ACTION_AREXX 16
#define APPMASKB_OPEN 0
#define APPMASKB_SAVEAS 1
#define APPMASKB_RESTORE 2
#define APPMASKB_SAVE 3
#define APPMASKB_LASTSAVED 4
#define APPMASKB_USE 5
#define APPMASKB_TEST 6
#define APPMASKB_CANCEL 7
#define APPMASKB_DEFAULTS 8
#define APPMASKF_OPEN 1
#define APPMASKF_SAVEAS 2
#define APPMASKF_RESTORE 4
#define APPMASKF_SAVE 8
#define APPMASKF_LASTSAVED 16
#define APPMASKF_USE 32
#define APPMASKF_TEST 64
#define APPMASKF_CANCEL 128
#define APPMASKF_DEFAULTS 256
#endif