home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / blabla / prefsexchange / prefsexchange_mcc.h < prev    next >
C/C++ Source or Header  |  1998-01-24  |  7KB  |  126 lines

  1. /**
  2. ***     PrefsExchange.mcc V16
  3. ***     public part of the C header file
  4. **/
  5.  
  6. #ifndef MUI_PREFSEXCHANGE_MCC_H
  7. #define MUI_PREFSEXCHANGE_MCC_H 1
  8.  
  9. #define PrefsExchange_TAGBASE 0xfb030000
  10.  
  11. /* attributes */
  12. #define MUIA_PrefsExchange_Application PrefsExchange_TAGBASE+19
  13. #define MUIA_PrefsExchange_AppMask PrefsExchange_TAGBASE+4
  14. #define MUIA_PrefsExchange_CopyrightString PrefsExchange_TAGBASE+2
  15. #define MUIA_PrefsExchange_CreateIcons PrefsExchange_TAGBASE+16
  16. #define MUIA_PrefsExchange_DescriptionString PrefsExchange_TAGBASE+17
  17. #define MUIA_PrefsExchange_FileRequester PrefsExchange_TAGBASE+21
  18. #define MUIA_PrefsExchange_GadgetDisplay PrefsExchange_TAGBASE+9
  19. #define MUIA_PrefsExchange_InfoDisplay PrefsExchange_TAGBASE+8
  20. #define MUIA_PrefsExchange_Locale PrefsExchange_TAGBASE+14
  21. #define MUIA_PrefsExchange_MemPool PrefsExchange_TAGBASE+15
  22. #define MUIA_PrefsExchange_MinVersion PrefsExchange_TAGBASE+20
  23. #define MUIA_PrefsExchange_Name PrefsExchange_TAGBASE+1
  24. #define MUIA_PrefsExchange_PEPageClass PrefsExchange_TAGBASE+22
  25. #define MUIA_PrefsExchange_PresetSupport PrefsExchange_TAGBASE+23
  26. #define MUIA_PrefsExchange_Priority PrefsExchange_TAGBASE+7
  27. #define MUIA_PrefsExchange_Window PrefsExchange_TAGBASE+18
  28. #define MUIA_PrefsExchange_VersionString PrefsExchange_TAGBASE+5
  29.  
  30. /* methods */
  31. #define MUIM_PrefsExchange_Action PrefsExchange_TAGBASE+64+5
  32. #define MUIM_PrefsExchange_AllocIFF PrefsExchange_TAGBASE+64+20
  33. #define MUIM_PrefsExchange_AllocNotifyRequest PrefsExchange_TAGBASE+64+12
  34. #define MUIM_PrefsExchange_ARexxCmd PrefsExchange_TAGBASE+64+28
  35. #define MUIM_PrefsExchange_ContextMenuBuild PrefsExchange_TAGBASE+64+32
  36. #define MUIM_PrefsExchange_ContextMenuChoice PrefsExchange_TAGBASE+64+33
  37. #define MUIM_PrefsExchange_CreateGUI PrefsExchange_TAGBASE+64+2
  38. #define MUIM_PrefsExchange_CreateImage PrefsExchange_TAGBASE+64+1
  39. #define MUIM_PrefsExchange_DataspaceToPrefs PrefsExchange_TAGBASE+64+27
  40. #define MUIM_PrefsExchange_DeleteGUI PrefsExchange_TAGBASE+64+3
  41. #define MUIM_PrefsExchange_DeleteImage PrefsExchange_TAGBASE+64+4
  42. #define MUIM_PrefsExchange_EndNotify PrefsExchange_TAGBASE+64+15
  43. #define MUIM_PrefsExchange_FileRequest PrefsExchange_TAGBASE+64+30
  44. #define MUIM_PrefsExchange_Finish PrefsExchange_TAGBASE+64+29
  45. #define MUIM_PrefsExchange_FreeIFF PrefsExchange_TAGBASE+64+21
  46. #define MUIM_PrefsExchange_FreeNotifyRequest PrefsExchange_TAGBASE+64+13
  47. #define MUIM_PrefsExchange_GetDiskObject PrefsExchange_TAGBASE+64+25
  48. #define MUIM_PrefsExchange_LoadFile PrefsExchange_TAGBASE+22
  49. #define MUIM_PrefsExchange_MemAllocBuffer PrefsExchange_TAGBASE+64+7
  50. #define MUIM_PrefsExchange_MemBufferSize PrefsExchange_TAGBASE+64+11
  51. #define MUIM_PrefsExchange_MemFreeBuffer PrefsExchange_TAGBASE+64+8
  52. #define MUIM_PrefsExchange_MemMakeBuffer PrefsExchange_TAGBASE+64+9
  53. #define MUIM_PrefsExchange_MemStrToBuffer PrefsExchange_TAGBASE+64+10
  54. #define MUIM_PrefsExchange_Message PrefsExchange_TAGBASE+64+6
  55. #define MUIM_PrefsExchange_NotifyMessage PrefsExchange_TAGBASE+64+16
  56. #define MUIM_PrefsExchange_PrefsToDataspace PrefsExchange_TAGBASE+64+26
  57. #define MUIM_PrefsExchange_ReportDOSError PrefsExchange_TAGBASE+64+19
  58. #define MUIM_PrefsExchange_ReportError PrefsExchange_TAGBASE+64+17
  59. #define MUIM_PrefsExchange_ReportIFFError PrefsExchange_TAGBASE+64+18
  60. #define MUIM_PrefsExchange_SaveFile PrefsExchange_TAGBASE+64+23
  61. #define MUIM_PrefsExchange_SaveIcon PrefsExchange_TAGBASE+64+34
  62. #define MUIM_PrefsExchange_StartNotify PrefsExchange_TAGBASE+64+14
  63.  
  64. /* parameter structures */
  65. struct MUIP_PrefsExchange_Action {ULONG MethodID; ULONG actionid; ULONG reserved; ULONG flags;};
  66. struct MUIP_PrefsExchange_AllocIFF {ULONG MethodID; STRPTR name; ULONG mode; ULONG flags;};
  67. struct MUIP_PrefsExchange_AllocNotifyRequest {ULONG MethodID; ULONG userdata;};
  68. struct MUIP_PrefsExchange_ARexxCmd {ULONG MethodID; STRPTR command; ULONG reserved;};
  69. struct MUIP_PrefsExchange_ContextMenuBuild {ULONG MethodID; Object *menu;};
  70. struct MUIP_PrefsExchange_ContextMenuChoice {ULONG MethodID; Object *item;};
  71. struct MUIP_PrefsExchange_CreateGUI {ULONG MethodID; ULONG reserved;};
  72. struct MUIP_PrefsExchange_CreateImage {ULONG MethodID; ULONG reserved;};
  73. struct MUIP_PrefsExchange_DataspaceToPrefs {ULONG MethodID; Object *dataspace;};
  74. struct MUIP_PrefsExchange_DeleteGUI {ULONG MethodID; Object *GUI;};
  75. struct MUIP_PrefsExchange_DeleteImage {ULONG MethodID; Object *Image;};
  76. struct MUIP_PrefsExchange_EndNotify {ULONG MethodID; struct NotifyRequest *nr;};
  77. struct MUIP_PrefsExchange_FileRequest {ULONG MethodID; APTR fr; ULONG savemode; ULONG reserved; ULONG tag1;};
  78. struct MUIP_PrefsExchange_FreeIFF {ULONG MethodID; struct IFFHandle *iff;};
  79. struct MUIP_PrefsExchange_FreeNotifyRequest {ULONG MethodID; struct NotifyRequest *nr;};
  80. struct MUIP_PrefsExchange_GetDiskObject {ULONG MethodID; ULONG reserved;};
  81. struct MUIP_PrefsExchange_LoadFile {ULONG MethodID; STRPTR name; ULONG flags;};
  82. struct MUIP_PrefsExchange_MemAllocBuffer {ULONG MethodID; ULONG size; ULONG req;};
  83. struct MUIP_PrefsExchange_MemBufferSize {ULONG MethodID; APTR buffer;};
  84. struct MUIP_PrefsExchange_MemFreeBuffer {ULONG MethodID; APTR buffer;};
  85. struct MUIP_PrefsExchange_MemMakeBuffer {ULONG MethodID; APTR mem; ULONG size;};
  86. struct MUIP_PrefsExchange_MemStrToBuffer {ULONG MethodID; APTR string;};
  87. struct MUIP_PrefsExchange_Message {ULONG MethodID; STRPTR raw; ULONG arg1;};
  88. struct MUIP_PrefsExchange_NotifyMessage {ULONG MethodID; struct NotifyMessage *nm; ULONG userdata;};
  89. struct MUIP_PrefsExchange_PrefsToDataspace {ULONG MethodID; Object *dataspace;};
  90. struct MUIP_PrefsExchange_ReportDOSError {ULONG MethodID; LONG ioerr; STRPTR name;};
  91. struct MUIP_PrefsExchange_ReportError {ULONG MethodID; STRPTR error;};
  92. struct MUIP_PrefsExchange_ReportIFFError {ULONG MethodID; LONG ifferr; STRPTR name;};
  93. struct MUIP_PrefsExchange_SaveFile {ULONG MethodID; STRPTR name; APTR buffer; ULONG size; ULONG flags;};
  94. struct MUIP_PrefsExchange_SaveIcon {ULONG MethodID; STRPTR name; struct DiskObject *diskobj; ULONG flags;};
  95. struct MUIP_PrefsExchange_StartNotify {ULONG MethodID; struct NotifyRequest *nr;};
  96.  
  97. /* some special values for MUIM_PrefsExchange_Action and others... */
  98. #define PREFSEXCHANGE_ACTION_CHANGED 1
  99. #define PREFSEXCHANGE_ACTION_QUIET 2
  100. #define PREFSEXCHANGE_ACTION_INITIAL 4
  101. #define PREFSEXCHANGE_ACTION_FINISHING 8
  102. #define PREFSEXCHANGE_ACTION_AREXX 16
  103.  
  104. #define APPMASKB_OPEN 0
  105. #define APPMASKB_SAVEAS 1
  106. #define APPMASKB_RESTORE 2
  107. #define APPMASKB_SAVE 3
  108. #define APPMASKB_LASTSAVED 4
  109. #define APPMASKB_USE 5
  110. #define APPMASKB_TEST 6
  111. #define APPMASKB_CANCEL 7
  112. #define APPMASKB_DEFAULTS 8
  113.  
  114. #define APPMASKF_OPEN 1
  115. #define APPMASKF_SAVEAS 2
  116. #define APPMASKF_RESTORE 4
  117. #define APPMASKF_SAVE 8
  118. #define APPMASKF_LASTSAVED 16
  119. #define APPMASKF_USE 32
  120. #define APPMASKF_TEST 64
  121. #define APPMASKF_CANCEL 128
  122. #define APPMASKF_DEFAULTS 256
  123.  
  124. #endif
  125.  
  126.