home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1999 March / CDW0399.iso / Demos / HomePage / data1.cab / Program_Executable_Files / Homepage.exe / 1009 / 160 < prev    next >
Encoding:
Text File  |  1997-12-10  |  5.5 KB  |  164 lines

  1. // -----
  2. // VDL160.txt
  3. // Copyright 1996 Claris
  4. // -----
  5.  
  6. #include "StdVPref.txt"
  7.  
  8. // Remote Save dialog
  9.  
  10. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  11. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  12. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  13.  
  14. //This section contains all localizable string constants for this VDL program. Be sure to 
  15. //include the backslash character at the end of each line of a multi-line string, except for the last line.
  16. //You may also flatten multiline constants into a single line, if you prefer
  17.  
  18. #define kLit1 "&Server Name:"
  19. #define kLit2 "User &Name:"
  20. #define kLit3 "&Password:"
  21. #define kLit4 "Remote &Directory:"
  22. #define kLit5 "Remote &File:"
  23. #define kLit6 "&Only upload files that have changed since the last upload."
  24. #define kLit7 "&Upload Image Files"
  25. #define kLit8 "Note that this command will not download image files or other "\
  26.               "auxilliary files from the remote server.  As a result, you may "\
  27.                   "see \"missing image\" messages in your file; this does not mean "\
  28.                   "the image files are not present on the remote server."
  29.  
  30. //Note: the file name will probably not change, but the name of the "Help" folder
  31. //probably will. Note that the translated name MUST be 8 chars or less.
  32. #define kHelpURL "Help/RemoteSv.htm"
  33. #define kHelpTitle "&Help"
  34.  
  35.  
  36. //Localized Fonts
  37.  
  38. #if Platform_Mac
  39.     #define SmallFont  Font = {Geneva, 9, {Plain}}
  40. #endif
  41.  
  42.  
  43. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  44. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  45. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  46.  
  47.  
  48.  
  49. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  50. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  51. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  52.  
  53. //This section contains integer constants that are used to format this VDL program.
  54. //These are localizable - they only need to be changed if the localized strings 
  55. //are sufficiently longer than the US strings. Localize the strings first, then the constants.
  56.  
  57. //Width of all the edit text labels.
  58. #define kStandardLabelWidth 130
  59.  
  60. //Width of the dialog itself.
  61. #define kMainDialogWidth 450
  62.  
  63. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  64. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  65. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  66.  
  67. //No further localizable data past this point
  68.  
  69. /************************** END LOCALIZABLE DATA ***************************************************/
  70. /************************** END LOCALIZABLE DATA ***************************************************/
  71. /************************** END LOCALIZABLE DATA ***************************************************/
  72.  
  73. #ifndef FOR_SITE_UPLOAD 
  74. #define FOR_SITE_UPLOAD 0
  75. #endif
  76.  
  77. #ifndef FOR_REMOTE_SAVE
  78. #define FOR_REMOTE_SAVE 0
  79. #endif
  80.  
  81.  
  82.  
  83. //    DO NOT TOUCH
  84. //    WORK IN PROGRESS
  85. //    - Russ [08.17.97]
  86. //#if Platform_Mac
  87. //    #define dlogBack BackColor = {65535, 65535, 65535}
  88. //#else
  89.     #define dlogBack BackColor = Dialog
  90. //#endif
  91.  
  92. #define StdLabel LabelWidth = kStandardLabelWidth, LabelAlignment = Right
  93.  
  94. Margin(10, 10, 10, 10, dlogBack) 
  95. VList(Width = kMainDialogWidth)
  96.     {
  97.     EditText( server, BackColor = {65535, 65535, 65535},
  98.                   Label = kLit1, StdLabel, NoSmartQuotes,
  99.                   NoSmartEdits );
  100.     Spacer(Height = 5, Width = 0);
  101.     EditText( user, BackColor = {65535, 65535, 65535},
  102.                   Label = kLit2, StdLabel, NoSmartQuotes,
  103.                   NoSmartEdits );
  104.     Spacer(Height = 5, Width = 0);
  105.     EditText( password, BackColor = {65535, 65535, 65535},
  106.                  Label = kLit3, StdLabel, DisplayAsBullets,
  107.                  NoSmartQuotes, NoSmartEdits );
  108.     Spacer(Height = 5, Width = 0);
  109.     EditText( remoteDir, BackColor = {65535, 65535, 65535},
  110.                   Label = kLit4, StdLabel, NoSmartEdits,
  111.                   NoSmartQuotes );
  112.     
  113.     Spacer(Height = 5, Width = 0);
  114.     
  115.     #if !FOR_SITE_UPLOAD
  116.     EditText( remoteFile, BackColor = {65535, 65535, 65535},
  117.                   Label = kLit5, StdLabel, NoSmartQuotes,
  118.                   NoSmartEdits );
  119.     #else //FOR_SITE_UPLOAD
  120.     //CheckBox(kLit6, onlyChangeNewer);
  121.     Spacer(Height = 0, Width = 0);
  122.     #endif
  123.     
  124.     #if FOR_REMOTE_SAVE
  125.     Spacer(Height = 10, Width = 0);
  126.     HList(Width = UseParent)
  127.         {
  128.         Spacer(Width = kStandardLabelWidth + 3, Height = 0);
  129.         CheckBox(kLit7, uploadImages);
  130.         }
  131.     #endif //FOR_REMOTE_SAVE
  132.     
  133.     Spacer(Height = 10, Width = 0);
  134.     
  135.     #if !FOR_REMOTE_SAVE && !FOR_SITE_UPLOAD
  136.         StaticText(    kLit8,
  137.                         
  138.                         #if Platform_Mac
  139.                             SmallFont, 
  140.                         #endif
  141.                         
  142.                         Alignment = Center, Width = UseParent );
  143.         Spacer(Height = 6, Width = 0, ScaleV);
  144.     #endif // !FOR_REMOTE_SAVE && !FOR_SITE_UPLOAD
  145.     
  146.     HList(Width = UseParent)
  147.         {
  148.         /* No More Help Buttons.
  149.         #if Platform_Mac
  150.         PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL)
  151.             {
  152.             Enabled(Draw, 'cicn',14055 );
  153.             Disabled(Draw, 'cicn',14057 ); 
  154.             Tracking(Draw, 'cicn',14056 );
  155.             };
  156.         #else
  157.         PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL);
  158.         #endif
  159.         */
  160.         StandardDialogButtonsH;
  161.         }
  162.     }
  163.  
  164.