home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Developer Kits / Arrange Developer Kit / Examples / Meeting Maker / MeetingMaker.r < prev   
Encoding:
Text File  |  1994-07-15  |  2.1 KB  |  86 lines  |  [TEXT/MPS ]

  1. #include "ArrangeModule.r.h"
  2.  
  3. // MeetingMaker.r - based on GenericPlugin.r as of 7/15/94
  4.  
  5. #define ModuleName    "MeetingMaker"            // Unique module name
  6. #define ModuleID         0x10000005                // Unique module ID
  7. #define ModuleRsrcID 0xFFFF8400                // Base resource ID (needn't be unique)
  8. #define BuildDate    0                            // Replace with current build date
  9.  
  10.  
  11. resource ModuleDefType (ModuleRsrcID, ModuleName, preload, locked)
  12.     {
  13.     keepLocked,                // Module's code resources should always be locked (don't
  14.                                 // lock and unlock for each call)
  15.     loadAtBoot,                // Load the module when Arrange is launched
  16.     ModuleName,                // Unique module name
  17.     ModuleID,                // Unique module ID
  18.     0x00000000,                // Module version
  19.     BuildDate,                // Date when this module was built
  20.     ArrangeAppID,            // Target application (Arrange)
  21.     0x00000700,                // Target system version (7.0.0)
  22.     ArrangePonsVers,        // Target app version (Arrange 2.0)
  23.     0                            // relative ID of root code resource
  24.     };
  25.  
  26.  
  27. // ALRT resource for our plug-in about box
  28. resource 'ALRT' (ModuleRsrcID, purgeable)
  29. {
  30.     {90, 60, 210, 450},
  31.     ModuleRsrcID,
  32.         {    
  33.         OK, visible, silent,
  34.         OK, visible, silent,
  35.         OK, visible, silent,
  36.         OK, visible, silent
  37.         }
  38. #if SystemSevenOrLater
  39.     ,alertPositionMainScreen
  40. #endif
  41. };
  42.  
  43.  
  44. // DITL resource for our plug-in about box
  45. resource 'DITL' (ModuleRsrcID)
  46. {
  47.     {    
  48.         {90, 315, 110, 375},    Button     {enabled, "OK"},
  49.         {10,  70,  70, 370},    StaticText {disabled, "Meeting Maker file converter 1.0."},
  50.         {10,  20,  40,  50},    Icon       {disabled, 0}
  51.     }
  52. };
  53.  
  54.  
  55. // STR# resource IDs and indicies
  56. #define rFieldNameStrings ModuleRsrcID
  57.     #define rNoteTypeName 10
  58.     
  59. #define rMMImportExportNames ModuleRsrcID + 1
  60.     #define rImportName 1
  61.     #define rExportName 2
  62.  
  63.  
  64. resource 'STR#' (rFieldNameStrings, purgeable) {
  65.     {
  66.     "Title",
  67.     "Location",
  68.     "Start",        //This is the day part
  69.     "Start",        //This is the time part
  70.     "End",        //This is really the 'duration' field, we will map it to an end date.
  71.     "Private",
  72.     "Flexible",
  73.     "Label",
  74.     "Notes",
  75.     "Meeting" //This is the type name.
  76.     }
  77. };
  78.  
  79.  
  80. resource 'STR#' (rMMImportExportNames, purgeable) {
  81.     {
  82.     "Meeting Maker", //This is the name of the import format.
  83.     "Meeting Maker"  //This is the name of the export format.
  84.     }
  85. };
  86.