home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL155.txt = HFindDlg.txt
- // Copyright 1996-97 Claris
- // -----
- // Find Dialog
-
- #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
-
- // Search In files popup menu items - don't need keyboard shortcuts
- #define kFrontmostDoc "Top Page"
- #define kAllOpenDocs "All Open Pages"
- #define kFrontSiteSel "Selected Pages In Top Site"
- #define kFrontSiteAll "All Pages In Top Site"
- #if Dialog_Pixels==100
- #define kAllSitesSel "Selected Pages In All Open Sites"
- #else
- #define kAllSitesSel "Selected Pages In All Open Sites "
- #endif
- #define kAllSitesAll "All Pages In All Open Sites"
-
- // Search In Mode popup menu items - don't need keyboard shortcuts
- #define kInEditModeItemText "In Edit Mode"
- #define kInBrowseModeItemText "In Browse Mode"
- #define kInHTMLModeItemText "In HTML Mode"
-
- // labels - need keyboard shortcuts
- #define kSearchInLabel "Search &In:"
- #define kLit15 "&Find:"
- #define kLit16 "Change &To:"
-
- // check boxes
- #define kLit9 "Whole Wo&rd"
- #define kLit12 "Case &Sensitive"
- #define kLit13 "&Backwards"
- #define kLit17 "Search &Backwards"
- #define kLit14 "&Wrap Around"
- #define kStayOnTop "Stay On Top" // (No longer used)
- #define kHTMLSearch "In HTML Source" // (No longer used)
-
- // buttons
- #define kLit1 "&Change"
- #define kLit5 "Change &All"
- #define kLit6 "Chan&ge, Find"
- #define kLit7 "Find &Next"
- #define kLit8 "Find &Prev"
-
- // kbd shortcuts used by main menu, which actually aren't in scope
- // when the find/change is up...: F E V I O S T W H(and D B on debug build)
-
- //Localizable Fonts
- #if Platform_Mac
- #define StaticFont Font = {Geneva, 10, {Bold}}
- #define EditFont Font = {Geneva, 10, {Plain}}
- #define kCheckBoxFont Font = {Geneva, 10, {Bold}}
- #define PopupFont Font = {Geneva, 10, {Plain}}
- #define StdLabelFont LabelFont = {Geneva, 10, {Bold}}
- #define ButtonFont Font = {Geneva, 10, {Plain}}
- #else
- #define StaticFont Font = SystemFont
- #define EditFont Font = SystemFont
- #define kCheckBoxFont Font = SystemFont
- #define PopupFont Font = SystemFont
- #define StdLabelFont LabelFont = SystemFont
- #define ButtonFont 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.
-
- //Widths of the items
- #define kSearchInIndent 12
- #define kFindLabelWidth 70
- #define kOptionsHOffset kFindLabelWidth+5
- #define kRadioButtonWidth 120
- #define kCaseSensitiveSlimCheckboxWidth kSlimCheckboxWidth+15
- #define kSearchBackwardsSlimCheckboxWidth kSlimCheckboxWidth-15
- #define kCaseSensitiveWideCheckboxWidth kWideCheckboxWidth+15
- #define kSearchBackwardsWideCheckboxWidth kWideCheckboxWidth-15
- #define kButtonWidth 90
- #define kButtonSpacing 10
- #if Platform_Mac
- #define kSlimCheckboxWidth 110
- #define kWideCheckboxWidth 160
- #define kEditTextWidth 208
- #define kWidthSearchIn Default
- #else
- #define kSlimCheckboxWidth 100
- #define kWideCheckboxWidth 130
- #define kEditTextWidth 190
- #define kWidthSearchIn 60
- #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 ***************************************************/
-
- // command codes - copied from CommandCode.h
- #define ccFindButton 1170
- #define ccReplace 1167
- #define ccReplaceAll 1168
- #define ccReplaceThenFind 1169
-
- // menu items for Search In popup - from FindDialog.h
- #define kInFrontmostDoc 0
- #define kInAllOpenDocs 1
- #define kInFrontSiteSel 2
- #define kInFrontSiteAll 3
- #define kInAllSitesSel 4
- #define kInAllSitesAll 5
-
- // menu items for Search In Mode popup - from FindDialog.h
- #define kInEditMode 0 // == kEditVisual (in WidowR.h)
- #define kInBrowseMode 1 // == kBrowseMode (in WidowR.h)
- #define kInHTMLMode 2 // == kHTMLMode (in WidowR.h)
-
-
- DeclareNamedStatement("SearchInFiles")
- HList(stdBackColor)
- {
- Spacer(Width = kSearchInIndent);
- ///Spacer(Width = kOptionsHOffset);
- IntegerPopup(kSearchInLabel, kWidthSearchIn, searchIn, PopupFont, StdLabelFont)
- {
- IntItem(kFrontmostDoc, kInFrontmostDoc);
- IntItem(kAllOpenDocs, kInAllOpenDocs);
- IntItem(kFrontSiteSel, kInFrontSiteSel);
- IntItem(kFrontSiteAll, kInFrontSiteAll);
- IntItem(kAllSitesSel, kInAllSitesSel);
- IntItem(kAllSitesAll, kInAllSitesAll);
- };
- } // HList
-
- DeclareNamedStatement("SearchInMode")
- HList(stdBackColor)
- {
- Spacer(Width = 20);
- ///WidowCheckBox(kHTMLSearch, searchInMode, Height = 18, kCheckBoxFont);
- IntegerPopup("", Default, searchInMode, PopupFont, StdLabelFont)
- {
- IntItem(kInEditModeItemText, kInEditMode);
- IntItem(kInBrowseModeItemText, kInBrowseMode);
- IntItem(kInHTMLModeItemText, kInHTMLMode);
- };
- } // HList
-
- DeclareNamedStatement("HorizontalOptions")
- HList(Width = UseParent, stdBackColor)
- {
- Switch (docIsRoman)
- {
- case 1:
- default:
- WidowCheckBox(kLit9, searchStringType, Width = kSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- case 0:
- Switch (searchIn)
- {
- case kInFrontmostDoc:
- Spacer(Width = kSlimCheckboxWidth, Height = 18);
- default:
- WidowCheckBox(kLit9, searchStringType, Width = kSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- }
- }
- WidowCheckBox(kLit12, caseSensitive, Width = kCaseSensitiveSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- WidowCheckBox(kLit13, searchBackwards, Width = kSearchBackwardsSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- Switch (searchIn)
- {
- default:
- WidowCheckBox(kLit14, wrapAround, Width = kSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- case kInAllOpenDocs:
- Spacer(Width = kSlimCheckboxWidth, Height = 18);
- }
- }
-
- DeclareNamedStatement("VerticalOptions")
- HList(Width = UseParent, stdBackColor)
- {
- Spacer(Width = kOptionsHOffset);
- VList()
- {
- WidowCheckBox(kLit12, caseSensitive, Width = kCaseSensitiveWideCheckboxWidth, Height = 18, kCheckBoxFont);
- Switch (docIsRoman)
- {
- case 1:
- default:
- WidowCheckBox(kLit9, searchStringType, Width = kSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- case 0:
- Switch (searchIn)
- {
- case kInFrontmostDoc:
- Spacer(Width = kWideCheckboxWidth, Height = 18);
- default:
- WidowCheckBox(kLit9, searchStringType, Width = kSlimCheckboxWidth, Height = 18, kCheckBoxFont);
- }
- }
- }
- Spacer(Width = 0);
- VList()
- {
- WidowCheckBox(kLit17, searchBackwards, Width = kSearchBackwardsWideCheckboxWidth, Height = 18, kCheckBoxFont);
- Switch (searchIn)
- {
- default:
- WidowCheckBox(kLit14, wrapAround, Width = kWideCheckboxWidth, Height = 18, kCheckBoxFont);
- case kInAllOpenDocs:
- Spacer(Width = kWideCheckboxWidth, Height = 18);
- }
- }
- }
-
- DeclareNamedStatement("Buttons")
- HList(stdBackColor)
- {
- Spacer(Width = kButtonSpacing, Height = 0);
- UnframedButton(kLit5, ccReplaceAll, "None", Width = kButtonWidth, ButtonFont);
- Spacer(Width = kButtonSpacing, Height = 0);
- UnframedButton(kLit1, ccReplace, "None", Width = kButtonWidth, ButtonFont);
- Spacer(Width = kButtonSpacing, Height = 0);
- UnframedButton(kLit6, ccReplaceThenFind, "None", Width = kButtonWidth, ButtonFont);
- Spacer(Width = kButtonSpacing, Height = 0);
- Switch (searchBackwards)
- {
- default:
- case 0:
- DefaultButton(kLit7, ccFindButton, "None" , Width = kButtonWidth, ButtonFont);
- case 1:
- DefaultButton(kLit8, ccFindButton, "None" , Width = kButtonWidth, ButtonFont);
- }
- Spacer(Width = kButtonSpacing, Height = 0);
- } // HList(stdBackColor)
-
- DeclareNamedStatement("HorizontalFindChange")
- HList(stdBackColor, Width = UseParent)
- {
- VList()
- {
- StaticText(kLit15, StaticFont);
- EditText( FindText, Width = kEditTextWidth,
- /*DropOnReturn, DropOnEnter, */
- EditFont, StdLabelFont,
- FlushImmediately, NoSmartQuotes, NoSmartEdits,
- BackColor = White);
- }
-
- Spacer(Width = 15, Height = 0);
- VList(ReplaceText)
- {
- StaticText(kLit16, StaticFont);
- EditText( ReplaceText, Width = kEditTextWidth,
- FlushImmediately, NoSmartQuotes, NoSmartEdits,
- EditFont, StdLabelFont,
- BackColor = White);
- }
- Spacer(Width = 5, Height = 0);
- }
-
- DeclareNamedStatement("VerticalFindChange")
- VList(stdBackColor, Width = UseParent)
- {
- HList(Width = UseParent)
- {
- EditText( FindText,
- Label = kLit15, LabelAlignment = Right, LabelWidth = kFindLabelWidth,
- FlushImmediately, NoSmartQuotes, NoSmartEdits,
- EditFont, StdLabelFont,
- BackColor = White);
- Spacer(Width = 5, Height = 0);
- }
- Spacer(Width = 0, Height = 5);
- HList(Width = UseParent)
- {
- EditText( ReplaceText,
- Label = kLit16, LabelAlignment = Right, LabelWidth = kFindLabelWidth,
- FlushImmediately, NoSmartQuotes, NoSmartEdits,
- EditFont, StdLabelFont,
- BackColor = White);
- Spacer(Width = 5, Height = 0);
- }
- }
-
- 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);
- }
-
- Define(DividerV)
- Margin(0,6,0,3, Height = UseParent, stdBackColor)
- HList(Height = UseParent)
- {
- Spacer(Width = 4, Height = 0, ScaleH);
- Spacer(Width = 1, Height = UseParent, BackColor = {20000,20000,20000});
- Spacer(Width = 1, Height = UseParent, BackColor = {62000, 62000, 62000});
- Spacer(Width = 4, Height = 0, ScaleH);
- }
-
-
- Margin(4, 2, 4, 4, stdBackColor)
- HList()
- {
- VList()
- {
- Spacer(Width = 0, Height = 5);
- HList()
- {
- IncludeNamedStatement("SearchInFiles");
- Switch(showStayOnTop)
- {
- default:
- case 0:
- Spacer(Width = 0);
- case 1:
- HList()
- {
- Spacer(Width = 40);
- WidowCheckBox(kStayOnTop, stayOnTop, Width = 100, Height = 18, kCheckBoxFont);
- }
- }
-
- Switch(showHTMLSearch)
- {
- default:
- case 0:
- Spacer(Width = 0);
- case 1:
- IncludeNamedStatement("SearchInMode");
- }
- }
- Spacer(Width = 0, Height = 5);
-
- Switch(horizontalFind)
- {
- default:
- case 0: IncludeNamedStatement("VerticalFindChange");
- case 1: IncludeNamedStatement("HorizontalFindChange");
- }
-
- //Call(Divider);
- Spacer(Width = 0, Height = 10);
- Switch(horizontalFind)
- {
- default:
- case 0: IncludeNamedStatement("VerticalOptions");
- case 1: IncludeNamedStatement("HorizontalOptions");
- }
-
- //Call(Divider);
- Spacer(Width = 0, Height = 10);
- IncludeNamedStatement("Buttons");
- Spacer(Width = 0, Height = 5);
-
-
- #ifdef TryMe
- Call(Divider);
- Spacer(Width = 0, Height = 20);
- HList()
- {
- Spacer(Width = 10, Height = 0);
- VList()
- {
- IntegerPopup("Active Window", Default, searchIn)
- {
- IntItem("Doc", 0);
- IntItem("Site", 2);
- };
- Spacer(Height = 5);
- IntegerPopup("Document", Default, docIsRoman)
- {
- IntItem("Non-Roman", 0);
- IntItem("Roman", 1);
- };
- Spacer(Height = 5);
- IntegerPopup("Layout", Default, horizontalFind)
- {
- IntItem("Vertical", 0);
- IntItem("Horizontal", 1);
- };
- Spacer(Height = 5);
- IntegerPopup("Show Stay On Top", Default, showStayOnTop)
- {
- IntItem("No", 0);
- IntItem("Yes", 1);
- };
- Spacer(Height = 5);
- IntegerPopup("Show In HTML Source", Default, showHTMLSearch)
- {
- IntItem("No", 0);
- IntItem("Yes", 1);
- };
- }
- }
- #endif
- } // VList
-
- #ifdef TryMe
- Call(DividerV);
- #endif
-
- }// HList
-
-