DLGINCLUDE 1 "rc5gui.h"

DLGTEMPLATE DID_ABOUT LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "RC5-DES -- OS/2 Style!", DID_ABOUT, 26, 6, 196, 91, WS_VISIBLE, 
            FCF_TITLEBAR
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        PUSHBUTTON      "Moo!", -1, 79, 4, 40, 14
        ICON            ID_COW, -1, 4, 47, 21, 16, WS_GROUP
        ICON            ID_OSCAR, -1, 169, 47, 21, 16, WS_GROUP
        CTEXT           "RC5 v2.643.355 Client", ID_ABOUT_VERSION, 26, 77, 
                        147, 13, DT_VCENTER | NOT WS_GROUP
        CTEXT           "A project of distributed.net Copyright distributed."
                        "net 1997 http://www.distributed.net/", -1, 27, 42, 
                        138, 25, DT_WORDBREAK
        CTEXT           "OS/2 Port by Oscar Chang http://www.divideby0.com/r"
                        "c5/", -1, 29, 19, 141, 19, DT_WORDBREAK | NOT 
                        WS_GROUP
        CTEXT           "OS/2 PM Build 2.02", -1, 63, 72, 74, 8
    END
END

DLGTEMPLATE DID_BLOCK_CONFIG LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "Block Configuration", DID_BLOCK_CONFIG, 0, 0, 263, 64, NOT 
            FS_DLGBORDER | WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        LTEXT           "RC5 Blocks to Buffer [in:out]", -1, 5, 46, 112, 8
        ENTRYFIELD      "10", ID_BLOCKIN, 123, 45, 19, 8, ES_CENTER | 
                        ES_MARGIN
        ENTRYFIELD      "10", ID_BLOCKOUT, 153, 45, 18, 8, ES_CENTER | 
                        ES_MARGIN
        CTEXT           ":", -1, 145, 45, 6, 8
        ENTRYFIELD      "10", ID_BLOCKIN_DES, 123, 32, 19, 8, ES_CENTER | 
                        ES_MARGIN
        ENTRYFIELD      "10", ID_BLOCKOUT_DES, 153, 32, 18, 8, ES_CENTER | 
                        ES_MARGIN
        CTEXT           ":", -1, 145, 32, 6, 8
        LTEXT           "(1000 maximum)", -1, 177, 32, 80, 8
        LTEXT           "Blocks to complete in run:", -1, 5, 19, 116, 8
        ENTRYFIELD      "0", ID_BLOCK_COMPLETE, 153, 19, 18, 8, ES_CENTER | 
                        ES_MARGIN
        LTEXT           "Hours to complete in a run:", -1, 5, 6, 125, 8
        ENTRYFIELD      "0", ID_HOURS_COMPLETE, 138, 5, 33, 8, ES_CENTER | 
                        ES_MARGIN
        LTEXT           "(1000 maximum)", -1, 177, 45, 76, 8
        LTEXT           "(0 = no limit)", -1, 177, 19, 79, 8
        LTEXT           "(0 = no limit)", -1, 177, 5, 86, 8
        LTEXT           "DES Blocks to Buffer [in:out]", -1, 5, 33, 115, 8
    END
END

DLGTEMPLATE DID_EMAIL LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "", DID_EMAIL, 0, 0, 183, 52, NOT FS_DLGBORDER | WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        LTEXT           "Valid e-mail address", -1, 3, 42, 168, 8
        ENTRYFIELD      "rc5@divideby0.com", ID_EMAIL, 5, 30, 164, 8, 
                        ES_MARGIN
        LTEXT           "Use a valid email address and then go to http://rc5"
                        "stats.distributed.net/ to join a team.", 302, 3, 10, 
                        169, 15, DT_WORDBREAK
    END
END

DLGTEMPLATE DID_MAIL_CONFIG LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "Mail", DID_MAIL_CONFIG, 0, 0, 303, 71, NOT FS_DLGBORDER | 
            WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        LTEXT           "Message Mailing (bytes):", -1, 63, 54, 107, 8
        ENTRYFIELD      "0", ID_MAIL_MESG, 175, 54, 29, 8, ES_CENTER | 
                        ES_MARGIN
        CTEXT           "(0=no messages mailed.  10000 recommended.  125000 "
                        "max.)", -1, 0, 45, 303, 8
        LTEXT           "SMTP Server:", -1, 5, 34, 63, 8
        ENTRYFIELD      "your.smtp.server", ID_SMTP_SERVER, 76, 34, 126, 8, 
                        ES_MARGIN
        LTEXT           "SMTP Port:", -1, 204, 33, 53, 8
        ENTRYFIELD      "25", ID_SMTP_PORT, 261, 33, 22, 8, ES_CENTER | 
                        ES_MARGIN
        LTEXT           "From ID:", -1, 3, 22, 40, 8
        ENTRYFIELD      "RC5Notify", ID_SMTP_FROM, 50, 22, 55, 8, ES_MARGIN
        LTEXT           "(Some servers require this to be a real address)", 
                        -1, 109, 21, 194, 8
        LTEXT           "To ID:", -1, 10, 10, 33, 8
        ENTRYFIELD      "you@your.site", ID_SMTP_TO, 53, 10, 215, 8, 
                        ES_MARGIN
        CTEXT           "(Full name and site eg: you@your.site.  Comma delim"
                        "ited list permitted)", -1, 0, 0, 303, 8
    END
END

DLGTEMPLATE DID_NETWORK LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "Network", DID_NETWORK, 1, 0, 295, 75, NOT FS_DLGBORDER | 
            WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        RTEXT           "Network mode:", -1, 0, 60, 61, 8
        CONTROL         "", ID_NETWORK, 63, 9, 185, 60, WC_COMBOBOX, 
                        CBS_DROPDOWNLIST | WS_GROUP | WS_TABSTOP | 
                        WS_VISIBLE
        RTEXT           "Preferred KeyServer Proxy:", -1, 0, 44, 110, 8
        ENTRYFIELD      "us.v27.distributed.net", ID_PROXY, 118, 44, 92, 8, 
                        ES_MARGIN
        RTEXT           "Local HTTP proxy address:", -1, 2, 32, 110, 8
        ENTRYFIELD      "wwwproxy.corporate.com", ID_HTTP_PROXY, 118, 31, 92, 
                        8, ES_MARGIN
        AUTOCHECKBOX    "UUEncoding", ID_UUENCODING, 4, 17, 86, 10
        AUTOCHECKBOX    "HTTP Headers", ID_HTTPHEADER, 4, 9, 80, 10
        AUTOCHECKBOX    "SOCKS4 proxy", ID_SOCKS4, 4, 1, 82, 10
        RTEXT           "Key Port:", -1, 81, 8, 41, 8
        ENTRYFIELD      "2064", ID_KEYPORT, 125, 8, 23, 8, ES_CENTER | NOT 
                        ES_AUTOSCROLL | ES_MARGIN
        RTEXT           "HTTP Port:", -1, 156, 8, 54, 8
        ENTRYFIELD      "80", ID_HTTPPORT, 213, 8, 23, 8, ES_CENTER | 
                        ES_MARGIN
        PUSHBUTTON      "userid/password", IDM_HTTP_PASS, 214, 37, 75, 14
        CTEXT           "Not Set", ID_HTTP_PASS_TXT, 216, 28, 72, 8
    END
END

DLGTEMPLATE DID_OS2_OPTIONS LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "OS/2 Options", DID_OS2_OPTIONS, 0, 0, 183, 58, NOT FS_DLGBORDER | 
            WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        AUTOCHECKBOX    "Automatically start cracking", ID_STARTUP, 2, 32, 
                        150, 10
        AUTOCHECKBOX    "Automatically minimize client", ID_MINIMIZE, 2, 22, 
                        153, 10
    END
END

DLGTEMPLATE DID_QUERY_HTTP_PASS LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "Proxy Username and Password", DID_QUERY_HTTP_PASS, 12, 8, 196, 
            82, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        LTEXT           "Username:", -1, 10, 60, 44, 8
        LTEXT           "Password:", 401, 10, 46, 43, 8
        ENTRYFIELD      "", ID_PROXY_USER, 56, 59, 120, 8, ES_MARGIN
        ENTRYFIELD      "", ID_PROXY_PASS, 56, 45, 120, 8, ES_MARGIN | 
                        ES_UNREADABLE
        PUSHBUTTON      "OK", ID_OK, 37, 1, 40, 14
        PUSHBUTTON      "Cancel", ID_CANCEL, 113, 1, 40, 14
        CTEXT           "Leave Username blank to reset to empty.", 404, 10, 
                        31, 175, 8
        CTEXT           "(Password not needed for SOCKS4)", 405, 9, 23, 177, 
                        8
    END
END

DLGTEMPLATE DID_SYSTEM LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "System", DID_SYSTEM, 0, 0, 276, 66, NOT FS_DLGBORDER | 
            WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        LTEXT           "CPU Type:", -1, 0, 51, 50, 8
        CONTROL         "", ID_CPU, 52, 0, 167, 60, WC_COMBOBOX, 
                        CBS_DROPDOWNLIST | WS_GROUP | WS_TABSTOP | 
                        WS_VISIBLE
        LTEXT           "Priority:", -1, 0, 39, 44, 8
        CONTROL         "", ID_PRIORITY, 52, 11, 224, 37, WC_COMBOBOX, 
                        CBS_DROPDOWNLIST | WS_GROUP | WS_TABSTOP | 
                        WS_VISIBLE
        ENTRYFIELD      "log.rc5", ID_LOGNAME, 54, 26, 220, 8, ES_MARGIN
        LTEXT           "File to log to:", -1, 0, 27, 51, 8
        LTEXT           "# CPUs:", -1, 226, 51, 25, 8
        ENTRYFIELD      "1", ID_NUM_CPU, 260, 51, 14, 8, ES_CENTER | 
                        ES_MARGIN
    END
END

DLGTEMPLATE DID_OPTIONS LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "Options", DID_OPTIONS, 0, 0, 307, 96, NOT FS_DLGBORDER | 
            WS_VISIBLE
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        AUTOCHECKBOX    "Run Offline (generate random if needed)", 
                        ID_RUNOFFLINE, 4, 72, 177, 10
        AUTOCHECKBOX    "Exit when the current buffer is empty", 
                        ID_RUNBUFFERS, 4, 64, 170, 10
        LTEXT           "Preferred Block Size:", -1, 182, 78, 64, 8
        ENTRYFIELD      "30", ID_BLOCK_SIZE, 249, 78, 17, 8, ES_CENTER | 
                        ES_MARGIN
        CTEXT           "(2^28 through 2^31)", -1, 185, 69, 83, 8
        CONTROL         "", ID_CONTEST, 233, 38, 33, 29, WC_COMBOBOX, 
                        CBS_DROPDOWN | WS_GROUP | WS_TABSTOP | WS_VISIBLE
        LTEXT           "Preferred Contest:", -1, 156, 57, 77, 8
        ENTRYFIELD      "none", ID_CHECKPOINT_FILE_DES, 111, 41, 53, 8, 
                        ES_MARGIN
        LTEXT           "DES Use Check Point file", -1, 4, 42, 103, 8
        ENTRYFIELD      "none", ID_CHECKPOINT_FILE, 111, 29, 53, 8, 
                        ES_MARGIN
        ENTRYFIELD      "", ID_CHECKPOINT_INT_VALUE, 129, 16, 35, 8, 
                        ES_CENTER | ES_MARGIN
        ENTRYFIELD      "", ID_NETWORKTIMEOUT_VAL, 129, 4, 35, 8, ES_CENTER | 
                        ES_MARGIN
        AUTOCHECKBOX    "No 'exitrc5.now' check", ID_EXITFILECHECK, 181, 42, 
                        112, 10
        AUTOCHECKBOX    "No percentage progress", ID_PERCENT, 181, 34, 118, 
                        10
        AUTOCHECKBOX    "No disk buffer files", ID_NODISKBUFFERS, 181, 26, 
                        118, 10
        AUTOCHECKBOX    "Attempt updates often", ID_FREQUENT, 181, 18, 123, 
                        10
        AUTOCHECKBOX    "Don't fallback to r.d.n", ID_NOFALLBACK, 181, 10, 
                        122, 10
        LTEXT           "RC5 Use Check Point file", -1, 4, 30, 101, 8
        LTEXT           "Check Point Interval (min)", ID_CHECKPOINT_INT, 4, 
                        18, 118, 8
        LTEXT           "Network Timeout to (sec)", ID_NETWORKTIMEOUT, 4, 6, 
                        118, 8
    END
END

DLGTEMPLATE DID_NOTEBOOK LOADONCALL MOVEABLE DISCARDABLE
BEGIN
    DIALOG  "RC5-DES Configuration", DID_NOTEBOOK, 0, -1, 321, 155, NOT 
            FS_DLGBORDER | FS_SIZEBORDER | WS_VISIBLE, FCF_TITLEBAR | 
            FCF_NOBYTEALIGN
            PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    BEGIN
        PUSHBUTTON      "Save", ID_SAVE, 128, 0, 30, 10
        PUSHBUTTON      "Cancel", ID_CANCEL, 161, 0, 30, 10
    END
END

DLGTEMPLATE DID_WND PRELOAD FIXED
BEGIN
    DIALOG  "OS/2 RC5-DES Cracking Client", DID_WND, 1, 1, 305, 131, 
            WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR | FCF_MINBUTTON | FCF_TASKLIST
    BEGIN
        LISTBOX         ID_OUTPUT, 2, 23, 300, 71, LS_OWNERDRAW
                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
        ENTRYFIELD      "Status", ID_STATUS, 3, 2, 300, 8, NOT ES_AUTOSCROLL | 
                        ES_MARGIN | ES_READONLY | NOT WS_TABSTOP
                        PRESPARAMS PP_BACKGROUNDCOLOR, 0x00CCCCCCL
        LTEXT           "", ID_PERCENT_BAR, 26, 12, 253, 8
                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
        GROUPBOX        "", -1, 53, 98, 191, 23
        PUSHBUTTON      "~Fetch", ID_FETCH, 64, 102, 40, 11
                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
        PUSHBUTTON      "F~lush", ID_FLUSH, 127, 102, 40, 11
                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
        PUSHBUTTON      "~Update", ID_UPDATE, 190, 102, 40, 11
                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
        ICON            ID_MONARCH, ID_CLIENT_ICON, 17, 99, 21, 16, WS_GROUP
        ICON            ID_OSCAR, -1, 256, 99, 21, 16, WS_GROUP
    END
END
