home *** CD-ROM | disk | FTP | other *** search
-
-
- // -----
- // VDL2001.txt
- // Copyright 1997 Claris
- // -----
-
- //---------------------------------
- // ConfirmSiteUpload.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 "Upload Site"
- #define kLit2 "Server Name:"
-
- #define kLit3 "Remote Folder:"
-
-
- #define kLit11 "Upload"
- #define kLit12 "&Selected files and folders in the Site Editor Window"
- #define kLit13 "&Only those files that have changed since the last upload"
- #define kLit14 "&Entire Site"
-
- #define kLit15 "Upload"
- #define kLit16 "Cancel"
- #define kLit17 "Set &FTP Options..."
- #define kLit18 "Page:"
- #define kLit19 "Upload Location"
- #define kLit20 "&Include image files"
- #define kLit21 "Upload"
- #define kLit22 "Cancel"
- #define kLit23 "Consolidate"
-
-
- #define kHelpPublish "Help/PublishSite.htm"
- #define kHelpTitle "&Help"
-
-
- //Localized Fonts
- #if Platform_Mac
- #define DisplayFont Font = {Geneva, 10, {Plain}}
- // Font for the small push buttons
- #define kSmallBoldFont Font = {Geneva, 10, {Bold}}
- #define kBoldLabelFont {Geneva, 10, {Bold}}
- #else
- #define DisplayFont Font = SystemFont
- // Font for the small push buttons
- #define kSmallButtonFont Font = SystemFont
- #define kBoldLabelFont 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
-
-
- #define kGroupBoxWidth 400
-
- #else
-
-
-
- #define kGroupBoxWidth 400
-
- #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 ***************************************************/
-
-
-
-
- //-------------------------------------------------------------------------------------
- // Debug / Try Me Defines: These are for testing only
- //-------------------------------------------------------------------------------------
-
- #ifdef TryMe
-
-
- #endif
-
-
-
-
-
-
-
- //-------------------------------------------------------------------------------------
- // VDL Code Below Here
- //-------------------------------------------------------------------------------------
-
-
- //--- Defines ---------
- #define ccUploadFiles 5006
- #define ccDisabledCommandCode 9999 // This command code is used to disable the control that it is
- // asssociated with. Never bind this command code.
- #define ccChangeUploadOptions 5009
- //#define ccUploadOptions 5002
-
-
- #if Platform_Mac
- #define dlogBack stdBackColor
- #else
- #define dlogBack stdBackColor
- #endif
-
-
- #define kUploadBtnCmdID 1
- #define kCancelBtnCmdID 2
-
- Define(UploadSite)
- Margin(15,5,5,5,stdBackColor)
- Switch(aFileIsSelected)
- {
- case 0:
- VList()
- {
- // Just don't show this option
- // WidowRadioButton(kLit12, ccDisabledCommandCode, 0, Height = 20); // "ccDisabledCommandCode" bogus command, see declaration
- WidowRadioButton(kLit13, uploadWhichFiles, 1, Height = 20,DisplayFont);
- WidowRadioButton(kLit14, uploadWhichFiles, 2, Height = 20,DisplayFont);
- }//VList
- default:
- VList()
- {
- WidowRadioButton(kLit12, uploadWhichFiles, 0, Height = 20,DisplayFont);
- WidowRadioButton(kLit13, uploadWhichFiles, 1, Height = 20,DisplayFont);
- WidowRadioButton(kLit14, uploadWhichFiles, 2, Height = 20,DisplayFont);
- }//VList
- }//switch
-
-
-
- Define(UploadPage)
- Margin(5,5,5,5,stdBackColor)
- VList(Width = UseParent)
- {
- HList(Width = UseParent) // Display Page name
- {
- StaticText(kLit18,DisplayFont);
- Spacer(Width = 5);
- StaticText(pageName,Width = UseParent,DisplayFont);
- }//HList
-
- Spacer(Height = 5);
-
- HList(Width = UseParent)
- {
- Spacer(Width = 43);
- WidowCheckBox(kLit20, includeImages, Width = UseParent, Height = 18,DisplayFont);
- }//HList
-
- }//VList
-
-
- Margin(10, 10, 10, 10, dlogBack)
- VList()
- {
-
- VList()
- {
-
- Spacer(Height = 20, Width = 0);
-
- // Lable Group
- Label(kLit11, Single,Width = UseParent,Font = kBoldLabelFont)
- Margin(0,0,0,0,MinSizeX = kGroupBoxWidth)
- Switch(uploadPageOrSite) // Are we uploading from a page or a site
- {
- case 1:
- Call(UploadPage); // Display Page Upload info
- case 2:
- Call(UploadSite); // Display Upload Site Radio group
- }//switch
-
-
- Spacer(Height = 10, Width = 0);
-
- Label(kLit19, Single,Font = kBoldLabelFont)
- Margin(5,5,5,5,MinSizeX = kGroupBoxWidth)
- VList(Width = UseParent)
- {
- HList(Width = UseParent)
- {
- Spacer(Width = 6,ScaleH);
- StaticText(kLit2,DisplayFont);
- Spacer(Width = 5,ScaleH);
- StaticText(serverName,Width = UseParent,DisplayFont);
- }//HList
-
- Spacer(Height = 10, Width = 0);
-
- HList(Width = UseParent)
- {
-
- StaticText(kLit3,DisplayFont);
- Spacer(Width = 5);
- // StaticText(serverDirectory,Width = 320,DisplayFont);
- StaticText(serverDirectory,Width = UseParent,DisplayFont);
- }//HList
-
- Spacer(Height = 10, Width = 0);
-
- HList(Width = UseParent)
- {
- Spacer(Height = 0, Width = UseParent);
- PushButton( kLit17, 0, "ChangeUploadOptions",kSmallBoldFont);
- }//HList
-
- }//VList
-
- Spacer(Height = 20, Width = 0);
-
- HList(Width = UseParent)
- {
- /* No More Help Buttons.
- #if Platform_Mac
- PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpPublish)
- {
- Enabled(Draw, 'cicn',14055 );
- Disabled(Draw, 'cicn',14057 );
- Tracking(Draw, 'cicn',14056 );
- };
- #else
- PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpPublish);
- #endif
- */
- // Standard Ok & Cancel butons
-
- #if Platform_Mac
- Spacer(Height = 0, Width = UseParent);
- CancelButton(kLit16, 0, "cancelConfirmDialog");
- Spacer(Height = 0, Width = 5);
- DefaultButton(kLit15, 0, "okConfirmDialog");
- Spacer(Height = 0, Width = 5);
- #else
- Spacer(Height = 0, Width = UseParent);
- DefaultButton(kLit15, 0, "okConfirmDialog");
- Spacer(Height = 0, Width = 5);
- CancelButton(kLit16, 0, "cancelConfirmDialog");
- Spacer(Height = 0, Width = 5);
- #endif
-
-
- }//Hlist
-
- }//VList
-
-
-
-
-
-
-
-
-
-
-
- //-------------------------------------------------------------------------------------
- // Try Me Mode VDL Code Below Here: For Testing Only
- //-------------------------------------------------------------------------------------
-
- // This is just used during Try Me Mode (Debugging).
- // Use this area to set up and display controls
- // only during debug mode. This can be usefull to
- // set test how the UI will look and function under
- // differnt states set by controls in this ifdef area.
-
- #ifdef TryMe
- Spacer(Height = 200);
- StaticText("--------- Debugging Controls Below Here ---------");
-
-
- #endif
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-