#include "vdi_res.h"

// Forms and Alerts
ALERT ID About
INFORMATION
BEGIN
  TITLE "About"
  MESSAGE "VD Image Viewer v^1\n" \
          "http://okob.net/vdi/\n" \
          "Author: Denis Bakin\n" \
          "denisb@okob.net"
  BUTTONS "Ok"
END

ALERT ID ImageInfo
INFORMATION
BEGIN
  TITLE "Image Info"
  MESSAGE "Name: ^1\n" \
          "Info: ^2\n" \
          "Date: ^3"
  BUTTONS "Ok"
END

ALERT ID UntestedHardware
WARNING
BEGIN
  TITLE "UntestedHardware"
  MESSAGE "The application may not be compatible with your hardware. " \
          "Would you like to continue?"
  BUTTONS "Ok" "Cancel"
END

ALERT ID FatalError
ERROR
BEGIN
  TITLE "VDI Error"
  MESSAGE "^1"
  BUTTONS "Exit"
END

ALERT ID WarningError
WARNING
BEGIN
  TITLE "VDI Warning"
  MESSAGE "^1"
  BUTTONS "Ok" "Cancel"
END

FORM ID MainForm AT (0 0 160 160)
MODAL
MENUID MainMenu
BEGIN
  LABEL "No Bitmap Loaded" AUTOID AT (34 55) FONT 7
  BUTTON "Cancel decompressing..." DECOMP_BUTTON AT (CENTER 125 AUTO AUTO) FONT 0 NONUSABLE DISABLED
END

FORM ID UserGuide AT (2 2 156 156)
MODAL
BEGIN
  TITLE "Help"
  LABEL "The Virtual Display Image Viewer" ID UsersGuideGest1 AT (5 18) FONT 0
  LABEL "recognizes two simple gestures to" AUTOID AT (5 28) FONT 0
  LABEL "zoom the virtual display in and out:" AUTOID AT (5 38) FONT 0
  FORMBITMAP AT (PREVLEFT PREVBOTTOM) BITMAP GestZoomIn
  LABEL "desired direction. Buttons can also" AUTOID AT (5 110) FONT 0
  LABEL "to the edge of the window in the" AUTOID AT (PREVLEFT BOTTOM@PREVTOP+1) FONT 0
  LABEL "display space when pen is moved" AUTOID AT (PREVLEFT BOTTOM@PREVTOP+1) FONT 0
  LABEL "The window slides over the virtual" ID UserGuideMovements AT (PREVLEFT BOTTOM@PREVTOP+2) FONT 0
  LABEL "-Out" AUTOID AT (RIGHT@PREVRIGHT-1 BOTTOM@PREVTOP-4) FONT 2
  LABEL "Tap the screen to continue" AUTOID AT (5 139) FONT 0
  LABEL "be used for zooming&navigation." AUTOID AT (PREVLEFT BOTTOM@PREVTOP-6) FONT 0
  FORMBITMAP AT (75 50) BITMAP GestZoomOut
  LABEL "-In" AUTOID AT (RIGHT@PREVLEFT-12 59) FONT 2
END

#ifdef VFS_SUPPORT
FORM ID COPY_FORM AT (2 2 156 156)
MODAL
BEGIN
  TITLE "Copy"
  LABEL "Image Name:" AUTOID AT (6 21) FONT 1
  LABEL "unknown                          " COPY_NAME AT (PREVLEFT PREVBOTTOM) FONT 0
  LABEL "From:" AUTOID AT (PREVLEFT PREVBOTTOM+2) FONT 1
  LABEL "Handheld                         " COPY_FROM AT (PREVLEFT PREVBOTTOM) FONT 0
  LABEL "Copy To:" AUTOID AT (PREVLEFT PREVBOTTOM+5) FONT 1
  POPUPTRIGGER "Handheld" ID COPY_TO_TRIGGER AT (PREVLEFT PREVBOTTOM AUTO AUTO) FONT 0
  POPUPLIST COPY_TO_TRIGGER COPY_TO_LIST
  LIST "" ID COPY_TO_LIST AT (PrevLeft PrevTop 100 AUTO) FONT 0 NONUSABLE VISIBLEITEMS 4
  BUTTON "Copy" COPY_COPY_BTN AT (PREVLEFT 139 AUTO AUTO) FONT 0
  BUTTON "Cancel" COPY_CANCEL_BTN AT (PREVRIGHT+4 PREVTOP AUTO AUTO) FONT 0
  BUTTON "Done" COPY_DONE_BTN AT (PREVRIGHT+4 PREVTOP AUTO AUTO) FONT 0
  LABEL "                                                   " COPY_STATUS AT (6 105) FONT 0
  LABEL "                                                   " COPY_PERC AT (PREVLEFT PREVBOTTOM) FONT 0
END

FORM ID BROWSE_VD_DBS AT (0 0 160 160)
NOFRAME
BEGIN
  TITLE "Browse"
  LIST "" ID BROWSE_LIST AT (1 15 158 AUTO) FONT 0 VISIBLEITEMS 11
  BUTTON "\010" ID BROWSE_UP AT (PREVLEFT+1 PREVBOTTOM+7 13 12) FONT 3
  BUTTON "\007" ID BROWSE_DOWN AT (PREVRIGHT+3 PREVTOP PREVWIDTH PREVHEIGHT) FONT 3
  BUTTON "Copy" ID BROWSE_COPY AT (44 PREVTOP 25 AUTO) FONT 0
  BUTTON "Del" ID BROWSE_DEL AT (PREVRIGHT+3 PREVTOP 17 AUTO) FONT 0
  BUTTON "Inf" ID BROWSE_INFO AT (PREVRIGHT+3 PREVTOP 16 AUTO) FONT 0
  BUTTON "Open" ID BROWSE_OPEN AT (PREVRIGHT+3 PREVTOP 26 AUTO) FONT 0
  BUTTON "Ok" ID BROWSE_OK AT (PREVRIGHT+3 PREVTOP 18 AUTO) FONT 0
  CHECKBOX "\032" ID BROWSE_VFS_CBOX AT (130 1 AUTO AUTO) FONT 1 CHECKED
  BUTTON "R" BROWSE_REFRESH AT (RIGHT@PREVLEFT-10 PREVTOP+1 13 9) FONT 0
END
#else  /* VFS_SUPPORT */
FORM ID BROWSE_VD_DBS AT (0 0 160 160)
NOFRAME
BEGIN
  TITLE "Browse VD Images"
  LIST "" ID BROWSE_LIST AT (1 15 158 AUTO) FONT 0 VISIBLEITEMS 11
  BUTTON "\010" ID BROWSE_UP AT (PREVLEFT+1 PREVBOTTOM+7 13 12) FONT 3
  BUTTON "\007" ID BROWSE_DOWN AT (PREVRIGHT+3 PREVTOP PREVWIDTH PREVHEIGHT) FONT 3
  BUTTON "Del" ID BROWSE_DEL AT (40 PREVTOP 17 AUTO) FONT 0
  BUTTON "Inf" ID BROWSE_INFO AT (PREVRIGHT+3 PREVTOP 16 AUTO) FONT 0
  BUTTON "Open" ID BROWSE_OPEN AT (PREVRIGHT+3 PREVTOP 26 AUTO) FONT 0
  BUTTON "More.." ID BROWSE_MORE AT (PREVRIGHT+3 PREVTOP 29 AUTO) FONT 0
  BUTTON "Ok" ID BROWSE_OK AT (PREVRIGHT+3 PREVTOP 18 AUTO) FONT 0
  LIST "Group Start" "Group End" "Ungroup" "Delete Group" BROWSE_MORE_LST AT (99 BOTTOM@PREVTOP-42 58 AUTO) FONT 0 DISABLED VISIBLEITEMS 4
END
#endif /* VFS_SUPPORT */

ICON "appiconBW.bmp"
SMALLICON "appiconBW_s.bmp"

BITMAP ID GestZoomIn "GestZoomIn.bmp" COMPRESS
BITMAP ID GestZoomOut "GestZoomOut.bmp" COMPRESS

STRING ID ErrBMP "Error loading bitmap data"
STRING ID InvalidBMP "Invalid or unsupported bitmap"
STRING ID DelBMP "The bitmap you've been viewing will be deleted!"
#ifdef OBSOLETE
STRING ID DelAllBMP "All VDI bitmaps except the currently viewed one will be "\
                    "deleted!"
#endif /* OBSOLETE */
STRING ID BeamBMP "The bitmap you've been viewing is about to be beamed!"
STRING ID BeamApp "The VDI application is about to be beamed!"
#ifdef VFS_SUPPORT
STRING ID progMsg "Loading... "
STRING ID progCancel "Canceling... "
STRING ID ErrCopyNotSupported "Only copying between memory and VFS is supported!"
STRING ID ErrCopyFailed "Copy failed!"
STRING ID MsgCopyOk "Done"
STRING ID CopyInProcess "Copying... "
STRING ID WrnCopyFileExists "The destination already exists, overwrite?"
#endif /* VFS_SUPPORT */

MENU ID MainMenu
BEGIN
     PULLDOWN "File"
     BEGIN
        MENUITEM "Browse" ID MMBrowse
        MENUITEM "-" ID    MenuStartItem
     END
     PULLDOWN "Action"
     BEGIN
        MENUITEM "Beam VD Image Viewer" ID MMBeamApp
        MENUITEM "Active Image Info" ID MMInfo
        MENUITEM "Beam Active Image" ID MMBeam
        MENUITEM "Delete Active Image" ID MMDelete
     END
     PULLDOWN "About"
     BEGIN
        MENUITEM "About..." ID MMAbout
     	MENUITEM "Help" ID MMHelp
END
END

VERSION ID 1 "1.8a"

