home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1997-12-10 | 48.7 KB | 1,338 lines
// ----- // VDL156.txt (VDL/HPrefDlg.txt) // Copyright 1996 Claris // ----- // Preferences #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 "Preview Browser One:" #define kLit2 "The browser used by the Preview in Browser command." // #define kLit3 "Set Preview Browser:" #define kLit4 "&Browse..." //Button label to set 1st browser #define kLit4_0 "B&rowse..." // Button label to set 2nd browser #define kLit4_1 "&Clear" #define kLit4_2 "C&lear" #define kLit5 "Change the browser used by the Preview in Browser command." #define kLit5_0 "Change the second browser used by the Preview in Browser command." #define kLit5_1 "Clear the first browser selection." #define kLit5_2 "Clear the second browser selection." #define kUseInternetConfigLabel "Use Internet Config." #define kUseInternetConfigHelp "If checked, a browser specified in InternetConfig will be used, Set... command will open InternetConfig." #define kLit6 "Show Basic Tool Bar in Document Windows." #define kLit7 "If checked, a tool bar will be displayed at the top of each"\ " HTML document and library window." #define kLit8 "Show Style Tool Bar in Document Windows." #define kLit9 "If checked, a style tool bar will be displayed at the top of"\ " each HTML document and library window." #define kLit10 "Never" #define kLit11 "In Document Windows" #define kLit12 "In the Application Window" #define kLit13 "Show &Style Tool Bars:" #define kLit14 "Auto-save documents every" #define kLit15 "If checked, Claris Home Page will automatically save changed documents." #define kLit16 " minutes." #define kLit17 "Open &Documents in:" #define kLit18 "Specifies the default editing mode to use when opening HTML"\ " documents exept library and frame pages." #define kLit19 "Edit Page Mode" #define kLit20 "Preview Page Mode" #define kLit21 "Edit HTML Source Mode" #define kLit22 "At Startu&p:" #define kLit23 "Specifies an action to be performed automatically if Claris Home"\ " Page is started without specifying any documents to open." #define kLit24 "Create New Document" #define kLit24a "Display New Dialog" #define kLit25 "Display Open Dialog" #define kLit26 "Do Nothing" #define kLit27 "Default HTML File Suffix:" #define kLit28 "Default HTML file &extension:" #if Platform_Mac #define kLit29 "Specifies the default file name suffix for new HTML"\ " files; should typically be ╥htm╙ or ╥html╙ (yielding"\ " file names such as ╥mypage.htm╙ or ╥mypage.html╙)." #else #define kLit29 "Specifies the default file name suffix for new HTML"\ " files; should typically be \"htm\" or \"html\" (yielding"\ " file names such as \"mypage.htm\" or \"mypage.html\")." #endif #define kLit30 "Specifies the default file extension for new HTML"\ " files; should typically be \"htm\" or \"html\" (yielding"\ " file names such as \"mypage.htm\" or \"mypage.html\")." #define kLit31 "&Auto-save documents every" #define kLit32 "&HTML Font:" #define kLit33 "Specifies the font in which HTML source is displayed." #define kLit34 "HTML &Size:" #define kLit35 "Specifies the text size in which HTML source is displayed." #define kLit36 "Ask for document &title when saving" #define kLit37 "If checked, Claris Home Page will ask for a document title "\ "when saving HTML documents that do not have a title specified." //Lit 38 through 43 unused #define kLit44 "&Header comment:" #define kLit45 "Specifies whether Claris Home Page should output a special"\ " comment at the beginning of the HTML file." #define kLit46 "None" #define kLit47 "Identify as Claris Home Page file" #define kLit48 "Identify and time-stamp" #define kLit49 "&Line break format:" #define kLit50 "Specifies which convention Claris Home Page should follow for"\ " indicating line breaks in an HTML file. Does not affect the"\ " appearance of the document in a browser." #define kLit51 "Macintosh (CR)" #define kLit52 "Windows (CRLF)" #define kLit53 "Unix (LF)" #define kLit54 "&Paragraph alignment uses:" #define kLit55 "Specifies whether Claris Home Page should indicate centered"\ " text using the <CENTER> tag or the ALIGN=CENTER parameter"\ " to other tags (such as <P>). Some browsers accept one"\ " form but not the other." #define kLit56 "<CENTER> tag" #define kLit57 "ALIGN parameter" //UNUSED kLit58 #define kLit59 "&Generate </P> tags" #define kLit60 "Specifies whether Claris Home Page should output a </P> tag to"\ " balance every <P> tag. Should normally be enabled, but may"\ " cause problems with some very old browsers." //UNUSED kLit61 #define kLit62 "&Use absolute pathnames" #define kLit63 "Specifies whether Claris Home Page should output links to local"\ " files using relative or absolute pathnames. Relative pathnames"\ " should always be used for files which will be transferred to a"\ " separate HTTP server." //UNUSED kLit64 #define kLit65 "Generate &X-CLARIS tags" #define kLit66 "Claris Home Page defines several custom tags (beginning with \"X-CLARIS\")"\ " for saving auxiliary information such as window position and size."\ " This option specifies whether these additional tags should be"\ " saved in HTML files. It has no effect on the appearance of the"\ " document in a browser." #define kLit67 "Make &interlaced GIFs" #define kLit68 "Specifies whether converted images are created in interlaced format." #define kLit69 "Prompt for File &Name/Location" #define kLit70 "If checked, Claris Home Page will ask for a file name"\ " when converting non-GIF/JPEG files into GIF format."\ " Otherwise, Claris Home Page will assign a file name automatically." #define kLit71 "Display images in &Edit Page mode" #define kLit72 "If checked, Claris Home Page will display images in both Edit Page"\ " and Preview Page modes; otherwise, images will only be"\ " displayed in Preview Page mode (allows for faster editing)." #define kLit73 "&Faster image display" #define kLit74 "If checked, causes Claris Home Page to use a faster method for"\ " displaying images. Some video drivers do not support this method,"\ " and will cause the images to be displayed incorrectly in Claris Home Page." #define kLit75 "Convert and save automatically to folder:" #define kLit76 "&Convert and save automatically to directory:" #define kLit77 "The folder where converted image files are saved." #define kLit78 "The directory where converted image files are saved." #define kLit79 "Set Default Converted Images Folder:" #define kLit80 "Set Default Converted Images Directory:" #define kLit81 "Browse..." #define kLit82win "Change the directory where converted image files are saved." #define kLit82mac "Change the folder where converted image files are saved." #define kLit83win "If checked, converted images are automatically saved to the directory selected below" #define kLit83mac "If checked, converted images are automatically saved to the folder selected below" #define kLit84 "Controls which category of Preferences data is displayed." #define kLit85 "General" #define kLit86 "HTML Source" // (goes on the Tab) #define kLit87 "HTML View" #define kLit88 "Images" #define kLit89 "Browser Preview" #define kLit90 "Show &Basic Tool Bars:" #define kLit91 "Controls whether and where the Basic Tool Bar is displayed." #define kLit92 "Controls whether and where the Style Tool Bar is displayed." #define kLit93 "Enable &Inline Input" #define kLit94 "Enables inline input of Kanji text. If disabled, " \ "Kanji text is entered using a separate window." #define kLit95 "Default Document &Encoding:" #define kLit96 "The character encoding scheme to be used for new " \ "documents. Use Western for English and other Western " \ "European languages." #define kLit97 "Western (Latin1)" #define kLit98 "Japanese (JIS)" #define kLit99 "Japanese (Shift-JIS)" #define kLit100 "Japanese (EUC)" #define kLit101 "Body Text" #define kLit102 "Comments" #define kLit103 "Begin Tags" #define kLit104 "End Tags" #define kLit105 "Parameter Names" #define kLit106 "Parameter Values" #define kLit107 "Special Characters" #define kLit108 "&Use Syntax Coloring" #define kLit109 "HTML &Element:" #define kLit110 " &Color:" //HotKey must match underlined character in this string #define hotKey110 HotKey = "C" #define kLit111 "&Word Wrap" #define kLit112 "&Display background images in Edit Page mode" #define kLit113 "If checked, Claris Home Page will display background images in"\ " both Edit Page and Preview Page modes; otherwise, they will"\ " only be displayed in Preview Page mode (allows for faster"\ " editing)." #define kLit114 "Auto-&save before running commands" #define kLit115 "If checked, changed documents will be saved automatically before previewing, consolidating,"\ " verifying links or uploading files. If not checked, Claris Home Page will prompt to save before running these commands." #define kLit116 "Fonts" #define kLit117 "&Proportional Font:" #define kLit118 "The font used for proportionally spaced text." #define kLit119 "WYSIWYG Base Size:" #define kLit120 "The font size used for proportionally spaced text." #define kLit121 "&Monospace Font:" #define kLit122 "The font used for monospaced (e.g. Preformatted or Teletype) text." #define kLit123 "Monospace Base Size:" #define kLit124 "The font size used for monospaced (e.g. Preformatted or Teletype) text." #define kLit125 "Kanji Proportional Font:" #define kLit126 "Kanji Proportional Size:" #define kLit127 "Kanji Monospace Font:" #define kLit128 "Kanji Monospace Size:" #define kLit129 "Image &Map Format:" #define kLit130 "Specifies the format used when Claris Home Page outputs"\ " server-side image map files." #define kLit131 "Use &Defaults" #define kLit132 "Restore all HTML View settings to their default values." #define kLit133 "The fonts selected here determine how Claris Home Page " \ "displays HTML documents in Edit Page and Preview Page modes. " \ "This does not affect the appearance of your documents in a " \ "browser." #define kLit134 " &Style:" #define kLit135 "Show &line breaks" #define kLit136 "If checked, a visible symbol will be shown for line breaks"\ " when in Edit Page mode." #define kLit137 "Amount of time after the first change is made before the"\ " document will be saved." #define kLit138 "&Warn about unsafe file names when naming files" #define kLit139 "Run &Java applets in Preview Page mode" #define kLit200 "If checked, then long lines of HTML source code will be"\ " wrapped onto several lines on the screen." #define kLit201 "If checked, then HTML source code will be color-coded"\ " according to the settings in this dialog." #define kLit202 "Controls which type of HTML code to specify the color and"\ " style for." #define kLit203 "Specifies the color or style used to display body text"\ " in HTML source code. Only takes effect if \"Syntax Coloring\""\ " is checked." #define kLit204 "Specifies the color or style used to display beginning tags"\ " (<TAG>) in HTML source code. Only takes effect if \"Syntax Coloring\""\ " is checked." #define kLit205 "Specifies the color or style used to display ending tags"\ " (</TAG>) in HTML source code. Only takes effect if \"Syntax Coloring\""\ " is checked." #define kLit206 "Specifies the color or style used to display parameter names"\ " in HTML source code. Only takes effect if \"Syntax Coloring\""\ " is checked." #define kLit207 "Specifies the color or style used to display parameter values"\ " in HTML source code. Only takes effect if \"Syntax Coloring\""\ " is checked." #define kLit208 "Specifies the color or style used to display entities (special"\ " characters such as &) in HTML source code. Only takes "\ " effect if \"Syntax Coloring\" is checked." #define kLit209 "Specifies the color or style used to display comments"\ " (<!--comment-->) in HTML source code. Only takes effect if \"Syntax Coloring\""\ " is checked." #define kLit210 "If checked, Claris Home Page will warn you if a file name does not conform to web standards, and give you "\ "an opportunity to save the file under a different name." #define kLit230 "If checked, Java applets will run when the document is viewed in Preview Page mode. If "\ "not checked, Java applets will appear as placeholders." // For the Style Popup menu, in HTML View tab: #define kLitPlain "Plain" #define kLitBold "Bold" #define kLitItalic "Italic" #define kLitUnderline "Underline" // the following Style Popup menu options are used only on the Mac, (if at all) #define kLitOutline "Outline" #define kLitShadow "Shadow" #define kLitCondense "Condense" #define kLitExtend "Extend" // Color palette choices appear in General Tab. #define kLit211 "&Color Palette:" #define kLit212 "Specifies which size of color palette to use wherever"\ " color choices are made. The system color picker will"\ " always be available too." #define kLit213 "Web Palette - 216 colors" #define kLit214 "Rainbow Palette - 81 Colors" #define kLit215 "Default Palette - 9 Colors" #define kLit216 "Default Text - 9 Colors" // The following appear in the Color Palette. "Other..." causes system color picker to appear // "Default" is used to mean "Default color" #define kLit217 "Other..." #define kLit218 "Default" // eri 7/30/97 : added kLit219 to kLit222 for font setting in preference for Japanese version. #define kLit219 "Language:" #define kLit220 "Choose Language" #define kLit221 "Japanese" #define kLit222 "Roman" //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/Prefs.htm" #define kHelpTitle "&Help" //The 'secondary' browser is active. #define kSecondBrowserLit "Preview Browser Two:" #define kSecondBrowserHelp "The second browser used by the Preview in Browser command" // The following are the labels that appear on frames: #define kLitAppearance "Appearance" #define kLitSaving "Saving" #define kLitDisplay "Display" #define kLitImporting "Importing" #define kLitPreview "Preview" //Localized Fonts #if Platform_Mac #define kHelpFont Font = {Geneva, 10, {Plain}} // kEditFieldFont is used where user types into edit fields #define kEditFieldFont Font = {Geneva, 10, {Plain}} #define kControlFont Font = {Geneva, 10, {Plain}} #define kBoldFont Font = {Geneva, 10, {Bold}} // Use LabelFonts on controls that have both: text for the label, and text inside the control. #define kLabelBoldFont LabelFont = {Geneva, 10, {Bold}} #define kLabelPlainFont LabelFont = {Geneva, 10, {Plain}} #define kTabLabelFont {Geneva, 10, {Plain}} #else //the dialog pixel thing is for problems with Large font setting #if Dialog_Pixels == 100 #define kHelpFont Font = {"MS Sans Serif", 8, {Plain}} #else #define kHelpFont Font = {"MS Sans Serif", 6, {Plain}} #endif // kEditFieldFont is used where user types into edit fields #define kEditFieldFont Font = {"MS Sans Serif", 8, {Plain}} #define kControlFont Font = SystemFont #define kBoldFont Font = SystemFont // Use LabelFonts on controls that have both: text for the label, and text inside the control. #define kLabelBoldFont LabelFont = SystemFont #define kLabelPlainFont LabelFont = SystemFont #define kTabLabelFont SystemFont #endif #if Platform_Mac #define kSizePopupWidth 50 #else #define kSizePopupWidth 40 #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 //Main constant defining the width of the dialog #define kMainDialogWidth 480 //Left margin of the dialog, inside the frame. #define kPrefLeftMargin 5 #define kPrefTopMargin 5 #define kPrefRightMargin 5 #define kPrefBottomMargin 5 #define kCheckBoxHeight Height = 18 //Height of the main pane of the prefs dialog. THIS CONTROLS THE HEIGHT OF THE DIALOG (Mac). Doesn't prevent it from going bigger (which is good.) #define kPrefsListHeight 250 //Height of the help view at the bottom of the window #define kHelpViewHeight 50 //Width of the popup that controls the mode of the dialog (General, Images, HTML Output, etc) #define kModePopupWidth 150 /********* GENERAL PANE (mac) ***************/ //Width of the text in front of popup menus #define kGeneralLabelWidth 187 //Width of all the popup menu views (just the popup part) #define kPopupMenuWidth 390 //Width of the text "Auto-save documents every" #define kAutoSaveTextWidth 209 //Width of the edit text (number of minutes)in the Auto-save line #define kAutoSaveEntryTextWidth 30 #define SpacerToLineUpCheckboxes Spacer(Height=0, Width=30); /********** HTML OUTPUT PANE(mac) **********/ //Width of the labels for the three popup menus #define kHTMLOutputLabelWidth 187 //Width of the popup menu that controls the header comment #define kHeaderCommentPopupWidth 400 //Width of the popup menu that controls the line break format #define kLineBreakFormatPopupWidth 330 //Width of the popup menu that controls the paragraph alignment tag #define kParagraphAlignmentWidth 330 //Widths of the checkboxes #define kCheckBoxWidths 200 /********** HTML VIEW PANE (mac) ************/ //Width of the labels on the popup menus #define kEditLabelWidth 127 //Width of the menus (popups) themselves #define kHTMLFontMenuWidth 200 #define kEditMenuWidth 300 #define kHTMLCodeMenuWidth 360 #define kStylePopupWidth 300 // kViewLabelWidth determines space alloted for the label in front of popups. #define kViewLabelWidth 200 #define kHTMLFontLabelWidth 65 // Height of the sample HTML code. #define kHTMLSampleHeight 75 //PrefColorControl uses these values. Determines size of the color picker icon. Width=22 Height=17 works great on Windows. #define kColorPickerWidth 22 #define kColorPickerHeight 17 /*********** FONTS PANE (mac) ********************/ //Sizes of the labels and popups in the 'font' pane #define kWYSIWYGLabelWidth 170 #define kWYSIWYGMenuWidth 310 /*********** IMAGES PANE (Mac)******************/ #define SpaceBeforeChkbox Spacer(Height=0,Width=15); #define kImageMapFormatLabelWidth 112 #define kImageMapMenuWidth 173 #else //else Platform_Win //Main constant defining the width of the dialog #define kMainDialogWidth 435 #define kPrefLeftMargin 10 #define kPrefTopMargin 10 #define kPrefRightMargin 10 #define kPrefBottomMargin 10 //Height of the main pane of the prefs dialog. //THIS CONTROLS THE HEIGHT OF THE DIALOG (in Windows). Doesn't prevent it from going bigger (which is good - won't truncate localized versions.) // note that 250-ish is near the maximum that a 640x480 display can take. #define kPrefsListHeight 250 //Height of the help view at the bottom of the window #define kHelpViewHeight 65 //Not used on windows, -1 means "Default" #define kCheckBoxHeight Height = -1 /********* GENERAL PANE (win) ***************/ //Width of the text in front of popup menus #define kGeneralLabelWidth 160 //Width of all the popup menu views (just the popup part) #if Dialog_Pixels == 100 #define kPopupMenuWidth 350 #else #define kPopupMenuWidth 370 #endif //Width of the text "Auto-save documents every" #define kAutoSaveTextWidth 220 //Width of the edit text in the Auto-save line, for entering number of minutes. #define kAutoSaveEntryTextWidth 30 #define SpacerToLineUpCheckboxes Spacer(Height=0, Width=15); /********** HTML OUTPUT PANE (Win)**********/ //Width of the labels for the three popup menus #define kHTMLOutputLabelWidth 220 #if Dialog_Pixels==100 //Width of the popup menu that controls the header comment #define kHeaderCommentPopupWidth 420 //Width of the popup menu that controls the line break format #define kLineBreakFormatPopupWidth 420 //Width of the popup menu that controls the paragraph alignment tag #define kParagraphAlignmentWidth 420 #else //Width of the popup menu that controls the header comment #define kHeaderCommentPopupWidth 460 //Width of the popup menu that controls the line break format #define kLineBreakFormatPopupWidth 460 //Width of the popup menu that controls the paragraph alignment tag #define kParagraphAlignmentWidth 460 #endif //Widths of the checkboxes #define kCheckBoxWidths 200 /********** HTML VIEW PANE (Win) ************/ //Width of the labels on the popup menus #define kEditLabelWidth 127 //Width of the menus themselves #define kEditMenuWidth 260 #if Dialog_Pixels == 100 #define kHTMLFontMenuWidth 200 #else #define kHTMLFontMenuWidth 210 #endif #define kHTMLCodeMenuWidth 265 #define kStylePopupWidth 200 // kViewLabelWidth determines space alloted for the label in front of popups. #define kViewLabelWidth 100 #define kHTMLFontLabelWidth 60 // Height of the sample HTML code. #define kHTMLSampleHeight 90 //the max that works in all resolutions //and both small and large font. Large font can take up to 125. //jeh PrefColorControl uses these values. Determines size of the color picker icon. Width=22 Height=17 works great on Windows. #define kColorPickerWidth 22 #define kColorPickerHeight 17 /*********** FONTS PANE (Win)********************/ //Sizes of the labels and popups in the 'font' pane #define kWYSIWYGLabelWidth 170 #if Dialog_Pixels == 100 #define kWYSIWYGMenuWidth 310 #else #define kWYSIWYGMenuWidth 340 #endif /*********** IMAGES PANE (Win)******************/ #define SpaceBeforeChkbox Spacer(Height=0,Width=15); #define kImageMapFormatLabelWidth 100 #define kImageMapMenuWidth 200 #endif // For both platforms: #define SpaceAfterFrameLabel Spacer(Height=4, Width=0); /************************** 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 ***************************************************/ //#define CUSTOMIZABLE_TOOLBARS 0 //#ifndef CUSTOMIZABLE_TOOLBARS // #if Platform_Mac // #define CUSTOMIZABLE_TOOLBARS 1 // #else // #define CUSTOMIZABLE_TOOLBARS 1 // #endif //#endif // "Browser Preview" Tab Define(BrowserPreview) //Label(kLitPreview, Single, Width=UseParent, stdBackColor) VList(TabDialogBack, Width = UseParent) { // First browser Spacer(Height = 20); HList() { Margin(0, 2, 7, 0) Spacer(Height=0,Width=10); StaticText(kLit1, kBoldFont); // "Preview Browser one:" Spacer(Height=0,Width=5); PushButton(kLit4, 4000, "SetBrowserAppProc", kControlFont, EH kLit5); // Set button 1 Spacer(Height = 0, Width = 2); PushButton(kLit4_1, 4000, "ClearBrowserAppProc", kControlFont, EH kLit5_1); // Clear button 1 Spacer(Width = 20); #if Platform_Mac Switch(internetConfigAvailable) { case 0: Spacer(Width = 0); case 1: TabDialog_CheckBox(kUseInternetConfigLabel, useInternetConfig, kBoldFont, EH kUseInternetConfigHelp, kCheckBoxHeight); } #endif //Platform_Mac } Spacer(Height = 20); Margin(12,4,0,8, Width = UseParent) #if Platform_Mac Margin(4,4,4,4, Single, stdBackColor, Width = UseParent) // using stdBackColor prevents static text StaticText(browserFilePath, Width = UseParent, kControlFont, EH kLit2); // from looking like edit field. #else Margin(2,2,2,2, Single, stdBackColor, Width = UseParent) StaticText(browserFilePath, Width = UseParent, EH kLit2); #endif // Second browser Spacer(Height = 20); HList() { Margin(0, 2, 7, 0) Spacer(Height=0,Width=10); StaticText(kSecondBrowserLit, kBoldFont); //"Preview Browser two:" Spacer(Height=0,Width=5); PushButton(kLit4_0, 4000, "SetBrowser2AppProc", kControlFont, EH kLit5_0); // Set button 2 Spacer(Height = 0, Width = 2); PushButton(kLit4_2, 4000, "ClearBrowser2AppProc", kControlFont, EH kLit5_2); // Clear button 2 } Spacer(Height = 20); Margin(12,4,0,8, Width = UseParent) #if Platform_Mac Margin(4,4,4,4, Single, stdBackColor, Width = UseParent) StaticText(browser2FilePath, Width = UseParent, kControlFont, EH kSecondBrowserHelp); #else Margin(2,2,2,2, Single, stdBackColor, Width = UseParent) StaticText(browser2FilePath, Width = UseParent, EH kSecondBrowserHelp); #endif Spacer(Height = 9, Width = 0); } Define(General) VList(TabDialogBack, Width = UseParent) { //J-version options go above Appearance Frame. //Note: if you move these items, be sure to check the font of the label and the control. // If the item is outside of a frame, use bold for the label, and plain for the control. // If the item is inside a frame, use plain font for both the label and the control. #ifdef Kanji_Support // KANJI:Default Document Encoding choices IntegerPopup( kLit95, kGeneralLabelWidth, defaultEncoding, Width=kPopupMenuWidth, Alignment = Right, kLabelBoldFont, kControlFont, EH kLit96 ) { IntItem(kLit97, 0); IntItem(kLit98, 1); IntItem(kLit99, 2); IntItem(kLit100, 3); }; //KANJI: "Enable Inline Input" checkbox HList() { SpacerToLineUpCheckboxes TabDialog_CheckBox(kLit93, inlineInput, EH kLit94, kCheckBoxHeight); } Spacer(Height = 4, Width = 0); #endif // Kanji_Support // APPEARANCE FRAME Label(kLitAppearance, Single, Width=UseParent, kBoldFont) VList() { // Color palette choices: SpaceAfterFrameLabel IntegerPopup( kLit211, kGeneralLabelWidth, colorPalette, Width=kPopupMenuWidth, Alignment = Right, kLabelPlainFont, kControlFont, EH kLit212 ) { IntItem(kLit213, 0); IntItem(kLit214, 1); IntItem(kLit215, 2); IntItem(kLit216, 3); }; // "Open Documents in: (choices) Spacer(Height=3, Width=0); IntegerPopup( kLit17, kGeneralLabelWidth, defaultDocMode, Width=kPopupMenuWidth, Alignment = Right, kLabelPlainFont, kControlFont, EH kLit18 ) { IntItem(kLit19, 0); IntItem(kLit20, 1); #if !LITE_VERSION IntItem(kLit21, 2); #endif }; // "At Startup: (choices) Spacer(Height=3, Width=0); IntegerPopup( kLit22, kGeneralLabelWidth, startupAction, Width=kPopupMenuWidth, Alignment = Right, kLabelPlainFont, kControlFont, EH kLit23 ) { IntItem(kLit24, 0); IntItem(kLit24a,3); //"Open New Dialog" IntItem(kLit25, 1); IntItem(kLit26, 2); }; HList() { //Indent checkboxes to line up with the popup menu using this spacer. SpacerToLineUpCheckboxes VList() { //Show linebreaks checkbox TabDialog_CheckBox(kLit135, show_linebreaks, kControlFont, EH kLit136, kCheckBoxHeight); //@ykh 042897 Preview Applet pref checkbox #if Platform_Mac Spacer(Height=3, Width=0); Switch(vjaPreviewMode) { case 1: TabDialog_CheckBox(kLit139, viewJavaApplets, kControlFont, EH kLit230, kCheckBoxHeight); case 0: TabDialog_CheckBox(kLit139, 9999, EH kLit230, kControlFont, kCheckBoxHeight); //ccDisabledCommandCode case 2: Spacer(Height=0, Width=0); } #endif } //Vlist of checkboxes } //HList with spacer and vlist } //vlist in Appearance frame Spacer(Height=3, Width=0); // FILE SAVING FRAME Label(kLitSaving, Single, Width=UseParent, kBoldFont) VList() { Spacer(Height=3, Width =0); // MAC: Autosave documents every x minutes #if Platform_Mac HList() { SpacerToLineUpCheckboxes TabDialog_CheckBox(kLit14, DoAutoSave, kControlFont, EH kLit15, kCheckBoxHeight ); EditText( AutoSaveInterval_Mins, Unsigned(16), Width = kAutoSaveEntryTextWidth, BackColor = White, kEditFieldFont, EH kLit137 ); StaticText( kLit16, kControlFont); } #endif //Platform_Mac // WINDOWS: Autosave documents every x minutes #if Platform_Win HList() { SpacerToLineUpCheckboxes TabDialog_CheckBox(kLit31, DoAutoSave, kControlFont, kCheckBoxHeight, EH kLit15 ); EditText(AutoSaveInterval_Mins, Unsigned(16), Width = kAutoSaveEntryTextWidth, BackColor=White, kEditFieldFont, EH kLit137); StaticText( kLit16, kControlFont); } #endif //Platform_Win HList() { //"Auto-save before running commands" SpacerToLineUpCheckboxes TabDialog_CheckBox(kLit114, autoSaveBeforeCommands, kControlFont, EH kLit115, kCheckBoxHeight); } //"Ask for document title when saving" HList() { SpacerToLineUpCheckboxes TabDialog_CheckBox(kLit36, askForDocumentTitle, kControlFont, EH kLit37, kCheckBoxHeight); } //"Warn about unsafe file names when naming files" HList() { SpacerToLineUpCheckboxes TabDialog_CheckBox(kLit138, forceWebSafeNaming, kControlFont, EH kLit210, kCheckBoxHeight); } }//ends Behavior frame VList } // General // "SYNTAX_LINE": the StylePopup is different on both platforms. //jeh BEFORE/Mac: StylePopup(kLit134, kStylePopupWidth, nameStyle, kControlFont, EH helpText); Replaced with IntegerPopup to look like spec. investigate changing StylePopup function //Important note: Values returned by the IntegerPopup must match the values of TextStyles enumerator in Core/Isol/CommonResourceTypes.h #if Platform_Mac #define SYNTAX_LINE(labelText, nameR, nameG, nameB, nameStyle, labelWidth, helpText) \ HList()\ {\ IntegerPopup( kLit134, kViewLabelWidth, nameStyle, Width=kStylePopupWidth, Alignment=Right, kLabelPlainFont, kControlFont, EH helpText )\ {\ IntItem(kLitPlain, 0);\ IntItem(kLitBold, 1);\ IntItem(kLitItalic, 2);\ IntItem(kLitUnderline, 4);\ IntItem(kLitOutline, 8);\ IntItem(kLitShadow, 16);\ IntItem(kLitCondense, 32);\ IntItem(kLitExtend, 64);\ };\ Spacer(Width = 4, Height = 0);\ VList()\ {\ Spacer(Width=0, Height = 2);\ StaticText(kLit110, kControlFont);\ }\ Spacer(Width=1, Height=0);\ GenericView("PrefColorControl", Red = nameR, Green = nameG, Blue = nameB, ExtraString = kLit217, Width = kColorPickerWidth, Height = kColorPickerHeight, EH helpText);\ } #else #define SYNTAX_LINE(labelText, nameR, nameG, nameB, nameStyle, labelWidth, helpText) \ HList()\ {\ IntegerPopup( kLit134, kViewLabelWidth, nameStyle, Width=kStylePopupWidth, Alignment=Right, kLabelPlainFont, kControlFont, EH helpText )\ {\ IntItem(kLitPlain, 0);\ IntItem(kLitBold, 1);\ IntItem(kLitItalic, 2);\ IntItem(kLitUnderline, 4);\ };\ Spacer(Width=4);\ VList()\ {\ Spacer(Height = 4, Width = 0);\ StaticText(kLit110);\ }\ Spacer(Width = 4, Height = 0);\ VList()\ {\ Spacer(Height = 2, Width = 0);\ GenericView("PrefColorControl", Red = nameR, Green = nameG, Blue = nameB, ExtraString = kLit217, Width = kColorPickerWidth, Height = kColorPickerHeight, hotKey110, EH helpText);\ }\ } #endif #ifdef Kanji_Support // eri 7/30/97 : added EnglishFonts, JapaneseFonts and FontList. Define(EnglishFonts) VList(TabDialogBack) { HList() { FontPopup( kLit117, kWYSIWYGLabelWidth, wysiwygFont, Width = kWYSIWYGMenuWidth, EH kLit118, Script = 0 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, wysiwygSize, EH kLit120); } Spacer(Width=0, Height=7); HList() { FontPopup( kLit121, kWYSIWYGLabelWidth, monospaceFont, Width = kWYSIWYGMenuWidth, EH kLit122, Script = 0 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, monospaceSize, EH kLit124); } Spacer(Width = 0, Height = 7); HList() { FontPopup( kLit32, kWYSIWYGLabelWidth, htmlFont, Width = kWYSIWYGMenuWidth, EH kLit33, Script = 0 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, htmlSize, EH kLit35); } } Define(JapaneseFonts) VList(TabDialogBack) { HList(TabDialogBack) { FontPopup( kLit125, kWYSIWYGLabelWidth, wysiwygJFont, Width = kWYSIWYGMenuWidth, EH kLit118, Script = 1 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, wysiwygJSize, EH kLit120); } Spacer(Width=0, Height=7); HList(TabDialogBack) { FontPopup( kLit127, kWYSIWYGLabelWidth, monospaceJFont, Width = kWYSIWYGMenuWidth, EH kLit122, Script = 1 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, monospaceJSize, EH kLit124); } Spacer(Width = 0, Height = 7); HList(TabDialogBack) { FontPopup( kLit32, kWYSIWYGLabelWidth, htmlJFont, Width = kWYSIWYGMenuWidth, EH kLit33, Script = 1 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, htmlJSize, EH kLit35); } } Define(FontList) HList(TabDialogBack) { VList(TabDialogBack) { Switch(fontLanguage) { case 0: Call(JapaneseFonts); case 1: Call(EnglishFonts); } } } // #endif // "Fonts" Tab Define(WYSIWYGEditing) VList(TabDialogBack, Width = UseParent) { SpaceAfterFrameLabel #ifdef Kanji_Support // eri 7/30/97 : Language setting popup for Japanese version. IntegerPopup( kLit219, kWYSIWYGLabelWidth, fontLanguage, Width = kWYSIWYGMenuWidth, kLabelBoldFont, kControlFont, EH kLit220 ) { IntItem(kLit221, 0); IntItem(kLit222, 1); }; Spacer(Width=0, Height=7); Call(FontList); #else HList() { FontPopup( kLit117, kWYSIWYGLabelWidth, wysiwygFont, Width = kWYSIWYGMenuWidth, kLabelBoldFont, kControlFont, EH kLit118 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, wysiwygSize, kControlFont, EH kLit120, Width=kSizePopupWidth); } Spacer(Width=0, Height=7); HList() { FontPopup( kLit121, kWYSIWYGLabelWidth, monospaceFont, Width = kWYSIWYGMenuWidth, kLabelBoldFont, kControlFont, EH kLit122 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, monospaceSize, kControlFont, EH kLit124, Width=kSizePopupWidth); } #endif Spacer(Width=0, Height=7); StaticText( kLit133, Width = UseParent, Alignment = Left, kHelpFont ); } //WYSIWYGEditing ("Fonts" Tab) //*********** 'HTML View' Pane Define(HTMLEditing) VList(TabDialogBack, Width = UseParent) { SpaceAfterFrameLabel #ifndef Kanji_Support // HTML Font, font size and word wrap chkbox HList(Width = UseParent) { FontPopup( kLit32, kHTMLFontLabelWidth, htmlFont, Width = kHTMLFontMenuWidth, kLabelBoldFont, kControlFont, EH kLit33 ); Spacer(Width = 10, Height = 0); SizePopup("", 0, htmlSize, kControlFont,EH kLit35, Width = kSizePopupWidth); //"Word Wrap" checkbox Spacer(Width = 30, Height = 0); TabDialog_CheckBox(kLit111, htmlWordWrap, kBoldFont, kCheckBoxHeight, EH kLit200); } #endif Spacer(Height = 5); // Syntax Coloring Section VList(Width=UseParent) { // "Use Syntax Coloring" checkbox TabDialog_CheckBox( kLit108, enableSyntaxColoring, kBoldFont, kCheckBoxHeight,EH kLit201 ); #ifdef Kanji_Support Spacer(Width = 15, Height = 0); TabDialog_CheckBox(kLit111, htmlWordWrap, kControlFont, Height = 16, EH kLit200); #endif // VList of Popup with "Body Text", Color and Style choices, and example window. Margin(2,2,2,2, Single, Width=UseParent) VList(Width=UseParent) { SpaceAfterFrameLabel //Popup with "Body Text" and other choices (Current Syntax Element) "HTML Element" IntegerPopup(kLit109, kViewLabelWidth, curSyntaxElement,Width=kHTMLCodeMenuWidth, Alignment=Right, kLabelPlainFont, kControlFont, EH kLit202) { IntItem(kLit101, 0); IntItem(kLit103, 1); IntItem(kLit104, 2); IntItem(kLit105, 3); IntItem(kLit106, 4); IntItem(kLit107, 5); IntItem(kLit102, 6); }; #if Platform_Mac Spacer(Width=0, Height=2); #endif Switch(curSyntaxElement) { case 0: //Body Text SYNTAX_LINE(kLit101, bodyColorR, bodyColorG, bodyColorB, bodyStyle, kEditLabelWidth - 9, kLit203) case 1: //Begin Tags SYNTAX_LINE(kLit103, beginTagColorR, beginTagColorG, beginTagColorB, beginTagStyle, kEditLabelWidth - 9, kLit204) case 2: //End Tags SYNTAX_LINE(kLit104, endTagColorR, endTagColorG, endTagColorB, endTagStyle, kEditLabelWidth, kLit205) case 3: //Parameter Names SYNTAX_LINE(kLit105, pNameColorR, pNameColorG, pNameColorB, pNameStyle, kEditLabelWidth - 9, kLit206) case 4: //Param Values SYNTAX_LINE(kLit106, pValueColorR, pValueColorG, pValueColorB, pValueStyle, kEditLabelWidth, kLit207) case 5: //Entities SYNTAX_LINE(kLit107, entityColorR, entityColorG, entityColorB, entityStyle, kEditLabelWidth - 9, kLit208) case 6: //Comment SYNTAX_LINE(kLit102, commentColorR, commentColorG, commentColorB, commentStyle, kEditLabelWidth, kLit209) default: Spacer(Height = 0, Width = 0); }//end Switch #if Platform_Win Spacer(Height = 10); #else Spacer(Height = 4); #endif #ifndef TryMe Margin(3,3,3,3) VList( HScroll, VScroll, BackColor = White, Width = UseParent, Height = kHTMLSampleHeight) GenericView("HTMLSample"); #else Spacer(Width = UseParent, Height = kHTMLSampleHeight, BackColor = {0, 65535, 0}); #endif }//End VList of Body Text, Color, Style and example window (has a box around it) #ifdef Kanji_Support Spacer(Height = 3); HList(Width = UseParent, Height = 16) GenericView("HTMLFontInfo"); #endif } // VList of Syntax Coloring Section } //HTMLEditing ("HTML View" Pane) //*************** "HTML Source" Pane Define(HTMLOutput) VList(TabDialogBack) { SpaceAfterFrameLabel EditText(defaultExtension, LabelAlignment = Right, #if Platform_Mac LabelWidth = kGeneralLabelWidth - 4, Label = kLit27, Width = kPopupMenuWidth, kLabelBoldFont, #else LabelWidth = kHTMLOutputLabelWidth - 4, Label = kLit28, Width = kHeaderCommentPopupWidth, #endif kEditFieldFont, BackColor = {65535, 65535, 65535}, NoSmartQuotes, NoSmartEdits, #if Platform_Mac EH kLit29 ); #else EH kLit30 ); #endif Spacer(Height=7, Width=0); IntegerPopup( kLit44, kHTMLOutputLabelWidth, headerComment, Width = kHeaderCommentPopupWidth, kLabelBoldFont, kControlFont, EH kLit45 ) { IntItem(kLit46, 0); IntItem(kLit47, 1); IntItem(kLit48, 2); }; Spacer(Height = 7, Width = 0); IntegerPopup( kLit49, kHTMLOutputLabelWidth, lineBreakFormat, Width = kLineBreakFormatPopupWidth, kLabelBoldFont, kControlFont, EH kLit50 ) { IntItem(kLit51, 0); IntItem(kLit52, 1); IntItem(kLit53, 2); }; Spacer(Height = 7, Width = 0); IntegerPopup( kLit54, kHTMLOutputLabelWidth, UseCenterTagForAlign, Width = kParagraphAlignmentWidth, kLabelBoldFont, kControlFont, EH kLit55 ) { IntItem(kLit56, 1); IntItem(kLit57, 0); }; Spacer(Height = 5, Width = 0); HList() { Spacer(Width = kHTMLOutputLabelWidth-1, Height=0); TabDialog_CheckBox( kLit59, generatePEnd, kBoldFont, kCheckBoxHeight, Width = kCheckBoxWidths, EH kLit60 ); } Spacer(Height = 3, Width = 0); HList() { Spacer(Width = kHTMLOutputLabelWidth-1, Height=0); TabDialog_CheckBox( kLit65, outputFilePrefs, kBoldFont, kCheckBoxHeight, Width = kCheckBoxWidths, EH kLit66 ); } Spacer(Height = 3, Width = 0); HList() { Spacer(Width = kHTMLOutputLabelWidth-1, Height=0); TabDialog_CheckBox( kLit62, absolutePaths, kBoldFont, kCheckBoxHeight, Width = kCheckBoxWidths, EH kLit63 ); } } // HTMLOutput ("HTML Source" Pane) //************ "Images" pane Define(Images) VList(TabDialogBack, Width = UseParent) { // DISPLAY frame (Top half of dialog) Label(kLitDisplay, Single, Width=UseParent, kBoldFont) VList() { SpaceAfterFrameLabel HList() { SpaceBeforeChkbox // "Display images in edit page mode" chkbox TabDialog_CheckBox(kLit71, displayImagesInEdit, kControlFont, EH kLit72 , kCheckBoxHeight); } #if Platform_Mac Spacer(Width=0, Height=2); #endif HList() { SpaceBeforeChkbox // "Disply background.." ckbox TabDialog_CheckBox(kLit112, displayBackgroundInEdit, kControlFont, EH kLit113 , kCheckBoxHeight); } #if Platform_Win HList() { SpaceBeforeChkbox // "Faster images display" checkbox (windows-only feature) TabDialog_CheckBox(kLit73, fasterGraphics, EH kLit74, kCheckBoxHeight ); } #endif } // end Display frame Spacer(Height=10, Width=0); // Space between two frames // IMPORTING frame Label(kLitImporting, Single, Width=UseParent, kBoldFont) VList(Width = kMainDialogWidth) { SpaceAfterFrameLabel HList() { SpaceBeforeChkbox VList(TabDialogBack) { // Radio buttons: // "Prompt for Filename" and // "Convert and save automatically" WidowRadioButton(kLit69, promptForConvName, 1, Height = 18,Width = 250, kControlFont, EH kLit70); #if Platform_Mac WidowRadioButton(kLit75, promptForConvName, 0, Height = 18,Width = 280, kControlFont, EH kLit83mac ); #else WidowRadioButton(kLit76, promptForConvName, 0, Height = 18,Width = 280, kControlFont, EH kLit83win ); #endif } // "Make interlaced GIFS" checkbox TabDialog_CheckBox( kLit67, interlaceImages, kControlFont, EH kLit68, kCheckBoxHeight); } Spacer(Width=0, Height=2); HList(Width=UseParent) { Margin(0, 2, 7, 0) #if Platform_Mac SpaceBeforeChkbox // "Converted Images Folder" PushButton( kLit81, 4000, "SetImageFolderPathProc", kControlFont, EH kLit82mac ); //"Browse" button to set directory #else SpaceBeforeChkbox // "Converted Images Directory" SpaceBeforeChkbox PushButton( kLit4, 4000, "SetImageFolderPathProc", EH kLit82win ); //Set button #endif Spacer(Width=4); // Box displaying the path #if Platform_Mac VList(Width = UseParent) { Margin(4,4,4,4, Single, Width=kMainDialogWidth-90, Height = 43) StaticText( imageFilePath, Width = UseParent, Height = UseParent, kControlFont, EH kLit77 ); Spacer(Width = 0, Height = 4); } #else Margin(2,2,2,2, Single, Width=UseParent, Height = 45,stdBackColor) StaticText( imageFilePath, Width = 425, Height = UseParent, kControlFont, EH kLit78 ); #endif } // HList() }// end VList of Importing label. // "Image Map Format" Spacer(Width=0, Height=4); IntegerPopup( kLit129, kImageMapFormatLabelWidth, imageMapFormat, Width = kImageMapMenuWidth, kLabelBoldFont, kControlFont, EH kLit130) { IntItem("NCSA", 1); // mfNCSA IntItem("CERN", 2); // mfCERN }; } // Images Tab #if Platform_Mac #define kPrefsListWidth kMainDialogWidth #else #define kPrefsListWidth kMainDialogWidth + 25 #endif Define(MainList) HList(TabDialogBack) { Spacer(Height = kPrefsListHeight, Width = 0, ScaleV); VList( ) { Spacer(Height = 0, Width = kPrefsListWidth, ScaleH); Switch(mode) { case 0: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(General); case 1: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(HTMLOutput); case 2: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(HTMLEditing); case 3: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(Images); case 4: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(BrowserPreview); case 5: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(WYSIWYGEditing); default: Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin) Call(General); } // Switch(mode) #if Platform_Win Spacer(Width = UseParent, Height = UseParent); #endif } //VList } //HList Margin(10, 10, 10, 10, TabDialogBack) VList() { #if !WANT_TABS Layout(AllowOverlap) { HList(Left = 10, Top = 0) { Spacer(Width = 5, Height = 0); IntegerPopup( "", 0, mode, Width = kModePopupWidth, EH kLit84, NoUndo ) { IntItem(kLit85, 0); IntItem(kLit88, 3); IntItem(kLit89, 4); IntItem(kLit116, 5); #if !LITE_VERSION IntItem(kLit87, 2); #endif IntItem(kLit86, 1); }; Spacer(Width = 5, Height = 0); } Margin(1,1,1,1, BackColor = {0,0,0}, Left = 0, Top = 10) Margin(10,12,5,6, TabDialogBack) Margin(14,5,4,0) Call(MainList); } //Layout #else TabControl(mode, NoUndo,Font = kTabLabelFont) { Tab(kLit85, 0); Tab(kLit88, 3); Tab(kLit89, 4); Tab(kLit116, 5); #if !LITE_VERSION Tab(kLit87, 2); #endif Tab(kLit86, 1); Subview: Call(MainList); }; //Tab Control #endif //if WANT_TABS Spacer(Height = 3, Width = 0); #if Platform_Mac HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont); #else Margin(2,2,2,2, Single) HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont); Spacer(Height = 10, Width = 0, VScale); #endif HList(Width = UseParent) { // NO HELP BUTTONS // #if Platform_Mac // PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL) // { // Enabled(Draw, 'cicn',14055 ); // Disabled(Draw, 'cicn',14057 ); // Tracking(Draw, 'cicn',14056 ); // }; // #else // PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL); // #endif Spacer(Width = 20, Height = 0); #ifdef TryMe StandardDialogButtonsH; #else Switch(mode) { case 2: HList(Width = UseParent) { PushButton( kLit131, 3114, "SetHTMLEditDefaults", EH kLit132); StandardDialogButtonsH; } default: StandardDialogButtonsH; } //Switch #endif } //HList } // VList (main dialog)