home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL2010.txt
- // Copyright 1997 Claris
- // -----
-
- // kFTPFileBrowser 2010
-
- #include "StdVPref.txt"
-
- #define StdHSpace HSpace(6)
- #define StdVSpace VSpace(6)
- #define StdButtonWidth Width = 80
-
-
- /************************** 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 " Select the folder to upload into:"
- #define kLit2 " Select the file or folder to download:"
- #define kLit3 "Server name, set at runtime"
-
- #define kLit10 "&New Folder"
- #define kLit11 "&Delete"
- #define kLit12 "Cancel"
- #define kLit13 "Open"
- #define kLit14 "&Select Current"
-
-
-
-
- // Localized Fonts
-
- #if Platform_Mac
- #define kSmallBold Font = {Geneva, 10, {Bold}}
- #define kSmallDisplay Font = {Geneva, 9, {plain}}
-
- #define kPlainFont Font = {Geneva, 10, {Plain}}
- #define kStaticFont Font = {Geneva, 10, {Bold}}
- #define kEditFont Font = {Geneva, 10, {Plain}}
- #define kPopupFont Font = {Geneva, 10, {Plain}}
- #define kPopupLabelFont LabelFont = {Geneva, 10, {Bold}}
- #define kButtonFont Font = SystemFont
- //#define kButtonFont Font = {Geneva, 10, {Plain}}
- #define kStdLabelFont LabelFont = {Geneva, 10, {Bold}}
- #else
- #define kSmallBold Font = SystemFont
- #define kSmallDisplay Font = SystemFont
-
- #define kPlainFont Font = SystemFont
- #define kStaticFont Font = SystemFont
- #define kEditFont Font = SystemFont
- #define kPopupFont Font = SystemFont
- #define kPopupLabelFont LabelFont = SystemFont
- #define kButtonFont Font = SystemFont
- #define kStdLabelFont 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.
-
- //Basic width of the dialog. Layout will follow this width. Dialog height is
- //computed from wrapped heights of the static text, and other components.
- #define kDialogWidth 376
-
- /************************** 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 ***************************************************/
-
-
- Margin(4,4,4,4, BackColor = Dialog, Width = kDialogWidth)
- VList(Height = 220, Width = UseParent)
- {
- Switch(Upload)
- {
- case 1:
- StaticText(kLit1, kStaticFont);
- case 0:
- StaticText(kLit2, kStaticFont);
- }
- // StaticText(kLit1, kStaticFont); //temp test only.
-
- StdVSpace;
-
- Margin(16,0,0,0, Height = 20)
- HList(Width = UseParent)
- {
- #if Platform_Mac
- Margin(0,0,0,0, Height = 20, Width = 200)
- #else
- Margin(0,0,0,0, Height = 22, Width = 200)
- #endif
- FTPPathPopupMenu();
-
- //StdHSpace;
- HSpace(10);
-
- #if Platform_Mac
- cicn(511);
- #else
- cicn(511);
- #endif
-
- HSpace(2);
- Tag(ServerNameView) //@ykh 102697
- StaticText(ServerNameDisplayed, kStaticFont, Width = UseParent);
- }
-
- StdVSpace;
-
- HList(Width = UseParent)
- {
- Margin(16, 0, 0, 0, Width = 216, Height = 130)
- VList(Height = UseParent, Width = UseParent, VScroll)
- Tag(FtpFileListView)
- FTPFileList(NameOnly);
-
- Margin(20, 2, 0, 0, Width = 124, Height = 130)
- VList(Height = UseParent, Width = UseParent)
- {
- StdVSpace;
- HList(Width = UseParent)
- {
- HSpace(4);
- PushButton( kLit10, 4000, "FtpMakeFolder", StdButtonWidth, kButtonFont );
- //ccMiscButtonCommand, means dontCare, Only FtpMakeFolder is effective.
-
- }
- StdVSpace;
-
- #if Platform_Mac
- VSpace(3); //@ykh 102697 I dont know why?
- #endif
-
- HList(Width = UseParent)
- {
- HSpace(4);
- PushButton( kLit11, 4000, "FtpDeleteFolder", StdButtonWidth, kButtonFont );
- }
- //StdVSpace;
- StdVSpace;
- //StdVSpace;
- HList(Width = UseParent)
- {
- #if Platform_Win
- HSpace(4);
- #endif
-
- CancelButton( kLit12, 1071, "FtpCancelButton", StdButtonWidth, kButtonFont ); //ccOK
- //do not say 1070 (ccCancel) to work around RunStandardBuiltDialog limit.
- }
- StdVSpace;
- HList(Width = UseParent)
- {
- #if Platform_Win
- HSpace(4);
- #endif
-
- DefaultButton( kLit13, 1071, "FtpUnfoldFolder", StdButtonWidth, kButtonFont ); //ccOK
- }
- //StdVSpace;
- }
- }
-
- VSpace(12);
-
- HList(Width = UseParent)
- {
- HSpace(24);
-
- Tag(FtpSelectButtonView)
- PushButton( kLit14, 4000, "FtpSelectButton", Width = 176, kButtonFont );
- //StandardDialogButtonsHEnterOnly;
- }
- VSpace(12);
-
- }