home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL151.txt
- // Copyright 1996 Claris
- // -----
-
- // Picture Editor
-
- #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 "Copy this image (drag to insert a copy)"
- #define kLit2 "Selection Tool"
- #define kLit3 "Rectangular Link Tool"
- #define kLit4 "Circular Link Tool"
- #define kLit5 "Transparency Tool"
- #define kLit6 "Remove Transparency"
- #define kLit7 "Link Editor"
- #define kLit8 "Move Link To Front"
- #define kLit9 "Move Link To Back"
- #define kLit10 "Move Link Forward"
- #define kLit11 "Move Link Backward"
- #define kLit12 "Interlace"
- #define kLit13 "Don't Interlace"
- #define kLit14 "Default URL:"
- #define kLit15 "URL when not in a link"
- #define kLit16 "Links:"
- #define kLit17 "Show/hide link URLs"
- #define kLit18 "Show URLs"
- #define kLit19 "Hide URLs"
- #define kLit20 "Zoom:"
- #define kLit21 "Image zoom"
- #define kLit22 "6%"
- #define kLit23 "12%"
- #define kLit24 "25%"
- #define kLit25 "50%"
- #define kLit26 "100%"
- #define kLit27 "200%"
- #define kLit28 "400%"
- #define kLit29 "800%"
- #define kLit30 "1600%"
- #define kLit31 "Save"
- #define kLit32 "Create Server Side Image Map"
- #define kLit33 "Target Frame:"
- #define kLit34 "Extra HTML:"
- #define kLit35 "The name of target frame"
- #define kLit36 "More HTML in addition to default URL and target frame"
-
-
- //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/ImageMap.htm"
- #define kHelpTitle "&Help"
-
- //Localized Fonts
-
- #if Platform_Mac
- #define kStaticTextFont Font = {Geneva, 10, {Plain}}
- #define kBoldStaticFont Font = {Geneva, 10, {Bold}}
- #define kHelpFont Font = {Geneva, 9, {Italic}}
- #define StdLabelFont LabelFont = {Geneva, 10, {Bold}}
- #else
- #define kStaticTextFont Font = SystemFont
- #define kBoldStaticFont Font = SystemFont
- #define StdLabelFont LabelFont = 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_Win
- //Width of the "Links" popup
- #define kLinksPopupWidth 165
- //Width of the "Zoom" popup
- #define kZoomPopupWidth 120
- #define kDefaultURLLabelWidth 110 //@ykh 071597
- #define kEditTextWidth 240
- #else
- #define kDefaultURLLabelWidth 94 //@ykh 071597
- #define kEditTextWidth 220
- #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 ***************************************************/
-
- #define kStandardSpace 9
-
-
- #if Platform_Mac
- #define ToolSep GenericView("ToolSepView");
- #else
- #define ToolSep
- #endif
-
- #define DialogBack stdBackColor
-
-
- Define(HotspotCreationTools)
- HList(FullyCovered,DialogBack)
- {
- Spacer(Width = kStandardSpace, Height = UseParent);
- ToolSep
- PictRadioButton(3111, 10, EH kLit2) //Arrow
- {
- On(Draw, 'cicn', 10007);
- Off(Draw, 'cicn', 10006);
- DisabledOn(Draw, 'cicn', 10008);
- DisabledOff(Draw, 'cicn', 10008);
- TrackingOn(Draw, 'cicn', 10007);
- TrackingOff(Draw, 'cicn', 10007);
- };
- ToolSep
- PictRadioButton(3111, 0, EH kLit3) //Rect
- {
- On(Draw, 'cicn', 10001);
- Off(Draw, 'cicn', 10000);
- DisabledOn(Draw, 'cicn', 10002);
- DisabledOff(Draw, 'cicn', 10002);
- TrackingOn(Draw, 'cicn', 10001);
- TrackingOff(Draw, 'cicn', 10001);
- };
- ToolSep
- PictRadioButton(3111, 1, EH kLit4) //circle
- {
- On(Draw, 'cicn', 10004);
- Off(Draw, 'cicn', 10003);
- DisabledOn(Draw, 'cicn', 10005);
- DisabledOff(Draw, 'cicn', 10005);
- TrackingOn(Draw, 'cicn', 10004);
- TrackingOff(Draw, 'cicn', 10004);
- };
- }
-
- Define(HotspotEditingTools)
- HList(FullyCovered,DialogBack)
- {
- Spacer(Width = kStandardSpace, Height = UseParent);
- ToolSep
- PictPushButton(3109, "None", EH kLit7) // "Insert/Edit Link"
- {
- Enabled (Draw, 'cicn', 13506);
- Disabled(Draw, 'cicn', 13508);
- Tracking(Draw, 'cicn', 13507);
- };
- ToolSep
-
- Spacer(Height = UseParent, Width = kStandardSpace);
- ToolSep
- PictPushButton(1212, "None", EH kLit8) // ccMoveToFront
- {
- Enabled (Draw, 'cicn', 10070);
- Disabled(Draw, 'cicn', 10072);
- Tracking(Draw, 'cicn', 10071);
- };
- ToolSep
- PictPushButton(1213, "None", EH kLit9) // ccMoveToBack
- {
- Enabled (Draw, 'cicn', 10080);
- Disabled(Draw, 'cicn', 10082);
- Tracking(Draw, 'cicn', 10081);
- };
- ToolSep
- PictPushButton(1214, "None", EH kLit10) // ccMoveForward
- {
- Enabled (Draw, 'cicn', 10090);
- Disabled(Draw, 'cicn', 10092);
- Tracking(Draw, 'cicn', 10091);
- };
- ToolSep
- PictPushButton(1215, "None", EH kLit11) // ccMoveBackward
- {
- Enabled (Draw, 'cicn', 10100);
- Disabled(Draw, 'cicn', 10102);
- Tracking(Draw, 'cicn', 10101);
- };
- ToolSep
- }
-
- Define(UpperToolbar)
- Margin(3,7,0,5,Width = UseParent, DialogBack)
- VList(Width = UseParent, DialogBack)
- {
- HList(Width = UseParent, FullyCovered)
- {
- Switch(imageType)
- {
- case 999:
- Spacer(Height = 0, Width = 0);
-
- default:
- VList(Height = UseParent)
- {
- Margin(1,0,0,0)
- PictPushButton( 3122, "None", Draggable,
- EH kLit1 )
- {
- On(Draw, 'cicn', 1006);
- Disabled(Draw, 'cicn', 1006);
- Tracking(Draw, 'cicn', 1006);
- };
- Spacer(Height = UseParent, Width = UseParent);
- }
- } //Switch
-
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = UseParent, Width = kStandardSpace);
-
- default:
- Call(HotspotCreationTools);
- }
-
- ToolSep
-
-
- Switch(imageType)
- {
- case 0: /* GIF */
- HList()
- {
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = 0, Width = 0);
-
- default:
- HList()
- {
- PictRadioButton(3111, 11, EH kLit5) //Eyedropper
- {
- On(Draw, 'cicn', 10010);
- Off(Draw, 'cicn', 10009);
- DisabledOn(Draw, 'cicn', 10011);
- DisabledOff(Draw, 'cicn', 10011);
- TrackingOn(Draw, 'cicn', 10010);
- TrackingOff(Draw, 'cicn', 10010);
- };
- ToolSep
- Spacer(Height = UseParent, Width = kStandardSpace);
- ToolSep
- }
- }
-
- PictPushButton(3320, "None", EH kLit6) // ccMakeOpaqueImage
- {
- Enabled (Draw, 'cicn', 10050);
- Disabled(Draw, 'cicn', 10052);
- Tracking(Draw, 'cicn', 10051);
- };
- ToolSep
- }
-
- default:
- Spacer(Height = 0, Width = 0);
- }
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = 0, Width = 0);
-
- default:
- Call(HotspotEditingTools);
- }
-
- Spacer(Height = UseParent, Width = kStandardSpace);
-
- Switch(imageType)
- {
- case 0: /* GIF */
- HList()
- {
- ToolSep
- PictRadioButton( interlace, 1, // ccPictInterlaceCmd
- EH kLit12 )
- {
- On (Draw, 'cicn', 10110);
- Off (Draw, 'cicn', 10111);
- DisabledOn (Draw, 'cicn', 10112);
- DisabledOff(Draw, 'cicn', 10112);
- TrackingOn (Draw, 'cicn', 10110);
- TrackingOff(Draw, 'cicn', 10110);
- };
- ToolSep
- PictRadioButton( interlace, 0, // ccPictInterlaceCmd
- EH kLit13 )
- {
- On (Draw, 'cicn', 10120);
- Off (Draw, 'cicn', 10121);
- DisabledOn (Draw, 'cicn', 10122);
- DisabledOff(Draw, 'cicn', 10122);
- TrackingOn (Draw, 'cicn', 10120);
- TrackingOff(Draw, 'cicn', 10120);
- };
- ToolSep
- Spacer(Width = kStandardSpace, Height = UseParent);
- }
-
- default:
- Spacer(Height = 0, Width = 0);
- }
-
-
-
- #if Platform_Mac
- Spacer(Width = 3, Height = UseParent);
- Margin(0,8,0,0)
- HelpView(Width = UseParent, Alignment = Left, Height = 15, kHelpFont);
- #else
- //@ykh 071697 I tried this to fix the problem on Windows.
- // Problem is: this rect is not updated.
- Spacer(Width = UseParent, Height = UseParent);
-
- //Margin(0,24,0,0)
- //HelpView(Width = UseParent, Alignment = Left, Height = 0, kHelpFont);
-
- #endif
-
- } // HList (first row)
- } // VList
-
- Define(URLEntry)
- //@ykh 081197 Added target frame and link extra
- VList(Width = UseParent, DialogBack)
- {
- HList(DialogBack, Width = UseParent)
- {
- Margin(4,3,6,0)
- StaticText(kLit14, Alignment = Right, Width = kDefaultURLLabelWidth, kBoldStaticFont, EH kLit15 );
-
- EditText( defaultURL, FilterProc = "SetImageDefaultURL",
- Width = kEditTextWidth, DropOnReturn, NoSmartQuotes, //DropOnEnter causes multiple cmd binding.
- NoSmartEdits,
- DontBindNavigationKeys, //@ykh 091797 bug 4622
- BackColor = {65535, 65535, 65535},
- EH kLit15 );
-
- Margin(4, 0, 0, 0)
- GenericView("ImageLinkShortcut");
- } // HList (second row)
-
- //@ykh 081197 begin Added target frame and link extra
- Spacer(Height = 3, Width = UseParent);
-
- EditText( defaultTarget, FilterProc = "SetImageDefaultLinkTarget",
- Label = kLit33, LabelAlignment = Right, LabelWidth = kDefaultURLLabelWidth + 5,
- Width = kDefaultURLLabelWidth + kEditTextWidth + 10,
- DropOnReturn, NoSmartQuotes, //DropOnEnter causes multiple cmd binding.
- DontBindNavigationKeys, //@ykh 091797 bug 4622
- StdLabelFont,
- NoSmartEdits, BackColor = {65535, 65535, 65535}, EH kLit35 );
- Spacer(Height = 3, Width = UseParent);
-
- EditText( extraDefParams, FilterProc = "SetImageDefaultLinkExtras",
- Label = kLit34, LabelAlignment = Right, LabelWidth = kDefaultURLLabelWidth + 5,
- Width = kDefaultURLLabelWidth + kEditTextWidth + 10,
- DropOnReturn, NoSmartQuotes, //DropOnEnter causes multiple cmd binding.
- DontBindNavigationKeys, //@ykh 091797 bug 4622
- StdLabelFont,
- NoSmartEdits, BackColor = {65535, 65535, 65535}, EH kLit36 );
- //@ykh 081197 end Added target frame and link extra
- }
-
-
-
- Define(URLToolbar)
- HList(DialogBack, Width = UseParent)
- {
- Spacer(Width=4, Height=0);
-
- #if Platform_Mac
- Margin(0,1,4,0)
- StaticText( kLit20, Alignment = Right, Width = kDefaultURLLabelWidth,
- kBoldStaticFont);
- IntegerPopup( "", 0, 3121, // ccZoomToCmd
- kStaticTextFont,
- EH kLit21, DontBind )
- #else
- Spacer(Width=kDefaultURLLabelWidth-30, Height=0);
- IntegerPopup( kLit20, Default, 3121, Width = kZoomPopupWidth, // ccZoomToCmd
- EH kLit21, DontBind )
- #endif
- {
- IntItem(kLit22, 5);
- IntItem(kLit23, 10);
- IntItem(kLit24, 25);
- IntItem(kLit25, 50);
- IntItem(kLit26, 100);
- IntItem(kLit27, 200);
-
- #if Platform_Mac
- IntItem(kLit28, 400);
- IntItem(kLit29, 800);
- IntItem(kLit30, 1600);
- #endif
- };
-
- Spacer(Width = 20, Height = 0);
-
- //@ykh 070997 begin Single_Imgmap_Editor_Support
- Switch(GIFSettingsOnly)
- {
- case 1: //stand alone img editor
- Spacer(Height = 0, Width = 0);
-
- default: //client map editor
- HList(DialogBack, Width = UseParent)
- {
- #if Platform_Mac
- Margin(0,1,4,0)
- StaticText( kLit16, Alignment = Left, Width = 36,
- kBoldStaticFont);
- IntegerPopup( "", 0, 3123, // ccShowURLsCmd
- kStaticTextFont,
- EH kLit17, DontBind )
- #else
- IntegerPopup( kLit16, Default, 3123, Width = kLinksPopupWidth, // ccShowURLsCmd
- EH kLit17, DontBind )
- #endif
- {
- IntItem(kLit18, 1);
- IntItem(kLit19, 0);
- };
- //Spacer(Height = 0, Width = 0);
- }
- }
- //@ykh 070997 end Single_Imgmap_Editor_Support
-
- } // HList (URLToolbar)
-
-
-
-
- //VList(Width = UseParent, Height = UseParent, DialogBack)
- VList(Width = UseParent, Height = UseParent, DialogBack)
- {
- Call(UpperToolbar);
- Switch(GIFSettingsOnly)
- {
- case 1:
- Spacer(Height = 0, Width = 0);
-
- default:
- Call(URLEntry);
- }
-
- Spacer(Height = 4, Width = UseParent);
-
- //@ykh 071597 moved it from bottom.
- Call(URLToolbar);
- Spacer(Height = 3, Width = UseParent);
-
- HList(DialogBack, Width = UseParent)
- {
- //@ykh 070997 begin Single_Imgmap_Editor_Support
- Switch(GIFSettingsOnly)
- {
- case 1: //stand alone img editor
- Spacer(Height = 3, Width = UseParent);
-
- default: //client map editor
- //VList(Height = UseParent)
- HList(DialogBack, Width = UseParent)
- {
- Spacer(Height = UseParent, Width = kDefaultURLLabelWidth + 9);
- //Margin(0,6,0,0)
- //HList(DialogBack, Width = UseParent)
- //{
- WidowCheckBox(kLit32, saveServerSideMap, kBoldStaticFont,
- Width = 190, Height = 18);
- Spacer(Height = UseParent, Width = UseParent);
- //}
- }
- }
- //@ykh 070997 end Single_Imgmap_Editor_Support
- }
-
- Spacer(Height = 3, Width = UseParent);
-
- #if Platform_Win
- Spacer(Height = 1, Width = UseParent, BackColor = DkGray);
- #endif
-
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
-
- Switch(GIFSettingsOnly)
- {
- case 1:
- GenericView("PictEditorViewProc", DisableHotspots);
-
- default:
- GenericView("PictEditorViewProc");
- }
-
- //Spacer(Height = UseParent, Width = UseParent, BackColor = {65535, 0,0});
-
- //@ykh 071597 commented out, since we moved URLToolbar up
- //#if Platform_Win
- //Spacer(Height = 1, Width = UseParent, BackColor = Gray);
- //Spacer(Height = 1, Width = UseParent, BackColor = White);
- //Spacer(Height = 1, Width = UseParent, BackColor = DkGray);
- //#else
- //Spacer(Height = 1, Width = UseParent, BackColor = Black);
- //#endif
-
- //@ykh 071597 commented out, since we moved URLToolbar up
- //Spacer(Height = 4, Width = UseParent);
-
- //@ykh 071597 moved it up.
- //Call(URLToolbar);
- //Spacer(Height = 4, Width = UseParent);
-
-
- #ifdef TryMe0
-
- // This is just used during testing.
- Spacer(Height = 10);
- StaticText("Debugging Menu:");
- Spacer(Height = 10);
- IntegerPopup("Image Type:", Default, imageType, Width = 150, NoCombo, kPopupFont)
- {
- IntItem("GIF", 0);
- IntItem("JPEG",1);
- IntItem("QT Movie",2);
- IntItem("Unknown", 3);
- IntItem("Client Side Map", 999);
- };
-
- CheckBox("GIFSettingsOnly", GIFSettingsOnly);
- #endif
- }
-
-