#include "fileman.h"

VERSION 1 "1.0"

FORM formID_FileList 0 0 160 160
MENUID  menuID_MainMenu
USABLE
NOFRAME
BEGIN
		TITLE "File Manager 1.0"

		TABLE tableID_FileList AT (0 20 160 140) ROWS 11 COLUMNS 5 COLUMNWIDTHS 15 10 30 30 75
END

MENU menuID_MainMenu
BEGIN
    PULLDOWN "Commands"
    BEGIN
        MENUITEM "Memory Card Details" menuitemID_ShowCard
        MENUITEM "Help"                menuitemID_Help
        MENUITEM "About"               menuitemID_About
    END
END

FORM formID_ShowDatabase 0 0 160 160
USABLE
FRAME
MODAL
BEGIN
    TITLE "1234567890123456789012345678901"
    LABEL "Index:" ID 0 AT (0 20) USABLE FONT 0
    LABEL "Num Records:" ID 0 AT (65 20) USABLE FONT 0
    LABEL "Type:" ID 0 AT (0 35) USABLE FONT 0
    LABEL "Creator:" ID 0 AT (65 35) USABLE FONT 0
    LABEL "Bytes:" ID 0 AT (0 50) USABLE FONT 1
    LABEL "Total:" ID 0 AT (5 65) USABLE FONT 0
    LABEL "Data:" ID 0 AT (85 65) USABLE FONT 0
    LABEL "Header Bits" ID 0 AT (0 80) USABLE FONT 1
    LABEL "Resource:" ID 0 AT (5 95) USABLE FONT 0
    LABEL "Read only:" ID 0 AT (85 95) USABLE FONT 0
    LABEL "App info dirty:" ID 0 AT (5 110) USABLE FONT 0
    LABEL "Backup:" ID 0 AT (85 110) USABLE FONT 0
    LABEL "Open:" ID 0 AT (5 125) USABLE FONT 0

    BUTTON "Done"  ID buttonID_ShowDatabaseDone  AT ( 125 146 AUTO AUTO) USABLE FRAME
END

FORM formID_ShowCard 0 0 160 160
USABLE
FRAME
MODAL
BEGIN
    TITLE "Memory Card 0"

    LABEL "Card Name:" ID 0 AT (5 20) USABLE FONT 0
    LABEL "Manufacturer:" ID 0 AT (5 35) USABLE FONT 0
    LABEL "Version:" ID 0 AT (5 50) USABLE FONT 0
    LABEL "Creation Date:" ID 0 AT (5 65) USABLE FONT 0
    LABEL "ROM Size:" ID 0 AT (5 80) USABLE FONT 0
    LABEL "RAM Size:" ID 0 AT (5 95) USABLE FONT 0
    LABEL "Free bytes:" ID 0 AT (5 110) USABLE FONT 0

    BUTTON "Done"  ID buttonID_ShowCardDone  AT ( 125 146 AUTO AUTO) USABLE FRAME
END

ICON "fileman.bmp"

FORM ID formID_Help   0 0 160 160
USABLE
MODAL
BEGIN
		TITLE "File Manager Help"
    FIELD ID fieldID_Help AT (5 20 150 125) NONEDITABLE USABLE LEFTALIGN MULTIPLELINES MAXCHARS 600 FONT 0

    BUTTON "Prev"  ID buttonID_HelpPrev  AT ( 53 146 AUTO AUTO) NONUSABLE FRAME
		BUTTON "Next"  ID buttonID_HelpNext  AT ( 88 146 AUTO AUTO) NONUSABLE FRAME
    BUTTON "Done"  ID buttonID_HelpDone  AT ( 125 146 AUTO AUTO) USABLE FRAME
END

STRING ID stringID_HelpPage0 "File manager shows " \
    "information about the databases on your Pilot. " \
    "The main File Manager screen lists the databases installed on your Pilot. "\
    "Use the page up and page down buttons to advance and back up in the list. " \
    "Tap on a database to display more detailed information. Use the Memory Card " \
    "Details item from the menu to see more info about the card."
STRING ID stringID_HelpPage1
    "The File List table has five columns. The index of the database is shown at " \
    "the left side. A large R or D in the second column indicates whether or not " \
    "the resource bit is set. " \
    "The third column shows the Type of the database. " \
		"The fourth column shows the Creator ID of the database. The fifth " \
    "column shows the name of the database."

ALERT alertID_About
INFORMATION
BEGIN
		TITLE "About File Manager"
    MESSAGE "Written by howlett@iosphere.net " \
            "for the GNU Pilot SDK Tutorial"
		BUTTONS "Thanks Andrew"
END

