FFFTPのソースコードです。
Revision | b973cd74709d6f624fdc31d6008c1b8c521c87b7 (tree) |
---|---|
Time | 2011-11-18 23:30:26 |
Author | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Add UI for MLSD command.
@@ -999,16 +999,17 @@ STYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION | ||
999 | 999 | FONT 9, "MS Pゴシック" |
1000 | 1000 | BEGIN |
1001 | 1001 | CONTROL "LISTコマンドでファイル一覧を取得(&L)",HSET_LISTCMD,"Button",BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,7,7,131,10 |
1002 | - CONTROL "NLST -R を使って高速に再帰検索(&N)",HSET_NLST_R,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,21,148,10 | |
1003 | - CONTROL "フルパスでファイルをアクセスしない(&F)",HSET_FULLPATH,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,35,148,10 | |
1004 | - LTEXT "属性変更コマンド(&A)",-1,7,51,83,8 | |
1005 | - EDITTEXT HSET_CHMOD_CMD,7,61,62,12,ES_AUTOHSCROLL | |
1006 | - PUSHBUTTON "標準",HSET_CHMOD_NOR,70,61,25,13 | |
1007 | - LTEXT "ホストの種類(&H)",-1,7,80,69,8 | |
1008 | - COMBOBOX HSET_HOSTTYPE,7,90,71,75,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | |
1009 | - LTEXT "NLSTファイル名/オプション",-1,7,109,89,8 | |
1010 | - EDITTEXT HSET_LS_FNAME,7,119,62,12,ES_AUTOHSCROLL | |
1011 | - PUSHBUTTON "標準",HSET_LS_FNAME_NOR,70,119,25,13 | |
1002 | + CONTROL "可能であればMLSDコマンドで一覧を取得(&M)",HSET_MLSDCMD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,21,148,10 | |
1003 | + CONTROL "NLST -R を使って高速に再帰検索(&N)",HSET_NLST_R,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,35,148,10 | |
1004 | + CONTROL "フルパスでファイルをアクセスしない(&F)",HSET_FULLPATH,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,148,10 | |
1005 | + LTEXT "属性変更コマンド(&A)",-1,7,65,83,8 | |
1006 | + EDITTEXT HSET_CHMOD_CMD,7,75,62,12,ES_AUTOHSCROLL | |
1007 | + PUSHBUTTON "標準",HSET_CHMOD_NOR,70,75,25,13 | |
1008 | + LTEXT "ホストの種類(&H)",-1,7,94,69,8 | |
1009 | + COMBOBOX HSET_HOSTTYPE,7,104,71,75,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | |
1010 | + LTEXT "NLSTファイル名/オプション",-1,7,123,89,8 | |
1011 | + EDITTEXT HSET_LS_FNAME,7,133,62,12,ES_AUTOHSCROLL | |
1012 | + PUSHBUTTON "標準",HSET_LS_FNAME_NOR,70,133,25,13 | |
1012 | 1013 | END |
1013 | 1014 | |
1014 | 1015 | cwderr_dlg DIALOG 0, 0, 154, 69 |
@@ -437,6 +437,7 @@ | ||
437 | 437 | #define HSET_NOOP_INTERVAL_SPN 1209 |
438 | 438 | #define HSET_NETTYPE 1210 |
439 | 439 | #define HSET_ERROR_MODE 1211 |
440 | +#define HSET_MLSDCMD 1212 | |
440 | 441 | #define MENU_END 40001 |
441 | 442 | #define MENU_EXIT 40001 |
442 | 443 | #define MENU_CONNECT 40003 |
@@ -623,7 +624,7 @@ | ||
623 | 624 | #ifndef APSTUDIO_READONLY_SYMBOLS |
624 | 625 | #define _APS_NEXT_RESOURCE_VALUE 193 |
625 | 626 | #define _APS_NEXT_COMMAND_VALUE 40176 |
626 | -#define _APS_NEXT_CONTROL_VALUE 1212 | |
627 | +#define _APS_NEXT_CONTROL_VALUE 1213 | |
627 | 628 | #define _APS_NEXT_SYMED_VALUE 101 |
628 | 629 | #endif |
629 | 630 | #endif |
@@ -1020,18 +1020,20 @@ STYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION | ||
1020 | 1020 | FONT 9, "MS Sans Serif" |
1021 | 1021 | BEGIN |
1022 | 1022 | CONTROL "Use &LIST command to get file list",HSET_LISTCMD,"Button",BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,7,7,131,10 |
1023 | - CONTROL "Use &NLST -R for high-speed recursive search",HSET_NLST_R, | |
1023 | + CONTROL "Use &MLSD command to get file list if possible",HSET_MLSDCMD, | |
1024 | 1024 | "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,21,167,10 |
1025 | + CONTROL "Use &NLST -R for high-speed recursive search",HSET_NLST_R, | |
1026 | + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,35,167,10 | |
1025 | 1027 | CONTROL "&Do not use full path to access files",HSET_FULLPATH, |
1026 | - "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,35,148,10 | |
1027 | - LTEXT "&Permissions Change Command",-1,7,51,110,8 | |
1028 | - EDITTEXT HSET_CHMOD_CMD,7,61,62,12,ES_AUTOHSCROLL | |
1029 | - PUSHBUTTON "Default",HSET_CHMOD_NOR,70,61,28,13 | |
1030 | - LTEXT "&Host Type",-1,7,80,69,8 | |
1031 | - COMBOBOX HSET_HOSTTYPE,7,90,71,75,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | |
1032 | - LTEXT "NLST &Filename/Option",-1,7,109,89,8 | |
1033 | - EDITTEXT HSET_LS_FNAME,7,119,62,12,ES_AUTOHSCROLL | |
1034 | - PUSHBUTTON "Delault",HSET_LS_FNAME_NOR,70,119,28,13 | |
1028 | + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,148,10 | |
1029 | + LTEXT "&Permissions Change Command",-1,7,65,110,8 | |
1030 | + EDITTEXT HSET_CHMOD_CMD,7,75,62,12,ES_AUTOHSCROLL | |
1031 | + PUSHBUTTON "Default",HSET_CHMOD_NOR,70,75,28,13 | |
1032 | + LTEXT "&Host Type",-1,7,94,69,8 | |
1033 | + COMBOBOX HSET_HOSTTYPE,7,104,71,75,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | |
1034 | + LTEXT "NLST &Filename/Option",-1,7,123,89,8 | |
1035 | + EDITTEXT HSET_LS_FNAME,7,133,62,12,ES_AUTOHSCROLL | |
1036 | + PUSHBUTTON "Delault",HSET_LS_FNAME_NOR,70,133,28,13 | |
1035 | 1037 | END |
1036 | 1038 | |
1037 | 1039 | cwderr_dlg DIALOG 0, 0, 155, 57 |
@@ -1402,7 +1404,8 @@ BEGIN | ||
1402 | 1404 | EDITTEXT HSET_THREAD_COUNT,72,8,17,12,ES_AUTOHSCROLL | ES_NUMBER |
1403 | 1405 | CONTROL "Spin1",HSET_THREAD_COUNT_SPN,"msctls_updown32",UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,89,7,9,14 |
1404 | 1406 | LTEXT "(1 to 4 threads)",-1,102,10,53,8 |
1405 | - CONTROL "Reuse socket of the main window",HSET_REUSE_SOCKET,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,27,131,10 | |
1407 | + CONTROL "Reuse socket of the main window",HSET_REUSE_SOCKET, | |
1408 | + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,27,131,10 | |
1406 | 1409 | LTEXT "Command for Keep Alive",-1,7,44,84,8 |
1407 | 1410 | EDITTEXT HSET_NOOP_INTERVAL,92,42,17,12,ES_AUTOHSCROLL | ES_NUMBER |
1408 | 1411 | CONTROL "Spin1",HSET_NOOP_INTERVAL_SPN,"msctls_updown32",UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,109,41,9,14 |
@@ -437,6 +437,7 @@ | ||
437 | 437 | #define HSET_NOOP_INTERVAL_SPN 1209 |
438 | 438 | #define HSET_NETTYPE 1210 |
439 | 439 | #define HSET_ERROR_MODE 1211 |
440 | +#define HSET_MLSDCMD 1212 | |
440 | 441 | #define MENU_END 40001 |
441 | 442 | #define MENU_EXIT 40001 |
442 | 443 | #define MENU_CONNECT 40003 |
@@ -623,7 +624,7 @@ | ||
623 | 624 | #ifndef APSTUDIO_READONLY_SYMBOLS |
624 | 625 | #define _APS_NEXT_RESOURCE_VALUE 193 |
625 | 626 | #define _APS_NEXT_COMMAND_VALUE 40176 |
626 | -#define _APS_NEXT_CONTROL_VALUE 1212 | |
627 | +#define _APS_NEXT_CONTROL_VALUE 1213 | |
627 | 628 | #define _APS_NEXT_SYMED_VALUE 101 |
628 | 629 | #endif |
629 | 630 | #endif |
@@ -2083,6 +2083,10 @@ static BOOL CALLBACK Adv2SettingProc(HWND hDlg, UINT iMessage, WPARAM wParam, LP | ||
2083 | 2083 | SendDlgItemMessage(hDlg, HSET_LISTCMD, BM_SETCHECK, TmpHost.ListCmdOnly, 0); |
2084 | 2084 | if(TmpHost.ListCmdOnly == YES) |
2085 | 2085 | EnableWindow(GetDlgItem(hDlg, HSET_NLST_R), FALSE); |
2086 | + // MLSD対応 | |
2087 | + else | |
2088 | + EnableWindow(GetDlgItem(hDlg, HSET_MLSDCMD), FALSE); | |
2089 | + SendDlgItemMessage(hDlg, HSET_MLSDCMD, BM_SETCHECK, TmpHost.UseMLSD, 0); | |
2086 | 2090 | SendDlgItemMessage(hDlg, HSET_NLST_R, BM_SETCHECK, TmpHost.UseNLST_R, 0); |
2087 | 2091 | SendDlgItemMessage(hDlg, HSET_FULLPATH, BM_SETCHECK, TmpHost.NoFullPath, 0); |
2088 | 2092 | SendDlgItemMessage(hDlg, HSET_HOSTTYPE, CB_ADDSTRING, 0, (LPARAM)MSGJPN139); |
@@ -2110,6 +2114,8 @@ static BOOL CALLBACK Adv2SettingProc(HWND hDlg, UINT iMessage, WPARAM wParam, LP | ||
2110 | 2114 | SendDlgItemMessage(hDlg, HSET_CHMOD_CMD, WM_GETTEXT, CHMOD_CMD_LEN+1, (LPARAM)TmpHost.ChmodCmd); |
2111 | 2115 | SendDlgItemMessage(hDlg, HSET_LS_FNAME, WM_GETTEXT, NLST_NAME_LEN+1, (LPARAM)TmpHost.LsName); |
2112 | 2116 | TmpHost.ListCmdOnly = SendDlgItemMessage(hDlg, HSET_LISTCMD, BM_GETCHECK, 0, 0); |
2117 | + // MLSD対応 | |
2118 | + TmpHost.UseMLSD = SendDlgItemMessage(hDlg, HSET_MLSDCMD, BM_GETCHECK, 0, 0); | |
2113 | 2119 | TmpHost.UseNLST_R = SendDlgItemMessage(hDlg, HSET_NLST_R, BM_GETCHECK, 0, 0); |
2114 | 2120 | TmpHost.NoFullPath = SendDlgItemMessage(hDlg, HSET_FULLPATH, BM_GETCHECK, 0, 0); |
2115 | 2121 | TmpHost.HostType = SendDlgItemMessage(hDlg, HSET_HOSTTYPE, CB_GETCURSEL, 0, 0); |
@@ -2138,9 +2144,19 @@ static BOOL CALLBACK Adv2SettingProc(HWND hDlg, UINT iMessage, WPARAM wParam, LP | ||
2138 | 2144 | |
2139 | 2145 | case HSET_LISTCMD : |
2140 | 2146 | if(SendDlgItemMessage(hDlg, HSET_LISTCMD, BM_GETCHECK, 0, 0) == 0) |
2147 | + // MLSD対応 | |
2148 | +// EnableWindow(GetDlgItem(hDlg, HSET_NLST_R), TRUE); | |
2149 | + { | |
2150 | + EnableWindow(GetDlgItem(hDlg, HSET_MLSDCMD), FALSE); | |
2141 | 2151 | EnableWindow(GetDlgItem(hDlg, HSET_NLST_R), TRUE); |
2152 | + } | |
2142 | 2153 | else |
2154 | + // MLSD対応 | |
2155 | +// EnableWindow(GetDlgItem(hDlg, HSET_NLST_R), FALSE); | |
2156 | + { | |
2157 | + EnableWindow(GetDlgItem(hDlg, HSET_MLSDCMD), TRUE); | |
2143 | 2158 | EnableWindow(GetDlgItem(hDlg, HSET_NLST_R), FALSE); |
2159 | + } | |
2144 | 2160 | break; |
2145 | 2161 | |
2146 | 2162 | case HSET_HOSTTYPE : |