home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL171.txt
- // Copyright 1997 Claris
- // -----
-
- //---------------------------------
- // SiteWind.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 "Create New Page"
- #define kLit2 "Site Download Statistics"
- #define kLit3 "Upload"
- #define kLit4 "Upload Options"
- #define kLit5 "Document Options"
- #define kLit6 "Verify Links and References"
- #define kLit7 "Local Site Folder:"
- #define kLit8 "FTP Upload Location:"
- #define kLit9 "Page Count:"
- #define kLit10 "Total Size:"
- #define kLit11 "Consolidate"
-
-
-
- //Localized Fonts
- #if Platform_Mac
- #define kStaticTextFont Font = {Geneva, 10, {Plain}}
- #define kBoldStaticFont Font = {Geneva, 10, {Bold}}
- #define kHelpFont Font = {Geneva, 9, {Italic}}
- #else
- #define kStaticTextFont Font = SystemFont
- #define kBoldStaticFont 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.
-
-
-
-
-
- /************************** 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 // Standard Minimum Separtion between objects
- #define DialogBack stdBackColor
-
-
- #if Platform_Mac
- #define ToolSep GenericView("ToolSepView");
- #define SelectorViewStyle MacMode
- #else
- #define ToolSep
- #define SelectorViewStyle WinMode
- #endif
-
-
-
- // Display IDs that indicate which type
- // of data is being displayed File Info or Link Info
- #define kFileInfoDisplayID 1
- #define kFileLinksDisplayID 2
-
- //--- Command Codes ---
- #define ccDisabledCommandCode 9999
- #define ccNewDoc 1040
- //#define ccNewFolder ccDisabledCommandCode //$$$$MR change to 5007
- #define ccSiteWindUpload 5003
- #define ccUploadOptions 5002
- #define ccVerifySiteLinks 5008
- #define ccConsolidateSite 3314
- #define ccDoSiteStats 5031
- #define ccSiteDocOptions 5034
- #define ccNewDocFromSite 5035
-
- //--- Resource IDs ---
- #define kDocumentOptionsIcon 13013
- #define kDocumentOptionsIconPressed 13033
- #define kDocumentOptionsIconDimmed 13053
-
- #define kUploadIcon 13570
- #define kUploadIconPressed 13571
- #define kUploadIconDimmed 13572
-
- #define kUploadOptionsIcon 14065
- #define kUploadOptionsIconPressed 14066
- #define kUploadOptionsIconDimmed 14067
-
- #define kNewFolderIcon 16007
- #define kNewFolderIconPressed 16008
- #define kNewFolderIconDimmed 16009
-
- #define kVerifyLinksIcon 16010
- #define kVerifyLinksIconPressed 16011
- #define kVerifyLinksIconDimmed 16012
-
- #define kNewPageIcon 16013
- #define kNewPageIconPressed 16014
- #define kNewPageIconDimmed 16015
-
- #define kConsolidateIcon 16022
- #define kConsolidateIconPressed 16023
- #define kConsolidateIconDimmed 16024
-
- #define kSiteStatsIcon 16025
- #define kSiteStatsIconPressed 16026
- #define kSiteStatsIconDimmed 16027
-
-
- //-------------------------------------------------------------------------------------
- // Debug / Try Me Defines: These are for testing only
- //-------------------------------------------------------------------------------------
-
- #ifdef TryMe
- // #define WhichView 1
- #define LocalSitePath "HardDisk:Development:Master Web Site:My Web Site"
- #define FTPSitePath "http://www.coolsite.com"
- #endif
-
-
-
-
-
-
-
- //-------------------------------------------------------------------------------------
- // Buttons in the dialog button Bar
- //-------------------------------------------------------------------------------------
- Define(SiteEditorButtonBarButtons)
- HList(FullyCovered,DialogBack)
- {
- //New Page Button
- ToolSep
-
-
- PictPushButton(ccNewDocFromSite, "None", EH kLit1)
- {
- On(Draw, 'cicn', kNewPageIcon);
- Off(Draw, 'cicn', kNewPageIconPressed);
- DisabledOn(Draw, 'cicn', kNewPageIconDimmed);
- DisabledOff(Draw, 'cicn', kNewPageIconDimmed);
- TrackingOn(Draw, 'cicn', kNewPageIconPressed);
- TrackingOff(Draw, 'cicn', kNewPageIconPressed);
- };
-
-
-
- ToolSep
- Spacer(Width = kStandardSpace, Height = UseParent);
-
- //Document Options Button
- ToolSep
- PictPushButton(ccSiteDocOptions, "None", EH kLit5)
- {
- On(Draw, 'cicn', kDocumentOptionsIcon);
- Off(Draw, 'cicn', kDocumentOptionsIconPressed);
- DisabledOn(Draw, 'cicn', kDocumentOptionsIconDimmed);
- DisabledOff(Draw, 'cicn', kDocumentOptionsIconDimmed);
- TrackingOn(Draw, 'cicn', kDocumentOptionsIconPressed);
- TrackingOff(Draw, 'cicn', kDocumentOptionsIconPressed);
- };
-
- /*$$$$MR Commented out because IDG determined that this button was confusing
- ToolSep
-
- //Upload Options Button
- PictPushButton( ccUploadOptions, "None",EH kLit4) //Publish Options Button
- {
- On(Draw, 'cicn', kUploadOptionsIcon);
- Off(Draw, 'cicn', kUploadOptionsIconPressed);
- DisabledOn(Draw, 'cicn', kUploadOptionsIconDimmed);
- DisabledOff(Draw, 'cicn', kUploadOptionsIconDimmed);
- TrackingOn(Draw, 'cicn', kUploadOptionsIconPressed);
- TrackingOff(Draw, 'cicn', kUploadOptionsIconPressed);
- };
- */
- //New Folder Button
- ToolSep
- PictPushButton(ccDoSiteStats, "None", EH kLit2)
- {
- On(Draw, 'cicn', kSiteStatsIcon);
- Off(Draw, 'cicn', kSiteStatsIconPressed);
- DisabledOn(Draw, 'cicn', kSiteStatsIconDimmed);
- DisabledOff(Draw, 'cicn', kSiteStatsIconDimmed);
- TrackingOn(Draw, 'cicn', kSiteStatsIconPressed);
- TrackingOff(Draw, 'cicn', kSiteStatsIconPressed);
- };
-
- ToolSep
- Spacer(Width = kStandardSpace, Height = UseParent);
-
- //Verify Links Button
- ToolSep
- PictPushButton( ccVerifySiteLinks, "None",EH kLit6) //Verify Links & References Button
- {
- On(Draw, 'cicn', kVerifyLinksIcon);
- Off(Draw, 'cicn', kVerifyLinksIconPressed);
- DisabledOn(Draw, 'cicn', kVerifyLinksIconDimmed);
- DisabledOff(Draw, 'cicn', kVerifyLinksIconDimmed);
- TrackingOn(Draw, 'cicn', kVerifyLinksIconPressed);
- TrackingOff(Draw, 'cicn', kVerifyLinksIconPressed);
- };
-
- //Consolidate Button
- ToolSep
- PictPushButton(ccConsolidateSite, "None", EH kLit11) //Consolidate Button
- {
- On(Draw, 'cicn', kConsolidateIcon);
- Off(Draw, 'cicn', kConsolidateIconPressed);
- DisabledOn(Draw, 'cicn', kConsolidateIconDimmed);
- DisabledOff(Draw, 'cicn', kConsolidateIconDimmed);
- TrackingOn(Draw, 'cicn', kConsolidateIconPressed);
- TrackingOff(Draw, 'cicn', kConsolidateIconPressed);
- };
-
- //Upload Site Button
- ToolSep
- PictPushButton(ccSiteWindUpload,"None",EH kLit3) //Publish Button
- {
- On(Draw, 'cicn', kUploadIcon);
- Off(Draw, 'cicn', kUploadIconPressed);
- DisabledOn(Draw, 'cicn', kUploadIconDimmed);
- DisabledOff(Draw, 'cicn', kUploadIconDimmed);
- TrackingOn(Draw, 'cicn', kUploadIconPressed);
- TrackingOff(Draw, 'cicn', kUploadIconPressed);
- };
-
- }//SiteEditorButtonBarButtons
-
-
-
- //-------------------------------------------------------------------------------------
- // Set Up The Upper Tool Bar, Tool Tips
- //-------------------------------------------------------------------------------------
- Define(UpperToolbar)
- Margin(6,7,0,5,Width = UseParent, DialogBack)
- HList(Width = UseParent,FullyCovered)
- {
-
- Call(SiteEditorButtonBarButtons);
- ToolSep
- // Spacer(Width = UseParent, Height = UseParent);
-
- VList(Width = UseParent, Height = UseParent,DialogBack)
- {
- Spacer(Height = 5, Width = UseParent);
- #if Platform_Mac
- Margin(kStandardSpace + 3,2,0,0,DialogBack)
- HelpView(Width = UseParent, Alignment = Left, Height = 12, kHelpFont);
- #endif
- }
- } // HList
-
-
-
-
-
- //-------------------------------------------------------------------------------------
- // Set up the site info text fields
- //-------------------------------------------------------------------------------------
- Define(SiteInfoFields)
- Margin(6,0,0,5,Width = UseParent, DialogBack)
- VList(Width = UseParent, DialogBack)
- {
- HList(Width = UseParent,FullyCovered)
- {
- Spacer(Width = 18, Height = UseParent);
- StaticText(kLit7,kBoldStaticFont,Height = UseParent);
- Spacer(Width = kStandardSpace, Height = UseParent);
- StaticText(smgLocalSitePath, kStaticTextFont,Width = 320);
- Spacer(Width = UseParent, Height = UseParent);
- } // HList
-
- Spacer(Width = 0, Height = 5);
-
- HList(Width = UseParent,FullyCovered)
- {
- StaticText(kLit8,kBoldStaticFont,Height = UseParent);
- Spacer(Width = kStandardSpace, Height = UseParent);
- StaticText(smgFTPSitePath, kStaticTextFont,Width = 320);
- Spacer(Width = UseParent, Height = UseParent);
- } // HList
-
- } // VList
-
-
- //-------------------------------------------------------------------------------------
- // Set up the selection info text fields
- //-------------------------------------------------------------------------------------
- Define(SelectionInfoFields)
- Margin(0,0,0,0, DialogBack)
- VList(DialogBack)
- {
- Spacer(Height = 6);
- HList()
- {
- StaticText(kLit9,kBoldStaticFont,Width = 100,Height = UseParent,Alignment = Right);
- Spacer(Width = kStandardSpace, Height = UseParent);
- StaticText(numberOfPages, kStaticTextFont,Width = 40);
- Spacer(Width = UseParent, Height = UseParent);
- } // HList
-
- Spacer( Height = 2);
-
- HList()
- {
- StaticText(kLit10,kBoldStaticFont,Width = 100,Height = UseParent,Alignment = Right);
- Spacer(Width = kStandardSpace, Height = UseParent);
- StaticText(totalSize, kStaticTextFont,Width = 40);
- Spacer(Width = UseParent, Height = UseParent);
- } // HList
-
- } // VList
-
-
-
- //-------------------------------------------------------------------------------------
- // Define the Column Header parameters
- //-------------------------------------------------------------------------------------
- Define(FullFileHeader)
- ColumnHeaderList ( MinColWidth = 50,
-
- ColLabel0 = "Name",
- ColWidth0 = fileNameWidth,
- DefaultWidth0 = 250,
-
- ColLabel1 = "Size",
- ColWidth1 = fileSizeWidth,
- DefaultWidth1 = 50,
-
- ColLabel2 = "Create Date",
- ColWidth2 = fileCreateWidth,
- DefaultWidth2 = 70,
-
- ColLabel3 = "Last Mod Date",
- ColWidth3 = fileModWidth,
- DefaultWidth3 = 100,
-
- SortAttribute = FileSortMode,
-
- DialogBack,
- kStaticTextFont,
- Width = UseParent
- );
-
-
- //-------------------------------------------------------------------------------------
- // Set up the file browser view
- //-------------------------------------------------------------------------------------
- Define(FileInfoView)
- VList(Width = UseParent, Height = UseParent)
- {
- Call(FullFileHeader);
-
- // VList(Width = UseParent, Height = UseParent,VScroll,HScroll)
- VList(Width = UseParent, Height = UseParent,NoFrame, ForceOverlap,VScroll,HScroll)
- {
-
- GenericView("SiteFileSelector",
- SelectorViewStyle,
- // RootCanFold,
- CanEdit,
- SelDomain = "site_window_domain",
- BackColor = {0, 0, 0},
- kStaticTextFont );
- }//VList
- }//VList
-
-
- //-------------------------------------------------------------------------------------
- // Set up the site browser tree
- //-------------------------------------------------------------------------------------
- Define(SiteTreeBrowser)
- Call(FileInfoView);
- //$$$$MR implement this way for now, later use the switch
- // below
- /*$$$$MR This switch will be used when we implement the links view
- Switch (WhichView)
- {
- case 1:
- Call(FileInfoView);
- default:
- // GenericView("LinkInfoTreeProc");
- StaticText("Links Info View");
- }//switch
- */
-
- //-------------------------------------------------------------------------------------
- // This is the root level VList
- //-------------------------------------------------------------------------------------
- VList(Width = UseParent, Height = UseParent, DialogBack)
- {
- HList(Width = UseParent)
- {
- Call(UpperToolbar);
- // Spacer(Width = 10);
-
- //$$$$ No longer going to display the site stat fields
- // Call(SelectionInfoFields);
- }//HList
-
-
- Call(SiteInfoFields);
-
- Call(SiteTreeBrowser);
-
-
- }//VList root
-
-
-
-
-