home *** CD-ROM | disk | FTP | other *** search
- // -----
- // vdl2012.txt
- // Copyright 1996 Claris
- // -----
-
- // SiteStats.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 kLit2 "HTML Pages: "
- #define kLit3 "Total Size(K): "
-
- #define kLit5 "Approximate Download Times"
-
- #define kLit8 "&Done"
-
- #define kLit11 "Site"
- #define kLit12 "Selection"
- #define kLit13 "14.4 K"
- #define kLit14 "28.8 K"
- #define kLit15 "33.6 K"
- #define kLit16 "56.0 K"
- #define kLit17 "ISDN"
- #define kLit18 "T1"
-
-
- //Localized Fonts
- #if Platform_Mac
- #define DisplayFont { Geneva, 10, {Plain} }
- #define kBoldLabelFont { Geneva, 10, {Bold} }
- #define kTabLabelFont {Geneva, 10, {Plain}}
- #else
- #define DisplayFont SystemFont
- #define kBoldLabelFont SystemFont
- #define kTabLabelFont 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
- //Width of the labels
- #define kLabelWidth 80
- #define kDownLoadLableWidth 80
-
- //Width of the displayed values
- #define kValueWidth 80
-
- //Width of the OK Button
- #define kOKButtonWidth 70
-
- #define kValueSeparation 30
- #else
-
- //Width of the labels
- #define kLabelWidth 100
- #define kDownLoadLableWidth 80
-
- //Width of the displayed values
- #define kValueWidth 100
-
- //Width of the OK Button
- #define kOKButtonWidth 100
-
- #define kValueSeparation 30
-
- #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 ***************************************************/
-
-
- // DO NOT TOUCH
- // WORK IN PROGRESS
- // - Russ [08.17.97]
- //#if Platform_Mac
- // #define dlogBack BackColor = {65535, 65535, 65535}
- //#else
- #define dlogBack BackColor = Dialog
- //#endif
-
-
- Define(SelectionStats)
- VList(TabDialogBack)
- {
- VList()
- {
- HList()
- {
- StaticText( kLit2, Width = kLabelWidth, Font = DisplayFont, Alignment = Right );
- StaticText(selNumPages, Font = DisplayFont, Width = kValueWidth );
- }
- Spacer(Height = 5, Width = 0);
- HList()
- {
- StaticText( kLit3, Width = kLabelWidth, Font = DisplayFont , Alignment = Right);
- StaticText(selNumBytes, Font = DisplayFont , Width = kValueWidth);
- }
- }
-
- Spacer(Height = 12, Width = 0);
-
- //---- DownLoad Times ----
- Label(kLit5, Single,Font = kBoldLabelFont)
- Margin(5,5,30,5)
- VList()
- {
-
- HList()
- {
- StaticText( kLit13, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(sel14_4Download,Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit14, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(sel28_8Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit15, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(sel33_6Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit16, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(sel56_0Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit17, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(selISDNDownload, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit18, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(selT1Download, Font = DisplayFont);
- }//HList
-
- }//VList
- }//VList
-
- Define(DocumentStats)
- VList(TabDialogBack)
- {
-
- VList()
- {
- HList()
- {
- StaticText( kLit2, Width = kLabelWidth, Font = DisplayFont, Alignment = Right );
- StaticText(siteNumPages, Font = DisplayFont, Width = kValueWidth );
- }//HList
- Spacer(Height = 5, Width = 0);
- HList()
- {
- StaticText( kLit3, Width = kLabelWidth, Font = DisplayFont , Alignment = Right);
- StaticText(siteNumBytes, Font = DisplayFont , Width = kValueWidth);
- }//HList
- }//VList
-
-
- Spacer(Height = 12, Width = 0);
-
- //---- DownLoad Times ----
- Label(kLit5, Single,Font = kBoldLabelFont)
- Margin(5,5,30,5)
- VList()
- {
-
- HList()
- {
- StaticText( kLit13, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(site14_4Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit14, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(site28_8Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit15, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(site33_6Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit16, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(site56_0Download, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit17, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(siteISDNDownload, Font = DisplayFont);
- }//HList
-
- HList()
- {
- StaticText( kLit18, Width = kDownLoadLableWidth, Font = DisplayFont, Alignment = Right );
- Spacer(Width = kValueSeparation);
- StaticText(siteT1Download, Font = DisplayFont);
- }//HList
-
- }//VList
-
-
- }//VList
-
-
- //---- Tab Main ----
- Define(MainList)
- Margin(12,12,12,12)
- VList(TabDialogBack)
- {
-
- Switch (mode)
- {
- case 0:
- default:
- Margin(0,0,0,0)
- Call(DocumentStats);
-
- case 1:
- Margin(0,0,0,0, Height = UseParent)
- Call(SelectionStats);
-
- }//Switch
- }//VList
-
-
- //---- Main -----
- Margin(10, 10, 10, 10, TabDialogBack)
- VList()
- {
-
- TabControl(mode, NoUndo,Font = kTabLabelFont)
- {
- Tab(kLit11, 0); // Document
- Tab(kLit12, 1); // Selection
-
- Subview:
- Call(MainList);
- }; //Layout
-
- Spacer(Height = 16, Width = 0);
-
- HList(Width = UseParent)
- {
- Spacer(Width = UseParent, Height = 0);
- DefaultButton(kLit8, 1071, "None", Width = kOKButtonWidth);
- }
-
-
-
- }//VList
-
-