home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL2009.txt
- // Copyright 1997 Claris
- // -----
- //------------------------------
- // ConsolidateOptions.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 kLit19 "&Before Upload:"
- #define kLit20 "&Always consolodate"
- #define kLit21 "&Never consolidate"
- #define kLit22 "&Prompt me each upload"
- #define kLit23 "&Warn about missing files during consolidation"
- #define kLit24 "&Consolidate media files:"
- #define kLit25 "at the same level as the HTML File"
- #define kLit26 "in one media folder for your site"
- #define kLit30 "in a separate media folder for every folder in your site"
- #define kLit27 "ask me each time"
- #define kLit32 "in a separate media folder"
- #define kLit28 "&Media folder name:"
- #define kLit29 "Co&nsolidate"
- #define kLit31 "Cancel"
- #define kLit33 "Consolidate &HTML files (anchors)"
- #define kLit50 "Consolidate the referenced files."
- #define kLit51 "Choice of consolidation policy."
- #define kLit52 "During consolidation warn me about media files not found."
- #define kLit53 "Where to place the media files when consolidated."
- #define kLit54 "Name of the folder to place the media files in."
- #define kLit55 "If checked will consolidate HTML files referenced through anchors.\
- This may require performing another consolidation."
- //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}}
- #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
- #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
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 30
- //Height of the main list (each of the three panes has this height)
- #define kMainDialogHeight 268
- //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
-
- // Width of labels
- #define kFoldeLabelWidth 137
- // Height of spacer replacing folder name item
- #define kFoldeSpacerHeight 16
- #define kSitePopUpWidth 495
- #define kDocPopUpWidth 370
-
- #else
- //Standard Label width, used for many panes.
- #define kStandardLabelWidth 86
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 30
- //Height of the main list (each of the three panes has this height)
- #define kMainDialogHeight 300
- //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 - 55
-
- // Width of each Tab panel
- #define kTabPanelWidth kMainDialogWidth - 20
- // Height of spacer replacing folder name item
- #define kFoldeSpacerHeight 19
- #if Dialog_Pixels == 100
- // Width of labels
- #define kFoldeLabelWidth 111
- #define kSitePopUpWidth 395
- #define kDocPopUpWidth 310
- #else
- // Width of labels
- #define kFoldeLabelWidth 143
- #define kSitePopUpWidth 425
- #define kDocPopUpWidth 335
- #endif
- #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
- // command codes from CommandCode.h
- #define ccCancel 1070
- #define ccOK 1071
- // ConsolidatePolicy from SiteDoc.h
- #define cpAlways 0
- #define cpNever 1
- #define cpAskMe 2
- // ImageLocPolicy from SiteDoc.h
- #define ilWithFile 0
- #define ilSiteImagesFolder 1
- #define ilAlwaysAsk 2
- #define ilSubfolder 3
- Define(ConsolidationPolicySettings)
- VList(Height = kTabPanelHeight, Width = kTabPanelWidth, TabDialogBack)
- {
- }//VList
- Define(Divider)
- Margin(6,0,3,0,Width = UseParent, stdBackColor)
- VList(Width = UseParent)
- {
- Spacer(Width = 0, Height = 4, ScaleV);
- Spacer(Height = 1, Width = UseParent, BackColor = {20000,20000,20000});
- Spacer(Height = 1, Width = UseParent, BackColor = {62000, 62000, 62000});
- Spacer(Width = 0, Height = 4, ScaleV);
- }
- //----------------------------------------------
- // MainView - Top Most view of this dialog
- //----------------------------------------------
- Margin(10, 10, 10, 10, stdBackColor)
- VList()
- {
- Spacer(Height = 10, Width = 0);
-
- /***
- IntegerPopup(kLit19, Default, consolidatePolicy, kSmallBoldFont,
- LabelWidth = kFoldeLabelWidth, LabelAlignment = Right, EH kLit51)
- {
- IntItem(kLit20, cpAlways);
- IntItem(kLit21, cpNever);
- IntItem(kLit22, cpAskMe);
- };
- Spacer(Height = 10);
- ***/
-
- Switch (consolidateDoc)
- {
- case 0:
- default:
- IntegerPopup(kLit24, Default, imagesPolicy, kSmallBoldFont, EH kLit53, Width=kSitePopUpWidth)
- {
- IntItem(kLit25, ilWithFile);
- IntItem(kLit26, ilSiteImagesFolder);
- ///IntItem(kLit27, ilAlwaysAsk);
- IntItem(kLit30, ilSubfolder);
- };
- case 1: // consolidate site
- IntegerPopup(kLit24, Default, imagesPolicy, kSmallBoldFont, EH kLit53, Width=kDocPopUpWidth)
- {
- IntItem(kLit25, ilWithFile);
- IntItem(kLit32, ilSubfolder);
- };
- }//switch
- Spacer(Height = 10);
-
- Switch (imagesPolicy)
- {
- case 0:
- case 2:
- Spacer(Height = kFoldeSpacerHeight);
- //kFolderLabelWidth,350
- default:
- Switch(consolidateDoc)
- {
- case 0:
- default:
- EditText(imagesFolder, BackColor = White,
- Label = kLit28, LabelWidth = kFoldeLabelWidth, LabelAlignment = Right,
- kStdLabelFont, kEditFont, NoSmartEdits, Width = kSitePopUpWidth,
- NoSmartQuotes, EH kLit54);
-
- case 1:
- EditText(imagesFolder, BackColor = White,
- Label = kLit28, LabelWidth = kFoldeLabelWidth, LabelAlignment = Right,
- kStdLabelFont, kEditFont, NoSmartEdits, Width = kDocPopUpWidth,
- NoSmartQuotes, EH kLit54);
-
- }
- }
- Spacer(Height = 20);
- HList(Width = UseParent)
- {
- Spacer(Width = 70);
- WidowCheckBox(kLit23, checkMissing, kSmallBoldFont, Width = UseParent, Height = 18, EH kLit52);
- }
- Spacer(Height = 5, Width = 0);
- /***
- HList(Width = UseParent)
- {
- Spacer(Width = 70);
- WidowCheckBox(kLit33, scanAnchors, kSmallBoldFont, Width = UseParent, Height = 18, EH kLit55);
- }
- ***/
-
- Call(Divider);
- HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
- HList(Width = UseParent)
- {
- #if Platform_Mac
- Spacer();
- CancelButton(kLit31, ccCancel, "None", Width = 70);
- Spacer (Width = 10);
- DefaultButton(kLit29, ccOK, "None", EH kLit50);
- #else
- Spacer();
- DefaultButton(kLit29, ccOK, "None", EH kLit50);
- Spacer (Width = 10);
- CancelButton(kLit31, ccCancel, "None", Width = 70);
- #endif
- }
- #ifdef TryMe
- Call(Divider);
- Spacer(Width = 0, Height = 20);
- HList()
- {
- IntegerPopup("Active Window", Default, consolidateDoc)
- {
- IntItem("Doc", 1);
- IntItem("Site", 0);
- };
- Spacer(Width = 50);
- }
- #endif
- }//VList
-