author | Michael Krelin <hacker@klever.net> | 2004-11-03 21:50:28 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-11-03 21:50:28 (UTC) |
commit | 5f552506513653f08acc6921b8c158489a7ebbbb (patch) (unidiff) | |
tree | 74ab06cf90c488915b87f48e74359554521cbec9 /pumpkin.rc | |
parent | 4435ed85c3acb4df42135e009b133fb8e9d2f09c (diff) | |
download | pumpkin-5f552506513653f08acc6921b8c158489a7ebbbb.zip pumpkin-5f552506513653f08acc6921b8c158489a7ebbbb.tar.gz pumpkin-5f552506513653f08acc6921b8c158489a7ebbbb.tar.bz2 |
Added dialog box in case we can't bind listening socket.
git-svn-id: http://svn.klever.net/kin/pumpkin/trunk@47 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | pumpkin.rc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -37,99 +37,100 @@ BEGIN | |||
37 | "#include ""afxres.h""\r\n" | 37 | "#include ""afxres.h""\r\n" |
38 | "\0" | 38 | "\0" |
39 | END | 39 | END |
40 | 40 | ||
41 | 3 TEXTINCLUDE DISCARDABLE | 41 | 3 TEXTINCLUDE DISCARDABLE |
42 | BEGIN | 42 | BEGIN |
43 | "#define _AFX_NO_SPLITTER_RESOURCES\r\n" | 43 | "#define _AFX_NO_SPLITTER_RESOURCES\r\n" |
44 | "#define _AFX_NO_OLE_RESOURCES\r\n" | 44 | "#define _AFX_NO_OLE_RESOURCES\r\n" |
45 | "#define _AFX_NO_TRACKER_RESOURCES\r\n" | 45 | "#define _AFX_NO_TRACKER_RESOURCES\r\n" |
46 | "#define _AFX_NO_PROPERTY_RESOURCES\r\n" | 46 | "#define _AFX_NO_PROPERTY_RESOURCES\r\n" |
47 | "\r\n" | 47 | "\r\n" |
48 | "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" | 48 | "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" |
49 | "#ifdef _WIN32\r\n" | 49 | "#ifdef _WIN32\r\n" |
50 | "LANGUAGE 9, 1\r\n" | 50 | "LANGUAGE 9, 1\r\n" |
51 | "#pragma code_page(1252)\r\n" | 51 | "#pragma code_page(1252)\r\n" |
52 | "#endif\r\n" | 52 | "#endif\r\n" |
53 | "#include ""res\\PumpKIN.rc2"" // non-Microsoft Visual C++ edited resources\r\n" | 53 | "#include ""res\\PumpKIN.rc2"" // non-Microsoft Visual C++ edited resources\r\n" |
54 | "#include ""afxres.rc"" // Standard components\r\n" | 54 | "#include ""afxres.rc"" // Standard components\r\n" |
55 | "#endif\0" | 55 | "#endif\0" |
56 | END | 56 | END |
57 | 57 | ||
58 | #endif // APSTUDIO_INVOKED | 58 | #endif // APSTUDIO_INVOKED |
59 | 59 | ||
60 | 60 | ||
61 | ///////////////////////////////////////////////////////////////////////////// | 61 | ///////////////////////////////////////////////////////////////////////////// |
62 | // | 62 | // |
63 | // Icon | 63 | // Icon |
64 | // | 64 | // |
65 | 65 | ||
66 | // Icon with lowest ID value placed first to ensure application icon | 66 | // Icon with lowest ID value placed first to ensure application icon |
67 | // remains consistent on all systems. | 67 | // remains consistent on all systems. |
68 | IDI_RRQ ICON DISCARDABLE "res\\wrq.ico" | 68 | IDI_RRQ ICON DISCARDABLE "res\\wrq.ico" |
69 | IDI_WRQ ICON DISCARDABLE "res\\rrq.ico" | 69 | IDI_WRQ ICON DISCARDABLE "res\\rrq.ico" |
70 | IDI_BROWSE ICON DISCARDABLE "shared-data/browse-icon.ico" | 70 | IDI_BROWSE ICON DISCARDABLE "shared-data/browse-icon.ico" |
71 | IDR_MAINFRAME ICON DISCARDABLE "res\\pumpkin.ico" | 71 | IDR_MAINFRAME ICON DISCARDABLE "res\\pumpkin.ico" |
72 | IDI_PLAY ICON DISCARDABLE "shared-data/play-icon.ico" | 72 | IDI_PLAY ICON DISCARDABLE "shared-data/play-icon.ico" |
73 | 73 | ||
74 | ///////////////////////////////////////////////////////////////////////////// | 74 | ///////////////////////////////////////////////////////////////////////////// |
75 | // | 75 | // |
76 | // Dialog | 76 | // Dialog |
77 | // | 77 | // |
78 | 78 | ||
79 | IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 74 | 79 | IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 74 |
80 | STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | 80 | STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU |
81 | CAPTION "About PumpKIN" | 81 | CAPTION "About PumpKIN" |
82 | FONT 8, "MS Sans Serif" | 82 | FONT 8, "MS Sans Serif" |
83 | BEGIN | 83 | BEGIN |
84 | ICON IDR_MAINFRAME,IDC_STATIC,7,17,18,20 | 84 | ICON IDR_MAINFRAME,IDC_STATIC,7,17,18,20 |
85 | LTEXT "PumpKIN, Version 2.5.1-trunk",IDC_STATIC,40,15,119,8,SS_NOPREFIX | 85 | LTEXT "PumpKIN, Version 2.5.1-trunk",IDC_STATIC,40,15,119,8, |
86 | LTEXT "Copyright © 1997-2004 Klever Group",IDC_STATIC,40,30,170, | 86 | SS_NOPREFIX |
87 | 8 | 87 | LTEXT "Copyright © 1997-2004 Klever Group",IDC_STATIC,40,30, |
88 | 170,8 | ||
88 | DEFPUSHBUTTON "OK",IDOK,178,7,32,14,WS_GROUP | 89 | DEFPUSHBUTTON "OK",IDOK,178,7,32,14,WS_GROUP |
89 | PUSHBUTTON "http://www.klever.net/",IDC_KLEVERNET,124,53,86,14 | 90 | PUSHBUTTON "http://www.klever.net/",IDC_KLEVERNET,124,53,86,14 |
90 | END | 91 | END |
91 | 92 | ||
92 | IDD_PUMPKIN_DIALOG DIALOGEX 0, 0, 362, 191 | 93 | IDD_PUMPKIN_DIALOG DIALOGEX 0, 0, 362, 191 |
93 | STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | | 94 | STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | |
94 | WS_SYSMENU | 95 | WS_SYSMENU |
95 | EXSTYLE WS_EX_ACCEPTFILES | WS_EX_APPWINDOW | 96 | EXSTYLE WS_EX_ACCEPTFILES | WS_EX_APPWINDOW |
96 | CAPTION " PumpKIN" | 97 | CAPTION " PumpKIN" |
97 | FONT 8, "MS Sans Serif", 0, 0, 0x1 | 98 | FONT 8, "MS Sans Serif", 0, 0, 0x1 |
98 | BEGIN | 99 | BEGIN |
99 | CONTROL "List1",IDC_CONNECTIONS,"SysListView32",LVS_REPORT | | 100 | CONTROL "List1",IDC_CONNECTIONS,"SysListView32",LVS_REPORT | |
100 | LVS_AUTOARRANGE | WS_BORDER | WS_TABSTOP,7,7,295,108, | 101 | LVS_AUTOARRANGE | WS_BORDER | WS_TABSTOP,7,7,295,108, |
101 | WS_EX_DLGMODALFRAME | 102 | WS_EX_DLGMODALFRAME |
102 | PUSHBUTTON "&Get File",IDC_GET,305,7,50,17,BS_NOTIFY, | 103 | PUSHBUTTON "&Get File",IDC_GET,305,7,50,17,BS_NOTIFY, |
103 | WS_EX_CLIENTEDGE | 104 | WS_EX_CLIENTEDGE |
104 | PUSHBUTTON "&Put File",IDC_PUT,305,25,50,17,BS_NOTIFY, | 105 | PUSHBUTTON "&Put File",IDC_PUT,305,25,50,17,BS_NOTIFY, |
105 | WS_EX_CLIENTEDGE | 106 | WS_EX_CLIENTEDGE |
106 | PUSHBUTTON "&Abort xfer",IDC_ABORT,305,43,50,17,BS_NOTIFY, | 107 | PUSHBUTTON "&Abort xfer",IDC_ABORT,305,43,50,17,BS_NOTIFY, |
107 | WS_EX_CLIENTEDGE | 108 | WS_EX_CLIENTEDGE |
108 | PUSHBUTTON "&Options",IDC_OPTIONS,305,61,50,17,BS_NOTIFY, | 109 | PUSHBUTTON "&Options",IDC_OPTIONS,305,61,50,17,BS_NOTIFY, |
109 | WS_EX_CLIENTEDGE | 110 | WS_EX_CLIENTEDGE |
110 | PUSHBUTTON "E&xit",IDC_EXIT,305,79,50,17,BS_NOTIFY,WS_EX_CLIENTEDGE | 111 | PUSHBUTTON "E&xit",IDC_EXIT,305,79,50,17,BS_NOTIFY,WS_EX_CLIENTEDGE |
111 | PUSHBUTTON "&Help",ID_HELP,305,97,50,17,BS_NOTIFY,WS_EX_CLIENTEDGE | 112 | PUSHBUTTON "&Help",ID_HELP,305,97,50,17,BS_NOTIFY,WS_EX_CLIENTEDGE |
112 | LISTBOX IDC_LOG,7,115,348,69,LBS_USETABSTOPS | LBS_NOSEL | | 113 | LISTBOX IDC_LOG,7,115,348,69,LBS_USETABSTOPS | LBS_NOSEL | |
113 | WS_VSCROLL | WS_HSCROLL,WS_EX_DLGMODALFRAME | 114 | WS_VSCROLL | WS_HSCROLL,WS_EX_DLGMODALFRAME |
114 | PUSHBUTTON "..",IDCANCEL,0,183,6,7,NOT WS_VISIBLE | NOT WS_TABSTOP | 115 | PUSHBUTTON "..",IDCANCEL,0,183,6,7,NOT WS_VISIBLE | NOT WS_TABSTOP |
115 | END | 116 | END |
116 | 117 | ||
117 | IDD_PROPS_SERVER DIALOG DISCARDABLE 0, 0, 210, 154 | 118 | IDD_PROPS_SERVER DIALOG DISCARDABLE 0, 0, 210, 154 |
118 | STYLE WS_CHILD | WS_DISABLED | WS_CAPTION | 119 | STYLE WS_CHILD | WS_DISABLED | WS_CAPTION |
119 | CAPTION "Server" | 120 | CAPTION "Server" |
120 | FONT 8, "MS Sans Serif" | 121 | FONT 8, "MS Sans Serif" |
121 | BEGIN | 122 | BEGIN |
122 | GROUPBOX "TFTP filesystem &root (download path)",IDC_STATIC,7,7, | 123 | GROUPBOX "TFTP filesystem &root (download path)",IDC_STATIC,7,7, |
123 | 196,38 | 124 | 196,38 |
124 | EDITTEXT IDC_TFTPROOT,13,16,170,13,ES_AUTOHSCROLL | 125 | EDITTEXT IDC_TFTPROOT,13,16,170,13,ES_AUTOHSCROLL |
125 | PUSHBUTTON "&B",IDC_BROWSE,186,16,13,13,BS_ICON | 126 | PUSHBUTTON "&B",IDC_BROWSE,186,16,13,13,BS_ICON |
126 | CONTROL "Allow access to &subdirectories",IDC_TFTPSUBDIRS, | 127 | CONTROL "Allow access to &subdirectories",IDC_TFTPSUBDIRS, |
127 | "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,31,111,10 | 128 | "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,31,111,10 |
128 | GROUPBOX "Read Request Behavior",IDC_STATIC,7,48,153,42 | 129 | GROUPBOX "Read Request Behavior",IDC_STATIC,7,48,153,42 |
129 | CONTROL "Give &all files",IDC_RRQ_GIVEALL,"Button", | 130 | CONTROL "Give &all files",IDC_RRQ_GIVEALL,"Button", |
130 | BS_AUTORADIOBUTTON | BS_NOTIFY | WS_GROUP,13,57,53,10 | 131 | BS_AUTORADIOBUTTON | BS_NOTIFY | WS_GROUP,13,57,53,10 |
131 | CONTROL "&Prompt before giving file",IDC_RRQ_ALWAYSCONFIRM, | 132 | CONTROL "&Prompt before giving file",IDC_RRQ_ALWAYSCONFIRM, |
132 | "Button",BS_AUTORADIOBUTTON | BS_NOTIFY,23,67,91,10 | 133 | "Button",BS_AUTORADIOBUTTON | BS_NOTIFY,23,67,91,10 |
133 | CONTROL "&Deny all requests",IDC_RRQ_DENYALL,"Button", | 134 | CONTROL "&Deny all requests",IDC_RRQ_DENYALL,"Button", |
134 | BS_AUTORADIOBUTTON | BS_NOTIFY,33,77,70,10 | 135 | BS_AUTORADIOBUTTON | BS_NOTIFY,33,77,70,10 |
135 | GROUPBOX "Write Request Behavior",IDC_STATIC,7,93,172,54,WS_GROUP | 136 | GROUPBOX "Write Request Behavior",IDC_STATIC,7,93,172,54,WS_GROUP |
@@ -525,81 +526,82 @@ END | |||
525 | STRINGTABLE DISCARDABLE | 526 | STRINGTABLE DISCARDABLE |
526 | BEGIN | 527 | BEGIN |
527 | ID_TRAY_HELP "Read the help on PumpKIN" | 528 | ID_TRAY_HELP "Read the help on PumpKIN" |
528 | ID_TRAY_ABOUTPUMPKIN "Learn about PumpKIN and it's creator" | 529 | ID_TRAY_ABOUTPUMPKIN "Learn about PumpKIN and it's creator" |
529 | ID_TRAY_EXIT "Close PumpKIN" | 530 | ID_TRAY_EXIT "Close PumpKIN" |
530 | ID_TRAY_SENDFILE "Send file over the network to your tete-a-tete" | 531 | ID_TRAY_SENDFILE "Send file over the network to your tete-a-tete" |
531 | ID_TRAY_FETCHFILE "Fetch file from remote computer" | 532 | ID_TRAY_FETCHFILE "Fetch file from remote computer" |
532 | ID_TRAY_OPTIONS "Set PumpKIN options" | 533 | ID_TRAY_OPTIONS "Set PumpKIN options" |
533 | ID_TRAY_SHOWPUMPKINWINDOW "Show main window" | 534 | ID_TRAY_SHOWPUMPKINWINDOW "Show main window" |
534 | ID_TRAY_OPENFILESFOLDER "Explore TFTP root folder" | 535 | ID_TRAY_OPENFILESFOLDER "Explore TFTP root folder" |
535 | END | 536 | END |
536 | 537 | ||
537 | STRINGTABLE DISCARDABLE | 538 | STRINGTABLE DISCARDABLE |
538 | BEGIN | 539 | BEGIN |
539 | IDC_CONNECTIONS "Active transfers" | 540 | IDC_CONNECTIONS "Active transfers" |
540 | IDC_LOG "PumpKIN Activity Log" | 541 | IDC_LOG "PumpKIN Activity Log" |
541 | IDC_GET "Fetch file from remote server" | 542 | IDC_GET "Fetch file from remote server" |
542 | IDC_PUT "Send file over the net" | 543 | IDC_PUT "Send file over the net" |
543 | IDC_ABORT "Abort transfer currently in progress" | 544 | IDC_ABORT "Abort transfer currently in progress" |
544 | IDC_EXIT "Close PumpKIN" | 545 | IDC_EXIT "Close PumpKIN" |
545 | END | 546 | END |
546 | 547 | ||
547 | STRINGTABLE DISCARDABLE | 548 | STRINGTABLE DISCARDABLE |
548 | BEGIN | 549 | BEGIN |
549 | IDC_OPTIONS "Set PumpKIN options" | 550 | IDC_OPTIONS "Set PumpKIN options" |
550 | IDC_REFRESH "Refresh talks list" | 551 | IDC_REFRESH "Refresh talks list" |
551 | IDC_BROWSE "Browse" | 552 | IDC_BROWSE "Browse" |
552 | END | 553 | END |
553 | 554 | ||
554 | STRINGTABLE DISCARDABLE | 555 | STRINGTABLE DISCARDABLE |
555 | BEGIN | 556 | BEGIN |
556 | ID_HELP "Read help on PumpKIN" | 557 | ID_HELP "Read help on PumpKIN" |
557 | END | 558 | END |
558 | 559 | ||
559 | STRINGTABLE DISCARDABLE | 560 | STRINGTABLE DISCARDABLE |
560 | BEGIN | 561 | BEGIN |
561 | IDS_DROPFILES_TITLE "Drop Files" | 562 | IDS_DROPFILES_TITLE "Drop Files" |
562 | IDS_NOMULTIPLEDROP_TEXT "You can't drop more than one file here. Only the first one will be accepted" | 563 | IDS_NOMULTIPLEDROP_TEXT "You can't drop more than one file here. Only the first one will be accepted" |
563 | IDS_LOG_REQUESTING "Requesting '%s' from '%s'" | 564 | IDS_LOG_REQUESTING "Requesting '%s' from '%s'" |
564 | IDS_LOG_SENDING "Sending '%s' to '%s'" | 565 | IDS_LOG_SENDING "Sending '%s' to '%s'" |
565 | IDS_WTALKAT "@" | 566 | IDS_WTALKAT "@" |
566 | IDS_OTALXAT " at " | 567 | IDS_OTALXAT " at " |
567 | IDS_TFTP_ERROR_TSIZE "Invalid transfer size" | 568 | IDS_TFTP_ERROR_TSIZE "Invalid transfer size" |
568 | IDS_TFTP_ERROR_BSIZE "Invalid block size" | 569 | IDS_TFTP_ERROR_BSIZE "Invalid block size" |
569 | IDS_TFTP_ERROR_TOUT "Invalid timeout" | 570 | IDS_TFTP_ERROR_TOUT "Invalid timeout" |
570 | IDS_SELECT_TFTPROOT "Select TFTP filesystem root.." | 571 | IDS_SELECT_TFTPROOT "Select TFTP filesystem root.." |
571 | IDS_FILTER_WAV "Sound Files (*.wav)|*.wav||" | 572 | IDS_FILTER_WAV "Sound Files (*.wav)|*.wav||" |
572 | IDS_TITLE_WAV "Select sound.." | 573 | IDS_TITLE_WAV "Select sound.." |
574 | IDS_BOX_CANTBIND "Failed to create listening socket. The port may be in use by another application." | ||
573 | END | 575 | END |
574 | 576 | ||
575 | STRINGTABLE DISCARDABLE | 577 | STRINGTABLE DISCARDABLE |
576 | BEGIN | 578 | BEGIN |
577 | AFX_IDS_APP_TITLE "PUMPKIN" | 579 | AFX_IDS_APP_TITLE "PUMPKIN" |
578 | END | 580 | END |
579 | 581 | ||
580 | #endif // English (U.S.) resources | 582 | #endif // English (U.S.) resources |
581 | ///////////////////////////////////////////////////////////////////////////// | 583 | ///////////////////////////////////////////////////////////////////////////// |
582 | 584 | ||
583 | 585 | ||
584 | 586 | ||
585 | #ifndef APSTUDIO_INVOKED | 587 | #ifndef APSTUDIO_INVOKED |
586 | ///////////////////////////////////////////////////////////////////////////// | 588 | ///////////////////////////////////////////////////////////////////////////// |
587 | // | 589 | // |
588 | // Generated from the TEXTINCLUDE 3 resource. | 590 | // Generated from the TEXTINCLUDE 3 resource. |
589 | // | 591 | // |
590 | #define _AFX_NO_SPLITTER_RESOURCES | 592 | #define _AFX_NO_SPLITTER_RESOURCES |
591 | #define _AFX_NO_OLE_RESOURCES | 593 | #define _AFX_NO_OLE_RESOURCES |
592 | #define _AFX_NO_TRACKER_RESOURCES | 594 | #define _AFX_NO_TRACKER_RESOURCES |
593 | #define _AFX_NO_PROPERTY_RESOURCES | 595 | #define _AFX_NO_PROPERTY_RESOURCES |
594 | 596 | ||
595 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) | 597 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) |
596 | #ifdef _WIN32 | 598 | #ifdef _WIN32 |
597 | LANGUAGE 9, 1 | 599 | LANGUAGE 9, 1 |
598 | #pragma code_page(1252) | 600 | #pragma code_page(1252) |
599 | #endif | 601 | #endif |
600 | #include "res\pumpkin.rc2" // non-Microsoft Visual C++ edited resources | 602 | #include "res\PumpKIN.rc2" // non-Microsoft Visual C++ edited resources |
601 | #include "afxres.rc" // Standard components | 603 | #include "afxres.rc" // Standard components |
602 | #endif | 604 | #endif |
603 | ///////////////////////////////////////////////////////////////////////////// | 605 | ///////////////////////////////////////////////////////////////////////////// |
604 | #endif // not APSTUDIO_INVOKED | 606 | #endif // not APSTUDIO_INVOKED |
605 | 607 | ||