home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL2002.txt
- // Copyright 1996 Claris
- // -----
- //------------------------------
- // SiteUploadOptions.txt
- //------------------------------
- #include "StdVPref.txt"
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- //This section contains all localizable string constants for this VDL program. Be sure to
- //include the backslash character at the end of each line of a multi-line string, except for the last line.
- //You may also flatten multiline constants into a single line, if you prefer
- #define kLit1 "&Server Name:"
- #define kLit2 "User &Name:"
- #define kLit3 "&Password:"
- #define kLit4 "Remote &Folder:"
- #define kLit6 "&Only upload files that have changed since the last upload."
- #define kLit7 "&Upload Image Files"
- #define kLit8 "Note that this command will not download image files or other "\
- "auxilliary files from the remote server. As a result, you may "\
- "see \"missing image\" messages in your file; this does not mean "\
- "the image files are not present on the remote server."
- #define kLit9 "FTP Settings"
- #define kLit10 "Consolidation Policy"
- #define kLit11 "Save Pass&word"
- #define kLit12 "&Browse..."
- #define kLit13 "Ser&vice Provider:"
- //ISP Popup Menu strings
- #define kLit14 "Internet Service Provider"
- #define kLit15 "America Online"
- #define kLit16 "Netcom"
- #define kLit17 "Earthlink"
- #define kLit18 "Intranet"
- #define kLit19 "Before Upload:"
- #define kLit20 "Always consolodate"
- #define kLit21 "Never consolidate"
- #define kLit22 "Prompt me each upload"
- #define kLit23 "Warn about missing images during consolidation."
- #define kLit24 "Consolidate image files:"
- #define kLit25 "with the HTML File"
- #define kLit26 "in a separate image folder"
- #define kLit27 "ask me each time"
- #define kLit28 "Image folder name:"
- #define kLit29 "Consolidate"
- #define kLit30 "File Replacement"
- #define kLit31 "During Upload:"
- #define kLit32 "Never Replace Files"
- #define kLit33 "Replace files with same name only if newer"
- #define kLit34 "Replace all files with same name"
- #define kLit35 "FTP &Mode:"
- #define kLit36 "Passive"
- #define kLit37 "Active"
- #define kLit50 "Consolidate the referenced image files."
- #define kLit51 "Choice of consolidation policy."
- #define kLit52 "During consolidation warn me about image files not found."
- #define kLit53 "Where to place the image files when consolidated."
- #define kLit54 "Name of the folder to place the image files in."
- #define kLit55 "Default settings for Internet Service Providers."
- #define kLit56 "Name of the remote server."
- #define kLit57 "Your user name for this server."
- #define kLit58 "Enter your password for this server."
- #define kLit59 "Remember the password next time."
- #define kLit60 "Name of the remote folder / directory"
- #define kLit61 "Look for the remote folder on the server."
- #define kLit62 "Do not replace files with the same name."
- #define kLit63 "Replace duplicate files with the newer version."
- #define kLit64 "Replace all duplicate files no matter what."
- #define kLit65 "FTP communications protocol. Usually set to 'Passive'"
- //Note: the file name will probably not change, but the name of the "Help" folder
- //probably will. Note that the translated name MUST be 8 chars or less.
- #define kHelpURL "Help/RemoteSv.htm"
- #define kHelpTitle "&Help"
- //Localized Fonts
- #if Platform_Mac
- #define kSmallBoldFont Font = {Geneva, 10, {Bold}}
- #define kStdLabelFont LabelFont = {Geneva, 10, {Bold}}
- #define kEditFont Font = {Geneva, 10, {Plain}}
- #define kHelpFont Font = {Geneva, 10, {Plain}}
- #define kTabLabelFont Font = {Geneva, 10, {Plain}}
- #else
- #define kSmallBoldFont Font = SystemFont
- #define kEditFont Font = SystemFont
- #define kStdLabelFont LabelFont = SystemFont
- #if Dialog_Pixels == 100
- #define kHelpFont Font = {"MS Sans Serif", 8, {Plain}}
- #else
- #define kHelpFont Font = {"MS Sans Serif", 6, {Plain}}
- #endif
- #define kTabLabelFont Font = SystemFont
- #endif
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- //This section contains integer constants that are used to format this VDL program.
- //These are localizable - they only need to be changed if the localized strings
- //are sufficiently longer than the US strings. Localize the strings first, then the constants.
- #if Platform_Mac
- //Standard Label width, used for many panes.
- #define kStandardLabelWidth 86
- #define kCheckBoxWidth kStandardLabelWidth + 6
- #define kPopupSpacer 29
-
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 35
- //Height of the main list (each of the three panes has this height)
- // #define kMainDialogHeight 268
- #define kMainDialogHeight 200
- //Width of the main list (each of the two panes has this Width)
- #define kMainDialogWidth 350
-
- // Font for the small push buttons
- #define kSmallButtonFont Font = {Geneva, 10, {Plain}}
- // Height of each Tab panel
- #define kTabPanelHeight kMainDialogHeight - 55
-
- // Width of each Tab panel
- #define kTabPanelWidth kMainDialogWidth - 20
-
- #else
- //Standard Label width, used for many panes.
- #define kStandardLabelWidth 86
- #if Dialog_Pixels == 100
- #define kCheckBoxWidth kStandardLabelWidth + 6
-
- #define kPopupSpacer 33
- #else
- #define kCheckBoxWidth kStandardLabelWidth + 26
-
- #define kPopupSpacer 23
- #endif
-
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 35
- //Height of the main list (each of the three panes has this height)
- #define kMainDialogHeight 280
- //Width of the main list (each of the two panes has this Width)
- #define kMainDialogWidth 400
- // Font for the small push buttons
- #define kSmallButtonFont Font = SystemFont
- // Height of each Tab panel
- #define kTabPanelHeight kMainDialogHeight - 100
-
- // Width of each Tab panel
- #define kTabPanelWidth kMainDialogWidth - 20
- #endif
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- //No further localizable data past this point
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- #ifndef FOR_SITE_UPLOAD
- #define FOR_SITE_UPLOAD 0
- #endif
- #ifndef FOR_REMOTE_SAVE
- #define FOR_REMOTE_SAVE 0
- #endif
- // DO NOT TOUCH
- // WORK IN PROGRESS
- // - Russ [08.17.97]
- //#if Platform_Mac
- // #define dlogBack BackColor = {65535, 65535, 65535}
- //#else
- #define dlogBack BackColor = Dialog
- //#endif
- #define StdLabel LabelWidth = kStandardLabelWidth, LabelAlignment = Right
- //----------------------------------------------
- // FTP Setting Tab Panel
- //----------------------------------------------
- Define(FTPSettings)
- VList(Height = kTabPanelHeight,Width = kTabPanelWidth,TabDialogBack)
- {
- // IntegerPopup(kLit13,115, serviceProvider,kSmallBoldFont,EH kLit55)
- // IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit, EH kLit200)
- /* REMOVED - ISP popup menu. Taken out due to lack of interest
- IntegerPopup(kLit13,115,serviceProvider,kSmallBoldFont,Action = SetISPDefaults,EH kLit55)
- {
- IntItem(kLit14, 0);
- IntItem(kLit15, 1);
- IntItem(kLit16, 2);
- IntItem(kLit17, 3);
- IntItem(kLit18, 4);
- };
- Spacer (Height = 10);
- */
- HList(Height = UseParent, Width = UseParent)
- {
- // Spacer (Width = 20);
- // Margin(5,2,10,2,Single)
- Margin(5,2,10,2)
- //--- Server Settings ---
- VList(Height = UseParent, Width = UseParent)
- {
-
- Spacer (Height = 10);
- EditText( ftpServer, BackColor = {65535, 65535, 65535},
- Label = kLit1, StdLabel,kStdLabelFont,kEditFont, NoSmartQuotes,
- NoSmartEdits,EH kLit56);
- Spacer(Height = 5);
- EditText( ftpUser, BackColor = {65535, 65535, 65535},
- Label = kLit2, StdLabel,kStdLabelFont,kEditFont, NoSmartQuotes,
- NoSmartEdits,EH kLit57 );
- Spacer(Height = 5);
- EditText( ftpPassword, BackColor = {65535, 65535, 65535},
- Label = kLit3, StdLabel,kStdLabelFont,kEditFont, DisplayAsBullets,
- NoSmartQuotes, NoSmartEdits,EH kLit58 );
-
- Spacer(Height = 2);
- HList()
- {
- Spacer(Width = kCheckBoxWidth);
- WidowCheckBox(kLit11, rememberPasswords, kSmallBoldFont,
- Width = 150, Height = 18,EH kLit59);
- }//HList
-
- Spacer(Height = 10, Width = 0);
-
- HList(Width = UseParent)
- {
- EditText( ftpDir, BackColor = {65535, 65535, 65535},
- Label = kLit4, StdLabel,kStdLabelFont,kEditFont, NoSmartEdits,
- NoSmartQuotes,EH kLit60 );
- Spacer(Width =10);
- PushButton( kLit12, 3107, "BrowseForRemoteFolder",kSmallBoldFont,EH kLit61);
- }//HList
-
- Spacer(Height = 5);
- HList()
- {
- Spacer(Width = kPopupSpacer);
- IntegerPopup(kLit35,-1,FTPPassiveMode,Width = 135,kSmallBoldFont,EH kLit65)
- // IntegerPopup(kLit35,-1,FTPPassiveMode,Width = 135,kSmallBoldFont,EH kLit65)
- {
- IntItem(kLit36, 0);
- IntItem(kLit37, 1);
- };
- }
-
- }//VList
-
- // Spacer (Width = 20);
-
- }HList
- Spacer(Height = 0, Width = UseParent);
- /*
- #if Platform_Mac
- // Horizontal Separator
- Spacer(Height = 15, Width = 0);
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
- Spacer(Height = 1, Width = UseParent, BackColor = White);
- // This spacer put the horz. separator at the right hight
- Spacer(Height = 21, Width = UseParent);
- #else
- // This spacer is necessary for the VDL to compile
- // Not allowed to have an empty VList
- Spacer(Height = 0, Width = UseParent);
- #endif
- */
-
- }//VList
- //----------------------------------------------
- // Image Policy Tab Panel
- //----------------------------------------------
- Define(ConsolidationPolicySettings)
- VList(Height = kTabPanelHeight,Width = kTabPanelWidth,TabDialogBack)
- {
- Spacer(Height = 10, Width = 0);
- // IntegerPopup(kLit19,115, consolidationPolicy,kSmallBoldFont)
- IntegerPopup(kLit19,88, consolidatePolicy,kSmallBoldFont,EH kLit51)
- {
- IntItem(kLit20, 0);
- IntItem(kLit21, 1);
- IntItem(kLit22, 2);
- };
- Spacer(Height = 5, Width = 0);
-
- WidowCheckBox(kLit23, checkMissing, kSmallBoldFont, Width = UseParent, Height = 18,EH kLit52);
-
- Spacer(Height = 30, Width = 0);
- IntegerPopup(kLit24,145,imagesPolicy,kSmallBoldFont,EH kLit53)
- {
- IntItem(kLit25, 0);
- IntItem(kLit26, 1);
- IntItem(kLit27, 2);
- };
-
- Spacer(Height = 10, Width = 0);
-
- EditText( imagesFolder, BackColor = {65535, 65535, 65535},
- Label = kLit28, LabelWidth = 141, LabelAlignment = Right,
- kStdLabelFont,kEditFont, NoSmartEdits,Width = 250,
- NoSmartQuotes,EH kLit54);
- Spacer(Height = 35, Width = 0);
- HList(Width = UseParent)
- {
- Spacer (Height = 0,Width = UseParent);
- //$$$$MR New command number needed here
- PushButton( kLit29, 0, "ConsolidateSite",kSmallBoldFont,EH kLit50);
- Spacer (Height = 0,Width = 3);
-
- }
- #if Platform_Mac
- Spacer(Height = 15, Width = 0);
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
- Spacer(Height = 1, Width = UseParent, BackColor = White);
- #endif
- }//VList
- /*$$$$MR If we implement the file replacement Tab Use this code
- //----------------------------------------------
- // Image Policy Tab Panel
- //----------------------------------------------
- Define(FileReplacement)
- VList(TabDialogBack)
- {
- HList(TabDialogBack)
- {
- Spacer(Width = 30);
- VList(TabDialogBack)
- {
- Spacer(Height = 30);
- StaticText(kLit31,kSmallBoldFont);
- Spacer(Height = 5);
-
- HList(TabDialogBack)
- {
- Spacer(Width = 20);
- VList(TabDialogBack)
- {
- WidowRadioButton(kLit32, replaceFilePolicy, 0,
- Height = 18,Width = 250,kSmallBoldFont,EH kLit62);
- WidowRadioButton(kLit33, replaceFilePolicy, 1,
- Height = 18,Width = 280,kSmallBoldFont,EH kLit63);
- WidowRadioButton(kLit34, replaceFilePolicy, 2,
- Height = 18,Width = 250,kSmallBoldFont,EH kLit64);
- }//HList
-
- }//Hlist
-
- }//VList
-
- }//HList
- #if Platform_Mac
- Spacer(Height = 73);
- // Horizontal Separator
- Spacer(Height = 15, Width = 0);
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
- Spacer(Height = 1, Width = UseParent, BackColor = White);
- #endif
- }//VList
- */
- //$$$$MR OBSOLETE - new Consolidate Dialog makes it obsolete
- /*
- //----------------------------------------------
- // MainList - Main Cotroller for the tab control
- //----------------------------------------------
- Define(MainList)
- Margin(7,20,10,10, TabDialogBack)
- HList()
- {
- VList(Height = kTabPanelHeight)
- {
-
- Switch(mode, Height = UseParent)
- {
- case 0:
- Margin(0,0,0,0)
- Call(FTPSettings);
-
- case 1:
- Margin(0,0,0,0)
- Call(ConsolidationPolicySettings);
- //$$$$MR If we implement the file replacement Tab Use this code
- // case 2:
- // Margin(0,0,0,0)
- // Call(FileReplacement);
- } //Switch
-
- //--- Tool Tips ---
- Spacer(Height = 0, Width = UseParent);
- #if Platform_Mac
- Margin(5,0,0,0,DialogBack)
- HelpView(Width = UseParent, Alignment = Left, Height = 12, kHelpFont);
- #endif
-
- } //VList
- } //HList
- */
- //----------------------------------------------
- // MainView - Top Most view of this dialog
- //----------------------------------------------
- Margin(10,10, 10, 10, TabDialogBack)
- VList()
- {
-
- /*
- TabControl(mode, NoUndo,kTabLabelFont)
- {
- Tab(kLit9, 0); // FTP Settings
- Tab(kLit10, 1); // Image Policy
- //$$$$MR If we implement the file replacement Tab Use this code
- // Tab(kLit30, 2); // File Replacement
-
- Subview:
- Call(MainList);
- }; //Layout
- */
- Call(FTPSettings);
- //--- Tool Tips ---
- Spacer(Height = 0, Width = UseParent);
- #if Platform_Mac
- Margin(5,0,0,0,DialogBack)
- #else
- Margin(16,0,0,0,DialogBack)
- #endif
- HelpView(Width = UseParent, Alignment = Left, Height = 25, kHelpFont);
-
- Spacer(Height = 5);
- HList(Width = UseParent)
- {
- Switch(mode)
- {
- case 0:
- HList(Width = UseParent)
- {
- StandardDialogButtonsH;
- }
-
- case 1:
- StandardDialogButtonsH; //@ykh 082197 was StandardDialogButtonsHNoReturn;
-
- default:
- StandardDialogButtonsH;
-
- } //Switch
- Spacer(Width = 10, Height = 0);
- } //HList
-
- }//VList
-